mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +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:
@@ -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