#[non_exhaustive]pub enum TtsModel {
Tts1,
Tts1Hd,
Gpt4oMiniTts,
Tts1_1106,
Tts1Hd1106,
}Expand description
Text-to-speech models.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Tts1
Standard quality TTS model
Tts1Hd
High definition TTS model
Gpt4oMiniTts
GPT-4o Mini TTS model
Tts1_1106
tts-1-1106 - dated snapshot of the standard TTS model
Tts1Hd1106
tts-1-hd-1106 - dated snapshot of the HD TTS model
Implementations§
Source§impl TtsModel
impl TtsModel
Sourcepub fn supports_instructions(&self) -> bool
pub fn supports_instructions(&self) -> bool
Checks if this model supports the instructions parameter.
Only gpt-4o-mini-tts supports the instructions parameter for
controlling voice characteristics like tone, emotion, and pacing.
§Example
use openai_tools::audio::request::TtsModel;
assert!(TtsModel::Gpt4oMiniTts.supports_instructions());
assert!(!TtsModel::Tts1.supports_instructions());
assert!(!TtsModel::Tts1Hd.supports_instructions());Trait Implementations§
impl Copy for TtsModel
Source§impl<'de> Deserialize<'de> for TtsModel
impl<'de> Deserialize<'de> for TtsModel
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
impl Eq for TtsModel
impl StructuralPartialEq for TtsModel
Auto Trait Implementations§
impl Freeze for TtsModel
impl RefUnwindSafe for TtsModel
impl Send for TtsModel
impl Sync for TtsModel
impl Unpin for TtsModel
impl UnsafeUnpin for TtsModel
impl UnwindSafe for TtsModel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.