lukasjapan / bt-speaker

A simple Bluetooth Speaker Daemon for the Raspberry Pi 3
GNU General Public License v3.0
493 stars 94 forks source link

Resampling with sox play command #44

Open alexjaw opened 6 years ago

alexjaw commented 6 years ago

(new feature) Today playing is accomplished with

aplay -f cd -

But say that we would like resample the 44.1k audio stream before piping to a CODEC, for example at 96k.

SoX allows for advanced audio manipulation and piping. Where would one start in order to add such functionality to bt-speaker? Is it at all possible to parse more elaborate commands from the config file?