pub struct AudioChunk {
pub samples: Vec<f32>,
pub sample_rate: u32,
pub is_final: bool,
}Expand description
Audio chunk for streaming TTS
Fields§
§samples: Vec<f32>§sample_rate: u32§is_final: boolTrait Implementations§
Source§impl Clone for AudioChunk
impl Clone for AudioChunk
Source§fn clone(&self) -> AudioChunk
fn clone(&self) -> AudioChunk
Returns a duplicate of the value. Read more
1.0.0 · 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 AudioChunk
impl RefUnwindSafe for AudioChunk
impl Send for AudioChunk
impl Sync for AudioChunk
impl Unpin for AudioChunk
impl UnsafeUnpin for AudioChunk
impl UnwindSafe for AudioChunk
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