pub struct NeuTTS {
pub backbone: BackboneModel,
pub codec: NeuCodecDecoder,
pub language: String,
pub config: GenerationConfig,
}Expand description
NeuTTS handle: GGUF backbone (optional) + NeuCodec decoder.
Fields§
§backbone: BackboneModel§codec: NeuCodecDecoder§language: String§config: GenerationConfigImplementations§
Source§impl NeuTTS
impl NeuTTS
pub fn load_with_decoder( backbone_path: &Path, decoder_path: &Path, language: &str, ) -> Result<NeuTTS, Error>
pub fn load_with_decoder_on( backbone_path: &Path, decoder_path: &Path, language: &str, device: Device, ) -> Result<NeuTTS, Error>
pub fn load(backbone_path: &Path, language: &str) -> Result<NeuTTS, Error>
pub fn load_on( backbone_path: &Path, language: &str, device: Device, ) -> Result<NeuTTS, Error>
pub fn infer_from_ipa( &self, input_ipa: &str, ref_codes: &[i32], ref_ipa: &str, ) -> Result<Vec<f32>, Error>
pub fn decode_tokens(&self, speech_ids: &[i32]) -> Result<Vec<f32>, Error>
Auto Trait Implementations§
impl !Freeze for NeuTTS
impl !RefUnwindSafe for NeuTTS
impl !UnwindSafe for NeuTTS
impl Send for NeuTTS
impl Sync for NeuTTS
impl Unpin for NeuTTS
impl UnsafeUnpin for NeuTTS
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more