Hi All,
Is there any Bean or Plugin available that can do the recording and store the sound file. And also play the saved file whenever required.
Hi All,
Is there any Bean or Plugin available that can do the recording and store the sound file. And also play the saved file whenever required.
Not yet, as far as I know. But it guess it could be done…
Yep, there is a developer working on it. Dunno who anymore though.
Also, the Media Manager bean (http://www.it2be.com/beans.htm#mediamanager) allows you to move/save an play MP3 files…
David Pearce was looking at this subject - this thread may be useful:
Now I remember.
I actually have seen it working at Servoy World.
David, when this needs finishing let me know (offline)…
Thanks to all…
This will give an insight look.
Hi,
yes i have got something working with a very limited knowledge of JAVA.
This is where i am up to.
In Servoy
As I said my Java is very poor, and i dont find it easy to lift code, like you can do in Servoy or php etc.
I was looking at rewind and fast forward, but i am playing back using one java sound library, when in fact the one that has a function to jump by a few miliseconds is in a different library.
Do you want the code or shall i try to publish the plugin and a little solution?
David
Marcel or myself could look at it, finish it and make it available as a free plugin. Why don’t you contact one of us offline and we can look at it.
That sounds great.
I will tidy up what i have got and send it to you both.
I dont think it is that hard, its just probably takes me three weeks to do what you guys do in 10 minutes!!!
I will pull the stuff together and then send it to you.
David
I have attached my solution so far.
Be warned this is very raw!
Put the myplugin.jar and the jspeex folder in the servoy plugin folder.
Import the demo application.
It works like this:
Record will record a file.
Stop will stop recording and then save the file as a .wav file in the root of your servoy application folder. It will also convert it to a .spx file and save it in the root as well.
Playback will play the file back and that works (but at present i have got it playing the .wav file. I can use the .spx file, but then the pause and restart dont work.
The rewind doesn’t work as the skip() function doesnt seem to work backwards.
The fastforward sort of works, but is jumpy. I have set it to skip 100K forward.
The pause and continue work, but again you loose a bit of the file.
If i switch it to playback the .spx file this works but doesnt allow any of the above.
Happy to provide the source to anyone who wants it.
audio.zip (103 KB)
Thanks to all for all your effort.
Maybe a good idea to put the sourcecode onto http://www.servoyforge.net/ if you want to open source it.
Paul
good idea!
Just send it to me and I will put it in the ServoyFORGE site.
Thanks Robert.
It on my home machine so i will do that tonight.
David
Plugin and source code of David’s Audio plugin are now available on the ServoyFORGE website.
Hi,
I am getting one error in using the above Audio plugin to do the Sound recording.
“org.mozilla.javascript.JavaScriptException: java.lang.SecurityException:
Plugin or Service tried to exit application, denied…”
The Error is throwing when I am going to execute the below Code…
plugins.MyPlugin.Record("record");
When I am executing the above code in my Servoy Developer(In My machine) it is working fine but when I am trying to execute the code by remoting to my system from an other machine, It is throwing the above error…
Can anyone please help me to track that error out…
ars,
to be honest i am not sure i have tested this on a client!
I will try to find some time to have a look. I was rather hoping that this would just be a nudge for one of the professional plugin /JAVA guys to develop a real plugin, as i would happily pay for it.
Full dictataphone functions would be nice!!!
yep, that will be better David…