Skip to content

Commit a9ab1ec

Browse files
authored
Update midi2voice.py
1 parent 7bd5c5b commit a9ab1ec

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

midi2voice.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def findWavNameOnWebsite(htmlResponse):
5959
def download(urlfileName,wavPath):
6060
urllib.request.urlretrieve("http://sinsy.sp.nitech.ac.jp/temp/" + urlfileName + ".wav", wavPath)
6161

62-
def main():
62+
if __name__ == "__main__":
6363
textFilePath = sys.argv[1]
6464
midiPath = sys.argv[2]
6565
sex = "female"
@@ -76,5 +76,3 @@ def main():
7676
print("Running voice renderization")
7777
renderizeVoice(lyrics,midiPath,sex, tempo)
7878
print("Finished voice renderization")
79-
80-
main()

0 commit comments

Comments
 (0)