its 11pm and I found something interesting, this time I tried to implement speech recognition.
actually, its very easy
1. pip install SpeechRecognition
2. conda install -c anaconda pyaudio
3. the code
import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as source:
print('Speak anything:')
audio = r.listen(source)
try:
text = r.recognize_google(audio)
print('you said: {}'.format(text))
except:
print('sorry could not recognize your voice...')
4. run it! so simple. Eureka!
reference:
https://www.youtube.com/watch?v=K_WbsFrPUCk
https://realpython.com/python-speech-recognition/
Subscribe to:
Post Comments (Atom)
free online comma separating tool
https://delim.co/#
-
In my current company, I'm using Visual Paradigm for my documentation task. If you go there site, you can either download community and ...
-
One of the functionality in our system is can able to generate a report using Jasper report. We have a Jasper server setup in another ip ad...
-
https://www.liquidweb.com/kb/how-to-install-nvm-node-version-manager-for-node-js-on-ubuntu-12-04-lts/
No comments:
Post a Comment