You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered:
🚀 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)
The text was updated successfully, but these errors were encountered: