Saving a sound on Mobile

Hi guys,
I’m making a piano simulator and i want to make a “record” button.
When I press it, the app start recording the sound played, and when press again, it stop the record.

Thx if you can help !

Hi :slight_smile:
If you want to save the recorded sound to Wav file there’s a script for that you can use and is easy to implement.
Unity3D: script to save an AudioClip as a .wav file. · GitHub .
Make sure you change this Line → int rescaleFactor = 32767;
to – > float rescaleFactor = 32767;
Otherwise will sound weird.
Also enable the last line that’s commented out–> fileStream.Close();
If you want to save to Mp3 i have no idea how to do that ,so if you find out please let me know lol
Regards