Skip navigation
Currently Being Moderated

is it possible to record voice using headphone in AS3

Mar 18, 2011 6:01 AM

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

 
Replies
  • Currently Being Moderated
    Mar 18, 2011 8:15 AM   in reply to iawara

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 29, 2011 2:51 AM   in reply to iawara

    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");
                }
    
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 27, 2011 4:13 AM   in reply to iawara
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 28, 2011 10:18 AM   in reply to relaxatraja

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 17, 2011 11:29 PM   in reply to iawara

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 1, 2012 3:08 AM   in reply to iawara

    >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

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points