Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

How to fix the below mention error in python

$
0
0
  1. context:- your textbelow is my code and It is showing error "import speech_recognition as sr ModuleNotFoundError: No module named 'speech_recognition'" `` import os import time import playsound import speech_recognition as sr from gtts import gTTS def speak(text): tts= gTTS(text=text,lang="en") filename="voice.mp3" tts.save(filename) playsound.playsound(filename) speak("hello tim") `` I am just making for speech recognition

Viewing all articles
Browse latest Browse all 12111

Trending Articles