feat(app): Jarvis is called like a secretary by default

The default wake words are 비서, 비서야, 비서님, 김비서, 김비서야 and 김비서님.
Where several wake words are heard starting at the same place, the closest
and then the longest is the call, so a call form is removed whole (비서야 멈춰
is a stop) and a near match of a longer word does not eat into what follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
javis-bot
2026-11-19 13:56:38 +09:00
parent e88c94d934
commit 716b5bb2e6
8 changed files with 69 additions and 31 deletions

View File

@@ -254,6 +254,12 @@ impl std::error::Error for SettingsError {}
pub const DEFAULT_JOIN_NOTICE: &str =
"자비스가 이 음성 채널에 들어왔습니다. 이 채널의 대화는 자비스가 받아 적습니다.";
/// The default wake words: Jarvis is called like a secretary, by the word and its usual call forms
/// (the longest one heard is the call, `calls.rs`).
pub fn default_wake_words() -> Vec<String> {
["비서", "비서야", "비서님", "김비서", "김비서야", "김비서님"].map(String::from).to_vec()
}
impl Default for Settings {
fn default() -> Self {
Self {
@@ -268,7 +274,7 @@ impl Default for Settings {
listen_to_bots: false,
record: false,
join_notice: DEFAULT_JOIN_NOTICE.into(),
wake_words: vec!["자비스".into()],
wake_words: default_wake_words(),
stt: Map::new(),
tts_speed: 1.5,
},