C# Класс Planetarium_Plugin.SpeechRecognition

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
StartSlideShow ( ) : void
sr_SpeechRecognized ( object sender, SpeechRecognizedEventArgs e ) : void

SpeechRecognition event

Описание методов

BuildGrammar() публичный Метод

Buils the grammar for the dictionary
public BuildGrammar ( ) : Grammar
Результат Grammar

Pause() публичный Метод

Pause speech
public Pause ( ) : void
Результат void

ShowSlides() публичный Метод

Display the slides
public ShowSlides ( string phrase ) : void
phrase string the phrase that is spoken.
Результат void

SpeechRecognition() публичный Метод

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
Результат System

Start() публичный Метод

Start the speech recognition
public Start ( ) : void
Результат void

Stop() публичный Метод

Stop speech recognition
public Stop ( ) : void
Результат void

getGrammar() публичный Метод

Converts words to grammar format
public getGrammar ( ) : Choices
Результат Choices