Skip to content

Commit

Permalink
fix to transcribe endpoint (removed speech profiles)
Browse files Browse the repository at this point in the history
  • Loading branch information
josancamon19 committed Aug 2, 2024
1 parent 9ef8fed commit e56cc9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/routers/transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ async def websocket_endpoint(
await websocket.accept()
transcript_socket2 = None
try:
single_file_path, duration = get_speaker_audio_file(uid) if language == 'en' else (None, 0)
remove_downloaded_samples(uid)
# single_file_path, duration = get_speaker_audio_file(uid) if language == 'en' else (None, 0)
# remove_downloaded_samples(uid)
single_file_path, duration = None, 0
transcript_socket = await process_audio_dg(websocket, language, sample_rate, codec, channels,
preseconds=duration)
if duration:
Expand Down

0 comments on commit e56cc9f

Please sign in to comment.