audio-spectracli
298
_ _ _ ____ _ ____ _ ___
/ \ _ _ __| (_) ___ / ___| _ __ ___ ___| |_ _ __ __ _ / ___| | |_ _|
/ _ \| | | |/ _` | |/ _ \ ____\___ \| '_ \ / _ \/ __| __| '__/ _` | | | | | |
/ ___ \ |_| | (_| | | (_) |_____|__) | |_) | __/ (__| |_| | | (_| | |___| |___ | |
/_/ \_\__,_|\__,_|_|\___/ |____/| .__/ \___|\___|\__|_| \__,_|\____|_____|___|
|_|
Audio Spectrum Visualization is a Python project that visualizes real-time audio input as a spectrum using Fast Fourier Transform (FFT). It provides an interactive CLI interface for users to start the visualization and exit the program.
Audio-SpectraCLI/
│ CODE_OF_CONDUCT.md
│ Contributing.md
│ Dockerfile
│ LICENSE
│ Readme.md
│ requirements.txt
│ setup.cfg
│ setup.py
│
├───.github
│ └───workflows
│ python-publish.yml
│
├───Audio_SpectraCLI
│ main.py
│ __init__.py
│
└───tests
main.py
pip install Audio-SpectraCLI
from Audio_SpectraCLI import AudioSpectrumVisualizer
# Creating an instance of AudioSpectrumVisualizer with custom parameters.
audio_visualizer = AudioSpectrumVisualizer(
duration=5, frequency_range=(50, 5000), color='red')
# Starting the audio spectrum visualization
audio_visualizer.start_visualization()
Once you have activated the audio_visualizer instance, feel free to use it wherever in the program. It consists of several parameters (which gives more control to the user), so make sure to configure and add those before using it in your code.
You can pull the pre-built Docker image from Docker Hub using the following command:
docker pull adityaseth777/audio-spectracli
docker run --rm -it --entrypoint /bin/bash audio-spectracli
ls
from Audio_SpectraCLI import AudioSpectrumVisualizer
# Creating an instance of AudioSpectrumVisualizer with custom parameters.
audio_visualizer = AudioSpectrumVisualizer(
duration=5, frequency_range=(50, 5000), color='red')
# Starting the audio spectrum visualization
audio_visualizer.start_visualization()
Once you have activated the audio_visualizer instance, feel free to use it wherever in the program. It consists of several parameters (which gives more control to the user), so make sure to configure and add those before using it in your code.
If you prefer to build the Docker image locally, follow these steps:
git clone https://github.com/AdityaSeth777/Audio-SpectraCLI.git
cd Audio-SpectraCLI
docker build -t audio-spectracli .
docker run --rm -it --entrypoint /bin/bash audio-spectracli
ls
from Audio_SpectraCLI import AudioSpectrumVisualizer
# Creating an instance of AudioSpectrumVisualizer with custom parameters.
audio_visualizer = AudioSpectrumVisualizer(
duration=5, frequency_range=(50, 5000), color='red')
# Starting the audio spectrum visualization
audio_visualizer.start_visualization()
Once you have activated the audio_visualizer instance, feel free to use it wherever in the program. It consists of several parameters (which gives more control to the user), so make sure to configure and add those before using it in your code.
Check the Contributing page. Make sure to PR your changes in the development branch.
This file contains various environment variables that you can configure.
I will be improving this project.
Contact: [[email protected]]
💙 If you like this project, give it a ⭐ and share it with friends!<br><br>
☕ Buy me a coffee
Made with ❤️
Content type
Image
Digest
sha256:beb9bb173…
Size
604.4 MB
Last updated
about 1 month ago
docker pull adityaseth777/audio-spectracli