Watch
0
0
Fork
You've already forked hyperhive
0

agents can transcribe an audio file: the transcribe_audio tool, through the harness and the speech-to-text service

This commit is contained in:
damocles 2026-11-12 10:14:54 +01:00 • committed by mara
commit eff209f756

View file

@ -135,6 +135,13 @@ pub enum Request {
/// through this variant, since a human watching the dashboard isn't
/// waiting on a wake.
Compact { wake_prompt: Option<String> },
/// Ask the swarm's speech-to-text service for the text of the audio file
/// at `path`. The harness reads the file (a regular file under the size
/// cap), sends the bytes on this agent's request subject
/// (`swarm_wire::stt`), and answers [`Response::Transcript`], or
/// [`Response::Err`] with the service's short reason. Can take minutes:
/// the service queues requests behind its one engine slot.
Transcribe { path: String },
}
/// A response on the in-agent socket. Serialised with a `kind` tag,
@ -155,6 +162,9 @@ pub enum Response {
ReminderRollup {
stats: hive_sh4re::inbox::ReminderStats,
},
/// `Transcribe` result: the text spoken in the audio (empty for silence),
/// and whether the service had it already.
Transcript { text: String, cached: bool },
/// Op failed; `message` is operator-facing.
Err { message: String },
}