From edd41f5a308971024c76fa4b0d9f4235a12a4fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=97=E6=B5=A9?= Date: Tue, 1 Aug 2023 17:38:16 +0800 Subject: [PATCH] TOLD/SOND: add path.sh --- egs/callhome/diarization/sond/path.sh | 5 +++++ egs/callhome/diarization/sond/run.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 egs/callhome/diarization/sond/path.sh diff --git a/egs/callhome/diarization/sond/path.sh b/egs/callhome/diarization/sond/path.sh new file mode 100644 index 000000000..5721f3f48 --- /dev/null +++ b/egs/callhome/diarization/sond/path.sh @@ -0,0 +1,5 @@ +export FUNASR_DIR=$PWD/../../.. + +# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C +export PYTHONIOENCODING=UTF-8 +export PATH=$FUNASR_DIR/funasr/bin:$PATH \ No newline at end of file diff --git a/egs/callhome/diarization/sond/run.sh b/egs/callhome/diarization/sond/run.sh index 9f095591b..d4ae10c30 100644 --- a/egs/callhome/diarization/sond/run.sh +++ b/egs/callhome/diarization/sond/run.sh @@ -9,7 +9,7 @@ # We recommend you run this script stage by stage. # environment configuration -kaldi_root=/home/neo.dzh/kaldi +kaldi_root= if [ -z "${kaldi_root}" ]; then echo "We need kaldi to prepare dataset, extract fbank features, please install kaldi first and set kaldi_root."