| CCXML Voxeo 1.0 Development Guide | Home | Frameset Home |
|
<dialogstart> element:
<dialogstart src="'MyFile.wav'" type="'audio/wav'"/>
<dialogstart type>. Let's take a look at the following snippet to see how this might play out:
...
<dialogstart src="'http://MyServer.com/MyFile.wav?termdigits=#'"
type="'application/x-fetchdigits'" name="SomeName"/>
...
<dialogstart> element. Targets can be any .wav or .vox sound file on HTTP or FTP servers, and we can pass along a number of URL parameters to fine-tune the recording session. Taking a look at the following snippet will give us an indication of how this might look in action:
...
<dialogstart src="'ftp://Myserver.com/MyAudioFile.wav?termdigits=1'"
type="'application/x-recordaudio'" name="SomeName"/>" ...
| ANNOTATIONS: EXISTING POSTS |
georgelai
|
|
| Hello, I am trying out the audio record function, and I am having problems recording in the ccxml. Part of code is below:
<transition state="'init'" event="connection.CONNECTION_CONNECTED" name="evt"> <log expr="'Start recording.'"/> <dialogstart src="'ftp://username:password@myserver/voice/filename.wav'" type="'application/x-recordaudio'" name="SomeName"/> <assign name="state0" expr="'dialogActive'" /> <send event="'timeout'" target="session.id" delay="'20000'" /> </transition> After I press any button, it should record, but doesn't. Much thanks in advance. |
|
georgelai
|
|
| Nevermind, got it to work. I don't know what the difference was, but I changed the script to:
<dialogstart src="'ftp://username:password@myserver/voice/filename.wav?termdigits=all'" type="'application/x-recordaudio'" name="SomeName"/> Now, when I press any key, it will end the recording, and it did save. Strange. |
| login |
|