Skip to content

"How about allowing the Robot Inventor & Spike Hubs to play audio files?" #2771

Description

@eunajung326-lab

Currently, the InventorHub.speaker only supports play_notes() and beep(). This makes it difficult to implement rich sound effects or realistic RC car engine sounds (such as for the Lego Technic Audi or custom creations) using only the hub's internal storage and spe
It would be amazing if Pybricks could support importing and playing custom audio files directly from the hub for standalone execution.

We understand the hardware constraints of the hub, so we don't expect high-quality MP3 playback. Even supporting very low-quality, small-sized 8-bit mono WAV files would be absolutely perfect and highly appreciated. Even a few short sound clips would drastically improve standalone robot projects.

  1. Using play_notes() to mimic sound effects, but it is limited to simple buzzer-like melodies.
  2. Streaming audio cues to a connected PC/smartphone via pybricksdev, but this removes the ability to run the robot fully standalone in the field.

Many users who migrated from the official Lego Mindstorms app miss the custom sound block feature. Supporting even low-bitrate WAV file playback on MicroPython would be highly valued by the community!

Metadata

Metadata

Assignees

No one assigned

    Labels

    software: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)topic: soundIssues related to sound/speaker

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions