capacitor plugin for hci-asr
npm install hci-asr
npx cap sync
checkPermissions()
requestPermissions()
sdkInit(...)
createRecorder(...)
startRecord()
stopRecord(...)
startRecognize(...)
cancelRecognize()
- Interfaces
- Type Aliases
- Enums
checkPermissions() => Promise<PermissionStatus>
Returns: Promise<PermissionStatus>
requestPermissions() => Promise<PermissionStatus>
Returns: Promise<PermissionStatus>
sdkInit(options: InitOptions) => Promise<PromiseResult>
Param | Type |
---|---|
options |
InitOptions |
Returns: Promise<PromiseResult>
Since: 0.0.1
createRecorder(second: number) => Promise<PromiseResult>
Param | Type |
---|---|
second |
number |
Returns: Promise<PromiseResult>
startRecord() => Promise<{ success: boolean; }>
Returns: Promise<{ success: boolean; }>
stopRecord(cancel: boolean) => Promise<PromiseResult>
Param | Type |
---|---|
cancel |
boolean |
Returns: Promise<PromiseResult>
startRecognize(language: RecognizeLanguage) => Promise<PromiseResult>
Param | Type |
---|---|
language |
RecognizeLanguage |
Returns: Promise<PromiseResult>
cancelRecognize() => Promise<PromiseResult>
Returns: Promise<PromiseResult>
Prop | Type |
---|---|
access_network_state |
PermissionState |
internet |
PermissionState |
microphone |
PermissionState |
storage |
PermissionState |
Prop | Type |
---|---|
success |
boolean |
message |
string |
result |
any |
Prop | Type |
---|---|
appKey |
string |
secret |
string |
sysUrl |
string |
capUrl |
string |
'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'
Members | Value |
---|---|
chinese |
'cn_16k_common' |
shanghai |
'x-shanghai_16k_common' |