/mood-driven-playlist

This is a sample app that catches moods and creates a playlist from Spotify based on the mood analysis

Primary LanguagePowerShellMIT LicenseMIT

Mood-driven Playlist

This is a sample app that catches moods and creates a playlist from Spotify based on the mood analysis.

Prerequisites

Getting Started

  1. Create an app on Spotify and get the Client ID and Client Secret from the Spotify Developer Dashboard.

  2. Run the following commands to provision and deploy apps to Azure.

    NOTE:

    • Since all the post-provisioning scripts are written in PowerShell, it is recommended to use PowerShell to run the azd commands.
    • You can get the latest version of Azure OpenAI API spec from here.
    # PowerShell
    $AZURE_ENV_NAME="playlist$(Get-Random -Min 1000 -Max 9999)"
    azd init -e $AZURE_ENV_NAME
    azd provision
    azd deploy
  3. At the Spotify Developer Dashboard, update the Redirect URI to the one from Azure API Management Credential Manager. It should look like https://authorization-manager.consent.azure-apim.net/redirect/apim/apim-{{AZURE_ENV_NAME}}.

  4. Authorise the credentials on Azure API Management.

More information

ASP.NET web app development

Azure API Management

Azure OpenAI Service