Skip to content

Radio Mode, Cloud LM Option, Customizable Lyric, Style, and Title prompt#42

Open
pacmanincarnate wants to merge 6 commits intofspecii:mainfrom
pacmanincarnate:main
Open

Radio Mode, Cloud LM Option, Customizable Lyric, Style, and Title prompt#42
pacmanincarnate wants to merge 6 commits intofspecii:mainfrom
pacmanincarnate:main

Conversation

@pacmanincarnate
Copy link

I wanted to create a radio mode where the app would generate the next song with new lyrics and style while the current was playing. In the process, I also realized that the local LM was causing trouble, as it's not well optimized for smaller systems, and that I wanted more control over the prompts for lyrics, style, and title.

This PR resolves those issues and is a nice upgrade to the system, with no downsides in my testing.

I highly recommend testing this before merging, as it is vibe coded. But I do think it's worth merging all or part of.

Refactor song handling and generation logic for Radio Mode. Introduce new state variables and update existing functions to accommodate changes in song sorting and generation.
Added functions to generate lyrics, style, and title using lmService. Updated UI to include buttons for these functionalities.
Added local storage management for AI text generation settings including backend selection, API keys, and prompts.
Capture original stdout for clean JSON output and handle stdout redirection for logging.
Redirect stdout to stderr for logging and restore it for final output. Handle exceptions and print errors in JSON format.
Implement lmService for song generation with various prompts and backend options.
@JoshuaKimsey
Copy link

I love the idea of a radio mode actually! Would be a great addition to the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants