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。
麻省理工學院