Reference saveSound()

saveSound()

Save a p5.SoundFile as a .wav file. The browser will prompt the user to download the file to their device. For uploading audio to a server, use p5.SoundFile.saveBlob.

Syntax

saveSound(soundFile, fileName)

Parameters

soundFile
p5.SoundFile:

p5.SoundFile that you wish to save

fileName
String:

name of the resulting .wav file.

Notice any errors or typos? Please let us know. Please feel free to edit lib/addons/p5.sound.js and open a pull request!

Related References