File size: 476 Bytes
6fd6025
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"
)