<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: BscDevloper</title>
    <description>The latest articles on DEV Community by BscDevloper (@bscdevloper).</description>
    <link>https://dev.to/bscdevloper</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F528039%2Fcd950665-2bc8-49f0-ac4f-b388bea67162.png</url>
      <title>DEV Community: BscDevloper</title>
      <link>https://dev.to/bscdevloper</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bscdevloper"/>
    <language>en</language>
    <item>
      <title>AI-Lyrics-Generator</title>
      <dc:creator>BscDevloper</dc:creator>
      <pubDate>Sun, 04 Oct 2026 17:03:25 +0000</pubDate>
      <link>https://dev.to/bscdevloper/ai-lyrics-generator-2oec</link>
      <guid>https://dev.to/bscdevloper/ai-lyrics-generator-2oec</guid>
      <description>&lt;p&gt;This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend&lt;/p&gt;

&lt;p&gt;What I Built&lt;/p&gt;

&lt;p&gt;I built AI Lyrics Generator, a local AI-powered web application that helps a friend turn an idea, topic, or feeling into an original song.&lt;/p&gt;

&lt;p&gt;The goal was simple: instead of struggling with a blank page or needing access to a paid AI service, my friend can enter a few details such as:&lt;/p&gt;

&lt;p&gt;🎵 Song name or topic&lt;/p&gt;

&lt;p&gt;🎸 Genre&lt;/p&gt;

&lt;p&gt;😊 Mood&lt;/p&gt;

&lt;p&gt;🌍 Language&lt;/p&gt;

&lt;p&gt;📝 Number of verses&lt;/p&gt;

&lt;p&gt;The application then generates an original song structure with sections such as verses, chorus, bridge, and final chorus.&lt;/p&gt;

&lt;p&gt;The project runs locally using Qwen2.5-Coder 3B through Ollama, with a FastAPI backend and a lightweight HTML/CSS/JavaScript frontend.&lt;/p&gt;

&lt;p&gt;The main problem I'm solving is making AI-assisted songwriting simple, accessible, and local.&lt;/p&gt;

&lt;p&gt;Demo&lt;/p&gt;

&lt;p&gt;🎥 Demo Video: Coming soon&lt;/p&gt;

&lt;p&gt;🌐 Live Demo: Coming soon&lt;/p&gt;

&lt;p&gt;The application can be run locally with Ollama, so users don't need a cloud AI API to generate lyrics.&lt;/p&gt;

&lt;p&gt;Code&lt;br&gt;
GitHub Repository&lt;/p&gt;

&lt;p&gt;AI-Lyrics-Generator&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Bharatefb/AI-Lyrics-Generator" rel="noopener noreferrer"&gt;https://github.com/Bharatefb/AI-Lyrics-Generator&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The repository contains the complete frontend, FastAPI backend, prompt logic, and setup instructions.&lt;/p&gt;

&lt;p&gt;Project Architecture&lt;br&gt;
                 ┌─────────────────────┐&lt;br&gt;
                 │       Browser       │&lt;br&gt;
                 │                     │&lt;br&gt;
                 │  Song / Topic       │&lt;br&gt;
                 │  Genre              │&lt;br&gt;
                 │  Mood               │&lt;br&gt;
                 │  Language           │&lt;br&gt;
                 │  Verse Count        │&lt;br&gt;
                 └──────────┬──────────┘&lt;br&gt;
                            │&lt;br&gt;
                         HTTP POST&lt;br&gt;
                            │&lt;br&gt;
                            ▼&lt;br&gt;
                 ┌─────────────────────┐&lt;br&gt;
                 │       FastAPI       │&lt;br&gt;
                 │                     │&lt;br&gt;
                 │      /generate     │&lt;br&gt;
                 └──────────┬──────────┘&lt;br&gt;
                            │&lt;br&gt;
                            ▼&lt;br&gt;
                 ┌─────────────────────┐&lt;br&gt;
                 │       Ollama        │&lt;br&gt;
                 │                     │&lt;br&gt;
                 │ qwen2.5-coder:3b    │&lt;br&gt;
                 └──────────┬──────────┘&lt;br&gt;
                            │&lt;br&gt;
                            ▼&lt;br&gt;
                 ┌─────────────────────┐&lt;br&gt;
                 │   Generated Lyrics  │&lt;br&gt;
                 └──────────┬──────────┘&lt;br&gt;
                            │&lt;br&gt;
                            ▼&lt;br&gt;
                 ┌─────────────────────┐&lt;br&gt;
                 │       Browser       │&lt;br&gt;
                 │                     │&lt;br&gt;
                 │  [Verse 1]          │&lt;br&gt;
                 │  [Chorus]           │&lt;br&gt;
                 │  [Verse 2]          │&lt;br&gt;
                 │  [Bridge]           │&lt;br&gt;
                 │  [Final Chorus]     │&lt;br&gt;
                 └─────────────────────┘&lt;/p&gt;

&lt;p&gt;How I Built It&lt;/p&gt;

&lt;p&gt;The project is built around open-weight AI and local inference.&lt;/p&gt;

&lt;p&gt;AI Model&lt;/p&gt;

&lt;p&gt;I use:&lt;/p&gt;

&lt;p&gt;Qwen2.5-Coder 3B&lt;/p&gt;

&lt;p&gt;through:&lt;/p&gt;

&lt;p&gt;Ollama&lt;/p&gt;

&lt;p&gt;The model runs locally on the user's machine rather than requiring a remote AI API.&lt;/p&gt;

&lt;p&gt;Backend&lt;/p&gt;

&lt;p&gt;The backend is written in:&lt;/p&gt;

&lt;p&gt;Python&lt;/p&gt;

&lt;p&gt;FastAPI&lt;/p&gt;

&lt;p&gt;Pydantic&lt;/p&gt;

&lt;p&gt;Requests&lt;/p&gt;

&lt;p&gt;Uvicorn&lt;/p&gt;

&lt;p&gt;The frontend sends the user's song requirements to the FastAPI /generate endpoint.&lt;/p&gt;

&lt;p&gt;FastAPI then builds a structured prompt and sends it to the local Ollama API.&lt;/p&gt;

&lt;p&gt;Browser&lt;br&gt;
   ↓&lt;br&gt;
POST /generate&lt;br&gt;
   ↓&lt;br&gt;
FastAPI&lt;br&gt;
   ↓&lt;br&gt;
Ollama&lt;br&gt;
   ↓&lt;br&gt;
qwen2.5-coder:3b&lt;br&gt;
   ↓&lt;br&gt;
Generated lyrics&lt;br&gt;
   ↓&lt;br&gt;
Browser&lt;/p&gt;

&lt;p&gt;Frontend&lt;/p&gt;

&lt;p&gt;The frontend uses standard web technologies:&lt;/p&gt;

&lt;p&gt;HTML&lt;/p&gt;

&lt;p&gt;CSS&lt;/p&gt;

&lt;p&gt;JavaScript&lt;/p&gt;

&lt;p&gt;No large frontend framework is required, keeping the project simple and easy to understand.&lt;/p&gt;

&lt;p&gt;Prompt Design&lt;/p&gt;

&lt;p&gt;Instead of simply asking the model:&lt;/p&gt;

&lt;p&gt;Write a song about summer.&lt;/p&gt;

&lt;p&gt;the application provides structured information:&lt;/p&gt;

&lt;p&gt;Song/topic: Summer Love&lt;br&gt;
Genre: Pop&lt;br&gt;
Mood: Happy&lt;br&gt;
Language: English&lt;br&gt;
Number of verses: 3&lt;/p&gt;

&lt;p&gt;The model is instructed to create completely original lyrics and organize them into a recognizable song structure.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;[Verse 1]&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;[Pre-Chorus]&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;[Chorus]&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;[Verse 2]&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;[Bridge]&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;[Final Chorus]&lt;/p&gt;

&lt;p&gt;...&lt;/p&gt;

&lt;p&gt;Local AI&lt;/p&gt;

&lt;p&gt;One of the key parts of the project is that the AI inference happens locally.&lt;/p&gt;

&lt;p&gt;After installing Ollama and the model:&lt;/p&gt;

&lt;p&gt;ollama pull qwen2.5-coder:3b&lt;/p&gt;

&lt;p&gt;the application can communicate with the local Ollama API.&lt;/p&gt;

&lt;p&gt;This means the basic application does not require an OpenAI, Anthropic, Gemini, or other paid cloud AI API.&lt;/p&gt;

&lt;p&gt;Why Does Open Innovation Matter?&lt;/p&gt;

&lt;p&gt;Open innovation made this project possible because I could build around an openly available model and run inference locally.&lt;/p&gt;

&lt;p&gt;A closed AI API would certainly make the implementation possible, but local open-weight inference gives the project some important advantages.&lt;/p&gt;

&lt;p&gt;🔒 More control&lt;/p&gt;

&lt;p&gt;The user controls where the model runs and how the application communicates with it.&lt;/p&gt;

&lt;p&gt;💻 Local-first development&lt;/p&gt;

&lt;p&gt;The project can be developed and tested without requiring a cloud AI account or API key.&lt;/p&gt;

&lt;p&gt;💰 Lower barrier to experimentation&lt;/p&gt;

&lt;p&gt;Anyone with suitable hardware can experiment with the application without paying for every generated song.&lt;/p&gt;

&lt;p&gt;🧑‍💻 Learning and customization&lt;/p&gt;

&lt;p&gt;Because the application controls the prompt, backend, frontend, and model connection, developers can modify the entire pipeline.&lt;/p&gt;

&lt;p&gt;They can experiment with:&lt;/p&gt;

&lt;p&gt;Prompt engineering&lt;/p&gt;

&lt;p&gt;Different models&lt;/p&gt;

&lt;p&gt;Temperature settings&lt;/p&gt;

&lt;p&gt;Song structures&lt;/p&gt;

&lt;p&gt;Languages&lt;/p&gt;

&lt;p&gt;Genres&lt;/p&gt;

&lt;p&gt;UI features&lt;/p&gt;

&lt;p&gt;Local AI workflows&lt;/p&gt;

&lt;p&gt;🌍 Open innovation encourages experimentation&lt;/p&gt;

&lt;p&gt;The most interesting part for me is that the AI is not treated as a black box.&lt;/p&gt;

&lt;p&gt;The project connects an open model, local inference, a Python backend, and a web interface into one small application.&lt;/p&gt;

&lt;p&gt;That makes it easier to learn how AI applications actually work from end to end.&lt;/p&gt;

&lt;p&gt;My Agent Session&lt;/p&gt;

&lt;p&gt;I did not use DevRelay for this project.&lt;/p&gt;

&lt;p&gt;Prize Categories&lt;/p&gt;

&lt;p&gt;The project is primarily entering the categories related to:&lt;/p&gt;

&lt;p&gt;🤖 Open-source AI / open-weight models&lt;/p&gt;

&lt;p&gt;🖥️ Local AI / local inference&lt;/p&gt;

&lt;p&gt;🧑‍💻 Developer tools and AI applications&lt;/p&gt;

&lt;p&gt;Project Stack&lt;br&gt;
AI Model       → Qwen2.5-Coder 3B&lt;br&gt;
Inference      → Ollama&lt;br&gt;
Backend        → Python + FastAPI&lt;br&gt;
Frontend       → HTML + CSS + JavaScript&lt;br&gt;
API            → REST / JSON&lt;br&gt;
Runtime        → Local machine&lt;/p&gt;

&lt;p&gt;Running the Project Locally&lt;/p&gt;

&lt;p&gt;Clone the repository:&lt;/p&gt;

&lt;p&gt;git clone &lt;a href="https://github.com/Bharatefb/AI-Lyrics-Generator.git" rel="noopener noreferrer"&gt;https://github.com/Bharatefb/AI-Lyrics-Generator.git&lt;/a&gt;&lt;br&gt;
cd AI-Lyrics-Generator&lt;/p&gt;

&lt;p&gt;Install and run the Qwen model:&lt;/p&gt;

&lt;p&gt;ollama pull qwen2.5-coder:3b&lt;/p&gt;

&lt;p&gt;Set up the backend:&lt;/p&gt;

&lt;p&gt;cd backend&lt;/p&gt;

&lt;p&gt;python -m venv venv&lt;/p&gt;

&lt;p&gt;On Windows:&lt;/p&gt;

&lt;p&gt;venv\Scripts\activate&lt;/p&gt;

&lt;p&gt;On macOS/Linux:&lt;/p&gt;

&lt;p&gt;source venv/bin/activate&lt;/p&gt;

&lt;p&gt;Install dependencies:&lt;/p&gt;

&lt;p&gt;pip install -r requirements.txt&lt;/p&gt;

&lt;p&gt;Start FastAPI:&lt;/p&gt;

&lt;p&gt;uvicorn main:app --reload --port 8000&lt;/p&gt;

&lt;p&gt;Then open the frontend using a local development server such as VS Code Live Server.&lt;/p&gt;

&lt;p&gt;What's Next?&lt;/p&gt;

&lt;p&gt;I plan to continue improving the project with features such as:&lt;/p&gt;

&lt;p&gt;🔄 Generate Again&lt;/p&gt;

&lt;p&gt;📋 Copy Lyrics&lt;/p&gt;

&lt;p&gt;💾 Download Lyrics&lt;/p&gt;

&lt;p&gt;📝 Edit generated lyrics&lt;/p&gt;

&lt;p&gt;📚 Song history&lt;/p&gt;

&lt;p&gt;🌍 Better multilingual support&lt;/p&gt;

&lt;p&gt;🎤 More vocal and writing controls&lt;/p&gt;

&lt;p&gt;🎶 Custom verse/chorus structures&lt;/p&gt;

&lt;p&gt;🎨 Improved UI&lt;/p&gt;

&lt;p&gt;🌙 Dark/light mode&lt;/p&gt;

&lt;p&gt;⚡ Streaming generation&lt;/p&gt;

&lt;p&gt;The long-term goal is to make AI-assisted songwriting a simple local-first experience that anyone can experiment with.&lt;/p&gt;

&lt;p&gt;Built with ❤️, open-source AI, and a little musical inspiration.&lt;/p&gt;

&lt;p&gt;Thanks for checking out AI-Lyrics-Generator! 🎵&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>hacktoberfest</category>
      <category>weekendchallenge</category>
    </item>
  </channel>
</rss>
