Pause in TTS possible?

when using this:
message: "Testing {{Pause=4500}} test"

I get the following error in the logs.
[homeassistant.components.homeassistant] Invalid config for [automation]: invalid template (TemplateSyntaxError: expected token ‘end of print statement’, got ‘=’) for dictionary value @ data[‘action’][6][‘data_template’][‘message’]. Got None. (See /home/homeassistant/.homeassistant/configuration.yaml, line 18). Please check the docs at https://home-assistant.io/components/automation/

I haven’t tested this but perhaps try putting a space either side of the =, and possibly also either side of the text within the curly brackets.

So:

message: "Testing {{ Pause = 4500 }} test"

Hi
I get exactly the same error.

Any luck yet on this one?
Having the same issue here.

No the pause part didn´t work out for me.

This works for me
Decreasing the volume to 50%, speacking with a pause 2s and restoring the volume to 80%

- data:
entity_id: all
volume_level: 0.5
service: media_player.volume_set
- data:
language: es
message: first text.
entity_id: all
service: tts.google_say
- delay: '2'
- data:
language: es
message: Second text
entity_id: all
service: tts.google_say
- data:
entity_id: all
volume_level: 0.8
service: media_player.volume_set

This is how i have solved it too, but it would be better with a pause function

Yeo, is true. If you found it, please share

of course :slight_smile:

Bumping this… Anybody with a solution?

1 Like

Hi, if anyone will come here, I had the smae need and this worked for me:

"Massage 1st part" <break time=".6s" /> "Massage 2nd part"

4 Likes

What version of HA are you running? I am on 0.103.6. Wonder if this solution would work on that.

I’m running 0.117.1

Okay, mine is just returning an error.

Thanks this worked for me, using Alexa tts!

Yes it’s possible using Google. You can use an exclamation mark or question mark for a long pause. For a short pause, a comma or many other punctuation marks will do that.

1 Like

Worked for me too; tried your ‘.6s’ and proved it by making it very obvious at ‘6s’. I too am on Alexa tts. Many thanks.

See this: LinkPlay Integration - #420 by robi

Does not make any difference with Google.

Thanks - worked like a charm!