I am making a pdf reader and am using pyttsx3 for TTS. But i want it to have a "play and pause" like feature but i wasn't able to do this with pyttsx3.I have tried to take the location of where it stops,when "pause" button is clicked by the user, by using the Start_word()
event(because it throws the name,location and length of the current word being synthesized) but then i can't start or "resume" from that point because startLoop()
starts from the begining.Thanks in advance!
Asked
Active
Viewed 1,318 times
0

Tom
- 100
- 8
-
You can always use something other than `pyttsx`... – xilpex Apr 04 '19 at 21:33
-
You could also convert it to an audio file then play the audio file with something like `pygame`... – xilpex Apr 04 '19 at 21:34
-
ok,....like then,i can catch at what length of the audio it stoped and start from there during "resume".Thanks,am gonna try it!. – Tom Apr 05 '19 at 22:51
-
No problem! Hope it works... – xilpex Apr 05 '19 at 22:51
-
1Was it ever found to be possible to convert the pyttsx engine to an mp3 file? Or is the best solution still at: https://github.com/nateshmbhat/pyttsx3/issues/7#issuecomment-363887284 ? – which_command May 28 '19 at 10:38