feat(mobile): expand TTS voices and align App SDK
This commit is contained in:
+12
-1
@@ -81,7 +81,18 @@ public class AihrSpeechService {
|
||||
"neutral", QWEN_TTS_DEFAULT_VOICE
|
||||
);
|
||||
private static final java.util.Set<String> QWEN_TTS_VOICES = java.util.Set.of(
|
||||
"longanhuan_v3.6", "longjielidou_v3.6", "loongeva_v3.6", "loongjohn"
|
||||
"longanhuan_v3.6",
|
||||
"longjielidou_v3.6",
|
||||
"loongeva_v3.6",
|
||||
"loongjohn",
|
||||
"qwen-audio-3.0-tts-flash-longyingmuyu",
|
||||
"qwen-audio-3.0-tts-flash-longyingshiyu",
|
||||
"qwen-audio-3.0-tts-flash-longchezhuyu",
|
||||
"qwen-audio-3.0-tts-flash-longyingyueyue",
|
||||
"qwen-audio-3.0-tts-flash-longluxiaohui",
|
||||
"qwen-audio-3.0-tts-flash-longlanqinluan",
|
||||
"qwen-audio-3.0-tts-flash-longluliuche",
|
||||
"qwen-audio-3.0-tts-flash-longliuxulan"
|
||||
);
|
||||
|
||||
private final AihrModelSeedService modelService;
|
||||
|
||||
+8
@@ -90,6 +90,14 @@ class AihrSpeechServiceTest {
|
||||
"https://ws-example.cn-beijing.maas.aliyuncs.com/api/v1/services/audio/tts/SpeechSynthesizer",
|
||||
AihrSpeechService.dashScopeSynthesisUri("https://ws-example.cn-beijing.maas.aliyuncs.com/compatible-mode/v1").toString()
|
||||
);
|
||||
|
||||
var extendedVoiceBody = AihrSpeechService.buildDashScopeRequestBody(
|
||||
mapper, runtime, "请确认本次服务已经完成。",
|
||||
new VoiceProfile("neutral", "qwen-audio-3.0-tts-flash-longyingmuyu", null, null, null));
|
||||
assertEquals(
|
||||
"qwen-audio-3.0-tts-flash-longyingmuyu",
|
||||
extendedVoiceBody.path("input").path("voice").asText()
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user