File size: 543 Bytes
083bb97
5df1eeb
083bb97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5df1eeb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from gradio_client import Client, file
import json

async def test():
	client = Client("fishaudio/fish-speech-1")
	result = client.predict(
			text="Hello!!",
			enable_reference_audio=False,
			reference_audio=file('https://github.com/gradio-app/gradio/raw/main/test/test_files/audio_sample.wav'),
			reference_text="",
			max_new_tokens=0,
			chunk_length=200,
			top_p=0.7,
			repetition_penalty=1.2,
			temperature=0.7,
			batch_infer_num=1,
			if_load_asr_model=False,
			api_name="/inference_wrapper"
	)
	return repr(json.dumps(result))