PromptStyle 생성자

정의

PromptStyle 클래스의 새 인스턴스를 초기화합니다.

오버로드

PromptStyle()

PromptStyle 클래스의 새 인스턴스를 초기화합니다.

PromptStyle(PromptEmphasis)

PromptStyle 클래스의 새 인스턴스를 초기화하며 스타일의 강조에 대한 설정을 지정합니다.

PromptStyle(PromptRate)

PromptStyle 클래스의 새 인스턴스를 초기화하며 스타일의 말하기 비율에 대한 설정을 지정합니다.

PromptStyle(PromptVolume)

PromptStyle 클래스의 새 인스턴스를 초기화하며 스타일의 말하기 볼륨에 대한 설정을 지정합니다.

PromptStyle()

PromptStyle 클래스의 새 인스턴스를 초기화합니다.

public:
 PromptStyle();
public PromptStyle ();
Public Sub New ()

적용 대상

PromptStyle(PromptEmphasis)

PromptStyle 클래스의 새 인스턴스를 초기화하며 스타일의 강조에 대한 설정을 지정합니다.

public:
 PromptStyle(System::Speech::Synthesis::PromptEmphasis emphasis);
public PromptStyle (System.Speech.Synthesis.PromptEmphasis emphasis);
new System.Speech.Synthesis.PromptStyle : System.Speech.Synthesis.PromptEmphasis -> System.Speech.Synthesis.PromptStyle
Public Sub New (emphasis As PromptEmphasis)

매개 변수

emphasis
PromptEmphasis

스타일 강조에 대한 설정입니다.

설명

Windows의 음성 합성 엔진 중점을 두는 음성 출력의 변형을 지금은 지원 하지 않습니다. 멤버를 사용 하 여 강조를 위해 값을 설정 합니다 PromptEmphasis 열거형 청각적 변하지 합성 된 음성 출력을 생성 합니다.

적용 대상

PromptStyle(PromptRate)

PromptStyle 클래스의 새 인스턴스를 초기화하며 스타일의 말하기 비율에 대한 설정을 지정합니다.

public:
 PromptStyle(System::Speech::Synthesis::PromptRate rate);
public PromptStyle (System.Speech.Synthesis.PromptRate rate);
new System.Speech.Synthesis.PromptStyle : System.Speech.Synthesis.PromptRate -> System.Speech.Synthesis.PromptStyle
Public Sub New (rate As PromptRate)

매개 변수

rate
PromptRate

스타일의 말하는 속도에 대한 설정입니다.

예제

다음 예제에서는 PromptBuilder 개체 및 텍스트 문자열을 추가 합니다. 이 예제에서는 사용 합니다 PromptStyle 생성자에 인수로 StartStyle 주문의 내용을 열거 하는 문자열을 추가 하는 느린 말하는 지정 하는 방법 평가.

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();  

        // Create a PromptBuilder object and add content.  
        PromptBuilder style = new PromptBuilder();  
        style.AppendText("Your order for");  
        style.StartStyle(new PromptStyle(PromptRate.Slow));  
        style.AppendText("one kitchen sink and one faucet");  
        style.EndStyle();  
        style.AppendText("has been confirmed.");  

        // Speak the contents of the SSML prompt.  
        synth.Speak(style);  
      }  

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

적용 대상

PromptStyle(PromptVolume)

PromptStyle 클래스의 새 인스턴스를 초기화하며 스타일의 말하기 볼륨에 대한 설정을 지정합니다.

public:
 PromptStyle(System::Speech::Synthesis::PromptVolume volume);
public PromptStyle (System.Speech.Synthesis.PromptVolume volume);
new System.Speech.Synthesis.PromptStyle : System.Speech.Synthesis.PromptVolume -> System.Speech.Synthesis.PromptStyle
Public Sub New (volume As PromptVolume)

매개 변수

volume
PromptVolume

스타일의 볼륨(크기)에 대한 설정입니다.

예제

다음 예제에서는 합니다 PromptStyle 볼륨 설정을 지정 하는 생성자는는 SpeechSynthesizer 음성 출력에 적용 해야 합니다.

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 that applies different volume settings.  
        PromptBuilder builder = new PromptBuilder();  
        builder.StartStyle(new PromptStyle(PromptVolume.Default));  
        builder.AppendText("This is the default speaking volume.");  
        builder.EndStyle();  
        builder.AppendBreak();  
        builder.StartStyle(new PromptStyle(PromptVolume.ExtraLoud));  
        builder.AppendText("This is the extra-loud speaking volume.");  
        builder.EndStyle();  
        builder.AppendBreak();  
        builder.StartStyle(new PromptStyle(PromptVolume.Medium));  
        builder.AppendText("This is the medium speaking volume.");  
        builder.EndStyle();  

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

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

설명

합니다 Default 에 대 한 설정 PromptVolume 은 동일한 전체 볼륨으로 ExtraLoud입니다. 다른 설정은 전체 볼륨을 기준으로 음성 출력의 볼륨을 줄입니다.

추가 정보

적용 대상