mateclaw/mateclaw-server/src/main/java/vip/mate/tts/TtsRequest.java

32 lines
587 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package vip.mate.tts;
import lombok.Builder;
import lombok.Data;
/**
* TTS 语音合成统一请求
*
* @author MateClaw Team
*/
@Data
@Builder
public class TtsRequest {
/** 待合成的文本 */
private String text;
/** 语音 ID可选使用 Provider 默认) */
private String voice;
/** 模型名称(可选) */
private String model;
/** 语速 0.5-2.0,默认 1.0 */
@Builder.Default
private Double speed = 1.0;
/** 输出格式mp3 / ogg / wav默认 mp3 */
@Builder.Default
private String format = "mp3";
}