Skip to content

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

@Leemenmen

Description

@Leemenmen

调用代码:
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions