mc85 mc85 - 3 months ago 24x
Python Question

how to use speech-recognition of mac from within python

There is this awesome threat, showing how to use the say-command from mac within python:
Python Text to Speech in Macintosh

Is there anything similar for the speech-recognition?
I would like to use the german speech-recognition from mac to get a user-input.

Other possible answer for this question would be a speech-recognition within python for german-languages.



This would work and the SpeechRecognition package will handle German

import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as source:
   audio = r.listen(source)