mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-25 20:49:37 +01:00
remove easyasr and fix wenet (#495)
This commit is contained in:
@@ -35,7 +35,7 @@ class WeNetAutomaticSpeechRecognitionPipeline(Pipeline):
|
||||
audio_fs: int = None,
|
||||
recog_type: str = None,
|
||||
audio_format: str = None) -> Dict[str, Any]:
|
||||
from easyasr.common import asr_utils
|
||||
from funasr.utils import asr_utils
|
||||
|
||||
self.recog_type = recog_type
|
||||
self.audio_format = audio_format
|
||||
|
||||
@@ -292,7 +292,6 @@ REQUIREMENTS_MAAPING = OrderedDict([
|
||||
GENERAL_IMPORT_ERROR.replace('REQ', 'espnet'))),
|
||||
('espnet', (is_espnet_available,
|
||||
GENERAL_IMPORT_ERROR.replace('REQ', 'espnet'))),
|
||||
('easyasr', (is_package_available('easyasr'), AUDIO_IMPORT_ERROR)),
|
||||
('funasr', (is_package_available('funasr'), AUDIO_IMPORT_ERROR)),
|
||||
('kwsbp', (is_package_available('kwsbp'), AUDIO_IMPORT_ERROR)),
|
||||
('decord', (is_package_available('decord'), DECORD_IMPORT_ERROR)),
|
||||
|
||||
Reference in New Issue
Block a user