Supergiovane / node-red-contrib-sonospollytts

Play speech TTS using Sonos.
https://www.facebook.com/supergiovaneDev
MIT License
12 stars 6 forks source link

Setting volume #1

Closed henrikekblad closed 6 years ago

henrikekblad commented 6 years ago

Would it be possible to have a volume parameter in in incoming message to allow volume control dynamically?

I use this plugin both for tts-announcements and sending in url an mp3-url (for our doorbell). Would have been great to be able to tune the volume individually for different inputs.

Thanks!

henrikekblad commented 6 years ago

... and before doing tts/mp3 announcements it should save the old volume and restore it afterwards (and perhaps resume any music/queue playing).

Supergiovane commented 6 years ago

Hello henrikekblad Can you confirm that this whould be OK for you? 1) Specify the volume while sending the text to be spoken out (for example msg.volume=50). This should cover all your needs. 2) Resume playback of music with reverted volume (the previous volume). Thanks.

henrikekblad commented 6 years ago

Yes, exactly what I mean.

Thanks Henrik

Supergiovane commented 6 years ago

Partially worked on your issue. (V 1.0.2) Added msg.volume to set the volume.

henrikekblad commented 6 years ago

Ok! Will do some tests when I'm back home in a couple of days.

rephlex00 commented 6 years ago

This works for me.

Supergiovane commented 6 years ago

Closed