config.example.toml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. [audio]
  2. backend = "parec"
  3. device = "VirtualMicSink.monitor"
  4. sample_rate = 16000
  5. channels = 1
  6. frame_ms = 30
  7. gain = 1.0
  8. [vad]
  9. aggressiveness = 2
  10. pre_roll_ms = 400
  11. speech_start_ms = 90
  12. silence_ms = 700
  13. min_utterance_ms = 300
  14. max_utterance_s = 30.0
  15. chunk_pause_ms = 350
  16. soft_max_s = 10.0
  17. rms_floor = 0.008
  18. trailing_trim_ms = 200
  19. [whisper]
  20. model = "small"
  21. device = "cpu"
  22. compute_type = "int8"
  23. language = "auto"
  24. beam_size = 1
  25. vad_filter = false
  26. cpu_threads = 0
  27. no_speech_prob_max = 0.6
  28. avg_logprob_min = -1.0
  29. language_strategy = "static"
  30. sticky_redetect_logprob = -0.8
  31. [sink]
  32. sink_name = "VirtualMicSink"
  33. remap_source_name = "VirtualMic"
  34. loopback_latency_msec = 1
  35. monitor_output = false
  36. [output]
  37. stdout = true
  38. jsonl_dir = "transcripts"
  39. save_audio = false
  40. audio_dir = "audio"
  41. [daemon]
  42. queue_size = 50
  43. backlog_warn_at = 5
  44. [events]
  45. socket = ""
  46. heartbeat_ms = 1000
  47. ring_size = 200
  48. [assistant]
  49. control_socket = ""
  50. stall_timeout_ms = 3000
  51. worker_stall_ms = 15000
  52. command_arm_timeout_s = 10.0
  53. chat_idle_timeout_s = 300.0
  54. turn_gap_s = 1.5
  55. require_viewer = true
  56. chat_exit_phrases = ["end conversation", "that's all", "stop listening"]
  57. [audit]
  58. enabled = true
  59. dir = "audit"
  60. [llm]
  61. enabled = true
  62. endpoint = "http://localhost:9931/v1/chat/completions"
  63. temperature = 0.7
  64. max_tokens = 1024
  65. timeout_s = 120.0
  66. cache_prompt = true
  67. max_prompt_tokens = 64000
  68. trim_block_turns = 4
  69. max_tool_iterations = 3
  70. system_prompt_chat = "You are a concise voice assistant. Reply in 1-3 sentences."
  71. system_prompt_command = "You translate a spoken request into a single tool call when one applies."