Skip to content

Commit 1671cca

Browse files
committed
stupid..
1 parent 119391a commit 1671cca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

VocaloidTTSansweringYukarinette.lua

+4-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ function main(processParam, envParam)
5252
os.execute('powershell '..cmd)
5353

5454
for line in io.lines("script_mode.txt") do
55-
if (line == '2') then
55+
if string.find(line,'2') ~= nil then
56+
stupit = ''
5657
for input in io.lines("input.txt") do
5758
input = string.gsub(input, '%.', '')
5859
input = string.gsub(input, ',', '')
@@ -69,10 +70,10 @@ function main(processParam, envParam)
6970
end
7071
end
7172
if (string.len(replaced) > 0) then
72-
input = replaced
73+
stupit = replaced
7374
end
7475
end
75-
os.execute("powershell \"Write-Output "..input.." | Set-Content input.txt -Encoding UTF8\"")
76+
os.execute("powershell \"Write-Output "..stupit.." | Set-Content input.txt -Encoding UTF8\"")
7677
end
7778
end
7879
os.execute("open_jtalk.exe -m mei/mei_normal.htsvoice -x dic -ow output.wav -ot analyzed.txt input.txt")

0 commit comments

Comments
 (0)