View Single Post
Old 05-18-2018, 09:09 AM   #10
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Doitsu View Post
Feel free to create a similar Calibre plugin. (Since I used a Python 3-only TTS library, you'll probably have to use pyttsx.)
I'm hoping to be able to build the few SAPI interface calls required from win32com which is already included in calibre, e.g. replace
Code:
voice = comtypes.client.CreateObject('Sapi.SpVoice')
with
Code:
voice = win32com.client.Dispatch("SAPI.SpVoice")
Initial testing seems OK, but this is why I don't want to make any promises yet.

ETA: Also, I'm currently favouring a calibre User Interface type of plugin rather than a calibre Editor plugin. Mainly because it has full access to calibre library metadata rather than just the current OPF contents. It would also make it easier to extend the functionality (at a later date) to processing multiple books at a time.

Last edited by jackie_w; 05-18-2018 at 09:15 AM. Reason: ETA
jackie_w is offline   Reply With Quote