用 Claude Code 搭建 Alexa 私人点歌台,替代 Spotify
levelsio 用 Claude Code 写了个 Alexa 技能,MP3 丢进 R2 就能语音点歌,受不了 Spotify 推荐的可以照着搭。
开发者 levelsio 借助 Claude Code 搭建了一个名为 Jukebox 的 Alexa 技能,把自购的咖啡爵士 MP3 存到 Cloudflare R2 桶中播放。Claude Code 生成了 package.json 和 index.js,他在 Alexa Developer Console 构建后,手动添加一条 Routine,让"Alexa, coffee jazz"触发"Alexa, ask the jukebox to play coffee jazz"。目前支持 Bossa Nova 和 Lofi 歌单,往 R2 里加音乐即可自动播放。他表示 Spotify 的推荐总是重复且不合口味,这个自建方案让他可以退订 Spotify。
It worked
Of course it worked!
It never ever doesn't work right?
I vibecoded my own Spotify that works with Amazon Alexa and plays all my own MP3 music files 😊
Claude Code calls it the 🎶 Jukebox
I put some coffee jazz MP3s (that I purchased) in an R2 bucket, made an Alexa skill in the Alexa Developer Console with help from Claude Code and now it plays it if I ask "Alexa, coffee jazz"
It wrote a package.json and index.js, then I saved and built it on the console. Then I had to manually add a Routine to Alexa so that "Alexa, coffee jazz" became "Alexa, ask the jukebox to play coffee jazz"
It also has Bossa Nova and Lofi and I can just drop music in whenever I want and it auto plays it
Spotify with Alexa was giving me really terrible recommendations of music and always the same and the only thing I used it for was this!
So I guess I can cancel Spotify now too 🙏