2. FTTS SDK features
Init gateway
Contact us for get app_id
& secret_key
Register SDK Callback
After registration, the SDK will return the corresponding status in the callback
onStart
Called at start record
onPlaying
Called while audio playing
onSuccess
Called when return result
onFail
Called when an error occurs in process
Get language config
Get list language config used to tts param
When sucess, result is
listLanguage
, it will be called ononSuccess()
in callbackWhen fail, it will called on
onFail()
in callback
Start TTS
Used to start TTS
When successful start, it will be called on
onStart()
in callbackIf
isAutoPlayAudio = true
, when have result sdk will play audio and called ononPlaying()
in callback, after play audio completed,audioUrl
will be return ononSuccess
in callback.If
isAutoPlayAudio = false
, when have resultaudioUrl
will be return ononSuccess
in callback.When fails, it will be processed at callback
onFail()
in callback.
Last updated