TTS-Spaces-Arena / test_tts_styletts_kokoro_v1.py
Pendrokar's picture
Kokoro v1
b45c900
raw
history blame contribute delete
452 Bytes
import os
from gradio_client import Client, file
client = Client("hexgrad/Kokoro-API", hf_token=os.getenv('KOKORO'))
# endpoints = client.view_api(all_endpoints=True, print_info=False, return_format='dict')
# print(endpoints)
result = client.predict(
text='Hello there, you.',
voice='af_heart',
speed=1,
api_name='/predict'
)
print(result)
# text="Oh, hello there!!",
# voice="af",
# ps=None,
# speed=1,
# trim=3000,
# use_gpu=False,