#cordova-plugin-watsonstt
This plugin is a wrapper of a IBM Watson Speech-To-Text IOS SDK
#Installation
cordova plugin add https://github.com/slicebread/watson-speech-to-text-cordova
#Api
WatsonSTT.init
Init method example :
/**
* Init method
* @param (Object) {username : '', password : ''}
* @param (Function) Success Callback
* @param (Function) Error Callback
*/
WatsonSTT.init({username : '', password: ''}, success, error);
WatsonSTT.speechToText
SpeechToText method example :
/**
* SpeechToText method
* @param (Function)- callback for success `function (context) {}`
* @param (Function)- callback for error `function (error) {}`
*/
WatsonSTT.speechToText(function(context){
//context
}, error);
WatsonSTT.setListeningStatusCallback
SetListeningStatusCallback method example :
/**
* SetListeningStatusCallback method
* events : listening_started, listening_ended
* @param (Function)- callback on success`
*/
WatsonSTT.setListeningStatusCallback(function(param){
//{status : 'listening_started', value : '',
//status : 'listening_stopped', value : '',}
});
WatsonSTT.setVoiceLevelCallback
/**
* setVoiceLevelCallback method
* @param (Function)- callback to get voice level`
*/
WatsonSTT.setVoiceLevelCallback(function(voiceLevel){
});
#Supported Platforms
- iOS