aseba-community / thymio-vpl2

Next generation VPL for Thymio using Qt Quick from Qt 5.x
GNU Lesser General Public License v3.0
2 stars 5 forks source link

New block: recorded sound on the robot #44

Open stephanemagnenat opened 7 years ago

stephanemagnenat commented 7 years ago

It would be really useful to be able to record a sound on the robot, and replay it in a VPL program.

This depends on the firmware providing an indication whether a mounted SD card is available (issue aseba-community/aseba-target-thymio2#20) and what is the duration of a given sound (issue aseba-community/aseba-target-thymio2#21).

stephanemagnenat commented 7 years ago

This needs durative actions (#69).

stephanemagnenat commented 6 years ago

Firmware 11 adds the necessary support for this feature.

stephanemagnenat commented 6 years ago

Here is a mockup of how this could look:

mockupsoundrecorder

One question is whether the duration should be spelled down as no other blocks have text currently.

sharon13m commented 6 years ago

How about this. It would be an action block. And when someone hits record a sound wave formation is generated. The total length of the wave form could be 10 seconds, and the sound wave could fill in the percentage of 10 seconds it takes up. Maybe if it goes over 10 second then it switches to 1 minute and the sound wave then fills up the percentage of 1 minute that it takes up.

image

image

stephanemagnenat commented 6 years ago

Our proposals are quite similar. Note that we cannot the actual waveform, that is why I was just filling the space with some shade. I think that writing the time might be good, but that is something we can easily test.