Did you know ... Search Documentation:
audio_stream->write_as_file