feat(voice): rework TTS/ASR stack and unify tool/skill config schema

This commit is contained in:
zhayujie
2026-05-21 16:00:54 +08:00
parent 2b90f377e6
commit b8333e351c
31 changed files with 1551 additions and 335 deletions

View File

@@ -31,7 +31,8 @@ class OpenaiVoice(Voice):
"file": file,
}
data = {
"model": "whisper-1",
# Override via `voice_to_text_model` (e.g. fall back to whisper-1).
"model": conf().get("voice_to_text_model") or "gpt-4o-mini-transcribe",
}
response = requests.post(url, headers=headers, files=files, data=data)
response_data = response.json()