Voice recording cannot be enabled in ios 17.2

 AddInstanceForFactory: No factory registered for id <CFUUID 0x6000002e76c0> F8BB1C28-BAE8-11D6-9C31-00039315CD46    

AudioQueueObject.cpp:1580  BuildConverter: AudioConverterNew returned -50 from:  0 ch,  16000 Hz, .... (0x00000000) 0 bits/channel, 0 bytes/packet, 0 frames/packet, 0 bytes/frame to:    2 ch,  16000 Hz, Int16, interleaved

    HALSystem.cpp:2216   AudioObjectPropertiesChanged: no such object
   AQMEIO_HAL.cpp:2552  timeout 

AudioHardware-mac-imp.cpp:2706 AudioDeviceStop: no device with given ID

AudioQueueObject.cpp:1580  BuildConverter: AudioConverterNew returned -50 from:  0 ch,  16000 Hz, .... (0x00000000) 0 bits/channel, 0 bytes/packet, 0 frames/packet, 0 bytes/frame to:    2 ch,  16000 Hz, Int16, interleaved

AudioQueueObject.cpp:6707  ConvertInput: aq@0x109994200: AudioConverterFillComplexBuffer returned -50, packetCount 5328

Xcode version 15.2(15C500b)

iPhone 15Pro Version 17.2 (Simulator)

Language : Swift

In version 17.0 or above, there are no recording issues in the object-c project, iPhone and simulators can't start recording, Why?

Hello @ZhengChen, thank you for your post. Are you able to share a test project that demonstrates the issue? You can find tips on creating and sharing a test project in Creating a Test Project.

你好,下面的是项目链接: https://drive.google.com/file/d/108-sTxjT8_YTYMxcH_-DntBO1e3teIln/view?usp=share_link github一直无法传上去,所以项目传到了google云盘,项目解压直接运行--> 点击录制, 之后就会在控制看到如上图所示的警告提示,录音无法正常启动录制。有劳了!

Hello @toliv, thank you for your comment. Indeed, there seems to be a bug with the Capturing stereo audio from built-in microphones sample code project. Please use Feedback Assistant to submit a bug report.

One way to work around the bug is by changing line 102 of MainViewController.swift to:

guard controller.isDeviceSupported, controller.state != .recording else { return }

Once you do that, however, you might see the alert declared in line 46 of MainViewController.swift if you run the project on the iOS Simulator.

Voice recording cannot be enabled in ios 17.2
 
 
Q