Switch to developer mode

In the previous section, you built the Voice Assistant application. Now, you’ll install it on your Android phone. The easiest way is to enable developer mode and use a USB cable to upload the application.

By default, Android devices ship with developer mode disabled. To enable it, follow these instructions .

Install the Voice Assistant

Once developer mode is enabled, connect your phone to your computer with USB. It should appear as a running device in the top toolbar. Select the device and click Run (a small green triangle, as shown below). This transfers the app to your phone and launches it.

In the graphic below, a Samsung Galaxy Z Flip 6 phone is connected to the USB cable: Image Alt Text:upload image alt-textUpload the Voice App

Launch the Voice Assistant

The app starts with this welcome screen:

Image Alt Text:welcome image alt-textWelcome Screen

Tap Press to talk at the bottom of the screen to begin speaking your request.

Voice Assistant controls

View performance counters

You can toggle performance counters such as:

  • Speech recognition time.
  • LLM encode tokens per second.
  • LLM decode tokens per second.
  • Speech generation time.

Click the icon circled in red in the top left corner to show or hide these metrics:

Image Alt Text:performance image alt-textPerformance Counters

To reset the Voice Assistant’s conversation history, click the icon circled in red in the top right:

Image Alt Text:reset image alt-textReset the Voice Assistant's Context

Back
Next