From 2a08e199cf1b1a0491f0f023817374c6c9ce7731 Mon Sep 17 00:00:00 2001 From: Jisha Abubaker Date: Mon, 31 Jul 2017 16:05:20 -0700 Subject: [PATCH 1/2] fixing import paths --- .../src/main/java/com/example/speech/Recognize.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/speech/cloud-client/src/main/java/com/example/speech/Recognize.java b/speech/cloud-client/src/main/java/com/example/speech/Recognize.java index d1935d4482e..67ddc1b6cf2 100644 --- a/speech/cloud-client/src/main/java/com/example/speech/Recognize.java +++ b/speech/cloud-client/src/main/java/com/example/speech/Recognize.java @@ -16,9 +16,9 @@ package com.example.speech; -import com.google.api.gax.grpc.ApiStreamObserver; -import com.google.api.gax.grpc.OperationFuture; -import com.google.api.gax.grpc.StreamingCallable; +import com.google.api.gax.rpc.ApiStreamObserver; +import com.google.api.gax.rpc.OperationFuture; +import com.google.api.gax.rpc.StreamingCallable; import com.google.cloud.speech.v1.LongRunningRecognizeMetadata; import com.google.cloud.speech.v1.LongRunningRecognizeResponse; import com.google.cloud.speech.v1.RecognitionAudio; @@ -33,8 +33,8 @@ import com.google.cloud.speech.v1.StreamingRecognizeRequest; import com.google.cloud.speech.v1.StreamingRecognizeResponse; import com.google.common.util.concurrent.SettableFuture; +import com.google.longrunning.Operation; import com.google.protobuf.ByteString; - import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; @@ -169,7 +169,7 @@ public static void asyncRecognizeFile(String fileName) throws Exception, IOExcep .build(); // Use non-blocking call for getting file transcription - OperationFuture response = + OperationFuture response = speech.longRunningRecognizeAsync(config, audio); while (!response.isDone()) { System.out.println("Waiting for response..."); @@ -208,7 +208,7 @@ public static void asyncRecognizeGcs(String gcsUri) throws Exception, IOExceptio .build(); // Use non-blocking call for getting file transcription - OperationFuture response = + OperationFuture response = speech.longRunningRecognizeAsync(config, audio); while (!response.isDone()) { System.out.println("Waiting for response..."); From c30e08ff97a0f28f0f817e0512aba95ca59cca9d Mon Sep 17 00:00:00 2001 From: Jisha Abubaker Date: Mon, 31 Jul 2017 16:09:22 -0700 Subject: [PATCH 2/2] updating to use google-cloud-speech lib vs google-cloud (all client libs) --- speech/cloud-client/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/speech/cloud-client/pom.xml b/speech/cloud-client/pom.xml index 2b62088709e..b7a9fdcdbd0 100644 --- a/speech/cloud-client/pom.xml +++ b/speech/cloud-client/pom.xml @@ -50,8 +50,8 @@ com.google.cloud - google-cloud - 0.21.0-alpha + google-cloud-speech + 0.21.1-alpha