pub struct AudioFile {
pub bytes: Bytes,
pub file_name: String,
pub content_type: Option<String>,
}Expand description
Binary audio payload for /v1/audio/transcriptions.
The transcription endpoint uses multipart/form-data, so the file bytes
travel alongside the JSON-like TranscriptionRequest rather than inside it.
Fields§
§bytes: BytesRaw audio bytes (wav/mp3/m4a/etc.).
file_name: StringOriginal filename from the multipart part. Forwarded verbatim to the worker.
content_type: Option<String>Original content-type of the audio part (e.g. audio/wav), if the client supplied one.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AudioFile
impl RefUnwindSafe for AudioFile
impl Send for AudioFile
impl Sync for AudioFile
impl Unpin for AudioFile
impl UnsafeUnpin for AudioFile
impl UnwindSafe for AudioFile
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