Issue with running DeepSpeech client (0.6.1) on MacOS Catalina (libsox.3.dylib not found)

Running the following (with the model and audio located in the correct directories):
./DeepSpeech/deepspeech --model DeepSpeech/models/output_graph.pbmm --audio DeepSpeech/audio/2830-3980-0043.wav

I am greeted with:

dyld: Library not loaded: @rpath/libsox.3.dylib
  Referenced from: /Users/ahmetakkoc/Desktop/syd/src/./DeepSpeech/deepspeech
  Reason: image not found
Abort trap: 6

I did some reading and saw that libsox should be statically linked into the clients. So what’s going on, is it somehow not able to find it?

As documented, you need to install libsox on macOS. Static linkage is not available on that platform.

1 Like

brew install sox seems to do the trick, got it

Again, if you feel the doc not as perfect as we’d like, feel free to send PR: if it’s written this way, it means:

  • it looks good to us
  • nobody reported it was unclear or proposed better wording

That does not mean it’s perfect.

1 Like