www.homeseer.com    
 

Go Back   HomeSeer Message Board > Media Plug-ins > Media Discussion > PI-SonosController (3P)

PI-SonosController (3P) Discussion of Sonos Controller Plug-in

Reply
 
Thread Tools Display Modes
  #1  
Old March 12th, 2018, 10:01 PM
mikesnook's Avatar
mikesnook mikesnook is offline
Seer
 
Join Date: Jan 2007
Location: Westminster - MD
Posts: 56
Repeating announcement after adding audio file

Hi Dirk, since I have added an audio file to be played before the TTS announcement as seen below, I am getting duplicate announcements, I have the debug available, if you would like to see it ? PM or emailed ?

Speak string:

C:\Program Files (x86)\HomeSeer HS3\wave_files\beep.mp3|<voice required='Name=Microsoft Zira Desktop'>Vehicle entering driveway.

The mp3 file path and the pipe character are the only additions to this action that had been running without issues for years.

(The event is also only triggering once)

Any thoughts ?

Thanks,
Mike
Reply With Quote
  #2  
Old March 12th, 2018, 11:05 PM
dcorsus dcorsus is offline
OverSeer
 
Join Date: Mar 2010
Location: California
Posts: 3,736
Quote:
Originally Posted by mikesnook View Post
Hi Dirk, since I have added an audio file to be played before the TTS announcement as seen below, I am getting duplicate announcements, I have the debug available, if you would like to see it ? PM or emailed ?

Speak string:

C:\Program Files (x86)\HomeSeer HS3\wave_files\beep.mp3|<voice required='Name=Microsoft Zira Desktop'>Vehicle entering driveway.

The mp3 file path and the pipe character are the only additions to this action that had been running without issues for years.

(The event is also only triggering once)

Any thoughts ?

Thanks,
Mike
Which PI version?
Can you post screen shot of linkgroup table and event details.
You are sure the beep.mp3 is just a beep
Look at any Sonos Controller while the announcement plays. Do you see 2 items in the queue or 4? Do you see it repeating twice?
You can post a log, don't PM me, and make sure the log still has the cr/lf in it so it is readable.

Dirk
Reply With Quote
  #3  
Old March 12th, 2018, 11:23 PM
mikesnook's Avatar
mikesnook mikesnook is offline
Seer
 
Join Date: Jan 2007
Location: Westminster - MD
Posts: 56
Quote:
Originally Posted by dcorsus View Post
Which PI version?
Can you post screen shot of linkgroup table and event details.
You are sure the beep.mp3 is just a beep
Look at any Sonos Controller while the announcement plays. Do you see 2 items in the queue or 4? Do you see it repeating twice?
You can post a log, don't PM me, and make sure the log still has the cr/lf in it so it is readable.

Dirk
PI Version: 3.1.0.22

Lol yup just a beep

I've attached the (log to disk) debug log file, hopefully that is what you need.

I will need to wait until morning to test the items in the queue, wife will jump out of bed if the driveway notification goes off at this time of night !

Thank Dirk!

Mike
Attached Images
 
Attached Files
File Type: zip SonosDebug.zip (76.6 KB, 4 views)
Reply With Quote
  #4  
Old March 12th, 2018, 11:58 PM
dcorsus dcorsus is offline
OverSeer
 
Join Date: Mar 2010
Location: California
Posts: 3,736
Quote:
Originally Posted by mikesnook View Post
PI Version: 3.1.0.22

Lol yup just a beep

I've attached the (log to disk) debug log file, hopefully that is what you need.

I will need to wait until morning to test the items in the queue, wife will jump out of bed if the driveway notification goes off at this time of night !

Thank Dirk!

Mike
Check your event. I see SpeakIn called twice for the first event capture in your log with 4 seconds in between
Reply With Quote
  #5  
Old March 13th, 2018, 12:05 AM
mikesnook's Avatar
mikesnook mikesnook is offline
Seer
 
Join Date: Jan 2007
Location: Westminster - MD
Posts: 56
Quote:
Originally Posted by dcorsus View Post
Check your event. I see SpeakIn called twice for the first event capture in your log with 4 seconds in between
The event is the same one I've been using for years, only the addition of the beep mp3 is new, see the attached for the event in question, also its not able to be re-triggered for 5 seconds using the event options, looks ok right ?

Dirk I just noticed, the SpeakIn is being called twice, once for driveway notification and the one 4 seconds later is for the garage door opening notification.
Attached Images
 

Last edited by mikesnook; March 13th, 2018 at 12:31 AM.
Reply With Quote
  #6  
Old March 13th, 2018, 12:31 AM
dcorsus dcorsus is offline
OverSeer
 
Join Date: Mar 2010
Location: California
Posts: 3,736
Quote:
Originally Posted by mikesnook View Post
The event is the same one I've been using for years, only the addition of the beep mp3 is new, see the attached for the event in question, also its not able to be re-triggered for 5 seconds using the event options, looks ok right ?
Looks OK ... but ...

3/12/2018 8:38:44 PM : SpeakIn called for Device = 0, Text = C:\Program Files (x86)\HomeSeer HS3\wave_files\beep.mp3|<voice required='Name=Microsoft Zira Desktop'>Vehicle entering driveway., Wait=False, Host = $SONOS$all$DEFAULT:*, PIInitialized = True
3/12/2018 8:38:48 PM : SpeakIn called for Device = 0, Text = C:\Program Files (x86)\HomeSeer HS3\wave_files\beep.mp3|<voice required='Name=Microsoft Zira Desktop'>Mike's Garage Door, Open., Wait=False, Host = $SONOS$all$DEFAULT:*, PIInitialized = True

As you can see 4 seconds apart. Sure there isn't some other event somewhere that gets triggered?

The log had more events but they look OK

3/12/2018 8:39:24 PM : SpeakIn called for Device = 0, Text = C:\Program Files (x86)\HomeSeer HS3\wave_files\beep.mp3|<voice required='Name=Microsoft Zira Desktop'>Mike's Garage Door, Closed., Wait=False, Host = $SONOS$all$DEFAULT:*, PIInitialized = True
3/12/2018 8:40:30 PM : SpeakIn called for Device = 0, Text = C:\Program Files (x86)\HomeSeer HS3\wave_files\beep.mp3|<voice required='Name=Microsoft Zira Desktop'>Erin's Garage Door, Open., Wait=False, Host = $SONOS$all$DEFAULT:*, PIInitialized = True
3/12/2018 8:42:23 PM : SpeakIn called for Device = 0, Text = C:\Program Files (x86)\HomeSeer HS3\wave_files\beep.mp3|<voice required='Name=Microsoft Zira Desktop'>Vehicle leaving driveway., Wait=False, Host = $SONOS$all$DEFAULT:*, PIInitialized = True
Reply With Quote
  #7  
Old March 13th, 2018, 12:35 AM
mikesnook's Avatar
mikesnook mikesnook is offline
Seer
 
Join Date: Jan 2007
Location: Westminster - MD
Posts: 56
Quote:
Originally Posted by dcorsus View Post
Looks OK ... but ...

3/12/2018 8:38:44 PM : SpeakIn called for Device = 0, Text = C:\Program Files (x86)\HomeSeer HS3\wave_files\beep.mp3|<voice required='Name=Microsoft Zira Desktop'>Vehicle entering driveway., Wait=False, Host = $SONOS$all$DEFAULT:*, PIInitialized = True
3/12/2018 8:38:48 PM : SpeakIn called for Device = 0, Text = C:\Program Files (x86)\HomeSeer HS3\wave_files\beep.mp3|<voice required='Name=Microsoft Zira Desktop'>Mike's Garage Door, Open., Wait=False, Host = $SONOS$all$DEFAULT:*, PIInitialized = True

As you can see 4 seconds apart. Sure there isn't some other event somewhere that gets triggered?

The log had more events but they look OK

3/12/2018 8:39:24 PM : SpeakIn called for Device = 0, Text = C:\Program Files (x86)\HomeSeer HS3\wave_files\beep.mp3|<voice required='Name=Microsoft Zira Desktop'>Mike's Garage Door, Closed., Wait=False, Host = $SONOS$all$DEFAULT:*, PIInitialized = True
3/12/2018 8:40:30 PM : SpeakIn called for Device = 0, Text = C:\Program Files (x86)\HomeSeer HS3\wave_files\beep.mp3|<voice required='Name=Microsoft Zira Desktop'>Erin's Garage Door, Open., Wait=False, Host = $SONOS$all$DEFAULT:*, PIInitialized = True
3/12/2018 8:42:23 PM : SpeakIn called for Device = 0, Text = C:\Program Files (x86)\HomeSeer HS3\wave_files\beep.mp3|<voice required='Name=Microsoft Zira Desktop'>Vehicle leaving driveway., Wait=False, Host = $SONOS$all$DEFAULT:*, PIInitialized = True
yup they are two different TTS messages, the driveway notification played twice, the garage door notification was only heard once.
Reply With Quote
  #8  
Old March 13th, 2018, 12:35 AM
dcorsus dcorsus is offline
OverSeer
 
Join Date: Mar 2010
Location: California
Posts: 3,736
Quote:
Originally Posted by mikesnook View Post

Dirk I just noticed, the SpeakIn is being called twice, once for driveway notification and the one 4 seconds later is for the garage door opening notification.
sorry missed this part ....
Reply With Quote
  #9  
Old March 13th, 2018, 12:39 AM
mikesnook's Avatar
mikesnook mikesnook is offline
Seer
 
Join Date: Jan 2007
Location: Westminster - MD
Posts: 56
no problem, I added it not long ago ,when i noticed it in the logs.
Reply With Quote
  #10  
Old March 13th, 2018, 01:00 AM
dcorsus dcorsus is offline
OverSeer
 
Join Date: Mar 2010
Location: California
Posts: 3,736
Quote:
Originally Posted by mikesnook View Post
no problem, I added it not long ago ,when i noticed it in the logs.
Well well, the back2back announcements are actually the cause. This code has been around for many years but perhaps the first time we use "multiple actions" in a single event and back2back different announcements.

What is happening is that the first event adds the beep and the text to the Sonos player's queue, however the second event is just added to the queue so the player now has 4 items in its queue and plays the queue again with the first event being repeated.

Need to study my code again but recall testing back2back announcements quite extensively but most likely never with | separated multi event announcements ... or.... something got broken over the years.

For now, *I think* you can just change the single speak action into two speak action into this single event, one with the beep by itself and one with the text to announce by itself all in the same event. See if that fixes the repeat for now while I need to find the time to see how to fix this and release an update.

Dirk
Reply With Quote
  #11  
Old March 13th, 2018, 01:05 AM
mikesnook's Avatar
mikesnook mikesnook is offline
Seer
 
Join Date: Jan 2007
Location: Westminster - MD
Posts: 56
Quote:
Originally Posted by dcorsus View Post
Well well, the back2back announcements are actually the cause. This code has been around for many years but perhaps the first time we use "multiple actions" in a single event and back2back different announcements.

What is happening is that the first event adds the beep and the text to the Sonos player's queue, however the second event is just added to the queue so the player now has 4 items in its queue and plays the queue again with the first event being repeated.

Need to study my code again but recall testing back2back announcements quite extensively but most likely never with | separated multi event announcements ... or.... something got broken over the years.

For now, *I think* you can just change the single speak action into two speak action into this single event, one with the beep by itself and one with the text to announce by itself all in the same event. See if that fixes the repeat for now while I need to find the time to see how to fix this and release an update.

Dirk
Awesome thanks for the explanation ! I will certainly try to split the speak actions up until you find time to take a closer look.

Thanks for your support and a great plugin Dirk!

PS. would be cool to have a setting in the plugin's config to prepend all speech with a wav/mp3 file, that might help with this issue to, maybe an easier fix

Cheers,
Mike
Reply With Quote
  #12  
Old March 19th, 2018, 11:46 PM
mikesnook's Avatar
mikesnook mikesnook is offline
Seer
 
Join Date: Jan 2007
Location: Westminster - MD
Posts: 56
Splitting the speak actions is a good work around for now, seems to work just fine, unfortunately there is a bit of a delay between the beep and the speech, I guess not much can be done about that.
Reply With Quote
  #13  
Old June 22nd, 2018, 09:23 PM
mikesnook's Avatar
mikesnook mikesnook is offline
Seer
 
Join Date: Jan 2007
Location: Westminster - MD
Posts: 56
Hi Dirk, any chance you've had some time to look into the back2back announcements yet ? Your work around continues to work but the delay between them is getting a little annoying


Thank you,
Mike
Reply With Quote
  #14  
Old June 25th, 2018, 02:24 AM
dcorsus dcorsus is offline
OverSeer
 
Join Date: Mar 2010
Location: California
Posts: 3,736
Quote:
Originally Posted by mikesnook View Post
Hi Dirk, any chance you've had some time to look into the back2back announcements yet ? Your work around continues to work but the delay between them is getting a little annoying


Thank you,
Mike

Spend some time today and fixed it. Now need to post update v23, should show up in updater somewhere this week.


Dirk
Reply With Quote
  #15  
Old June 25th, 2018, 02:32 AM
mikesnook's Avatar
mikesnook mikesnook is offline
Seer
 
Join Date: Jan 2007
Location: Westminster - MD
Posts: 56
Wow that's awesome thanks Dirk.

The anticipation of what the speech announcement was going to be after the beep was killing me
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Whole House audio and Announcement HELP ronaldm HomeSeer General Discussion Area 36 July 26th, 2017 08:50 PM
Link problem & repeating announcement Stevieboy PI-SonosController (3P) 7 November 17th, 2013 03:57 PM
Thinking of adding audio to HS langenet Audio / Video and Infra-red (IR) Discussion 9 December 26th, 2012 07:47 PM
Repeating VWS Error in HS log file scotchskip VWS 16 May 22nd, 2011 11:20 AM
call announcement stopping TV audio JeffCharger Audio / Video and Infra-red (IR) Discussion 8 May 3rd, 2005 10:37 AM


All times are GMT -4. The time now is 01:33 AM.


Copyright HomeSeer Technologies, LLC