PlayAudioFromDisk (Communications Workflow 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.
This sample speech workflow application demonstrates how to use an audio file to set a prompt.
Use the PromptBuilder.AppendAudio method to add audio from a file.
Use the PromptBuilder.AppendAudio method to play alternate text using text-to-speech if a specified audio file is not available.
Use the AppDomain.BaseDirectory property to build a URI from a base directory.
See the prerequisites list in Walkthrough: Debugging a Communications Workflow Application.
To build and debug the sample application
Create a debugging environment. For information about creating a debugging environment, see Establish Accounts on Office Communications Server.
In the UCMA v2.0 SDK\Samples\Workflow directory, open PlayAudioFromDisk.
Debug the PlayAudioFromDisk speech workflow application. For information about debugging this application, see Walkthrough: Debugging a Communications Workflow Application.