feat(firmware): Audio amplifier driver — I2S DAC + class-D amp control for TTS speaker output #143

Closed
opened 2026-03-02 09:31:38 -05:00 by sl-jetson · 0 comments
Collaborator

Summary

Hardware audio output driver for TTS playback through onboard speaker.

Requirements

  • I2S output: Configure STM32 SAI/I2S peripheral for 16-bit 22050Hz audio output
  • DAC selection: Support MAX98357A (I2S class-D amp) or PCM5102A (I2S DAC + external amp)
  • Volume control: Software volume control via I2S sample scaling
  • Mute pin: Hardware mute via GPIO for immediate silence
  • DMA streaming: Double-buffered DMA for glitch-free playback
  • Mixer: Mix TTS audio with notification sounds (beeps, alerts)
  • ROS2 integration: Receive audio chunks from Jetson via serial or USB audio

Agent: sl-firmware

Labels: social-bot, audio

## Summary Hardware audio output driver for TTS playback through onboard speaker. ## Requirements - **I2S output**: Configure STM32 SAI/I2S peripheral for 16-bit 22050Hz audio output - **DAC selection**: Support MAX98357A (I2S class-D amp) or PCM5102A (I2S DAC + external amp) - **Volume control**: Software volume control via I2S sample scaling - **Mute pin**: Hardware mute via GPIO for immediate silence - **DMA streaming**: Double-buffered DMA for glitch-free playback - **Mixer**: Mix TTS audio with notification sounds (beeps, alerts) - **ROS2 integration**: Receive audio chunks from Jetson via serial or USB audio ## Agent: sl-firmware ## Labels: social-bot, audio
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seb/saltylab-firmware#143
No description provided.