Azure-Samples / Cognitive-Speech-STT-Windows

Windows SDK for the Microsoft Speech-to-Text API, part of Cognitive Services
https://www.microsoft.com/cognitive-services/en-us/speech-api
Other
112 stars 89 forks source link

Want to add your own .wav files? #46

Closed KBaroni closed 6 years ago

KBaroni commented 6 years ago

This is a terrific sample but i wanted to use my own .wav files and found out that i needed to do all of the following 3 actions:

  1. Add the .wav file(s) to the Samples/SpeechRecognitionService/Example folder
  2. Modify the app.config file for the value for the "LongWaveFile" key to the name of the .wav file
  3. Add the .wav file(s) to the Debug folder (..bin/x64/Debug). If you fail to do this, app will crash with 'System.IO.FileNotFoundException occurred'
KBaroni commented 6 years ago

Or.... once you've added the WAV file to the VS project, right-click on it and choose properties. Make sure copy to output directory is set to either Copy Always or Copy if Newer