diff --git a/Audio_SpectraCLI.egg-info/PKG-INFO b/Audio_SpectraCLI.egg-info/PKG-INFO new file mode 100644 index 0000000..33dbf81 --- /dev/null +++ b/Audio_SpectraCLI.egg-info/PKG-INFO @@ -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: setha4195@gmail.com +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: [contact@adityaseth.in] + +## 🙋‍♂️ Support + +💙 If you like this project, give it a ⭐ and share it with friends!

+[☕ Buy me a coffee](https://www.buymeacoffee.com/adityaseth) + +--- + +Made with ❤️ diff --git a/Audio_SpectraCLI.egg-info/SOURCES.txt b/Audio_SpectraCLI.egg-info/SOURCES.txt new file mode 100644 index 0000000..6327166 --- /dev/null +++ b/Audio_SpectraCLI.egg-info/SOURCES.txt @@ -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 \ No newline at end of file diff --git a/Audio_SpectraCLI.egg-info/dependency_links.txt b/Audio_SpectraCLI.egg-info/dependency_links.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Audio_SpectraCLI.egg-info/dependency_links.txt @@ -0,0 +1 @@ + diff --git a/Audio_SpectraCLI.egg-info/requires.txt b/Audio_SpectraCLI.egg-info/requires.txt new file mode 100644 index 0000000..6f8ef19 --- /dev/null +++ b/Audio_SpectraCLI.egg-info/requires.txt @@ -0,0 +1,8 @@ +numpy +matplotlib +sounddevice +tabulate +setuptools +twine +wheel +pyaudio diff --git a/Audio_SpectraCLI.egg-info/top_level.txt b/Audio_SpectraCLI.egg-info/top_level.txt new file mode 100644 index 0000000..62e5e68 --- /dev/null +++ b/Audio_SpectraCLI.egg-info/top_level.txt @@ -0,0 +1 @@ +Audio_SpectraCLI diff --git a/Audio_SpectraCLI/__init__.py b/Audio_SpectraCLI/__init__.py index 7ccf813..b28a9fd 100644 --- a/Audio_SpectraCLI/__init__.py +++ b/Audio_SpectraCLI/__init__.py @@ -1,3 +1,3 @@ # __init__.py -from .main import audio_visualizer +from .main import AudioSpectrumVisualizer diff --git a/Audio_SpectraCLI/main.py b/Audio_SpectraCLI/main.py index f69905a..12149c3 100644 --- a/Audio_SpectraCLI/main.py +++ b/Audio_SpectraCLI/main.py @@ -1,3 +1,6 @@ +# Aditya Seth +# Description: This file contains the main code for the Audio-SpectraCLI project. It is responsible for creating the AudioSpectrumVisualizer class which is used to visualize the audio spectrum in real-time. + import numpy as np import matplotlib.pyplot as plt import sounddevice as sd diff --git a/Readme.md b/Readme.md index c8e607c..33e6ee7 100644 --- a/Readme.md +++ b/Readme.md @@ -9,7 +9,6 @@ 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. @@ -60,8 +59,6 @@ from Audio_SpectraCLI import audio_visualizer ## Upcoming Features - CLI endpoints -- Customizable Frequency Range: Allow users to specify the frequency range to display in the spectrum. -- Color Customization: Provide options for users to customize the colors used in the spectrum visualization. - 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. diff --git a/setup.cfg b/setup.cfg index 65510cc..66177a3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = Audio-SpectraCLI -version = 2.1 +version = 2.2 author = Aditya Seth author_email = setha4195@gmail.com 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. diff --git a/setup.py b/setup.py index 956f75c..358a0b2 100644 --- a/setup.py +++ b/setup.py @@ -2,9 +2,9 @@ setup( name='Audio_SpectraCLI', - version='2.1', + version='2.2', author="Aditya Seth", - long_description=open('Readme.md').read(), + long_description=open('Readme.md', encoding='utf-8').read(), long_description_content_type='text/markdown', packages=find_packages(), install_requires=[ diff --git a/tests/main.py b/tests/main.py index 3415668..2b2b6b5 100644 --- a/tests/main.py +++ b/tests/main.py @@ -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()