Skip to main content

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.

Project description

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).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graph_audio-0.2.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

graph_audio-0.2.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file graph_audio-0.2.0.tar.gz.

File metadata

  • Download URL: graph_audio-0.2.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for graph_audio-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8bf895b9ecf578dbb072db1ebd2947ab3c1a9fe109d5abd7cd72d2b81261ba6b
MD5 0d6603048a020b7f73a59414fc49dff6
BLAKE2b-256 2a17edc7bc289a071f5ff368aef0e4a9ff89425daaea73503402942c492d572a

See more details on using hashes here.

File details

Details for the file graph_audio-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: graph_audio-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for graph_audio-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1aa8f5f0b2ba2e59a9be91b4a94e7531abaa45b706fdbe57e169bff5e55948b0
MD5 fa42b6d07050a387dbad584b9da6c125
BLAKE2b-256 03ddf1a23afc0e737aa9f59e5840c601fda50059ef04a6807cc8a8a3bc6e718e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page