Skip to content

Commit

Permalink
Merge pull request #143 from frymanofer/Davoice_io_wake_word
Browse files Browse the repository at this point in the history
Fix(AudioRecorder.swift): Fix locking the mic on IOS
  • Loading branch information
mukesh-simform authored Dec 18, 2024
2 parents ea61658 + 2794a0a commit 459961e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/AudioRecorder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public class AudioRecorder: NSObject, AVAudioRecorderDelegate{
AVEncoderAudioQualityKey: AVAudioQuality.high.rawValue
]

let options: AVAudioSession.CategoryOptions = [.defaultToSpeaker, .allowBluetooth]
let options: AVAudioSession.CategoryOptions = [.defaultToSpeaker, .allowBluetooth, .mixWithOthers]

if (path == nil) {
guard let newPath = self.createAudioRecordPath(fileNameFormat: fileNameFormat) else {
reject(Constants.audioWaveforms, "Failed to initialise file URL", nil)
Expand Down

0 comments on commit 459961e

Please sign in to comment.