mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-24 09:40:52 +00:00
also tighten up the `blocking` method for TTS for prompts that absolutely should not be truncated or overriden.
20 lines
No EOL
717 B
Rust
20 lines
No EOL
717 B
Rust
pub(crate) const SERVER_NAME_TTS: &str = "_Text to speech front end_";
|
|
|
|
#[derive(num_derive::FromPrimitive, num_derive::ToPrimitive, Debug)]
|
|
pub(crate) enum Opcode {
|
|
/// Basic, interruptable conversion of a string to audible speech
|
|
TextToSpeech,
|
|
/// Non-interruptable conversion of a string to audible speech. Blocks until the phrase is finished.
|
|
TextToSpeechBlocking,
|
|
/// Stops audio playback immediately. Does not stop wave generation.
|
|
CodecStop,
|
|
/// Set words per minute
|
|
SetWordsPerMinute,
|
|
/// Exits the server
|
|
Quit,
|
|
}
|
|
|
|
#[derive(Debug, Copy, Clone, rkyv::Archive, rkyv::Serialize, rkyv::Deserialize)]
|
|
pub struct TtsFrontendMsg {
|
|
pub text: xous_ipc::String::<2048>,
|
|
} |