How to use text to speech in python

preview_player
Показать описание
Have you ever heard the robot automatically generated voice and wondered how you can make it? Well look no further, we’ve got the perfect tutorial for you. In python, pyttsx3 is used to make a text to speech robot voice.

This video was edited by Jason, thanks Jason.

This is not how to use google speech to text api in python. This is how to use text to speech in python, a pyttsx3 tutorial.
Рекомендации по теме
Комментарии
Автор

Hey guys, I'm sponsored now! Try Maw Energy, a simple solution to energy. Get your first 60 servings free!

itsBenjamon
Автор

Your video has become a steeping stone to a kick bot. Keep on trucking!

powerupminion
Автор

I, in fact, enjoyed watching your video

erdemcanaz
Автор

I installed pyttsx3 but it did not work what should I do?

Idk-nlfe
Автор

I like your editing style and also python if u can make more python cool stuff, please do.Thanks

kind
Автор

I tried this but it wouldn't actually output any audui

dadbear
Автор

dude what a funny n good video, mk more!!

JuanMartinez-dhtf
Автор

im not hearing anything when executing the code? no errors show up it just stops how do i fix this?

bloesox
Автор

Good video. I wish you well in your gayiddity

turolretar
Автор

I want to make an input variable but I don’t want it to say the input, I want it to say the actual text

vikramsundaram
Автор

you mean "this is the UniCorner"

InSightr
Автор

Audio not working... Engine object has no attributes

pastorobej
Автор

If I want the pytts to read an input Q prompt at the same time it displays how do I do that. Right now I use the engine.say( ) line before the input( ) line so the input box displays later and the lady announces its display and what to do in that box 2 hours earlier. Doesn't look good in the Python app. What do I do?

letsjoinhands
Автор

hey, is it possible to use festival tts for python? I couldn't find any answers :(

AnnLixie
Автор

How to extract the duration of the audio?

anozatix
Автор

i installed it but it says the import doesn't work

FigNewtonBars
Автор

Why doesnt my command bar recognise python? I have it installed???

komuinc
Автор

I get this error, among many more haha: eng = _activeEngines[driverName]

here is the full error lol:
Traceback (most recent call last):
File "C:\Users\myname\AppData\Local\Programs\Python\Python310\lib\site-packages\pyttsx3\__init__.py", line 44, in init
eng = _activeEngines[driverName]
File "C:\Users\owenr\AppData\Local\Programs\Python\Python310\lib\weakref.py", line 137, in __getitem__
o = self.data[key]()
KeyError: 'sapi5'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File Folder/TTS.py", line 3, in <module>
engine = pyttsx3.init("sapi5")
File "C:\Users\myname\AppData\Local\Programs\Python\Python310\lib\site-packages\pyttsx3\__init__.py", line 46, in init
eng = Engine(driverName, debug)
File "C:\Users\myname\AppData\Local\Programs\Python\Python310\lib\site-packages\pyttsx3\engine.py", line 52, in __init__
self.proxy = driver.DriverProxy(weakref.proxy(self), driverName, debug)
File "C:\Users\myname\AppData\Local\Programs\Python\Python310\lib\site-packages\pyttsx3\driver.py", line 75, in __init__
self._module =
File "C:\Users\myname\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\myname\AppData\Local\Programs\Python\Python310\lib\site-packages\pyttsx3\drivers\sapi5.py", line 3, in <module>
import win32com.client
File "C:\Users\myname\AppData\Local\Programs\Python\Python310\lib\site-packages\win32com\__init__.py", line 5, in <module>
import win32api, sys, os
ModuleNotFoundError: No module named 'win32api'

owenrogers
join shbcf.ru