Skip to content

Commit 349fe45

Browse files
- 1.2.3
1 parent 34bab62 commit 349fe45

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,18 @@ public static void main(String[] args) {
3333
Voice voice = TTSVoice.provides().stream().filter(v -> v.getShortName().equals("zh-CN-XiaoyiNeural")).collect(Collectors.toList()).get(0);
3434
String content = "你好,有什么可以帮助你的吗";
3535
String fileName = new TTS(voice, content)
36-
.fileName("file name")// You can customize the file name; if omitted, a random file name will be generated.
37-
// .formatMp3() // default mp3.
36+
.findHeadHook()
37+
.fileName("file name")// You can customize the file name; if omitted, a random file name will be generated.
38+
.overwrite(false) // When the specified file name is the same, it will either overwrite or append to the file.
39+
.formatMp3() // default mp3.
3840
// .formatOpus() // or opus
3941
// .voicePitch()
4042
// .voiceRate()
4143
// .voiceVolume()
4244
// .storage() // the output file storage ,default is ./storage
4345
// .connectTimeout(0) // set connect timeout
4446
.trans();
45-
// you can find the voice file in storage folder
47+
// you can find the voice file in storage folder
4648
}
4749
```
4850

0 commit comments

Comments
 (0)