PromptBreak PromptBreak PromptBreak PromptBreak Enum


字組界限之間韻律分隔 (分隔) 間隔的列舉值。Enumerates values for intervals of prosodic separation (breaks) between word boundaries.

public enum class PromptBreak
public enum PromptBreak
type PromptBreak = 
Public Enum PromptBreak


ExtraLarge ExtraLarge ExtraLarge ExtraLarge 5

表示特大的分隔。Indicates an extra-large break.

ExtraSmall ExtraSmall ExtraSmall ExtraSmall 1

表示非常小的分隔。Indicates an extra-small break.

Large Large Large Large 4

表示大的分隔。Indicates a large break.

Medium Medium Medium Medium 3

表示中度的分隔。Indicates a medium break.

None None None None 0

表示不會分隔。Indicates no break.

Small Small Small Small 2

表示小的分隔。Indicates a small break.


下列範例會建立一個提示, 其中包含以 break 分隔的兩個句子, 並在電腦上使用預設音訊裝置的提示。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...");  


PromptBreak列舉中的值代表字邊界之間的分隔間隔 (暫停) 範圍。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. 當要求中斷時, 會將這些值的其中一個傳遞至文字轉換語音 (TTS) 引擎, 其中包含這些值與對應的毫秒中斷值之間的對應。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.

None表示字邊界之間沒有暫停, 而且可用來移除通常會發生的中斷。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.