Skip to content

Conversation

@nebbian
Copy link

@nebbian nebbian commented Jun 2, 2024

This code adds the ability to record WAV files to the SD card, in a similar manner to how the record_ogg sample code works.

Unlike the record_ogg example, this uses the native IMA ADPCM encoding which doesn't require the loading of a patch file every time the user wants to record some audio. This results in a much faster response time, from the time that a recording is requested to be started, to the time that the system is able to actually start recording.

The example provided here has the following functionality:

  • Connect to the VS1053
  • Play a tone
  • Connect to the SD card
  • Wait for the button to be pressed
  • While the button is pressed, save the recorded sound to a WAV file
  • When the button is released, finalise the WAV file, and play it back immediately
  • Go back to waiting for the button to be pressed

This code is based on the following sources:

@nebbian nebbian force-pushed the feature/record_wav branch from e64e34c to fde836e Compare June 2, 2024 13:29
@a-3isa
Copy link

a-3isa commented Nov 12, 2024

the output .wav file is corrupted. please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants