authentication failed
008********17 发布于2019-05 浏览:2754 回复:2
0
收藏
快速回复

can not find success.  any suggestions ?  (中文还可以)

1. 语音识别极速版 payment opened

2. Official demo: https://github.com/Baidu-AIP/speech-demo/blob/master/rest-api-asr/php/asr_raw.php

3. OK: 收费版打开以下信息 打开注释的话请填写自己申请的appkey appSecret ,并在网页中开通极速版.

4. Token return successfully.

5. Token scope OK: "scope":"brain_enhanced_asr audio_voice_assistant_get audio_tts_post public brain_all_scope wise_adapt lebo_resource_base lightservice_public hetu_basic lightcms_map_poi kaidian_kaidian ApsMisTest_Test\u6743\u9650 vis-classify_flower lpq_\u5f00\u653e cop_helloScope ApsMis_fangdi_permission smartapp_snsapi_base iop_autocar oauth_tp_app smartapp_smart_game_openapi oauth_sessionkey smartapp_swanid_verify smartapp_opensource_openapi smartapp_opensource_recapi"

6. "err_msg":"authentication failed.","err_no":3302,"sn":"****"

 

收藏
点赞
0
个赞
共2条回复 最后由用户已被禁言回复于2022-04
#3008********17回复于2019-05

谢谢。

用asr_json.php可以success.

$params = array(

"dev_pid" => $dev_pid,
"format" => $format,
"rate" => $rate,
"token" => $asrFAST_token,
"cuid"=> $cuid,
"speech" => $base_data,
"len" => strlen($audio),
"channel" => 1,
);

用asr_raw.php没有success. 

0
#2用户已被禁言回复于2019-05

3302 是鉴权错误如果确定 ak sk token都没有问题的话,检查音频文件格式。可先使用百度官方提供的样例测试你的项目。

0
TOP
切换版块