• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

is it possible to record voice using headphone in AS3

Explorer ,
Mar 18, 2011 Mar 18, 2011

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

TOPICS
ActionScript

Views

3.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 18, 2011 Mar 18, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 28, 2011 Mar 28, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 29, 2011 Mar 29, 2011

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");
            }

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 27, 2011 Jun 27, 2011

Copy link to clipboard

Copied

thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Jun 27, 2011 Jun 27, 2011

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/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 28, 2011 Jun 28, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 17, 2011 Aug 17, 2011

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 01, 2012 Aug 01, 2012

Copy link to clipboard

Copied

LATEST

>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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines