上傳自訂聲音#
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.
Select the Control Panel tab.
Note: If the Control Panel tab is not open, select View, then Add Tab, then Control Panel.
Select the Sounds tab.
Select an Upload icon.
The Select a Sound window will appear. Select a preloaded sound, then select Add to Project.
To upload your own sound instead, select Upload Custom Sound, then select Select File to open your device’s file navigation.
Note: Sound files must be MP3s smaller than 1 MB.
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.
You can use the custom sound in a project with the commands in the Sound category for Blocks or Python.
[Select your sound from the dropdown.]
播放聲音檔案 [SOUND1 v] ▶
# Change SOUND1 to the name of your sound
controller.sound.play_file(SOUND1)
Select the Pencil icon to rename the sound. This will be the sound’s name when you use it in your projects.
Type a new name, then select Rename.
Note: Names are shown in capital letters. Names cannot begin with a number, and must be no longer than 14 characters.
選擇計算機圖示即可聽到裝置上的聲音。
選擇垃圾桶圖示從插槽中刪除聲音檔案。
To delete all sounds at once, select Delete All Sounds at the bottom of the Sounds tab.