AudioSignalProblem AudioSignalProblem AudioSignalProblem AudioSignalProblem Enum

Definición

Contiene una lista de los posibles problemas en la señal de audio que entra en un motor de reconocimiento de voz.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
Herencia
AudioSignalProblemAudioSignalProblemAudioSignalProblemAudioSignalProblem

Campos

None None None None 0

Sin problemas con la entrada de audio.No problems with audio input.

NoSignal NoSignal NoSignal NoSignal 2

La entrada de audio no se detecta.Audio input is not detected.

TooFast TooFast TooFast TooFast 5

La entrada de audio es demasiado rápida.Audio input is too fast.

TooLoud TooLoud TooLoud TooLoud 3

La entrada de audio es demasiado alta.Audio input is too loud.

TooNoisy TooNoisy TooNoisy TooNoisy 1

La entrada de audio tiene demasiado ruido de fondo.Audio input has too much background noise.

TooSlow TooSlow TooSlow TooSlow 6

La entrada de audio es demasiado lenta.Audio input is too slow.

TooSoft TooSoft TooSoft TooSoft 4

La entrada de audio es demasiado baja.Audio input is too quiet.

Ejemplos

En el ejemplo siguiente se define un controlador de eventos que recopila información AudioSignalProblemOccurred sobre un evento.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.  
}  

Comentarios

La AudioSignalProblemOccurredEventArgs.AudioSignalProblem propiedad obtiene un miembro de esta enumeración SpeechRecognitionEngine cuando o SpeechRecognizer genera un AudioSignalProblemOccurred evento.The AudioSignalProblemOccurredEventArgs.AudioSignalProblem property gets a member of this enumeration when the SpeechRecognitionEngine or SpeechRecognizer raises a AudioSignalProblemOccurred event.

Se aplica a

Consulte también: