xamarin / ios-samples

Xamarin.iOS sample apps

Home Page:http://docs.microsoft.com/xamarin/ios/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SFSpeechRecognizer crash on iOS 12

riseworld27 opened this issue · comments

SpeakToMe sample worked well before iOS 12.
But I got crash from the users who use iOS 12. Here is crash message.

com.apple.coreaudio.avfaudio Reason: required condition is false: format.sampleRate == hwFormat.sampleRate

I guess there is problem in getting recording format in below line.

var recordingFormat = inputNode.GetBusOutputFormat (0);

It seems it requires different recording format as per phone model in iOS 12.

Hi @risingworld777. Do you have this problem now?

This works fine for me, I tried both the simulator and an iPhone X with iOS 12.2

I'm closing this for now. If this is still a problem, please attach the complete build log, and indicate exactly which device you ran this on.