Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MediaManager

Hierarchy

  • MediaManager

Index

Properties

_addListenerObserver

_addListenerObserver: (eventName: MediaEventType, observerCallback: (actionType: "added" | "removed", eventHandler: MediaEventHandler) => void) => void

Type declaration

_emitEvent

_emitEvent: (eventName: MediaEventType, ...args: any[]) => void

Type declaration

_fireEvent

_fireEvent: (eventName: MediaEventType, args: any[]) => void
deprecated

use _emitEvent instead

Type declaration

_notifyObservers

_notifyObservers: (eventName: MediaEventType, actionType: "added" | "removed", eventHandler: MediaEventHandler) => void

Type declaration

_preparing

_preparing: (moduleName: string) => void

Type declaration

    • (moduleName: string): void
    • Parameters

      • moduleName: string

      Returns void

_ready

_ready: (moduleName: string) => void

Type declaration

    • (moduleName: string): void
    • Parameters

      • moduleName: string

      Returns void

_removeListenerObserver

_removeListenerObserver: (eventName: MediaEventType, observerCallback: (actionType: "added" | "removed", eventHandler: MediaEventHandler) => void) => void

Type declaration

addListener

addListener: (eventName: MediaEventType, eventHandler: MediaEventHandler) => void

Type declaration

cancelRecognition

cancelRecognition: (successCallback?: Function, failureCallback?: Function) => void

Type declaration

cancelSpeech

cancelSpeech: (successCallBack?: Function, failureCallBack?: Function) => void

Type declaration

createEmptyAudio

createEmptyAudio: () => IAudio

Type declaration

ctx

ctx: {}

Type declaration

  • [ctxId: string]: any

destroyRecognition

destroyRecognition: (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
          • Parameters

            • didDestroy: boolean

            Returns void

      • Optional failureCallback: Function

      Returns void

destroySpeech

destroySpeech: (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
          • Parameters

            • didDestroy: boolean

            Returns 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

getListeners

getListeners: (eventName: MediaEventType) => MediaEventHandler | void

Type declaration

getRecognitionLanguages

getRecognitionLanguages: ListLanguagesFunction

getSpeechLanguages

getSpeechLanguages: ListLanguagesFunction

getURLAsAudio

getURLAsAudio: (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
      • audioObj: IAudio
      • Rest ...args: any[]

      Returns IAudio

getVoices

getWAVAsAudio

getWAVAsAudio: (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

      Returns IAudio

hasListeners

hasListeners: (eventName: MediaEventType) => boolean

Type declaration

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

initializeRecognition: (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
          • Parameters

            • didInitialize: boolean

            Returns void

      • Optional failureCallback: Function

      Returns void

initializeSpeech

initializeSpeech: (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
          • Parameters

            • didInitialize: boolean

            Returns void

      • Optional failureCallback: Function

      Returns void

loadFile

loadFile: (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

off: (eventName: MediaEventType, eventHandler: MediaEventHandler) => boolean

Type declaration

on

on: (eventName: MediaEventType, eventHandler: MediaEventHandler) => void

Type declaration

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

playURL

playURL: (url: string, onEnd?: TTSOnComplete, failureCallback?: TTSOnError, onReady?: Function) => void

Type declaration

playWAV

playWAV: (blob: any, onEnd?: TTSOnComplete, failureCallback?: TTSOnError, onReady?: Function) => void

Type declaration

plugins

plugins: Array<MediaManagerPluginEntry & { disabled?: true | DisabledPluginInfo }> | null

recognize

recognize: (options?: ASROptions, statusCallback?: ASROnStatus, failureCallback?: ASROnError, isIntermediateResults?: boolean) => void

Type declaration

removeListener

removeListener: (eventName: MediaEventType, eventHandler: MediaEventHandler) => boolean

Type declaration

setDefaultCtx

setDefaultCtx: (ctxId: string) => void

Type declaration

    • (ctxId: string): void
    • Parameters

      • ctxId: string

      Returns void

setTextToSpeechVolume

setTextToSpeechVolume: (newValue: number) => void

Type declaration

    • (newValue: number): void
    • Parameters

      • newValue: number

      Returns void

startRecord

startRecord: (options?: ASROptions, successCallback?: ASROnStatus, failureCallback?: ASROnError, intermediateResults?: boolean) => void

Type declaration

stopRecord

stopRecord: (options?: ASROptions, successCallback?: ASROnStatus, failureCallback?: ASROnError) => void

Type declaration

tts

tts: (options: string | string[] | TTSOptions, successCallback?: TTSOnComplete, failureCallback?: TTSOnError, onInit?: TTSOnReady, ...args: any[]) => void

Type declaration

waitReadyImpl

waitReadyImpl: IWaitReadyImpl

Generated using TypeDoc