add parakeet

This commit is contained in:
2026-10-27 10:55:05 +07:00
parent 9fa4f4f2ff
commit 589c43b982
13 changed files with 1527 additions and 21 deletions
+1
View File
@@ -11,6 +11,7 @@ common = { path = "../common" }
nip29 = { path = "../nip29" }
person = { path = "../person" }
settings = { path = "../settings" }
speech = { path = "../speech" }
state = { path = "../state" }
gpui-kit = { workspace = true, features = ["speech"] }
ui = { path = "../ui" }
+12 -1
View File
@@ -1,4 +1,5 @@
use std::collections::BTreeMap;
use std::time::Duration;
use anyhow::Result;
use gpui::prelude::FluentBuilder;
@@ -341,7 +342,17 @@ impl GroupPanel {
.clean_on_escape()
});
let speech = cx.new(SpeechState::new);
let speech = cx.new(|cx| {
let state = SpeechState::new(cx)
.recognizer(speech::recognizer())
// Batch transcription of a long recording can take a while.
.stop_timeout(Duration::from_secs(180));
#[cfg(target_arch = "wasm32")]
let state = state.input(speech::input());
state
});
let mut subscriptions = smallvec![];