Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help #144

Open
paisekamao opened this issue Jul 27, 2024 · 1 comment
Open

help #144

paisekamao opened this issue Jul 27, 2024 · 1 comment

Comments

@paisekamao
Copy link

can any one help me as i want t run this repo for urdu tts with my own voice

as i m newbie i am unable to achieve this
kindly some one please guide me through the process

@paisekamao
Copy link
Author

i m trying to run this code

import torch
import torchaudio
import torch.nn as nn
import torch.nn.functional as F

from tortoise.api import TextToSpeech
from tortoise.utils.audio import load_audio, load_voice, load_voices

tts = TextToSpeech()

This is the text that will be spoken.

text = "Joining two modalities results in a surprising increase in generalization! What would happen if we combined them all?"

preset = "fast" #@param ["ultra_fast", "fast", "standard", "high_quality"]

voice = 'train_dotrice' #@param {type:"string"}

#@markdown Load it and send it through Tortoise.
voice_samples, conditioning_latents = load_voice(voice)
gen = tts.tts_with_preset(text, voice_samples=voice_samples, conditioning_latents=conditioning_latents,
preset=preset)
torchaudio.save('generated.wav', gen.squeeze(0).cpu(), 24000)

can any one please help me runnig this as i want to run urdu languge tts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant