If any sound file is given and you want to check what is file type of it, then Python module sndhdr can be used.
Python Code for Checking Sound File Type
# Importing Python Module sndhdr
import sndhdr
# Calling what function of sndhdr module
print(sndhdr.what("sound_file"))
Above Python Code may print out wav, sb, ub, ul or other sound file types names.
No Comments
Leave a comment Cancel