[Proposal] SpeechToText #808
Labels
approved
This Proposal has been approved and is ready to be added to the Toolkit
champion
A member of the .NET MAUI Toolkit core team has chosen to champion this feature
documentation approved
help wanted
This proposal has been approved and is ready to be implemented
proposal
A fully fleshed out proposal describing a new feature in syntactic and semantic detail
Projects
Feature name
SpeechToText
Link to discussion
#727
Progress tracker
Summary
Free Speech recognition functionality that is available online and offline.
More details with samples at https://vladislavantonyuk.azurewebsites.net/articles/Speech-recognition-with-.NET-MAUI
Motivation
.NET MAUI has TextToSpeech. It's time to convert SpeechToText
Detailed Design
https://developer.apple.com/documentation/speech
https://developer.android.com/reference/android/speech/SpeechRecognizer
https://learn.microsoft.com/en-us/uwp/api/windows.media.speechrecognition?view=winrt-22621
Usage Syntax
var isAuthorized = await speechToText.RequestPermissions(); if (isAuthorized) { try { RecognitionText = await speechToText.Listen(CultureInfo.GetCultureInfo(Locale?.Language ?? "en-us"), new Progress<string>(partialText => { RecognitionText += partialText + " "; }), cancellationToken); } catch (Exception ex) { await Toast.Make(ex.Message).Show(cancellationToken); } } else { await Toast.Make("Permission denied").Show(cancellationToken); }
Drawbacks
No response
Alternatives
No response
Unresolved Questions
No response
The text was updated successfully, but these errors were encountered: