question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception after upgrading to Google.Cloud.Speech.V1 1.3.0

See original GitHub issue

After upgrading from Google.Cloud.Speech.V1 1.2.0 to Google.Cloud.Speech.V1 1.3.0 our projects raises an exception

“Retry cannot be used in a bidirectional streaming method”.

Exception is thrown while creating recognition on method "StreamingRecognize:

GoogleCredential googleCredential = GoogleCredential.FromJson("....");
var channel = new Grpc.Core.Channel(SpeechClient.DefaultEndpoint.Host, googleCredential.ToChannelCredentials());
speech = SpeechClient.Create(channel);
streamingCall = speech.StreamingRecognize();

Full exception message: System.InvalidOperationException: Retry cannot be used in a bidirectional streaming method. at Google.Api.Gax.Grpc.ApiBidirectionalStreamingCall`2.Call(CallSettings perCallCallSettings) in T:\src\github\gax-dotnet\releasebuild\Google.Api.Gax.Grpc\ApiBidirectionalStreamingCall.cs:line 67 at Google.Cloud.Speech.V1.SpeechClientImpl.StreamingRecognize(CallSettings callSettings, BidirectionalStreamingSettings streamingSettings) in T:\src\github\google-cloud-dotnet\releasebuild\apis\Google.Cloud.Speech.V1\Google.Cloud.Speech.V1\SpeechClient.g.cs:line 728

Please help, we cant upgrade to this new API 😦

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
jskeetcommented, Dec 16, 2019

Right, I’m glad you found the bug. I’m hoping to release 1.3.1 today with the retry settings removed so you don’t need to specify the settings.

0reactions
jskeetcommented, Dec 16, 2019

This is now fixed in Google.Cloud.Speech.V1 version 1.3.1 - thanks again for reporting it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Class SpeechClient (1.3.4) | Python client library
Performs synchronous speech recognition: receive results after all audio has been sent and processed. .. rubric:: Example. from google.cloud ...
Read more >
Error messages | Cloud Speech-to-Text Documentation
The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable ...
Read more >
ModuleNotFoundError using Google Cloud Speech
I am using OpenSuse Tumblebeed. So, I tried the following commands to install google-cloud: sudo pip install --upgrade google-cloud sudo pip3 ...
Read more >
Call to Google Cloud Speech API doesn't return anything ...
I am trying to use Google.Cloud.Speech.V1 (client libraries for Google Cloud Speech API), and I am using this slightly modified version of ...
Read more >
google-cloud-speech
Cloud Speech API: enables easy integration of Google speech recognition technologies into developer applications. Send audio and receive a text ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found