adk-audio 0.4.0

Audio intelligence and pipeline orchestration for ADK-Rust agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Cloud STT provider implementations.

mod assemblyai;
mod deepgram;
mod whisper_api;

pub use assemblyai::AssemblyAiStt;
pub use deepgram::DeepgramStt;
pub use whisper_api::WhisperApiStt;

/// Convert an AudioFrame to WAV bytes for upload to STT APIs.
pub(crate) fn frame_to_wav_bytes(
    frame: &crate::frame::AudioFrame,
) -> crate::error::AudioResult<bytes::Bytes> {
    crate::codec::encode(frame, crate::codec::AudioFormat::Wav)
}