config.example.toml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 = false
  39. jsonl_dir = "transcripts"
  40. save_audio = false
  41. audio_dir = "audio"
  42. [daemon]
  43. queue_size = 50
  44. backlog_warn_at = 5
  45. [events]
  46. socket = ""
  47. heartbeat_ms = 1000
  48. ring_size = 200
  49. [assistant]
  50. control_socket = ""
  51. stall_timeout_ms = 3000
  52. worker_stall_ms = 15000
  53. command_arm_timeout_s = 10.0
  54. chat_idle_timeout_s = 300.0
  55. turn_gap_s = 1.5
  56. require_viewer = true
  57. chat_exit_phrases = ["end conversation", "that's all", "stop listening"]
  58. [audit]
  59. enabled = true
  60. dir = "audit"
  61. [llm]
  62. enabled = true
  63. endpoint = "http://localhost:9931/v1/chat/completions"
  64. temperature = 0.7
  65. max_tokens = 1024
  66. timeout_s = 120.0
  67. cache_prompt = true
  68. max_prompt_tokens = 64000
  69. trim_block_turns = 4
  70. max_tool_iterations = 3
  71. system_prompt_chat = "You are a concise voice assistant. Reply in 1-3 sentences."
  72. system_prompt_command = "You translate a spoken request into a single tool call when one applies."