Python Based Voice Assistant Presentation
Python Based Voice Assistant Presentation
• recognizer = sr.Recognizer()
• with sr.Microphone() as source:
• print("Listening...")
• audio = recognizer.listen(source)
• try:
• text = recognizer.recognize_google(audio)
• print(f"You said: {text}")
Code Example - Text-to-Speech
• import pyttsx3
• engine = pyttsx3.init()
• engine.say("Hello, how can I assist you
today?")
• engine.runAndWait()
Conclusion
• Summary: Recap the features and modules
used.
• Future Work: Potential improvements and
additional features.
• Q&A: Open the floor for questions.