UNPKG

minimax-mcp-tools

Version:

Async MCP server with Minimax API integration for image generation and text-to-speech

37 lines 1.11 kB
import { MinimaxBaseClient } from '../core/base-client.js'; import { type TextToSpeechParams } from '../config/schemas.js'; interface TTSResult { audioFile: string; voiceUsed: string; model: string; duration: number | null; format: string; sampleRate: number; bitrate: number; subtitleFile?: string; warnings?: string[]; } export declare class TextToSpeechService extends MinimaxBaseClient { constructor(options?: { baseURL?: string; timeout?: number; }); generateSpeech(params: TextToSpeechParams): Promise<TTSResult>; private buildPayload; private cleanPayload; private processTTSResponse; getSupportedModels(): string[]; getSupportedVoices(): string[]; getVoiceInfo(voiceId: string): { name: string; gender: 'male' | 'female' | 'other'; language: 'zh' | 'en'; } | null; getModelInfo(modelName: string): { name: string; description: string; } | null; validateVoiceParameters(params: TextToSpeechParams): string[]; } export {}; //# sourceMappingURL=tts-service.d.ts.map