Soundlinks 0.1.6

Soundlinks 0.1.6

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2016

Maintained by LiQingyao.



  • By
  • liqingyao

Features

Soundlinks provides basic APIs for parsing contents from audios which are carried inaudible information.

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Init Soundlinks

In AppDelegate init Soundlinks with Appid and Eventid.

[Soundlinks setAppID:@"appid" andEventId:@"eventid"];

Start Soundlinks

In ViewDidLoad set delegate and start microphone to record audio.

[Soundlinks setDelegate:self];
[Soundlinks enable];

Stop Soundlinks

Stop microphone and no longer recording audio.

[Soundlinks disable];

Soundlinks Callback

When Soundlinks has listened some contents then callback is called. The returned contents are packaged into an array, use SLContent to parse each content.

- (void)soundlinks:(Soundlinks *)soundlinks listenContents:(NSArray *)contentArray {
    for (SLContent *content in contentArray) {
        NSLog(@"Succeed Get Content: %@ \n %@ \n %@ \n", content.title, content.url, content.image);
        // To do with the content
    }
}

Do not Forget

Add App Transport Security Setting in Info.plist, and set Allow Arbitrary Loads to YES.

Build Requirements

iOS

  • 7.0+

Frameworks

iOS

  • Foundation

  • AudioToolbox

  • AVFoundation

  • UIKit

  • QuartzCore

Installation

Soundlinks is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Soundlinks'

License

Soundlinks is available under the MIT license. See the LICENSE file for more info.