Questions tagged [pyttsx]

pyttsx is a Python package supporting common text-to-speech engines on Mac OS X, Windows, and Linux.

pyttsx is a package supporting common engines on Mac OS X, Windows, and Linux.

References:

186 questions
2
votes
1 answer

'NoneType' object has no attribute 'earlierDate_'

I am just starting to learn Python and in order to do so, I was working on implementing a simple chat-bot. That worked fine until I wanted to implement some text-to-speech functionality which speaks the lines while they are appearing on the…
2
votes
2 answers

Having problem using 'pyttsx3' on Ubuntu 20.04

I am on Ubuntu 20.04. Tried the following code on Pycharm CE. Just to speak out "Hello World". import pyttsx3 pyttsx3.speak("Hello World!") Getting the following output showing tons of errors. Please help! Traceback (most recent call last): File…
2
votes
2 answers

pyttsx3 module is not showing all installed voices

I am using the pyttsx3 module. I have the the Microsoft James voice installed and I can hear it when pressing the "preview voice" button in the windows speech settings. However when I try to view all the voices, only "Microsoft David Desktop -…
2
votes
2 answers

Python: Portaudio Errno -9986 Internal PortAudio error

I'm trying to run a simple python speech recognition program. The code is as follows: import speech_recognition as sr import pyttsx3 r = sr.Recognizer() engine = pyttsx3.init("nsss",True) engine.say("hello") engine.runAndWait() while True: …
Big Dumb
  • 120
  • 1
  • 7
2
votes
0 answers

Can not use pyttsx3 on real hosting

I have a code which greets user on the page using pyttsx3 module. On localhost it works very well, but on hosting doesn`t. The main question is: how can I serve the generated sound and send it across the internet to the…
user13628015
2
votes
0 answers

I want my python speech recognition work in between events happening

Currently I'm working on voice assistant . I have created an event called get_news(). get_news() uses web scraping to get news from a website . I have used Python speech recognition module To recognize my voice and Pyttsx3 module to read the news…
2
votes
1 answer

I am having trouble to create a thread and running it through another definition in python

I've been trying to build an application which takes input as text and gives output as speech. I referred this site to get to know about Text-To-Speech modules in python: https://pythonprogramminglanguage.com/text-to-speech/ when i ran the program…
Santhosh
  • 81
  • 2
  • 11
2
votes
0 answers

python error importing pyttsx

I have been trying to make a basic speech recognition system in python, using pyttx, however, when i run my code: import speech_recognition import pyttsx I get this error: Traceback (most recent call last): File…
2
votes
7 answers

Pyttsx Voice Gender

Good afternoon, I'm learning and using pyttsx for speech, the thing is that I want to use it as a "female" voice but I can not do it using this code: import pyttsx as pt from pyttsx import voice engine = pt.init() voices =…
Aldair - OH
  • 31
  • 1
  • 1
  • 4
2
votes
3 answers

How to save the output of PyTTSx to wav file

I'm trying to find a solution why my code doesn't work properly. I used solution from Recording synthesized text-to-speech to a file in Python, and it kinda didnt worked out for me. The question is why 2 methods/functions text_to_wav and…
degath
  • 1,530
  • 4
  • 31
  • 60
2
votes
0 answers

Python pyttsx engine not returning after speaking given text

I'm implementing a simple program for Text-to-speech conversion using the python library pyttsx. It's working fine and uttering all given text as expected but after completion of execution it's not returning to terminal prompt. It is also returning…
2
votes
1 answer

How to prevent pyttsx from producing broken speech when used with pygame?

I have the following setup. a pygame window which reads keyboard inputs using the event.keyDown and displays some text when the right arrow key is pressed. In addition to this, the text displayed has to be spoken by eSpeak. I am doing this with the…
2
votes
3 answers

(no longer seeking answers) do I need to download a separate library of voices for pyttsx?

I downloaded pyttsx, and it seems to work fine except that the list of voices only has one voice (Microsoft Anna). I'd like to be able to change it to a male voice, but nothing I tried or research worked! Here's my current test code: import…
Davis Diercks
  • 629
  • 1
  • 10
  • 11
1
vote
0 answers

pyttsx3 giving me dead kernel

the hole code here is to detect the mask and no mask, if its detect that the person is not wearing mask then it will trigger pttsx3.say() but when am using in the code its suddenly giving me a dead kernel after properly execution. but when am using…
1
vote
0 answers

How to setup multilingual text to speech API for text with mixed-language inputs?

i was trying gtts this way : from gtts import gTTS mytext = 'Welcome to gtts আজ একটি ভাল দিন' language = 'en' myobj = gTTS(text=mytext, lang=language, slow=False) myobj.save("welcome.mp3") you can see the text i am working with can contain multiple…
1 2
3
12 13