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)$ 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.10.tar.gz
(15.6 kB
view details)
Built Distribution
File details
Details for the file pyKaraoke-1.0.10.tar.gz
.
File metadata
- Download URL: pyKaraoke-1.0.10.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.3 Linux/5.4.72-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa443dbd1c1f44b64b372ddbea9fe81e5b1378442f4c23f71d9a563cebc452a |
|
MD5 | 60bde60b59bed52e44ed14e8b0afe1ff |
|
BLAKE2b-256 | 07777be95a9525d200491e9ecb6487a0b02de25e06a7fcd9029988c3250cdb8e |
File details
Details for the file pyKaraoke-1.0.10-py3-none-any.whl
.
File metadata
- Download URL: pyKaraoke-1.0.10-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.3 Linux/5.4.72-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a4bc4dbb79d7976a6074e5ac2c3bbdcbd6275db7e3264ee2facc878ecd3fc1f |
|
MD5 | c728b7ef40d1e3e9890f4fad07eca8ad |
|
BLAKE2b-256 | 672ee3933b8f290ee3d393ed09b4a963821bcb80ecc4bcdc3fcfaafc378403df |