152334H / tortoise-tts-fast

Fast TorToiSe inference (5x or your money back!)
GNU Affero General Public License v3.0
774 stars 179 forks source link

help #144

Open paisekamao opened 1 month ago

paisekamao commented 1 month ago

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 commented 1 month ago

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