C# Class Planetarium_Plugin.SpeechRecognition

Afficher le fichier Open project: coachlab/Planetarium-PowerPoint-Plugin Class Usage Examples

Méthodes publiques

Méthode Description
BuildGrammar ( ) : Grammar

Buils the grammar for the dictionary

Pause ( ) : void

Pause speech

ShowSlides ( string phrase ) : void

Display the slides

SpeechRecognition ( SpeechRecognitionEngine sr, List words, string location, string dictionaryName, decimal accuracy ) : System

Constructor method

Start ( ) : void

Start the speech recognition

Stop ( ) : void

Stop speech recognition

getGrammar ( ) : Choices

Converts words to grammar format

Private Methods

Méthode Description
StartSlideShow ( ) : void
sr_SpeechRecognized ( object sender, SpeechRecognizedEventArgs e ) : void

SpeechRecognition event

Method Details

BuildGrammar() public méthode

Buils the grammar for the dictionary
public BuildGrammar ( ) : Grammar
Résultat Grammar

Pause() public méthode

Pause speech
public Pause ( ) : void
Résultat void

ShowSlides() public méthode

Display the slides
public ShowSlides ( string phrase ) : void
phrase string the phrase that is spoken.
Résultat void

SpeechRecognition() public méthode

Constructor method
public SpeechRecognition ( SpeechRecognitionEngine sr, List words, string location, string dictionaryName, decimal accuracy ) : System
sr SpeechRecognitionEngine Receives a SpeechRegonition obj.
words List
location string Location.
dictionaryName string The dictionary name.
accuracy decimal
Résultat System

Start() public méthode

Start the speech recognition
public Start ( ) : void
Résultat void

Stop() public méthode

Stop speech recognition
public Stop ( ) : void
Résultat void

getGrammar() public méthode

Converts words to grammar format
public getGrammar ( ) : Choices
Résultat Choices