|
Add Voice Effects
Voice effects allow you to adjust qualities of our Text-to-Speech voices.
Effect - Our effects allow you to alter the Pitch, Speed and Duration of the audio or add a robotic quality to the audio.
Effect Level - Pitch, Speed and Duration can be applied at Effect Levels of -3, -2, -1, 0, 1, 2, 3.
Adding an effect to a Text-to-Speech call requires adding two parameters to the end of your sayText() call.
Example : Add Voice Effects.
<html>
<head>
<script language="JavaScript" type="text/javascript" src="http://vhss-d.oddcast.com/vocalware_embed_functions.php?acc=3314795&js=1"></script>
<script language="javascript">
function ldMenu(mySubject) {
var Indx=mySubject;
with (document.form2.select2){
document.form2.select2.options.length=0;
if (Indx==0){
options[0]=new Option("You must select a effect first!","");
}
if (Indx == 1){
options[0]=new Option("Select effect level","");
options[1]=new Option("-3","-3");
options[2]=new Option("-2","-2");
options[3]=new Option("-1","-1");
options[4]=new Option("0","0");
options[5]=new Option("1","1");
options[6]=new Option("2","2");
options[7]=new Option("3","3");
}
if (Indx== 2){
options[0]=new Option("Select effect level","");
options[1]=new Option("-3","-3");
options[2]=new Option("-2","-2");
options[3]=new Option("-1","-1");
options[4]=new Option("0","0");
options[5]=new Option("1","1");
options[6]=new Option("2","2");
options[7]=new Option("3","3");
}
if (Indx==3){
options[0]=new Option("Select effect level","");
options[1]=new Option("-3","-3");
options[2]=new Option("-2","-2");
options[3]=new Option("-1","-1");
options[4]=new Option("0","0");
options[5]=new Option("1","1");
options[6]=new Option("2","2");
options[7]=new Option("3","3");
}
if (Indx==4){
options[0]=new Option("Select effect level","");
options[1]=new Option("0","0");
options[2]=new Option("3","3");
}
if (Indx==5){
options[0]=new Option("Select effect level","");
options[1]=new Option("0","0");
options[2]=new Option("1","1");
options[3]=new Option("2","2");
options[4]=new Option("3","3");
options[5]=new Option("4","4");
}
document.form2.select2.options[0].selected=true;
}
}
function speakText(text, voice, language, engine, a,b){
setStatus(1,0);
sayText(text, voice, language, engine, a, b); // if you are using sayAudio, place the sayAudio call here()
}
</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/welcome_to_vocalware_support.jpg"><br/><br/>
<form name="form1">
<select name="select1" onChange="ldMenu(this.selectedIndex);" size="1" style="margin-bottom: 10px">
<option value="0" selected>Select an effect</option>
<option value="p">Pitch</option>
<option value="s">Speed</option>
<option value="s">Duration</option>
<option value="r">Robotic</option>
<option value="t">Time</option>
</select>
</form>
<form name="form2" method="post" action enctype="text/plain">
<select name="select2" size="1" style="margin-bottom: 10px">
<option selected value="Select effect level">Select effect level</option>
</select>
</form>
<INPUT TYPE="button" VALUE="Try Effect" NAME="SayButton" onClick="javascript:speakText('Welcome to Vocalware Support', 3,1,3, form1.select1.value, form2.select2.value); ">
</body>
</html>
|
|