react-native-wakeword
Version:
Voice/Wake-word detection library for React Native
18 lines (17 loc) • 756 B
TypeScript
export type RouteConfigEntry = {
category: 'playAndRecord' | 'record' | 'soloAmbient' | 'ambient' | 'playback';
mode: 'default' | 'measurement' | 'voiceChat' | 'videoRecording' | 'gameChat';
options: ('mixWithOthers' | 'duckOthers' | 'allowBluetooth' | 'allowBluetoothA2DP' | 'allowAirPlay' | 'defaultToSpeaker' | 'overrideMutedMicrophoneInterruption')[];
preferredInput: 'none' | 'builtInMic';
};
export type AudioRoutingConfig = {
default: RouteConfigEntry;
byOutputPort: {
carAudio?: RouteConfigEntry;
builtInReceiver?: RouteConfigEntry;
builtInSpeaker?: RouteConfigEntry;
bluetoothA2DP?: RouteConfigEntry;
bluetoothHFP?: RouteConfigEntry;
headphones?: RouteConfigEntry;
};
};