Μεταφόρτωση προσαρμοσμένων ήχων#

Uploading Custom Sounds

This tutorial walks you through uploading a custom sound to your VEX AIR Drone in VEXcode AIR. By the end, you’ll have a sound uploaded and ready to use in your projects.

  1. Select the Control Panel tab.

Screenshot of the VEXcode AIR tabs on the right side of the screen, with the Control Panel tab highlighted.

Note: If the Control Panel tab is not open, select View, then Add Tab, then Control Panel.

  1. Select the Sounds tab.

Screenshot of the Control Panel, with the Sounds tab highlighted.
  1. Select an Upload icon.

Screenshot of the Sounds tab, with the Upload button for sound slot 1 highlighted.
  1. The Select a Sound window will appear. Select a preloaded sound, then select Add to Project.

Screenshot of the Select a Sound window, showing a grid of preloaded sounds named Number 0 through Number 10. Number 3 and the Add to Project button are highlighted.

To upload your own sound instead, select Upload Custom Sound, then select Select File to open your device’s file navigation.

Screenshot of the Select a Sound window, with the Upload Custom Sound option and the Select File button highlighted.

Note: Sound files must be MP3s smaller than 1 MB.

  1. The sound will appear in the chosen slot. By default, sounds are named SOUND1, with the number matching the slot the sound was uploaded to.

Screenshot of the Sounds tab, with sound slot 1 highlighted. Its Upload, Play on Computer, and Trash buttons are all active.

You can use the custom sound in a project with the commands in the Sound category for Blocks or Python.

The play sound file block, set to a custom sound.#
[Select your sound from the dropdown.]
αναπαραγωγή αρχείου ήχου [SOUND1 v] ▶
# Change SOUND1 to the name of your sound
controller.sound.play_file(SOUND1)

  1. Select the Pencil icon to rename the sound. This will be the sound’s name when you use it in your projects.

Screenshot of sound slot 1, with the Pencil icon to the right of the name SOUND1 highlighted.
  1. Type a new name, then select Rename.

Screenshot of the Rename Sound dialog. The name reads TAKEOFF, and the Rename button is highlighted.

Note: Names are shown in capital letters. Names cannot begin with a number, and must be no longer than 14 characters.

  1. Επιλέξτε το εικονίδιο Υπολογιστής για να ακούσετε τον ήχο στη συσκευή σας.

Screenshot of sound slot 1, now named TAKEOFF, with the center button highlighted. The button shows a computer with a play arrow.
  1. Επιλέξτε το εικονίδιο Κάδος απορριμμάτων για να διαγράψετε ένα αρχείο ήχου από μια υποδοχή.

Screenshot of sound slot 1, now named TAKEOFF, with the Trash button highlighted.

To delete all sounds at once, select Delete All Sounds at the bottom of the Sounds tab.

Screenshot of the bottom of the Sounds tab, with the Delete All Sounds button highlighted.