Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to change the frequency of a wav file using PIC ?

Status
Not open for further replies.

piskot

Newbie level 6
Joined
Aug 3, 2007
Messages
11
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,339
hi everyone

my teacher wants me to change the frequency of an audio file(in .wav) using microcontroller. is it possible?
the wav file will be read from matlab using wavread. the data from matlab , consist of the wave vector, and sampling freq will be used.
if it is possible how can i do it. can anyone give me a clue?

thank you

Added after 55 minutes:

its like an audio frequency changer but only short audio file. say a recorded "hello" voice.
 

Re: wav file to pic

It is very simple, make a PWM output, with the frequency of, let's say, 8KHz (depending on the max frequency in wav file- make PWM frequency double), then change the duty cycle proportionaly to amplitude of the sample. Finally, take the generated PWM signal to RC filter and there you have it.

I tried it with 18F8722 + CF card + mikroPascal and it works great.


EDIT:
Changing the frequency of PWM will make the voice faster or slower...
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top