functions 💡

class src.audio_validator.validator.AudioValidator(*args, **kwargs)
AudioValidator.__init__(audio_type)
Parameters

audio_type

Django Audio Validator Supported This Audio Type:

  • aac - audio/aac

  • midi - audio/midi

  • mp3- audio/mpeg

  • m4a- audio/mp4

  • ogg- audio/ogg

  • flac - audio/x-flac

  • wav- audio/x-wav

  • amr- audio/amr

  • aiff - audio/x-aiff

You must enter the audio type as a string

AudioValidator.__call__(value)
Parameters

value – Here is the value of the same file that we receive and we want to perform the validation operation