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}.