-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild-sapi.xml
29 lines (20 loc) · 993 Bytes
/
build-sapi.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
<?xml version="1.0"?>
<project name="sapi-wrapper" default="tlbimp" basedir=".">
<property name="com4j.dir" value="${basedir}/com4jTools"/>
<taskdef resource="com4j/tlbimp/ant.properties">
<classpath>
<fileset dir="${com4j.dir}" includes="tlbimp.jar"/>
</classpath>
</taskdef>
<target name="tlbimp">
<!-- compile Microsoft Speech API -->
<!-- In the registry Found in the TypeLib/ default value for the library SAPI.SpLexicon.1
The LIBID seems linked to in %SystemRoot%\System32\Speech\Common\sapi.dll -->
<tlbimp libid="C866CA3A-32F7-11D2-9602-00C04F8EE628" destdir="transformers" package="se_tpb_speechgen2.external.win.sapi5" />
<!-- Onecore dll (to check for sapi extensions, and possibly voices) -->
<tlbimp libid="E6DA930B-BBA5-44DF-AC6F-FE60C1EDDEC8" destdir="transformers" package="se_tpb_speechgen2.external.win.sapi5.onecore" />
</target>
<target name="clean">
<delete dir="sapi5"/>
</target>
</project>