详情请前往百度语音平台
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";
- (IBAction)yuyinanniu:(id)sender {
[recognizerViewController startWithParams:paramsObject];
}
- (void)onEndWithViews:(BDRecognizerViewController *)aBDRecognizerViewController withResults:(NSArray *)aResults
{
_labellabel.text= [[[[aResults lastObject]lastObject]allKeys]lastObject];
}
网友评论