สคริปต์นี้ขึ้นอยู่กับเว็บไซต์ 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 ให้ฉัน
มิกซ์