liumaolin
commited on
Commit
·
095cfb6
1
Parent(s):
08de414
Increase audio capture chunk size to 1024 in `capture.py` for smoother streaming
Browse files
src/voice_dialogue/services/audio/capture.py
CHANGED
|
@@ -77,7 +77,7 @@ class AudioCapture(BaseThread):
|
|
| 77 |
此方法不提供回声消除或语音活动检测。
|
| 78 |
"""
|
| 79 |
p = pyaudio.PyAudio()
|
| 80 |
-
chunk =
|
| 81 |
sample_rate = 16000
|
| 82 |
stream = p.open(
|
| 83 |
format=pyaudio.paInt16,
|
|
|
|
| 77 |
此方法不提供回声消除或语音活动检测。
|
| 78 |
"""
|
| 79 |
p = pyaudio.PyAudio()
|
| 80 |
+
chunk = 1024
|
| 81 |
sample_rate = 16000
|
| 82 |
stream = p.open(
|
| 83 |
format=pyaudio.paInt16,
|