from funasr import AutoModel | |
from modelscope.pipelines import pipeline | |
from modelscope.utils.constant import Tasks | |
from modelscope import snapshot_download | |
# ans = pipeline( | |
# task = Tasks.acoustic_noise_suppression, | |
# model = 'E:/Py_api_test/ASR_api/speech_frcrn_ans_cirm_16k', | |
# ) | |
# result = ans( | |
# input = 'test1.mp3', | |
# output_path = 'output.mp3', | |
# ) | |
ans = pipeline( | |
Tasks.acoustic_noise_suppression, | |
model='E:/Py_api_test/ASR_api/models_from_modelscope/speech_frcrn_ans_cirm_16k') | |
result = ans( | |
input = 'test1.mp3', | |
output_path='output.mp3') |