pub struct Chatterbox {
python: String,
voice_refs_dir: String,
device: String,
flavor: Flavor,
worker: Option<Worker>,
}Expand description
_ChatterboxClient: starts chatterbox_turbo_worker.py on first use.
Fields§
§python: String§voice_refs_dir: String§device: String§flavor: Flavor§worker: Option<Worker>Implementations§
Source§impl Chatterbox
impl Chatterbox
pub fn new( python: &str, voice_refs_dir: &str, device: &str, flavor: Flavor, ) -> Chatterbox
fn start(&mut self) -> Result<()>
fn ref_for(&self, speaker: &str) -> Option<PathBuf>
Sourcepub fn generate(
&mut self,
text: &str,
out_path: &Path,
speaker: &str,
) -> Result<()>
pub fn generate( &mut self, text: &str, out_path: &Path, speaker: &str, ) -> Result<()>
generate(text, out_path, speaker_key).
pub fn close(&mut self)
Auto Trait Implementations§
impl Freeze for Chatterbox
impl RefUnwindSafe for Chatterbox
impl Send for Chatterbox
impl Sync for Chatterbox
impl Unpin for Chatterbox
impl UnsafeUnpin for Chatterbox
impl UnwindSafe for Chatterbox
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