feat(app): an earcon tells the speaker Jarvis took the call
A short two-tone chime, made in code, plays right before each voice answer starts and at once for a wake word said alone while Jarvis is free; the question that joins it gets no second one. call.earcon turns it off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -414,6 +414,13 @@ impl DiscordCore {
|
||||
Some(id)
|
||||
}
|
||||
|
||||
/// Play the earcon in the voice channel, queued like speech. The request id, or None when not in a
|
||||
/// voice channel.
|
||||
pub fn earcon(&self) -> Option<String> {
|
||||
self.voice_channel_id()?;
|
||||
Some(with_playback(&self.inner, |p| p.clip(crate::earcon::pcm().to_vec())))
|
||||
}
|
||||
|
||||
/// Have the brain answer a chat message under `id`; the text comes as `CoreEvent::ReplyText`.
|
||||
pub fn chat_answer(&self, id: &str, user: u64, text: &str) -> bool {
|
||||
self.inner.worker.reply(id, user, text, "chat", false)
|
||||
|
||||
Reference in New Issue
Block a user