fix: Improve voice noise tolerance and focus on latest message
- Raise VAD thresholds (activation 0.65→0.75, min speech 0.4→0.6s, min silence 0.55→0.65s) to reduce false triggers from background noise - Add "focus on latest message" instruction to all prompts (voice + text) - Add "greet and wait" behavior for new conversations instead of auto-continuing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
5
agent.py
5
agent.py
@@ -28,7 +28,10 @@ Rules:
|
||||
- Keep answers SHORT — 1-3 sentences max
|
||||
- Be direct, no filler words
|
||||
- If the user wants more detail, they will ask
|
||||
- Speak naturally as in a conversation"""
|
||||
- Speak naturally as in a conversation
|
||||
- Always focus on the user's most recent message. Do not continue or summarize previous conversations
|
||||
- If a voice message contains only noise, silence, or filler sounds, ignore it completely
|
||||
- When a user greets you or starts a new conversation, greet briefly and wait for instructions"""
|
||||
|
||||
server = AgentServer()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user