whisper.rn
Version:
React Native binding of whisper.cpp
54 lines • 1.91 kB
TypeScript
/**
* @see https://developer.apple.com/documentation/avfaudio/avaudiosessioncategory?language=objc
*/
export declare enum AudioSessionCategoryIos {
Ambient = "Ambient",
SoloAmbient = "SoloAmbient",
Playback = "Playback",
Record = "Record",
PlayAndRecord = "PlayAndRecord",
MultiRoute = "MultiRoute"
}
/**
* @see https://developer.apple.com/documentation/avfaudio/avaudiosessioncategoryoptions?language=objc
*/
export declare enum AudioSessionCategoryOptionIos {
MixWithOthers = "MixWithOthers",
DuckOthers = "DuckOthers",
InterruptSpokenAudioAndMixWithOthers = "InterruptSpokenAudioAndMixWithOthers",
AllowBluetooth = "AllowBluetooth",
AllowBluetoothA2DP = "AllowBluetoothA2DP",
AllowAirPlay = "AllowAirPlay",
DefaultToSpeaker = "DefaultToSpeaker"
}
/**
* @see https://developer.apple.com/documentation/avfaudio/avaudiosessionmode?language=objc
*/
export declare enum AudioSessionModeIos {
Default = "Default",
VoiceChat = "VoiceChat",
VideoChat = "VideoChat",
GameChat = "GameChat",
VideoRecording = "VideoRecording",
Measurement = "Measurement",
MoviePlayback = "MoviePlayback",
SpokenAudio = "SpokenAudio"
}
/**
* AudioSession Utility, iOS only.
*/
declare const _default: {
Category: typeof AudioSessionCategoryIos;
CategoryOption: typeof AudioSessionCategoryOptionIos;
Mode: typeof AudioSessionModeIos;
getCurrentCategory: () => Promise<{
category: AudioSessionCategoryIos;
options: AudioSessionCategoryOptionIos[];
}>;
getCurrentMode: () => Promise<AudioSessionModeIos>;
setCategory: (category: AudioSessionCategoryIos, options: AudioSessionCategoryOptionIos[]) => Promise<void>;
setMode: (mode: AudioSessionModeIos) => Promise<void>;
setActive: (active: boolean) => Promise<void>;
};
export default _default;
//# sourceMappingURL=AudioSessionIos.d.ts.map