text-to-speech

"nvidia/tts_en_fastpitch" not getting installed in python

"nvidia/tts_en_fastpitch" not getting installed in python Question: I am trying to create TTS with Nvidia NeMo tts_en_fastpitch model in python. But can not install fastpitch model. These are the errors: from nemo.collections.tts.models import HifiGanModel from nemo.collections.tts.models import FastPitchModel spec_generator = FastPitchModel.from_pretrained("nvidia/tts_en_fastpitch") model = HifiGanModel.from_pretrained(model_name="nvidia/tts_hifigan") [NeMo W 2023-01-21 18:49:02 optimizers:55] Apex was not found. Using the …

Total answers: 1

Why does python pyttsx3 ignore my 3rd input?

Why does python pyttsx3 ignore my 3rd input? Question: I am trying to get pyttsx3 to say text, a variable, and then more text, but for some reason it ignores the 3rd input and moves on to the next line of text. Here is the code: elif "what is the weather" in query: replaced_temp = …

Total answers: 1

Azure text to speech and play it in virtual microphone using python

Azure text to speech and play it in virtual microphone using python Question: My use case is to convert text to speech using Azure and then play it into a virtual microphone. option 1 – with an intermediate .wav file I tried both steps manually on a Jupiter notebook. The problem is, the output .wav …

Total answers: 2

Make python code function as microphone using pyttsx3?

Make python code function as microphone using pyttsx3? Question: Hello I often have the trouble of not being able to speak with my friends over discord at night as my better half sleeps right behind me. Is there a way that I can use the small code I made here to "speak" for me when …

Total answers: 1

How to change the speed of speech in amazon polly (python)

How to change the speed of speech in amazon polly (python) Question: I want to lower the speed at which the tts speaks at, I searched around for a couple of hours, but can’t find the answer. Please help. Thank You in advance. Asked By: Bambi2k21 || Source Answers: From Voice Speed – Amazon Polly: …

Total answers: 2

Change pyttsx3 language

Change pyttsx3 language Question: When trying to use pyttsx3 I can only use English voices. I would like to be able to use Dutch as well. I have already installed the text to speech language package in the windows settings menu. But I can still only use the deafaut english voice. How can I fix …

Total answers: 3

gTTS direct output

gTTS direct output Question: I want to make a chatbot’s response in audio and text. All the example code using gTTS seem like one needs to ‘save the text into a file then play the file’. Is there another way to simplify the process such as, play the ‘response from chatbot’ automatically, using gTTS? Asked …

Total answers: 5

Python pyttsx, how to use external loop

Python pyttsx, how to use external loop Question: In my program I need class(which can be some thread) to check some list like “say_list” and when other classes add some text to it, pyttsx say that text. I search in pyttsx docs and I find some external loops feature but I can not find example …

Total answers: 2

Custom Python gTTS voice

Custom Python gTTS voice Question: I have been using the gTTS module for python 3.4 to make mp3 files of spoken text. It has been working, but all of the speech is in a certain adult female voice. Is there a way to customize the voice that gTTS reads the text in? Asked By: Theo …

Total answers: 7

How to TTS Chinese using pyttsx

How to TTS Chinese using pyttsx Question: I want to know how to text-to-speech Chinese using the python package ‘pyttsx’. It seems to need some other modules like neospeech. Asked By: Booster || Source Answers: Yes, neospeech is a language library. By installing it, you can just set the voice of pyttsx and tts Chinese …

Total answers: 2