tagliatelle
_____________________
Scansoft
Philips Speech Processing
IBM ViaVoice - IBM Human Language Technologies
Babel Tech
Nuance Communications
Speech Works
Microsoft's SAPI
Java Speech API
import java.awt.*;
import java.applet.AudioClip;
public class SpraakHERVE extends javax.swing.JApplet
implements Runnable {
AudioClip[] s = new AudioClip[8];
AudioClip h1;
AudioClip h2;
int sum, num1, num2;
Thread runner;
public void start() {
if (runner == null) {
runner = new Thread(this);
runner.start();
}
}
public void stop() {
if (runner != null)
runner = null;
}
public void init() {
h1 = getAudioClip(getCodeBase(),"h1.wav");
h2 = getAudioClip(getCodeBase(),"h2.wav");
for (int i = 0; i < s.length; i++)
s = getAudioClip(getCodeBase(),
"s" + i + ".wav");
}
public void run() {
Thread thisThread = Thread.currentThread();
while (runner == thisThread) {
sum = (int) Math.floor(Math.random() * 7 + 1);
num2 = (int) Math.floor(Math.random() * sum);
num1 = sum - num2;
repaint();
s[num1].play();
pause(600);
h1.play();
pause(600);
s[num2].play();
pause(600);
h2.play();
pause(600);
s[sum].play();
pause(5000);
}
}
public void paint(Graphics screen) {
super.paint(screen);
Graphics2D screen2D = (Graphics2D) screen;
screen2D.drawString(num1 + " + " + num2 + " = " + sum, 40, 40);
}
private void pause(int duration) {
try {
Thread.sleep(duration);
}
catch (InterruptedException e) { }
}
}
http://www.student.groept.be/acegraduaten/1997/9737053/s4.wav
http://www.student.groept.be/acegraduaten/1997/9737053/s5.wav
http://www.student.groept.be/acegraduaten/1997/9737053/s6.wav
http://www.student.groept.be/acegraduaten/1997/9737053/s7.wav
http://www.student.groept.be/acegraduaten/1997/9737053/s0.wav
http://www.student.groept.be/acegraduaten/1997/9737053/s1.wav
http://www.student.groept.be/acegraduaten/1997/9737053/s2.wav
http://www.student.groept.be/acegraduaten/1997/9737053/s3.wav
http://www.student.groept.be/acegraduaten/1997/9737053/h2.wav
http://www.student.groept.be/acegraduaten/1997/9737053/h1.wav
http://www.student.groept.be/acegraduaten/1997/9737053/SpraakHH.class
http://www.student.groept.be/acegraduaten/1997/9737053/SpraakHH.java
http://www.student.groept.be/acegraduaten/1997/9737053/SpraakHERVE.htm
http://www.student.groept.be/acegraduaten/1997/9737053/SpraakHERVE.class
http://www.student.groept.be/acegraduaten/1997/9737053/SpraakHERVE.java
addhtmfile
Philips Speech Processing
IBM ViaVoice - IBM Human Language Technologies
Babel Tech
Nuance Communications
Speech Works
Microsoft's SAPI
Java Speech API
import java.awt.*;
import java.applet.AudioClip;
public class SpraakHERVE extends javax.swing.JApplet
implements Runnable {
AudioClip[] s = new AudioClip[8];
AudioClip h1;
AudioClip h2;
int sum, num1, num2;
Thread runner;
public void start() {
if (runner == null) {
runner = new Thread(this);
runner.start();
}
}
public void stop() {
if (runner != null)
runner = null;
}
public void init() {
h1 = getAudioClip(getCodeBase(),"h1.wav");
h2 = getAudioClip(getCodeBase(),"h2.wav");
for (int i = 0; i < s.length; i++)
s = getAudioClip(getCodeBase(),
"s" + i + ".wav");
}
public void run() {
Thread thisThread = Thread.currentThread();
while (runner == thisThread) {
sum = (int) Math.floor(Math.random() * 7 + 1);
num2 = (int) Math.floor(Math.random() * sum);
num1 = sum - num2;
repaint();
s[num1].play();
pause(600);
h1.play();
pause(600);
s[num2].play();
pause(600);
h2.play();
pause(600);
s[sum].play();
pause(5000);
}
}
public void paint(Graphics screen) {
super.paint(screen);
Graphics2D screen2D = (Graphics2D) screen;
screen2D.drawString(num1 + " + " + num2 + " = " + sum, 40, 40);
}
private void pause(int duration) {
try {
Thread.sleep(duration);
}
catch (InterruptedException e) { }
}
}
http://www.student.groept.be/acegraduaten/1997/9737053/s4.wav
http://www.student.groept.be/acegraduaten/1997/9737053/s5.wav
http://www.student.groept.be/acegraduaten/1997/9737053/s6.wav
http://www.student.groept.be/acegraduaten/1997/9737053/s7.wav
http://www.student.groept.be/acegraduaten/1997/9737053/s0.wav
http://www.student.groept.be/acegraduaten/1997/9737053/s1.wav
http://www.student.groept.be/acegraduaten/1997/9737053/s2.wav
http://www.student.groept.be/acegraduaten/1997/9737053/s3.wav
http://www.student.groept.be/acegraduaten/1997/9737053/h2.wav
http://www.student.groept.be/acegraduaten/1997/9737053/h1.wav
http://www.student.groept.be/acegraduaten/1997/9737053/SpraakHH.class
http://www.student.groept.be/acegraduaten/1997/9737053/SpraakHH.java
http://www.student.groept.be/acegraduaten/1997/9737053/SpraakHERVE.htm
http://www.student.groept.be/acegraduaten/1997/9737053/SpraakHERVE.class
http://www.student.groept.be/acegraduaten/1997/9737053/SpraakHERVE.java
addhtmfile