首页 版块 访问AI主站 注册 发帖
Lewenton_Soung
9
积分 积分商城
0
获赞
原帖已删除
Ta的回复 :参数没有问题。 用: $response = file_get_contents($auth_url); 替换源代码中的: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $auth_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); $response = curl_exec($ch); if(curl_errno($ch)) {     print curl_error($ch); } curl_close($ch);
0
SSL certificate problem, verify that the CA cert is OK.
Ta的回复 :参数没有问题。 用: $response = file_get_contents($auth_url); 替换源代码中的: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $auth_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); $response = curl_exec($ch); if(curl_errno($ch)) {     print curl_error($ch); } curl_close($ch); 就能解决了
5
原帖已删除
Ta的回复 :是token更新服务的那段代码 语言识别服务的那段代码直接用没有任何问题
0
wav 格式不行
Ta的回复 :恩 格式转换出了问题
5
PHP老报证书问题
Ta的回复 :把: $auth_url = "https://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id=".$apiKey."&client_secret=".$secretKey; 替换为: $auth_url = "http://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id=".$apiKey."&client_secret=".$secretKey; 其实就是把 https 替换为 http 完整的(Web)录音+百度语音识别  Demo:http://www.jnzhsc.net/blog/?p=13
3
wav 格式不行
Ta的回复 :整理后的 完整的(Web)录音 + 百度语音识别:Demo:http://www.jnzhsc.net/blog/?p=13
5
原帖已删除
Ta的回复 :把: $auth_url = "https://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id=".$apiKey."&client_secret=".$secretKey; 替换为: $auth_url = "http://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id=".$apiKey."&client_secret=".$secretKey; 其实就是把 https 替换为 http 完整的(Web)录音+百度语音识别  Demo:http://www.jnzhsc.net/blog/?p=13
0
SSL certificate problem, verify that the CA cert is OK.
Ta的回复 :把: $auth_url = "https://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id=".$apiKey."&client_secret=".$secretKey; 替换为: $auth_url = "http://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id=".$apiKey."&client_secret=".$secretKey; 其实就是把 https 替换为 http 完整的(Web)录音+百度语音识别  Demo:http://www.jnzhsc.net/blog/?p=13
5
切换版块
智能客服