Sign in

username or email:

password:



Not a member?
Forgot your password?

Search c6x



Search tips

Subscribe to c6x





Discussion Groups

See Also

Embedded SystemsFPGA

Discussion Groups | TMS320C6x | microphone out put

dear friends i want to collect audio samples from pc via microphone and convert it into PCM A-law.(i.e. paly wave file on codec)..please give me suggetion , what are the steps i need to do so?.....

  

Post a new Thread



Is this thread worth a thumbs up?

0

microphone out put - raja nayaka - Dec 17 7:51:00 2002

dear friends

i want to collect audio samples from pc via microphone and convert it into PCM

A-law.(i.e. paly wave file on codec)..please give me suggetion , what are the
steps i need to do so?...

once i used wave file and converted it in to A-law using some linear to Alaw
function.

and fed to codec...the final out put was full of noise...

can any body tell me what type(format) of sample we get from microphone output
in PC.?
thanking you

rjnayaka







(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: microphone out put - Jeff Brower - Dec 17 15:37:00 2002

Raja Nayaka-

> i want to collect audio samples from pc via microphone and convert it into PCM
>
> A-law.(i.e. paly wave file on codec)..please give me suggetion , what are the
steps i need to do so?...
>
> once i used wave file and converted it in to A-law using some linear to Alaw
function.
>
> and fed to codec...the final out put was full of noise...

Try some basic debug: what if you just fed .wav file to codec? Did you hear
it? If
so, then codec was not programmed correctly to accept A-law format data.

[note] You might get much better answers from the group if you mention which C6x
board you are using ! Then everyone would know which codec, then you might
actually
get a suggestion for configuring the codec...

Jeff Brower
DSP sw/hw engineer
Signalogic




______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: microphone out put - raja nayaka - Dec 18 7:08:00 2002

thanks for reply
we are using TMS320C6211 DSP based customized board for communication purpose.
the codec connected is TMC38C17.
we could able to record and play back the sample thru and from codec
directly(without wave file).
how ever, when we feed wave out samples (converted to a A-law sample using
lin-to-Alaw function) from pc to codec we are not able to hear the speech (other
than noise)
our required flow is: microphone->PC->DSP borad->codec->speech
tahnking you
Raja Jitendra nayaka
Scientist
ITI Ltd ,
Bnagalore
Jeff Brower <> wrote:Raja Nayaka-

> i want to collect audio samples from pc via microphone and convert it into PCM
>
> A-law.(i.e. paly wave file on codec)..please give me suggetion , what are the
steps i need to do so?...
>
> once i used wave file and converted it in to A-law using some linear to Alaw
function.
>
> and fed to codec...the final out put was full of noise...

Try some basic debug: what if you just fed .wav file to codec? Did you hear it?
If
so, then codec was not programmed correctly to accept A-law format data.

[note] You might get much better answers from the group if you mention which C6x
board you are using ! Then everyone would know which codec, then you might
actually
get a suggestion for configuring the codec...

Jeff Brower
DSP sw/hw engineer
Signalogic
Catch all the cricket action. Download Yahoo! Score tracker


______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: microphone out put - Jeff Brower - Dec 18 15:35:00 2002

Raja Nayaka-

> we are using TMS320C6211 DSP based customized board for communication purpose.
> the codec connected is TMC38C17.
> we could able to record and play back the sample thru and from codec
directly(without wave file).
> how ever, when we feed wave out samples (converted to a A-law sample using
lin-to-Alaw function) from pc to codec we are not able to hear the speech (other
than noise)
> our required flow is: microphone->PC->DSP borad->codec->speech

I am not familiar with 38C17 codec. I assume you are getting linear input
samples
from the 38C17. Since DSP sw loopback works in linear (PCM) mode, have you
tried
loopback by configuring the McBSP for A-Law format for *both* Rx and Tx? If you
can
get A-Law loopback working then it should be a simple step to insert A-Law
samples
from the PC. If that doesn't work, then PC communication or the format of the
PC
samples would be the problem.

Jeff Brower
DSP sw/hw engineer
Signalogic

> Jeff Brower <> wrote:Raja Nayaka-
>
> > i want to collect audio samples from pc via microphone and convert it into
PCM
> >
> > A-law.(i.e. paly wave file on codec)..please give me suggetion , what are
the steps i need to do so?...
> >
> > once i used wave file and converted it in to A-law using some linear to Alaw
function.
> >
> > and fed to codec...the final out put was full of noise...
>
> Try some basic debug: what if you just fed .wav file to codec? Did you hear
it? If
> so, then codec was not programmed correctly to accept A-law format data.
>
> [note] You might get much better answers from the group if you mention which
C6x
> board you are using ! Then everyone would know which codec, then you might
actually
> get a suggestion for configuring the codec...
>
> Jeff Brower
> DSP sw/hw engineer
> Signalogic



______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: microphone out put - raja nayaka - Dec 20 9:20:00 2002

dear chassaing

thanks for reply.

1] i am not aware of your book, i will try get it , and give tips how to get it in meantime.   it will be more helpfull if you send me ,examples related to my problem.

2] we are using TIs quad combo CODEC TMC38C17.(you will get more info on TIs web).

3] we did following experiment in our R&D.

    a] samples collected and played back success fully on from and to TMC38c17 respectively.

      the flow is :        telephone->codec->dsp->memorystore->codec->telephone.

      b]  samples collected from PC micro phone and played back on PC speaker.

        the flow is :  mic->pc memory->speaker.

         now the problem is , i want play samples collected from PC microphone on phone through TMC38c17.

      needed flow is:  mic->PC memory->DSP board memory(RAM)->codec->telephone.

16bit linear data to Alaw.

this experiment we did in our lab, but the out put at telephone is noisy.

i want to know what rea the steps i need to play microphone out put from PC to play on telephone.

 

thanking you in advance

Raja Jitendra Nayaka

Bangalore

 

 

 

 

 chassaing wrote:

Hi:

Are you familiar with my book: "DSP Applications Using C and the TMS320C6x
DSK"? Included are dozens of examples. Also a student (graduate-level)
project on u-Law for speech companding.

You should use/test your algorithm with the on-board codec. Is the 38C17
the on-board codec (I am not familiar with it). I have included examples
using the AD535 on board the C6x DSK as well as examples using the PCM3003
stereo codec. TI sells a $50 (U.S.) Audio Daughter Card based on the
PCM3003.

I assume that you have other examples tested successfully using your board
with the 38C17 codec.

You can contact me directly if I can be of help.

Rulph Chassaing

----- Original Message -----
From: "raja nayaka"
To: "Jeff Brower"
Cc:
Sent: Wednesday, December 18, 2002 2:08 AM
Subject: Re: [c6x] microphone out put> thanks for reply
> we are using TMS320C6211 DSP based customized board for communication
purpose.
> the codec connected is TMC38C17.
> we could able to record and play back the sample thru and from codec
directly(without wave file).
> how ever, when we feed wave out samples (converted to a A-law sample using
lin-to-Alaw function) from pc to codec we are not able to hear the speech
(other than noise)
> our required flow is: microphone->PC->DSP borad->codec->speech
> tahnking you
> Raja Jitendra nayaka
> Scientist
> ITI Ltd ,
> Bnagalore
> Jeff Brower wrote:Raja Nayaka-
>
> > i want to collect audio samples from pc via microphone and convert it
into PCM
> >
> > A-law.(i.e. paly wave file on codec)..please give me suggetion , what
are the steps i need to do so?...
> >
> > once i used wave file and converted it in to A-law using some linear to
Alaw function.
> >
> > and fed to codec...the final out put was full of noise...
>
> Try some basic debug: what if you just fed .wav file to codec? Did you
hear it? If
> so, then codec was not programmed correctly to accept A-law format data.
>
> [note] You might get much better answers from the group if you mention
which C6x
> board you are using ! Then everyone would know which codec, then you might
actually
> get a suggestion for configuring the codec...
>
> Jeff Brower
> DSP sw/hw engineer
> Signalogic
> Catch all the cricket action. Download Yahoo! Score tracker
>
>
> _____________________________________
>
>
>
>
>
>
>


Catch all the cricket action. Download Yahoo! Score tracker

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )