Closed GGuPP-git closed 1 year ago
when i run my code it hangs and just closes.
import time import torch language = 'ru' model_id = 'ru_v3' sample_rate = 48000 speaker = 'baya' put_accent = True put_yo = True device = torch.device('cpu') text = "Приветствую дорогой друг" model, _= torch.hub.load(repo_or_dir='snakers4/silero-models', model='silero_tts', language=language, speaker=model_id) model.to(device) audio = model.apply_tts(text=text, speaker=speaker, sample_rate=sample_rate, put_accent=put_accent, put_yo=put_yo) print(text) sd.play(audio, sample_rate) time.sleep( len(audio) / sample_rate +50) ![image](https://user-images.githubusercontent.com/86510219/222802168-69002f7e-6b06-480e-907a-6a4811ee5d1c.png) sd.stop()```
Looks like you have found a solution?
yes, thx
should have been replaced model_id = 'ru_v3' on model_id = 'v3_1_ru'
model_id = 'ru_v3'
model_id = 'v3_1_ru'
when i run my code it hangs and just closes.