Questions tagged [pyttsx3]

pyttsx3 is a text-to-speech conversion library in Python. Unlike alternative libraries, it works offline, and is compatible with both Python 2 and 3.

pyttssx3 is an offline text-to-speech library for Python. It supports multiple TTS engines, including Sapi5, nsss, and espeak.

251 questions
-1
votes
1 answer

I want to develop a talk program using python

and iam looking for libraries that supports Arabic-SA (Saudi Arabia) language any suggestions?
-1
votes
1 answer

How to add voices to AI program in python

I have made an AI using python and the default voice for text to speech is set as Microsoft David but when i try to change it there are only two voices whereas i have installed others also from settings which are not shown there. Any chance to add …
Rajat Soni
  • 151
  • 12
-1
votes
3 answers

ModuleNotFoundError: No module named 'pyttsx3' even after downloading the library

Even after downloading the library pyttsx3 it cannot import. It says: lmodule not found error. I tried all the methods available as: using pipenv upgrading pip But I am still dealing with same problem:
-1
votes
2 answers

pyttsx3 unknown voice id

I have tried for over 2 hours trying to figure this out, not 100% sure but i think it has to do with the fail in the sapi5.py module because i dont have the following voices installed: MSSAM =…
-1
votes
1 answer

os.open is not working whie I am trying to play music

While I am trying to open music from python using speech it was not working properly. enter image description here The images of code and the error I am facing was attached elif 'play music' in query: music_dir='/home/lokesh/Music/fav' …
Lokesh
  • 19
  • 2
-2
votes
1 answer

Text-to-speech convert to wav in python

I'm using pyttsx3 for text-to-speech tasks. Here's an example https://github.com/padmalcom/AISpeechAssistant/blob/main/code/02_text_to_speech/simple_main_02.py Is there a way to convert the spoken words directly to a wav file?
admdev
  • 11
  • 3
-2
votes
1 answer

How to make a part of a code go in loop without duplicate the code in Python

I'm using pyttsx3 to make a talking bot . and it work import pyttsx3 f = pyttsx3.init() a = input("type something: ") if a == "hello": print(f.say("Hi How are you")) f.runAndWait() but if I want the code to repeat the operation when ever its…
JackQx
  • 182
  • 1
  • 13
-3
votes
1 answer

Import Error and Syntax Error when importing pyttsx3

I am an absolute beginner in python. I was trying to make jarvis from youtube videos. But they told to install pyttsx3 through pip and I also installed it but it is not working on visual studio code it is showing import error and syntax error. Can…
1 2 3
16
17