Skip to content

Commit

Permalink
Added process_audio_2.
Browse files Browse the repository at this point in the history
  • Loading branch information
boocmp committed Apr 1, 2024
1 parent 55e7105 commit 89595df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/runners/audio_transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ def transcribe_audio(self, audio):
for segment in segments:
text += segment.text

return { "text" : text }
return { "text" : "test " + text }
5 changes: 5 additions & 0 deletions src/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@
async def process_audio(input_file: io.BytesIO):
transcript = await runner_audio_transcriber.transcribe_audio.async_run(input_file)
return transcript

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

0 comments on commit 89595df

Please sign in to comment.