Ejemplo n.º 1
0
        private async void Transcript(object parameter)
        {
            try
            {
                IsEditableEnabled = false;
                TranscriptMessage = String.Empty;
                ErrorMessage      = String.Empty;
                SpeechResponse response = null;

                if (File != null)
                {
                    response = await _speechService.Send(File);
                }

                TranscriptMessage = response != null ? response.TranscriptText : String.Empty;
            }
            catch (Exception ex)
            {
                HandleException(ex);
            }
            finally
            {
                IsEditableEnabled = true;
            }
        }
Ejemplo n.º 2
0
        public void SpeechSend(SpeechData data)
        {
            if (data == null)
            {
                return;
            }

            speechService?.Send(data);
        }