S
S
sdrom2021-05-02 01:01:42
Python
sdrom, 2021-05-02 01:01:42

How to change voice tone in pyttsx?

I need to raise the tone of my speech synthesizer. Is there some setting in pyttsx for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alan Gibizov, 2021-05-02
@sdrom

In pyttsx, you can only select a different voice. The tone will vary depending on the voice.

import pyttsx3
engine = pyttsx3.init()
voices = engine.getProperty('voices')
for voice in voices:
    engine.setProperty('voice', voice.id)
    engine.say('Hello.')
engine.runAndWait()
engine.stop()

Option
Попробуйте поместить динамик в емкость с газообразным гелием. Тон должен повыситься.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question