feat: add minimax tts support (#1043)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// Generic config-driven TTS handlers — dispatched by ttsConfig.format.
|
||||
// Each handler accepts { baseUrl, apiKey, text, modelId, voiceId } and returns { base64, format }.
|
||||
import { responseToBase64, throwUpstreamError } from "./_base.js";
|
||||
import minimaxTts from "./minimax.js";
|
||||
|
||||
// Hyperbolic: POST { text } → { audio: base64 }
|
||||
async function hyperbolic({ baseUrl, apiKey, text }) {
|
||||
@@ -164,4 +165,5 @@ export const FORMAT_HANDLERS = {
|
||||
coqui,
|
||||
tortoise,
|
||||
openai: openaiCompat,
|
||||
"minimax-tts": minimaxTts,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user