有一个可怕的威胁,展示了如何在 python 中使用来自 mac 的 say-command: Python Text to Speech in Macintosh
语音识别有没有类似的东西? 我想使用 mac 的德语语音识别来获取用户输入。
这个问题的其他可能答案是在 python 中对德语进行语音识别。
最佳
最佳答案
这会起作用,SpeechRecognition 包将处理德语
import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as source:
audio = r.listen(source)
关于python - 如何在 python 中使用 mac 的语音识别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38060614/