TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2016 |
Maintained by LiQingyao.
Soundlinks provides basic APIs for parsing contents from audios which are carried inaudible information.
To run the example project, clone the repo, and run pod install
from the Example directory first.
In AppDelegate
init Soundlinks with Appid and Eventid.
[Soundlinks setAppID:@"appid" andEventId:@"eventid"];
In ViewDidLoad
set delegate and start microphone to record audio.
[Soundlinks setDelegate:self];
[Soundlinks enable];
Stop microphone and no longer recording audio.
[Soundlinks disable];
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
}
}
Add App Transport Security Setting in Info.plist
, and set Allow Arbitrary Loads to YES.
iOS
iOS
Foundation
AudioToolbox
AVFoundation
UIKit
QuartzCore
Soundlinks is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Soundlinks'
Soundlinks is available under the MIT license. See the LICENSE file for more info.