[−][src]Struct ttspico::Voice
A Pico TTS voice.
Methods
impl Voice
[src]
pub fn sys(&self) -> Rc<RefCell<System>>
[src]
Returns a reference to the parent System
that created this voice.
pub fn name(&self) -> Result<&str, Utf8Error>
[src]
Returns the voice's name (if it can be converted to UTF-8).
pub fn add_resource(
&mut self,
resource: Rc<RefCell<Resource>>
) -> Result<(), PicoError>
[src]
&mut self,
resource: Rc<RefCell<Resource>>
) -> Result<(), PicoError>
Adds a loaded Resource
to this voice.
A Voice
needs both a TA and SG resource to be added to it.
See
pub unsafe fn create_engine(
voice: Rc<RefCell<Voice>>
) -> Result<Engine, PicoError>
[src]
voice: Rc<RefCell<Voice>>
) -> Result<Engine, PicoError>
Trait Implementations
impl Debug for Voice
[src]
impl Drop for Voice
[src]
impl Eq for Voice
[src]
impl PartialEq<Voice> for Voice
[src]
impl Send for Voice
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,