C# Class SPIDVerificationAPI_WPF_Sample.EnrollPage

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

Public Methods

Method Description
EnrollPage ( ) : Microsoft.ProjectOxford.SpeakerRecognition

Creates a new EnrollPage

Private Methods

Method Description
createProfile ( ) : Task

Creates a speaker profile

enrollSpeaker ( Stream audioStream ) : void

Enrolls the audio of the speaker

initializeRecorder ( ) : void

Initialize NAudio recorder instance

initializeSpeaker ( ) : void

Initialize the speaker information

record_Click ( object sender, RoutedEventArgs e ) : void

Click handler for the record button

refreshPhrases ( ) : void

Refresh the list of phrases

resetBtn_Click ( object sender, RoutedEventArgs e ) : void

Remove current speaker Id

setStatus ( string status ) : void

Helper method to set the status bar message

setUserPhrase ( string phrase ) : void

Persists the verification phrase of the speaker

stopRecord_Click ( object sender, RoutedEventArgs e ) : void

Click handler for the record button

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

EnrollPage() public method

Creates a new EnrollPage
public EnrollPage ( ) : Microsoft.ProjectOxford.SpeakerRecognition
return Microsoft.ProjectOxford.SpeakerRecognition