pub fn tts<S: AsRef<str> + Debug>(
s: S,
buf: &mut [i16; 665920],
) -> Option<usize>Expand description
Fill a buffer with TTS data.
This is done by character.
It can be done for s where s is less less than or equal to MAX_LETTERS.
It returns Option
- None if
sis too large. - Some(usize) if successful, contained value is number of letters, not bytes that have been copied to the buffer.
If you want the number of bytes, multiply the v in Some(v) by BYTE_SIZE.