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
0
votes
0 answers

OSError: libespeak.so.1: cannot open shared object file: No such file or directory Error

I was playing with the TTS libs and when I was using pyttsx3, it showed me this error OSError: libespeak.so.1: cannot open shared object file: No such file or directory But, I have already downloaded libespeak1 through the terminal. I am using…
Leo Red
  • 11
  • 5
0
votes
1 answer

ModuleNotFoundError: No module named 'pyttsx3'

I am running a program in Sublime text and I get the error: ModuleNotFoundError: No module named 'pyttsx3' I opened Command Prompt and typed in: pip install pyttsx3 and that's what I get Collecting pyttsx3 Using cached…
user3814312
  • 691
  • 2
  • 7
  • 16
0
votes
1 answer

Multithreading should close the whole process but doesn't

I am trying to do a simple executable that import a PDF and with pyttsx3 reads the PDF. As pyttsx3 can't pause the reading I created a small function with psutil that kills the process named Python.exe (May not be the ideal way). a simple interface…
0
votes
0 answers

How do I transfer the output from pyttsx3 to a variable for DSP

I'm running a Raspberry Pi4 with Python 3.7 and pyttsx3. I'm planning to use pyttsx3 to verbally respond to "commands" I issue. I also plan to visualise the output speech on a neopixel strip (think "Close Encounters" on a miniature scale.) The…
0
votes
2 answers

Why my tkinter code is not executing before my ttsx3 code

here is my code: from tkinter import* import pyttsx3 import…
0
votes
2 answers

How to fix pyttsx3 module error in python 3.8

While using the pyttsx3 module in my python 3.8.5 virtual environment by this code: import pyttsx3 def speak(speak): engine = pyttsx3.init() voices = engine.getProperty('voices') engine.setProperty('voice', voices[1].id) …
ApidBoy
  • 31
  • 1
  • 5
0
votes
0 answers

Segmentation fault while running the following code

I want to convert the numpy.pdf file to audio format and play along but I keep getting segmentation fault. I posted wrong code before.Here is the actual one.It worked if I play it but get segmentation error while saving the file outside the loop and…
-1
votes
1 answer

Send pyttsx3..save_to_file output to api

I am trying to send pyttsx3.save_to_file to an api endpoint using python. e.g. i create a Flask api endpoint which receive some text from user -> convert text to speech -> and return the mp3 as byte array. How this can be acheived?
raju
  • 6,448
  • 24
  • 80
  • 163
-1
votes
1 answer

how to catch just the new object in the last frame in variable in opencv object detection

my problem is that i wan my program to say just the new object that appear in front of the camera and not keep saying and repeating the object it sees, like i want it to say 'person' just one time when it sees a person , and when something new came…
-1
votes
1 answer

I'm trying to use pyttsx3 to create simple voice assistant but keep getting errors

warnings.warn( Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyttsx3/init.py", line 20, in init eng = _activeEngines[driverName] File…
-1
votes
2 answers

why is my speech recognition not working in python

I am working on this project and its simply a desktop Assistant I am using speech recognition and pyttsx3 but the speech recognition is not working after the try nothing is executing it just jumps to except and passes can someone tell me why? and…
-1
votes
1 answer

How do I add personality and emotion to voice using pytssx3?

import pyttsx3 engine = pyttsx3.init() engine.say("Take your words back! Stackoverflow is the best out there. HANDS DOWN!") engine.runAndWait() I can change the rate, choose the voice between male or female but its pretty robotic. I am using this…
leonardo
  • 140
  • 10
-1
votes
1 answer

Python : pyttsx3

I want to changing voices and speech rate in pyttsx3 engine = pyttsx3.init() voices = engine.getProperty('voices') engine.setProperty('voice', voices[1].id) #And engine.setProperty('rate', 150)
-1
votes
1 answer

Can anyone tell me how to fix this error nomodulenaned pyttsx3.drivers.sapi full error here down

SO here I imported pyttsx3 and wanted my ai to speak but it gave me a error full error here https://drive.google.com/file/d/12fa4KdSQ6JiEYjJHljc3JuLiFW-eYtKD/view?usp=sharing import pyttsx3 Assistant = pyttsx3.init('sapi.5') voices =…
-1
votes
1 answer

TypeError: 'Engine' object is not callable

import pyttsx3 as pyt import datetime as DT hour = int(DT.datetime.now().hour) print(hour) # enter code here speak = pyt.init() voices = speak.getProperty('voices') speak.setProperty('voice', voices[1].id) if hour>= 0 and hour<12: speak("Good…
1 2 3
16
17