TTS 返回语音优化

This commit is contained in:
2025-10-19 15:44:04 +08:00
parent a2e7e78bee
commit 9e47d0787e
2 changed files with 26 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ public class ElevenLabsClient {
Map<String, Object> payload = new HashMap<>();
payload.put("text", text);
payload.put("model_id", modelId);
payload.put("voice_settings", new VoiceSettings(0.85, 0.5,1,0,0.9));
payload.put("voice_settings", new VoiceSettings(0.85, 0.5,1.1,0,0.9));
Gson gson = new Gson();
StringEntity entity = new StringEntity(gson.toJson(payload), ContentType.APPLICATION_JSON);
httpPost.setEntity(entity);