pub struct FallbackPlayHtVoice {
pub provider: Provider,
pub voice_id: PlayHtVoiceVoiceId,
pub speed: Option<f64>,
pub temperature: Option<f64>,
pub emotion: Option<Emotion>,
pub voice_guidance: Option<f64>,
pub style_guidance: Option<f64>,
pub text_guidance: Option<f64>,
pub model: Option<Model>,
pub language: Option<Language>,
pub chunk_plan: Option<ChunkPlan>,
}Fields§
§provider: ProviderThis is the voice provider that will be used.
voice_id: PlayHtVoiceVoiceId§speed: Option<f64>This is the speed multiplier that will be used.
temperature: Option<f64>A floating point number between 0, exclusive, and 2, inclusive. If equal to null or not provided, the model’s default temperature will be used. The temperature parameter controls variance. Lower temperatures result in more predictable results, higher temperatures allow each run to vary more, so the voice may sound less like the baseline voice.
emotion: Option<Emotion>An emotion to be applied to the speech.
voice_guidance: Option<f64>A number between 1 and 6. Use lower numbers to reduce how unique your chosen voice will be compared to other voices.
style_guidance: Option<f64>A number between 1 and 30. Use lower numbers to to reduce how strong your chosen emotion will be. Higher numbers will create a very emotional performance.
text_guidance: Option<f64>A number between 1 and 2. This number influences how closely the generated speech adheres to the input text. Use lower values to create more fluid speech, but with a higher chance of deviating from the input text. Higher numbers will make the generated speech more accurate to the input text, ensuring that the words spoken align closely with the provided text.
model: Option<Model>Playht voice model/engine to use.
language: Option<Language>The language to use for the speech.
chunk_plan: Option<ChunkPlan>This is the plan for chunking the model output before it is sent to the voice provider.
Implementations§
Source§impl FallbackPlayHtVoice
impl FallbackPlayHtVoice
pub fn new( provider: Provider, voice_id: PlayHtVoiceVoiceId, ) -> FallbackPlayHtVoice
Trait Implementations§
Source§impl Clone for FallbackPlayHtVoice
impl Clone for FallbackPlayHtVoice
Source§fn clone(&self) -> FallbackPlayHtVoice
fn clone(&self) -> FallbackPlayHtVoice
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FallbackPlayHtVoice
impl Debug for FallbackPlayHtVoice
Source§impl Default for FallbackPlayHtVoice
impl Default for FallbackPlayHtVoice
Source§fn default() -> FallbackPlayHtVoice
fn default() -> FallbackPlayHtVoice
Source§impl<'de> Deserialize<'de> for FallbackPlayHtVoice
impl<'de> Deserialize<'de> for FallbackPlayHtVoice
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>,
Source§impl OpenApi for FallbackPlayHtVoice
impl OpenApi for FallbackPlayHtVoice
Source§fn openapi() -> OpenApi
fn openapi() -> OpenApi
openapi::OpenApi instance which can be parsed with serde or served via
OpenAPI visualization tool such as Swagger UI.