C# Class Planetarium_Plugin.SpeechRecognition

Datei anzeigen Open project: coachlab/Planetarium-PowerPoint-Plugin Class Usage Examples

Public Methods

Method 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

Method Description
StartSlideShow ( ) : void
sr_SpeechRecognized ( object sender, SpeechRecognizedEventArgs e ) : void

SpeechRecognition event

Method Details

BuildGrammar() public method

Buils the grammar for the dictionary
public BuildGrammar ( ) : Grammar
return Grammar

Pause() public method

Pause speech
public Pause ( ) : void
return void

ShowSlides() public method

Display the slides
public ShowSlides ( string phrase ) : void
phrase string the phrase that is spoken.
return void

SpeechRecognition() public method

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
return System

Start() public method

Start the speech recognition
public Start ( ) : void
return void

Stop() public method

Stop speech recognition
public Stop ( ) : void
return void

getGrammar() public method

Converts words to grammar format
public getGrammar ( ) : Choices
return Choices