Add provider-backed dictation mode (#1327)

This commit is contained in:
SSU-WEI HUANG
2026-08-03 06:05:58 +08:00
committed by GitHub
parent abf9cb02a5
commit 9d07857570
22 changed files with 934 additions and 43 deletions
@@ -12,9 +12,11 @@ import {
writeStoredVoiceSelection,
} from '@/lib/voicePickerPreferences'
import type { VoiceBackendType } from '@hapi/protocol/voice'
import { useVoiceInputPreferences } from '@/hooks/useVoiceInputPreferences'
export function useVoiceSettings() {
const { api } = useAppContext()
const input = useVoiceInputPreferences(api)
const { locale } = useTranslation()
const [configuredBackends, setConfiguredBackends] = useState<VoiceBackendType[]>([])
const [backend, setBackendState] = useState<VoiceBackendType | null>(null)
@@ -106,6 +108,7 @@ export function useVoiceSettings() {
useEffect(() => stopPreview, [stopPreview])
return {
...input,
configuredBackends,
backend,
setBackend,