-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added customizable frequency range and color customization
- Loading branch information
1 parent
1f9696f
commit f581af5
Showing
11 changed files
with
148 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
Metadata-Version: 2.1 | ||
Name: Audio_SpectraCLI | ||
Version: 2.2 | ||
Summary: AudioSpectraCLI is a command-line tool that provides real-time FFT visualization of audio spectra. It captures audio input from the microphone and displays the corresponding frequency spectrum directly in the terminal window, allowing users to monitor and analyze audio signals without the need for graphical interfaces. | ||
Home-page: https://github.com/AdityaSeth777/Audio-SpectraCLI | ||
Author: Aditya Seth | ||
Author-email: [email protected] | ||
License: MIT | ||
Description-Content-Type: text/markdown | ||
License-File: LICENSE | ||
Requires-Dist: numpy | ||
Requires-Dist: matplotlib | ||
Requires-Dist: sounddevice | ||
Requires-Dist: tabulate | ||
Requires-Dist: setuptools | ||
Requires-Dist: twine | ||
Requires-Dist: wheel | ||
Requires-Dist: pyaudio | ||
|
||
``` | ||
_ _ _ ____ _ ____ _ ___ | ||
/ \ _ _ __| (_) ___ / ___| _ __ ___ ___| |_ _ __ __ _ / ___| | |_ _| | ||
/ _ \| | | |/ _` | |/ _ \ ____\___ \| '_ \ / _ \/ __| __| '__/ _` | | | | | | | ||
/ ___ \ |_| | (_| | | (_) |_____|__) | |_) | __/ (__| |_| | | (_| | |___| |___ | | | ||
/_/ \_\__,_|\__,_|_|\___/ |____/| .__/ \___|\___|\__|_| \__,_|\____|_____|___| | ||
|_| | ||
``` | ||
|
||
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. | ||
|
||
## Features | ||
|
||
- Real-time audio spectrum visualization. | ||
- Interactive CLI menu for easy navigation. | ||
- Cross-platform compatibility (works on Windows, macOS, and Linux). | ||
|
||
## Packaging | ||
|
||
``` | ||
Audio-SpectraCLI/ | ||
|
||
│ CODE_OF_CONDUCT.md | ||
│ Contributing.md | ||
│ LICENSE | ||
│ Readme.md | ||
│ requirements.txt | ||
│ setup.cfg | ||
│ setup.py | ||
│ | ||
├───.github | ||
│ └───workflows | ||
│ python-publish.yml | ||
│ | ||
├───Audio_SpectraCLI | ||
│ main.py | ||
│ __init__.py | ||
│ | ||
└───tests | ||
main.py | ||
``` | ||
|
||
## Installation & Usage | ||
|
||
1. Install using pip | ||
|
||
``` | ||
pip install Audio-SpectraCLI | ||
``` | ||
|
||
2. Import and use modules | ||
|
||
``` | ||
from Audio_SpectraCLI import audio_visualizer | ||
``` | ||
|
||
--- | ||
|
||
## Upcoming Features | ||
|
||
- CLI endpoints | ||
- Save and Export: Implement functionality to save the generated spectrum as an image file or export data for further analysis. | ||
- Additional Audio Effects: Integrate additional audio effects or processing options to enhance the visualization. | ||
|
||
--- | ||
|
||
## For contributing | ||
|
||
Check the [Contributing page.](https://github.com/AdityaSeth777/Audio-SpectraCLI/blob/main/Contributing.md) | ||
Make sure to PR your changes in the development branch. | ||
|
||
## .env file | ||
|
||
This file contains various environment variables that you can configure. | ||
|
||
## License | ||
|
||
[MIT © Aditya Seth](https://github.com/AdityaSeth777/Audio-SpectraCLI/blob/main/LICENSE) | ||
|
||
## What next? | ||
|
||
I will be improving this project. | ||
|
||
## Where to contact ? | ||
|
||
Contact: [[email protected]] | ||
|
||
## 🙋♂️ Support | ||
|
||
💙 If you like this project, give it a ⭐ and share it with friends!<br><br> | ||
[☕ Buy me a coffee](https://www.buymeacoffee.com/adityaseth) | ||
|
||
--- | ||
|
||
Made with ❤️ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
LICENSE | ||
setup.cfg | ||
setup.py | ||
Audio_SpectraCLI/__init__.py | ||
Audio_SpectraCLI/main.py | ||
Audio_SpectraCLI.egg-info/PKG-INFO | ||
Audio_SpectraCLI.egg-info/SOURCES.txt | ||
Audio_SpectraCLI.egg-info/dependency_links.txt | ||
Audio_SpectraCLI.egg-info/requires.txt | ||
Audio_SpectraCLI.egg-info/top_level.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
numpy | ||
matplotlib | ||
sounddevice | ||
tabulate | ||
setuptools | ||
twine | ||
wheel | ||
pyaudio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Audio_SpectraCLI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# __init__.py | ||
|
||
from .main import audio_visualizer | ||
from .main import AudioSpectrumVisualizer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[metadata] | ||
name = Audio-SpectraCLI | ||
version = 2.1 | ||
version = 2.2 | ||
author = Aditya Seth | ||
author_email = [email protected] | ||
description = AudioSpectraCLI is a command-line tool that provides real-time FFT visualization of audio spectra. It captures audio input from the microphone and displays the corresponding frequency spectrum directly in the terminal window, allowing users to monitor and analyze audio signals without the need for graphical interfaces. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
from Audio_SpectraCLI import audio_visualizer | ||
from Audio_SpectraCLI import AudioSpectrumVisualizer | ||
|
||
audio_visualizer() | ||
# Create an instance of AudioSpectrumVisualizer with custom parameters | ||
audio_visualizer = AudioSpectrumVisualizer( | ||
duration=5, frequency_range=(50, 5000), color='red') | ||
|
||
# Start the audio spectrum visualization | ||
audio_visualizer.start_visualization() |