Giter Site home page Giter Site logo

spotify-chat's Introduction

spotify

Spotify GPT Agent

Overview

Demo

Live Coding session video! Click here

spotify

This is an intro to AI (LLM) Agents using LangChain. The goal is to use natural language commands towards Spotify player to be able to play certain songs. Example queries: "Play Despacito", "I know a song that goes like I was running through the six with my woes. Play me that song", etc..

Please follow the instructions below to setup the project. Play with it, and build on top of it!

Tech Overview

spotify

Setup

  1. Sign up for Spotify and Spotify API (developer.spotify.com)

  2. Sign up for OpenAI API Key (platform.openai.com)

  3. Create a .env file and put these values in

    OPENAI_API_KEY=**********************
    SPOTIFY_CLIENT_ID=*******************
    SPOTIFY_CLIENT_SECRET=***************
    SPOTIFY_REDIRECT_URI=****************
    
  4. Create a new Python virtual environment

    • python -m venv spotify-chat (Mac)

    • py -m venv spotify-chat (Windows 11)

  5. Install Python requirements in the project repository: pip install -r requirements.txt

Usage

  1. Open a Spotify Player (Web or Local)

  2. Hit play to activate the player (otherwise Spotify Web API won't recognize it). Then pause.

  3. Start virtual environment manually by running:

    • source spotify-chat/bin/activate (Mac)

    • .\spotify-chat\Scripts\activate (Windows 11)

  4. Start script: In your Powershell (Windows) or Terminal (Mac), run either py main.py (Windows 11) or python main.py (Mac)

Development

  1. If new dependencies are added, add them manually to requirements.txt

spotify-chat's People

Contributors

trancethehuman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.