Skip to content

Commit 7d5c511

Browse files
committed
Merge pull request #15 from fiendish/patch-1
notify about fix for possible missing SAPI
2 parents 140751d + 797b455 commit 7d5c511

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugins/Text_To_Speech.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,12 @@ function OnPluginInstall ()
9999
require "luacom"
100100
101101
-- Instantiate a SAPI voice obejct
102-
talk = assert (luacom.CreateObject ("SAPI.SpVoice"), "cannot open SAPI")
102+
talk = assert (luacom.CreateObject ("SAPI.SpVoice"), [[
103+
Cannot open SAPI.
104+
Note for Linux and Mac OS users. Text to speech functionality depends on the Microsoft Speech API.
105+
This is not included by default in Wine, and SpeechSDK51.exe must be separately installed.
106+
You can download it from http://download.microsoft.com/download/B/4/3/B4314928-7B71-4336-9DE7-6FA4CF00B7B3/SpeechSDK51.exe
107+
]])
103108
104109
-- Method call
105110
talk:Speak ("SAPI Plug-in installed and is ready.", 1)

0 commit comments

Comments
 (0)