Hi,
I have integrated your applet in my page, I am only interested in the recording capabilities and not to display the graphical interface of the applet. Your api gives all the needed function to handle the listening, and the recording, but to display the sound level variation I have to display the applet on the screen. Ideally I would like to have the full control on the display by using the javascript api.
In my sense, a callback allowing to read the sound level is missing in your api. With a javascript callback like soundlevel(thelevel), I could have my own display of the sound level, avoiding to have to display the applet.
Is there a way to add this callback, do you plane to implement it ?
adding a javascript callback to have the recorded sound level
Started by Guest_spi_*, Dec 12 2009 09:55 AM
9 replies to this topic
#1 Guest_spi_*
Posted 12 December 2009 - 09:55 AM
#2
Posted 15 December 2009 - 08:46 AM
I need to know what product do you use. We provide several applets, and they have differences.
Rostislav.
Rostislav.
#3
Posted 15 December 2009 - 11:41 PM
I use the wav recording applet.
#4
Posted 17 December 2009 - 11:11 AM
Wav recording applet has such possibility.
You need only add applet parameters:
<PARAM NAME = "UseSoundLevelApplet" VALUE = "true">
<PARAM NAME = "indicator" VALUE = "false">
also add javascript function:
function setRecordLevel(s){
// your code
}
where you receive s from 0 to 32767
Waiting for feedback.
Rostislav.
You need only add applet parameters:
<PARAM NAME = "UseSoundLevelApplet" VALUE = "true">
<PARAM NAME = "indicator" VALUE = "false">
also add javascript function:
function setRecordLevel(s){
// your code
}
where you receive s from 0 to 32767
Waiting for feedback.
Rostislav.
#5
Posted 18 December 2009 - 07:00 PM
At the applet initialization I have the following in the java console
Reading certificates from 8475 http://127.0.0.1/recorder/RPAppletWav.jar | C:\Users\spadovani\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\26\45f3c25a-1a4d8e59.idx
OS: Windows Vista
VERSION:1.3.20.4
Wav Dll version
DEMO_VERSION
Maximal time of record is 0:0:20
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
ERROR: SoundLevelApplet not found!!!
current Java specification version: 1.6
and in the javascript code, when I run the Record method
setRecordLevel is not defined
anonymous()jquery-1.3.2.js (ligne 3205)
anonymous()jquery-1.3.2.js (ligne 3032)
anonymous([function()], function(), Object name=args)jquery-1.3.2.js (ligne 692)
anonymous()jquery-1.3.2.js (ligne 3031)
anonymous()
Reading certificates from 8475 http://127.0.0.1/recorder/RPAppletWav.jar | C:\Users\spadovani\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\26\45f3c25a-1a4d8e59.idx
OS: Windows Vista
VERSION:1.3.20.4
Wav Dll version
DEMO_VERSION
Maximal time of record is 0:0:20
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
Trying to get SoundLevelApplet
ERROR: SoundLevelApplet not found!!!
current Java specification version: 1.6
and in the javascript code, when I run the Record method
setRecordLevel is not defined
anonymous()jquery-1.3.2.js (ligne 3205)
anonymous()jquery-1.3.2.js (ligne 3032)
anonymous([function()], function(), Object name=args)jquery-1.3.2.js (ligne 692)
anonymous()jquery-1.3.2.js (ligne 3031)
anonymous()
#6
Posted 21 December 2009 - 03:09 PM
Can I see your implementation of setRecordLevel function?
Rostislav.
Rostislav.
#7
Posted 23 December 2009 - 06:54 PM
Hi,
Thx for your support. Below is the minimal code I use, but I don't believe the problem comes from the javascript code, the java console log seems to show the applet SoundLevelApplet is missing.
<html>
<head>
<script language=javascript>
function setStatus_RP(msg, num){}
function setTimer_RP(s){}
function setRecordLevel(s){}
</script>
</head>
<body>
<applet height="25" align="MIDDLE" width="160" mayscript="" name="RPApplet" codebase="/recorder/" archive="RPAppletWav.jar" code="RPApplet.class">
<param value="RPAppletWav.cab" name="cabbase"/>
<param value="demo" name="Registration"/>
<param value="http://127.0.0.1/recorder/processSpeech.php" name="ServerScript"/>
<param value="/voicefiles/" name="VoiceServerFolder"/>
<param value="20" name="TimeLimit"/>
<param value="1000000" name="BlockSize"/>
<param value="11025" name="Sampling_frequency"/>
<param value="MuLaw" name="AudioFormat"/>
<param value="JS" name="InterfaceType"/>
<param value="." name="UserServerFolder"/>
<param value="ffffff" name="backgroudColor"/>
<param value="4664f0" name="indicatorLevel1"/>
<param value="28c814" name="indicatorLevel2"/>
<param value="f03250" name="indicatorLevel3"/>
<param value="160" name="indicatorWidth"/>
<param value="true" name="OverRecord"/>
<param value="false" name="indicator"/>
<param value="true" name="UseSoundLevelApplet"/>
</applet>
</body>
</html>
Thx for your support. Below is the minimal code I use, but I don't believe the problem comes from the javascript code, the java console log seems to show the applet SoundLevelApplet is missing.
<html>
<head>
<script language=javascript>
function setStatus_RP(msg, num){}
function setTimer_RP(s){}
function setRecordLevel(s){}
</script>
</head>
<body>
<applet height="25" align="MIDDLE" width="160" mayscript="" name="RPApplet" codebase="/recorder/" archive="RPAppletWav.jar" code="RPApplet.class">
<param value="RPAppletWav.cab" name="cabbase"/>
<param value="demo" name="Registration"/>
<param value="http://127.0.0.1/recorder/processSpeech.php" name="ServerScript"/>
<param value="/voicefiles/" name="VoiceServerFolder"/>
<param value="20" name="TimeLimit"/>
<param value="1000000" name="BlockSize"/>
<param value="11025" name="Sampling_frequency"/>
<param value="MuLaw" name="AudioFormat"/>
<param value="JS" name="InterfaceType"/>
<param value="." name="UserServerFolder"/>
<param value="ffffff" name="backgroudColor"/>
<param value="4664f0" name="indicatorLevel1"/>
<param value="28c814" name="indicatorLevel2"/>
<param value="f03250" name="indicatorLevel3"/>
<param value="160" name="indicatorWidth"/>
<param value="true" name="OverRecord"/>
<param value="false" name="indicator"/>
<param value="true" name="UseSoundLevelApplet"/>
</applet>
</body>
</html>
#8
Posted 23 December 2009 - 08:51 PM
Ok, I found the problem in my code. Now it works great despite the java console message.
Is there a way to remove the tries "Trying to get SoundLevelApplet" at the applet initialisation? they slow down the initialisation.
Is there a way to remove the tries "Trying to get SoundLevelApplet" at the applet initialisation? they slow down the initialisation.
#9
Posted 23 December 2009 - 11:38 PM
Hi,
By setting UseSoundLevelApplet to false, the initialization error message is removed. It looks like setting the indicator parameter to false is enough to activate the setRecordLevel callback.
By setting UseSoundLevelApplet to false, the initialization error message is removed. It looks like setting the indicator parameter to false is enough to activate the setRecordLevel callback.
#10
Posted 24 December 2009 - 02:02 PM
Yes, you are right. UseSoundLevelApplet parameter is not supported now. It is my fault.
Rostislav.
Rostislav.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












