pub struct Audio<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Audio<'a>
impl<'a> Audio<'a>
pub fn new(client: &'a Client) -> Self
Sourcepub async fn tts(
&self,
request: TextToSpeechParam,
) -> Result<TextToSpeechOutput>
pub async fn tts( &self, request: TextToSpeechParam, ) -> Result<TextToSpeechOutput>
pub async fn tts_stream( &self, request: TextToSpeechParam, ) -> Result<Pin<Box<dyn Stream<Item = Result<TextToSpeechOutput, DashScopeError>> + Send>>>
Auto Trait Implementations§
impl<'a> Freeze for Audio<'a>
impl<'a> !RefUnwindSafe for Audio<'a>
impl<'a> Send for Audio<'a>
impl<'a> Sync for Audio<'a>
impl<'a> Unpin for Audio<'a>
impl<'a> !UnwindSafe for Audio<'a>
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