mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 00:57:41 +08:00
feat(voice): rework TTS/ASR stack and unify tool/skill config schema
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user