katana.units.stego.audio_spectrogram — Extract Audio Spectrogram

Create an audio spectrogram for audio files

This unit will generate a spectrogram for audio files. It relies heavily on Python libraries such as pydub and pylab.

This unit inherits from the katana.unit.FileUnit to ensure that the target is in fact an audio file.

class katana.units.stego.audio_spectrogram.Unit(*args, **kwargs)

Bases: katana.unit.FileUnit

Analyze the audio spectogram of a clip and look for visual text/images

GROUPS = ['audio', 'stego']

These are “tags” for a unit. Considering it is a Stego unit, “stego” is included, as well as the tag “audio”.

PRIORITY = 30

Priority works with 0 being the highest priority, and 100 being the lowest priority. 50 is the default priorty. This unit has a higher than normal priority for matching files

evaluate(case)

Evaluate the target. Create an audio spectrogram based off of the given audio file and add it to the results.

Parameters:case – A case returned by enumerate. For this unit, the enumerate function is not used.
Returns:None. This function should not return any data.
katana.units.stego.audio_spectrogram.get_info(wav_file: bytes) → tuple

Get audiodata from the given the file path