#TTS speed (pauses between sentences)

1 messages · Page 1 of 1 (latest)

crisp stag
#

Is there a way of slowing the TTS and/or placing longer pauses between sentences?
I find the replies containing information seem rushed. I am currently adding extra periods (",") in the intent text.

upper niche
#

What TTS platform?

#

Or do you mean the reply from the voice assistant?

crisp stag
#

Ahh yes. That would be important. I am using piper.

#

The slowing down of notifications and replies from voice assistant.

upper niche
#

You're using the add-on for it?

crisp stag
#

Yes.

upper niche
#

Then I'll leave that for somebody who uses that and can answer it 😄

dim yoke
#

I use commas, dots and new line symbols. But I guess you need something bigger than usual?

crisp stag
dim yoke
crisp stag
elfin ivy
crisp stag
#

That is a brilliant resource. Thank you. This is perfect. Now to find two seconds to write some yaml.

crisp stag
#

I changed my text in the intent_script.yaml and Home Assistant froze. I went in to safe mode and edited the code to something vanilla and it booted fine. It's a worry that such a simple change can disrupt the house without warning.

tropic heart
#

Are you trying to pace answers of voice assistants (the short answers like “turned off the switch”)
Or are you trying to pace your own notification that you generate yourself via tts.speak or any other action ?

fresh pike
#

Neither of the SSML options above seem to work with intent scripts.

elfin ivy
#

SSML works when used like this (and output device supports SSML):

action: notify.alexa_media_echo_dot
metadata: {}
data:
message: |-
<speak>
<audio src="soundbank://soundlibrary/sports/crowds/crowds_09"/>
<amazon:emotion name='excited' intensity='medium'>
Five seconds till lift off!
<say-as interpret-as='digits'>54321</say-as>.
Lift off!
</amazon:emotion>
</speak>
data:
type: tts

crisp stag
#

I was just using the intents sent to piper and then through to the esp32. I am using custom_senstences and intent_script.yaml. As per https://www.home-assistant.io/integrations/intent_script/

Example (yes it needs some conditions for absent data incorporated):
HOForecast:
speech:
text: "The BOM forecast for Eaglemont,,
Today,,,,
{{states.sensor.eaglemont_extended_text_0.state}},,
Minimum temperature {{states.sensor.eaglemont_temp_min_0.state}}°,,
Maximum temperature {{states.sensor.eaglemont_temp_max_0.state}}°,,
Rain chance {{states.sensor.eaglemont_rain_chance_0.state}}% of {{states.sensor.eaglemont_rain_amount_range_0.state}}millimetres,,
UV index {{states.sensor.eaglemont_uv_category_0.state}},,
Fire danger {{states.sensor.eaglemont_fire_danger_0.state}},,,,
Tomorrow,,,,
{{states.sensor.eaglemont_extended_text_1.state}},,
Minimum temperature {{states.sensor.eaglemont_temp_min_1.state}}°,,
Maximum temperature {{states.sensor.eaglemont_temp_max_1.state}}°,,
Rain chance {{states.sensor.eaglemont_rain_chance_1.state}}% of {{states.sensor.eaglemont_rain_amount_range_1.state}}millimetres,,
UV index {{states.sensor.eaglemont_uv_category_1.state}},,
Fire danger {{states.sensor.eaglemont_fire_danger_1.state}}"

Home Assistant

Instructions on how to setup scripts to run on intents.

elfin ivy
#

Never tried SSML using intent script. Give it a try wrapping the text with SSML tags within <speak> container.