www.homeseer.com    
 

Go Back   HomeSeer Message Board > 3rd Party Plug-Ins/Scripts > Plug-ins by Author > Click Here for List of Author Forums > Blade Plug-Ins > BLSpeech (3P)

BLSpeech (3P) Discussion of BLSpeech plug-in

Reply
 
Thread Tools Display Modes
  #1  
Old April 18th, 2016, 10:28 AM
waynehead99 waynehead99 is offline
Super Seer
 
Join Date: May 2015
Location: Colorado
Posts: 1,982
Delay Action Not Working

I am trying to create an event (scripted) that when my wife turns on her music in the bathroom in the morning it first plays the weather for her. It's randomly working though. Seems that sometimes the script waits for the speech to finish before moving forward, and other times it just plain runs thru it, ignoring the delay I have in there.

I am using this from the doc to create the delay. Am I using it wrong?

Code:
hs.PluginFunction("BLSpeech", "", "ContinueAfterSpeaking", Nothing)
Code:
Sub Main (Parms as Object)
Try
dim House_Mode as String = hs.devicestring(1060)
Dim Weather as string = hs.devicestring(756)
dim playerInstance as string
dim Args(1) as object
playerInstance = "Player_b827ebb275f9"
Args(0) = "pandora playlist play item_id:6799a2a7.0.0"
Args(1) = False
hs.PluginFunction("BLRussound", "", "SetZonePower", New Object(){1,5,"On"})
System.Threading.Thread.CurrentThread.Sleep(1000)
If House_Mode = "Sleep" OrElse House_Mode = "Dawn" OrElse House_Mode = "Morning" then
    hs.speak ("{speaker=Bathroom,volume=28, source=2} " & Weather, True)
    hs.PluginFunction("BLSpeech", "", "ContinueAfterSpeaking", Nothing)
Else
    hs.speak ("{speaker=Bathroom,volume=40, source=2} " & Weather, True)
    hs.PluginFunction("BLSpeech", "", "ContinueAfterSpeaking", Nothing)
End If
    hs.PluginFunction("BLRussound", "", "SetZoneSource", New Object(){1,5,5})
    hs.PluginFunction("SqueezeBox", playerInstance, "PlayerSendCLICommand", Args)
    Catch ex As Exception
hs.WriteLog("Pandora Weather Script", "Exception " & ex.ToString)
End Try
End Sub
Reply With Quote
  #2  
Old April 18th, 2016, 02:19 PM
waynehead99 waynehead99 is offline
Super Seer
 
Join Date: May 2015
Location: Colorado
Posts: 1,982
Not sure if it's related, but this also always returns false:

Code:
Dim isSpeaking As Boolean = hs.PluginFunction("BLSpeech", "", "IsHomeseerSpeaking", Nothing)
Even when speech is actively happening.

Edit: Does Appear to be related when looking at the logs. Returns false when it checks.
Attached Images
 

Last edited by waynehead99; April 18th, 2016 at 02:30 PM.
Reply With Quote
  #3  
Old April 19th, 2016, 04:46 PM
waynehead99 waynehead99 is offline
Super Seer
 
Join Date: May 2015
Location: Colorado
Posts: 1,982
Tried the event in the screenshot as well. This doesn't work either. The lights flashed immediately well the voice was speaking.

No one else is seeing this? I am running the latest versions of both BLSpeech and BLRussound.
Attached Images
 
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
Event Action Delay??? CharlieWayne Insteon Plug-in (Mark Sandler) 7 March 31st, 2015 07:22 AM
TTS Start Delay and Playing Wav not working mark_anderson_us PI-SonosController (3P) 2 October 9th, 2012 05:41 PM
5 second delay before action mahatma73 HS2 / HSPRO 24 September 25th, 2008 09:56 AM


All times are GMT -4. The time now is 08:15 AM.


Copyright HomeSeer Technologies, LLC