You have suggested you would like to do the following:
Code: Select all
<audio>
This text should be converted to tts.
</audio>
Running the above IVR code on our IVR platform will throw an error.badfetch. If you look more closely at the spec, this is the correct behavior. The src attribute is optional, however the spec states in
Section 4.1.3:
Exactly one of "src" or "expr" must be specified; otherwise, an error.badfetch event is thrown.
The simple work around for your IVR code is to simply remove the
<audio> tags completely.
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0">
<form>
<block>
This text should be converted to tts.
</block>
</form>
</vxml>
You are confusing the audio tag with tts generation, the generation of tts is implicit for all text inside the
<block> tag,
<prompt> tag and most SSML tags. Hope this helps!