Updating Radio New Vegas GPT
I just spent a while updating Radio New Vegas GPT to try and make the flow of songs a little less chaotic, since there's no genre or theme.
So, the program queues 7 songs at a time, re-queuing a couple songs before the playlist is cleared. It keeps a recently-played list and queues songs that aren't in that list.
Before update:
- Each time a song is queued to the playlist, we go through and pick one at random, checking that it's not in that list.
- Continue this until we find one that's not in the list, and add it to the end.
After update:
- Most songs on the playlist now have metadata taken from Spotify about tempo, loudness, danceability, key, etc.
- We compare the metadata for all songs using cosine similarity to find the most similar songs.
- Pick a random song out of the closest 4 that aren't already in the recently played list.
The aim is that as songs get added over time, there will be less abrupt jumping between genres.
ALSO I fixed the auto-translation of song titles it does. So when you request a song, for example 君の銀の庭 by Kalafina, it tries to translate to English text: Your Silver Garden by Kalafina. This is a temporary thing but the latest (version 2) xVASynth voice models can pronounce English characters only. Apparently in v3 that won't be an issue, so in the future the translation can be avoided... although I might still give the english translation to GPT-3, as the monologue is generated, just so it has the context of what the title says in english.