Skip to content

Google cloud speech to text : Dealing with high amount of input data in realtime #9935

Answered by coryan
sychopath asked this question in Q&A
Discussion options

You must be logged in to vote

Can you help me understand what exactly is significance of completion queue in your code ?

A google::cloud::CompletionQueue is a wrapper around grpc::CompletionQueue, but with a (I hope) nicer interface. It may be easier to explain the problem these things solve so you can get some context.

Assume you have an application that is using asynchronous operations (RPCs and timers in our case). You may have many asynchronous operations pending at a time. You want to get notified when an operation completes. Those notifications cannot run in the application threads. The whole reason you wanted to use asynchronous operations was to free your threads to do other work. Therefore, you need a pool …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@sychopath
Comment options

@coryan
Comment options

Answer selected by coryan
Comment options

You must be logged in to vote
2 replies
@coryan
Comment options

@lucas-0liveira
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants