pub struct VoicevoxConfig {
pub default_speaker_id: u32,
pub preload_speakers: Vec<u32>,
}Fields§
§default_speaker_id: u32Numeric VOICEVOX speaker id (e.g. 8 = 春日部つむぎ ノーマル).
See kotonoha-tts::voicevox docs for the curated subset and
each character’s license requirements.
preload_speakers: Vec<u32>Speaker ids to pre-load on engine init. On-demand loading still works for everything else; this just hides the first-call latency for the speakers you expect to use.
Trait Implementations§
Source§impl Clone for VoicevoxConfig
impl Clone for VoicevoxConfig
Source§fn clone(&self) -> VoicevoxConfig
fn clone(&self) -> VoicevoxConfig
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 VoicevoxConfig
impl Debug for VoicevoxConfig
Source§impl<'de> Deserialize<'de> for VoicevoxConfig
impl<'de> Deserialize<'de> for VoicevoxConfig
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 VoicevoxConfig
impl RefUnwindSafe for VoicevoxConfig
impl Send for VoicevoxConfig
impl Sync for VoicevoxConfig
impl Unpin for VoicevoxConfig
impl UnsafeUnpin for VoicevoxConfig
impl UnwindSafe for VoicevoxConfig
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