(format: string, fallback: number)
| 27 | }; |
| 28 | |
| 29 | export function t2aDefaultSampleRate(format: string, fallback: number): number { |
| 30 | return T2A_SAMPLE_RATE[format as T2AFormat] ?? fallback; |
| 31 | } |
| 32 | |
| 33 | export function validateT2AStreaming(format: string, stream: boolean): void { |
| 34 | if (stream && format === 'wav') { |
no outgoing calls
no test coverage detected