Skip to content

Commit 459961e

Browse files
Merge pull request #143 from frymanofer/Davoice_io_wake_word
Fix(AudioRecorder.swift): Fix locking the mic on IOS
2 parents ea61658 + 2794a0a commit 459961e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/AudioRecorder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public class AudioRecorder: NSObject, AVAudioRecorderDelegate{
4545
AVEncoderAudioQualityKey: AVAudioQuality.high.rawValue
4646
]
4747

48-
let options: AVAudioSession.CategoryOptions = [.defaultToSpeaker, .allowBluetooth]
49-
48+
let options: AVAudioSession.CategoryOptions = [.defaultToSpeaker, .allowBluetooth, .mixWithOthers]
49+
5050
if (path == nil) {
5151
guard let newPath = self.createAudioRecordPath(fileNameFormat: fileNameFormat) else {
5252
reject(Constants.audioWaveforms, "Failed to initialise file URL", nil)

0 commit comments

Comments
 (0)