pub struct PiperMetadataBuilder { /* private fields */ }
Expand description
Builder for creating a ggml metadata
Implementations§
Source§impl PiperMetadataBuilder
impl PiperMetadataBuilder
pub fn new<S: Into<String>>(model_name: S, model_alias: S) -> Self
pub fn enable_debug(self, enable: bool) -> Self
pub fn with_speed(self, speed: f64) -> Self
pub fn with_speaker_id(self, speaker_id: u32) -> Self
pub fn with_noise_scale(self, noise_scale: f64) -> Self
pub fn with_length_scale(self, length_scale: f64) -> Self
pub fn with_noise_w(self, noise_w: f64) -> Self
pub fn with_sentence_silence(self, sentence_silence: f64) -> Self
pub fn with_phoneme_silence(self, phoneme_silence: f64) -> Self
pub fn enable_json_input(self, flag: bool) -> Self
pub fn build(self) -> PiperMetadata
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PiperMetadataBuilder
impl RefUnwindSafe for PiperMetadataBuilder
impl Send for PiperMetadataBuilder
impl Sync for PiperMetadataBuilder
impl Unpin for PiperMetadataBuilder
impl UnwindSafe for PiperMetadataBuilder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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