aws / aws-sdk-cpp

AWS SDK for C++
Apache License 2.0
1.97k stars 1.06k forks source link

Partial results callbacks not triggering with TranscribeStreamingServiceClient #1555

Closed Tudi closed 2 years ago

Tudi commented 3 years ago

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug I tried to follow through this tutorial : https://aws.amazon.com/blogs/developer/real-time-streaming-transcription-with-the-aws-c-sdk/ My expectations are to receive partial results as I use the microphone. I do not get partial results. This code needs modifications in order to get partial results ( maybe even final ones ? ). Please update the code or provide an alternative for live transcribing. My final goal is to have speaker labels working, but if I close the audio stream, speaker labels seem to reset or get reassigned randomly(speaker 1 becomes speaker 0).

SDK version number 1.8.114

Platform/OS/Hardware/Device Windows 10

To Reproduce (observed behavior) Follow the instructions from here : https://aws.amazon.com/blogs/developer/real-time-streaming-transcription-with-the-aws-c-sdk/ when starting the application, nothing is printed on the console until you close the microphone

Expected behavior When talking into the microphone, periodically, partial(final) results are printed on the console

Logs/output No special setup is required.

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 None

Tudi commented 3 years ago

Just to clear up doubt that I'm unable to run the test. Also tested Java, Javascript and python version. All 3 work fine. It's only c++ code that does not work asynchronously. Right now I'm integrating the python implementation into the c++ application. It's a temporary workaround until a solution is provided for the c++ version.

Tudi commented 3 years ago

Attaching 2 logs. Maybe helps debugging as I was told this issue is not present in MAC version. Maybe there is some specific setup I have that makes this behavior exist. Windows 10 ? Visual studio 2019 ? Windows SDK version ? Any details ? Help ?

aws_sdk_2021-01-20-20_1.log

aws_sdk_2021-01-20-20.log

wps132230 commented 3 years ago

Hi there. That's the limitation of Http libraries (WinHttp, WinINet) we are using on Windows. Http/2 multiplexing is not fully supported, then you will not get the response until the stream closes. As the short term workaround, we may test libcurl on Windows to see if it works for this case.

github-actions[bot] commented 2 years ago

Greetings! Sorry to say but this is a very old issue that is probably not getting as much attention as it deservers. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to open a new one.