Storing wav file in flash

I want to store a wav file(image capture sound) in the flash. and each time i capture an image i want to play it using the speaker connected to I2S. I have Ameba82-mini IOT board with Arduino framework.

there is 1MB for user freely to use FAQ/amb82-mini_flash_layout

can you provide an example code to create a file using FileSystem in Flash?