RhythmIQ generates lyrics and creates audio using advanced language models and text-to-audio services.
Turn on the song stream!
- Python 3.8+
- Git
- nano-gpt Account: # at nano-gpt.com for access to the pay-per-prompt service.
Choose one of the following for audio synthesis:
- Suno-API Setup: Follow the instructions at SunoAI-API/Suno-API to set up the Suno API.
- LOUDME_COOKIE: Obtain the
LOUDME_COOKIE
environment variable by extracting it from the inspect window in your browser's network tab.
-
Clone the Repository:
git clone https://github.com/255labs/rhythmiq.git cd rhythmiq
-
Install Dependencies:
pip install -r requirements.txt
-
Configure Environment Variables:
Create a
.env
file in the root directory or set the environment variables in your shell.-
Required:
- NANOGPT_API_KEY: Your API key from nano-gpt.com
-
Optional:
- NANOGPT_MODEL: Choose the desired nano-gpt model. Defaults to
o1-mini
. - LOUDME_COOKIE: Your Loudme cookie value.
- NANOGPT_MODEL: Choose the desired nano-gpt model. Defaults to
Example
.env
file:NANOGPT_API_KEY=your_api_key_here LOUDME_COOKIE=your_cookie_value_here NANOGPT_MODEL=o1-mini
Alternatively, set them in your shell:
export NANOGPT_API_KEY='your_api_key_here' export LOUDME_COOKIE='your_cookie_value_here' export NANOGPT_MODEL='your_preferred_model' # Optional
-
-
Customize Prompts:
- Prompting is 2-shot with examples loaded from
songs/
txt files. The ones in there are just examples, keep the format and add your own. - A random instruction is chosen from
instructions/
base.txt
is included in all prompts (at the top)system.txt
is the system prompt
- Prompting is 2-shot with examples loaded from
-
Run the Application:
python3 prompt.py > song.txt python3 upload_suno.py python3 upload_loudme.py
-
Generate Multiple Songs:
- Use the following loop to create multiple songs consecutively:
for i in {1..16}; do python3 prompt.py > song.txt && python3 upload_suno.py sleep 1.5m done
- Use the following loop to create multiple songs consecutively:
Contributions are welcome! Please fork the repository and submit a pull request with your enhancements.
This project is licensed under the MIT License.