midi2voice
v1.0.0
该脚本依赖于名古屋技术学院的Sinsy.jp网站,该网站实现了基于HMM的唱歌语音合成系统。
您可以在此处找到与乐器音频合并的示例。
pip install git+git://github.com/mathigatti/midi2voice.git您可以使用python -m midi2voice使用它运行已安装的模块。它具有服务器参数,大多数是可选的,并且仅在要指定与默认值不同的内容时才需要使用它们
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
在此处查看MIDI和文本样本。
# 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 96如果您没有安装Python,或者您只想快速检查一下,则可以在此处在线尝试。
目前,sinsy.jp提供了这种声音。您可以使用VoiceIndex参数选择它们。
日本人
女性
男性
英语
女性
男性
普通话
女性
男性
此源代码是由Mathias Gatti(@mathigatti)开发的,如果您使用它,请记住引用我。对于科学出版物,您可以使用此doi。
Gatti, M. (2020). mathigatti/midi2voice v1.0.0 (v1.0.0) [Computer software]. Zenodo. https://doi.org/10.5281/ZENODO.3969003
如果您想帮助我继续开发和维护开源项目,您可以为我购买一些KO-FI。
麻省理工学院