A deep learning-based audio classification system using ResNet-based Convolutional Neural Networks for real-time audio analysis.
Neural Audio CNN is a full-stack web application that uses deep learning to classify audio files. Based on the T3 tech stack combining Python backend and TypeScript/React frontend, it provides real-time audio classification with visual feedback.
- Frontend: TypeScript, Next.js, React, Tailwind CSS
- Backend: Python, Modal (serverless deployment), FastAPI, Pydantic
- Deep Learning: TensorFlow/PyTorch with ResNet-based CNN architecture
- Monitoring: TensorBoard for model training visualization
- Upload and analyze audio files (.wav format)
- Real-time classification with prediction probabilities
- Audio spectrogram visualization
- Waveform display
- CNN layer activation visualization
- Responsive web interface built with Tailwind CSS
The CNN model is based on the ResNet (Residual Network) architecture, adapted for audio classification tasks. The model processes audio spectrograms through residual blocks that help train deeper networks effectively.
- Modal account and API key (get one at modal.com)
- Node.js and npm
- Python 3.7+
# Clone the repository
git clone https://github.com/decoil/Neural-Audio-CNN.git
cd Neural-Audio-CNN
# Install Python dependencies
pip install -r requirements.txt
# Setup Modal (you'll need to enter your Modal API key)
modal setup
# Run the backend locally
modal run main.py
# OR deploy to Modal cloud
modal deploy main.py# Navigate to frontend directory
cd visual-audio-CNN
# Install dependencies
npm i
# Run the development server
npm run dev- Ensure the Modal backend is running (either locally with
modal runor deployed withmodal deploy) - Start the frontend development server
- Open http://localhost:3000 in your browser
- Upload an audio file to see predictions and visualizations
Monitor training progress with TensorBoard:
tensorboard --logdir=logsWhen running with Modal, you can access the FastAPI documentation through the Modal deployment URL.
This project is inspired by audio-cnn.
