pip install pyttsx3
pip install pypiwin32
the code:
import pyttsx3;
engine = pyttsx3.init();
engine.say("My wife is Sheryl and my two son's are Kiefer and Jairus");
engine.runAndWait() ;
that's it, eureka!
Showing posts with label speech recognition. Show all posts
Showing posts with label speech recognition. Show all posts
Wednesday, January 23, 2019
Tuesday, January 22, 2019
speech recognition
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/
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:
Posts (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 ...
-
I spend many days to figure it out my problem in Vagrant. After I posted my question in stackoverflow, nobody is helping me instead they dow...
-
I used KeePass long time ago and until now I'm still using it. It's a great tool to save your password encrypted. At my home, I sa...