nimroddolev / chime_tts

A custom Home Assistant integration to play combined audio files before and/or after text-to-speech (TTS) messages
https://nimroddolev.github.io/chime_tts/
MIT License
147 stars 12 forks source link

Add individual volume on each segment #145

Closed uli-rpi closed 2 weeks ago

uli-rpi commented 2 weeks ago

Checklist

Is your feature request related to a problem? Please describe.

It would be helpful if the volume could be changed in segments

Describe the solution you'd like

Each segment can be assigned its own volume, eg. volume 70 -> chime -> volume 40 -> tts -> volume 60 -> chime ...

Describe alternatives you've considered

-

Additional context

No response

nimroddolev commented 2 weeks ago

Hi @uli-rpi, thanks for your suggestion.

You can already set segment-specific volume levels by using the audio_conversion parameter for each segment. This will change the volume level of the actual audio - not the media player.

If different volume_level valves were to be applied to each segment, this would require making 2 service calls per segment (1. setting volume, then 2. playing the segment) , which would introduce lots of latency (reintroducing the problem Chime TTS aims to fix).