Playing Custom Imported Sounds in a VEXcode V5 Project

Playing custom imported sounds is a unique function in the VEXcode V5 software. This article will walk you through where and how to import sounds into VEXcode V5, the setup required to ensure the sounds play properly, and an explanation of how the play VEXcode sound command works.

VEXcode V5 Blocks

V5 Category Description visual aid illustrating key features and components related to Project Help, showcasing elements relevant to VEX Robotics projects.

VEXcode V5 Python

Diagram illustrating the V5 category description for project help, featuring key components and their relationships within the VEX robotics framework.

VEXcode V5 C++

V5 Category Description image illustrating project help features, showcasing tools and resources available for users to assist with their projects.

Select each image above to enlarge.

Accessing the Play VEXcode Sound Command

By default, the play VEXcode sound command does not appear in the toolbox on the left side of the screen. The following steps explain how to enable the command.

Diagram illustrating the V5 category description for project help, featuring key components and their relationships, designed to assist users in understanding the project structure and resources available.

Navigate to the File menu. Select ‘Tools’ and ‘Manage VEXcode Sounds.’

Note: this image shows blocks in the toolbox but the process is the same for C++ and Python projects.

V5 Category Description image illustrating project help resources, featuring a visual representation of tools and support available for V5 projects.

The Manage VEXcode Sounds menu will then appear.

V5 Category Description image illustrating Project Help features, showcasing tools and resources available for users to enhance their project experience.

Select the check box to enable the play VEXcode sound command.

Functionality of the Manage VEXcode Sounds Menu

The Manage VEXcode Sounds menu is used to add sounds, edit sound names, and delete sounds.

Add a sound

V5 Category Description image illustrating Project Help features and resources for VEX robotics, including tools and support options available for users.

Find an open row.

Diagram illustrating V5 project categories and descriptions, highlighting key elements and features to assist users in understanding project help resources.

Enter the sound name into the associated ‘Name’ box.

When you input a new name, a blank row appears below the current row.

Diagram illustrating V5 category features and project assistance options, highlighting key elements for effective use in robotics projects.

Paste the associated sound file URL into the same row as the new name.

Diagram illustrating the V5 category description for project help, featuring key components and their relationships in a visual format to assist users in understanding the project structure.

When finished, select ‘Save Sounds.’

Diagram illustrating the V5 project help features, showcasing various tools and resources available for users to enhance their project experience.

To edit the Manage VEXcode Sounds menu, select ‘Cancel.’

Save changes before hitting 'Cancel' to avoid losing any edits.

Delete a sound

Diagram illustrating the V5 category description for project help, featuring key components and their relationships in a visual format to assist users in understanding project organization and resources.

Click the trash can icon to delete the sound linked to that row.

V5 Category Description image illustrating Project Help features, showcasing tools and resources available for users to enhance their project experience.

Select ‘Save Sounds’ to save the changes or ‘Cancel’ to exit the menu.

Note: at least one sound must always be listed in the table. The trash can icon will be grayed out when only one sound is left, to ensure one sound remains.

Edit a sound

Diagram illustrating V5 category description for project help, featuring key components and their relationships in a clear layout.

You can edit a sound’s name or file URL by selecting it.

V5 Category Description image illustrating project help resources, featuring visual elements related to VEX robotics support and guidance.

Select ‘Save Sounds’ to save the changes or ‘Cancel’ to exit the menu.

Connecting to the User/Console Port

To play custom sounds in web-based VEXcode V5, a connection to the user/console web-serial port is needed. This second port is needed because the first serial port links the V5 Brain to the device for project downloads from a browser.

V5 Category Description image illustrating Project Help features, showcasing tools and resources available for users to enhance their project development experience.

For steps on how to connect the V5 Brain to the user/console port, view this article.

Diagram illustrating the V5 category description for project help, featuring key components and their relationships within the VEX robotics system.

To play custom sounds, the V5 Brain MUST stay connected to the device via a USB cable while using the user/console web-serial port.

Using the Play VEXcode Sound Command

Drag and attach or type the play VEXcode sound command to your project. For more information on how the block functions, view the Help.

VEXcode V5 Blocks

Diagram illustrating the V5 category description for Project Help, featuring key components and their relationships within the VEX robotics system.

VEXcode V5 Python

Diagram illustrating the V5 category description for Project Help, featuring key components and their relationships within the project framework.

VEXcode V5 C++

V5 category description image illustrating project help features, including tools and resources for effective project management in VEX robotics.

Select each image above to enlarge.

V5 Category Description image illustrating Project Help features and resources, showcasing tools and support available for users in the VEX community.

Since the sounds play through the connected device, ensure the volume is up when playing sounds.

Diagram illustrating the V5 category description for project help, featuring key components and their relationships within the VEX robotics system.

Ensure the V5 Brain remains connected to the device via a USB cable while the project is downloaded and running.

Note: custom sounds are stored into the VEXcode V5 project and will function as long as the specific project is loaded. If VEXcode V5 is closed or a new project is loaded, the sounds will not operate. However, upon reloading the original project file, the custom sounds will resume playing as anticipated.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: