[Speech To Text]The problem of speech recognition is unavailable #1380
-
I try three phones of android at least which version is 12 and13 and all of them has the same problem that speech recognition is not available. private async void Listen()
{
var isGranted = await speechToText.RequestPermissions(cancellationToken);
if (!isGranted)
{
await Toast.Make("Permission not granted").Show(CancellationToken.None);
return;
}
var recognitionResult = await speechToText.ListenAsync(
CultureInfo.GetCultureInfo("en-US"),
new Progress<string>(partialText =>
{
RecognitionText += partialText + " ";
}), cancellationToken);
if (recognitionResult.IsSuccessful)
{
RecognitionText = recognitionResult.Text;
}
else
{
await Toast.Make(recognitionResult.Exception?.Message ?? "Unable to recognize speech").Show(CancellationToken.None);
}
} {SpeechToTextResult { IsSuccessful = False, Text = , Exception = Microsoft.Maui.ApplicationModel.FeatureNotSupportedException: Speech Recognition is not available on this device |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The exception message indicates that speech to text isn't supported on the device. Can you confirm whether there are hardware specifics required to support speech to text? |
Beta Was this translation helpful? Give feedback.
-
Closed as answered |
Beta Was this translation helpful? Give feedback.
The exception message indicates that speech to text isn't supported on the device. Can you confirm whether there are hardware specifics required to support speech to text?