You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
requestData.put("data", new Object[]{
requestData.put("data", new Object[]{
fileData,
fileData,
samplesText,
samplesText,
genTextInput,
genTextInput,
true,
true,
0.15,
0.15,
32,
32,
1});
1});
// 设置请求头
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);
// 创建请求实体
HttpEntity<Map<String, Object>> requestEntity = new HttpEntity<>(requestData, headers);
// 发送 POST 请求并获取 eventId
ResponseEntity<Map> response = restTemplate.exchange(
"http://192.168.254.10:7860/gradio_api/call/basic_tts",
HttpMethod.POST,
requestEntity,
Map.class
); im want know why
2. What is your suggested solution?
SORRY, NOT SOLUTON
3. Additional context or comments
I'm using java to call the api, @PostMapping("/convertToSpeechFile")
public AjaxResult convertToSpeechFile(@RequestParam("AudioSamples") MultipartFile audioSamples, @RequestParam("SamplesText") String samplesText) {
Checks
1. Is this request related to a challenge you're experiencing? Tell us your story.
to the gradio cache dir because it was not uploaded by a user.<= An error message is reported in the console. im use this api=>curl -X POST http://192.168.254.10:7860/gradio_api/call/basic_tts -s -H "Content-Type: application/json" -d '{
到渐变缓存目录,因为它不是由用户上传的。<= 控制台中报告错误消息。我使用这个api=>curl -X POST http://192.168.254.10:7860/gradio_api/call/basic_tts -s -H "Content-Type: application/json" -d '{
"data": [
“数据”: [
{"path":"https://github.com/gradio-app/gradio/raw/main/test/test_files/audio_sample.wav"},
{“路径”:“https://github.com/gradio-app/gradio/raw/main/test/test_files/audio_sample.wav”},
"Hello!!",
“你好!!”,
"Hello!!",
“你好!!”,
true,
真的,
0,
0,
4,
4、
0.3
0.3
]}'
]}'
| awk -F'"' '{ print $4}'
| awk -F'"' '{ 打印 $4}'
| read EVENT_ID; curl -N http://192.168.254.10:7860/gradio_api/call/basic_tts/$EVENT_ID*************************=> this my // 构建请求数据
|读取EVENT_ID;卷曲 -N http://192.168.254.10:7860/gradio_api/call/basic_tts/$EVENT_ID************************=> 这是我的// 构建请求数据
Map<String, Object> requestData = new HashMap<>();
Map requestData = new HashMap<>();
Map<String, Object> fileData = new HashMap<>();
Map fileData = new HashMap<>();
// 使用 HashMap 创建 meta 数据
// 使用HashMap创建元数据
Map<String, String> metaData = new HashMap<>();
Map metaData = new HashMap<>();
// 将 fileData 和 additionalData 添加到 requestData
// 将 fileData 和 additionalData 添加到 requestData
requestData.put("data", new Object[]{
requestData.put("data", new Object[]{
fileData,
fileData,
samplesText,
samplesText,
genTextInput,
genTextInput,
true,
true,
0.15,
0.15,
32,
32,
1});
1});
2. What is your suggested solution?
SORRY, NOT SOLUTON
3. Additional context or comments
I'm using java to call the api, @PostMapping("/convertToSpeechFile")
public AjaxResult convertToSpeechFile(@RequestParam("AudioSamples") MultipartFile audioSamples, @RequestParam("SamplesText") String samplesText) {
// 固定文本
String genTextInput = "命令的作用是阻止服务器从缓存中获取数据。具体来说,-N选项告诉curl不要使用缓存的数据,而是直接从服务器获取最新的数据。这对于确保获取最新的网页内容非常有用,尤其是在调试或测试时。";
// 将 fileData 和 additionalData 添加到 requestData
requestData.put("data", new Object[]{
fileData,
samplesText,
genTextInput,
true,
0.15,
32,
1});
4. Can you help us with this feature?
The text was updated successfully, but these errors were encountered: