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

Method voices

src/sdk/speech/index.ts:59–74  ·  view source on GitHub ↗
(language?: string)

Source from the content-addressed store, hash-verified

57 }
58
59 async voices(language?: string) {
60 const url = voicesEndpoint(this.config.baseUrl);
61
62 const res = await this.requestJson<VoiceListResponse>({
63 url,
64 method: "POST",
65 body: { voice_type: 'system' },
66 });
67
68 const voices = res.system_voice ?? [];
69 if (language) {
70 const filtered = filterByLanguage(voices, language);
71 return filtered;
72 }
73 return voices;
74 }
75
76 /**
77 * Save synthesized speech audio to a file. Decodes the hex-encoded audio

Callers 1

speech.test.tsFile · 0.80

Calls 2

voicesEndpointFunction · 0.90
filterByLanguageFunction · 0.90

Tested by

no test coverage detected