Commit ·
5254645
1
Parent(s): ec996a5
fix: Noise suppression启动时设置为15% (PP_MIN_NS=0.85)
Browse files
reachy_mini_ha_voice/voice_assistant.py
CHANGED
|
@@ -303,10 +303,10 @@ class VoiceAssistantService:
|
|
| 303 |
# Reduce noise suppression to preserve quiet speech
|
| 304 |
# PP_MIN_NS: minimum noise suppression threshold
|
| 305 |
# Lower values = less aggressive suppression = better voice pickup
|
| 306 |
-
#
|
| 307 |
try:
|
| 308 |
-
respeaker.write("PP_MIN_NS", [0.
|
| 309 |
-
_LOGGER.info("Noise suppression
|
| 310 |
except Exception as e:
|
| 311 |
_LOGGER.debug("Could not set PP_MIN_NS: %s", e)
|
| 312 |
|
|
|
|
| 303 |
# Reduce noise suppression to preserve quiet speech
|
| 304 |
# PP_MIN_NS: minimum noise suppression threshold
|
| 305 |
# Lower values = less aggressive suppression = better voice pickup
|
| 306 |
+
# UI shows percentage where 15% = PP_MIN_NS of 0.85
|
| 307 |
try:
|
| 308 |
+
respeaker.write("PP_MIN_NS", [0.85]) # 15% noise suppression
|
| 309 |
+
_LOGGER.info("Noise suppression set to 15%% (PP_MIN_NS=0.85)")
|
| 310 |
except Exception as e:
|
| 311 |
_LOGGER.debug("Could not set PP_MIN_NS: %s", e)
|
| 312 |
|