Type Function Object Recording Library media.* Return value none Revision Current Public Release (2018.3326) Keywords stopRecording See also object:startRecording() media.playSound()
Stops recording audio.
object:stopRecording()
local filePath = system.pathForFile( "newRecording.aif", system.DocumentsDirectory ) local r = media.newRecording( filePath ) r:startRecording() -- Sometime later r:stopRecording()