Ejemplo n.º 1
0
        private async void Button_Click_1(object sender, RoutedEventArgs e)
        {
            if (communicationManager.IsRecording)
            {
                await communicationManager.StopRecording();

                Microphone.Source = new BitmapImage(new Uri("ms-appx:///Assets/microphone.png"));
            }
            else
            {
                Microphone.Source = new BitmapImage(new Uri("ms-appx:///Assets/microphone_red.png"));
                await communicationManager.StreamingMicRecognizeAsync(10);
            }
        }