We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b03038d + 26779fd commit 63cee42Copy full SHA for 63cee42
firebase-ai/src/main/kotlin/com/google/firebase/ai/type/AudioHelper.kt
@@ -163,7 +163,10 @@ internal class AudioHelper(
163
fun build(): AudioHelper {
164
val playbackTrack =
165
AudioTrack(
166
- AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_VOICE_COMMUNICATION).build(),
+ AudioAttributes.Builder()
167
+ .setUsage(AudioAttributes.USAGE_MEDIA)
168
+ .setContentType(AudioAttributes.CONTENT_TYPE_SPEECH)
169
+ .build(),
170
AudioFormat.Builder()
171
.setSampleRate(24000)
172
.setChannelMask(AudioFormat.CHANNEL_OUT_MONO)
0 commit comments