dlpy.speech_utils.check_sampwidth

dlpy.speech_utils.check_sampwidth(params, sampwidth)

Check if the input audio has the desired sampwidth (byte width).

Parameters
paramsclass

Specifies the original parameters of the audio.

sampwidthint

Specifies the desired sampwidth.

Returns
Boolean

Whether the input audio has the desired sampwidth (True) or not (False).