# Sox on RPI doesn't work

**URL:** <https://community.ipfire.org/t/sox-on-rpi-doesnt-work/10097>\
**Category:** Add-Ons\
**Created:** [27 July 2023 19:18 UTC](https://community.ipfire.org/t/sox-on-rpi-doesnt-work/10097 "2023-07-27T19:18:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pslpsl](https://community.ipfire.org/user_avatar/community.ipfire.org/pslpsl/32/15261_2.png) [@pslpsl](https://community.ipfire.org/u/pslpsl)\
**Post date:** [27 July 2023 19:18 UTC](https://community.ipfire.org/t/sox-on-rpi-doesnt-work/10097/1 "2023-07-27T19:18:10Z")

</div>

[SoX](https://sox.sourceforge.net/) crashes at RPI (aarch64), it cannot be started…

```plaintext
[root@rpifire ~]# pakfire info sox
Name: sox
Summary: Sound Conversion Tools
Version: 14.4.2-2
Size: 260.00 KB
Dependencies: libvorbis
Pakfile: sox-14.4.2-2.ipfire
Service InitScripts: 
Installed: yes
Status: up-to-date

```

```plaintext
[root@rpifire ~]# pakfire status
Core-Version: 2.27-aarch64
Core-Update-Level: 176
Last update: 17d 1h 12m 4s ago
Last core-list update: 19h 30m 24s ago
Last server-list update: 19h 30m 28s ago
Last packages-list update: 25m 19s ago
Core-Update available: no
Package-Updates available: 0
Reboot required: no

```

```plaintext
[root@rpifire ~]# file /usr/bin/sox
/usr/bin/sox: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 4.14.0, stripped

```

**crash**

```plaintext
[root@rpifire ~]# sox --version
Segmentation fault

```

BTW, there is no info related to `sox` at [Wiki](https://wiki.ipfire.org/addons)…

* * *

`sox` on AMD64 doesn’t work too, it just hangs, I have to “kill” it with `CTRL-C`

```plaintext
[root@ipfire ~]# file /usr/bin/sox
/usr/bin/sox: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 4.14.0, stripped

```

Version is not printed, like `sox` runs in infinite loop, maybe it is waiting for some event; I have to exit with `CTRL-C`:

```plaintext
[root@ipfire ~]# sox --version
[root@ipfire ~]#

```

---

<div class="post-metadata">

**Author:** ![cfusco](https://community.ipfire.org/user_avatar/community.ipfire.org/cfusco/32/9213_2.png) [@cfusco](https://community.ipfire.org/u/cfusco)\
**Post date:** [28 July 2023 08:31 UTC](https://community.ipfire.org/t/sox-on-rpi-doesnt-work/10097/2 "2023-07-28T08:31:24Z")

</div>

Do you have SOXR installed? I believe it is a library needed by SOX.

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [28 July 2023 09:54 UTC](https://community.ipfire.org/t/sox-on-rpi-doesnt-work/10097/3 "2023-07-28T09:54:59Z")

</div>

I have had a look through the build log etc

> [@cfusco](#):
>
> Do you have SOXR installed? I believe it is a library needed by SOX.

soxr is a library that can be used by sox but I don’t believe it has to have it. soxr is built in the build tree after sox and if sox required soxr it would complain during the build that the library was not available. soxr can also be used in a standalone mode.

I tried installing sox and running it and got a sequence of libraries that were needed and installed each of them then ran sox again and found the next and so on.

the needed addons are  
alsa  
flac  
libvorbis which is defined as a dependency and it required libogg. These therefore are installed by default.  
libmad  
libid3tag  
lame

After installing all of those then sox just hung as previously noted.

Basically the .configure has no disable commands in it so when sox is built it looks for all the optional file formats it can find and then links itself to those libraries. Therefore all of those are now built in and should be listed as dependencies so that they are automatically installed when sox is installed.

sox is not listed as a dependency in any other addon.

sox was originally added to IPFire bback in 2008 and since then no real major change has occurred to it other than a package update in 2020 to the most up to date version of this package from 2015.  
That , together with no wiki page on this addon makes me think that it was originally installed but then forgotten about.

sox is described as the Swiss Army knife of sound processing programs. It can convert audio files to other popular audio file types and also apply sound effects and filters during the conversion.

I will check with the dev mailing list to see if anyone remembers what this was originally intended for and if it is still required.

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [28 July 2023 17:19 UTC](https://community.ipfire.org/t/sox-on-rpi-doesnt-work/10097/4 "2023-07-28T17:19:40Z")

</div>

The feedback I have got is that sox was used for the asterix addon for music-on-hold and encoding the voice prompts.

The asterix addon was removed from IPFire in Core Update 158 and therefore the sox addon is no longer required and will be removed.
