esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 36 forks source link

PicoTTS WAV files playing too fast in Media Player #4210

Open H3wastooshort opened 1 year ago

H3wastooshort commented 1 year ago

The problem

The media_player component plays certian WAV files - like from PicoTTS - way too fast. I think it has to do with the mismatched sampling rate of the WAV file (16kHz) vs the DAC rate (probably 44.1kHz).

Which version of ESPHome has the issue?

2023.2.1

What type of installation are you using?

pip

Which version of Home Assistant has the issue?

2023.2.5

What platform are you using?

ESP32

Board

nodemcu-32s

Component causing the issue

media_player

Example YAML snippet

media_player:
  - platform: i2s_audio
    name: Speakery Thing
    dac_type: internal
    mode: stereo

Anything in the logs that might be useful for us?

Not really...

[16:36:56][D][media_player:059]: 'Speakery Thing' - Setting
[16:36:56][D][media_player:066]:   Media URL: http://192.168.178.2:8123/api/tts_proxy/13edfc37e740859279fe40244beb0aa14811fbbe_en-us_-_picotts.wav

Additional information

Example WAV file: https://files.catbox.moe/i36g47.wav

ffprobe output:

Input #0, wav, from '.\13edfc37e740859279fe40244beb0aa14811fbbe_en-us_-_picotts.wav':
  Metadata:
    Text            : en-US
  Duration: 00:00:57.73, bitrate: 256 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, 1 channels, s16, 256 kb/s
github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

H3wastooshort commented 1 year ago

What?! This is a problem. Why do inactive issues get closed? IMO it should be the opposite. Issues with no recent activity should be looked at more. This just sweeps problems under the rug.

On 20 June 2023 03:53:13 CEST, "github-actions[bot]" @.***> wrote:

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

-- Reply to this email directly or view it on GitHub: https://github.com/esphome/issues/issues/4210#issuecomment-1598005407 You are receiving this because you authored the thread.

Message ID: @.***>