Mercurial
comparison dictation/audio.py @ 280:49e9e591c9bb
Add persistent dictation, prewarmed WebRTC speech input, Copilot SDK routing, animated conversation lifecycle controls, parking, and architecture coverage.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Tue, 18 Aug 2026 19:14:53 -0700 |
| parents | 78699f810817 |
| children |
comparison
equal
deleted
inserted
replaced
| 279:b3b547563ec7 | 280:49e9e591c9bb |
|---|---|
| 22 def __init__( | 22 def __init__( |
| 23 self, | 23 self, |
| 24 *, | 24 *, |
| 25 sample_rate: int = 16000, | 25 sample_rate: int = 16000, |
| 26 speech_threshold: float = 0.012, | 26 speech_threshold: float = 0.012, |
| 27 silence_ms: int = 700, | 27 silence_ms: int = 400, |
| 28 partial_interval_ms: int = 1200, | 28 partial_interval_ms: int = 500, |
| 29 max_utterance_seconds: int = 30, | 29 max_utterance_seconds: int = 30, |
| 30 pre_roll_ms: int = 200, | 30 pre_roll_ms: int = 200, |
| 31 ) -> None: | 31 ) -> None: |
| 32 self.sample_rate = sample_rate | 32 self.sample_rate = sample_rate |
| 33 self.speech_threshold = speech_threshold | 33 self.speech_threshold = speech_threshold |