mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 20:00:47 +00:00
Feat : tts
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user