title: Converting Large .wav files to .txt files using MsAzure Quick Start sample codes [Continuous Recognition]
body: <p>As suggested in the Stack Overflow I have tried converting a large .wav file into an accurate .txt file by using the sample codes in the Quick Start of MsAzure Speech to text option. It is giving me error.</p>
  <p>The Code I wrote are</p>
  <pre><code>audio_config = speechsdk.audio.AudioConfig(filename=&quot;FilePath//Audio.wav&quot;)
  speech_recognizer = speechsdk.SpeechRecognizer(speech_config=speech_config, audio_config=audio_config)
  
  done = False
  
  def stop_cb(evt):
      print('CLOSING on {}'.format(evt))
      speech_recognizer.stop_continuous_recognition()
      nonlocal done
      done = True
  
  (Here I got an error 
  File &quot;&lt;ipython-input-10-1ca5a9053d2a&gt;&quot;, line 5
      nonlocal done
      ^
  SyntaxError: no binding for nonlocal 'done' found
  
  
  speech_recognizer.recognizing.connect(lambda evt: print('RECOGNIZING: {}'.format(evt)))
  speech_recognizer.recognized.connect(lambda evt: print('RECOGNIZED: {}'.format(evt)))
  speech_recognizer.session_started.connect(lambda evt: print('SESSION STARTED: {}'.format(evt)))
  speech_recognizer.session_stopped.connect(lambda evt: print('SESSION STOPPED {}'.format(evt)))
  speech_recognizer.canceled.connect(lambda evt: print('CANCELED {}'.format(evt)))
  
  speech_recognizer.session_stopped.connect(stop_cb)
  speech_recognizer.canceled.connect(stop_cb)
  
  import time
  speech_recognizer.start_continuous_recognition()
  while not done:
      time.sleep(.5)
  </code></pre>
  <p>Can anybody suggest me any correction to where I got wrong? Also I would appreciate if any body can suggest any different method on the MsAzure to convert large .wav files to .txt.</p>