Skip to content

Commit

Permalink
- 1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteMagic2014 committed Sep 9, 2024
1 parent 34bab62 commit 349fe45
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,18 @@ 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()
// .voiceVolume()
// .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
}
```

Expand Down

0 comments on commit 349fe45

Please sign in to comment.