How to save an recorded sound???

Hi....am a newbie...
I have created an application in J2ME that records sound and plays it back.Have tried in real mobile.Its working fine.
I want to save that recorded sound somewhere in the mobiles drive so that i can hear it later.
Please help and advice.
It would be of great help.
Thanks.

hi, i am new to j2me n wrking on the same project.plz can to help me in recording the voice n playback in mobile by provind the code for recording the voice.
Thanks you

Similar Messages

  • How to use a recorded sound in voice memos as a ringtone.

    How to use a recorded sound in voice memos as a ringtone.

    You may have better luck dumping those to computer and using an application that includes the ability to scrub.
    Try the Mac App Store for choices.

  • How to Save Multiple Records In Data Block

    Hi All,
    I Have Two Blocks --> Control Block,Database Block
    Please Any Idea How to Save Multiple Records In Data Block when User changed Data in Control Block.
    Thanks For Your Help
    Sa

    Now i have to use each record of control block(ctl_blk) as where condition in data base block(dat_blk)and display 10 records from database table.>
    Do you want this coordination to be automatic/synchronized or only when the user clicks a button or something else to signal the coordination? Your answer here will dicate which trigger to put your code in.
    As to the coordination part, as the user selects a record in the Control Block (CB), you will need to take the Key information and modify the Data Block's (DB) "DEFAULT_WHER E" block property. The logical place to put this code is the CB When-New-Record-Instance (WNRI) trigger. You code will look something like the following:
    /* Sample WNRI trigger */
    /* This sample assumes you do not have a default value in the BLOCK WHER E property */
    DECLARE
       v_tmp_dw    VARCHAR2(250);
    BEGIN
       v_tmp_dw := ' DB_Key_Column1 = '||:CONTROL.Key_Column1||' AND DB_Key_Column2 = '||:CONTROL.Key_Column_2;
       Set_Block_Property('DATA_BLOCK', DEFAULT_WHER E, v_tmp_df);
       /* If you want auto coordination to occur, do the following */
       Go_Block('DATA_BLOCK');
       Execute_Query;
       /* Now, return to the Control Block */
       Go_Block('CONTROL_BLOCK');
    END;
    The Control block items are assigned with values in Form level (Key_exeqry).If your CD is populated from a single table, it would be better to create a Master - Detail relationship (as Abdetu) describes.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • HT4528 How do save a text sound to a ringtone on my iPhone 4

    How do I save a text sound to my phone?

    Is this a custome texttone that you created?
    Could be possible that you can only use it for text message and not as a ringtone.

  • How to save all records in the Tabular form page temoprarily

    Hi All,
    I am very new for HTML DB. I created 5 tabular form using HTML DB Wizard. I want that whenever I open any tabular form page and click the add row button in that page then I should add as many record as we need but it should not save in the database but want to save all the page record temporarily in the page. When save button should click then it should save in the database. Can anyone suggest how to do in stepwise. It will be a great help for me.
    Thanks.
    Amit

    Hi,
    Anyone, can help me with this scenario.
    Brgds,
    Mini

  • How to save a record with null foreign key?

    Dear all,
    Most articles show non-nullable foreign keys; but now I've got a problem with nullable foreign keys.
    With this simple example: an employee has zero or one manager.
    in manager object:
    @OneToMany(cascade={CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH}, mappedBy="manager")
    private Collection<Employee> employees;
    in employee object:
    @ManyToOne
    @JoinColumn(name="manager_id")
    private Manager manager;
    when updating an employee record, i may use a selectOneMenu to pass a manager id of "0", I expect toplink to save a null manager_id in the employee record; but i tries to create a new manager object of id="0" (i.e. insert a new manager record instead)
    the code i use to save an employee is like this:
    em.getTransaction().begin();
    em.merge(employee);
    em.getTransaction().commit();
    What's the correct way to save the employee record with a null manager_id column?
    Could someone help?
    Thanks a lot!
    AK

    But could you give me some pointers on how could I do
    that from the web UI level?Got it. You want to select "nothing" and then set the object reference to that. I can't help you on JSF but how do you lookup the selected object behind the scenes? If you use entityManager.(Employee.class, 0) then you should get back null if there is no Employee with id=0.
    --Shaun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to save multiple records at a time?

    Hi
    Can any one help me to save the multiple rows using ADF 11g?
    I have the requirement something like, Dragged the VO as a ADF table on the screen, Added the CreateInsert operation and commit operations on to the screen. User have the abliity to add multiple rows and then what is the best way to save all the records at a time instead of one by one.
    the commit operations allows to store single row at a time.
    Thanks

    Actually, the commit action will commit all outstanding rows. Add a bunch of rows, fill in the data, press commit -> all of the rows are saved. Perhaps you could be more explicit in what you are trying and the results.
    Best,
    John

  • How to record sound with Java Sound?

    I just want to record a clip of sound and save it to a WAV file. I exhausted the web but didn't find a tutorial. Would someone be kind enough to give me a tutorial or a sample code? The simpler the better. Thanks.

    Here's the code I used to record and play sound. Hope the length do not confound you.
    import javax.sound.sampled.*;
    import java.io.*;
    // The audio format you want to record/play
    AudioFormat.Encoding encoding = AudioFormat.Encoding.PCM_SIGNED;
    int sampleRate = 44100;
    byte sampleSizeInBits = 16;
    int channels = 2;
    int frameSize = 4;
    int frameRate = 44100;
    boolean bigEndian = false;
    int bytesPerSecond = frameSize * frameRate;
    AudioFormat format = new AudioFormat(encoding, sampleRate, sampleSizeInBits, channels, frameSize, frameRate, bigEndian);
    //TO RECORD:
    //Get the line for recording
    try {
      targetLine = AudioSystem.getTargetDataLine(format);
    catch (LineUnavailableException e) {
      showMessage("Unable to get a recording line");
    // The formula might be a bit hard :)
    float timeQuantum = 0.1F;
    int bufferQuantum = frameSize * (int)(frameRate * timeQuantum);
    float maxTime = 10F;
    int maxQuantums = (int)(maxTime / timeQuantum);
    int bufferCapacity = bufferQuantum * maxQuantums;
    byte[] buffer = new byte[bufferCapacity]; // the array to hold the recorded sound
    int bufferLength = 0;
    //The following has to repeated every time you record a new piece of sound
    targetLine.open(format);
    targetLine.start();
    AudioInputStream in = new AudioInputStream(targetLine);
    bufferLength = 0;
    for (int i = 0; i < maxQuantums; i++) { //record up to bufferQuantum * maxQuantums bytes
      int len = in.read(buffer, bufferQuantum * i, bufferQuantum);
      if (len < bufferQuantum) break; // the recording may be interrupted
      bufferLength += len;
    targetLine.stop();
    targetLine.close();
    //Save the recorded sound into a file
    AudioInputStream stream = AudioSystem.getAudioInputStream(new ByteArrayInputStream(buffer, 0, bufferLength));
    AudioFileFormat.Type fileType = AudioFileFormat.Type.WAVE;
    File file = new File(...); // your file name
    AudioSystem.write(stream, fileType, file);
    //TO PLAY:
    //Get the line for playing
    try {
      sourceLine = AudioSystem.getSourceDataLine(format);
    catch (LineUnavailableException e) {
      showMessage("Unable to get a playback line");
    //The following has to repeated every time you play a new piece of sound
    sourceLine.open(format);
    sourceLine.start();
    int quantums = bufferLength / bufferQuantum;
    for (int i = 0; i < quantums; i++) {
      sourceLine.write(buffer, bufferQuantum * i, bufferQuantum);
    sourceLine.drain(); //Drain the line to make sure all the sound you feed it is played
    sourceLine.stop();
    sourceLine.close();
    //Or, if you want to play a file:
    File audioFile = new File(...);//
    AudioInputStream in = AudioSystem.getAudioInputStream(audioFile);
    sourceDataLine.open(format);
    sourceDataLine.start();
    while(true) {
      if(in.read(buffer,0,bufferQuantum) == -1) break; // read a bit of sound from the file
      sourceDataLine.write(buffer,0,buffer.length); // and play it
    sourceDataLine.drain();
    sourceDataLine.stop();
    sourceDataLine.close();You may also do this to record sound directly into a file:
    targetLine.open(format);
    targetLine.start();
    AudioInputStream in = new AudioInputStream(targetLine);
    AudioFileFormat.Type fileType = AudioFileFormat.Type.WAVE;
    File file = new File(...); // your file name
    new Thread() {public void run() {AudioSystem.write(stream, fileType, file);}}.start(); //Run this in a separate thread
    //When you want to stop recording, run the following: (usually triggered by a button or sth)
    targetLine.stop();
    targetLine.close();Edited by: Maigo on Jun 26, 2008 7:44 AM

  • Draw an audio waveform from recorded sound

    I have problem with draw static waveform from recorded sound. Here is an example of which I wanted to use: http://cookbooks.adobe.com/post_Draw_an_audio_waveform_from_an_MP3_file-16767.html
    Here is an excerpt of my code, where the recorded sound, and I play it:
        public function startRecording():void
                    stop.enabled=true;
                    soundClip = new ByteArray();
                    microphone = Microphone.getMicrophone();
                    microphone.rate = 44;
                    microphone.gain = 100;
                    microphone.addEventListener(SampleDataEvent.SAMPLE_DATA, microphone_sampleDataHandler);              
                public function stopRecording():void
                    play.enabled=true;
                    microphone.removeEventListener(SampleDataEvent.SAMPLE_DATA, microphone_sampleDataHandler);
                    level.width = microphone.activityLevel * 0;
                    level.height = microphone.activityLevel * 0;
                protected function microphone_sampleDataHandler(event:SampleDataEvent):void
                    level.width = microphone.activityLevel * 1;
                    level.height = microphone.activityLevel * 1;
                    while (event.data.bytesAvailable)
                        var sample:Number = event.data.readFloat();
                        soundClip.writeFloat(sample);
                public function startPlaying(soundClip:ByteArray):void
                    this.soundClip = soundClip;
                    soundClip.position = 0;
                                    sound = new Sound();
                    sound.addEventListener(SampleDataEvent.SAMPLE_DATA, sound_sampleDataHandler);
                    channel = sound.play();
                protected function sound_sampleDataHandler(event:SampleDataEvent):void
                    if (!soundClip.bytesAvailable > 0)
                        return;
                    for (var i:int = 0; i < 8192; i++)
                        var sample:Number = 0;
                        if (soundClip.bytesAvailable > 0)
                            sample = soundClip.readFloat();
                        event.data.writeFloat(sample);
                        event.data.writeFloat(sample); 
    Is there any other way than to save the recorded sound as mp3 (which will also be complicated), or can I use this example given and work on ByteArray? I tried to redo it a little, I'm sitting on this already a lot of time and unfortunately to no avail. Any ideas? Tips?
    I would like to compare the recorded sound with the original. Draw waveform will be the first step. Maybe you also have some tips of how to compare the two sounds?
    I would be very grateful for every answer,
    Lilly

    Maybe not related to your problem, but your plugins list shows outdated plugin(s) with known security and stability risks.
    # Shockwave Flash 10.0 r32
    # Next Generation Java Plug-in 1.6.0_17 for Mozilla browsers
    Update the [[Java]] and [[Falsh]] plugin to the latest version.
    See
    http://java.sun.com/javase/downloads/index.jsp#jdk (you need JRE)
    http://www.adobe.com/software/flash/about/
    See [[No sound in Firefox]] and [[Video or audio does not play]]

  • I can't save the record in a new/empy table of sqlserver in the entity Framework 5.0

    Hi guys ,
    I have tried to become a database expert in Entity Framework but I can't. because I am not able to save the record in a fresh/ empty table of sql server 2008 r2 database. for that I have watched the video tutorials step by steps that how to save the record.
    I followed the tutorials step by step and at the end the result is negative.
    I tried a simple way given below. please some one help me that where and what I missing the.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using EmployeesLib;
    namespace EmpApplication
    public partial class Form1 : Form
    private EMPEntities _dbContext;
    public Form1()
    InitializeComponent();
    private void Form1_Load(object sender, EventArgs e)
    _dbContext = new EMPEntities();
    var sql = _dbContext.Employees;
    this.employeeBindingSource.DataSource = sql.ToList();
    private void employeeBindingNavigatorSaveItem_Click(object sender, EventArgs e)
    this.Validate();
    _dbContext.SaveChanges();
    I have used datagrid addid a row by Click Add button on the NavigationBindingsource entered an employee name
    and clicking the save button on the NavigationBindingSource. When I am restarting the application I nothing founding on the Datagrid I am saving before.
    below is the Connection String in the App.config file both in the project.
    APP.CONFIG connection string
        <add name="EMPEntities" connectionString="metadata=res://*/EmpModal.csdl|res://*/EmpModal.ssdl|res://*/EmpModal.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=(local);initial catalog=Inventory;integrated
    security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />

    humm, I falling the ball to the batsman(sqlserver) but it getting "NOBALL" in response(not saving). Ok it my be problem in visual studio I am struggling to remove my operating System, VS2013 and sql server, by reinstalling it might works.
    because i havent any other computer where these application are installed for the test.
    If you create and send me a small project that contain minimum of two columns of table( in sql server ) which can saving new data from datagrid so i will thankfull of you.
    it is just for confirmation that either the problem is in OS or VS.
    I doubt that any of it has anything to do with the issue. If you think it does, then you can post to the forums.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vssetup
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?category=sqlserver
    I think you are riding a bad horse (that tutorial) you are using, and you need to change horses. I think the 'modified' state is not being rasied on the entity bound to the grid when it has changed, and EF is not going save any entity that's not in a modified
    state.

  • Microphone is not recording sound.

    When I try to record, this happens.
    $ arecord -d 5 test-mic.wav
    ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave
    arecord: main:722: audio open error: No such file or directory
    I got an HP pro book. Anyone have any tips on how to get it recording sound (video works fine)?

    Is your user in the audio group (this may be different now with systemd)?  Sometimes you need PA to get the mic to record.

  • Playing and recording sound

    Hello, I am completelly new in Java programing. I was assigned to search for how to play and record sound in an appliation in Java, can somebody help me?
    Thanks

    http://www.google.com.au/search?hl=en&q=java+play+sound&btnG=Google+Search&meta=
    http://www.google.com.au/search?hl=en&q=java+record+sound&btnG=Google+Search&meta=

  • How can i record sound and save it in a file..?

    Can someone plz provide me a simple code for recording sound and saving it in a file..

    Nope...all of the code to do that is complicated...and since you apparently can't figure out google, I'm afraid you're likely out of luck.

  • How do you just record another audio sound with your phone

    How do you just record and save another audio sound with the droid x 

    You have posted in the wrong forum, this is Keynote Mac,
    you should ask your question here:   iOS forum

  • Can you record sounds and save as a ringtone with the IPhone4?

    I'm new to the IPhone. All other phones I' ve used in the past I could save sounds and use them as a ringtone. I just can't seem to figure it out with the I4. Can it be done?

    You can record sounds with the Voice Memos app, then sync them to your computer by selecting "Include voice memos" on the Music tab of y0ur iTunes sync settings and syncing your phone.  Once synced to your computer they will appear in a Voice Memos playlist that iTunes creates on the left sidebar.  Then you have to convert it to a ringtone using iTunes as shown here: Create free ringtones with iTunes 10.  After this is done, you can check the ringtone in your iTunes library, then check Sync Tones on the Tones tab of your iTunes sync settings and sync.  Custom ringtones will appear in Settings>Sounds>Ringtone at the top of the list.

Maybe you are looking for

  • 2G Shuffle error "disk could not be read from or written to"

    Just recieved a 2G as a gift. First sync went fine. Songs transferred without issue. Wanted to change some settings and re-sync with new songs and got the error message "disk could not be read from or written to". Have tried on an XP64 and a Windows

  • Can i display My application iview and transaction iview in single page ?

    Hi, I am new in web dynpro and portal. i am doing one approval application through web dynpro. Now i need to attache sap inbox to application. For that some budy suggested me about transaction view. So my questions are as folloes. 1.> How i attached

  • Can you turn the data off?

    Im planning on buying an iPhone. I dont want to get a data plan. Is there a way to make the iPhone only transfer data via wi-fi and not any of my cell phones networks?

  • Re: Satellite C660D-102 - How to copy Windows on DVD?

    Hello people. I have bought a new Toshiba Satellite C660D-102. The seller told me to copy Windows on DVDs soon to open the laptop. Do not know where to take the Windows installation files. You've encountered this problem? How can I fix this problem.

  • Put a form in QUERY mode

    Hi, how to put a form in QUERY mode ? Many thanks.