MCPcopy Index your code
hub / github.com/MiniMax-AI/cli / validateT2AStreaming

Function validateT2AStreaming

src/utils/audio-formats.ts:33–41  ·  view source on GitHub ↗
(format: string, stream: boolean)

Source from the content-addressed store, hash-verified

31}
32
33export function validateT2AStreaming(format: string, stream: boolean): void {
34 if (stream && format === 'wav') {
35 throw new CLIError(
36 'wav format is not supported in streaming mode.',
37 ExitCode.USAGE,
38 'Use mp3, pcm, flac, pcmu_raw, pcmu_wav, or opus for streaming.',
39 );
40 }
41}

Callers 2

runFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected