更新语音转文本模型

This commit is contained in:
2025-10-14 22:26:36 +08:00
parent 0f19d0940b
commit f4371f332f
4 changed files with 12 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ public class AiCommonController extends BaseController
@GetMapping("/handleViceToText")
public AjaxResult handleViceToText()
{
whisperClient.handleVoiceToText("/Users/wangxiangshun/Desktop/临时文件/output.mp3");
whisperClient.handleVoiceToText("F:\\/output.mp3");
return success();
}

View File

@@ -150,7 +150,7 @@ elevenLabs:
# 语音转文本
whisper:
apiUrl: https://api.openai.com/v1/audio/transcriptions
model: whisper-1
model: gpt-4o-mini-transcribe
apiKey: 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
language: en

View File

@@ -150,7 +150,7 @@ elevenLabs:
# 语音转文本
whisper:
apiUrl: https://api.openai.com/v1/audio/transcriptions
model: whisper-1
model: gpt-4o-mini-transcribe
apiKey: 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
language: en
@@ -158,7 +158,7 @@ whisper:
chatGpt:
apiKey: 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
apiUrl: https://api.openai.com/v1/chat/completions
model: gpt-4
model: gpt-3.5-turbo
role: user