Exemple #1
0
 /// <summary>
 /// Create new speech recognition options.
 /// </summary>
 /// <param name="speechModel">The language model to use for recognition.</param>
 /// <param name="audioFormat">The audio format.</param>
 /// <param name="language">The language for speech recognition.</param>
 public SpeechRecognitionOptions(SpeechModel speechModel, RecognitionAudioFormat audioFormat, RecognitionLanguage language)
 {
     SpeechModel = speechModel;
     AudioFormat = audioFormat;
     Language    = language;
 }
 /// <summary>
 /// Create new speech recognition session options.
 /// </summary>
 /// <param name="speechModel">The language model to use for recognition.</param>
 /// <param name="audioFormat">The audio format.</param>
 /// <param name="connectionMode">Network security settings.</param>
 public SpeechRecognitionSessionOptions(SpeechModel speechModel, RecognitionAudioFormat audioFormat, ConnectionMode connectionMode = ConnectionMode.Secure)
 {
     SpeechModel    = speechModel;
     AudioFormat    = audioFormat;
     ConnectionMode = connectionMode;
 }