1
This commit is contained in:
@@ -422,6 +422,16 @@ globalThis.__nodejsMain = async function main(params) {
|
||||
srtPath = makeOutputPath("subtitle", "srt");
|
||||
fs.writeFileSync(srtPath, buildSrtContent(records, maxChars), "utf8");
|
||||
|
||||
if (p.recognizeOnly) {
|
||||
pipelineNative.deleteFile(audioPath);
|
||||
return {
|
||||
success: true,
|
||||
records,
|
||||
srtPath,
|
||||
message: `字幕识别完成,共 ${records.length} 条`,
|
||||
};
|
||||
}
|
||||
|
||||
const { width, height } = probeVideoSize(current);
|
||||
const assPath = makeOutputPath("subtitle", "ass");
|
||||
fs.writeFileSync(
|
||||
|
||||
Reference in New Issue
Block a user