[audio]patch:fix tensor_utils error (#2738)

* fix tensor utils
pull/2740/head
YangZhou 2 years ago committed by GitHub
parent 4afa28701c
commit 12fa8a2d19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,7 +29,6 @@ MACtest build whl envrioment
* gcc/g++/gfortran 12.2.0
* cpu Intel Xeon E5 x86_64
Windows
not support paddleaudio C++ extension lib (sox io, kaldi native fbank)
python setup.py bdist_wheel
python setup.py bdist_wheel

@ -1,7 +1,9 @@
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#ifdef INCLUDE_KALDI
#include "paddleaudio/src/pybind/kaldi/kaldi_feature.h"
#include "paddleaudio/third_party/kaldi/feat/feature-fbank.h"
#endif
#ifdef INCLUDE_SOX
#include "paddleaudio/src/pybind/sox/io.h"

@ -24,9 +24,9 @@ from typing import Tuple
import paddle
from paddle import jit
from paddle import nn
from paddleaudio.utils.tensor_utils import add_sos_eos
from paddleaudio.utils.tensor_utils import th_accuracy
from paddlespeech.audio.utils.tensor_utils import add_sos_eos
from paddlespeech.audio.utils.tensor_utils import th_accuracy
from paddlespeech.s2t.frontend.utility import IGNORE_ID
from paddlespeech.s2t.frontend.utility import load_cmvn
from paddlespeech.s2t.modules.cmvn import GlobalCMVN

Loading…
Cancel
Save