mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-08 09:24:41 +00:00
22 lines
683 B
JavaScript
22 lines
683 B
JavaScript
// Preserve the voice model's lifecycle without loading mobile-only Expo audio
|
|
// during app startup. Requests fail explicitly until a Linux audio backend exists.
|
|
export function createAudioEngine() {
|
|
const unavailable = async () => {
|
|
throw new Error("Voice capture and playback are not available in the GPUI build yet.");
|
|
};
|
|
return {
|
|
initialize: unavailable,
|
|
startCapture: unavailable,
|
|
play: unavailable,
|
|
async destroy() {},
|
|
async stopCapture() {},
|
|
stop() {},
|
|
clearQueue() {},
|
|
isPlaying: () => false,
|
|
isMuted: () => false,
|
|
toggleMute() {
|
|
throw new Error("Voice capture is not available in the GPUI build yet.");
|
|
},
|
|
};
|
|
}
|