From 8f096598abc64984f16f484f300a6189514e9ca4 Mon Sep 17 00:00:00 2001 From: rany2 Date: Sun, 30 Apr 2023 23:56:35 +0300 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 454d986..7a56b2a 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you only want to use the `edge-tts` and `edge-playback` commands, it would be If you want to use the `edge-tts` command, you can simply run it with the following command: - $ edge-tts --text "Hello, world!" --write-media hello.mp3 + $ edge-tts --text "Hello, world!" --write-media hello.mp3 --write-subtitles hello.vtt If you wish to play it back immediately with subtitles, you could use the `edge-playback` command: @@ -57,7 +57,7 @@ You must first check the available voices with the `--list-voices` option: ... - $ edge-tts --voice ar-EG-SalmaNeural --text "مرحبا كيف حالك؟" --write-media hello_in_arabic.mp3 + $ edge-tts --voice ar-EG-SalmaNeural --text "مرحبا كيف حالك؟" --write-media hello_in_arabic.mp3 --write-subtitles hello_in_arabic.vtt ### Custom SSML @@ -67,8 +67,8 @@ Support for custom SSML has been removed since 5.0.0 because Microsoft has taken It is possible to make minor changes to the generated speech. - $ edge-tts --rate=-50% --text "Hello, world!" --write-media hello_with_rate_halved.mp3 - $ edge-tts --volume=-50% --text "Hello, world!" --write-media hello_with_volume_halved.mp3 + $ edge-tts --rate=-50% --text "Hello, world!" --write-media hello_with_rate_halved.mp3 --write-subtitles hello_with_rate_halved.vtt + $ edge-tts --volume=-50% --text "Hello, world!" --write-media hello_with_volume_halved.mp3 --write-subtitles hello_with_volume_halved.vtt In addition, it is required to use `--rate=-50%` instead of `--rate -50%` (note the lack of an equal sign) otherwise the `-50%` would be interpreted as just another argument.