pub struct SynthesisOptions {
pub model: String,
pub voice: String,
pub language: String,
pub sample_rate_hz: Option<u32>,
pub speaking_rate: f32,
pub timeout_ms: u64,
pub cancel: Option<CancelFlag>,
pub local_only: bool,
pub pack_dir: Option<PathBuf>,
pub allow_unverified: bool,
}Expand description
Options controlling a single synthesis request.
Fields§
§model: String§voice: String§language: String§sample_rate_hz: Option<u32>Optional requested sample rate. Must equal the adapter native rate when set; non-native values are rejected (no metadata-only relabeling, no resampler).
speaking_rate: f32Speaking rate multiplier (must be finite and within engine range).
timeout_ms: u64Wall-clock timeout in milliseconds (enforced by the local provider).
cancel: Option<CancelFlag>Optional cooperative cancel flag.
local_only: boolWhen true, never hit the network for missing voice packs.
pack_dir: Option<PathBuf>Optional local model-pack directory (JOE-1619). When set, loads artifacts from the pack manifest instead of the built-in catalogue cache. Requires a known adapter; bare ONNX paths are rejected by pack load.
allow_unverified: boolAllow local_unverified trust for Self::pack_dir (explicit opt-in).
Trait Implementations§
Source§impl Clone for SynthesisOptions
impl Clone for SynthesisOptions
Source§fn clone(&self) -> SynthesisOptions
fn clone(&self) -> SynthesisOptions
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 moreSource§impl Debug for SynthesisOptions
impl Debug for SynthesisOptions
Auto Trait Implementations§
impl Freeze for SynthesisOptions
impl RefUnwindSafe for SynthesisOptions
impl Send for SynthesisOptions
impl Sync for SynthesisOptions
impl Unpin for SynthesisOptions
impl UnsafeUnpin for SynthesisOptions
impl UnwindSafe for SynthesisOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more