From 5c90700d8693fabbcb392aaeb1e8758e8f1699d5 Mon Sep 17 00:00:00 2001 From: Jerjou Cheng Date: Thu, 31 Mar 2016 16:08:43 -0700 Subject: [PATCH] Update speech api scopes --- .../cloud/speech/grpc/demos/NonStreamingRecognizeClient.java | 2 +- .../com/google/cloud/speech/grpc/demos/RecognizeClient.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/speech/grpc/src/main/java/com/google/cloud/speech/grpc/demos/NonStreamingRecognizeClient.java b/speech/grpc/src/main/java/com/google/cloud/speech/grpc/demos/NonStreamingRecognizeClient.java index 3e413a71fa3..d7b7d70af08 100644 --- a/speech/grpc/src/main/java/com/google/cloud/speech/grpc/demos/NonStreamingRecognizeClient.java +++ b/speech/grpc/src/main/java/com/google/cloud/speech/grpc/demos/NonStreamingRecognizeClient.java @@ -68,7 +68,7 @@ public class NonStreamingRecognizeClient { Logger.getLogger(NonStreamingRecognizeClient.class.getName()); private static final List OAUTH2_SCOPES = - Arrays.asList("https://www.googleapis.com/auth/xapi.zoo"); + Arrays.asList("https://www.googleapis.com/auth/cloud-platform"); private final String host; private final int port; diff --git a/speech/grpc/src/main/java/com/google/cloud/speech/grpc/demos/RecognizeClient.java b/speech/grpc/src/main/java/com/google/cloud/speech/grpc/demos/RecognizeClient.java index e6cd8dd737b..16ccc7caa65 100644 --- a/speech/grpc/src/main/java/com/google/cloud/speech/grpc/demos/RecognizeClient.java +++ b/speech/grpc/src/main/java/com/google/cloud/speech/grpc/demos/RecognizeClient.java @@ -78,7 +78,7 @@ public class RecognizeClient { private final SpeechGrpc.SpeechStub stub; private static final List OAUTH2_SCOPES = - Arrays.asList("https://www.googleapis.com/auth/xapi.zoo"); + Arrays.asList("https://www.googleapis.com/auth/cloud-platform"); /** * Construct client connecting to Cloud Speech server at {@code host:port}.