From 4ee5e89b3695917f36b54629fc94e45a22c9e9da Mon Sep 17 00:00:00 2001 From: Hui Zhang Date: Wed, 26 Oct 2022 12:00:28 +0000 Subject: [PATCH] add requirement --- speechx/README.md | 24 ++++++++++++++++++++++++ speechx/requirement.txt | 1 + 2 files changed, 25 insertions(+) create mode 100644 speechx/requirement.txt diff --git a/speechx/README.md b/speechx/README.md index f744defae..9abcc19ef 100644 --- a/speechx/README.md +++ b/speechx/README.md @@ -70,3 +70,27 @@ popd ### Deepspeech2 with linear feature * DecibelNormalizer: there is a small difference between the offline and online db norm. The computation of online db norm reads features chunk by chunk, which causes the feature size to be different different with offline db norm. In `normalizer.cc:73`, the `samples.size()` is different, which causes the different result. + +## FAQ + +1. No moudle named `paddle`. + +``` +CMake Error at CMakeLists.txt:119 (string): + string sub-command STRIP requires two arguments. + + +Traceback (most recent call last): + File "", line 1, in +ModuleNotFoundError: No module named 'paddle' +-- PADDLE_COMPILE_FLAGS= +CMake Error at CMakeLists.txt:131 (string): + string sub-command STRIP requires two arguments. + + + File "", line 1 + import os; import paddle; include_dir=paddle.sysconfig.get_include(); paddle_dir=os.path.split(include_dir)[0]; libs_dir=os.path.join(paddle_dir, 'libs'); fluid_dir=os.path.join(paddle_dir, 'fluid'); out=':'.join([libs_dir, fluid_dir]); print(out); + ^ +``` + +please install paddlepaddle >= 2.4rc diff --git a/speechx/requirement.txt b/speechx/requirement.txt new file mode 100644 index 000000000..6a6db0960 --- /dev/null +++ b/speechx/requirement.txt @@ -0,0 +1 @@ +paddlepaddle>=2.4rc