Skip to content

Example code not loading engines or languages on emulator #255

Description

@jlanoieuri

💬 Questions and Help

I'm having trouble getting TTS to work on my codebase when using an emulator that is running Android 11 (tested on multiple emulators). For testing I copied the example code into my codebase and it is stuck on "Loading engines..." and "Loading Languages..." This same code works fine on Android 10 on the emulator, and it also works on Android 11 on physical devices, just not emulated Android 11 devices.

Configuration:

  • In android/app/build.gradle I have the minimum Android SDK version set to 21 as instructed in the README.
  • Dart SDK constraints: ">=2.6.0 <3.0.0"
  • flutter_tts version: 3.2.1

I have tried with and without the following included in the manifest file and it made no difference:

<manifest ... >
...
   <queries>
       <intent>
           <action android:name="TextToSpeech.Engine.INTENT_ACTION_TTS_SERVICE" />
       </intent>
   </queries>
...
</manifest>

I'm not sure that I am including this correctly though.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions