Questions relating to Inter-IC Sound, typically on microcontrollers and the Raspberry Pi.
Questions tagged [i2s]
50 questions
0
votes
0 answers
I2S to transmit real time waveform
I am starting with ESP32 board and programming it in C. I am working in an application that needs 4 dac. It has two 8-bit dac. I am thinking to use the i2s interface to send real time waveform and use an amplifier to decode i2s and feed a resistive…

Renzo Fabián
- 21
- 6
0
votes
0 answers
Raspberry CM4 to work with external I2S codec
I'm trying to connect a raspberry compute module 4 to a TLV320AIC3104 external audio codec with PCM.
I compiled and loaded the drivers into the kernel, and the driver appears when I run lsmod.
I have connected an audio box, with a headset with…

Ankilarion
- 1
- 2
0
votes
0 answers
PCM data handling with Raspberry 4 and audio codec (TLV320AIC3104)
I´m working on a project with a Raspberry 4 compute module and IO board.
This is a schema of the project:
https://drive.google.com/file/d/1mg5IhAKTUE2Athzafis1KSsEJS1T7DXG/view?usp=sharing
I have to handle audio and voice to make calls with the…

Ankilarion
- 1
- 2
0
votes
0 answers
Playing different audio formats using I2S
I'm using MicroPython and I2S to play audio through a MAX98357A DAC board. I have multiple audio files (currently all were converted to WAV) on the SDCard and upon a user interaction I start play them randomly.
The relevant code in the play(...)…

Zach Moshe
- 2,782
- 4
- 24
- 40
0
votes
2 answers
Change audio format without changing audio from the command line
I have some audio recorded form an i2s mic at 16000hz with arecord. It sounds like it is down an octave so I want to change the file format to 32000hz. When I try to do this with sox it edits the audio, not just the format so it still sounds…

bob mcgrath
- 61
- 1
- 8
0
votes
1 answer
STM32 using I²S (DMA) retrieve data and output via USB CDC, but the result has noise
I'm using the STM32F3Discovery board and codec CS5343 to implement this project. It's almost completed, but the output is not smooth. It is looking like a step deformation.
Example: 100 Hz sine wave (the result of processed, two's complement and…

Gypsy Lang
- 1
- 2
0
votes
0 answers
Writing High-Speed I2S to SD Card
I've been struggling with finding a solution for the following in a personal hobby project of mine for the last six months and really starting to run out of ideas. I've been trying to create a modification of sorts for a Sony XDR-F1HD HD Radio,…

RomanPort
- 81
- 1
- 6
0
votes
1 answer
ESP32 with max98357a board works. But I can't use void loop() function for other purposes
I have been learning how to program in esp32 using arduino IDE.
I couldn't figure out how to use max98357a board with Esp32-DevKitC. I have tried "Audio.h" and "AudioTools.h" libraries but not is changed.
My first attempt was just testing voice…

Mustafa Sarıalp
- 13
- 1
- 7
0
votes
0 answers
How to configure I2S with an external DAC?
I am building a bluetooth speaker that detects voice commands via microphone (using ESP32). The microphone is using I2S and an internal ADC. Then I have an external DAC to play music from bluetooth. i2s_num_0 is attached to the internal ADC. How do…
0
votes
1 answer
STM32 Read mic value (MP34DT05-A) from I2S DMA
I want to read MEMS microphone (MP34DT05-A) value (in ASCII) from STM32F107 board. I'm using I2S to communicate with the microphone.
What I did:
I tried simple reading with HAL_I2S_Receive_DMA(&hi2s3, i2sbuffer, 100); which uint16_t i2sbuffer[256];…

Pnzy
- 25
- 5
0
votes
1 answer
Getting only half of the channels I2S Beaglebone AI
Hello I want to record 8 channels from TIDA-01454 CMB into a Beaglebone AI. As the CMB is built with two PCM1864 ADCs and it is also a Beagle board, I followed this guide(https://www.ti.com/lit/an/sprac97/sprac97.pdf) with some…

Mikel
- 40
- 1
- 9
0
votes
0 answers
Header missing error while playing MP3/WAV files recorded using MediaRecorder on ESP32 using ESP32-audioI2S library
I am trying to record a .mp3 and a .wav using MediaRecorder Javascript library on a webpage and play it on ESP32 using ESP32-audioI2S library. I am able to play the recorded MP3 and WAV file on PC with audacity player/Windows player. But same…

Kartik P
- 1
0
votes
1 answer
Alsa records double speed
Disclaimer : I posted for the same issue (with a different point of view) here
I use a SPH0645 I2S microphone with a custom driver.
It seams properly recognized by alsa :
arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: imxaudiosph0645…

Yannholo
- 179
- 1
- 2
- 10
0
votes
1 answer
PIC32MX : SPI1CON.SPIBUSY bit never gets cleared
I'm trying to generate a simple sinusoid sound with a PIC32MX250F128B communicating by I2S with a DAC+Amplifier slave module (MAX98257). The end goal is to make a synthesizer with a keyboard for a school project.
I created a basic project with…
0
votes
1 answer
I2S Data Structure (Inter-IC Sound)
There are tons of electrical descriptions of I2S; however, I cannot find information about how the data is formatted/structured. What I mean by format is, what does a value on the serial data line mean? Do these values have information on volume,…

Megool
- 963
- 2
- 8
- 29