MCPcopy
hub / github.com/MiniMax-AI/cli / validateParams

Method validateParams

src/sdk/speech/index.ts:108–126  ·  view source on GitHub ↗
(params: Partial<SpeechRequest>)

Source from the content-addressed store, hash-verified

106 }
107
108 private validateParams(params: Partial<SpeechRequest>): SpeechRequest {
109 if (!params.text) {
110 throw new SDKError('text is required', ExitCode.USAGE);
111 }
112
113 return toMerged({
114 model: "speech-2.8-hd",
115 voice_setting: {
116 voice_id:"English_expressive_narrator",
117 },
118 audio_setting: {
119 format: "mp3",
120 sample_rate: 32000,
121 bitrate: 128000,
122 channel: 1,
123 },
124 output_format: 'hex',
125 }, params) as SpeechRequest;
126 }
127}

Callers 1

synthesizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected