TTS output to Pi not working

I’d like to output google tts to the 3.5mm audio source on my Pi, running a manual installation on raspbian.

I did everything exactly as described here:

But I’m not hearing any sound output.

media_player:
  - platform: vlc
    name: speaker_1
    arguments: '--alsa-audio-device=hw:1,0'

Dec 20 21:49:36 raspberrypi hass[5115]: INFO:homeassistant.core:Bus:Handling <Event call_service[L]: service_call_id=1975380368-35, domain=tts, service=google_say, service_data=message=hallo heinrich, entity_id=media_player.speaker_1>
Dec 20 21:49:36 raspberrypi hass[5115]: INFO:homeassistant.core:Bus:Handling <Event call_service[L]: service_call_id=1975380368-36, domain=media_player, service=play_media, service_data=media_content_id=http://192.168.0.27:8123/api/tts_proxy/ecb1a729626c224c5ec5a9e6cd23d1b0dbc43464_en_-_google.mp3, entity_id=['media_player.speaker_1'], media_content_type=music>
Dec 20 21:49:36 raspberrypi hass[5115]: INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=1975380368-36>
Dec 20 21:49:36 raspberrypi hass[5115]: INFO:homeassistant.core:Bus:Handling <Event service_executed[L]: service_call_id=1975380368-35>

Did you ever figure it out?

yes, I did:

The issue, in fact, was an error in the official documentation, which recommends the following setup:

media_player:

platform: vlc
name: speaker_1
arguments: ‘–alsa-audio-device=hw:1,0’

I changed ‘–alsa-audio-device=hw:1,0’ to ‘–alsa-audio-device=hw:0,0’ and now it works.

hw:1,0 is used to access the first device on the second soundcard/device. Why this is in official HA documentation I don’t know.

At least that fixed it for me, hopefully, it works for you too.

1 Like