Skip to content

Commit

Permalink
Merge pull request #15 from fiendish/patch-1
Browse files Browse the repository at this point in the history
notify about fix for possible missing SAPI
  • Loading branch information
nickgammon committed Feb 24, 2016
2 parents 140751d + 797b455 commit 7d5c511
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/Text_To_Speech.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7d5c511

Please sign in to comment.