TTS-Spaces-Arena / test_tts_ims-toucan.py
Pendrokar's picture
New TTS: IMS-Toucan
6fd6025
raw
history blame
476 Bytes
import os
from gradio_client import Client
client = Client("Flux9665/MassivelyMultilingualTTS", hf_token=os.getenv('HF_TOKEN'))
endpoints = client.view_api(all_endpoints=True, print_info=False, return_format='dict')
# print(endpoints)
result = client.predict(
prompt="What I cannot create, I do not understand.",
language="English (eng)",
prosody_creativity=0.5,
duration_scaling_factor=1,
voice_seed=27,
emb1=-7.5,
reference_audio=None,
api_name="/predict"
)