Edit the readme too.

This commit is contained in:
laurent 2025-07-16 21:06:05 +02:00
parent cecbe46d4b
commit 87b3c602c9

View File

@ -237,6 +237,14 @@ echo "Hey, how are you?" | python scripts/tts_pytorch.py - -
python scripts/tts_pytorch.py text_to_say.txt audio_output.wav python scripts/tts_pytorch.py text_to_say.txt audio_output.wav
``` ```
The `tts_pytorch.py` script waits for all the text to be available before
starting the audio generation. A fully streaming implementation is available in
the `tts_pytorch_streaming.py` script, which can be used as follows:
```bash
echo "Hey, how are you?" | python scripts/tts_pytorch_streaming.py audio_output.wav
```
This requires the [moshi package](https://pypi.org/project/moshi/), which can be installed via pip. This requires the [moshi package](https://pypi.org/project/moshi/), which can be installed via pip.
If you have [uv](https://docs.astral.sh/uv/) installed, you can skip the installation step If you have [uv](https://docs.astral.sh/uv/) installed, you can skip the installation step
and just prefix the command above with `uvx --with moshi`. and just prefix the command above with `uvx --with moshi`.