Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix bug in mod_aws_transcribe setting channel count
Browse files Browse the repository at this point in the history
  • Loading branch information
davehorton committed Feb 1, 2021
1 parent 86dc337 commit fe88a26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mod_aws_transcribe/aws_transcribe_glue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class GStreamer {
m_request.SetLanguageCode(LanguageCodeMapper::GetLanguageCodeForName(lang));
m_request.SetMediaEncoding(MediaEncoding::pcm);
m_request.SetEventStreamHandler(m_handler);
m_request.SetNumberOfChannels(channels);
if (channels > 1) m_request.SetNumberOfChannels(channels);

const char* var;
switch_core_session_t* session = switch_core_session_locate(sessionId);
Expand Down Expand Up @@ -202,7 +202,7 @@ class GStreamer {
switch_core_session_t* psession = switch_core_session_locate(m_sessionId.c_str());
if (psession) {

switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "GStreamer::got a transcript to send out %p\n", this);
//switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "GStreamer::got a transcript to send out %p\n", this);
bool isFinal = false;
std::ostringstream s;
s << "[";
Expand Down

0 comments on commit fe88a26

Please sign in to comment.