chore(VoiceSynthesis): 字幕打轴轮询去掉读秒,进度提示改为'字幕打轴处理中...'
This commit is contained in:
@@ -163,7 +163,7 @@ export default function VoiceSynthesis() {
|
||||
});
|
||||
|
||||
// 3. 轮询等待结果
|
||||
progress.update('正在处理字幕...');
|
||||
progress.update('字幕打轴处理中...');
|
||||
const pollInterval = 1000;
|
||||
const timeout = 120_000; // 2 分钟
|
||||
const start = Date.now();
|
||||
@@ -178,8 +178,6 @@ export default function VoiceSynthesis() {
|
||||
} else if (status.status === 'failed') {
|
||||
throw new Error(status.error || status.message || '字幕处理失败');
|
||||
}
|
||||
const elapsed = Math.floor((Date.now() - start) / 1000);
|
||||
progress.update(`字幕处理中... ${elapsed}s`);
|
||||
await new Promise(resolve => setTimeout(resolve, pollInterval));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user