mirror of
https://github.com/leon-ai/leon.git
synced 2024-10-03 20:57:55 +03:00
refactor(python tcp server): rename the RMS threshold setting for ASR
This commit is contained in:
parent
b092947e2e
commit
ee615e6ade
@ -1,6 +1,6 @@
|
||||
{
|
||||
"asr": {
|
||||
"rms_threshold": 196,
|
||||
"rms_mic_threshold": 196,
|
||||
"device": "auto"
|
||||
},
|
||||
"tts": {
|
||||
|
@ -66,7 +66,7 @@ class ASR:
|
||||
self.channels = 1
|
||||
self.rate = 16000
|
||||
self.frames_per_buffer = 1024
|
||||
self.rms_threshold = get_settings('asr')['rms_threshold']
|
||||
self.rms_threshold = get_settings('asr')['rms_mic_threshold']
|
||||
# Duration of silence after which the audio data is considered as a new utterance (in seconds)
|
||||
self.silence_duration = 1
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user