metavoice-src icon indicating copy to clipboard operation
metavoice-src copied to clipboard

Kaggle Notebook?

Open MethanJess opened this issue 9 months ago • 2 comments

Kaggle offers a free 16gb VRam GPU / TPU for 20-30 hours per week

It would be really nice to have a Metavoice notebook for it, I tried to import the Google Colab notebook into Kaggle but it kept throwing errors... Can anyone make a notebook for it? thanks!

MethanJess avatar May 06 '24 21:05 MethanJess

Hi

Sarwarkhann avatar May 28 '24 03:05 Sarwarkhann

#Cloning the repo !git clone -b vatsal/make_2_5x_faster https://github.com/metavoiceio/metavoice-src.git %cd metavoice-src

Install dependencies

!pip install -r requirements.txt !pip install --upgrade torch torchaudio !pip install -e .

Loading Text-to-Speech model --Metavoice

from fam.llm.fast_inference import TTS tts = TTS() response = "This is the demo for Metavoice TTS with voice cloning" wav_file = tts.synthesise( text=response, spk_ref_path="/kaggle/input/sample.mp3" ) print(f"Response generated:/n{display(Audio(wav_file, autoplay=True))}")

The above code is working properly in Kaggle notebook

chinmaya-growexxer avatar Aug 29 '24 07:08 chinmaya-growexxer