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

这一部分是怎么用的,是改哪个.py文件 #13

Open
Banqc0621 opened this issue Apr 19, 2023 · 1 comment
Open

这一部分是怎么用的,是改哪个.py文件 #13

Banqc0621 opened this issue Apr 19, 2023 · 1 comment
Labels
question Further information is requested

Comments

@Banqc0621
Copy link

代码调用:
# 1.指定音视频文件路径
wav_path = './test/test.flv'
# 2. 新建字幕提取器
sg = SubtitleGenerator(wav_path)
# 3. 运行字幕生成
ret = sg.run()

@YaoFANGUK
Copy link
Owner

YaoFANGUK commented Apr 20, 2023

你随便建一个.py文件

from main import SubtitleGenerator

不再backends目录下就

from backend.main import SubtitleGenerator

@YaoFANGUK YaoFANGUK added the question Further information is requested label May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants