| CallXML 3.0 Development Guide | Home | Frameset Home |
|
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="3.0">
<do>
</do>
</callxml>
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="3.0">
<do>
<recordaudio format="audio/wav"
value="mailto:my-email@my-email-server.com"
termdigits="#"
maxtime="60s"
maxsilence="10s"
beep="true"/>
</do>
</callxml>
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="3.0">
<do>
<recordaudio format="audio/wav"
value="mailto:my-email@my-email-server.com"
termdigits="#"
maxtime="60s"
maxsilence="10s"
beep="true"/>
<on event=termdigit:#">
</on>
<on event="maxtime">
</on>
<on event="maxsilence">
</on>
</do>
</callxml>
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="3.0">
<do>
<recordaudio format="audio/wav"
value="mailto:my-email@my-email-server.com"
termdigits="#"
maxtime="60s"
maxsilence="10s"
beep="true"/>
<on event="termdigit:#">
<say> Your message has been sent.</say>
</on>
<on event="maxtime">
<say> You have reached maxtime. Message sent.</say>
</on>
<on event="maxsilence">
<say> Maxsilence exceeded. Message sent.</say>
</on>
</do>
</callxml>
<?xml version="1.0" encoding="UTF-8" ?>
<callxml version="3.0">
<do>
<prompt value="greeting"/>
<recordaudio format="audio/wav" value="mailto:my-email@my-email-server.com"
termdigits="#" maxtime="60s" maxsilence="10s" beep="true"/>
<on event="termdigit:#">
<say> Your message has been sent.</say>
</on>
<on event="maxtime">
<say> You have reached maxtime. Message sent.</say>
</on>
<on event="maxsilence">
<say> Maxsilence exceeded. Message sent.</say>
</on>
</do>
<on event="error">
<sendemail from="MyApp@here.com"
to="YourEmail@there.net" type="debug">
We caught an error in our application. Details follow...
</sendemail>
</on>
</callxml>
| ANNOTATIONS: EXISTING POSTS |
bsondi
|
|
| The application works fine, except when I receive the recording in my email, it is all in some weird code and not as a .wav or .mp3 format. Can you please tell me what I am doing wrong? | |
VoxeoDustin
|
|
| Hello,
In your recordaudio tag, can you specify format="audio/wav"? This should generate a uLaw encoded WAV file with a RIFF header - any audio player should be able to handle this without issue. <recordaudio format="audio/wav" .../> Regards, Dustin Hayre Technical Account Lead Voxeo Corporation [url=http://www.voxeo.com/prophecy/][img=http://www.voxeo.com/images/try_prophecy_sm.gif] [b][color=blue]Prophecy 11 now available![/color][/url] [url=http://docs.voxeo.com/prophecy/11.0/home.htm/]Documentation[/url][/b] |
| login |
|