Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PromptBreak Enumeration

Enumerates values for intervals of prosodic separation (breaks) between word boundaries.

Namespace:  System.Speech.Synthesis
Assembly:  System.Speech (in System.Speech.dll)

Public Enumeration PromptBreak

Member nameDescription
ExtraLargeIndicates an extra-large break.
ExtraSmallIndicates an extra-small break.
LargeIndicates a large break.
MediumIndicates a medium break.
NoneIndicates no break.
SmallIndicates a small break.

The values in the PromptBreak enumeration represent a range of separation intervals (pauses) between word boundaries. The speech synthesis engine determines the exact duration of the interval. When a break is requested, one of these values is passed to the text-to-speech (TTS) engine, which contains a mapping between these values and the corresponding millisecond break values.

The value None represents the absence of a pause between word boundaries and can be used to remove a break where one would normally occur. The remaining values are listed in order of increasing durations for breaks.

The following example builds a prompt containing two sentences separated by a break and speaks the prompt to the default audio device on the computer.

using System;
using System.Speech.Synthesis;

namespace SampleSynthesis
  class Program
    static void Main(string[] args)

      // Initialize a new instance of the SpeechSynthesizer.
      using (SpeechSynthesizer synth = new SpeechSynthesizer())

        // Configure the audio output. 

        // Build a prompt with two sentences separated by a break.
        PromptBuilder builder = new PromptBuilder(
          new System.Globalization.CultureInfo("en-US"));
          "Tonight's movie showings in theater A are at 5:45, 7:15, and 8:45.");
          "Tonight's movie showings in theater B are at 5:15, 7:30, and 9:15.");

        // Speak the prompt.

      Console.WriteLine("Press any key to exit...");

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft