The Music module for Linguflex allows for the playout of songs and albums via YouTube.
This module facilitates:
- Playing individual songs or entire albums using YouTube links.
- Accessing a variety of music through YouTube's extensive library.
- "Play an album by Adele."
- "Play 'Bohemian Rhapsody' by Queen."
- "I wanna hear a playlist of the top songs from the 90s."
GOOGLE_API_KEY
This module requires a Google API Credentials Key with YouTube Data API v3 enabled, set as the environment variable GOOGLE_API_KEY
.
To obtain this key:
- Visit Google Cloud Console.
- Create a new project or select an existing one.
- Search for "YouTube Data API v3" and enable it.
- Click "Create Credentials" and choose "User data".
- Provide the necessary application details.
- For application type, select "Web Application".
- Find "Credentials" in the menu, then create an "API Key".
- Store this key in the
GOOGLE_API_KEY
environment variable (refer to your OS for instructions).
Section: music
max_playlist_songs
: Defines the maximum number of songs in a playlist to be retrieved using the YouTube API.