aws-sdk-cpp: aws sdk cpp sample for transcribe stopped working
Confirm by changing [ ] to [x] below to ensure that it’s a bug:
- [x ] I’ve gone though Developer Guide and API reference
- [ x] I’ve searched for previous similar issues and didn’t find any solution
Describe the bug I am following the transcribe cpp sample from the following site https://aws.amazon.com/blogs/developer/real-time-streaming-transcription-with-the-aws-c-sdk/ two months ago the sample was working and I got after two months to run it again and it stopped. When I debug the app it never goes in CaptureAudio call which is part of the request for OnStreamReady call. Any hints?
SDK version number AWS SDK for C++ with Version:1.8.126
Platform/OS/Hardware/Device Windows10
To Reproduce (observed behavior) https://aws.amazon.com/blogs/developer/real-time-streaming-transcription-with-the-aws-c-sdk/
Expected behavior AS it used to work, to get the audio sent and get the transcription back
Logs/output If applicable, add logs or error output.
To enable logging, set the following system properties:
REMEMBER TO SANITIZE YOUR PERSONAL INFO
options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Trace;
Aws::InitAPI(options)
Additional context Add any other context about the problem here.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 19 (4 by maintainers)
Same issue on Windows 10. We wanted to integrate our Clarity PBX with the Amazon Transcribe engine and had no luck. Hope development will not ignore the problem. I debugged it from different sides building from sources and switching between different HttpClients. It looks like WinHttp/WinInet libs are not switching to HTTP/2, though in code the flag is specified. And from the other side “Transfer-Encoding: chunked” header is not allowed according to HTTP/2. But WinHttp library does not send the request if neither “Content-Length” nor “Transfer-Encoding” is specified. So I hacked the code a bit to start it working. In the documentation, the recommended way is to use WebSockets, but there is no support for it in the SDK. It looks like Amazon does not invest in the project and it is deprecated. Found following duplicate issues: #1743 #1599 #1805 #1747
Hello,
I’m from AWS-SDK-CPP team. I can confirm that we are aware of this issue, it is not abandoned and at some point the article with the sample will be reviewed and updated.
Our last guidance for TranscribeStreaming (and other services relying on HTTP/2 streaming) is to build CPP SDK on Windows with Curl HTTP library instead of WinHTTP (because the version of WinHTTP we are using now does not work with HTTP/2 streaming requests). Please refer to the documentation for Building the AWS SDK for C++ on Windows, expandable sub-section under Prerequisites titled “Building the SDK for Windows with curl”.
We will try to automate testing of this functionality (transcribe streaming client) and improve overall experience, however, we are not able to provide any estimate (of completion) on this issue.
Best regards, Sergey
@ambitslix I’m getting the same error. Any luck bypassing the issue?