Convert AVAudio to Temporary WAV File
avaudio_to_tempfile.RdWrite AVAudio object to a temporary WAV file and return the path. Useful for passing to external DSP functions that require file paths.
Details
The temporary file is created with tempfile() and will be automatically
deleted when the R session ends, unless explicitly deleted earlier with unlink().
Examples
if (FALSE) { # \dontrun{
audio <- read_avaudio("speech.wav")
temp_path <- avaudio_to_tempfile(audio)
# Use temp file with external tools
# ... processing ...
# Clean up (optional - happens automatically at session end)
unlink(temp_path)
} # }