办学质量监测教学评价系统
ageer
2025-05-24 bedffffd8673cf62a5e4530bda584fc714c61731
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package org.ruoyi.common.chat.entity.Tts;
 
 
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
 
@Data
@Builder
@JsonInclude(JsonInclude.Include.NON_NULL)
@NoArgsConstructor
@AllArgsConstructor
public class TextToSpeech {
 
    @Builder.Default
    private String model = Model.TTS_1.getName();
    /**
     * 音频声音源
     *
     * @see TtsVoice
     */
    private String voice;
    /**
     * 输入内容
     */
    private String input;
    /**
     * 输出音频文件格式
     *
     * @see TtsFormat
     */
    @JsonProperty("response_format")
    private String responseFormat;
    /**
     * 速度调节,默认是1,取值范围0.25——4.0
     */
    private Double speed;
 
 
    @Getter
    @AllArgsConstructor
    public enum Model {
        TTS_1("tts-1"),
        TTS_1_HD("tts-1-hd"),
        ;
        private final String name;
    }
}