Struct google_speech::tts::Speech [−][src]
pub struct Speech { /* fields omitted */ }Implementations
impl Speech[src]
impl Speech[src]pub fn new<S: AsRef<str>>(text: S, lang: Lang) -> PyResult<Self>[src]
Create a new speech object with language
pub fn play(&self) -> PyResult<()>[src]
Play the speech object
pub unsafe fn save<S: AsRef<str>>(&self, path: S) -> PyResult<()>[src]
Safety
The save function is a wrapper around google_speech.Speech.save python function which might be unsafe