Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

字幕设置旁白没有声音 #140

Open
hjane opened this issue Oct 31, 2021 · 0 comments
Open

字幕设置旁白没有声音 #140

hjane opened this issue Oct 31, 2021 · 0 comments

Comments

@hjane
Copy link

hjane commented Oct 31, 2021

我设置字幕旁白没有声音,旁白音频是mp3格式的,mp3文件打开正常,但生成后的视频没有声音。
....
const config = {
comma: false,
fontSize: item.fontSize,
x: item.x + item.width / 2,
y: item.y + item.height / 2,
width: item.width,
height: item.height,
};
const subtitle = new FFSubtitle(config);
subtitle.setRegexp(/(。|?|?|!|!|;|,|\n)/gi);
subtitle.setSpeech(pathname + 'test.mp3');
scene.addChild(subtitle);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant