Latest 0.1.6
Homepage https://github.com/liqingyao/Soundlinks
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, QuartzCore, AudioToolbox, AVFoundation, UIKit
Authors

CI Status
Version
License
Platform

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.

#import "Soundlinks.h"

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    // Init Soundlinks with AppID and EventId
    [Soundlinks setAppID:@"appid" andEventId:@"eventid"];

    return YES;
}

Start Soundlinks

In ViewDidLoad set delegate and start microphone to record audio.

#import "Soundlinks.h"

@interface SLViewController () <SoundlinksDelegate>

@end

@implementation SLViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    // Set delegate and enable Soundlinks
    [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.

Latest podspec

{
    "name": "Soundlinks",
    "version": "0.1.6",
    "summary": "Soundlinks SDK",
    "description": "Soundlinks SDK provides APIs for parsing contents from audios which are carried inaudible information.",
    "homepage": "https://github.com/liqingyao/Soundlinks",
    "license": "MIT",
    "authors": {
        "liqingyao": "[email protected]"
    },
    "source": {
        "git": "https://github.com/liqingyao/Soundlinks.git",
        "tag": "0.1.6"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/Soundlinks.h",
    "public_header_files": "Pod/Classes/Soundlinks.h",
    "preserve_paths": "Pod/Classes/libSoundlinks.a",
    "ios": {
        "vendored_libraries": "Pod/Classes/libSoundlinks.a"
    },
    "frameworks": [
        "Foundation",
        "QuartzCore",
        "AudioToolbox",
        "AVFoundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This