-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4997685
commit 00eedf7
Showing
5 changed files
with
206 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
jcommon/ai/minimax/src/main/java/run/mone/ai/minimax/bo/ModelEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package run.mone.ai.minimax.bo; | ||
|
||
public enum ModelEnum { | ||
|
||
Speech01("speech-01"), | ||
Speech02("speech-02"); | ||
|
||
public String modelName; | ||
|
||
ModelEnum(String name) { | ||
this.modelName = name; | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
jcommon/ai/minimax/src/main/java/run/mone/ai/minimax/bo/RequestBodyContent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package run.mone.ai.minimax.bo; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class RequestBodyContent { | ||
|
||
@Builder.Default | ||
private String model = ModelEnum.Speech01.modelName; | ||
|
||
@Builder.Default | ||
private String voice_id = VoiceIdEnum.male_qn_qingse.voiceId; | ||
|
||
private String text; | ||
|
||
/** | ||
* 范围[0.5, 2],取值越大,语速越快 | ||
*/ | ||
@Builder.Default | ||
private double speed = 1.0; | ||
|
||
/** | ||
* 范围(0, 10],取值越大,音量越高 | ||
*/ | ||
@Builder.Default | ||
private double vol = 1.0; | ||
|
||
/** | ||
* 默认值为mp3,可选范围:mp3、wav、pcm、flac、aac | ||
*/ | ||
@Builder.Default | ||
private String output_format = "mp3"; | ||
} |
120 changes: 120 additions & 0 deletions
120
jcommon/ai/minimax/src/main/java/run/mone/ai/minimax/bo/VoiceIdEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
package run.mone.ai.minimax.bo; | ||
|
||
public enum VoiceIdEnum { | ||
|
||
/** | ||
* 青涩青年音色:male-qn-qingse | ||
*/ | ||
male_qn_qingse("male-qn-qingse"), | ||
|
||
/** | ||
* 精英青年音色:male-qn-jingying | ||
*/ | ||
male_qn_jingying("male-qn-jingying"), | ||
|
||
/** | ||
* 霸道青年音色:male-qn-badao | ||
*/ | ||
male_qn_badao("male-qn-badao"), | ||
|
||
/** | ||
* 青年大学生音色:male-qn-daxuesheng | ||
*/ | ||
male_qn_daxuesheng("male-qn-daxuesheng"), | ||
|
||
/** | ||
* 少女音色:female-shaonv | ||
*/ | ||
female_shaonv("female-shaonv"), | ||
|
||
/** | ||
* 御姐音色:female-yujie | ||
*/ | ||
female_yujie("female-yujie"), | ||
|
||
/** | ||
* 成熟女性音色:female-chengshu | ||
*/ | ||
female_chengshu("female-chengshu"), | ||
|
||
/** | ||
* 甜美女性音色:female-tianmei | ||
*/ | ||
female_tianmei("female-tianmei"), | ||
|
||
/** | ||
* 男性主持人:presenter_male | ||
*/ | ||
presenter_male("presenter_male"), | ||
|
||
/** | ||
* 女性主持人:presenter_female | ||
*/ | ||
presenter_female("presenter_female"), | ||
|
||
/** | ||
* 男性有声书1:audiobook_male_1 | ||
*/ | ||
audiobook_male_1("audiobook_male_1"), | ||
|
||
/** | ||
* 男性有声书2:audiobook_male_2 | ||
*/ | ||
audiobook_male_2("audiobook_male_2"), | ||
|
||
/** | ||
* 女性有声书1:audiobook_female_1 | ||
*/ | ||
audiobook_female_1("audiobook_female_1"), | ||
|
||
/** | ||
* 女性有声书2:audiobook_female_2 | ||
*/ | ||
audiobook_female_2("audiobook_female_2"), | ||
|
||
/** | ||
* 青涩青年音色-beta:male-qn-qingse-jingpin | ||
*/ | ||
male_qn_qingse_jingpin("male-qn-qingse-jingpin"), | ||
|
||
/** | ||
* 精英青年音色-beta:male-qn-jingying-jingpin | ||
*/ | ||
male_qn_jingying_jingpin("male-qn-jingying-jingpin"), | ||
|
||
/** | ||
* 霸道青年音色-beta:male-qn-badao-jingpin | ||
*/ | ||
male_qn_badao_jingpin("male-qn-badao-jingpin"), | ||
|
||
/** | ||
* 青年大学生音色-beta:male-qn-daxuesheng-jingpin | ||
*/ | ||
male_qn_daxuesheng_jingpin("male-qn-daxuesheng-jingpin"), | ||
|
||
/** | ||
* 少女音色-beta:female-shaonv-jingpin | ||
*/ | ||
female_shaonv_jingpin("female-shaonv-jingpin"), | ||
|
||
/** | ||
* 御姐音色-beta:female-yujie-jingpin | ||
*/ | ||
female_yujie_jingpin("female-yujie-jingpin"), | ||
|
||
/** | ||
* 成熟女性音色-beta:female-chengshu-jingpin | ||
*/ | ||
female_chengshu_jingpin("female-chengshu-jingpin"), | ||
|
||
/** | ||
* 甜美女性音色-beta:female-tianmei-jingpin | ||
*/ | ||
female_tianmei_jingpin("female-tianmei-jingpin"); | ||
|
||
public String voiceId; | ||
|
||
VoiceIdEnum(String id) { | ||
this.voiceId = id; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters