From f6df0bb1a569ea7f17d439ea99521eade06b4f69 Mon Sep 17 00:00:00 2001 From: AdityaSeth777 Date: Thu, 23 May 2024 17:56:16 +0530 Subject: [PATCH] v4.0.0 - Launched. --- Audio_SpectraCLI.egg-info/PKG-INFO | 250 ------------------ Audio_SpectraCLI.egg-info/SOURCES.txt | 13 - .../dependency_links.txt | 1 - Audio_SpectraCLI.egg-info/requires.txt | 9 - Audio_SpectraCLI.egg-info/top_level.txt | 1 - setup.cfg | 2 +- setup.py | 2 +- 7 files changed, 2 insertions(+), 276 deletions(-) delete mode 100644 Audio_SpectraCLI.egg-info/PKG-INFO delete mode 100644 Audio_SpectraCLI.egg-info/SOURCES.txt delete mode 100644 Audio_SpectraCLI.egg-info/dependency_links.txt delete mode 100644 Audio_SpectraCLI.egg-info/requires.txt delete mode 100644 Audio_SpectraCLI.egg-info/top_level.txt diff --git a/Audio_SpectraCLI.egg-info/PKG-INFO b/Audio_SpectraCLI.egg-info/PKG-INFO deleted file mode 100644 index a58c65f..0000000 --- a/Audio_SpectraCLI.egg-info/PKG-INFO +++ /dev/null @@ -1,250 +0,0 @@ -Metadata-Version: 2.1 -Name: Audio_SpectraCLI -Version: 4.0 -Summary: AudioSpectraCLI is a tool that provides real-time FFT visualization of audio spectra. It captures audio input from the microphone and displays the corresponding frequency spectrum directly, allowing users to monitor and analyze audio signals. -Home-page: https://github.com/AdityaSeth777/Audio-SpectraCLI -Author: Aditya Seth -Author-email: contact@adityaseth.in -License: Apache License 2.0 -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: pyqt5 -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 and dynamic interface for users to start the visualization and exit the program. - -

- -![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat) -[![Visitors](https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fgithub.com%2FAdityaSeth777%2FAudio-SpectraCLI&label=Visitors&countColor=%23263759&style=plastic)](https://visitorbadge.io/status?path=https%3A%2F%2Fgithub.com%2FAdityaSeth777%2FAudio-SpectraCLI) -![GitHub forks](https://img.shields.io/github/forks/AdityaSeth777/Audio-SpectraCLI) -![GitHub Repo stars](https://img.shields.io/github/stars/AdityaSeth777/Audio-SpectraCLI) -![GitHub last commit](https://img.shields.io/github/last-commit/AdityaSeth777/Audio-SpectraCLI) -![GitHub repo size](https://img.shields.io/github/repo-size/AdityaSeth777/Audio-SpectraCLI) -![GitHub issues](https://img.shields.io/github/issues/AdityaSeth777/Audio-SpectraCLI) -![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/AdityaSeth777/Audio-SpectraCLI) -![GitHub pull requests](https://img.shields.io/github/issues-pr/AdityaSeth777/Audio-SpectraCLI) -![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/AdityaSeth777/Audio-SpectraCLI) - -

- -Audio-SpectraCLI - Visualizing real-time audio input as a spectrum using FFT | Product Hunt - -### Notable point : From v4.0, I have implemented a whole new code using PyQt5, which you will find evident here in the new main default code - ['main.py'](./Audio_SpectraCLI/main.py) and the ['test.py'](./tests/test.py) case supporting that. - -### The ['main-old.py'](./Audio_SpectraCLI/main-old.py), which is the code for the main file for v3.2, and the ['test-old.py'](./tests/test-old.py) case supporting that, is DEPRECATED. - -## Current Features (with respect to 4.0) - -- Real-time visualization of Fast Fourier Transform (FFT) spectrum of audio input. -- Support for adjusting parameters such as duration, sampling rate, and block size. -- Seamless integration with SoundDevice for audio input capture. -- 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. -- Added PyQt5 modules that enables user input for Duration (in seconds), Sampling Rate (in Hz), and Block Size. -- Much more dynamic and user-controlled interface. - -## Packaging - -``` -Audio-SpectraCLI/ - -├── .gitignore -├── CODE_OF_CONDUCT.md -├── Contributing.md -├── Dockerfile -├── LICENSE -├── Readme.md -├── requirements.txt -├── setup.cfg -├── setup.py -├── .github/ -│ └── workflows/ -│ ├── docker-publish.yml -│ ├── label.yml -│ └── python-publish.yml -├── Audio_SpectraCLI/ -│ ├── main-old.py -│ ├── main.py -│ └── __init__.py -└── tests/ - ├── test-old.py - └── test.py -``` - -## Installation & Usage (Using PIP) - -1. Install using pip - -``` -pip install Audio-SpectraCLI -``` - -2. Import and use modules - -- Create a Python file. -- You can use [Example.py](https://github.com/AdityaSeth777/Audio-SpectraCLI/blob/main/tests/test.py) as a reference or use the following code : - -```python -from Audio_SpectraCLI import AudioSpectrumVisualizer -from PyQt5.QtWidgets import QApplication - -# Creating an instance of AudioSpectrumVisualizer with custom parameters -app = QApplication([]) -audio_visualizer = AudioSpectrumVisualizer( - duration=10, fs=22050, block_size=8192, frequency_range=(2000, 5000), color='green') - -# Starting the audio spectrum visualization -audio_visualizer.show() -audio_visualizer.start_visualization() -app.exec_() -``` - -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. Also, the user can modify (wrt [v4.0](https://github.com/AdityaSeth777/Audio-SpectraCLI/tree/4.0)) the Duration (in seconds), Sampling Rate (in Hz), and Block Size. - ---- - -## Examining & Usage for fun :D (Using Docker) - -1. Prerequisites - You should have docker installed on your machine. You can download and install Docker from [here](https://www.docker.com/products/docker-desktop). -2. Pulling the Docker Image - -You can pull the pre-built Docker image from Docker Hub using the following command: - -```sh -docker pull adityaseth777/audio-spectracli -``` - -3. Viewing Files Inside the Docker Container - For seeing the files inside the Docker container for debugging purposes, you can run an interactive shell session: - -```sh -docker run --rm -it --entrypoint /bin/bash audio-spectracli -``` - -4. Use the 'ls' command to view the files and get a proper understanding of the file structure : - -```sh -ls -``` - -5. You can use [Example.py](https://github.com/AdityaSeth777/Audio-SpectraCLI/blob/main/tests/test.py) as a reference or use the following code : - -```python -from Audio_SpectraCLI import AudioSpectrumVisualizer -from PyQt5.QtWidgets import QApplication - -# Creating an instance of AudioSpectrumVisualizer with custom parameters -app = QApplication([]) -audio_visualizer = AudioSpectrumVisualizer( - duration=10, fs=22050, block_size=8192, frequency_range=(2000, 5000), color='green') - -# Starting the audio spectrum visualization -audio_visualizer.show() -audio_visualizer.start_visualization() -app.exec_() -``` - -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. Also, the user can modify (wrt [v4.0](https://github.com/AdityaSeth777/Audio-SpectraCLI/tree/4.0)) the Duration (in seconds), Sampling Rate (in Hz), and Block Size. - ---- - -## Building the Docker Image Locally (for fun :D) - -If you prefer to build the Docker image locally, follow these steps: - -1. Clone the repository : - -```sh -git clone https://github.com/AdityaSeth777/Audio-SpectraCLI.git -cd Audio-SpectraCLI -``` - -2. Build the Docker image: - -```sh -docker build -t audio-spectracli . -``` - -3. Viewing Files Inside the Docker Container - For seeing the files inside the Docker container for debugging purposes, you can run an interactive shell session: - -```sh -docker run --rm -it --entrypoint /bin/bash audio-spectracli -``` - -4. Use the 'ls' command to view the files and get a proper understanding of the file structure : - -```sh -ls -``` - -5. You can use [Example.py](https://github.com/AdityaSeth777/Audio-SpectraCLI/blob/main/tests/test.py) as a reference or use the following code : - -```python -from Audio_SpectraCLI import AudioSpectrumVisualizer -from PyQt5.QtWidgets import QApplication - -# Creating an instance of AudioSpectrumVisualizer with custom parameters -app = QApplication([]) -audio_visualizer = AudioSpectrumVisualizer( - duration=10, fs=22050, block_size=8192, frequency_range=(2000, 5000), color='green') - -# Starting the audio spectrum visualization -audio_visualizer.show() -audio_visualizer.start_visualization() -app.exec_() -``` - -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. Also, the user can modify (wrt [v4.0](https://github.com/AdityaSeth777/Audio-SpectraCLI/tree/4.0)) the Duration (in seconds), Sampling Rate (in Hz), and Block Size. - -## Upcoming Features - -- Save and Export: Implement functionality to save the generated spectrum as an image file or export data for further analysis. -- CLI endpoints. -- Option to choose between CLI/GUI. - ---- - -## For contributing - -Check the [Contributing page.](https://github.com/AdityaSeth777/Audio-SpectraCLI/blob/main/Contributing.md) - -## 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](mailto:contact@adityaseth.in?subject=Email%20owing%20to%20adityaseth.in&body=Greetings%2C%0AI%20am%20%5Bname%5D.%20I%20just%20came%20across%20your%20website%20and%20was%20hoping%20to%20talk%20to%20you%20about%20something.) - -## 🙋‍♂️ Support - -💙 If you like this project, give it a ⭐ and share it with friends!

- -[buymeacoffee](https://www.buymeacoffee.com/adityaseth) - ---- - -# Made with love-circled and python diff --git a/Audio_SpectraCLI.egg-info/SOURCES.txt b/Audio_SpectraCLI.egg-info/SOURCES.txt deleted file mode 100644 index 7a899eb..0000000 --- a/Audio_SpectraCLI.egg-info/SOURCES.txt +++ /dev/null @@ -1,13 +0,0 @@ -LICENSE -setup.cfg -setup.py -Audio_SpectraCLI/__init__.py -Audio_SpectraCLI/main-old.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 -tests/test-old.py -tests/test.py \ No newline at end of file diff --git a/Audio_SpectraCLI.egg-info/dependency_links.txt b/Audio_SpectraCLI.egg-info/dependency_links.txt deleted file mode 100644 index 8b13789..0000000 --- a/Audio_SpectraCLI.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Audio_SpectraCLI.egg-info/requires.txt b/Audio_SpectraCLI.egg-info/requires.txt deleted file mode 100644 index b9e3009..0000000 --- a/Audio_SpectraCLI.egg-info/requires.txt +++ /dev/null @@ -1,9 +0,0 @@ -numpy -matplotlib -sounddevice -tabulate -setuptools -twine -wheel -pyqt5 -pyaudio diff --git a/Audio_SpectraCLI.egg-info/top_level.txt b/Audio_SpectraCLI.egg-info/top_level.txt deleted file mode 100644 index 62e5e68..0000000 --- a/Audio_SpectraCLI.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -Audio_SpectraCLI diff --git a/setup.cfg b/setup.cfg index 0074358..6bf881c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = Audio-SpectraCLI -version = 4.0 +version = 4.0.0 author = Aditya Seth author_email = contact@adityaseth.in description = AudioSpectraCLI is a tool that provides real-time FFT visualization of audio spectra. It captures audio input from the microphone and displays the corresponding frequency spectrum directly, allowing users to monitor and analyze audio signals. diff --git a/setup.py b/setup.py index 21fd05e..f3baea6 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='Audio_SpectraCLI', - version='4.0', + version='4.0.0', author="Aditya Seth", long_description=open('Readme.md', encoding='utf-8').read(), long_description_content_type='text/markdown',