config.example.toml 1.8 KB

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