Skip to content

Commit

Permalink
feat: 更新测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyueyi committed May 4, 2024
1 parent 2b46128 commit f18e38e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions console/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.12.0</version>
<scope>compile</scope>
</dependency>
</dependencies>


Expand Down
12 changes: 6 additions & 6 deletions console/src/test/java/com/github/hui/web/test/TtsTest.java
Original file line number Diff line number Diff line change
@@ -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;

/**
Expand All @@ -17,15 +17,15 @@ 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)
.build();
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)
Expand Down

0 comments on commit f18e38e

Please sign in to comment.