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:
Tigran Aivazian
2012-10-06 10:10:03 +01:00
parent d1d6cdb056
commit 683ec7570c

View File

@@ -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