agents can transcribe an audio file: the transcribe_audio tool, through the harness and the speech-to-text service
This commit is contained in:
parent
c42db99f27
commit
eff209f756
1 changed files with 232 additions and 12 deletions
|
|
@ -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 },
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue