diff --git a/backend/routers/transcribe.py b/backend/routers/transcribe.py index b001bcf58..dd238e938 100644 --- a/backend/routers/transcribe.py +++ b/backend/routers/transcribe.py @@ -205,6 +205,7 @@ def stream_audio(audio_buffer): file_path, duration = None, 0 if language == 'en' and (codec == 'opus' or codec == 'pcm16') and include_speech_profile: file_path = get_profile_audio_if_exists(uid) + print(f'deepgram-obns3: file_path {file_path}') duration = AudioSegment.from_wav(file_path).duration_seconds + 5 if file_path else 0 # Deepgram @@ -219,6 +220,7 @@ def stream_audio(audio_buffer): stream_transcript, speech_profile_stream_id, language, sample_rate, deepgram_codec_value, channels ) + print(f'deepgram-obns3: send_initial_file_path > deepgram_socket {deepgram_socket}') await send_initial_file_path(file_path, deepgram_socket) elif stt_service == STTService.soniox: soniox_socket = await process_audio_soniox( @@ -292,6 +294,8 @@ async def receive_audio(dg_socket1, dg_socket2, soniox_socket, speechmatics_sock print("WebSocket disconnected") except Exception as e: print(f'Could not process audio: error {e}') + print(f'deepgram-obns3: receive_audio > dg_socket1 {dg_socket1}') + print(f'deepgram-obns3: receive_audio > dg_socket2 {dg_socket2}') websocket_close_code = 1011 finally: websocket_active = False