Retrieves information and synchronized lyrics for a sound by name.
<?php
require_once __DIR__ . '/lib/SpotifyAPI/spotifyapi.php';
require_once __DIR__ . '/lib/LyricalMind/lyricalmind.php';
$spotifyAPI = new SpotifyAPI(); // Optional if you want lyrics not synced
$lyricsMind = new LyricalMind($spotifyAPI);
$output = $lyricsMind->GetLyricsByID($id, $syncLyrics);
$output = $lyricsMind->GetLyricsByName($artist, $title, $syncLyrics);
?>
- Get Spotify song ID if needed, bpm, key/mode and duration
- Get lyrics from scraping (AZ, Genius, P2C)
- Download song from Spotify (spotdl)
- Separate vocals from song (unmix)
- Speech to text (WhisperX)
- Syncronize lyrics (compare lyrics with speech to text)
- Create a configuration file named
config.json
with content:
{
"debug": false
}
Go to SpotifyAPI to setup SpotifyAPI
- 0 => Success
- 1 => Spotify song not found
- 2 => Lyrics not found
- 3 => Song not downloaded
- 4 => Song not spleeted
- 5 => Speech to text failed
- 6 => Lyrics not synced (not enough words found)
- Optional, needed for lyrics sync:
- This project use:
- Scraping:
- Noter les signatures rythmique (spotifyAPI)
- DD/DD_db: Faire un système de logs avancé
- GetLyrics: Acheter une base de données de paroles
- Algo: Affiner les déductions avec les fichier audio
- Algo: Syncroniser les paroles mot par mot