Improve/add missing features of the capacitor community Native speech recognition plugin
npm install native-speech-recognition
npx cap sync
hasAudioPermission()
checkAudioPermission()
requestAudioPermission()
hasSpeechRecognitionPermission()
checkSpeechRecognitionPermission()
requestSpeechRecognitionPermission()
- Interfaces
- Type Aliases
hasAudioPermission() => Promise<PermissionBool>
Check if the user has granted the record_audio permission.
Returns: Promise<PermissionBool>
checkAudioPermission() => Promise<AudioPermissionStatus>
Check record_audio permission.
Returns: Promise<AudioPermissionStatus>
requestAudioPermission() => Promise<AudioPermissionStatus>
Request record_audio permission. Resolves with the new permission status after the user has denied/granted the request.
Returns: Promise<AudioPermissionStatus>
hasSpeechRecognitionPermission() => Promise<PermissionBool>
Check if the user has granted the speech recognition permission.
Returns: Promise<PermissionBool>
checkSpeechRecognitionPermission() => Promise<SpeechRecognitionPermissionStatus>
Check speech recognition permission.
Returns: Promise<SpeechRecognitionPermissionStatus>
requestSpeechRecognitionPermission() => Promise<SpeechRecognitionPermissionStatus>
Request speech recognition permission. Resolves with the new permission status after the user has denied/granted the request.
Returns: Promise<SpeechRecognitionPermissionStatus>
Prop | Type | Description |
---|---|---|
hasPermission |
boolean |
Permission state for record_audio alias. |
Prop | Type | Description |
---|---|---|
record_audio |
PermissionState |
Permission state for record_audio alias. |
Prop | Type | Description |
---|---|---|
speech_recognition |
PermissionState |
Permission state for Speech recognition. |
'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'