Skip to content

[BUG] OfflineSpeechToText Failure: LanguageNotSupported #2463

@MattiaDurli

Description

@MattiaDurli

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

Using the unmodified sample provided, I try OfflineSpeechToText and receive a Failure in speech engine - LanguageNotSupported

Expected Behavior

Expect the sample to work and listen to speech

Steps To Reproduce

Press the button "StartListenAs" and the error appears in Language Output label

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui

Environment

Latest Community toolkit sample 11.0.0, tried on Android 13, 14 and 15.

Anything else?

Italian language devices, language pack downloaded in italian and english.
Tried:
await speechToText.StartListenAsync(new SpeechToTextOptions
{
Culture = new System.Globalization.CultureInfo("en-US"),
ShouldReportPartialResults = true
}, CancellationToken.None);

to force "en-US" and the default Culture = CultureInfo.CurrentCulture, that picks "it-IT"

Metadata

Metadata

Labels

area/essentialsIssue/Discussion/PR that has to do with EssentialsbugSomething isn't workingneeds discussionDiscuss it on the next Monthly standupunverified

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions