2019-10-30-流星ワールドアクター广播剧制作

自用技术

1.解包、了解ast脚本。听一遍找感觉。

2.SMMVSplitterBusiness视频剪辑.exe,使用保留方式分割。分割原则:完整保留一句话,越短越好

保存包括要剪除的所有区段为wav,ffmpeg转成MP3

1572443190492

3.Python使用腾讯AI自动识别翻译

1
2
3
4
5
6
7
8
9
10
11
12
13
if __name__ == '__main__':
fp = open("M:/Gal/流星广播剧/soundmp3/work/log.txt","w",encoding="utf-8")
for src in dirlist("M:/Gal/流星广播剧/soundmp3/work",[]):
print(src)
fp.write(src+"\n")
file1 = open(src, "rb").read()
chunk = base64.b64encode(file1)
ai_obj = AiPlat(app_id, app_key)
trans = ai_obj.getNlpSpeechTranslate(file1, 8, 0, 1, "jp", "zh")
print(trans["data"]["source_text"])
print(trans["data"]["target_text"])
time.sleep(1)
fp.close()

4.复制输出出来认真听译,注意尽量一次一个完整句子,虽然一个人连着说两次对话框也有。

5.不能识别/存疑部分再次剪切识别……

6.开启同步视图,ahk脚本快速打出人名字:

1
2
3
4
5
6
#1::send,克拉莉丝`r`n
#2::send,小町`r`n
#3::send,梅丽莎`r`n
#4::send,席冯`r`n
#5::send,梅露`r`n
#6::send,珠子`r`n

7.Python输出ast脚本,fem_nom_00001是空的短音频,目的是对话框左边可以出现下面效果。而且,fg要使用相同名字。

1572443651756

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# file1 = "M:/Gal/流星广播剧/soundmp3/kazename.txt"
# file1 = "M:/Gal/流星广播剧/soundmp3/Shiyoname.txt"
file1 = "M:/Gal/流星广播剧/soundmp3/waruiname.txt"
# file2 = "M:/Gal/流星广播剧/soundmp3/kazedia.txt"
# file2 = "M:/Gal/流星广播剧/soundmp3/Shiyodia.txt"
file2 = "M:/Gal/流星广播剧/soundmp3/waruidia.txt"

dias = open(file2,"r",encoding="utf-8").readlines()
names = open(file1,"r",encoding="utf-8").readlines()
i = 1

if __name__ == '__main__':
while i <= len(names):
print("{\n{\"text\"},\ncrc =\"799cd8ab\",\nlang=\"0100_00" + str(i).zfill(3) + "\",\n},")
i += 1
if __name__ == '__xxmain__':
i = 0
for name in names:
name = name.replace("\r\n", "").replace("\n", "")
dia = dias[i].replace("\r\n", "").replace("\n", "")
i += 1
print("[" + str(i + 1) + "]={")
print("vo={\n{\"vo\",file=\"fem_nom_00001\",ch=\"nom\" },\n},")
print("name={name=\"" + name + "\",ja=\"" + name + "\"},")
print("ja={\n{")
print("\"「" + dia + "」\",")
print("},\n},\n},\n")

8.开三个区:演奏区、脚本区、参考区

稍微读一下就懂了

1572443026662

9.找出bg图片

公寓内
zbg31d

路上
zbg01d

基本就是出现、放大、还有转黑场等

10.fg增加:

fg要修改的有id(统一),x=345(跟坐标轴一样)

另外,fg移动效果除了mx my还有:

1
2
3
4
5
6
7
8
9
10
11
12
{"fg",ch="梅丽莎",face="a0002",file="mls_z1a0000",head="mls_z1a",id=3,lv=4,mode=3,mx=0,my=0,path=":fg/mls/z1/",resize=1,size="z1",sync=0},
{"extrans",time=500},
{"fgact",ch="梅丽莎",act="浮遊",lv=4,id=3,loop=-1},

左右
{"fgact",ch="梅丽莎",act="いいえ",lv=5,id=13},

上下吓一跳
{"fgact",ch="梅丽莎",act="びっくり",lv=4,id=3},

摔倒
{"fgact",ch="梅丽莎",act="おじぎ",lv=4,id=3},

11.广播剧音频使用AU转ogg,注意要变名为bgm24_a之类,然后脚本播放bgm24

12.调节人物表情很耗功夫,花心思。

13.播放一遍,完成。