草庐IT

audiosession

全部标签

ios - AVSpeechSynthesizer 错误 AudioSession

我在玩AVSpeechSynthesizer时总是遇到这些错误:ERROR:>aqsrv>65:Exceptioncaughtin(null)-error-66634ERROR:AVAudioSessionUtilities.h:88:GetProperty_DefaultToZero:AudioSessionGetProperty('disa')failedwitherror:'?ytp'我的代码是:AVSpeechSynthesizer*synthesizer=[[AVSpeechSynthesizeralloc]init];[synthesizersetDelegate:self

ios - 如何为 iOS 9 设置 audioSession 类别?

如何访问用于设置audioSession类别的旧API?我有一台旧iPad,我在上面使用了一个视频应用程序,它卡在iOS9.3上。我正在使用Xcode10。我认为这只是我在这里需要的方法,但我不确定如何找到它。funcconfigureAudioSession(){letaudioSession=AVAudioSession.sharedInstance()do{if#available(iOS10.0,*){tryaudioSession.setCategory(.playback,mode:.moviePlayback,options:.allowBluetooth)}else{/