pub struct PiperMetadata {
pub model_name: String,
pub model_alias: String,
pub debug_log: bool,
pub speed: f64,
pub speaker_id: u32,
pub noise_scale: f64,
pub noise_w: f64,
pub sentence_silence: f64,
pub json_input: Option<bool>,
/* private fields */
}
Expand description
Metadata for chat and embeddings models
Fields§
§model_name: String
§model_alias: String
§debug_log: bool
§speed: f64
The speed of the generated audio. Select a value from 0.25
to 4.0
. Defaults to 1.0
.
speaker_id: u32
Id of speaker. Defaults to 0
.
noise_scale: f64
Amount of noise to add during audio generation. Defaults to 0.667
.
noise_w: f64
Variation in phoneme lengths. Defaults to 0.8
.
sentence_silence: f64
Seconds of silence after each sentence. Defaults to 0.2
.
json_input: Option<bool>
stdin input is lines of JSON instead of plain text. The input format should be:
{
"text": "some text", (required)
"speaker_id": 0, (optional)
"speaker": "some name", (optional)
}
Trait Implementations§
Source§impl BaseMetadata for PiperMetadata
impl BaseMetadata for PiperMetadata
fn model_name(&self) -> &str
fn model_alias(&self) -> &str
Source§impl Clone for PiperMetadata
impl Clone for PiperMetadata
Source§fn clone(&self) -> PiperMetadata
fn clone(&self) -> PiperMetadata
Returns a copy 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 moreSource§impl Debug for PiperMetadata
impl Debug for PiperMetadata
Source§impl Default for PiperMetadata
impl Default for PiperMetadata
Source§impl<'de> Deserialize<'de> for PiperMetadata
impl<'de> Deserialize<'de> for PiperMetadata
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
Auto Trait Implementations§
impl Freeze for PiperMetadata
impl RefUnwindSafe for PiperMetadata
impl Send for PiperMetadata
impl Sync for PiperMetadata
impl Unpin for PiperMetadata
impl UnwindSafe for PiperMetadata
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,
§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§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.