Skip to content

Commit

Permalink
Added customizable frequency range and color customization
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaSeth777 committed Mar 28, 2024
1 parent 1f9696f commit f581af5
Show file tree
Hide file tree
Showing 11 changed files with 148 additions and 9 deletions.
114 changes: 114 additions & 0 deletions Audio_SpectraCLI.egg-info/PKG-INFO
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 ❤️
10 changes: 10 additions & 0 deletions Audio_SpectraCLI.egg-info/SOURCES.txt
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
1 change: 1 addition & 0 deletions Audio_SpectraCLI.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

8 changes: 8 additions & 0 deletions Audio_SpectraCLI.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
numpy
matplotlib
sounddevice
tabulate
setuptools
twine
wheel
pyaudio
1 change: 1 addition & 0 deletions Audio_SpectraCLI.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Audio_SpectraCLI
2 changes: 1 addition & 1 deletion Audio_SpectraCLI/__init__.py
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
3 changes: 3 additions & 0 deletions Audio_SpectraCLI/main.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 0 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
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.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down
9 changes: 7 additions & 2 deletions tests/main.py
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()

0 comments on commit f581af5

Please sign in to comment.