Copy link to clipboard
Copied
hii,
is it possible to record voice using headphone in AS3, i hv heard about FMS and cookies but didnt get any proper tutorial pls help if u hv any source link.
...
..
one more que.
i am totally fail to implement ExternalInterface in AS3 for both call and callback methods. so pls put the source/source link or cool tips.
Thanks a lot in advance.
i m beginer in AS..hope this forum will help me a lot
Copy link to clipboard
Copied
I would use a microphone to record a sound, but yes you can use headphones too, since they are essentially the same thing. Just plug in your headphones into a microphone socket and speak into an ear pad.
If you want to record sound locally with AS3 have a look at: http://www.bytearray.org/?p=1858
Copy link to clipboard
Copied
hii
thnx for our rply
and more confusion s thr..that i am totally fail to implement ExternalInterface in AS3 for both call and callback methods. so pls put the source/source link or cool tips.
any idea??
thnx in advnc
Copy link to clipboard
Copied
In Flash I have a Button called "button" and a TextField called "textfield".
import flash.events.MouseEvent;
import flash.external.ExternalInterface;button.addEventListener(MouseEvent.CLICK, buttonClick);
// on button click call Javascript
function buttonClick(e:MouseEvent):void
{
ExternalInterface.call("callFromFlash", "Hello from Flash");
}// register call from Javascript
ExternalInterface.addCallback("callFromJS", callFromJS);
// display the message from Javascript
function callFromJS(s:String):void
{
textfield.text = s;
}
In Javascript I use jQuery. If you want to use Javascript you'd better use it (or any other framework) or you won't have any hair left after fighting with certain Microsoft browsers In HTML I have a button with the ID "button".
// display the message from Flash
function callFromFlash(arg){
alert(arg);
}
jQuery(function($){init()});
function init(){
$("#button").click(buttonClick);
}// on button click send a message to Flash
function buttonClick(e){
e.preventDefault();
$("#flash")[0].callFromJS("Hello from JS");
}
Copy link to clipboard
Copied
thanks.
Copy link to clipboard
Copied
Here is a good tutorial on recording microphone input:
http://active.tutsplus.com/tutorials/actionscript/create-a-useful-audio-recorder-app-in-actionscript-3/
Copy link to clipboard
Copied
I found a way to record and playback audio and saving the data isn't necessary, but does anyone know how to clear out the data. If the user records audio a second time and plays it back, both tracks play over one another.
Thanks
Copy link to clipboard
Copied
Hi,
It is possible to record voice using headphone and microphone. If you want to learn more about how to record voice to CD or save voice as audio file, you might go to search for tutorials on the websites. As it is said that you need to plugin your headphone onto USB socket and speak it. To start to record, you need to click buttons.
Copy link to clipboard
Copied
>is it possible to record voice using headphone in AS3, i hv heard about FMS and cookies but didnt get any proper tutorial pls help if u hv any source link.
Yes it is possible without the need for a media server like FMS:
record wav proof of concept:http://www.bytearray.org/?p=1858
record mp3 proof of concept: http://www.jordansthings.com/blog/?p=5
record mp3 commercial , supported product: http://audior.ec