pub struct AudioSpeechCreateParams {
pub model: Option<String>,
pub voice: Option<String>,
pub input: Option<String>,
pub instructions: Option<String>,
pub format: Option<String>,
pub speed: Option<f32>,
pub extra: BTreeMap<String, Value>,
}Expand description
表示语音合成请求参数。
Fields§
§model: Option<String>模型 ID。
voice: Option<String>声音名称。
input: Option<String>输入文本。
instructions: Option<String>可选指令。
format: Option<String>输出音频格式。
speed: Option<f32>语速。
extra: BTreeMap<String, Value>额外字段。
Trait Implementations§
Source§impl Clone for AudioSpeechCreateParams
impl Clone for AudioSpeechCreateParams
Source§fn clone(&self) -> AudioSpeechCreateParams
fn clone(&self) -> AudioSpeechCreateParams
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 AudioSpeechCreateParams
impl Debug for AudioSpeechCreateParams
Source§impl Default for AudioSpeechCreateParams
impl Default for AudioSpeechCreateParams
Source§fn default() -> AudioSpeechCreateParams
fn default() -> AudioSpeechCreateParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AudioSpeechCreateParams
impl<'de> Deserialize<'de> for AudioSpeechCreateParams
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 AudioSpeechCreateParams
impl RefUnwindSafe for AudioSpeechCreateParams
impl Send for AudioSpeechCreateParams
impl Sync for AudioSpeechCreateParams
impl Unpin for AudioSpeechCreateParams
impl UnsafeUnpin for AudioSpeechCreateParams
impl UnwindSafe for AudioSpeechCreateParams
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