I'm just wondering if someone can explain to me how I will record the sound by modifying it (step?) And playing it for the user on the iPhone.
I am not asking anyone to do this for me, just a few tips on how I should do this. looking through documents, it seems that I should use AVAudioSession, AVAudioRecorderand AVAudioPlayer( AVFoundation.Framework) for parts reproducing reproduction. Or should I use CoreAudio.Framework? and then the question arises of changing sound.
AVAudioSession
AVAudioRecorder
AVAudioPlayer
AVFoundation.Framework
CoreAudio.Framework
OpenAL - , , . iPhone, , , . .. :
alSourcef(source, AL_PITCH, pitch);
, AVFoundation CoreAudio - .
AVAudioUnitTimePitch .
udacity.com iOS Swift:
func playAudioWithVariablePitch(pitch: Float) { audioEngine.stop() audioEngine.reset() let audioPlayerNode = AVAudioPlayerNode() audioEngine.attachNode(audioPlayerNode) let changePitchEffect = AVAudioUnitTimePitch() changePitchEffect.pitch = pitch audioEngine.attachNode(changePitchEffect) audioEngine.connect(audioPlayerNode, to:changePitchEffect, format:nil) audioEngine.connect(changePitchEffect, to:audioEngine.outputNode, format:nil) audioPlayerNode.scheduleFile(audioFile, atTime:nil, completionHandler: nil) try! audioEngine.start() audioPlayerNode.play() }
. DIRAC-mobile, . , .
Source: https://habr.com/ru/post/1779294/More articles:Python function telling me that I sent two arguments when I only sent one - pythonIs it possible to build large XSLT libraries? - xsltKRL converts a string to lowercase into a pre-block - stringWhat does a comma mean in an echo expression? - phpПреобразовать этот массив в список HTML - arraysCan I export a file from this commit in Mercurial? - version-controlReusing animations with multiple models? - blenderPHP переопределяет массив? - arraysRecord, change and play sound on iOS - iosConvert list to list using JAXB - javaAll Articles