C# Class SPIDVerificationAPI_WPF_Sample.VerifySpeakerPage

Interaction logic for VerifySpeakerPage.xaml
Inheritance: System.Windows.Controls.Page
Exibir arquivo Open project: Microsoft/ProjectOxford-ClientSDK

Public Methods

Method Description
VerifySpeakerPage ( ) : Microsoft.ProjectOxford.SpeakerRecognition

Initialization constructor for the verify speaker page

Private Methods

Method Description
initializeRecorder ( ) : void

Initialize NAudio recorder instance

recordBtn_Click_1 ( object sender, RoutedEventArgs e ) : void

Click handler for the record button

setStatus ( string status ) : void

A helper method that's used for logging status at the status bar

stopRecordBtn_Click_1 ( object sender, RoutedEventArgs e ) : void

Click handler for the stop recording button

verifySpeaker ( Stream audioStream ) : void

Verifies the speaker by using the audio

waveIn_DataAvailable ( object sender, NAudio.Wave.WaveInEventArgs e ) : void
waveSource_RecordingStopped ( object sender, NAudio.Wave.StoppedEventArgs e ) : void

A listener called when the recording stops

Method Details

VerifySpeakerPage() public method

Initialization constructor for the verify speaker page
public VerifySpeakerPage ( ) : Microsoft.ProjectOxford.SpeakerRecognition
return Microsoft.ProjectOxford.SpeakerRecognition