pub enum TranscriptionChunkingStrategy {
Auto,
VadConfig(VadConfig),
}
Expand description
Controls how the audio is cut into chunks. When set to "auto"
, the
server first normalizes loudness and then uses voice activity detection (VAD) to
choose boundaries. server_vad
object can be provided to tweak VAD detection
parameters manually. If unset, the audio is transcribed as a single block.
Variants§
Trait Implementations§
Source§impl Clone for TranscriptionChunkingStrategy
impl Clone for TranscriptionChunkingStrategy
Source§fn clone(&self) -> TranscriptionChunkingStrategy
fn clone(&self) -> TranscriptionChunkingStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for TranscriptionChunkingStrategy
impl<'de> Deserialize<'de> for TranscriptionChunkingStrategy
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TranscriptionChunkingStrategy
impl PartialEq for TranscriptionChunkingStrategy
Source§fn eq(&self, other: &TranscriptionChunkingStrategy) -> bool
fn eq(&self, other: &TranscriptionChunkingStrategy) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for TranscriptionChunkingStrategy
Auto Trait Implementations§
impl Freeze for TranscriptionChunkingStrategy
impl RefUnwindSafe for TranscriptionChunkingStrategy
impl Send for TranscriptionChunkingStrategy
impl Sync for TranscriptionChunkingStrategy
impl Unpin for TranscriptionChunkingStrategy
impl UnwindSafe for TranscriptionChunkingStrategy
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