Hi Sidrah

There is plenty of this on the web, but it will be a steep learning 
curve- be prepared for a couple of weeks solid work.
You'll need to understand the linux sound subsystems, maybe start with 
the Alsa site.
My suggestion : there is plenty of source code for applications that use 
the linux sound system- VOIP phone applications are probably a good 
place to start, download and get to know the source code and lookup the 
sound system API functions. (that is what I did)

As for SPI, from a PC machine, I'd suggest bit-bang from a IO port to 
get you started. There are many IO boards available to do this. Some 
implementations you might be able to use the serial port handshaking 
lines as your SPI lines.
Slow, but workable for control applications- that's how I get to know a 
new peripheral chip in embedded, I write a test program from linux/windows)

There ARE dedicated and very good SPI -USB chips that work on Linux- 
CP2130 SiLabs, for example.
Prerequisites for getting this going is experience with configuring 
serial USG adaptors from their native API I guess.

In many ways, the raw embedded world is a whole lot easier to get things 
going on than a linux system.

regards

glen VK1XX


On 2/04/2015 6:19 PM, Sidrah Javed wrote:
> Hello Everyone,
>
> I am working to implement Codec 2.0 on STM32F4 Discovery Board. I am 
> grateful to David that I have been able to do so using Open Source 
> Code and LINUX commands.
> Now I am willing to use this board as a stand alone device.
> I want to use two boards, one as encoder and the second one as 
> decoder. I want to take audio input from built in mic of first encoder 
> board and after encoding it should pass the digital output to the 
> second board (Using SPI-API Master Slave Configuration). Then It 
> should produce constructed speech on the speaker of second board after 
> decoding.
>
> I am a beginner and I would really appreciate any help and suggestions 
> on how to proceed and achieve these goals. I need assistance on two 
> things.
> 1. How to take input audio from mic and give output to speaker in 
> Linux environment?
> 2. How to enable serial communication between two boards? How to use 
> them in Master Slave SPI-API configuration in LINUX?
>
> Looking forward for the kind response.
>
> Best Regards
> Sidrah Javed


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to