Feat : tts

This commit is contained in:
decolua
2026-04-10 10:17:53 +07:00
parent 39545cf4c8
commit 3c96e8d6d1
40 changed files with 1896 additions and 147 deletions
+16
View File
@@ -0,0 +1,16 @@
import { handleTts } from "@/sse/handlers/tts.js";
export async function OPTIONS() {
return new Response(null, {
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "POST, OPTIONS",
"Access-Control-Allow-Headers": "*",
},
});
}
/** POST /v1/audio/speech - OpenAI-compatible TTS endpoint */
export async function POST(request) {
return await handleTts(request);
}