PromptBreak 열거형

정의

단어 경계 간의 운율 분리(나누기)의 간격에 대한 값을 열거합니다.

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

필드

ExtraLarge 5

매우 큰 나누기를 나타냅니다.

ExtraSmall 1

아주 작은 나누기를 나타냅니다.

Large 4

큰 나누기를 나타냅니다.

Medium 3

보통 나누기를 나타냅니다.

None 0

나누기 없음을 나타냅니다.

Small 2

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

예제

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

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 없을 경우 일시 중지 단어 경계 간의 나타내며 하나는 일반적으로 발생 나누기를 제거 하려면 사용할 수 있습니다. 나머지 값은 잠기는 나누기에 대 한 순서 대로 나열 됩니다.

적용 대상

추가 정보