From 91ff2ce5175f04194396c273b3e3df0521708197 Mon Sep 17 00:00:00 2001 From: Fred Bowker Date: Fri, 29 May 2026 15:55:00 +0100 Subject: [PATCH] changed audio playAndRecord mode from .default to .voiceChat applies echo cancellation and noise reduction, removes the background hiss from recording --- Sources/ExyteChat/Views/Recording/Recorder.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ExyteChat/Views/Recording/Recorder.swift b/Sources/ExyteChat/Views/Recording/Recorder.swift index f5c106e9..ef9c7a16 100644 --- a/Sources/ExyteChat/Views/Recording/Recorder.swift +++ b/Sources/ExyteChat/Views/Recording/Recorder.swift @@ -64,7 +64,7 @@ final actor Recorder { let recordingUrl = FileManager.tempDirPath.appendingPathComponent(UUID().uuidString + fileExt) do { - try audioSession.setCategory(.playAndRecord, mode: .default) + try audioSession.setCategory(.playAndRecord, mode: .voiceChat) try audioSession.overrideOutputAudioPort(.speaker) try audioSession.setActive(true) audioRecorder = try AVAudioRecorder(url: recordingUrl, settings: settings)