it no handler for given file type `flac' I hope someone can help me out with this issue.
I have installed the latest version of SoX (14.4.2) on my Mac and I keep getting the following error message:

no handler for given file type `flac'


I have tried to re-install it, as suggested in another thread on this forum, by running the following:

brew remove sox
brew install sox --with-flac 


but unfortunately did not the trick for me.

By typing :

brew info sox


I can see the "tick" against the flac option but then when I run the command:

sox oldfile.flac newfile.flac trim 0 30


I keep getting the same error message. 

Any help/suggestion is very much appreciated.

Many thanks!
I do not have a specific answer for the error as I do not use Homebrew however as a workaround I've downloaded SoX - Sound exchange from SourceForge.net unzipped the download file and cd sox-14.4.2 and then ./play &lt;pathname_to.flac&gt; and it played the .flac file just fine.

As requested in the comments I tested trimming a .flac file and this too worked as expected and the trimmed file played fine, (sans the trimmed 30 seconds of course).

To ensure the downloaded SoX worked independently of other installed audio software I tested it on a clean build of OS X 10.10 and SoX worked as expected.  (BTW I originally tested under OS X 10.8.5)

Since Homebrew does the installing and just downloading directly from SourceForge.net does not, I copied the play, rec, soxi (aliases) and the sox binary to /usr/local/bin as it's an appropriate location for third-party binaries and makes the commands directly available in a Terminal as its location is in the $PATH.