Recording from a computer
nnMakes sure to have a micro SD card that you can connect to your cmputer and that is compatible with Thymio. Avoid cards that are too big or too fast. Prefer a size of 2 Go, max 4 Go and do not choose SDHC or SDXC.
nnFirst, start Audacity. Once the app has started, create a new project and change the default value (arrow 1 on the image) of 44100 Hz to 8000 Hz. Use only one track by selecting 1 recordign channel (arrow 2 on the image).
nnYou can now record your sound with the record button (arrow 3 on the image). You should see the cursor moving and the soundwave visualization. Once your sound is done, click stop (arrow 4 on the image).
nnBefore exporting the sound, check that the metadata of the file are empty. Click on the Edit menu (arrow 5) and then metadata (arrow 6).
nnOnce the window is open. if data are written under Value, erase them by clicking Delete (arrow 7), then Validate.
nnYou can now export the sound file. Click on the File menu (arrow 8), Export (arrow 9) and then Export as WAV (arrow 10).
nnName your file in the following way: P followed by a number. For example P0.wav (the number after P lets you find the your sound when you program), select the file type Other non compressed formats (arrow 11).
nnUnder Format Options, choose WAV header (Microsoft) and under Encoding choose Unsigned 8 bit PCM.
nnSave the file to the SD card.
nnYou can also find this procedure in an explanatory video by following this link.
nnPlay the SD card sound onThymio
nnVPL3
nnUSe the customizable mode (arrow 14). Select the blocks related to the SD card (arrows 15 and 16) and close the configuration panel.
nnUse block 15 to play your sound, the arrows allowing you to select the right number. Block 16 stops the playback.
nnAseba
nnUse function sound.play
which takes as a parameter a recoding number between 0 and 32767. To interrupt the playback, call sound.play
with the parameter -1.
Scratch
nnIn code
, category Thymio
block jouer son carte SD ()
.
Recording sound directly from the robot
nnScratch
nnIn code, then Thymio, you will find the block enregistrer son ()
which allows to record sound. To stop recording, use arrêter l'enregistrement du son
and to replay a sound use rejouer son ()
.
Aseba
nnYou can record sounds to the SD card unsing native function sound.record
which takes a recording number from 0 to 32767 as a parameter. The file is then saved to the SD card under the name Rx.wav, where x is the paraeter given to the function sound.record
. To stop recording, call sound.record
with -1 as argument.
You can then replay the recorded sound with the native function sound.replay
. As a parameter, this function takes a number from 0 to 32767 and replays file Rx.wav from the SD card, where x is the parameter passed to the function sound.replay
. To stop the playback, call sound.replay
with -1 as argument.