Skip to content
This repository was archived by the owner on Oct 15, 2022. It is now read-only.
This repository was archived by the owner on Oct 15, 2022. It is now read-only.

Android local language speech detect and text in local language #96

Description

@ghure

I had issues in android for local language recognition.

Issue was speech_recognition was not detecting selected language and was giving error java.lang.IndexOutOfBoundsException

My code:
_speechRecognition
.listen(locale: "en-US")
.then((result) => print('$result'));
});

_speechRecognition
.listen(locale: "mr-IN")
.then((result) => print('$result'));
});

After spending long time on issue, i resolved issue by changing code in
SpeechRecognitionPlugin.java
-> line no 67 -> recognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, call.arguments.toString());

After changing this code works fine in android. So can any one update this line in android code
Thanks.

WhatsApp Image 2020-05-24 at 7 16 29 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions