Class: TtsVoiceSender

TtsVoiceSender(appid, appkey)

new TtsVoiceSender(appid, appkey)

TtsVoiceSender
Parameters:
Name Type Description
appid string sdk appid
appkey string sdk appkey
Source:

Methods

send(nationCode, phonenumber, templId, params, playtimes, ext, callback)

Send a tts voice
Parameters:
Name Type Description
nationCode string nation dialing code, e.g. China is 86, USA is 1
phonenumber string phone number
templId number template id
params array template parameters
playtimes number playtimes, optional, max is 3, default is 2
ext string ext field, content will be returned by server as it is
callback function request handler, method signature: function(error, response, responseData)
Source: