#[cfg(not(target_arch = "wasm32"))] pub mod model; #[cfg(not(target_arch = "wasm32"))] mod parakeet; #[cfg(target_arch = "wasm32")] mod web; use gpui_kit::component::speech::SpeechRecognizer; /// The recognizer backing the composer's microphone button. #[cfg(not(target_arch = "wasm32"))] pub fn recognizer() -> impl SpeechRecognizer { parakeet::ParakeetRecognizer } /// The recognizer backing the composer's microphone button. #[cfg(target_arch = "wasm32")] pub fn recognizer() -> impl SpeechRecognizer { web::WebSpeechRecognizer } /// The audio source backing the composer's microphone button on the web. #[cfg(target_arch = "wasm32")] pub fn input() -> impl gpui_kit::component::speech::AudioInput { web::SelfCapturedInput }