pub struct SpeechOptions {
pub text: String,
pub voice: Option<String>,
pub output_format: Option<String>,
pub instructions: Option<String>,
pub speed: Option<f64>,
pub language: Option<String>,
pub provider_options: ProviderOptions,
pub headers: Headers,
pub cancellation: CancellationToken,
}Expand description
Options for a speech synthesis call.
Fields§
§text: StringText to synthesize.
voice: Option<String>Voice identifier.
output_format: Option<String>Output format (for example mp3, wav).
instructions: Option<String>Style instructions.
speed: Option<f64>Speed multiplier.
language: Option<String>Language code.
provider_options: ProviderOptionsProvider-specific options keyed by provider name.
headers: HeadersAdditional request headers.
cancellation: CancellationTokenCancellation token.
Implementations§
Trait Implementations§
Source§impl Clone for SpeechOptions
impl Clone for SpeechOptions
Source§fn clone(&self) -> SpeechOptions
fn clone(&self) -> SpeechOptions
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 SpeechOptions
impl Debug for SpeechOptions
Source§impl Default for SpeechOptions
impl Default for SpeechOptions
Source§fn default() -> SpeechOptions
fn default() -> SpeechOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpeechOptions
impl RefUnwindSafe for SpeechOptions
impl Send for SpeechOptions
impl Sync for SpeechOptions
impl Unpin for SpeechOptions
impl UnsafeUnpin for SpeechOptions
impl UnwindSafe for SpeechOptions
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