diff --git a/speech/grpc/bin/speech-sample-async.sh b/speech/grpc/bin/speech-sample-async.sh
index 7f801efb0de..be843b1b4e0 100755
--- a/speech/grpc/bin/speech-sample-async.sh
+++ b/speech/grpc/bin/speech-sample-async.sh
@@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-SRC_DIR=$(cd "$(dirname "$0")/.."; pwd)
+SRC_DIR="$( cd "$( dirname "$0" )/.." && pwd )"
java -cp "${SRC_DIR}/target/grpc-sample-1.0-jar-with-dependencies.jar" \
com.examples.cloud.speech.AsyncRecognizeClient "$@"
diff --git a/speech/grpc/bin/speech-sample-streaming.sh b/speech/grpc/bin/speech-sample-streaming.sh
index 2360014bc9f..8fc77e6afaf 100755
--- a/speech/grpc/bin/speech-sample-streaming.sh
+++ b/speech/grpc/bin/speech-sample-streaming.sh
@@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-SRC_DIR=$(cd "$(dirname "$0")/.."; pwd)
+SRC_DIR="$( cd "$( dirname "$0" )/.." && pwd )"
java -cp "${SRC_DIR}/target/grpc-sample-1.0-jar-with-dependencies.jar" \
com.examples.cloud.speech.StreamingRecognizeClient "$@"
diff --git a/speech/grpc/bin/speech-sample-sync.sh b/speech/grpc/bin/speech-sample-sync.sh
index b962a022a28..322d11af2cb 100755
--- a/speech/grpc/bin/speech-sample-sync.sh
+++ b/speech/grpc/bin/speech-sample-sync.sh
@@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-SRC_DIR=$(cd "$(dirname "$0")/.."; pwd)
+SRC_DIR="$( cd "$( dirname "$0" )/.." && pwd )"
java -cp "${SRC_DIR}/target/grpc-sample-1.0-jar-with-dependencies.jar" \
com.examples.cloud.speech.SyncRecognizeClient "$@"
diff --git a/speech/grpc/pom.xml b/speech/grpc/pom.xml
index 7815ea0479c..0e05f3a7f55 100644
--- a/speech/grpc/pom.xml
+++ b/speech/grpc/pom.xml
@@ -123,6 +123,19 @@ limitations under the License.
commons-cli
1.3.1
+
+ com.google.auth
+ google-auth-library-oauth2-http
+ 0.4.0
+
+
+
+ com.google.guava
+ guava-jdk5
+
+
+
com.google.guava
guava
@@ -131,12 +144,7 @@ limitations under the License.
io.grpc
grpc-all
- 0.13.2
-
-
- com.google.oauth-client
- google-oauth-client
- 1.21.0
+ 0.15.0
io.netty
netty-tcnative-boringssl-static
- 1.1.33.Fork14
+ 1.1.33.Fork20
${tcnative.classifier}
com.google.truth
truth
- 0.28
+ 0.29
test
diff --git a/speech/grpc/src/main/java/com/examples/cloud/speech/AsyncRecognizeClient.java b/speech/grpc/src/main/java/com/examples/cloud/speech/AsyncRecognizeClient.java
index c86b4d27f50..7b74cd96d4f 100644
--- a/speech/grpc/src/main/java/com/examples/cloud/speech/AsyncRecognizeClient.java
+++ b/speech/grpc/src/main/java/com/examples/cloud/speech/AsyncRecognizeClient.java
@@ -23,7 +23,6 @@
import com.google.cloud.speech.v1beta1.RecognitionConfig;
import com.google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding;
import com.google.cloud.speech.v1beta1.SpeechGrpc;
-
import com.google.longrunning.GetOperationRequest;
import com.google.longrunning.Operation;
import com.google.longrunning.OperationsGrpc;
@@ -33,7 +32,6 @@
import io.grpc.auth.ClientAuthInterceptor;
import io.grpc.netty.NegotiationType;
import io.grpc.netty.NettyChannelBuilder;
-
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;