pub struct EdgeTtsClient { /* private fields */ }Implementations§
Source§impl EdgeTtsClient
impl EdgeTtsClient
pub fn builder() -> EdgeTtsClientBuilder
pub fn new() -> Result<Self>
pub async fn list_voices(&self) -> Result<Vec<Voice>>
pub async fn stream( &self, text: impl Into<String>, options: SpeakOptions, ) -> Result<EventStream>
pub async fn synthesize( &self, text: impl Into<String>, options: SpeakOptions, ) -> Result<SynthesisResult>
pub async fn save( &self, text: impl Into<String>, options: SpeakOptions, audio_path: impl AsRef<Path>, srt_path: Option<impl AsRef<Path>>, ) -> Result<SynthesisResult>
Trait Implementations§
Source§impl Clone for EdgeTtsClient
impl Clone for EdgeTtsClient
Source§fn clone(&self) -> EdgeTtsClient
fn clone(&self) -> EdgeTtsClient
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 moreAuto Trait Implementations§
impl Freeze for EdgeTtsClient
impl !RefUnwindSafe for EdgeTtsClient
impl Send for EdgeTtsClient
impl Sync for EdgeTtsClient
impl Unpin for EdgeTtsClient
impl UnsafeUnpin for EdgeTtsClient
impl !UnwindSafe for EdgeTtsClient
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