×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    22

    Unhappy HELP me , Using Audio Stream record AMR

    I build the AudioStreamExample released by NOKIA and install it on NOKIA 6681(Chinese version of 6680).It works well and give me 320 bytes PCM data every 20 ms. I can store the data and play them later.

    I need to record audio in AMR format. I search the forum and find some good posts.I want to record AMR directly.

    I add two line in ConstructL function of AudioStreamEngine.cpp:
    iInputStream->SetDataTypeL( TFourCC(KMMFFourCCCodeAMR) );
    iOutputStream->SetDataTypeL( TFourCC(KMMFFourCCCodeAMR) );
    I change KStreamBufferSize to 32 and KStreamBufferCount to 100,and then build it and install it on NOKIA 6681. It works, but this time,every time CAudioStreamEngine::MaiscBufferCopied be called, there is only 32 bytes in the buffer.I store them and try to play them later. When I play them I hear nothing.

    Can anyone tell me what is wrong? Had anyone record AMR using Audio Stream successfully?

    Any help would be appreciated.
    BTW: I am working on Series 60 2nd Edition FP2 .

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    8

    Re: HELP me , Using Audio Stream record AMR

    U can record data as PCM16 format only and frquency is 8000hz if u are using CMDaAudioStreaming.
    u have to convert this PCM data in to amr.

    NB

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    22

    Re: HELP me , Using Audio Stream record AMR

    I read this page.
    http://www3.symbian.com/faq.nsf/0/89...6?OpenDocument
    It says "The streaming utilities on Symbian OS v8.0 onward can be set up to
    stream non-PCM16 data".

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: HELP me , Using Audio Stream record AMR

    Hi,

    on 6680 you have two possibilites:

    a) recording into buffer and them streaming -> all done directly in AMR
    b) recording into PCM, converting into AMR and then streaming...

    Where this can be found??? Just search the forum!!

    http://discussion.forum.nokia.com/fo...6&page=1&pp=15
    http://discussion.forum.nokia.com/fo...ad.php?t=55759

    ---------------------------------------------------
    CUT AND PASTE FROM THE LINK ABOVE:

    Hi Rocco77,

    thanks to info, so there are basically three ways how to implement AMR recording:

    HARDWARE
    ========
    1) Direct use of CMMFDevSound
    2) CMdaAudioInputstream, which probably use CMMFDevSound

    SOFTWARE(slower and lower quality)
    ========
    streaming into PCM and the do CMMFCodec pcm2amr conversion.

    Do you know how to set CMMFDevSound parameters??? From our obesrvation it use GSM-EFR codec ( the same as CS call???) Is it possible to set it to AMR 475?? or not?
    ---------------------------------------------------
    Bye
    STeN

  5. #5
    Registered User
    Join Date
    Oct 2005
    Posts
    22

    Re: HELP me , Using Audio Stream record AMR

    Thank you, Stenlik.
    I have made it. )))))))))))))))))))))))))))))

  6. #6
    Registered User
    Join Date
    Mar 2003
    Posts
    23

    Re: HELP me , Using Audio Stream record AMR

    Hi Tennis,

    So you managed to implement voice streaming in AMR format? Could you guide us all a little bit about how to do it, please?
    Have you only tested in the 6680, or do you think it may work in earlier Symbian versions?

    Thank you very much for any help!

  7. #7
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: HELP me , Using Audio Stream record AMR

    Hi rigelmsp,

    just look on the CMMFDevSound in the include directories of you 8.0a FP2 SDK. And yes, I've test it on N6630, N6680, N70, N90... It works on those devices.

    Bye
    STeN

  8. #8
    Registered User
    Join Date
    Jan 2005
    Posts
    8

    Cool Re: HELP me , Using Audio Stream record AMR

    Hi Sten,
    Need ur expertise...
    I am recording audio data in amr format directy using streaming. I am finding some problem on amr format. I need to use DTX mode for recording. Can you help me how can I put DTX mode on in streaming.



    thnx in advance
    NB

Similar Threads

  1. Buggy AMR Audio Recording. Please Help!!
    By jhamby in forum Symbian
    Replies: 8
    Last Post: 2009-07-07, 10:34
  2. Recording an audio stream using the Series 60 emulator
    By rastapasta in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2007-04-23, 11:46
  3. Audio stream in AMR format for Nokia 6630
    By kavijohn in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-04-24, 07:41
  4. Recording an Audio Input stream using CMdaAudioInputStream
    By rastapasta in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2006-01-30, 23:26
  5. Help regrading AMR audio recording!
    By delipsingh in forum Symbian
    Replies: 2
    Last Post: 2005-01-21, 10:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×