eSpeak NG

eSpeak NG

create timecodes from fountain script

  • lib/timecodes.lua
    • editor/tests/suite_lingual_page2.lua

create a wav and convert with fmpeg to mp3

  • develop/Misc/espeak_ng

suite_lingual_page2.lua test_timecodes

foutnain text

NEO
Wait. Who was it?
Who was the man?

She leans close, her lips almost touching his ear as she
whispers.

TRINITY
You know who.

She turns and he watches her melt into the shifting wall
of bodies.

A SOUND RISES steadily, growing out of the music,
pressing in on Neo until it is all he can hear as we --

CUT TO:

INT. NEO'S APARTMENT

The sound is an ALARM CLOCK, slowly dragging Neo to
consciousness. He strains to read the clock face:
9:15 A.M.

NEO
Shitshitshit.

ttimecodes by characters

NEO
	0	1.6	Wait. Who was it?
	2.6	4.2	Who was the man?
	5.2	9.6	She leans close, her lips almost touching his ear as she
	10.6	11	whispers.
	41.8	42.2	Shitshitshit.
INT. NEO'S APARTMENT
	32.6	36.6	The sound is an ALARM CLOCK, slowly dragging Neo to
	37.6	40.8	consciousness. He strains to read the clock face:
TRINITY
	12	13.2	You know who.
	14.2	18.6	She turns and he watches her melt into the shifting wall
	19.6	20.4	of bodies.
	21.4	25	A SOUND RISES steadily, growing out of the music,
	26	31.6	pressing in on Neo until it is all he can hear as we --

test_espeak.py

text_with_timestamps = [
    (0, 1.6, "Wait. Who was it?"),
    (2.6, 4.2, "Who was the man?"),
    (5.2, 9.6, "She leans close, her lips almost touching his ear as she whispers."),
    (10.6, 11, "whispers."),
    (41.8, 42.2, "Shitshitshit.")
]

create_mp3_from_text_with_timestamps(text_with_timestamps)

=> output.mp3

espeak-ng "ใ“ใ‚“ใซใกใฏ" -v ja