test: Fix python encoder/decoder standalone tools

This commit is contained in:
Antoine SOULIER
2022-07-29 15:01:39 +02:00
parent cea08e9840
commit 2332274508
3 changed files with 3 additions and 3 deletions

View File

@@ -159,6 +159,8 @@ if __name__ == "__main__":
(sr_hz, pcm) = wavfile.read(args.wav_file.name)
if sr_hz not in (8000, 16000, 24000, 320000, 48000):
raise ValueError('Unsupported input samplerate: %d' % sr_hz)
if pcm.ndim != 1:
raise ValueError('Only single channel wav file supported')
### Setup ###