A bot that uses the musixmatch API to transform songs into Google Text-to-Speech
Project description
pyKaraoke - Use the musixmatch API to transform songs into Google Text-to-Speech
Getting Started with karegoogle
Get a Developer Account on MusixMatch
https://developer.musixmatch.com/
Get an API Key
Installing the bot
To install the bot there are a few simple steps:
Setup a virtual environment
Ubuntu Linux
The following instructions are based on Windows WSL2 and Ubuntu however any flavour of Linux will work with possibly slightly different commands.
Confirm Python 3 is installed
$ python3 -V
Python 3.9.10
Create and activate a virtual environment
$ sudo apt install python3-venv
$ python3 -m venv karaoke
$ source karaoke/bin/activate
(karaoke)$
Install the bot
(message_room)$pip install pykaraoke
Windows
Confirm Python 3.9 is installed
Download Python
Create and activate a virtual environment
C:\>python3 -m venv karaoke
C:\>karaoke\Scripts\activate
(pykaraoke) C:\>
Install the requirements
(message_room)$pip install pykaraoke
Using the bot
Run the bot as an interactive session
(karaoke)$ mkdir Songs
(karaoke)$ cd Songs
(karaoke)$ pykaraoke
The form questions:
Question 1 - API Token
Question 2 - Arist Name
Question 3 - Song Title
Environment variables
Every question can be stored as a variable in the environment. This is useful if you want to reuse the same question in multiple messages.
Linux: export TOKEN= export ARTIST= export SONG=
Windows: set TOKEN= set ARTIST= set SONG=
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyKaraoke-1.0.6.tar.gz
(287.5 kB
view hashes)
Built Distribution
pyKaraoke-1.0.6-py3-none-any.whl
(286.1 kB
view hashes)
Close
Hashes for pyKaraoke-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7defc4410d267be2706fae30b235485c19cf8a3f1a4c4c1fac62db65ff50d489 |
|
MD5 | f648a83890b04537537b1dd48ea49c6c |
|
BLAKE2b-256 | 7afdc5f1a9eee995cbcf124754cfb990d3a218415c5d66fd7b5291999eddbf68 |