Menu

How to record sound in iOS?

Chris
2015-02-21
2015-02-26
  • Chris

    Chris - 2015-02-21

    Is there a way to record your voice in iOS?
    please advise

    thanks
    chris

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2015-02-21

    Hi Chris

    • Added TDPFAVAudioRecorder (Microphone Component)

    Please download last source code:
    http://sourceforge.net/p/dpfdelphiios/code/

    Regards

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2015-02-21

    Then see AVAudioRecorder Demo

     
  • Chris

    Chris - 2015-02-22

    Thanks babak.
    Will try out soon.
    BTW, For the UIComboBox.destroy, i did came across an instance whereby the toolbar is NIL and toolbar.release will cause an exception to it.
    Would be safer if can put a check on it.

    thanks
    chris

     
  • Chris

    Chris - 2015-02-22

    Hi Babak
    How to download those updates in the folder you have provided above?
    I have not used svn before.

    please advise

    thanks
    chris

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2015-02-22

    Hi

    You can use TortoiseSVN for updating your source code folder

     
  • Chris

    Chris - 2015-02-23

    Hi Babak
    I was testing the AVRecorder and AVPlayer. If i set the AVPlayer "Repeat" property to false, calling the StartPlayList would not play the file at all. Actually, i wanted it to play once. I don't need to repeat it.
    I also tried calling the play function (with Repeat = true) but it also would not play.
    Is there a way to play the audio file once?

    thanks
    chris

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2015-02-23

    Hi Chris

    You are right, I will fix this bug tonight,

    Regards

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2015-02-23

    Hi Chris

    Use this code:

    procedure TAVAudioRecorder.DPFButtonPlayClick( Sender: TObject );
    begin
       DPFAVPlayer1.Open( '', '', '', '', GetDocumentsFolder + 'test.caf', true );
    end;
    
     

    Last edit: Babak Yaghoobi 2015-02-23
  • Chris

    Chris - 2015-02-24

    Hi Babak
    Thanks for the update. However, is it possible to reduce the file size of the .caf file? I am going to store the audio file into the blob field of the database. Is there a way to reduce the file size?

    please advise

    thanks
    chris

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2015-02-26

    Hi Chris

    We cant compress .caf file, but we can change some audio settings, like AudioQuality or SampleRateKey or ....

    Please download last source code from :
    https://sourceforge.net/p/dpfdelphiios/code/

    See Demo, Improved ;)

    Regards

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.