code: public final RecognizeResponse recognize(RecognitionConfig config, RecognitionAudio audio) {
  
      RecognizeRequest request =
          RecognizeRequest.newBuilder().setConfig(config).setAudio(audio).build();
      return recognize(request);
    }
docs: Performs synchronous speech recognition: receive results after all audio has been sent and
  processed.
  
  <p>Sample code:
  
  <pre><code>
  try (SpeechClient speechClient = SpeechClient.create()) {
  RecognitionConfig.AudioEncoding encoding = RecognitionConfig.AudioEncoding.FLAC;
  int sampleRateHertz = 44100;
  String languageCode = "en-US";
  RecognitionConfig config = RecognitionConfig.newBuilder()
  .setEncoding(encoding)
  .setSampleRateHertz(sampleRateHertz)
  .setLanguageCode(languageCode)
  .build();
  String uri = "gs://bucket_name/file_name.flac";
  RecognitionAudio audio = RecognitionAudio.newBuilder()
  .setUri(uri)
  .build();
  RecognizeResponse response = speechClient.recognize(config, audio);
  }
  </code></pre>
  
  @param config &#42;Required&#42; Provides information to the recognizer that specifies how to
  process the request.
  @param audio &#42;Required&#42; The audio data to be recognized.
  @throws com.google.api.gax.rpc.ApiException if the remote call fails