pxt-microbit icon indicating copy to clipboard operation
pxt-microbit copied to clipboard

Simulator records audio for a longer time than the device

Open microbit-carlos opened this issue 5 months ago • 2 comments

The beta simulator currently records for about 12 seconds, and the device around 5 seconds.

input.onButtonPressed(Button.A, function () {
    record.startRecording(record.BlockingState.Blocking)
})
input.onButtonPressed(Button.B, function () {
    record.playAudio(record.BlockingState.Nonblocking)
})
Image

Tested with: makecode.microbit.org version: 7.1.45 Microsoft MakeCode version: 11.4.31 microbit runtime version: v2.2.0-rc6 codal-microbit-v2 runtime version: v0.3.0

And test deployment from:

  • https://github.com/microsoft/pxt-microbit/pull/6362

microbit-carlos avatar Jun 20 '25 16:06 microbit-carlos

@microbit-carlos what about live site? Is this a regression?

abchatra avatar Jun 20 '25 17:06 abchatra

Live have similar times as beta, so not a regression.

microbit-carlos avatar Jun 23 '25 12:06 microbit-carlos

Added this to the 2025 milestone as it has been addressed in https://github.com/microsoft/pxt-microbit/pull/6392#event-18346383663.

microbit-carlos avatar Jun 27 '25 15:06 microbit-carlos