Struct google_cognitive_apis::texttospeech::synthesizer::Synthesizer
source · [−]pub struct Synthesizer { /* private fields */ }
Expand description
Google speech synthesizer
Implementations
sourceimpl Synthesizer
impl Synthesizer
sourcepub async fn create(google_credentials: impl AsRef<str>) -> Result<Self>
pub async fn create(google_credentials: impl AsRef<str>) -> Result<Self>
Creates new text-to-speech synthesizer using GCP project JSON credentials
sourcepub async fn synthesize_speech(
&mut self,
request: SynthesizeSpeechRequest
) -> Result<SynthesizeSpeechResponse>
pub async fn synthesize_speech(
&mut self,
request: SynthesizeSpeechRequest
) -> Result<SynthesizeSpeechResponse>
Synthesizes speech synchronously.
sourcepub async fn list_voices(
&mut self,
request: ListVoicesRequest
) -> Result<ListVoicesResponse>
pub async fn list_voices(
&mut self,
request: ListVoicesRequest
) -> Result<ListVoicesResponse>
Returns a list of Voice supported for synthesis.
Trait Implementations
sourceimpl Clone for Synthesizer
impl Clone for Synthesizer
sourcefn clone(&self) -> Synthesizer
fn clone(&self) -> Synthesizer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Synthesizer
impl Send for Synthesizer
impl Sync for Synthesizer
impl Unpin for Synthesizer
impl !UnwindSafe for Synthesizer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request