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":"****"
谢谢。
用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.
3302 是鉴权错误如果确定 ak sk token都没有问题的话,检查音频文件格式。可先使用百度官方提供的样例测试你的项目。