new VoiceFileUploader(appid, appkey)
VoiceFileUploader
Parameters:
Name | Type | Description |
---|---|---|
appid |
string | sdk appid |
appkey |
string | sdk appkey |
Methods
upload(fileContent, contentType, callback)
Upload voice file
Parameters:
Name | Type | Description |
---|---|---|
fileContent |
Buffer | voice file content |
contentType |
string | voice file content type, Enum{"mp3", "wav"} |
callback |
function | request handler, method signature: function(error, response, responseData) |