I’ve searched the forum for a solution, but only found pieces of information here and there, and eventually couldn’t put all the pieces together. So I’m now asking this in a new thread:
When I’m playing Spotify and I need to output TTS or local mp3-file, Spotify is no longer able to resume playing because of the ‘Device or resource busy’ error I’m getting. How to properly ‘unreserve’ media player after TTS or mpd has finished playing local mp3-file?
Spotify Connect log after Spotify has been paused, TTS announcement is finished, and trying to resume Spotify:
11:17:55 [ERROR] e(BAlsa error PCM open ALSA function 'snd_pcm_open' failed with error 'EBUSY: Device or resource busy'
11:17:55 [ERROR] e(BCould not start audio: Alsa error: PCM open failed
11:18:00 [ERROR] e(BAlsa error PCM open ALSA function 'snd_pcm_open' failed with error 'EBUSY: Device or resource busy'
11:18:00 [ERROR] e(BCould not start audio: Alsa error: PCM open failed
11:18:05 [ERROR] e(BAlsa error PCM open ALSA function 'snd_pcm_open' failed with error 'EBUSY: Device or resource busy'
11:18:05 [ERROR] e(BCould not start audio: Alsa error: PCM open failed
This is my configuration:
media_player:
- platform: spotify
client_id: !secret spotify_client_id
client_secret: !secret spotify_client_secret
- platform: mpd
host: !secret mpd_ip
tts:
- platform: google_translate
service_name: google_say
Installed add-ons are ‘Mopidy’ and ‘Spotify Connect’
I would be fine with a solution where everything is just mixed together, but ultimately it would be very nice to pause Spotify when there’s a TTS coming through.