Skip to content

[BUG] Polish Language Speech Recognition Not Working #2541

Description

@wmassalski-arp

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

I'm unable to get speech to text recognition with polish language, it works perfectly fine offline or online with "en-US". It throws "Request language is not supported error".
THIS REFERES TO ANDROID AND WINDOWS!

To my dismay, this feature works on Samsung A54 and with their native polish library, however with google package it's unable to work.

This is what i tried in code:
await _speechToTextService.StartListenAsync( new SpeechToTextOptions() { // Culture = CultureInfo.GetCultureInfo("PL") // Culture = CultureInfo.CurrentCulture, Culture = CultureInfo.GetCultureInfo("pl-PL"), ShouldReportPartialResults = true, }, CancellationToken.None );

Also I've tried changing current culture of my PC to Polish and it petered away.

These are my windows settings:
Image

Image

I managed to debug external sources and here's the exact line when the error is thrown:
It's 117 line of SpeechRecognizer.cs (scenario with online speech recognition)

Image

Expected Behavior

Being able to use speech to text with polish language, on windows 10/11 and android.

Steps To Reproduce

  1. Open and run solution.
  2. Press "Start the speech" button.
  3. Error should be displayed in a label below.

Link to public reproduction project repository

https://github.com/wmassalski-arp/Polish-speech-online-recognition-bug/tree/main

Environment

- .NET MAUI CommunityToolkit: 11.1.0
- OS: Windows 10.0.19045 Build 19045, Windows 10 Pro 22H2 
(ANDROID: Android 14, 5.15.104-android13-3-27760517, UP1A.231005.007.A546BXX6BWL3, SM-A546B/DS) 
- .NET MAUI: 9.0

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/essentialsIssue/Discussion/PR that has to do with EssentialsbugSomething isn't workingunverified

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions