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
0
votes
1 answer

Pyttsxx / pyttsx3 error in init function ( no drivers found )

I fixed the pyttsx's , engine.py and driver.py file with some help on stackOverflow's solution but the problem still persists ( im trying to run a simple text to speech program ) import pyttsx3 engine = pyttsx3.init() engine.say("hello…
0
votes
1 answer

Having trouble in installing and importing pyttsx3(text to speech conversion library) in Python VS code

I am trying this AI assistant Jarvis from a YouTube tutorial and I have to submit it as a final project. In order to start the code, I have to first import pyttsx3 which is a text-to-speech conversion library in Python. When I write 'pip install…
0
votes
1 answer

pyttsx3 hangs up on converting big files to mp3

code: import os import glob import pyttsx3 engine = pyttsx3.init() file_pattern = '*.txt' file_name_list = [] if '*' in file_pattern: file_name_list.extend(glob.glob(file_pattern)) # speech rate engine.setProperty('rate', 600) rate =…
starcat
  • 3
  • 1
0
votes
1 answer

Microphone is not Listening

I made a Python Program you can say a Artificial Intelligence . But when I run it , it show Listening but does not listen me I check my mic with other apps it works fine But it is not working in my code. The code is as follows:- import pyttsx3…
user16857772
0
votes
1 answer

os.system opening same application multiple times in python

This program is basically a hardcoded personal assistant which I use to do basic stuff. I tell the program to 'Open Firefox', it opens it perfectly, When I give another command, lets say 'Open Sublime', it will still open Firefox. Why is that? I…
0
votes
0 answers

Thread target function isn't finishing

I have a thread being created at a certain point in a loop, but it won't create the thread again because the thread's target hasn't completed. I'm using pyttsx3 to do speech to text in the following function: def speak(sentence): …
Kookies
  • 75
  • 10
0
votes
0 answers

Issue with pyttsx3

I am trying to set up a condition so that I can switch between voices for my AI however I am running into the error TypeError: 'int' object is not subscriptable This is my code for this section: def speak(audio): engine.say(audio) …
0
votes
1 answer

I have a problem with pyttx3. what should i do?

Ubuntu is installed on my laptop. import pyttsx3 engine=pyttsx3.init() engine.say('Sa1lly sells seashells by the seashore.') /usr/bin/python3 /home/shohruz/Desktop/Development/solo.py Traceback (most recent call last): File…
UZ Hacker
  • 9
  • 1
0
votes
0 answers

Can you use pyttsx3 to say something in discord voice channel

I want to create a bot that reads the messages of a specific text channel and speaks it you loud in a voice channel I use pyttsx3 to say it out loud locally on my laptop. import discord import pyttsx3 class MyClient(discord.Client): async def…
0
votes
1 answer

Voice assistant not getting terminated

Hello I am currently making a voice assistant and I want to terminate it but it isnt getting termintating and just getting repeated elif 'you can sleep now' in query or 'take rest' in query: speak('ohk master I am going…
0
votes
1 answer

ImportError: No system module 'pywintypes' (pywintypes38.dll)

I was making a python friend using pyttsx3, but I see the following error raise ImportError("No system module '%s' (%s)" % (modname, filename)) ImportError: No system module 'pywintypes' (pywintypes38.dll) Am using windows and python 3.Any help…
Admuk
  • 1
  • 1
0
votes
0 answers

I'm trying to create a speak app but i got error as Segmentation fault

I'm trying to build text speaking app with Python. Here this is my code: import pyttsx3 import PyPDF2 book=open("LifesAmazingSecets.pdf",'rb') pdfReader=PyPDF2.PdfFileReader(book) pages=pdfReader.numPages print(pages) engine =…
user13743271
0
votes
0 answers

Python SpeechRecognition mutes other sounds

I don't know if SpeechRecognition or PyAudio is causing this, but when I run my voice assistant program, all the sounds on the computer are muted and I have to restart the application to turn the sound back on. How can I prevent this? My…
0
votes
0 answers

How can I acquire the internal source code for specific Python module methods using VScode?

TLDR: What I want to acquire is the source code for pyttsx3.Engine.proxy._driver.say, in order to modify its source code to save the converted audio file instead of speaking it, but unfortunately, this was it. Is there any way to acquire these kinds…
lucidcloud
  • 73
  • 6
0
votes
1 answer

Trouble Integrating Speech Recognition into PysimpleGUI + Search Bot

I've recently tried my hand at a simple search engine using TTS. However, I tried integrating Speech to text for the search field in Pysimple GUI and I have hit a road block. I'm able to get the pysimpleGUI to recognize the words that I say, and…