Write audio data to JSON file