M
M
Maxim Belozerov2021-09-05 10:25:57
Python
Maxim Belozerov, 2021-09-05 10:25:57

how to change voice in pyttsx3?

It is me again. This time the alignment is as follows:
There is the most banal program for pronouncing words in python:

import pyttsx3

tts = pyttsx3.init()
voices = tts.getProperty('voices')
tts.setProperty("voice", "ru")

for voice in voices:
    if voice.name == "Irina":
        tts.setProperty("voice", voice.id)
tts.say("Привет")
tts.runAndWait()

How can I add other voices to it that can't just be downloaded to windows?
Ps Let's say some Alena (voice closer to human)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-09-05
@Vindicar

It seems that under Windows this library takes the voices installed in the system.
So you can try through the system language settings, or look for how to install a third-party voice pack for windows in general.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question