From 797b45595c12f7a47b650e162542cae1e5a54a4d Mon Sep 17 00:00:00 2001 From: Avi Kelman Date: Wed, 24 Feb 2016 13:26:28 +0100 Subject: [PATCH] notify about fix for possible missing SAPI --- plugins/Text_To_Speech.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/Text_To_Speech.xml b/plugins/Text_To_Speech.xml index 3a3a44cd..1351de97 100644 --- a/plugins/Text_To_Speech.xml +++ b/plugins/Text_To_Speech.xml @@ -99,7 +99,12 @@ function OnPluginInstall () require "luacom" -- Instantiate a SAPI voice obejct - talk = assert (luacom.CreateObject ("SAPI.SpVoice"), "cannot open SAPI") + talk = assert (luacom.CreateObject ("SAPI.SpVoice"), [[ + Cannot open SAPI. + Note for Linux and Mac OS users. Text to speech functionality depends on the Microsoft Speech API. + This is not included by default in Wine, and SpeechSDK51.exe must be separately installed. + You can download it from http://download.microsoft.com/download/B/4/3/B4314928-7B71-4336-9DE7-6FA4CF00B7B3/SpeechSDK51.exe + ]]) -- Method call talk:Speak ("SAPI Plug-in installed and is ready.", 1)