mirror of
https://github.com/FunAudioLLM/SenseVoice.git
synced 2025-09-15 15:08:35 +08:00
change the function name
This commit is contained in:
parent
c498c22671
commit
e7c17cf042
2
api.py
2
api.py
@ -45,7 +45,7 @@ async def root():
|
||||
"""
|
||||
|
||||
@app.post("/api/v1/asr")
|
||||
async def create_files(files: Annotated[List[bytes], File(description="wav or mp3 audios in 16KHz")], keys: Annotated[str, Form(description="name of each audio joined with comma")], lang: Annotated[Language, Form(description="language of audio content")] = "auto"):
|
||||
async def turn_audio_to_text(files: Annotated[List[bytes], File(description="wav or mp3 audios in 16KHz")], keys: Annotated[str, Form(description="name of each audio joined with comma")], lang: Annotated[Language, Form(description="language of audio content")] = "auto"):
|
||||
audios = []
|
||||
audio_fs = 0
|
||||
for file in files:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user