PromptBreak 열거형

정의

단어 경계 사이의 비례 구분 간격(나누기)에 대한 값을 열거합니다.

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

필드

Name Description
None 0

중단 없음을 나타냅니다.

ExtraSmall 1

매우 작은 나누기를 나타냅니다.

Small 2

작은 중단을 나타냅니다.

Medium 3

중간 나누기를 나타냅니다.

Large 4

큰 중단을 나타냅니다.

ExtraLarge 5

매우 큰 중단을 나타냅니다.

예제

다음 예제에서는 중단으로 구분된 두 문장이 포함된 프롬프트를 빌드하고 컴퓨터의 기본 오디오 디바이스에 프롬프트를 말합니다.

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.   
        synth.SetOutputToDefaultAudioDevice();  

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

        // Speak the prompt.  
        synth.Speak(builder);  
      }  

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

설명

열거형의 PromptBreak 값은 단어 경계 사이의 구분 간격 범위(일시 중지)를 나타냅니다. 음성 합성 엔진은 간격의 정확한 기간을 결정합니다. 중단이 요청되면 이러한 값 중 하나가 TTS(텍스트 음성 변환) 엔진에 전달됩니다. 이 엔진에는 이러한 값과 해당 밀리초 나누기 값 간의 매핑이 포함됩니다.

None 은 단어 경계 사이에 일시 중지가 없음을 나타내며 일반적으로 발생하는 중단을 제거하는 데 사용할 수 있습니다. 나머지 값은 중단 기간 증가 순서대로 나열됩니다.

적용 대상

추가 정보