gnumpi / esphome_audio

Custom audio components for ESPHome
Other
62 stars 23 forks source link

Very fast TTS on [some] Piper announcements #50

Closed formatBCE closed 5 months ago

formatBCE commented 5 months ago

First of all - push me in required direction if needed.

The problem: TTS announcements for Piper (especially, seems like, for some voices there) are been played on speed like 2x faster than they should. For HA cloud and Google TTS it's all ok. I use resampler in my media_player pipeline, if it's important. From logs, i see different bitrates for all TTS sources, if it's important. Will provide any debug info. :)

Thank you in advance!

gnumpi commented 5 months ago

Normally, the audio settings gets automatically detected. Please check your config if the media player has an announcement_audio settings, if so these values are used instead of auto detection.

formatBCE commented 5 months ago

You're right all the way through... I copied ESP32-S3-BOX config from one clever guy, and that setting slipped through completely unnoticed. Sorry for disturbance.