Blade:
I'm not sure exactly where this needs to be so I'm leaving it up to you. It could be either BLMediaPlayer or BLSpeech. I'll try to explain what I'm doing so you hopefully get a better understanding of what's happening.
I use BLSpeech as my speech processor. I let it handle all the speaker management through events, using either the "HomeSeer Prior to Speaking" or the "HomeSeer Stops Speaking triggers". It's been working really well for a couple of years now.
I use BLMediaPlayer to play a playlist of music during my morning routines. It also has been working quite well for years.
Now my problem.
My wife asked if it would be possible have a little attention type sound play before whatever announcement. I figured this would be easy so I went into BLSpeech and used the "Event or Script to execute prior to HomeSeer speaking" under options to trigger an event that plays a wav file of a couple of beeps before speaking. It worked like a champ all that day. Request fulfilled, WAF increased, or so I thought!
The next morning during our morning events I noticed the unintended consequences. Since BLMediaPlayer is playing during any morning announcements this is where the problem became readily apparent. Two things happened.
First, I noticed that the music paused as it should have but after the wav file played the music came back on for a second and then paused again for the speech. I have been able to solve this by increasing the length of the wav file from 1 second to just over 2.5 seconds, the pause is still there you just don't notice it now.
Second, The music paused as I expected but resumed playing too early, like during the end of whatever announcement was running. I have BLSpeech set for a 3 second delay before speaking to allow speakers to be connected and ready. This 3 seconds is just about the same time frame that is giving me problems. since 2.5 to 3 seconds is about the amount of time that has given me grief, both before and after announcements only while music is playing.
Well, there's my problem. I'm not sure where or how to fix it. I'm thinking that BLSpeech is fine and it's working as it should be but that BLMediaPlayer is not pausing long enough for the speech to complete before it starts playing again. I don't see any way to increase the amount of time that music is paused. I have tried setting the speech delay to 0 in BLSpeech but that made no difference and the music un-paused to early.
I'm open to any thoughts or suggestions and I'd put in a feature request if I knew what to request.
Maybe a user setting to lengthen the pause for speech by x seconds.
Or maybe
BLMediaPlayer just needs to pause a bit longer for speech in general? Even when run without BLSpeech being enabled it's very close and often will un-pause and start playing during the last word of an announcement.
I'm not sure exactly where this needs to be so I'm leaving it up to you. It could be either BLMediaPlayer or BLSpeech. I'll try to explain what I'm doing so you hopefully get a better understanding of what's happening.
I use BLSpeech as my speech processor. I let it handle all the speaker management through events, using either the "HomeSeer Prior to Speaking" or the "HomeSeer Stops Speaking triggers". It's been working really well for a couple of years now.
I use BLMediaPlayer to play a playlist of music during my morning routines. It also has been working quite well for years.
Now my problem.
My wife asked if it would be possible have a little attention type sound play before whatever announcement. I figured this would be easy so I went into BLSpeech and used the "Event or Script to execute prior to HomeSeer speaking" under options to trigger an event that plays a wav file of a couple of beeps before speaking. It worked like a champ all that day. Request fulfilled, WAF increased, or so I thought!
The next morning during our morning events I noticed the unintended consequences. Since BLMediaPlayer is playing during any morning announcements this is where the problem became readily apparent. Two things happened.
First, I noticed that the music paused as it should have but after the wav file played the music came back on for a second and then paused again for the speech. I have been able to solve this by increasing the length of the wav file from 1 second to just over 2.5 seconds, the pause is still there you just don't notice it now.
Second, The music paused as I expected but resumed playing too early, like during the end of whatever announcement was running. I have BLSpeech set for a 3 second delay before speaking to allow speakers to be connected and ready. This 3 seconds is just about the same time frame that is giving me problems. since 2.5 to 3 seconds is about the amount of time that has given me grief, both before and after announcements only while music is playing.
Well, there's my problem. I'm not sure where or how to fix it. I'm thinking that BLSpeech is fine and it's working as it should be but that BLMediaPlayer is not pausing long enough for the speech to complete before it starts playing again. I don't see any way to increase the amount of time that music is paused. I have tried setting the speech delay to 0 in BLSpeech but that made no difference and the music un-paused to early.
I'm open to any thoughts or suggestions and I'd put in a feature request if I knew what to request.
Maybe a user setting to lengthen the pause for speech by x seconds.
Or maybe
BLMediaPlayer just needs to pause a bit longer for speech in general? Even when run without BLSpeech being enabled it's very close and often will un-pause and start playing during the last word of an announcement.
Comment