抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

本周六我们更新整合了琴叶四号、五号、六号为带图形界面的幅音工坊GUI,并带来了可配置选项,通过同目录下的settings.json配置,本文将进行说明。在阅读本文前,您需要一点json相关的知识。

查看默认配置
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"save_path": "D:\\幅音工坊\\",
"video": {
"directory_name":"视频",
"cookies_file": "cookies.txt",
"description_template": "此视频转载自{platform},链接见上\n\n原标题:{title}\n原作者:{author}\n原标签:{tags}\n投稿时间:{upload_date}\n原简介:\n{description}",
"tags_mapping": [
{
"japanese": "VOICEROID劇場",
"chinese": "VOICEROID剧场"
},
{
"japanese": "ソフトウェアトーク劇場",
"chinese": "Software Talk剧场"
},
{
"japanese": "琴葉茜",
"chinese": "琴叶茜"
},
{
"japanese": "琴葉葵",
"chinese": "琴叶葵"
},
{
"japanese": "琴葉姉妹",
"chinese": "琴叶姐妹"
},
{
"japanese": "結月ゆかり",
"chinese": "结月缘"
},
{
"japanese": "紲星あかり",
"chinese": "绁星灯"
},
{
"japanese": "東北きりたん",
"chinese": "东北切蒲英"
},
{
"japanese": "東北ずん子",
"chinese": "东北俊子"
},
{
"japanese": "東北イタコ",
"chinese": "东北伊达子"
}
]
},
"lyrics": {
"directory_name":"歌词"
},
"translator": {
"directory_name":"翻译字幕",
"gpt_api_key": false,
"gpt_api_base": "https://api.openai.com/v1",
"gpt_model": "gpt-4-turbo",
"prompt": "You are now a Japanese translator and your work is to translate video theater scripts into Simplified Chinese.\nThe translation must be exact, and you can add a few polish to make it more natural and close to the daily life.\nSeparate sentences can be merged in small amounts when they are found to be in the same sentence.\nThere are different characters in the video script, here are the corresponding translations of the character names.\nあおい=葵\nあかね=茜\n琴葉葵=琴叶葵\n琴葉茜=琴叶茜\n結月ゆかり=结月缘\n紲星あかり=绁星灯\n弦巻マキ=弦卷真纪\n東北ずん子=东北俊子\n東北きりたん=东北切蒲英\n東北イタコ=东北伊达子\nWhen you return, you only need to return the result, no other words are needed.Remember to line breaks, the video script is as follows"
}
}

参数解释

全局

save_path:保存的路径,路径中的反斜杠请转义为双反斜杠!比如D:\幅音工坊\转义为D:\\幅音工坊\\,且必须在末尾带上双反斜杠!

子项目

video下的子项即为下载视频相关配置

directory_name:文件夹名称,会与save_path相拼接,比如D:\\幅音工坊\\视频\\
description_template:生成的简介模板,文段中的换行请转义为\n!,带花括号的变量会被替换成对应的值

可用的变量
  • url 原视频链接
  • platform 原平台名称
  • title 原标题
  • author 原作者
  • tags 原标签(目前仅支持Niconico)
  • upload_date 原视频上传时间(按电脑本机时间计算)
  • description 原简介

tags_mapping:匹配标签列表,会在获取Niconico视频时自动匹配标签,列中的japanesechinese相对应

lyrics下的子项即为下载歌词相关配置

directory_name:文件夹名称

translator下的子项即为SRT翻译相关配置

directory_name:文件夹名称
gpt_api_key:ChatGPT的API Key,若要关闭GPT翻译功能,设置此项为false
gpt_api_base:API请求地址,国内的Key贩子喜欢弄个代理
gpt_model:请按ChatGPT官方文档填写,比如gpt-4-turbo为使用GPT 4.0模型
prompt:请求GPT翻译时的前置提示词,文段中的换行请转义为\n!SRT中的文本内容会添加在其后