Ce script repose sur le site Web de Sinsy.jp du Nagoya Institute of Technology qui implémente un système de synthèse vocale chantant basé sur HMM.
Vous pouvez trouver un échantillon fusionné avec l'audio instrumental ici.
pip install git+git://github.com/mathigatti/midi2voice.git Vous pouvez l'utiliser en exécutant le module installé à l'aide de python -m midi2voice . Il a des paramètres de serveur, la plupart sont facultatifs et vous devez les utiliser uniquement si vous souhaitez spécifier quelque chose de différent de la valeur par défaut
python -m midi2voice
-h, --help # show this help message and exit
-l LYRICS, --lyrics LYRICS # Path to txt file containing the lyrics
-m MIDI, --midi MIDI # Path to midi file
-lang {english,japanese,mandarin} # Language of the voice (OPTIONAL / DEFAULT: english)
-g {female,male} # Gender voice (female/male) (OPTIONAL / DEFAULT: female)
-i VOICEINDEX # Each language has different voices, for example japanese has 4 different female voices at the moment, mandarin only one. (OPTIONAL / DEFAULT: 0)
-t TEMPO # Song tempo in BPMs (OPTIONAL / DEFAULT 80)
-s SYNALPHA # Gender parameter [between -0.8 and 0.8, default: 0.55]
-v VIBPOWER # Vibrato intensity [between 0 and 2, default: 1]
-p F0SHIFT # Pitch shift [in half tones, between -24 and 24, default: 0]
-d DESTINATION_FOLDER # Destination folder
Vérifiez les échantillons MIDI et TMS ici.
# Print help
python3 -m midi2voice -h
# Basic example
python -m midi2voice -l shallow.txt -m shallow.mid
# Generate the voice given a midi file and a text file with the lyrics
python -m midi2voice -l shallow.txt -m shallow.mid -lang english -g female -t 96Si vous n'avez pas installé Python ou si vous souhaitez le vérifier rapidement, vous pouvez l'essayer en ligne ici.
Pour le moment, Sinsy.jp fournit ces voix. Vous pouvez utiliser le paramètre VoiceIndex pour les choisir.
japonais
Femelle
Mâle
Anglais
Femelle
Mâle
mandarin
Femelle
Mâle
Ce code source a été développé par Mathias Gatti (@mathigatti) Si vous l'utilisez, n'oubliez pas de me citer. Pour les publications scientifiques, vous pouvez utiliser ce DOI.
Gatti, M. (2020). mathigatti/midi2voice v1.0.0 (v1.0.0) [Computer software]. Zenodo. https://doi.org/10.5281/ZENODO.3969003
Si vous voulez m'aider à continuer de développer et à maintenir des projets open source, vous pouvez contribuer à m'acheter du ko-fi.
Mit