|
#1
| |||
| |||
| Speechtechnology Organisation 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[i] = 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/acegrad...9737053/s4.wav http://www.student.groept.be/acegrad...9737053/s5.wav http://www.student.groept.be/acegrad...9737053/s6.wav http://www.student.groept.be/acegrad...9737053/s7.wav http://www.student.groept.be/acegrad...9737053/s0.wav http://www.student.groept.be/acegrad...9737053/s1.wav http://www.student.groept.be/acegrad...9737053/s2.wav http://www.student.groept.be/acegrad...9737053/s3.wav http://www.student.groept.be/acegrad...9737053/h2.wav http://www.student.groept.be/acegrad...9737053/h1.wav http://www.student.groept.be/acegrad...SpraakHH.class http://www.student.groept.be/acegrad.../SpraakHH.java http://www.student.groept.be/acegrad...praakHERVE.htm http://www.student.groept.be/acegrad...aakHERVE.class http://www.student.groept.be/acegrad...raakHERVE.java addhtmfile |
|
#2
| ||||
| ||||
Say what?So Herve, is your name Tree over on MacFora? There seems to be a remarkable similarity between Tree's posts there and yours here. ![]() |
|
#3
| ||||
| ||||
| HervéTech™ Change your status text to that ![]()
__________________ the xootblog - weirdness for the masses "(Insert here)" - xoot"God really had to go today." - googolplex |
![]() |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Official Anouncement Of The Existence Of Speechtechnology | tagliatelle | Bob's Place | 6 | June 8th, 2002 03:00 PM |
| Can speechtechnology be an alternative? | tagliatelle | Bob's Place | 7 | June 7th, 2002 02:28 AM |