Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run long_audio.py #1

Open
dpc10ster opened this issue Jan 24, 2022 · 1 comment
Open

Cannot run long_audio.py #1

dpc10ster opened this issue Jan 24, 2022 · 1 comment

Comments

@dpc10ster
Copy link

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.

@emranpy
Copy link

emranpy commented Sep 24, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants