Skip to content

Sound speed #328

Description

@artenax

I'm using this script on Linux:

# V5
import os
import torch

device = torch.device('cpu')
torch.set_num_threads(1)
local_file = 'model.pt'

if not os.path.isfile(local_file):
    torch.hub.download_url_to_file('https://models.silero.ai/models/tts/ru/v5_ru.pt',
                                   local_file)

model = torch.package.PackageImporter(local_file).load_pickle("tts_models", "model")
model.to(device)

with open('in.txt', 'r', encoding='utf-8') as f:
    example_text = f.read()

sample_rate = 48000
speaker='baya'

audio_paths = model.save_wav(text=example_text,
                             speaker=speaker,
                             sample_rate=sample_rate)

python3 ./silero.py

How can I reduce the sound speed by 10%?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions