HelloWorld (Managed Code Sample)
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
The HelloWorld sample is an extremely simple voice response application. When the sample starts, it plays a short prompt and then disconnects.
Featured Highlights
- Using a StatementActivity to play a prompt
- Playing a prompt using text-to-speech (TTS)
Running the Sample
To run the sample
In the Samples\Workflow\HelloWorld\ directory of the Speech Server installation directory, open the sample solution file.
To start debugging, press F5.
In the Voice Response Debugging Window dialog box, click the SIP Phone tab, enter any numbers in the Called Party and Calling Party boxes, and then click Call.
The sample plays a short prompt that says "Hello, World" using TTS.
Remarks
You might notice that the prompt database for the HelloWorld sample is empty. If you attempt to validate the prompt in this sample, the validation process produces an error. This is by design because the sample is intended to play its prompt using TTS. The sample otherwise runs correctly.
This code sample is intended to demonstrate specific Speech Server features. It does not necessarily reflect best practices with respect to security and privacy. You should carefully review any code that you deploy in production for potential security risks and privacy issues.