dlpy.speech_utils.check_sampwidth

dlpy.speech_utils.check_sampwidth(params, sampwidth)

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

Parameters:
params : class

Specifies the original parameters of the audio.

sampwidth : int

Specifies the desired sampwidth.

Returns:
Boolean

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