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

使用FastAPI,调用/api/v1/asr失败 #192

Open
Leemenmen opened this issue Feb 27, 2025 · 0 comments
Open

使用FastAPI,调用/api/v1/asr失败 #192

Leemenmen opened this issue Feb 27, 2025 · 0 comments
Labels
question Further information is requested

Comments

@Leemenmen
Copy link

调用代码:
audio_data = r"D:\project\whisper\audio\my_audio.wav"
api_url = "http://localhost:8666/api/v1/asr"
sense_voice = SenseVoice(api_url, emo=False)
result = sense_voice.speech_to_text(audio_data)

在api.py文件中运行到data_or_path_or_list, audio_fs = torchaudio.load(file_io)这行代码出现如下:
soundfile.LibsndfileError: Error opening <_io.BytesIO object at 0x000001A5F63E69D0>: Format not recognised.

@Leemenmen Leemenmen added the question Further information is requested label Feb 27, 2025
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

1 participant