Skip to content

Instantly share code, notes, and snippets.

@Yotsuyubi
Last active February 25, 2020 16:13
Show Gist options
  • Save Yotsuyubi/d9567c6b67194cc933b3d294c18729c1 to your computer and use it in GitHub Desktop.
Save Yotsuyubi/d9567c6b67194cc933b3d294c18729c1 to your computer and use it in GitHub Desktop.
音声合成ソフト"NEUTRINO"( https://n3utrino.work )内の"Run.bat"をShellScriptに書き換えたもの。利用には"Wine"( https://www.winehq.org )の導入が必要です。"Run.bat"と同じディレクトリに保存・実行してください。
#! bin/sh
# Project setting
BASENAME="sample1"
NumThreads=0
# musicXML_to_label
SUFFIX="musicxml"
# NEUTRINO
ModelDir="KIRITAN"
# WORLD
PitchShift=1.0
FormantShift=1.0
# start MusicXMLtoLabel
wine bin/musicXMLtoLabel.exe score/musicxml/${BASENAME}.${SUFFIX} score/label/full/${BASENAME}.lab score/label/mono/${BASENAME}.lab
# start NEUTRINO
wine bin/NEUTRINO.exe score/label/full/${BASENAME}.lab score/label/timing/${BASENAME}.lab output/${BASENAME}.f0 output/${BASENAME}.mgc output/${BASENAME}.bap model/${ModelDir}/ -n ${NumThreads} -t
# start WORLD
wine bin/WORLD.exe output/${BASENAME}.f0 output/${BASENAME}.mgc output/${BASENAME}.bap -f ${PitchShift} -m ${FormantShift} -o output/${BASENAME}_syn.wav -n ${NumThreads} -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment