Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Pitch detection using verilog HDL codes

Hi,

I would like to do some pitch detection using verilog codes. Does anyone have done it before?

Firstly, I would like to save my recorded audio files (.wav files) into SDRAM on DE2 FPGA. However, I have no clue on how to perform such a process. Does anyone know how to store audio files into SDRAM?

Besides, after storing the audio files into the SDRAM, I would like to read it out and perform FFT process to detect the pitch / frequency of the audio files. Is it possible to do so? Did I miss out any steps?

Thank You.:)

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I'm working on an audio processing project now using the DE2. I'm pretty much a VHDL, fpga and Quartus beginner. It is straight forward to do but in practice i've spent hours and hours messing around with stuff. Today i got the audio samples in and out of the SDRAM with control over the read pointer for delays etc.

    So yeah, i'd say its doable. Start with getting the CODEC audio samples in and out of the FPGA.

    These forums are great for help! i'd be stuck without this.

    Good luck and sorry if this isn't much help
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi, Tap.

    Thanks for your advice and guidance. :)

    May I know how did you get your audio samples in and out from the SDRAM with control of the read pointer?

    Is your audio samples in (.wav format)?

    Where did your audio samples inputted?

    Is it thru the line-in / microphone?

    "Start with getting the CODEC audio samples in and out of the FPGA"

    meaning I should store my audio samples in the audio codec but not the SDRAM first?

    What if I store my (.wav audio file) in the SDRAM instead of the audio codec, will it be less complicated? provided my (.wav audio file) is less than 1Mbyte.

    Thank You.:)