Good morning, I need assistance in selecting an audio codec for my Banana Pi M2 Zero. I want to connect a microphone and a speaker, but my Banana Pi does not have integrated ADC or DAC. I am looking for an audio codec that can read from a microphone and write to a speaker through the SPI, I2C, or UART interfaces available on my board.
Initially, I considered using the PCM3060, which has a 3-wire SPI or I2C control interface. However, upon reviewing the datasheet, I noticed that it mentions that the input and output formats are I2S (my device does not have I2S) or T left-justified or right-justified format (which I do not fully understand what it refers to), although I am not sure if this suits my needs.
Basically, I am looking to convert an analog signal from a microphone to PCM format so that I can play it on my Banana Pi and subsequently save it as an audio file such as WAV or MP3. Additionally, I need the ability to take existing audio files in formats like WAV or MP3 and convert them to a format that can be played and sent to the speaker