基于php的语音识别接口调用代码实例

接口描述:基于php的语音识别接口调用代码实例

接口平台:聚合数据

// +----------------------------------------------------------------------

//----------------------------------

// 语音识别调用示例代码-聚合数据

// 在线接口文档:http://www.doczj.com/doc/17042987be23482fb5da4cbf.html/docs/134

//----------------------------------

header('Content-type:text/html;charset=utf-8');

//配置您申请的appkey

$appkey= "*********************";

//************1.语音识别接口************

$url= "http://www.doczj.com/doc/17042987be23482fb5da4cbf.html/voice_words/getWords";

$params= array(

"key"=> $appkey,//APP Key

"file"=> "",//上传的音频文件(采样率16k或者8k(rate),采样精度16bit(b it),单声道的pcm或者wav格式的音频)

"rate"=> "",//采样率(16000或者8000)

"pname"=> "",//包名

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐