python text to speech
#run in Cmd or in terminal
#pip install pyttsx3
import pyttsx3
pyttsx3.speak("hi user")
python text to speech
#run in Cmd or in terminal
#pip install pyttsx3
import pyttsx3
pyttsx3.speak("hi user")
python text to speech
pip install pyttsx3
import pyttsx3
friend = pyttsx3.init()
friend.say("you are very smart")
friend.runandwait()
how to use speech recognition in python
import speech_recognition as sr
recognizer = sr.Recognizer()
microphone = sr.Microphone()
with microphone as source:
recognizer.adjust_for_ambient_noise(source)
audio = recognizer.listen(source)
command = recognizer.recognize_google(audio)
print(command)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us