Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pause/resume Spotify media_player before/after Chime TTS notification #93

Closed
3 tasks done
nimroddolev opened this issue Feb 22, 2024 · 2 comments
Closed
3 tasks done
Labels
enhancement New feature or request

Comments

@nimroddolev
Copy link
Owner

nimroddolev commented Feb 22, 2024

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

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

This feature request is based on the comment made by @dbullendsl.

When the announce parameter is enabled, Spotify media_players paused before Chime TTS notifications, however they are not resumed once the notification ends.

Spotify media_players can only play audio from Spotify and cannot play arbitrary files (neither local files nor remote URLs) - so they cannot currently be used as a media_player for Chime TTS notification playback. However, it would be useful to have them be paused/resume before/after Chime TTS notification playback.

My idea is to include them in the list of target media_players sent to the chime_tts.say service, and have Chime TTS identify them as Spotify media_players and handle the pause/resume (when announce is true).

Describe the solution you'd like

Spotify media_players should automatically resume playback once the notification from Chime TTS is complete.

@nimroddolev nimroddolev added the enhancement New feature or request label Feb 22, 2024
@DanDixon
Copy link

DanDixon commented Feb 22, 2024

Maybe not relevant to this feature, but instead of pausing Spotify I fade the volume down and back up:

After using chime_tts.say_url to generate the audio file I turn down the volume on my music (using another script to fade it down over 1 second) and then play the file, waiting until the playback devices are done, and then fading the music back up after the playback is complete.

That said, I play all of my voice notifications through Google minis and all of my music via Google Chromecast audios, so they are separate devices.

@nimroddolev
Copy link
Owner Author

You should already be able to do this in chime_tts.say by setting announce: true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants