From b96bc4565d1f97609b21036ec752f9b7a7a1de6f Mon Sep 17 00:00:00 2001 From: Krille Date: Sun, 29 Oct 2023 17:48:18 +0100 Subject: [PATCH] fix: Audiomessages on iOS --- ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme | 2 +- lib/pages/chat/recording_dialog.dart | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 3db53b6e1f..b52b2e698b 100644 --- a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ { final _audioRecorder = AudioRecorder(); final List amplitudeTimeline = []; - static const int bitRate = 16000; + static const int bitRate = + 64000; // Lower makes the audio messages unplayable on iOS for some reason Future startRecording() async { try { @@ -46,6 +48,7 @@ class RecordingDialogState extends State { final path = _recordedPath = '${tempDir.path}/recording${DateTime.now().microsecondsSinceEpoch}.$fileExtension'; + Logs().v('Store audio file at', path); final result = await _audioRecorder.hasPermission(); if (result != true) { setState(() => error = true);