https://github.com/faisalhakimi22/symphonic-stories
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.8%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: Faisalhakimi22
- Language: Python
- Default Branch: main
- Size: 23.4 KB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Symphonic Stories
An interactive system that translates voice into musical and visual art, capturing emotions through stories and mapping them into visual and auditory forms of storytelling.
Overview
Symphonic Stories listens to spoken narratives and instantly transforms them into synchronized musical scores and generative visual artwork that represents the emotional arc of the story.
Components
- Audio Input: Live microphone or prerecorded voice files
- Analysis Layer: Speech-to-text conversion and emotion detection
- Mapping Engine: Translates emotions to music and visual parameters
- Generators: Creates music and visuals based on the mapped parameters
- Synchronization: Ensures music and visuals are in sync
- Output: Delivers the final audiovisual experience
Features
- Voice Input: Record your voice to tell a story
- Text Input: Type your story if you prefer not to use voice
- Emotion Detection: Automatically detects emotions in your story
- Dynamic Music Generation: Creates music that matches the emotional tone
- Real-time Visualization: Generates visual art synchronized with the music
- Interactive Interface: User-friendly controls for playback and adjustment
Installation
Prerequisites
- Python 3.8 or higher
- Web browser with WebAudio and WebGL support
Setup
```bash
Clone the repository
git clone https://github.com/yourusername/symphonic-stories.git cd symphonic-stories
Create and activate a virtual environment (recommended)
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
Install dependencies
pip install -r requirements.txt
Copy the example environment file and edit as needed
cp .env.example .env
Edit .env with your preferred settings
```
Usage
```bash
Run the application
python run.py ```
Then open your web browser and navigate to http://localhost:5000 (or the host/port specified in your .env file).
Using the Application
- Choose between text or voice input
- Enter your story or record your voice
- Watch and listen as your story is transformed into music and visuals
- Use the playback controls to pause/play or adjust volume
Project Structure
symphonic-stories/
├── src/
│ ├── analysis/ # Speech-to-text and emotion detection
│ ├── music/ # Music generation components
│ ├── visual/ # Visual generation components
│ └── main.py # Main application entry point
├── static/
│ ├── css/ # Stylesheets
│ ├── js/ # JavaScript files
│ └── templates/ # HTML templates
├── requirements.txt # Project dependencies
├── run.py # Startup script
└── .env.example # Example environment variables
Extending the Project
Adding New Emotions
Edit the emotion mappings in:
- src/music/music_generator.py for music parameters
- src/visual/visual_generator.py for visual parameters
Custom Instruments
Modify the createInstruments() method in static/js/music-generator.js to add or change instruments.
Visual Effects
Add new visual effects by extending the shape and motion options in static/js/visual-generator.js.
License
MIT License
Acknowledgments
- Tone.js for web audio synthesis
- p5.js for visual generation
- Hugging Face for emotion detection models
- Flask and Socket.IO for the web framework
Owner
- Name: Faisal Hakimi
- Login: Faisalhakimi22
- Kind: user
- Location: Pakistan
- Website: https://medium.com/@faisalh5556
- Repositories: 1
- Profile: https://github.com/Faisalhakimi22
Computer Science | Aspiring Data Analyst | Ai Enthusiast | Machine Learning
GitHub Events
Total
- Push event: 1
- Create event: 1
Last Year
- Push event: 1
- Create event: 1
Dependencies
- flask ==2.2.5
- flask-socketio ==5.3.4
- librosa ==0.9.2
- magenta ==2.1.0
- matplotlib ==3.7.1
- music21 ==8.1.0
- numpy ==1.23.5
- pillow ==9.4.0
- pretty-midi ==0.2.10
- python-dotenv ==1.0.0
- python-osc ==1.8.0
- scipy ==1.9.3
- sounddevice ==0.4.5
- tensorflow ==2.9.1
- torch ==1.12.1
- transformers ==4.18.0