How can I do the following?
- Sound object is selected
- save sound object as wav (as a temporary filename)
- run
sox -i adsda.wavorsoxi adsda.wav - output to the display the result of
sox -i - delete temporary file
How can I do the following?
sox -i adsda.wav or soxi adsda.wavsox -iCopyright © 2021 Jogjafile Inc.
You can execute
soxby calling thesystemdirective, and then capture the output in a temporary file. You can then read this temporary file into Praat withreadFile$(). Here's an example:I'm not sure what changes (if any) this would need in Windows, but considering you are using
sox, that probably is not a problem.Please note that currently (Praat v.5.4) the
systemdirective still uses the old syntax, which uses variable substitution. This will probably change in the future. But this script should remain usable even then.