View Single Post
Old 10-22-2020, 12:52 PM   #47
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,491
Karma: 28005164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Your existing plugin already does wav to mp3 conversion using lame, that part will remain the same. I will upload a beta windows build for you, so you can access the winsapi module. You just need to do

Code:
from calibre_extensions.winsapi import ISpVoice
spv = ISpVoice()
spv.create_recording_wav('test.wav', 'Hello, world!')
kovidgoyal is offline   Reply With Quote