mirror of
https://github.com/koreader/koreader.git
synced 2026-11-27 06:43:01 +00:00
Enable TTS for the emulator.
On the PC in the EMU mode we can run espeak command which has the same interface as say on Kindle.
This commit is contained in:
1 parent
d1d6cdb056
commit
683ec7570c
1 file changed
+5
-1
+5
-1
@@ -263,7 +263,11 @@ function InfoMessage:getVolumeLevels()
|
||||
end ]]
|
||||
|
||||
function say(text)
|
||||
os.execute("say \""..text.."\"")
|
||||
if util.isEmulated() == 1 then
|
||||
os.execute("espeak \""..text.."\"")
|
||||
else
|
||||
os.execute("say \""..text.."\"")
|
||||
end
|
||||
end
|
||||
|
||||
-- The read/write global InfoMessage settings. When properly tested, the
|
||||
|
||||
Reference in new issue
Block a user