我已經制作了一個應用程序,它使用Openears
框架來讀出一些文本。但我還沒有使用任何語音識別/語音合成功能,只是談話的語音功能。我的應用被蘋果拒絕,告知該應用要求獲得使用麥克風的權限,而該應用沒有任何此類功能。以下是從蘋果拒絕消息:Openears要求許可使用麥克風
During review we were prompted to provide consent to use the microphone, however, we were not able to find any features or functionality that use the microphone for audio recording.
The microphone consent request is generated by the use of either AVAudioSessionCategoryRecord or AVAudioSessionCategoryPlayAndRecord audio categories.
If you do not intend to record audio with your application, it would be appropriate to choose the AVAudioSession session category that fits your application's needs or modify your app to include audio-recording features.
For more information, please refer to the Security section of the iOS SDK Release Notes for iOS 7 GM Seed.
我已經搜索應用程序如消息中提到,但找不到任何AVAudioSessionCategoryRecord
或AVAudioSessionCategoryPlayAndRecord
音頻類別。如何禁用允許使用麥克風的提示?
只是補充說明,OpenEars在做TTS時不需要使用麥克風 - 請參閱我的答案。 – Halle
@哈雷嘿謝謝哈雷,我會更新我的答案,包括您的提示,讓大家看到。 – Pavan
謝謝!那太棒了。 – Halle