(format: string, stream: boolean)
| 31 | } |
| 32 | |
| 33 | export 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 | } |
no outgoing calls
no test coverage detected