-
Notifications
You must be signed in to change notification settings - Fork 15
/
TTS_SystemAccess.xml
111 lines (91 loc) · 1.73 KB
/
TTS_SystemAccess.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Tuesday, December 09, 2008, 2:04 PM -->
<!-- MuClient version 4.37 -->
<!-- Plugin "system_access" generated by Plugin Wizard -->
<muclient>
<plugin
name="TTS_SystemAccess"
author="Tyler Spivey"
id="c97ea1385bf01fd29c866716"
language="Lua"
purpose="enables SystemAccess speech"
save_state="y"
date_written="2009-11-06 17:00:34"
requires="4.37"
version="1.0"
>
</plugin>
<aliases>
<alias
match="tts_stop"
enabled="y"
send_to="12"
sequence="100"
>
<send>
sa.stop()
</send>
</alias>
<alias
match="tts_interrupt *"
enabled="y"
send_to="12"
sequence="100"
>
<send>
sa.stop()
sa.say("%1")
</send>
</alias>
<alias
match="tts_note *"
enabled="y"
send_to="12"
sequence="100"
>
<send>
sa.say("%1")
</send>
</alias>
<alias
script="TTSToggle"
match="tts"
enabled="y"
group="TTS"
omit_from_command_history="y"
omit_from_log="y"
omit_from_output="y"
sequence="100"
>
</alias>
</aliases>
<script>
<![CDATA[
tts_enabled = true
function OnPluginInstall ()
assert(package.loadlib("sa.dll", "luaopen_audio"))()
sa.say("SA plugin initialized")
end
function OnPluginScreendraw(t, log, line)
AppendToNotepad("output", line .. "\r\n")
if not tts_enabled then
return
end --tts off
if t == 0 or -- output line
t == 1 then -- note line
sa.say(line)
end -- if
end -- function OnPluginScreendraw
function TTSToggle (name, line, wc)
if tts_enabled then
tts_enabled = false
sa.say ("speech off")
else
tts_enabled = true
sa.say ("speech on")
end -- if
end -- function TTSToggle
]]>
</script>
</muclient>