Skip to content

hari-haran/watson-speech-to-text-cordova

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

This is *NOT* the official repository of IBM Watson.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 84.0%
  • C++ 10.2%
  • Objective-C 5.7%
  • JavaScript 0.1%