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 } ```