config.example.toml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. [audio]
  2. backend = "parec" # "parec" (PulseAudio by name) | "sounddevice"
  3. device = "VirtualMicSink.monitor" # PulseAudio source name (parec) or device index/name (sounddevice)
  4. sample_rate = 16000
  5. channels = 1
  6. frame_ms = 30 # webrtcvad requires 10/20/30 ms
  7. gain = 1.0
  8. [vad]
  9. aggressiveness = 2 # webrtcvad 0-3
  10. pre_roll_ms = 400 # ring buffer kept BEFORE speech is confirmed
  11. speech_start_ms = 90 # consecutive speech frames needed to confirm start
  12. silence_ms = 700 # trailing silence that ends a turn
  13. min_utterance_ms = 300 # discard utterances with less actual speech than this
  14. max_utterance_s = 30.0 # hard cap: force-finalize a very long utterance
  15. chunk_pause_ms = 350 # once soft_max_s is reached, end a chunk at a pause this long
  16. soft_max_s = 10.0 # after this much speech, chunk-ends become eligible at pauses
  17. rms_floor = 0.008 # drop segments quieter than this RMS (kills noise-triggered blips)
  18. trailing_trim_ms = 200 # keep only this much trailing silence (less hallucination-prone padding)
  19. [whisper]
  20. model = "small" # multilingual (DO NOT use .en suffix)
  21. device = "cpu" # "cpu" | "cuda"
  22. compute_type = "int8" # "int8" cpu, "float16" cuda
  23. language = "auto" # "auto" | "en" | "es"
  24. beam_size = 1
  25. vad_filter = false
  26. no_speech_prob_max = 0.6 # drop segments Whisper thinks are non-speech above this
  27. avg_logprob_min = -1.0 # drop segments with confidence below this
  28. [output]
  29. stdout = true
  30. jsonl_dir = "transcripts" # one JSONL file per day: YYYY-MM-DD.jsonl
  31. [sink]
  32. sink_name = "VirtualMicSink" # Name of the null sink to create
  33. remap_source_name = "VirtualMic" # Name of the exposed microphone
  34. loopback_latency_msec = 1 # Loopback latency in ms
  35. monitor_output = false # Loop sink.monitor to default sink (AVOID: causes acoustic feedback)