微信公众平台开发模式 微信 语音识别 公众平台 消息接口 语音识别
微信公众平台下的语音识别实现流程相当复杂。
目前可以通过模拟登录的方式获取语音文件
一般接口对编码有指定要求,所以需要转码
获取识别结果与置信度,取最高值
"; foreach($data['hypotheses'] as $i) echo "
通过语法规则对结果进行分析,可同时使用分词的方法来分析
Base URL: http://translate.google.com/translate_tts
It converts written words into audio. It acceptsGETrequests.
q
The query string to convert to audio
tl
Translation language, for example,arfor Arabic, oren-usfor English
ie
Encoding format, use defaultUTF-8
http://translate.google.com/translate_tts?ie=UTF-8&q=%D8%A7%D9%84%D8%B3%D9%84%D8%A7%D9%85%20%D8%B9%D9%84%D9%8A%D9%83%D9%85&tl=ar
http://translate.google.com/translate_tts?ie=UTF-8&q=Hello%20World&tl=en-us