Add voice input provider options and update integration settings
- Introduced configurable voice input provider option: `browser` or `assist_stt`. - Enhanced chat card to support Home Assistant STT transcription mode for manual mic input. - Updated integration settings to expose voice provider through websocket payload. - Adjusted continuous voice mode availability based on selected voice provider. - Updated version to 0.1.32 in manifest and chat card files.
This commit is contained in:
@@ -46,6 +46,7 @@ from .const import (
|
||||
CONF_WAKE_WORD_ENABLED,
|
||||
CONF_ALWAYS_VOICE_MODE,
|
||||
CONF_ALLOW_BRAVE_WEBSPEECH,
|
||||
CONF_VOICE_PROVIDER,
|
||||
CONTEXT_STRATEGY_CLEAR,
|
||||
CONTEXT_STRATEGY_TRUNCATE,
|
||||
DEFAULT_GATEWAY_HOST,
|
||||
@@ -58,6 +59,7 @@ from .const import (
|
||||
DEFAULT_WAKE_WORD_ENABLED,
|
||||
DEFAULT_ALWAYS_VOICE_MODE,
|
||||
DEFAULT_ALLOW_BRAVE_WEBSPEECH,
|
||||
DEFAULT_VOICE_PROVIDER,
|
||||
DOMAIN,
|
||||
OPENCLAW_CONFIG_REL_PATH,
|
||||
)
|
||||
@@ -474,6 +476,13 @@ class OpenClawOptionsFlow(OptionsFlow):
|
||||
DEFAULT_ALLOW_BRAVE_WEBSPEECH,
|
||||
),
|
||||
): bool,
|
||||
vol.Optional(
|
||||
CONF_VOICE_PROVIDER,
|
||||
default=options.get(
|
||||
CONF_VOICE_PROVIDER,
|
||||
DEFAULT_VOICE_PROVIDER,
|
||||
),
|
||||
): vol.In(["browser", "assist_stt"]),
|
||||
}
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user