Type aliases
ASRMode
ASRMode: "search" | "dictation"
ASROnError
ASROnError: (error: string | Error) => void
Type declaration
-
- (error: string | Error): void
ASROnStatus
ASROn
Status: (text: string | "", confidence: number | undefined, status: ASRStatus, alternatives?: { result: string; score: number }[], unstable?: string, custom?: any) => void
Type declaration
-
- (text: string | "", confidence: number | undefined, status: ASRStatus, alternatives?: { result: string; score: number }[], unstable?: string, custom?: any): void
-
Parameters
-
text: string | ""
-
confidence: number | undefined
-
-
Optional alternatives: { result: string; score: number }[]
-
Optional unstable: string
-
Optional custom: any
Returns void
ASRStatus
ASRStatus: "FINAL" | "INTERIM" | "INTERMEDIATE" | "RECORDING_BEGIN" | "RECORDING_DONE"
ChecksumInfo
ChecksumInfo: { hash: string; info?: string; size: number }
Type declaration
-
hash: string
-
Optional info?: string
-
size: number
Comparator
Comparator: ">=" | "<=" | ">" | "<" | "!=" | "!==" | "=" | "==" | "==="
ConfigurationChangeListener
ConfigurationChangeListener: (newValue: any, oldValue?: any, propertyName?: string[]) => void
Type declaration
-
- (newValue: any, oldValue?: any, propertyName?: string[]): void
-
Parameters
-
newValue: any
-
Optional oldValue: any
-
Optional propertyName: string[]
Returns void
CryptoImpl
CryptoImpl: { MD5: any }
Type declaration
-
MD5: function
-
Parameters
Returns string
EOSPause
EOSPause: "short" | "long"
FileInfo
FileInfo: { genPath: string; name: string; path: string }
Type declaration
-
genPath: string
-
name: string
-
path: string
GrammarEngineType
GrammarEngineType: "jscc" | "jison" | "pegjs"
GrammarType
GrammarType: "source" | "bin"
ListLanguagesFunction
List
LanguagesFunction: (successCallBack?: (languages: string[]) => void, failureCallBack?: Function) => void
Type declaration
-
- (successCallBack?: (languages: string[]) => void, failureCallBack?: Function): void
-
Parameters
-
Optional successCallBack: (languages: string[]) => void
-
- (languages: string[]): void
-
Optional failureCallBack: Function
Returns void
ListVoicesFunction
Type declaration
-
-
Parameters
-
-
Optional successCallBack: (voices: string | VoiceDetails[]) => void
-
Optional failureCallBack: Function
Returns void
LogLevel
LogLevel: "verbose" | "debug" | "info" | "warn" | "error" | "critical" | "disabled"
LogLevelNum
LogLevelNum: 0 | 1 | 2 | 3 | 4 | 5 | 6
MediaEventType
MediaEventType: string
MediaPluginEnvType
MediaPluginEnvType: "browser" | "cordova" | "android" | "ios"
MediaPluginType
MediaPluginType: "audio" | "asr" | "tts" | "prep" | string
PlatfromType
PlatfromType: "browser" | "android" | "ios" | "node" | "electron"
ProcessingFunction
Processing
Function: (input: string | Positions, isProcessPositions?: boolean) => string | Positions
Type declaration
-
-
Parameters
-
-
Optional isProcessPositions: boolean
TTSOnComplete
TTSOnComplete: () => void
TTSOnError
TTSOnError: (error: string | Error) => void
Type declaration
-
- (error: string | Error): void
TTSOnReady
TTSOn
Ready: (isReady?: Boolean, audio?: IAudio) => void
Type declaration
-
- (isReady?: Boolean, audio?: IAudio): void
-
Parameters
-
Optional isReady: Boolean
-
Optional audio: IAudio
Returns void
the
mmir-lib
package provides the mmir core library for lightweight, client-centric, multimodal interaction development.See also the HTML API docs.
NOTE The API documentation for
mmir-lib
has not been fully migrated to TypeScript yet. For more detailed descriptions see generated JSDoc-based API at mmig.github.io/mmir/apiMmirModule