Properties
_addListenerObserver
Type declaration
-
-
Parameters
-
-
observerCallback: (actionType: "added" | "removed", eventHandler: MediaEventHandler) => void
-
-
Parameters
-
actionType: "added" | "removed"
-
Returns void
Returns void
_notifyObservers
Type declaration
-
-
Parameters
-
-
actionType: "added" | "removed"
-
Returns void
_preparing
_preparing: (moduleName: string) => void
Type declaration
-
- (moduleName: string): void
_ready
_ready: (moduleName: string) => void
Type declaration
-
- (moduleName: string): void
_removeListenerObserver
Type declaration
-
-
Parameters
-
-
observerCallback: (actionType: "added" | "removed", eventHandler: MediaEventHandler) => void
-
-
Parameters
-
actionType: "added" | "removed"
-
Returns void
Returns void
cancelRecognition
cancel
Recognition: (successCallback?: Function, failureCallback?: Function) => void
createEmptyAudio
create
EmptyAudio: () => IAudio
destroyRecognition
destroy
Recognition: (successCallback?: (didDestroy: boolean) => void, failureCallback?: Function) => void
Type declaration
-
- (successCallback?: (didDestroy: boolean) => void, failureCallback?: Function): void
-
Parameters
-
Optional successCallback: (didDestroy: boolean) => void
-
- (didDestroy: boolean): void
-
Optional failureCallback: Function
Returns void
destroySpeech
destroy
Speech: (successCallback?: (didDestroy: boolean) => void, failureCallback?: Function) => void
Type declaration
-
- (successCallback?: (didDestroy: boolean) => void, failureCallback?: Function): void
-
Parameters
-
Optional successCallback: (didDestroy: boolean) => void
-
- (didDestroy: boolean): void
-
Optional failureCallback: Function
Returns void
getFunc
getFunc: (ctx: string, funcName: string) => any
Type declaration
-
- (ctx: string, funcName: string): any
-
Parameters
-
ctx: string
-
funcName: string
Returns any
getURLAsAudio
getURLAs
Audio: (url: string, onEnd: any, failureCallback: any, successCallback: any, audioObj: IAudio, ...args: any[]) => IAudio
Type declaration
-
- (url: string, onEnd: any, failureCallback: any, successCallback: any, audioObj: IAudio, ...args: any[]): IAudio
-
Parameters
-
url: string
-
onEnd: any
-
failureCallback: any
-
successCallback: any
-
-
Rest ...args: any[]
getWAVAsAudio
getWAVAs
Audio: (blob: any, callback: any, onEnd: any, failureCallback: any, onInit: any, emptyAudioObj: IAudio) => IAudio
Type declaration
-
- (blob: any, callback: any, onEnd: any, failureCallback: any, onInit: any, emptyAudioObj: IAudio): IAudio
-
Parameters
-
blob: any
-
callback: any
-
onEnd: any
-
failureCallback: any
-
onInit: any
-
emptyAudioObj: IAudio
hasListeners
Type declaration
-
-
Parameters
Returns boolean
init
init
: (successCallback
?: Function, failureCallback
?: Function, listenerList
?: { listener
: Function; name
: string }[]) => any
Type declaration
-
-
Parameters
-
Optional successCallback: Function
-
Optional failureCallback: Function
-
Optional listenerList: { listener: Function; name: string }[]
Returns any
initializeRecognition
initialize
Recognition: (successCallback?: (didInitialize: boolean) => void, failureCallback?: Function) => void
Type declaration
-
- (successCallback?: (didInitialize: boolean) => void, failureCallback?: Function): void
-
Parameters
-
Optional successCallback: (didInitialize: boolean) => void
-
- (didInitialize: boolean): void
-
Optional failureCallback: Function
Returns void
initializeSpeech
initialize
Speech: (successCallback?: (didInitialize: boolean) => void, failureCallback?: Function) => void
Type declaration
-
- (successCallback?: (didInitialize: boolean) => void, failureCallback?: Function): void
-
Parameters
-
Optional successCallback: (didInitialize: boolean) => void
-
- (didInitialize: boolean): void
-
Optional failureCallback: Function
Returns void
loadFile
load
File: (filePath: string, successCallback?: Function, failureCallback?: Function, execId?: string, config?: any) => void
Type declaration
-
- (filePath: string, successCallback?: Function, failureCallback?: Function, execId?: string, config?: any): void
-
Parameters
-
filePath: string
-
Optional successCallback: Function
-
Optional failureCallback: Function
-
Optional execId: string
-
Optional config: any
Returns void
off
Type declaration
-
-
Parameters
Returns boolean
perform
perform: (ctx: string, funcName: string, args?: any[]) => any
Type declaration
-
- (ctx: string, funcName: string, args?: any[]): any
-
Parameters
-
ctx: string
-
funcName: string
-
Optional args: any[]
Returns any
recognize
Type declaration
-
-
Parameters
-
-
Optional statusCallback: ASROnStatus
-
Optional failureCallback: ASROnError
-
Optional isIntermediateResults: boolean
Returns void
removeListener
Type declaration
-
-
Parameters
Returns boolean
setDefaultCtx
setDefaultCtx: (ctxId: string) => void
setTextToSpeechVolume
setTextToSpeechVolume: (newValue: number) => void
startRecord
Type declaration
-
-
Parameters
-
-
Optional successCallback: ASROnStatus
-
Optional failureCallback: ASROnError
-
Optional intermediateResults: boolean
Returns void
use _emitEvent instead