Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update audio-guestbook.ino #150

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

coldkevin
Copy link

@coldkevin coldkevin commented Oct 8, 2024

Increased AudioMemory from 60 to 120 to handle more audio data and avoid potential audio dropouts, ensuring smoother recordings.

Reduced microphone gain (micGain) to 2, down from the previous value, to minimize static and warbling sounds during recording.

Set the volume of the audio shield (volume) to 0.85 to avoid audio clipping during playback.

Increased debounce times for buttonRecord and buttonPlay from 20 ms to 40 ms. This helps ensure more reliable detection of button presses and releases.

Increased the number of audio blocks written to the SD card at once (from 16 to 32). This helps reduce the frequency of writes, making the recording process more efficient and potentially reducing interruptions.

Added a recording timeout of 10 minutes (RECORDING_TIMEOUT). This ensures that if the handset is left off the hook, the recording will automatically stop after 10 minutes, preventing excessive file sizes and SD card usage.

Adjusted the writeOutHeader() function for better handling of WAV file metadata, ensuring that the header data is correctly written after recording completes.

Maintained improvements to handle playback more reliably, allowing playback of the last recorded message and ensuring that playback mode is exited cleanly.

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.

1 participant