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

ValueError: [Errno 22] Invalid argument: 读取音频文件报错 #89

Open
syc840 opened this issue Dec 31, 2024 · 0 comments
Open

ValueError: [Errno 22] Invalid argument: 读取音频文件报错 #89

syc840 opened this issue Dec 31, 2024 · 0 comments

Comments

@syc840
Copy link

syc840 commented Dec 31, 2024

subtitle.py 中执行如下方法报错
segments, info = model.transcribe(
audio_file,
beam_size=5,
word_timestamps=True,
vad_filter=True,
vad_parameters=dict(min_silence_duration_ms=500),
initial_prompt="以下是普通话的句子"
)

报错信息: ValueError: [Errno 22] Invalid argument: 'C:\Users\syc\Desktop\NarratoAI_code\NarratoAI\storage\tasks\9fab4fa9-a1eb-44dd-bc55-d88b2ddf6b55\final_audio.mp3'

路径与文件都是存在的,不知道是什么原因。

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