Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
AutoKara
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Wiki externe
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de conteneur
Registre de modèles
Opération
Environnements
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
bakaclub
AutoKara
Validations
698ac7e7
Valider
698ac7e7
rédigé
1 year ago
par
Sting
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Update README + plot_syls
parent
4ddf1bed
Aucune branche associée trouvée
Branches contenant la validation
Aucune étiquette associée trouvée
1 requête de fusion
!4
Lyrics Alignment
Modifications
2
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
README.md
+15
-5
15 ajouts, 5 suppressions
README.md
plot_syls.py
+12
-5
12 ajouts, 5 suppressions
plot_syls.py
avec
27 ajouts
et
10 suppressions
README.md
+
15
−
5
Voir le fichier @
698ac7e7
...
@@ -73,17 +73,21 @@ Having a CUDA-capable GPU is optional, but can greatly reduce processing time in
...
@@ -73,17 +73,21 @@ Having a CUDA-capable GPU is optional, but can greatly reduce processing time in
## Autokara
## Autokara
To execute AutoKara from scratch on a MKV video file :
To use Autokara, you need :
-
A media file of the song (video, or pre-extracted vocals)
-
An ASS file with the lyrics, split by syllable
To execute AutoKara on a MKV video file and an ASS file containing the lyrics (ASS will be overwritten):
```
bash
```
bash
$
python autokara.py video.mkv
output
.ass
$
python autokara.py video.mkv
lyrics
.ass
```
```
To
execute AutoKara with existing syl splits and line timings
:
To
output to a different file (and keep the original)
:
```
bash
```
bash
$
python autokara.py video.mkv
output.ass
--ref
reference
.ass
$
python autokara.py video.mkv
lyrics.ass
-o
output
.ass
```
```
To execute AutoKara on a (pre-extracted) WAV
vocals file
:
To execute AutoKara on a (pre-extracted) WAV
(or OGG, MP3, ...) vocals file, pass the
`--vocals`
flag
:
```
bash
```
bash
$
python autokara.py vocals.wav output.ass
--vocals
$
python autokara.py vocals.wav output.ass
--vocals
```
```
...
@@ -110,6 +114,12 @@ Batch preprocessing (vocals + ASS extraction) of all videos in a directory :
...
@@ -110,6 +114,12 @@ Batch preprocessing (vocals + ASS extraction) of all videos in a directory :
$
./preprocess_media.sh video_folder output_folder
$
./preprocess_media.sh video_folder output_folder
```
```
A visualization tool, mainly intended for debug.
Does the same as autokara.py, but instead of writing to a file, plots a graphic with onset times, spectrogram, probability curves,...
Does not work on video files, only separated vocals audio files
```
bash
$
python plot_syls.py vocals.wav lyrics.ass
```
Ce diff est replié.
Cliquez pour l'agrandir.
plot_syls.py
+
12
−
5
Voir le fichier @
698ac7e7
...
@@ -5,6 +5,7 @@ import re
...
@@ -5,6 +5,7 @@ import re
import
matplotlib.pyplot
as
plt
import
matplotlib.pyplot
as
plt
import
scipy.signal
as
sg
import
scipy.signal
as
sg
import
parselmouth
import
parselmouth
import
argparse
from
autosyl.assUtils
import
getSyls
,
timeToDate
,
dateToTime
from
autosyl.assUtils
import
getSyls
,
timeToDate
,
dateToTime
from
autosyl.LyricsAlignment.wrapper
import
align
,
preprocess_from_file
from
autosyl.LyricsAlignment.wrapper
import
align
,
preprocess_from_file
...
@@ -19,11 +20,17 @@ from autosyl.LyricsAlignment.wrapper import align, preprocess_from_file
...
@@ -19,11 +20,17 @@ from autosyl.LyricsAlignment.wrapper import align, preprocess_from_file
#
#
##############################################################################
##############################################################################
songfile
=
sys
.
argv
[
1
]
if
(
len
(
sys
.
argv
)
>=
3
):
parser
=
argparse
.
ArgumentParser
(
description
=
'
AutoKara - Automatic karaoke timing tool
'
)
reference_syls
=
getSyls
(
sys
.
argv
[
2
])
parser
.
add_argument
(
"
vocals_file
"
,
type
=
str
,
help
=
"
The audio file to time
"
)
else
:
parser
.
add_argument
(
"
ass_file
"
,
type
=
str
,
help
=
"
The ASS file with lyrics to time
"
)
reference_syls
=
None
args
=
parser
.
parse_args
()
songfile
=
args
.
vocals_file
reference_syls
,
line_meta
=
getSyls
(
sys
.
argv
[
2
])
print
(
reference_syls
)
print
(
reference_syls
)
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter