root/Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/copyrights/moodlespeex-license.txt

Revision 2322, 9.4 KB (checked in by kmaclean, 5 years ago)

speech submission app - snapshot

Line 
1
2   MoodleSpeex - free voice tools for Moodle using JSpeex
3      (c) Dan Stowell 2006.
4      Released under the GNU Public Licence (GPL).
5 
6   This Moodle plugin incorporates open-source
7   Java code from other projects:
8    - JSpeex player/recorder, (c) Wimba S.A.
9    - Postlet HTTP uploader,  (c) Simon Rycroft
10    - JavaSoundDemo,          (c) Sun Microsystems
11   Please see the licences stored in the "copyrights" folder for more details.
12
13
14
15-------------------
16SYSTEM REQUIREMENTS
17-------------------
18
19The speex tools are Java applets running in a teacher/student's web browser.
20This means that Java (1.4 or later) MUST be installed on a computer in order
21to be able to record/play the speech messages. Javascript is also used for
22applet/browser communication.
23
24There are NO special requirements for the Moodle webserver.
25
26The applets have been tested to work with the main types of computer and web
27browser. Notes re browser support:
28
29 - Mac OSX:
30     - The following browsers reportedly work fine for using the applets:
31         - Firefox 1.5
32         - Safari 2.0.4
33         - Camino 1.0.2
34     - Opera 9.0 has a problem in the cookie-passing which prevents
35         successful interaction between Moodle and the applets. This prevents
36         both upload and playback.
37
38 - Windows PC:
39     - Works fine in Firefox 1.5
40     - Works fine in Internet Explorer. But note that IE has a slightly annoying
41         feature that means you have to click once on the applet before it'll
42         respond, giving the impression that the first time you click on the
43         play button nothing happens! 
44         The player applet may also be unable to play back more than once,
45         depending on system setup.
46
47 - Linux (Ubuntu 6.06):
48     - Works fine in Firefox 1.5. However, the official Sun Java plugin must be
49         installed. (The "Kaffe" open-source alternative plugin has been tested
50         and did NOT work.) To install the Sun Java plugin:
51           1. Open the package manager (menu Applications > Add/Remove)
52           2. Click "Advanced" to switch to the more advanced manager.
53           3. Open the menu item Settings > Repositories and ensure that
54                "Multiverse" is enabled (you may need to click on "Edit").
55           4. Find the package named "sun-java5-plugin" and select to install
56                it. (It may also install one or two other sun packages.)
57
58The applets might not necessarily work in all browsers/systems, so it is
59worth ensuring that your students/staff are able to use the applets before
60relying on them to any extent.
61
62
63
64---------------
65TECHNOLOGY NOTE
66---------------
67
68These tools do not enable any fancy live voice interaction - the interaction is
69mediated by simple upload/download of audio files, rather than VoIP or any such
70technology. This means that (for example) uploading of audio messages is
71possible, but live two-way conferencing (like a telephone conversation) is
72basically impossible without major development work.
73
74The file format used by these tools is "Ogg Speex", an open format. Open formats
75are good because people can develop applications that use them (such as these
76applets) without having to pay licensing fees. It also makes it more likely
77that the .spx files that these tools create are interoperable, and (for example)
78can be played in free media-playing software such as VLC.
79
80
81
82------------
83INSTALLATION
84------------
85
861) Moodlespeex files
87
88The files in the "moodle" folder of this distribution can
89simply be dropped into place in the corresponding location
90in your Moodle installation.
91
92moodle/lib/speex/*
93moodle/filter/speexplayer/*
94
95The items that are NOT in the "moodle" folder are not
96required on the Moodle server.
97
98
992) Modifications to Moodle files
100
101You also need to make changes to some of the core Moodle files - to help with
102this please refer to the "moodlepatches" folder which contains output
103produced using "cvs diff -c" against core moodle code.
104"cvsdiff_moodle-mod-forum.txt" is a diff of files in moodle/mod/forum.
105"cvsdiff_moodle-files.txt" is a diff of files in moodle/files.
106
107To apply these patches on Mac OSX, Linux, or Unix:
108
109 * Open a terminal window on your Moodle server (or on a local copy of the
110     files) and move to the mod/forum directory. Then feed the patch file to
111     the "patch" command. The exact command will vary according to where
112     your files are, but for example:
113     
114     cd /var/www/htdocs/moodle/mod/forum
115     patch < ~/Desktop/moodlespeex/moodlepatches/cvsdiff_moodle-mod-forum.txt
116
117 * Do the same for the second patch file:
118
119     cd /var/www/htdocs/moodle/files
120     patch < ~/Desktop/moodlespeex/moodlepatches/cvsdiff_moodle-files.txt
121
122The patch command will tell you if it encounters a problem (it will say that it
123failed to apply one or more chunks). If not, everything should be OK.
124
125
1263) Modifications to Moodle database
127
128Moodle's "forum" table needs an extra field to store whether audio
129messaging is active. The following SQL will add the column to a MySQL
130Moodle database (please remember to change the table prefix):
131
132ALTER TABLE `mdl_forum` ADD `speex` ENUM( 'off', 'on', 'default' ) NOT NULL DEFAULT 'off';
133
134
1354) Activation
136
137Visit your Moodle's Admin->Filters page and activate the "speexplayer" filter.
138
139
140
141-----
142USAGE
143-----
144
1451. To listen to an audio message in Moodle:
146
147The "Speex player" filter should be simple to use: wherever
148there is a link to an .spx file, an applet should appear
149allowing the user to listen to the audio. The filter can
150be activated/deactivated by the administrator.
151
152
1532: To record a voice message into Moodle:
154
155The "Speex recorder" applet can appear in various contexts.
156For example, if it is enabled for a given forum, when you
157post a new message or a reply you will see a drop-down menu
158labelled "Post mode: text" which you can change to "audio".
159This should take you to a page displaying the recorder applet.
160
161NOTE: By default, audio mode is DISABLED for your Moodle forums.
162To activate it, choose "Update this forum" and you should find a
163new option allowing you to activate audio messaging mode.
164
165When the applet appears:
166
167 * Make sure your computer's microphone is set up.
168 * Click on "Record" and then start speaking.
169 * Click on "Stop" when you have finished speaking.
170 * You can use the "Play" button to listen back to your message.
171 * If you want to re-record your message, you can do.
172 * When you are happy with the message, click on "Upload".
173      There will be a delay as the sound is compressed and
174      then uploaded, and you will be
175          returned to the main screen you came from.
176 * You may wish to double-check that your sound file has
177      recorded properly by using the "Speex player" to
178          listen back to it. This will be a compressed file, so
179          the sound will usually be poorer-quality than you
180          originally heard.
181
182
1833: To use Speex (.spx) files after you download them to your
184computer:
185
186The "standard" media players (Windows Media Player,
187iTunes) fail to support open formats such as Speex. I highly
188recommend the VLC player as a general-purpose alternative to
189these programs:
190http://www.videolan.org/vlc/
191
192VLC can also be used to convert to WAV or MP3 format if desired.
193
194
195
196-------------------
197INFO FOR DEVELOPERS
198-------------------
199
200The Java source code is contained in the "java/src" folder.
201I use Apache ant to compile and build the distribution, and
202have included the ant "build.xml" file so that you can do the
203same.
204
205In order to compile and run the applets, you will also need
206to "sign" the JAR file with a digital signature - look in
207the Java jarsigner documentation for more info about this
208process.
209
210
211
212-------------------------------
213FERVENTLY ANTICIPATED QUESTIONS
214-------------------------------
215
216Q: What is the connection between this software and
217Horizon Wimba's Voice Tools?
218
219A: This free software package is not produced by Horizon Wimba,
220but it uses some underlying open-source Java code developed
221by Wimba. The Java audio encoder/decoder is probably the
222same or similar to the algorithm used in Wimba's software.
223However, nothing about the behaviour/quality/functionality
224of this package should be used to infer anything about the
225behaviour/quality/functionality of Wimba's tools! The tools
226produced by Wimba are likely to differ significantly. This
227project is (currently) only aimed at providing a relatively
228basic voice functionality.
229
230
231Q: Can I download Speex messages to my portable media player
232and listen to them later?
233
234A: It's unlikely, because many of the main brands (inc Apple's
235iPods) do NOT support Speex .spx files. There are some
236portable players that do, but you'll find that they're in
237a minority.
238
239
240Q: Can I use these tools for podcasting?
241
242A: Probably not, for the reasons described above - many users
243will be unable to play the files on their media players.
244
245
246Q: Can these tools be adapted to record MP3 instead of Speex?
247
248A: No. MP3 is not a free format - developers must pay money to
249develop software using MP3 - so it is unsuitable for open-source
250projects. (Besides, MP3 is not designed to be well-suited for
251voice compression, whereas Speex is specially designed for that
252purpose.)
253
254
255-------
256SUPPORT
257-------
258
259As with many freely-provided Moodle add-ins, support
260can not be guaranteed, but there are pretty much always
261friendly people in the moodle.org forums who can offer
262advice.
263
264Please do not ask about how to make it record .MP3 files
265rather than .SPX files! There's a serious licencing problem
266with recording MP3 in open-source software. Besides which,
267Speex is much better for voice applications.
268
Note: See TracBrowser for help on using the browser.