{"id":20293529,"url":"https://github.com/mingderwang/i2s_recorder","last_synced_at":"2026-06-03T22:31:00.328Z","repository":{"id":66841196,"uuid":"548286461","full_name":"mingderwang/i2s_recorder","owner":"mingderwang","description":"i2s_recorder for EPS32-One kit board","archived":false,"fork":false,"pushed_at":"2022-10-10T16:09:47.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-04T16:19:06.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mingderwang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-09T08:58:37.000Z","updated_at":"2023-08-28T15:33:43.000Z","dependencies_parsed_at":"2023-05-31T12:42:28.184Z","dependency_job_id":null,"html_url":"https://github.com/mingderwang/i2s_recorder","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mingderwang/i2s_recorder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingderwang%2Fi2s_recorder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingderwang%2Fi2s_recorder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingderwang%2Fi2s_recorder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingderwang%2Fi2s_recorder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mingderwang","download_url":"https://codeload.github.com/mingderwang/i2s_recorder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingderwang%2Fi2s_recorder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33883102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T15:24:49.830Z","updated_at":"2026-06-03T22:31:00.303Z","avatar_url":"https://github.com/mingderwang.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"| Supported Targets | ESP32 | ESP32-S3 |\n| ----------------- | ----- | -------- |\n\n# I2S Digital Microphone Recording Example\n\n(See the README.md file in the upper level 'examples' directory for more information about examples.)\n\nIn this example, we record a sample audio file captured from the digital MEMS microphone on the I2S peripheral using PDM data format.\n\nThe audio is recorded into the SDCard using WAVE file format.\n\n| Audio Setting | Value |\n|:---:|:---:|\n| Sample Rate |44100 Hz|\n| Bits per Sample |16 bits|\n\n## How to Use Example\n\n### Hardware Required\n\n* A development board with ESP32 or ESP32S3 SoC (e.g., ESP32-DevKitC, ESP-WROVER-KIT, etc.)\n* A USB cable for power supply and programming\n* A digital microphone (SPK0838HT4H PDM output was used in this example)\n\nThe digital PDM microphone is connected on the I2S interface `I2S_NUM_0`.\n\nThe default GPIO configuration is the following:\n\n|Mic        | GPIO   |\n|:---------:|:------:|\n| PDM Clock | GPIO4 |\n| PDM Data  | GPIO5 |\n\nThe SDCard is connected using SPI peripheral.\n\n| SPI  | SDCard |  GPIO  |\n|:----:|:------:|:------:|\n| MISO | DAT0   | GPIO17 |\n| MOSI | CMD    | GPIO16 |\n| SCLK | CLK    | GPIO18 |\n| CS   | CD     | GPIO19 |\n\nTo change the GPIO configuration, see the `Example Configuration` from the menuconfig.\n\n### Configure the Project\n\n```\nidf.py menuconfig\n```\n\nIn the `Example Configuration` menu:\n\n* Use `SDCard Configuration` to assign the SPI peripheral GPIOs.\n* Use `I2S MEMS MIC Configuration` to assign the I2S peripheral GPIOs and audio settings.\n\nOptional: If you need, change the other options according to your requirements.\n\n### Build and Flash\n\nBuild the project and flash it to the board, then run monitor tool to view serial output:\n\n```\nidf.py -p PORT flash monitor\n```\n\n(To exit the serial monitor, type ``Ctrl-]``.)\n\nSee the Getting Started Guide for full steps to configure and use ESP-IDF to build projects.\n\n* [ESP-IDF Getting Started Guide on ESP32](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html)\n\n## Example Output\n\nRunning this example, you will see the Bits per Sample changes every 5 seconds after you have run this example. You can use `i2s_set_clk` to change the Bits per Sample and the Sample Rate. The output log can be seen below:\n\n```\nI (361) pdm_rec_example: PDM microphone recording Example start\nI (371) I2S: DMA Malloc info, datalen=blocksize=2048, dma_desc_num=64\nI (401) I2S: APLL: Req RATE: 44100, real rate: 88199.977, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 22579194.000, SCLK: 2822399.250000, diva: 1, divb: 0\nI (431) I2S: APLL: Req RATE: 44100, real rate: 88199.977, BITS: 16, CLKM: 1, BCK_M: 8, MCLK: 22579194.000, SCLK: 2822399.250000, diva: 1, divb: 0\nI (431) pdm_rec_example: Initializing SD card\nI (431) pdm_rec_example: Using SDMMC peripheral\nI (441) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0\nName: USD\nType: SDHC/SDXC\nSpeed: 20 MHz\nSize: 3813MB\nI (481) pdm_rec_example: Starting recording for 60 seconds!\nI (481) pdm_rec_example: Opening file\nI (60451) pdm_rec_example: Recording done!\nI (60471) pdm_rec_example: File written on SDCard\nI (60471) pdm_rec_example: Card unmounted\n```\n\n## Troubleshooting\n\n* Program upload failure\n\n    * Hardware connection is not correct: run `idf.py -p PORT monitor`, and reboot your board to see if there are any output logs.\n    * The baud rate for downloading is too high: lower your baud rate in the `menuconfig` menu, and try again.\n\nFor any technical queries, please open an [issue](https://github.com/espressif/esp-idf/issues) on GitHub. We will get back to you soon.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingderwang%2Fi2s_recorder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmingderwang%2Fi2s_recorder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingderwang%2Fi2s_recorder/lists"}