1
1
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:
louistiti 2024-07-01 22:53:34 +08:00
parent b092947e2e
commit ee615e6ade
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"asr": {
"rms_threshold": 196,
"rms_mic_threshold": 196,
"device": "auto"
},
"tts": {

View File

@ -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
"""