Rated WebApplet by JARS

TALK

-- AdWare(F1.2) and Shareware(V1.2) --

Last Updated:

   10/9/1996 - update common.class
   9/17/1996 - Added Functions available for Live-Connect  

Price info of shareware version is available.

Running Applet is demonstrated below - Scroll to See!!


(It may take a while to load sound files...Please wait.)




 If TALK works fine, you should hear a background sound
(a piece of Chinese Music) and some foreground sounds played in
a random order.










VERY COOL: Applets work with Javascript!!




Description:

 

Talk is an invisible JAVA appelt written by Mark Qian.
It plays user-specified sounds(au files) in different styles.
You can play a primary(background) sound once or repeatly.
At the same time, you can also play a series of secondary sounds 
(foreground) once or repeatly.

You can even mix the primary sound with the secondary sounds
in a variety of styles. Both Adware (FREE) 
and Shareware versions are available. 

A COOL Sound Bank is available. You can get a variety of sounds there.

Parameters:

                     

         
         peroid       - period between each secondary sounds (in second).   
         randomperiod - the random part of period between each secondary sounds.
                        That is, the perid between each secondary sounds is
                              peroid + x milliseconds
                              where 0 < x < randomperiod

         primarysound - the primary sound. This sound will be played first
                        when Talk is called          
         primarymode  - the primary sound is played once when it is set to "play" 
                        the primary sound is played repeatly when it is set to "loop" 
         nprimaryrepeat - period when primary sound last (in second)
         sndmode      - the secondary series of sounds are played once when it is set to "play" 
                        the secondary series of sounds are played repeatly when it is set to "loop" 
         sndorder     - the order of playing secondary sounds. Play in the order of sound1, sound2, ...
                        if "regular". Play in a random order if "random"
         nsound       - number of secondary sound. For Adware version, only maxmum 1 sound file can 
                        be used. There is no limit in a shareware version.                           
         
         sound1       -   secondary sound 1
         sound2       -   secondary sound 2
         ...
         soundn       -   secondary sound n

		 The sound played by this applet can be turn On/Off dynamically button another
		 applet wrtten by Mark Qian, CButton. 


Important:

A bug in Netscape Navigator (v3.x) was detected: A page will be displayed completely white, without foreground and background, if the page contains a Java applet with very small width and height. Please keep Talk's size not smaller than 3 in width and height.







Here are more HOT Stuff! Don't miss them!!!




You are welcome to ADD your URL to Mark's Page:
if you have any Mark's applet running in your page.

This is a great place to make your site popular: most visitors of this site are webmasters who are in charge of adding links!!





Detail Instructions for installation:

1).
or

What if downloading fails using the button above?

In this case, Go to Author's FTP Page directly to download them there! Please Send us a message if you encounter difficulty with downloading so that we can solve the problem shortly.
     
        
   2). Unzip talk.zip in a tmp directory, say c:\tmp, in your local machine

   3). Rename class files. Because PKUNZIP will extract the
       class file, talk.class, to TALK~1.CLA,  you have to RENAME  TALK~1.CLA
       the class file to talk.class. Similarly, RENAME PLAYSN~1.CLA to 
       playsnd.class.  At this time, you should have following
       files in c:\tmp
       
          playsnd.class
          SOUND0.AU
          SOUND1.AU
          SOUND2.AU
          SOUND3.AU
          SOUND4.AU
          SOUND5.AU
          README.TXT
          talk.class
          TEST_TK.HTM
            
   4). Open TEST_TK.HTM with your browser locally. If it works locally,
      go to next step.  Otherwise, go to step B) below.
                                                      
                                                                            
                                                      
   5). Try TEST_TK.HTM online. 
       
         - place talk.class and playsnd.class in your HTML directory, say public_html,
           in your server. (FTP program may change talk.class to talk.cla. Rename class files as needed).

              

VERY IMPORTANT !!!

Be sure that you set the file format to BINARY when you FTP class files while set file format to ASCII or TEXT when you FTP html files - place TEST_TK.HTM and SOUND*.AU to public_html - change access attributes of all the files above to readable using following Unix commands chmod 744 ~/public_html/talk.class chmod 744 ~/public_html/playsnd.class chmod 744 ~/public_html/TEST_TK.HTM chmod 744 ~/public_html/SOUND*.AU - Browse the TEST_TK.HTM in your server from your local machine remotely. If it works, go to next step. Otherwise, go to step B) below. 6). Use your stuff in TEST_TK.HTM. Replace following part of TEST_TK.HTM <param name=primarysound value="SOUND0.AU"> <param name=sndsound1 value="SOUND1.AU"> <param name=sndsound2 value="SOUND2.AU"> <param name=sndsound3 value="SOUND3.AU"> <param name=sndsound4 value="SOUND4.AU"> <param name=sndsound5 value="SOUND5.AU"> with your stuff, say <param name=primarysound value="YOURPRIMARY.AU"> <param name=sndsound1 value="YOURSOUND1.AU"> <param name=sndsound2 value="YOURSOUND2.AU"> <param name=sndsound3 value="YOURSOUND3.AU"> <param name=sndsound4 value="YOURSOUND4.AU"> <param name=sndsound5 value="YOURSOUND5.AU"> where YOURPRIMARY.AU - your primary audio file YOURSOUND1.AU - your secondary audio file 1 YOURSOUND2.AU - your secondary audio file 2 YOURSOUND3.AU - your secondary audio file 3 YOURSOUND4.AU - your secondary audio file 4 YOURSOUND5.AU - your secondary audio file 5 (You can place any number of sound files based on your need. Note: don't forget to change parameter nsndsound to match the number of your sound files). If it works, go to next step. Otherwise, go to step B) below. 7). Insert the applet to your page, say YOURS.HTM. Copy-paste following part of TEST_TK.HTM to the place you want in YOURS.HTM

<applet code="talk.class" width=0 height=0> <param name=RegistrationCode value="f1.0-3222"> <param name=peroid value="2"> <param name=primarysound value="SOUND0.AU"> <param name=primarymode value="loop"> <param name=sndmode value="loop"> <param name=sndorder value="random"> <param name=nsndsound value="5"> <param name=sndsound1 value="SOUND1.AU"> <param name=sndsound2 value="SOUND2.AU"> <param name=sndsound3 value="SOUND3.AU"> <param name=sndsound4 value="SOUND4.AU"> <param name=sndsound5 value="SOUND5.AU"> </applet>

Browse YOURS.HTM in your server. If it works, go to next step. Otherwise, go to step B) below. 8). Place resource files to a sub-directory, say resource, using following Unix commands: mkdir ~/public_html/resource chmod 755 ~/public_html/resource mv ~/public_html/YOURSPRIMARY.AU ~/public_html/resource mv ~/public_html/YOURSSOUND*.AU ~/public_html/resource Change the corresponding reference in YOURS.HTM to match your change: <param name=primarysound value="resource/YOURPRIMARY.AU"> <param name=sndsound1 value="resource/YOURSOUND1.AU"> <param name=sndsound2 value="resource/YOURSOUND2.AU"> <param name=sndsound3 value="resource/YOURSOUND3.AU"> <param name=sndsound4 value="resource/YOURSOUND4.AU"> <param name=sndsound5 value="resource/YOURSOUND5.AU"> Browse the page in your server. A COOL Sound Bank is available. You can get a variety of sounds there. You can use shareware such as PaintShop to edit your own gif images. You may want to edit your own AU files using shareware like COOLEDIT. Be sure that you try the minimum quality first: Mono, 8 bit, 8000Khz Sample rate. You can also convert a MIDI file to AU using CSound in order to play it with this applet. If it works, go to next step. Otherwise, go to step B) below. 9). You may want to set one of different playing styles a). <param name=primarymode value="loop"> <param name=sndmode value="loop"> b). <param name=primarymode value="play"> <param name=sndmode value="loop"> c). <param name=primarymode value="loop"> <param name=sndmode value="play"> d). <param name=primarymode value="play"> <param name=sndmode value="play"> e). <param name=primarysound value=""> f). <param name=nsndsound value="0"> Browse the page in your server. If it works, go to next step. Otherwise, go to step B) below. 10). Congraduation!! Do Mark a favor: let him know you did it!! Enjoy it !! (Don't forget to BOOKMARK this page so that you can update it shortly: Ad will be upgraded frequently). B). Contact Mark Qian. Please describe - which step you have reached - the errors you get in details(If you use Netscape, click at menu item Option | Show Java Console and copy-paste-EMail the content there to Mark). - If you have rearched step 5 or later, run following Unix commands to save access attribute infor into a file, say tttt cd ~/public_html ls -l playsnd.class > tttt ls -l talk.class >> tttt ls -l SOUND*.AU >> tttt ls -l TEST_TK.HTM >> tttt Then, EMail file tttt to Mark Qian so that he can ensure if all the file attributes are setup OK.







More Applets are available.



To learn how to place a Java applet into your page, 
please go to this page and select "How to Add Java Applet to Your Site"
at the bottom of the page.