Skip to content

Commit

Permalink
process-audio-data
Browse files Browse the repository at this point in the history
  • Loading branch information
boocmp committed Apr 1, 2024
1 parent b0d7b08 commit 78e5f22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ async def process_audio(input_file: io.BytesIO):
return transcript

@svc.api(input=File(), output=JSON())
async def process_audio(input_file: io.BytesIO):
transcript = await runner_audio_transcriber.transcribe_audio.async_run(input_file.read())
async def process_audio_data(input_file: io.BytesIO):
transcript = await runner_audio_transcriber.transcribe_audio_data.async_run(input_file.read())
return transcript

0 comments on commit 78e5f22

Please sign in to comment.