From f18e38ee5cf765f48e52e95fa5d5c63a2ec92558 Mon Sep 17 00:00:00 2001 From: yihui Date: Sat, 4 May 2024 21:14:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/pom.xml | 6 ++++++ .../test/java/com/github/hui/web/test/TtsTest.java | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/console/pom.xml b/console/pom.xml index e034f54b..9ad8b0fa 100644 --- a/console/pom.xml +++ b/console/pom.xml @@ -136,6 +136,12 @@ junit test + + commons-io + commons-io + 2.12.0 + compile + diff --git a/console/src/test/java/com/github/hui/web/test/TtsTest.java b/console/src/test/java/com/github/hui/web/test/TtsTest.java index fd4ca86c..0e0d183d 100644 --- a/console/src/test/java/com/github/hui/web/test/TtsTest.java +++ b/console/src/test/java/com/github/hui/web/test/TtsTest.java @@ -1,9 +1,9 @@ package com.github.hui.web.test; -import io.ikfly.constant.OutputFormat; -import io.ikfly.constant.VoiceEnum; -import io.ikfly.model.SSML; -import io.ikfly.service.TTSService; +import com.github.hui.quick.plugin.tts.constant.OutputFormatEnum; +import com.github.hui.quick.plugin.tts.constant.VoiceEnum; +import com.github.hui.quick.plugin.tts.model.SSML; +import com.github.hui.quick.plugin.tts.service.TTSService; import org.junit.Test; /** @@ -17,7 +17,7 @@ public void testTrans() { TTSService ts = new TTSService(); ts.setBaseSavePath("d:\\"); // 设置保存路径 SSML ssml = SSML.builder() - .outputFormat(OutputFormat.audio_24khz_48kbitrate_mono_mp3) + .outputFormat(OutputFormatEnum.audio_24khz_48kbitrate_mono_mp3) .synthesisText("Popcorn") .outputFileName("grape") .voice(VoiceEnum.zh_CN_XiaoruiNeural) @@ -25,7 +25,7 @@ public void testTrans() { ts.sendText(ssml); ts.sendText(SSML.builder() - .outputFormat(OutputFormat.audio_24khz_48kbitrate_mono_mp3) + .outputFormat(OutputFormatEnum.audio_24khz_48kbitrate_mono_mp3) .synthesisText("我喜欢吃葡萄,I love to eat Popcorn") .outputFileName("grape sentence") .voice(VoiceEnum.zh_CN_XiaoruiNeural)