Tropo WebAPI Development Guide Home  |  Frameset Home


{"startRecording":}  object


Allows Tropo applications to begin recording the current session. The resulting recording may then be sent via FTP or an HTTP POST/Multipart Form.


usage

{ "startRecording": {
    "format": String,
    "method": String,
    "url": String,
    "username": String,
    "password": String } }


fields

format Data Type: String Default: audio/wav Optional
This specifies the format for the audio recording; it can be 'audio/wav', 'audio/mp3' or 'audio/au'.
method Data Type: String Default: POST Optional
When submitting recordings via HTTP, this parameter determines the method used. This can be 'POST' (which is the default) or 'PUT' . When sending via POST, the name of the form field is "filename".
url Data Type: String Default: "" (undefined) Required
This is the destination URL to send the recording. This can be an FTP destination, like so:

ftp://ftp.myServer.com/files/myRecording.wav

You can build your username and password directly inline with the URL, or you can define them with the individual "username" and "password" fields.
username Data Type: String Default: "" (undefined) Optional
This identifies the FTP account username.
password Data Type: String Default: "" (undefined) Optional
This identifies the FTP account password.



code samples

Example with stopCallRecording
{
   "tropo":[
      {
         "startRecording":{
            "name":"myrecording",
            "url":"http://example.com/getrecord.php"
         }
      },
      {
         "say":[
            {
               "value":"I am now recording!"
            }
         ]
      },
      {
         "stopRecording":null
      }
   ]
}



additional links

none


  ANNOTATIONS: EXISTING POSTS
0 posts - click the button below to add a note to this page

login



© 2012 Voxeo Corporation  |  Voxeo IVR  |  VoiceXML & CCXML IVR Developer Site