Any way to control which audio channel AVSpeechSynthesizer outputs to?

穿精又带淫゛_ 提交于 2020-01-03 16:36:51

问题


I would like to use AVSpeechSynthesizer to output sound on only one audio channel of a multi-channel surround sound setup. For example, in a 5.1 system, I would like it to output on just the right-surround channel.

Right now I have:

    let synthesizer = AVSpeechSynthesizer()
    let utterance = AVSpeechUtterance(string: "This is the right channel")
    synthesizer.speakUtterance(utterance)

...however it outputs on both the left and right channels.

来源:https://stackoverflow.com/questions/32558183/any-way-to-control-which-audio-channel-avspeechsynthesizer-outputs-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!