Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS SDK CPP. Transcribe streaming doesn't work #3086

Closed
sem32 opened this issue Aug 24, 2024 · 3 comments
Closed

AWS SDK CPP. Transcribe streaming doesn't work #3086

sem32 opened this issue Aug 24, 2024 · 3 comments
Labels
bug This issue is a bug. p2 This is a standard priority issue pending-release This issue will be fixed by an approved PR that hasn't been released yet.

Comments

@sem32
Copy link

sem32 commented Aug 24, 2024

Describe the bug

Hi!

The issue: transcribe streaming doesn't work with CRTHttpClient for SDK's version more than 1.11.252. For 1.11.252 it's ok.

Why we are using CRT HTTP CLIENT?
We are using it because we have a performance issue when we use lib CURL.

With the version of CURL 7.87 the quality of the transcribe was good, but CPU usage was too high (every 3-5 sec spike of CPU usage to 100%). For one transcribing process is more or less OK, but for 30 is not).
With the version of CURL 7.88 we faced an issue with the quality of the transcribe (it looks like the CURL library does some optimization), but we had no performance issue.
We have no issue with the quality and performance with the CRT http client, so we have to use it.

After we've update the SDK to newest version, the SDK stopped to work.

After this logs, the connection is closing:

Message received, the expected length of the message is: 188 bytes, and the expected length of the header is: 97 bytes

I found the similar issue but it was in 2021
#1806

logs.txt

Expected Behavior

I can use CRTHttpClient for new versions of SDK with no issue for realtime transcribe.

Current Behavior

No way use CRTHttpClient for new versions of SDK. The session is closing, can write audio event.

Reproduction Steps

git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp.git
cd aws-sdk-cpp
git checkout --recurse-submodules 1.11.390
mkdir sdk_build && cd sdk_build
cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/usr/local/ -DCMAKE_INSTALL_PREFIX=/usr/local/ -DBUILD_ONLY="transcribestreaming;polly" -DUSE_CRT_HTTP_CLIENT=1
make && sudo make install

Use libs for realtime transcribe. Can't WriteAudioEvent, got an error.

Possible Solution

No response

Additional Information/Context

No response

AWS CPP SDK version used

1.11.390

Compiler and Version used

gcc 12.2.0

Operating System and version

Debian 12

@sem32 sem32 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 24, 2024
@jmklix
Copy link
Member

jmklix commented Aug 29, 2024

We are working on some PR's to fix this: awslabs/aws-crt-cpp#658, #3097

@jmklix jmklix added pending-release This issue will be fixed by an approved PR that hasn't been released yet. p2 This is a standard priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Aug 29, 2024
@jmklix
Copy link
Member

jmklix commented Sep 4, 2024

The PR has been merged and is now in the latest release. Please update and let us know if you have any other problems with this sdk

@jmklix jmklix closed this as completed Sep 4, 2024
Copy link

github-actions bot commented Sep 4, 2024

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p2 This is a standard priority issue pending-release This issue will be fixed by an approved PR that hasn't been released yet.
Projects
None yet
Development

No branches or pull requests

2 participants