Question: Python voice assistant "ModuleNotFoundError: No module named 'gtts"
I'm trying make a voice assistant with python in VScode but i have a trouble. I installed all module already, one of module is not working. The gTTs(Google Text-to-Speech) is makes a error which is "ModuleNotFoundError: No module named 'gtts'"
I installed gTTs with pip installer in terminal again and python error again a lot but it did not happen anything. Just it shows to me "Requirement already satisfied"
import speech_recognition as sr from gtts import gTTS import os import time import playsound def speak(text): tts = gTTS(text=text, lang='en') filename = 'jarvis_email_alert.mp3' tts.save(filename) playsound.playsound(filename) speak("hello tim")
PS C:\Users\huzey\OneDrive\Masaüstü\Python> & C:/Users/huzey/AppData/Local/Microsoft/WindowsApps/python3.8.exe c:/Users/huzey/OneDrive/Masaüstü/Python/main.py Traceback (most recent call last): File "c:/Users/huzey/OneDrive/Masaüstü/Python/main.py", line 2, in <module> from gtts import gTTS ModuleNotFoundError: No module named 'gtts' PS C:\Users\huzey\OneDrive\Masaüstü\Python>
How can i get the solution.