Save audio stream to mp3 file (iOS)

人走茶凉 提交于 2019-12-07 04:12:57

问题


I have an AVSpeechSynthesizer which converts text to speech, but i've encountered a problem.

I don't know how to save the audio file that it generates to a music file, which I would quite like to be able to do!

So here's my question, how do you save the AVSpeechSynthesizer output and if this isn't possible, can I us AVFoundation, CoreMedia or other public API to capture the output of the speakers, but before it has come out?

Thanks!


回答1:


Unfortunately no, there is no public API available to capture the speaker output and looking over the docs for AVSpeechSynthesizer and related classes I don't see a way to capture any audio from it. You may want to look at 3rd party libraries to help with this.

Related questions:

Recording audio output only from speaker of iphone excluding microphone

Text-to-speech libraries for iPhone



来源:https://stackoverflow.com/questions/19013076/save-audio-stream-to-mp3-file-ios

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