Natural text-to-speech in many languages, including Hebrew, with word timings for captions.
1
Install
python -m pip install edge-tts
2
Check it worked
python -m edge_tts --voice he-IL-HilaNeural --text "היי, זה מבחן קצר" --write-media test.mp3 --write-subtitles test.srt
How we use it
Hebrew voices: he-IL-HilaNeural (female) and he-IL-AvriNeural (male). The test line above gave us a 5-second MP3 and a subtitle file with exact timings in under 2 seconds. Those timings drive our word-by-word captions and the mouth movement.
Watch out for
- It is not an official Microsoft product and needs an internet connection.
- On Windows, after pip install, the edge-tts command was not found. python -m edge_tts worked.


