title: RecognitionConfig error with .flac files in google transcribe
body: <p>I am trying to transcribe an audio file with google cloud. Here is my code:</p>
  <pre><code>from google.cloud.speech_v1 import enums
  from google.cloud import speech_v1p1beta1
  import os
  import io
  
  
  def sample_long_running_recognize(local_file_path):
  
      client = speech_v1p1beta1.SpeechClient()
  
      # local_file_path = 'resources/commercial_mono.wav'
  
      # If enabled, each word in the first alternative of each result will be
      # tagged with a speaker tag to identify the speaker.
      enable_speaker_diarization = True
  
      # Optional. Specifies the estimated number of speakers in the conversation.
      diarization_speaker_count = 2
  
      # The language of the supplied audio
      language_code = &quot;en-US&quot;
      config = {
          &quot;enable_speaker_diarization&quot;: enable_speaker_diarization,
          &quot;diarization_speaker_count&quot;: diarization_speaker_count,
          &quot;language_code&quot;: language_code,
          &quot;encoding&quot;: enums.RecognitionConfig.AudioEncoding.FLAC
      }
      with io.open(local_file_path, &quot;rb&quot;) as f:
          content = f.read()
      audio = {&quot;content&quot;: content}
      # audio = {&quot;uri&quot;: storage_uri}
  
  
      operation = client.long_running_recognize(config, audio)
  
      print(u&quot;Waiting for operation to complete...&quot;)
      response = operation.result()
  
      for result in response.results:
          # First alternative has words tagged with speakers
          alternative = result.alternatives[0]
          print(u&quot;Transcript: {}&quot;.format(alternative.transcript))
          # Print the speaker_tag of each word
          for word in alternative.words:
              print(u&quot;Word: {}&quot;.format(word.word))
              print(u&quot;Speaker tag: {}&quot;.format(word.speaker_tag))
  
  
  sample_long_running_recognize('/Users/asi/Downloads/trimmed_3.flac')
  </code></pre>
  <p>I keep getting this error:</p>
  <pre><code>google.api_core.exceptions.InvalidArgument: 400 audio_channel_count `1` in RecognitionConfig must either be unspecified or match the value in the FLAC header `2`.
  </code></pre>
  <p>I cannot figure out what I am doing wrong. I have pretty much copy and pasted this from the google cloud speech API docs. Any advice?</p>