| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- package com.ruoyi.aicall.model;
- import com.alibaba.fastjson.annotation.JSONField;
- import lombok.Builder;
- import lombok.Data;
- @Data
- @Builder
- public class DoubaoVclTtsRequest {
- @JSONField(name = "app")
- private App app;
- @JSONField(name = "user")
- private User user;
- @JSONField(name = "audio")
- private Audio audio;
- @JSONField(name = "request")
- private Request request;
- @Data
- @Builder
- public static class App {
- @JSONField(name = "appid")
- private String appid;
- @JSONField(name = "token")
- private String token;
- @JSONField(name = "cluster")
- private String cluster;
- }
- @Data
- @Builder
- public static class User {
- @JSONField(name = "uid")
- private String uid;
- }
- @Data
- @Builder
- public static class Audio {
- @JSONField(name = "voice_type")
- private String voiceType;
- @JSONField(name = "voice")
- private String voice;
- @JSONField(name = "encoding")
- private String encoding;
- @JSONField(name = "speed_ratio")
- private Double speedRatio;
- @JSONField(name = "volume_ratio")
- private Double volumeRatio;
- @JSONField(name = "pitch_ratio")
- private Double pitchRatio;
- @JSONField(name = "emotion")
- private String emotion;
- @JSONField(name = "language")
- private String language;
- }
- @Data
- @Builder
- public static class Request {
- @JSONField(name = "reqid")
- private String reqID;
- @JSONField(name = "text")
- private String text;
- @JSONField(name = "text_type")
- private String textType;
- @JSONField(name = "operation")
- private String operation;
- @JSONField(name = "silence_duration")
- private Integer silenceDuration;
- }
- }
|