You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.
Hello sir,
I am getting below error while recording audio in foreground
Error:
required condition is false: [AVAudioIONodeImpl.mm:1064:SetOutputFormat: (format.sampleRate == hwFormat.sampleRate)]
Xcode :11.4.1
Language swift 4.2
MacOS: Catalina version 10.15.5
Iphone : 8plus
iphone Os: 13.3.1
Below is my code:
File name: RecorderViewContrlloer
let settings = [AVFormatIDKey: kAudioFormatLinearPCM, AVLinearPCMBitDepthKey: 16, AVLinearPCMIsFloatKey: true, AVSampleRateKey: Float(16000.0), AVNumberOfChannelsKey: 1] as [String : Any]
// let format = inputNode.inputFormat(forBus: 0)
Above is my code of recording. Application is crash on inputNode.installTap(onBus: 0, bufferSize: 512, format: format) { (buffer, time) in
And give error like above mention
We have to deploy the application so please suggest and guide us for this issue
Look forward to hearing from you soon..
Regards
Akash
The text was updated successfully, but these errors were encountered: