From 3ae47a494058bf8d8b5aaaf6853e9047044b1de8 Mon Sep 17 00:00:00 2001 From: SarahSmitho <56591685+SarahSmitho@users.noreply.github.com> Date: Wed, 7 Jun 2023 11:17:38 +0800 Subject: [PATCH] verify have installed ffmpeg (#1117) --- egs/commonvoice/ASR/prepare.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/egs/commonvoice/ASR/prepare.sh b/egs/commonvoice/ASR/prepare.sh index 7a583f9c8..3946908c6 100755 --- a/egs/commonvoice/ASR/prepare.sh +++ b/egs/commonvoice/ASR/prepare.sh @@ -63,6 +63,14 @@ log() { log "dl_dir: $dl_dir" +if ! command -v ffmpeg &> /dev/null; then + echo "This dataset requires ffmpeg" + echo "Please install ffmpeg first" + echo "" + echo " sudo apt-get install ffmpeg" + exit 1 +fi + if [ $stage -le 0 ] && [ $stop_stage -ge 0 ]; then log "Stage 0: Download data"