百度语音

详情请前往百度语音平台


百度语音_第1张图片

recognizerViewController = [[BDRecognizerViewController alloc] initWithOrigin:CGPointMake(9, 128) withTheme: [BDTheme defaultTheme]];

recognizerViewController.enableFullScreenMode = YES;

recognizerViewController.delegate=self;

//    App ID: 9857845

//

//    API Key: pSVcOMraa7kkgHmXgzTXtOXX

//

//    Secret Key: 1bc994bea594635c9e3bc96ff97b8ef6

//设置是否全屏模式

paramsObject=[[BDRecognizerViewParamsObject alloc]init];

paramsObject.apiKey=@"pSVcOMraa7kkgHmXgzTXtOXX";

paramsObject.secretKey=@"1bc994bea594635c9e3bc96ff97b8ef6";

百度语音_第2张图片

- (IBAction)yuyinanniu:(id)sender {

[recognizerViewController startWithParams:paramsObject];

}

- (void)onEndWithViews:(BDRecognizerViewController *)aBDRecognizerViewController withResults:(NSArray *)aResults

{

_labellabel.text= [[[[aResults lastObject]lastObject]allKeys]lastObject];

}

你可能感兴趣的:(百度语音)