pub struct SynthesisOption {Show 17 fields
pub samplerate: Option<i32>,
pub provider: Option<SynthesisType>,
pub speed: Option<f32>,
pub app_id: Option<String>,
pub secret_id: Option<String>,
pub secret_key: Option<String>,
pub volume: Option<i32>,
pub speaker: Option<String>,
pub codec: Option<String>,
pub subtitle: Option<bool>,
pub model: Option<String>,
pub language: Option<String>,
pub emotion: Option<String>,
pub endpoint: Option<String>,
pub extra: Option<HashMap<String, String>>,
pub max_concurrent_tasks: Option<usize>,
pub session_id: Option<String>,
}Fields§
§samplerate: Option<i32>§provider: Option<SynthesisType>§speed: Option<f32>§app_id: Option<String>§secret_id: Option<String>§secret_key: Option<String>§volume: Option<i32>§speaker: Option<String>§codec: Option<String>§subtitle: Option<bool>§model: Option<String>§language: Option<String>§emotion: Option<String>emotion: neutral、sad、happy、angry、fear、news、story、radio、poetry、 call、sajiao、disgusted、amaze、peaceful、exciting、aojiao、jieshuo
endpoint: Option<String>§extra: Option<HashMap<String, String>>§max_concurrent_tasks: Option<usize>§session_id: Option<String>Implementations§
Source§impl SynthesisOption
impl SynthesisOption
pub fn merge_with(&self, option: Option<SynthesisOption>) -> Self
Source§impl SynthesisOption
impl SynthesisOption
pub fn check_default(&mut self)
Trait Implementations§
Source§impl Clone for SynthesisOption
impl Clone for SynthesisOption
Source§fn clone(&self) -> SynthesisOption
fn clone(&self) -> SynthesisOption
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 moreSource§impl Debug for SynthesisOption
impl Debug for SynthesisOption
Source§impl Default for SynthesisOption
impl Default for SynthesisOption
Source§impl<'de> Deserialize<'de> for SynthesisOptionwhere
SynthesisOption: Default,
impl<'de> Deserialize<'de> for SynthesisOptionwhere
SynthesisOption: Default,
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 SynthesisOption
impl RefUnwindSafe for SynthesisOption
impl Send for SynthesisOption
impl Sync for SynthesisOption
impl Unpin for SynthesisOption
impl UnsafeUnpin for SynthesisOption
impl UnwindSafe for SynthesisOption
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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