Python-Speech-Recognition- icon indicating copy to clipboard operation
Python-Speech-Recognition- copied to clipboard

Cannot run long_audio.py

Open dpc10ster opened this issue 3 years ago • 1 comments

I can run the other examples. But running the script long_audio.py as in:

runfile('/Users/Dev/GitHub/Python-Speech-Recognition-/long_audio.py', wdir='/Users/Dev/GitHub/Python-Speech-Recognition-')

generates the following error (I am not showing a lot of lines):

FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe'

I am running Python on Mac OS 12.1 in Spyder.

Would appreciate your help.

dpc10ster avatar Jan 24 '22 23:01 dpc10ster

To resolve this issue, you'll need to ensure that FFmpeg is installed and its binaries (including ffprobe) are accessible in your system's PATH.

Here are the steps to install FFmpeg and resolve the ffprobe error on macOS:

Open a terminal window.

Install Homebrew (a popular package manager for macOS) by running the following command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

install : brew install ffmpeg

This command will install FFmpeg and its associated binaries, including ffprobe.

After the installation is complete, you can verify if ffprobe is accessible by running the following command in the terminal: ffprobe --version If ffprobe is properly installed and accessible, it should display the version information.

Once you've successfully installed FFmpeg and verified that ffprobe is working, you should be able to run the long_audio.py script without encountering the ffprobe FileNotFoundError.

Note: If you already have Homebrew installed, make sure to update it by running brew update before installing FFmpeg.

emranpy avatar Sep 24 '23 13:09 emranpy