function telecoms.soundclip.edit

Edit/change an existing soundclip.

See telecoms.soundclip.create for information about automatic conversion of audio formats.

Arguments:

argrequired?syntaxinfo
custIDNposintcustID of account that owns the soundclip (default is your own account)
soundclipIDYposintidentifies the soundclip you wish to edit
descNstringnew textual description of your sound clip
rolesNlista replacement list of role names (removes all existing roles and replaces with these)
roles.addNlista list of roles to add to this soundclip (in addition to the ones it already has)
roles.delNlista list of roles to remove from this soundclip
b64audiodataNbase64 datanew sound file; string containing base64 encoded binary audio data
audioformat(if b64audiodata is supplied)enum:wavsound file format of file being uploaded; only wav is supported at this time

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.