mirror of
https://github.com/google/liblc3.git
synced 2026-04-28 01:44:48 +00:00
test: Fix python encoder/decoder standalone tools
This commit is contained in:
@@ -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 ###
|
||||
|
||||
|
||||
Reference in New Issue
Block a user