Share via


How to: Set TTS Volume

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.

Set the text-to-speech (TTS) prompt volume to synchronize the volume of recorded .wav prompts and system-generated TTS prompts in a Speech Server voice response application.

To set the prompt volume for a speech project, normalize recorded prompt volume and then set the TTS volume to match the volume of the recorded prompts. For information about normalizing the volume of recorded prompts, see How to: Normalize Prompt Volume.

Matching TTS Volume to a .wav File Index

In the following procedure, a single recorded prompt is used as an index when setting the volume for all TTS prompts in the project. This recorded prompt is referred to as the index prompt.

The index prompt must be recorded in a .wav file. For more information, see How to: Record Transcriptions.

To set the TTS prompt volume

  1. In Microsoft Visual Studio 2005, open the prompt database that contains the index prompt.

    For more information, see How to: Open a Prompt Database.

  2. Copy the text of an extraction from the index prompt.

  3. In Solution Explorer, right-click the speech workflow file, and then click View Designer.

  4. Click the design surface, which sets the focus to the SpeechSequentialWorkflowActivity class.

  5. In the Properties window, select the TtsVolume property, and then click the browse (...) button.

  6. In the text box at the bottom of the dialog box, paste the text copied in step 2.

    This extraction text plays from the .wav file.

  7. Add additional text not contained in a prompt extraction.

    This additional text plays as TTS.

  8. Click Play, and then listen to the recorded prompt and TTS text played together.

    Note how the volume of the recorded prompt and the TTS prompt compare.

  9. Adjust TTS Volume, and then click Play.

  10. Repeat as needed.

  11. Click the design surface to close the dialog box.

See Also

Other Resources

Prompt Projects and Databases
Tutorials and Walkthroughs
Managed Code Sample Applications