pub enum AudioInput {
File(PathBuf),
Bytes {
data: Bytes,
format: AudioFormat,
},
Pcm(PcmBuffer),
}Variants§
File(PathBuf)
File on disk. Format is inferred from the extension by
stt-audio::decode, or supplied alongside via the cloud
backend’s multipart filename header.
Bytes
In-memory buffer with an explicit format hint.
Pcm(PcmBuffer)
Already-decoded PCM samples. Backends that do their own decode (whisper-rs) avoid the symphonia round-trip.
Trait Implementations§
Source§impl Clone for AudioInput
impl Clone for AudioInput
Source§fn clone(&self) -> AudioInput
fn clone(&self) -> AudioInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for AudioInput
impl RefUnwindSafe for AudioInput
impl Send for AudioInput
impl Sync for AudioInput
impl Unpin for AudioInput
impl UnsafeUnpin for AudioInput
impl UnwindSafe for AudioInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more