Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Create Speech Synthesizer

26 views
Skip to first unread message

Preetha Suri

unread,
Feb 24, 2022, 6:14:12 AM2/24/22
to Parselmouth
Hi,

This line of code throws a Praat Error.

s_synth = parselmouth.praat.call("Create SpeechSynthesizer", "English (Great Britain)", "Grandma")

Praat error - Voice variant Grandma is not a valid option.

However, this voice variant option works when I try to run it from the Praat GUI.

Could you help me resolve this. Thank you in advance.

Regards,
Preetha.

Preetha Suri

unread,
Feb 24, 2022, 6:14:15 AM2/24/22
to Parselmouth
Hi,

I am trying to create Speech Synthesizer using Parselmouth like this:

    s_synth = parselmouth.praat.call("Create SpeechSynthesizer", "English (Great Britain)",  "Grandma"  )

This throws : parselmouth.PraatError: Voice variant Grandma is not a valid option.

However, the same operation in Praat GUI works fine when I create a Speech Synthesizer and try to PLAY TEXT.

Could you help regarding this behaviour.

Regards,
Preetha.

yannick...@gmail.com

unread,
Feb 24, 2022, 9:20:15 AM2/24/22
to Parselmouth
Hi Preetha

I am guessing this is related to the version of Praat included with Parselmouth. For the latest release of Parselmouth, this is 6.1.38: https://github.com/praat/praat/releases/tag/v6.1.38 (check with `parselmouth.PRAAT_VERSION`).
Could it be that this voice has been added after? Could you try with the Praat GUI from that version?

I currently don't have a great solution, but I could this weekend try to update Praat on the development branch, and you could use that development version, if you really need to use the "Grandma" voice. Or you could stick to the available options from 6.1.38, which should work (if not, that's a bug; so do report in that case!).

Kind regards
Yannick
Reply all
Reply to author
Forward
0 new messages