Soundlinks-iOS-SDK
安装
pod 'Soundlinks-iOS-SDK', '~> 1.2.0'
用法
在用于识别 Soundlinks 的 ViewController 中,开始如下
#import "SLRecognizer.h"
@interface ViewController () <SLRecognizerDelegate>
@property (nonatomic, strong) SLRecognizer *recognizer;
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
self.recognizer = [SLRecognizer recognizerWithDelegate:self];
[self.recognizer enable];
}
- (void)recognizer:(SLRecognizer *)recognizer content:(NSDictionary *)content
{
NSLog(@"Received Soundlinks: %@", content);
}
@end
要停止识别
[self.recognizer disable];
反馈
创建一个 issues 我们在这里帮助你。