File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments