I like to recording and save the audio file with modified pitch. I can to record and change the pitch, but I not found a way to save this audio file with pitch.
local dataFileName = "testfile" if system.getInfo("environment") == "simulator" then dataFileName = dataFileName .. ".aif" else local platformName = system.getInfo( "platformName" ) if "iPhone OS" == platformName then dataFileName = dataFileName .. ".aif" elseif "Android" == platformName then dataFileName = dataFileName .. ".wav" isAndroid = true else print("Unknown OS " .. platformName ) end end local filePath = system.pathForFile( dataFileName, system.DocumentsDirectory ) local rec = media.newRecording( filePath ) local function stopRecording( event ) rec:stopRecording() -- Play back the recording local file = io.open( filePath, "r" ) if file then io.close( file ) local playbackSoundHandle = audio.loadStream( dataFileName, system.DocumentsDirectory ) local a, b =audio.play( playbackSoundHandle, { onComplete=function() audio.dispose( event.handle ) end } ) al.Source( b, al.PITCH, 2 ) end end rec:startRecording() timer.performWithDelay( 2000, stopRecording )