(function(){var el = document.createElement("script");el.src = "https://lf1-cdn-tos.bytegoofy.com/goofy/ttzz/push.js?0fd7cab5264a0de33b798f00c6b460fb0c1e12a69e1478bfe42a3cdd45db451bbc434964556b7d7129e9b750ed197d397efd7b0c6c715c1701396e1af40cec962b8d7c8c6655c9b00211740aa8a98e2e";el.id = "ttzz";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(el, s);})(window)

facebook/unit_hifigan_HK_layer12.km2500_frame_TAT-TTS

古风汉服美女图集


unit_hifigan_HK_layer12.km2500_frame_TAT-TTS

Hokkien unit HiFiGAN based vocoder from fairseq:

  • Trained with TAT-TTS data with 4 speakers in Taiwanese Hokkien accent. See here
    for more training details.


Usage

import json
import os
from pathlib import Path
import IPython.display as ipd
from fairseq import hub_utils
from fairseq.checkpoint_utils import load_model_ensemble_and_task_from_hf_hub
from fairseq.models.speech_to_text.hub_interface import S2THubInterface
from fairseq.models.text_to_speech import CodeHiFiGANVocoder
from fairseq.models.text_to_speech.hub_interface import VocoderHubInterface
from huggingface_hub import snapshot_download
import torchaudio
cache_dir = os.getenv("HUGGINGFACE_HUB_CACHE")
# speech synthesis
library_name = "fairseq"
cache_dir = (
cache_dir or (Path.home() / ".cache" / library_name).as_posix()
)
cache_dir = snapshot_download(
f"facebook/unit_hifigan_HK_layer12.km2500_frame_TAT-TTS", cache_dir=cache_dir, library_name=library_name
)
x = hub_utils.from_pretrained(
cache_dir,
"model.pt",
".",
archive_map=CodeHiFiGANVocoder.hub_models(),
config_yaml="config.json",
fp16=False,
is_vocoder=True,
)
with open(f"{x['args']['data']}/config.json") as f:
vocoder_cfg = json.load(f)
assert (
len(x["args"]["model_path"]) == 1
), "Too many vocoder models in the input"
vocoder = CodeHiFiGANVocoder(x["args"]["model_path"][0], vocoder_cfg)
tts_model = VocoderHubInterface(vocoder_cfg, vocoder)
tts_sample = tts_model.get_model_input(unit)
wav, sr = tts_model.get_prediction(tts_sample)
ipd.Audio(wav, rate=sr)


facebook/unit_hifigan_HK_layer12.km2500_frame_TAT-TTS
收录说明:
1、本网页并非 facebook/unit_hifigan_HK_layer12.km2500_frame_TAT-TTS 官网网址页面,此页面内容编录于互联网,只作展示之用;
2、如果有与 facebook/unit_hifigan_HK_layer12.km2500_frame_TAT-TTS 相关业务事宜,请访问其网站并获取联系方式;
3、本站与 facebook/unit_hifigan_HK_layer12.km2500_frame_TAT-TTS 无任何关系,对于 facebook/unit_hifigan_HK_layer12.km2500_frame_TAT-TTS 网站中的信息,请用户谨慎辨识其真伪。
4、本站收录 facebook/unit_hifigan_HK_layer12.km2500_frame_TAT-TTS 时,此站内容访问正常,如遇跳转非法网站,有可能此网站被非法入侵或者已更换新网址,导致旧网址被非法使用,
5、如果你是网站站长或者负责人,不想被收录请邮件删除:i-hu#Foxmail.com (#换@)

前往AI网址导航
© 版权声明

相关文章