Skip to content

Commit 6d207b9

Browse files
fix: Modify the test cases for text - to - mp3 format audio conversion
1 parent ef94a5b commit 6d207b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/zhipu/oapi/V4Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class V4Test {
4949
private static final String API_BASE_URL = Constants.getBaseUrl();
5050

5151

52-
private static final ClientV4 client = new ClientV4.Builder("http://localhost:9203/v4/audio/speech?Authorization=Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX3R5cGUiOiJTRVJWSUNFIiwidXNlcl9pZCI6MywiYXBpX2tleSI6IjM0ZDhiM2ExNDQ2OTQ0MmY5MTJkNzg5MTJjZjZlMjU1IiwidXNlcl9rZXkiOiIyNzQyNjM0My1iYjI0LTQ4ZDktODVjNy01ODFmMjUwNzBiMzMiLCJjdXN0b21lcl9pZCI6IjEwMDAwMyIsInVzZXJuYW1lIjoiY3BjMTk4NiJ9.3MsaFjRAyArDp2WZsVbvKGPrVjkKvGB5EfBafprcFogbDeZv4s9VCQt4wUaR4FVon1tiL_pnqtMaI6qGGXs0Qg",API_SECRET_KEY)
52+
private static final ClientV4 client = new ClientV4.Builder(API_BASE_URL, API_SECRET_KEY)
5353
.enableTokenCache()
5454
.networkConfig(300, 100, 100, 100, TimeUnit.SECONDS)
5555
.connectionPool(new okhttp3.ConnectionPool(8, 1, TimeUnit.SECONDS))
@@ -674,7 +674,7 @@ public void testAudioSpeechStreaming() throws IOException {
674674
AudioSpeechRequest.builder()
675675
.model(Constants.ModelTTS)
676676
.encodeFormat("base64")
677-
.input("不好,欢迎来到智谱开放平台")
677+
.input("你好,欢迎来到智谱开放平台")
678678
.voice("female")
679679
.stream(Boolean.TRUE)
680680
.responseFormat("wav")

0 commit comments

Comments
 (0)