Bingsu / speecht5_test

huggingface.co
Total runs: 10
24-hour runs: 0
7-day runs: 1
30-day runs: 2
Model's Last Updated: April 24 2023
text-to-speech

Introduction of speecht5_test

Model Details of speecht5_test

SpeechT5 Text To Speech

DON'T USE THIS. This is a model that failed to train. However, someone saw my code and asked me to share this model, so I put it up.

import torch
from transformers import AutoTokenizer, SpeechT5HifiGan, SpeechT5ForTextToSpeech

vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
tokenizer = AutoTokenizer.from_pretrained("Bingsu/speecht5_test")
model = SpeechT5ForTextToSpeech.from_pretrained("Bingsu/speecht5_test")

emb_url = "https://huggingface.co/Bingsu/speecht5_test/resolve/main/speaker_embedding.pt"
emb_sd = torch.hub.load_state_dict_from_url(emb_url, map_location="cpu")
emb = torch.nn.Embedding(model.config.num_speakers, model.config.speaker_embedding_dim)
emb.load_state_dict(emb_sd)
@torch.inference_mode()
def gen(text: str, speaker_id: int = 0):
    inputs = tokenizer(text, return_tensors="pt")
    s_id = torch.tensor(speaker_id)

    speaker_embeddings = emb(s_id).unsqueeze(0)
    speech = model.generate_speech(inputs.input_ids, speaker_embeddings=speaker_embeddings, vocoder=vocoder)
    return speech.numpy()

Runs of Bingsu speecht5_test on huggingface.co

10
Total runs
0
24-hour runs
0
3-day runs
1
7-day runs
2
30-day runs

More Information About speecht5_test huggingface.co Model

More speecht5_test license Visit here:

https://choosealicense.com/licenses/mit

speecht5_test huggingface.co

speecht5_test huggingface.co is an AI model on huggingface.co that provides speecht5_test's model effect (), which can be used instantly with this Bingsu speecht5_test model. huggingface.co supports a free trial of the speecht5_test model, and also provides paid use of the speecht5_test. Support call speecht5_test model through api, including Node.js, Python, http.

speecht5_test huggingface.co Url

https://huggingface.co/Bingsu/speecht5_test

Bingsu speecht5_test online free

speecht5_test huggingface.co is an online trial and call api platform, which integrates speecht5_test's modeling effects, including api services, and provides a free online trial of speecht5_test, you can try speecht5_test online for free by clicking the link below.

Bingsu speecht5_test online free url in huggingface.co:

https://huggingface.co/Bingsu/speecht5_test

speecht5_test install

speecht5_test is an open source model from GitHub that offers a free installation service, and any user can find speecht5_test on GitHub to install. At the same time, huggingface.co provides the effect of speecht5_test install, users can directly use speecht5_test installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

speecht5_test install url in huggingface.co:

https://huggingface.co/Bingsu/speecht5_test

Url of speecht5_test

speecht5_test huggingface.co Url

Provider of speecht5_test huggingface.co

Bingsu
ORGANIZATIONS

Other API from Bingsu

huggingface.co

Total runs: 9.8M
Run Growth: -629.9K
Growth Rate: -6.43%
Updated:November 21 2024
huggingface.co

Total runs: 162
Run Growth: 118
Growth Rate: 72.84%
Updated:August 04 2023
huggingface.co

Total runs: 22
Run Growth: 15
Growth Rate: 68.18%
Updated:November 28 2022
huggingface.co

Total runs: 9
Run Growth: 4
Growth Rate: 44.44%
Updated:January 02 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 16 2023