I've used the code following to connect google cloud speech, but I haven't receive a response. Please show me how to connect to google cloud speech using gRPC C++.
using google::cloud::speech::v1beta1::Speech;
class GoogleClient {
public:
GoogleClient(std::shared_ptr<Channel> channel)
: stub_(Speech::NewStub(channel)) {}
private:
std::unique_ptr<Speech::Stub> stub_;
};
int main(int argc, char** argv) {
auto channel_creds = grpc::GoogleDefaultCredentials();
GoogleClient ggclient(channel);
..
}
Thanks.