How to change the voice in pyttsx3?

This code is working but I'm only able to switch between the voices which came preInstalled in Microsoft Windows. These voices are "Microsoft David Mobile" and "Microsoft Zira Mobile". Later I...

AttributeError: module 'pyttsx3' has no attribute 'init'

First of all, I'm using: Windows 10 Python 3.6.2 (but I've tried with Python 3.5.4 too) pyttsx3 module I'm trying to use pyttsx3 but I just can't initialize it, with the official code...

Python 3.6 ModuleNotFoundError: No module named 'pyttsx3'

I have absolutely no idea what can be the problem. I did the pip installer (pip install pyttsx3) and re-installed the JetBrains PyCharm, but it still not working.

Python - NameError: name 'engine' is not defined / Driver not found

I have been trying to work on an AI Project in PyCharm using this video: https://www.youtube.com/watch?time_continue=179&v=rU_ppVsyJu8 Here is the code: import sys print(sys.path) import...

Python keyerror 'sapi5'

One question of this type is previously asked but is not very helpful. I am using version Python3.6 in Windows 10 OS. I am getting an error, KeyError: 'sapi5' and During handling of the above...

Pyttsx isn’t showing installed languages on windows 10

I am trying to use pyttsx3 to say French text. However, only English is available. Following the advice of https://stackoverflow.com/questions/44858120/how-to-change-the-voice-in-pyttsx3, I tried...

Pyttsx3 callbacks not triggering when using threading

I have used threading as a way to get around the "run and wait" default functionality of pyttsx3 so I can interrupt something being said mid speech. However, this blocks the callbacks of the...

How to fix error “ERROR: Command errored out with exit status 1: python.” when trying to install pyttsx3 using pip

ERROR: Command errored out with exit status 1: command: 'c:\users\mayukh\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] =...

Error finding module named pywintypes (Text-to-Speech in python using pyttsx3 on windows 10)

I have tried every solution on Stackoverflow but my error doesn't seem to get solved . I have tried uninstalling and installing this package pyttsx3 also . Please help me . here is the error I am...

Problem with pyttsx3 module not working in Visual Studio and Jupyter Notebook

I have the following code: import pyttsx3 engine = pyttsx3.init() engine.say("I will speak this text") engine.runAndWait() Note: I have already installed the pyttsx3 module using the command pip...

python jarvis not running

I am having a little trouble coding Jarvis. Whenever I say open youtube it just won't open and even Wikipedia won't run. This is my code: import pyttsx3 import speech_recognition as sr import...

Is there a way to change pitch of local engine text-to-speech voice in python

I am using text-to-speech in my python project but not getting any way to increase or decrease the pitch level of the local machine voice in python. Here is my basic code: import pyttsx3 import...

How add WAKE-UP function in python?

I have made a voice assistant with python. I wrote this code to add wake up function in my voice assistant. WAKE = "hey jarvis" SERVICE = authenticate_google() print("Start") while True: ...

How can I interrupt pyttsx3 and playsound?

I'm trying to make an assistant but when the user wants to play a song, it keeps playing it until finishes. I want it to stop when the user presses a key. It is same for the engine.say(), too. I...

I am not able to change voices using pyttsx3 module! Any indexing returns me DAVID only

I am trying to build a virtual assistant. I need a voice called PaulM which is present in my regedit. But any index returns me only DAVID voice, not even ZIRA or any other. import pyttsx3 import...

My pyttsx3 is not working properly as it doesn't give david voice

I want the Microsoft David Voice for my pyttsx3 module. I wrote the following code. With voices[0].id it is giving Zira (Female voice) and when I use voices[1].id it shows error list is out of...

I'm Having Problem in pydroid 3 on my android device with espeak library

code: So This is my pydroid3 python script and when i try to run it import pyttsx3 speaker = pyttsx3.init() speaker.say("Mama I Can Talk ") speaker.runAndWait() error: This is the error that...

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

I am making a pyttsx3 chat bot however this error occurred: OSError: libespeak.so.1: cannot open shared object file: No such file or directory This error also occurred: KeyError: None Here is my...

How to make tts (pyttsx3) speak something after loading the Tkinter window

So I am making a project which has numerous buttons and windows using Tkinter and I implemented tts using pyttsx3 module. Consider the following example: import pyttsx3 from Tkinter import...

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

I was making a virtual assistant in python, but I see the following error. ImportError: No system module 'pywintypes' (pywintypes39.dll) I am using Windows 10 and Python 3.9 Here is the...

Handshake operation timed out error while installing modules

I installed python 3.8 on my laptop. It was all fine then I was setting up modules so I can start my work I installed one module pyttsx3 then it asked to upgrade pip I did that then I had to...

TypeError: listen() missing 1 required positional argument: 'source'

import pyttsx3 import speech_recognition as sr import datetime import wikipedia import webbrowser import random import os #Speakfunction BACKEND print("Initializing FRIDAY") engine =...

kivy error - kivy.factory.FactoryException: Unknown class <WindowManager>

so this is my main.py code- import pyaudio import speech_recognition as sr import pyttsx3 from playsound import playsound import kivy from kivy.app import App from kivy.uix.gridlayout import...

On Windows Server 2019, pyttsx3 called via cgi/Apache produces empty wav files

I have Apache2.4 running on a Windows Server 2019 VM. Apache is set up so I can use python in my cgi-bin scripts. I have a script that does #!C:/Python39/python.exe text = "This is some example...

aplay: main:831: audio open error: No such file or directory

When I run this code: import pyttsx3 engine = pyttsx3.init() engine.say("Hello, World!") engine.runAndWait() It shows: aplay: main:831: audio open error: No such file or directory I have...

How to show images in window in PySimpleGUI?

I'm working on PySimpleGUI and I want to show images in the Window of PySimpleGUi. Basically, first I'm converting my sentence into characters and now I want to simply show an image of that...

IndexError: tuple index out of range when I try to create an executable from a python script using auto-py-to-exe

I have been trying out an open-sourced personal AI assistant script. The script works fine but I want to create an executable so that I can gift the executable to one of my friends. However, when...

Failed to execute script 'pyi_rth_win32comgenpy' due to unhandled exception: Module 'pythoncom' isn't in frozen sys.path

I am trying to convert my .py file to an .exe file and I have tried all methods (auto-py-to-exe, pyinstaller, cz_freeze) and it does create the exe file but it always gives an error or the window...

Jack server is not running or cannot be start error in raspberry pi python

ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_headpho.pcm.front.0:CARD=0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error:...

How to know what item is chosen from array using random library?

I am trying to make a bot that asks a person s basic true/false questions. I have two .txt files (one with questions and one with answers) which I open then read and remove the new line character...