Compare commits

..

1 Commits

Author SHA1 Message Date
Quan HL ee5a169e91 enable azure language identification mode
Signed-off-by: Quan HL <quan.luuhoang8@gmail.com>
2024-03-07 19:56:57 +07:00
+1 -1
View File
@@ -326,8 +326,8 @@ static void *SWITCH_THREAD_FUNC aws_transcribe_thread(switch_thread_t *thread, v
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "transcribe_thread: Error allocating streamer\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "transcribe_thread: Error allocating streamer\n");
return nullptr; return nullptr;
} }
cb->streamer = pStreamer;
if (!cb->vad) pStreamer->connect(); if (!cb->vad) pStreamer->connect();
cb->streamer = pStreamer;
pStreamer->processData(); //blocks until done pStreamer->processData(); //blocks until done
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "transcribe_thread: stopping cb %p\n", (void *) cb); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "transcribe_thread: stopping cb %p\n", (void *) cb);