美文网首页
百度语音

百度语音

作者: 偏执_cbbe | 来源:发表于2017-07-17 07:42 被阅读0次

    详情请前往百度语音平台

    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];

    }

    相关文章

      网友评论

          本文标题:百度语音

          本文链接:https://www.haomeiwen.com/subject/pmffkxtx.html