From 349fe45970b70f52824676180fd11372d802232d Mon Sep 17 00:00:00 2001 From: magic chen <418379149@qq.com> Date: Mon, 9 Sep 2024 14:17:50 +0800 Subject: [PATCH] - 1.2.3 --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9888519..493f9c3 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,10 @@ public static void main(String[] args) { Voice voice = TTSVoice.provides().stream().filter(v -> v.getShortName().equals("zh-CN-XiaoyiNeural")).collect(Collectors.toList()).get(0); String content = "你好,有什么可以帮助你的吗"; String fileName = new TTS(voice, content) - .fileName("file name")// You can customize the file name; if omitted, a random file name will be generated. -// .formatMp3() // default mp3. + .findHeadHook() + .fileName("file name")// You can customize the file name; if omitted, a random file name will be generated. + .overwrite(false) // When the specified file name is the same, it will either overwrite or append to the file. + .formatMp3() // default mp3. // .formatOpus() // or opus // .voicePitch() // .voiceRate() @@ -42,7 +44,7 @@ public static void main(String[] args) { // .storage() // the output file storage ,default is ./storage // .connectTimeout(0) // set connect timeout .trans(); - // you can find the voice file in storage folder + // you can find the voice file in storage folder } ```