Skip to main content
Known Participant
June 12, 2006
Question

can I save audio, captured by my swf

  • June 12, 2006
  • 10 replies
  • 670 views
Hello,
I am reading data through microphone, can any one tell me how i can save that audio.
even i am trying flash communication for the same.
But I dont have any proper help for the same.
pls suggest any url, or code help .
thnx..
    This topic is closed to new replies. Start a new post to keep the conversation going.

    10 replies

    justbipinAuthor
    Known Participant
    June 21, 2006
    But i havnt solved my part Mr.phreelancer , now the problem is,

    I am reading data through microphone.
    But the quality is too poor...

    regards
    justbipin
    justbipinAuthor
    Known Participant
    June 20, 2006
    on the url www.ADOBE.com go with following link.
    http://www.adobe.com/devnet/flashmediaserver/sample_apps.html
    download --> All Sample Applications (ZIP, 2.55MB)
    you will find a sample that play and record the .flv.
    this may help you.

    Thanks for your interaction with me :)
    justbipin1_at_yahoo.com
    Participating Frequently
    June 21, 2006
    Ahhhhhh, I finally figured out my problem...after hacking apart the tutorial_list application and hardcoding my own stuff everywhere for learning purposes. I was adding the .flv filename extension when calling play(). You must leave that part off!

    Thanks.

    justbipinAuthor
    Known Participant
    June 13, 2006
    can u explain me
    my_nc.connect("rtmp://localhost/ccast/instance1");
    specially this -> ccast/instance1
    Participating Frequently
    June 19, 2006
    ccast is the name of my application, so I've got a ccast directory in my FCS applications directory.

    The "instance1" part is optional. If you include a directory name like this, it will store the recordings in applications/ccast/streams/instance1. Otherwise, it would store them in applications/ccast/streams/_definst_.

    Good News. I downloaded the Riva FLV player, which let me listen to my .flv file that had no video object:

    http://rivavx.de/
    Participating Frequently
    June 19, 2006
    I still can't play the recorded audio file from a SWF, even though I've attached the audio network stream to a video object:

    nc = new NetConnection();
    nc.connect("rtmp://localhost");

    audio_ns = new NetStream(nc);
    my_video.attachVideo(audio_ns);
    audio_ns.play("ccast/voice_over.flv");

    Is this not the right approach? The "my_video" object is the video object on my stage. I can attach local videos to this object and watch them just fine. As stated above, I know that the audio sent from my microphone to the FMS server was recorded okay because I can listen to it with that standalone Riva player application.

    thanks
    Participating Frequently
    June 12, 2006
    I am also trying to let the user send audio from their microphone to Flash Media Server (AKA Flash Communication Server). I can monitor the server to verify that data is being sent, and an .flv file is created when I'm done recording. However, when I open this .flv file, it doesn't play any sound. The Play button in the menu is disabled too. Here's my code so far:

    var connected = false;
    var my_nc:NetConnection;
    var my_ns:NetStream;
    var audio_sound:Sound;
    var active_mic:Microphone;

    this.record_btn.onRelease = function() {
    if(connected)
    pause_voiceover();
    else
    record_voiceover();
    }

    this.stop_btn.onRelease = function() {
    stop();
    }

    function record_voiceover() {
    my_nc = new NetConnection();
    my_nc.connect("rtmp://localhost/ccast/instance1");
    my_ns = new NetStream(my_nc);
    active_mic = Microphone.get();
    my_ns.attachAudio(active_mic);
    my_ns.publish("voice_over", "record");
    //my_video = new FLVPlayback();
    //my_video.play("cafe_townsend_chef.flv");

    connected = true;
    }

    function stop() {
    my_ns.close();
    }
    June 12, 2006
    What are you using to play the .flv file? If you're trying to open it in the Flashplayer... nothing will happen. You need a video object and a netstream to play the flv.

    Try downloading Burak's FLVPlayer. That will allow you to view .flv files locally.
    Participating Frequently
    June 12, 2006
    Where can I find Burak's FLVPlayer? When I try "Burak's FLVPlayer" or "Burak's FLV Player" at Google, I get nothing.

    I have found http://www.buraks.com/, but the only FLV related items there are Captionate and the MetaData Injector.

    Thanks,
    Matt