from gradio_client import Client, handle_file client = Client("ResembleAI/Chatterbox") result = client.predict( text_input="Now let's make my mum's favourite. So three mars bars into the pan. Then we add the tuna and just stir for a bit, just let the chocolate and fish infuse. A sprinkle of olive oil and some tomato ketchup. Now smell that. Oh boy this is going to be incredible.", audio_prompt_path_input=handle_file('https://github.com/gradio-app/gradio/raw/main/test/test_files/audio_sample.wav'), exaggeration_input=0.5, temperature_input=0.8, seed_num_input=0, cfgw_input=0.5, api_name="/generate_tts_audio" ) print(result)