Replies: 1 comment 2 replies
-
What is the error? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I run the following code
import time
import sounddevice as sd
import torch
language = 'ru'
model_id = 'v4_ru'
sample_rate = 48000 # 48000
speaker = 'aidar' # aidar, baya, kseniya, xenia, random
put_accent = True
put_yo = True
device = torch.device('cpu') # cpu или gpu
text = "проверка вывода звука"
model, _ = torch.hub.load(repo_or_dir='snakers4/silero-models',
model='silero_tts',
language=language,
speaker=model_id)
model.to(device)
def va_speak(what: str):
audio = model.apply_tts(text=what + "..",
speaker=speaker,
sample_rate=sample_rate,
put_accent=put_accent,
put_yo=put_yo)
and as a result I get: Using cache found in C:\Users\Vladimir/.cache\torch\hub\snakers4_silero-models_master
Please help me!
Beta Was this translation helpful? Give feedback.
All reactions