+2
Fixed

"saySilent()"-function doesn't work

Joseph 13 years ago in SitePal Silver updated 13 years ago 2
Hi,

We try to use "saySilent()"-function to pause between two sentences, but it doesn't work:
http://www.qe.com.hk/test.htm

Do anybody know why? And here is my codes:
...
function vh_sceneLoaded(){ //event function
sayText('london bridge is falling down',1,1,3);
saySilent(3);
sayText('falling down',1,1,3);
saySilent(3);
sayText('falling down',1,1,3);
saySilent(3);
}
...

Best Regards,
Joseph
Hi Joseph,

saySilent works fine in our example page -
http://www.oddcast.com/support/saySil...

in your example, you have interjected saySilent function calls in between speech function calls.

Doing so will not achieve any useful result - as the saySilent function is designed to be interrupted in case "real speech" begins. So when the second 'sayText' function is called, saySilent is interrupted, before it had a chance to actually do anything.

This is by design. the intention of saySilent was to be used in situations where you would be looking to capture the user's attention and get the user to roll over or click on the character. This can be very useful in banners, as many websites prohibit audio prior to rollover or click.

If your intention is to generate pauses between the spoken segments - please look into using SSML tags in the text. There is an appendix in the API reference that describes SSML tags that SitePal supports, including 'pause' or 'silence'.

Check out this example -
http://www.oddcast.com/support/NeoSpe...

Hope this helps,
Gil
Hi Gil,

I understand now!

Thanks for your help!

Best Regards,
Joseph