Metadata-Version: 2.4
Name: graph-audio
Version: 0.2.0
Summary: Given a lossless audio format (flac or wav), it will plot the pressure waves in the time domain, and frequency components in the frequency domain.
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: matplotlib>=3.10.8
Requires-Dist: numpy>=2.4.2
Requires-Dist: sounddevice>=0.5.5
Requires-Dist: soundfile>=0.13.1
Requires-Dist: tqdm>=4.67.3

# Requirements

- `ffmpeg`. Check that it's in your path by doing `ffmpeg -h`.

## Optional

- `uv`

# Usage

Make sure that your input file is a `mp3`, `wav`, `flac`, `ogg`, etc. If it's not supported, just convert the audio using `ffmpeg`.

```
ffmpeg -i audio.m4a audio.mp3
```

## With `uvx`

```
uvx --from graph-audio graph-audio -i <input_audio> -o <output_video>.mp4
```

Enjoy!

# About

This is pretty simple, I hard coded the FPS to 30 and the frequency graph could be a bar graph with better scaling in the x-direction (since we're not that sensitive to the higher frequencies).
