[Logo] SitePal Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
vh_talkEnded Called before audio is Done playing  XML
Forum Index » Programming with SitePal
Author Message
ericRoos


Joined: 24/08/2009 08:16:49
Messages: 4
Offline

In our application We use a fairly amount of text to speech generated speech from our character, But as well feel the need to have his text subtitled for people who don't have sound,
I wanted to use talkEnded as Que to make the subtitles disappear and trigger the next part of text.

Any proper way to detect if the character is done speaking?
Dan

[Avatar]

Joined: 25/03/2009 18:24:31
Messages: 105
Offline

vh_talkEnded should be implemented as a function. The implementation should look something like this.

function vh_talkEnded(){
textBox.value="";
mc.sayText(nextAudioString,1,1,1);
}

Let me know if I have misunderstood your request.

-Dan
ericRoos


Joined: 24/08/2009 08:16:49
Messages: 4
Offline

I think you understood my request.
However audioEnded doesn't work how it supposed to be.

By my suprise i have discovered that audioStarted and audioEnded also got dispatched when audio could not be loaded (Testing on local PC, in domain that isnt added)
so he also dispatched the event without loading the audio at al, This especialy seems to happen with cached audio.

Dan

[Avatar]

Joined: 25/03/2009 18:24:31
Messages: 105
Offline

This sounds like something that our support team should be investigating. Pleae provide your sample code to our team at support@sitepal.com and we will gladly further investigate this issue.

-Dan
 
Forum Index » Programming with SitePal
Go to:   
Powered by JForum 2.1.8 © JForum Team