C# Class SpeechTranslator.MainPage

An empty page that can be used on its own or navigated to within a Frame.
Inheritance: Windows.UI.Xaml.Controls.Page
Show file Open project: dxmakers/disrupt15

Public Properties

Property Type Description
InputLang Language
OutputLang Language
clientSocket StreamSocket
en_lang Language
es_lang Language
synLangStr string

Public Methods

Method Description
InitRecogAndSyn ( ) : void
Initializesynthesizer ( ) : Task
MainPage ( ) : System

Private Methods

Method Description
ConnectHost ( ) : System.Threading.Tasks.Task
ContinuousRecognitionSession_Completed ( SpeechContinuousRecognitionSession sender, SpeechContinuousRecognitionCompletedEventArgs args ) : void
ContinuousRecognitionSession_ResultGenerated ( SpeechContinuousRecognitionSession sender, SpeechContinuousRecognitionResultGeneratedEventArgs args ) : void
InitializeRecognizer ( Language recognizerLanguage ) : System.Threading.Tasks.Task
OnConnection ( StreamSocketListener sender, StreamSocketListenerConnectionReceivedEventArgs args ) : void
ReceivedMsgTextBox_TextChanged ( object sender, TextChangedEventArgs e ) : void
SendDataToHost ( string dataToBeSent ) : void
SpeechRecognizer_HypothesisGenerated ( SpeechRecognizer sender, SpeechRecognitionHypothesisGeneratedEventArgs args ) : void

While the user is speaking, update the textbox with the partial sentence of what's being said for user feedback.

btnClearText_Click ( object sender, RoutedEventArgs e ) : void
btnReConnect_Click ( object sender, RoutedEventArgs e ) : void
btnStartTalk_Click ( object sender, RoutedEventArgs e ) : void
countdownTimer_Tick ( object sender, object e ) : void
dictationTextBox_TextChanged ( object sender, TextChangedEventArgs e ) : void
fakeAudio ( ) : Task
openPrivacySettings_Click ( Windows sender, Windows args ) : void
startListener ( ) : void

Method Details

InitRecogAndSyn() public method

public InitRecogAndSyn ( ) : void
return void

Initializesynthesizer() public method

public Initializesynthesizer ( ) : Task
return Task

MainPage() public method

public MainPage ( ) : System
return System

Property Details

InputLang public static property

public static Language InputLang
return Language

OutputLang public static property

public static Language OutputLang
return Language

clientSocket public property

public StreamSocket clientSocket
return StreamSocket

en_lang public static property

public static Language en_lang
return Language

es_lang public static property

public static Language es_lang
return Language

synLangStr public static property

public static string synLangStr
return string