1459
This commit is contained in:
1 parent
4ab47a3e47
commit
ba016efbe8
21 files changed
+921
-72
No files matched your search
@@ -1,8 +1,6 @@
|
||||
import { DEEPSEEK_API_KEY, DEEPSEEK_BASE_URL } from "@/lib/config";
|
||||
|
||||
// 语音转文字:使用 OpenAI Whisper API 或其他兼容服务
|
||||
const WHISPER_API_KEY = process.env.WHISPER_API_KEY || DEEPSEEK_API_KEY || "";
|
||||
const WHISPER_API_BASE = process.env.WHISPER_API_BASE || (DEEPSEEK_API_KEY ? DEEPSEEK_BASE_URL : "https://api.openai.com/v1");
|
||||
const WHISPER_API_KEY = process.env.WHISPER_API_KEY || process.env.DEEPSEEK_API_KEY || "";
|
||||
const WHISPER_API_BASE = process.env.WHISPER_API_BASE || process.env.DEEPSEEK_BASE_URL || "https://api.openai.com/v1";
|
||||
const WHISPER_MODEL = process.env.WHISPER_MODEL || "whisper-1";
|
||||
|
||||
export async function transcribeAudio(audioBuffer: ArrayBuffer, filename: string): Promise<string> {
|
||||
|
||||
Reference in new issue
Block a user