Hello, This works in my case: sox <examplefile.wav> -n stat 2>&1 >/dev/null | grep Rough | awk '{print $3}'
More elegant solutions may exist...
M0
On Sat, Dec 29, 2018 at 4:06 AM William D DeGraw via Sox-users <sox-users@xxxxxxxxxxxxxxxxxxxxx> wrote:
So, I’m using ‘sox <examplefile.wav> -n stat’ to obtain the “rough frequency” value. I, however, just need this number and want to pipe the output outside of sox. …How exactly do I accomplish this objection? –I’ve been fruitlessly and exhaustively searching the internet for an answer.
-Dylan
_______________________________________________
Sox-users mailing list
Sox-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sox-users
_______________________________________________ Sox-users mailing list Sox-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/sox-users