diff --git a/api.py b/api.py index 97d3b7d..2884658 100644 --- a/api.py +++ b/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: