function telecoms.soundclip.create

Upload a new soundclip for use with our telephony services, for example with (this is not necessarily a complete list):

When you upload the sound clip data, the sound file is automatically converted to the required format for use with our telephony appliances. If this step was unsuccessful, the API will return an error. Because this step has to be done on the fly, there may be a small delay before the API accepts your sound file.

Arguments:

argrequired?syntaxinfo
custIDNposintcustID of account that is to use the new soundclip (default is your own account)
descNstringa brief textual description of your soundclip
rolesYlista list of role names
audioformatYenum:wavsound file format of file being uploaded; only wav is supported at this time
b64audiodataYbase64 datastring containing base64 encoded binary audio data

Further argument information

roles

A list of roles to which this soundclip can be applied. This can be a comma separated list or an array of values. Use telecoms.soundclip.roletype.list to fetch a list of available role types.

b64audiodata

A base64 encoded string; the result of base64 encoding the sound file to be uploaded. There is no need to introduce line breaks to break up a long line of characters.

Return values

The function will return the soundclipID that can be then used in other functions that need a soundclipID in one or more of their arguments.