[mary-users] Increase speech rate of marytts

Ingmar Steiner ingmar.steiner at dfki.de
Fri Aug 7 11:10:49 CEST 2015


Dear Chrys

thanks for your message!

I'm afraid the Rate effect (i.e., the durScale parameter) seems to be 
broken in recent versions. There is an open bug report in our issue 
tracker, at https://github.com/marytts/marytts/issues/213

As suggested there, you could try to wrap your input text in MaryXML 
document, enclose it with a prosody element, and set its rate attribute. 
Then you need to change the input type of your request to RAWMARYXML 
instead of plain TEXT.

But since you are using a shell script, you could just as well call sox 
after synthesizing the audio, and use the speed effect like this:

> sox /tmp/marytts.wav /tmp/marytts_fast.wav speed 1.5

to increase the speech rate, before playing /tmp/marytts_fast.wav

Of course this will also raise the pitch, so to avoid a Mickey Mouse 
impression, you could play around with the TractScaler and/or F0Add 
effects to synthesize with a lower pitch, before you speed up the result.

Incidentally, you only need to specify the effects you want to use in 
the request. And you can use sox's play command to request the URL to 
synthesize, optionally process the result, and play in a single command:

> play -q 'http://localhost:59125/process?INPUT_TEXT=Hello+world&INPUT_TYPE=TEXT&OUTPUT_TYPE=AUDIO&AUDIO=WAVE_FILE&LOCALE=en_US&effect_TractScaler_selected=on&effect_TractScaler_parameters=amount:0.5&effect_f0Add_selected=on&effect_f0Add_parameters=f0Add:-100' speed 2.0

Hope this helps!

Best wishes,

-Ingmar

On 06.08.15 15:57, chrys87 wrote:
> Hi list,
>
> maybe i do something not realize correctly :) bu i have a quite easy
> question.
> i have installed openmary on my arch machine and try to use it via may
> screenreader orca.
>
> do make this possible i use a "generic" speechdispatcher driver. this is
> nothing other than a shell script that is called with the reading text.
>
> i try to use openmary in this generic driver via wget and aplay
> (downlaod a audiofile from localhost and play the file with aplay)
>
> that works just fine :) for interested people i post the command on the
> end of my mail.
> i wanna have a higher speech rage ( so more words per time :) ) is that
> possible via a get request?
> i played arround with durScale, but this seems to have no effect.
>
> any suggestions?
>
> cheers chrys
>
> #here the generic speechdispatcher driver
> GenericExecuteSynth "wget -q
> \"http://localhost:59125/process?INPUT_TYPE=TEXT&OUTPUT_TYPE=AUDIO&INPUT_TEXT=$DATA%0A&OUTPUT_TEXT=&effect_Volume_selected=&effect_Volume_parameters=amount%3A2.0%3B&effect_Volume_default=Default&effect_Volume_help=Help&effect_TractScaler_selected=&effect_TractScaler_parameters=amount%3A1.5%3B&effect_TractScaler_default=Default&effect_TractScaler_help=Help&effect_F0Scale_selected=&effect_F0Scale_parameters=f0Scale%3A2.0%3B&effect_F0Scale_default=Default&effect_F0Scale_help=Help&effect_F0Add_selected=&effect_F0Add_parameters=f0Add%3A50.0%3B&effect_F0Add_default=Default&effect_F0Add_help=Help&effect_Rate_selected=&effect_Rate_parameters=durScale%3A0.1%3B&effect_Rate_default=Default&effect_Rate_help=Help&effect_Robot_selected=&effect_Robot_parameters=amount%3A100.0%3B&effect_Robot_default=Default&effect_Robot_help=Help&effect_Whisper_selected=&effect_Whisper_parameters=amount%3A100.0%3B&effect_Whisper_default=Default&effect_Whisper_help=Help&effect_Stadium_selected=&effect_Stad
 iu
>   m_parameters=amount%3A100.0&effect_Stadium_default=Default&effect_Stadium_help=Help&effect_Chorus_selected=&effect_Chorus_parameters=delay1%3A466%3Bamp1%3A0.54%3Bdelay2%3A600%3Bamp2%3A-0.10%3Bdelay3%3A250%3Bamp3%3A0.30&effect_Chorus_default=Default&effect_Chorus_help=Help&effect_FIRFilter_selected=&effect_FIRFilter_parameters=type%3A3%3Bfc1%3A500.0%3Bfc2%3A2000.0&effect_FIRFilter_default=Default&effect_FIRFilter_help=Help&effect_JetPilot_selected=&effect_JetPilot_parameters=&effect_JetPilot_default=Default&effect_JetPilot_help=Help&HELP_TEXT=&exampleTexts=&VOICE_SELECTIONS=bits3%20de%20male%20unitselection%20general&AUDIO_OUT=WAVE_FILE&LOCALE=de&VOICE=bits3&AUDIO=WAVE_FILE\"
> -O /tmp/marytts.wav && aplay -q /tmp/marytts.wav"
>
> _______________________________________________
> Mary-users mailing list
> Mary-users at dfki.de
> http://www.dfki.de/mailman/cgi-bin/listinfo/mary-users
>


More information about the Mary-users mailing list