|
Interruption and Queuing
Turn OFF the Interrupt Mode using setStatus(0,0) command. In this case, audio playback function calls are queued for consecutive playback.
Turn ON the Interrupt Mode using setStatus(1,0) command. In this case, the current audio is interrupted when sayText is called.
Note: Default setting is OFF.
Try clicking the audio playback links on the right in sequence and see how interrupt mode affects playback.
sayText('London bridge is falling down',3,1,3)
sayText('falling down',3,1,3)
sayText('falling down',3,1,3)
sayText('London bridge is falling down',3,1,3)
sayText('my fair lady',3,1,3)
Example : Turn ON/OFF Interrupt Mode.
<html>
<head>
<script language="JavaScript" type="text/javascript" src="http://vhss-d.oddcast.com/vocalware_embed_functions.php?acc=3314795&js=1"></script>
</head>
<body>
<!-- This function call needs to be in or after the body tag -->
<script language="JavaScript" type="text/javascript">
AC_Vocalware_Embed(3314795, 1, 1, '', 0, 1, 2504354, 0, 1, 0, 'e704f7a6017aab05093b2cb079e00e4e', 9);
</script>
<img src="https://www.vocalware.com/images/support/london_bridge.jpg"><br/><br/>
Turn OFF the Interrupt Mode: <a style=" font-size:120%;" href="javascript:setStatus(0,0);">setStatus(0,0) </a><br/>
Turn ON the Interrupt Mode: <a style=" font-size:120%;" href="javascript:setStatus(1,0);">setStatus(1,0) </a><br/>
<br/><a style=" font-size:120%;" href="javascript:sayText('London bridge is falling down',3,1,3);"> sayText('London bridge is falling down',3,1,3)</a>
<br/><a style=" font-size:120%;" href="javascript:sayText('falling down',3,1,3);"> sayText('falling down',3,1,3)</a>
<br/><a style=" font-size:120%;" href="javascript:sayText('falling down',3,1,3);"> sayText('falling down',3,1,3)</a>
<br/><a style=" font-size:120%;" href="javascript:sayText('London bridge is falling down',3,1,3);"> sayText('London bridge is falling down',3,1,3)</a>
<br/><a style=" font-size:120%;" href="javascript:sayText('my fair lady',3,1,3);"> sayText('my fair lady',3,1,3)</a>
</body>
</html>
|
|