Rss Categories

A Working Example In C++

Reference Number: AA-01517 Views: 4229 0 Rating/ Voters

Included in this documentation is a working example that incorporates streaming audio, SRGS grammars, and Semantic Interpretation. It is written in C++, is based on examples throughout this documentation, and compiles under Visual Studio 2013, although should run on most recent versions. Note that this sample is very simplistic, and does not include the required amount of error-detection reporting functionality would be for a production application.

It consists of six files:

  1. main.cpp -- The entry point into the application.
  2. SimpleRecognizer.h -- Definition of a recognizer, backed by LVSpeechPort.
  3. SimpleRecognizer.cpp -- Implementation file.
  4. AudioStreamer.h -- Definition of an object that mimics streaming by reading an audio file.
  5. AudioStreamer.cpp -- Implementation file.
  6. HeaderClasses.h -- Thread code to help implement AudioStreamer.