All necessary files are included in the alicetalker14.jar or alicatalker14.zip files. Download and unpack one of these files to create a new "AliceTalker" folder. Note: included in the bundle is Cloudgarden's demo JSAPI implementation version 1.6.2 which expires in 30 days. To purchase and install the non-demo version, read this...
1)
Start
the Alice server: 2)
Start
up AliceTalker: 3) Connect to Alice: Using the HTTP port (recommended): When the main AliceTalker frame appears, just hit the "Connect" button to connect to an AliceServer on the localhost on port 2001 (the default HTTP port). If you are running the server on a different machine or port, make changes accordingly. You can enter a user-name and password and this will let Alice distinguish you from other web or AliceTalker clients also using the http port.If the red label under the "Connect" button says "Failed to connect" check that the alice server is running correctly (see the notes in "Starting the Alice Server") and that you are using the correct host name and port. 4)
Start
talking and listening: You should hear "Hello from Alice" soon after connecting to the server, and what you dictate into the microphone (or something vaguely similar!) should appear in the "Your words" text box, and be automatically sent to Alice. Turn speech input/output on/off by checking/unchecking the relevant boxes in the "Options" menu. You can also change the speech engines used using this menu. 5)
Save
chat transcript: These notes refer to the modifications required to the Alice server - AliceTalker is ready to use right away. Note: If you only want to connect to Alice using the server's HTTP port you only need to do step 1) below. 1) For connecting to
the HTTP
port of AliceServer: Edit the templates/html/chat.html
file in the AliceBot (or AnnaBot) distribution to replace the line
A suitable chat.html file is included with this distribution. That's it! Start up the
Alice server
and connect to it using the HTTP-mode for AliceTalker. 2) For connecting to the non-HTTP port (4456) of AliceServer: (Requires AliceBot ProgramD, version 4.1.4).
programd.listeners.acl.classnames=com.cloudgarden.alice.listener.JSAPIListener
[8:56:44] Starting JSAPIListener on port 4456 [8:56:44] Starting JSAPIListener... ...appear in the console output of the Alice server. If they don't, double-check all steps in the "Quick Installation" section. My thanks to John Janacek for writing his AliceSpeak jython-based application, which inspired AliceTalker! Changes made to Alice (for the non-HTTP mode): Some changes were made to the org.alicebot.server.net.AliceServer class to allow any number of AliceChatListeners to attach themselves to the main server thread. The classnames of the AliceChatListeners must be listed (separated by ";"s) in the "programd.listeners.acl.classnames" property of the server.properties file, and the "programd.listeners.acl.enabled" property should be set to true. These changes should not affect any other operation of the Alice server.
AliceTalker was developed using the excellent Netbeans IDE, version 3.3.1, and the extra files are included along with the source code. The client code is in the com.cloudgarden.alice package and the JSAPIListener class (which implements the org.alicebot.server.net.listenet.AliceChatListener class and must be loaded by the Alice server) is in the com.cloudgarden.alice.listener package. Please report any problems to jonathan@cloudgarden.com. Please give as much information as you can on what led to the error - including a complete copy of console output, a list of speech engines installed and the JRE version used. Licensing: The demo JSAPI implementation (included here in the files cgjsapi.jar and cgjsapi162.dll) are distributed under the terms layed out in the cloudgarden.com JSAPI webpages. They will expire 30 days after use, after which they may be replaced with the non-demo files - read this section. All the source code distributed with this application (the modified AliceServer code and the com.cloudgarden.alice package) is released under the GNU General Public License, the same license as the Alice project. It is free software - you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation - either version 2 of the License, or (at your option) any later version. Purchasing and Validating the non-demo JSAPI version If you wish to continue to use the Java Speech API implementation (through which AliceTalker speaks and listens) after the trial period of 30 days, you will need to purchase a Personal (for $16 USD) or Professional license for the JSAPI from www.cloudgarden.com (click the "Pricing and Licensing" link, then the "license" link on the next page, agree to the license, then click the "Buy Now" link, which will let you pay with your credit card using PayPal). After buying, you will receive an email with your registration code. You do not need to download or install any new software, just run the LicenseManager.exe file which comes with the AliceTalker bundle and enter in the email address you used to purchase the License, and your registration code. Your license will be validated for the machine you have installed the software on and you will be able to use the software without limitation. |
|||