用于使用百度语音识别API执行语音识别的库。
BaiduYuyin的Python项目详细描述
要求
- pyaudio
安装
$ pip install PyBaiduYuyin
用法
Note: I’m still working on this part, contributions are welcomed.
TTS(文本到语音)
详细信息可以在源代码中找到。
示例:
import PyBaiduYuyin as pby tts = pby.TTS(app_key=YOUR_APP_KEY, secret_key=YOUR_SECRET_KEY) tts.say("你好")
认可度
识别模块的用法与 SpeechRecognition, 除了使用Baidu App Key和Baidu Secret Key而不是 Google App Key。