Loading ivas_processing_scripts/audiotools/audiofile.py +6 −1 Original line number Diff line number Diff line Loading @@ -80,8 +80,13 @@ def read( with catch_warnings(record=True) as warnings_list: fs, data = wav.read(filename) for w in warnings_list: if SUPPRESS_CHUNK_WARNING_WAV_READ and "Chunk (non-data) not understood, skipping it." in str(w.message): if ( SUPPRESS_CHUNK_WARNING_WAV_READ and "Chunk (non-data) not understood, skipping it." in str(w.message) ): continue print(f"{filename} : {w.message} ( {w.filename}:{w.lineno} )") if data.dtype == np.int32: data = np.interp( Loading ivas_processing_scripts/audiotools/constants.py +4 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,10 @@ import numpy as np SUPPRESS_CHUNK_WARNING_WAV_READ = False # suppress warning from .wav read() when chunk size is not a multiple of 2 SUPPRESS_CHUNK_WARNING_WAV_READ = ( False # suppress warning from .wav read() when chunk size is not a multiple of 2 ) BINAURAL_AUDIO_FORMATS = { "BINAURAL": { Loading Loading
ivas_processing_scripts/audiotools/audiofile.py +6 −1 Original line number Diff line number Diff line Loading @@ -80,8 +80,13 @@ def read( with catch_warnings(record=True) as warnings_list: fs, data = wav.read(filename) for w in warnings_list: if SUPPRESS_CHUNK_WARNING_WAV_READ and "Chunk (non-data) not understood, skipping it." in str(w.message): if ( SUPPRESS_CHUNK_WARNING_WAV_READ and "Chunk (non-data) not understood, skipping it." in str(w.message) ): continue print(f"{filename} : {w.message} ( {w.filename}:{w.lineno} )") if data.dtype == np.int32: data = np.interp( Loading
ivas_processing_scripts/audiotools/constants.py +4 −1 Original line number Diff line number Diff line Loading @@ -32,7 +32,10 @@ import numpy as np SUPPRESS_CHUNK_WARNING_WAV_READ = False # suppress warning from .wav read() when chunk size is not a multiple of 2 SUPPRESS_CHUNK_WARNING_WAV_READ = ( False # suppress warning from .wav read() when chunk size is not a multiple of 2 ) BINAURAL_AUDIO_FORMATS = { "BINAURAL": { Loading