feat: support more ASR engine models

This commit is contained in:
chliny
2026-07-19 22:19:24 +08:00
parent f1cd7fff72
commit 40b15e6e9a
5 changed files with 72 additions and 1 deletions
@@ -52,6 +52,9 @@ class ASRSTT(stt.SpeechToTextEntity):
@property
def supported_sample_rates(self) -> list[stt.AudioSampleRates]:
model: str = self.hass.data.get(ModelKey, DefaultModel)
if model.startswith("8k_"):
return [stt.AudioSampleRates.SAMPLERATE_8000]
return [stt.AudioSampleRates.SAMPLERATE_16000]
@property