rahul  Kushwaha
rahul Kushwaha

Reputation: 2819

how to open test-to-speech setting from flutter app?

I want to open the the Text-To-Speech from flutter app,

I am using the Android_intent package,

code:-

AndroidIntent intent = AndroidIntent(
    action: 'android.settings.SETTINGS',
    componentName: "com.android.settings.TextToSpeechSettings"
);
await intent.launch();

I can't seem to find the exact intent to open the TTS setting.

Android setting intents here

if there is no specific intent then How to open the TTS setting from the flutter app?

Upvotes: 1

Views: 322

Answers (1)

rahul  Kushwaha
rahul Kushwaha

Reputation: 2819

I found the following working code:-

AndroidIntent intent = AndroidIntent(
    action: 'com.android.settings.TTS_SETTINGS',
);
await intent.launch();

Upvotes: 2

Related Questions