From 683ec7570c31fd6397e92a86b4bbe43a9b80fd1d Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Sat, 6 Oct 2012 10:10:03 +0100 Subject: [PATCH] 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. --- dialog.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dialog.lua b/dialog.lua index 299dce0d4..e71683cb6 100644 --- a/dialog.lua +++ b/dialog.lua @@ -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