-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathSpeak.ouc
More file actions
19 lines (19 loc) · 747 Bytes
/
Speak.ouc
File metadata and controls
19 lines (19 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0"?>
<button backcol="none" display="icon" textcol="none">
<label>Speak</label>
<tip>Text to speech</tip>
<template>TEXT/R</template>
<icon1>#usercommand</icon1>
<function type="script">
<instruction>@script JScript</instruction>
<instruction>// Version: 221021</instruction>
<instruction>// Author: @Chaoses-Ib</instruction>
<instruction>// HomePage: https://github.com/Chaoses-Ib/IbDOpusScripts</instruction>
<instruction />
<instruction>function OnClick(clickData)</instruction>
<instruction>{</instruction>
<instruction> var v = new ActiveXObject("SAPI.SpVoice")</instruction>
<instruction> v.speak(clickData.func.args.TEXT)</instruction>
<instruction>}</instruction>
</function>
</button>