Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In TTS for Android, I can set audio attributes through setAudioAttributes, but I couldn't find a place to set them in FlutterTts. Is there a way to set them in FlutterTts #551

Open
2 tasks
SJLBenjamin opened this issue Dec 6, 2024 · 0 comments

Comments

@SJLBenjamin
Copy link

🚀 Feature Requests

Contextualize the feature

Describe the feature

Android tts TextToSpeech.java
/**
* Sets the audio attributes to be used when speaking text or playing
* back a file.
*
* @param audioAttributes Valid AudioAttributes instance.
*
* @return {@link #ERROR} or {@link #SUCCESS}.
*/
public int setAudioAttributes(AudioAttributes audioAttributes) {
if (audioAttributes != null) {
synchronized (mStartLock) {
mParams.putParcelable(Engine.KEY_PARAM_AUDIO_ATTRIBUTES,
audioAttributes);
}
return SUCCESS;
}
return ERROR;
}

Platforms affected (mark all that apply)

  • 📱 iOS
  • 🤖 Android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant