请教下ModelScope:No module named 'kantts' , 怎么安装 kantts?No module named 'kantts.models.hifigan' 还有这个。ImportError: KanttsTrainer: Please install kantts.,CalledProcessError: Command '['git', 'rev-parse', 'HEAD']' returned non-zero exit status 128.
text = '嗯,那么今天我们就简单的进行一下那个新生招聘的嗯讨论吧。因为现在不是马上就新生到校嘛,然后我们社团呢也需要招聘一些新的社员,然后就今天就大概就讨论一下嗯怎么招聘的内容吧。'
model_id = 'damo/speech_sambert-hifigan_tts_zh-cn_16k'
sambert_hifigan_tts = pipeline(task=Tasks.text_to_speech, model=model_id)
# 目前支持发音人zhitian_emo,zhiyan_emo,zhizhe_emo,zhibei_emo
output = sambert_hifigan_tts(input=text, voice='zhitian_emo')
wav = output[OutputKeys.OUTPUT_WAV]
with open('output.wav', 'wb') as f:
f.write(wav)
以上代码直接执行会提示没有kantts
这个是什么模型什么代码报的错 pip install kantts -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html,此回答整理自钉群“魔搭ModelScope开发者联盟群 ①”
ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!欢迎加入技术交流群:微信公众号:魔搭ModelScope社区,钉钉群号:44837352