AudioSignalProblem AudioSignalProblem AudioSignalProblem AudioSignalProblem Enum

Определение

Содержит список возможных проблем в звуковом сигнале, поступающем в обработчик распознавания речи.Contains a list of possible problems in the audio signal coming in to a speech recognition engine.

public enum class AudioSignalProblem
public enum AudioSignalProblem
type AudioSignalProblem = 
Public Enum AudioSignalProblem
Наследование
AudioSignalProblemAudioSignalProblemAudioSignalProblemAudioSignalProblem

Поля

None None None None 0

Без проблем с аудиовходом.No problems with audio input.

NoSignal NoSignal NoSignal NoSignal 2

Аудио вход не обнаружен.Audio input is not detected.

TooFast TooFast TooFast TooFast 5

Аудио вход слишком быстрый.Audio input is too fast.

TooLoud TooLoud TooLoud TooLoud 3

Аудио вход слишком громкий.Audio input is too loud.

TooNoisy TooNoisy TooNoisy TooNoisy 1

Слишком сильный фоновый шум в аудио входе.Audio input has too much background noise.

TooSlow TooSlow TooSlow TooSlow 6

Аудио вход слишком медленный.Audio input is too slow.

TooSoft TooSoft TooSoft TooSoft 4

Аудио вход слишком тихий.Audio input is too quiet.

Примеры

В следующем примере определяется обработчик событий, собирающий сведения о AudioSignalProblemOccurred событии.The following example defines an event handler that gathers information about an AudioSignalProblemOccurred event.

  
private SpeechRecognitionEngine sre;  
  
// Initialize the speech recognition engine.  
private void Initialize()  
{  
  sre = new SpeechRecognitionEngine();  
  
  // Add a handler for the AudioSignalProblemOccurred event.  
  sre.AudioSignalProblemOccurred += new EventHandler<AudioSignalProblemOccurredEventArgs>(sre_AudioSignalProblemOccurred);  
}  
  
// Gather information when the AudioSignalProblemOccurred event is raised.  
void sre_AudioSignalProblemOccurred(object sender, AudioSignalProblemOccurredEventArgs e)  
{  
  StringBuilder details = new StringBuilder();  
  
  details.AppendLine("Audio signal problem information:");  
  details.AppendFormat(  
    " Audio level:               {0}" + Environment.NewLine +  
    " Audio position:            {1}" + Environment.NewLine +  
    " Audio signal problem:      {2}" + Environment.NewLine +  
    " Recognition engine audio position: {3}" + Environment.NewLine,  
    e.AudioLevel, e.AudioPosition, e.AudioSignalProblem,  
    e.recoEngineAudioPosition);  
  
  // Insert additional event handler code here.  
}  
  

Комментарии

Свойство получает элемент этого перечисления, SpeechRecognitionEngine когда или SpeechRecognizer вызывает AudioSignalProblemOccurred событие. AudioSignalProblemOccurredEventArgs.AudioSignalProblemThe AudioSignalProblemOccurredEventArgs.AudioSignalProblem property gets a member of this enumeration when the SpeechRecognitionEngine or SpeechRecognizer raises a AudioSignalProblemOccurred event.

Применяется к

Дополнительно