Skip to content

Commit

Permalink
Fixed TTS audio coming out of incorrect speaker
Browse files Browse the repository at this point in the history
  • Loading branch information
siliconwitch committed Jun 13, 2024
1 parent 9f0f494 commit a198af1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/bluetooth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ class BrilliantBluetooth {
timeout: const Duration(days: 365),
autoConnect: Platform.isIOS ? true : false,
mtu: null,
);
); // TODO Should wait but it throws an error on Android after some time

final connectionState = await device.connectionState.firstWhere((state) =>
state == BluetoothConnectionState.connected ||
Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void setupAudioSession() {
androidAudioAttributes: AndroidAudioAttributes(
contentType: AndroidAudioContentType.speech,
flags: AndroidAudioFlags.none,
usage: AndroidAudioUsage.voiceCommunication,
usage: AndroidAudioUsage.assistant,
),
androidAudioFocusGainType: AndroidAudioFocusGainType.gain,
androidWillPauseWhenDucked: true,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: noa
description: "A new Flutter project."
publish_to: 'none'
version: 1.3.6
version: 1.3.7

environment:
sdk: '>=3.3.1 <4.0.0'
Expand Down

0 comments on commit a198af1

Please sign in to comment.