Getting started with the STEVAL-VOICE-UI voice user interface evaluation kit
Introduction
The STEVAL-VOICE-UI Amazon™ qualified evaluation kit is designed to allow evaluation of a cost-effective way to integrate
AVS for AWS IoT Services® into smart devices, so they can implement state-of-art, hands-free voice control based on natural
language comprehension.
Users will therefore enjoy a heightened experience with target IoT end products, with the ability to talk to Amazon Alexa and
control smart home devices, get assistance, listen to the news, check the weather forecast, play music, etc.
The software package implements audio front-end, Amazon wake word, audio playback and Amazon Alexa® communication
protocol software. The SDK runs on internal memories only, offering maximum integration and cost-effective solutions.
The STEVAL-VOICE-UI is built with a modular approach for easy prototyping and debugging purposes as well as easy
adaptation to specific microphone spacings, user interface and audio output requirements.
Figure 1. STEVAL-VOICE-UI voice user interface evaluation kit
UM2800 - Rev 1 - November 2020
For further information contact your local STMicroelectronics sales office.
www.st.com
1Overview
Cortex-M7F@480MHz
1MB RAM
2MB Flash
STM32H753VIT6E
700mA DC-DC
SPI
Murata 1DX
2MB NOR
Flash
STDC14
Led driver
UART
PDM
Joystick
I2C
40pin
conn
(CN1)
USB-C
STSAFE
I2C
Wi-Fi Module
Wi-Fi sub-system
4 LED
(bypass mode)
Audio OUT
ISSI IS25LP016D
I2S
PDM
I2C
UART
STEVAL-VUIDB01V1STEVAL-VUIMB02V1
I2C
I2S
ST1S12GR
LED
4x RGB
2x Buttons
Speaker
output
connector
LED1202
FDA903D
MP23DB01HP
Digital microphone
(Optional)
(Optional)
The STEVAL-VOICE-UI kit features:
•STM32H753VIT6E high-performance MCU with 2 MB embedded Flash, 1 Mb embedded SRAM and in
cost-effective LQFP package
•2.4 GHz Wi-Fi subsystem with Murata 1DX module used in bypass mode coupled to ISSI IS25LP016D 2
MBytes NOR Flash memory
•3 x MP23DB01HP MEMS microphones with 36 and 30 mm spacing
•FDA903D class D digital input automotive audio amplifier
•8 Ohm loudspeaker
•4 RGB LEDs and 4 simple LEDs
•Joystick, reset and user push buttons
•High modularity with mother/daughter board
•Small 36x65 mm² footprint with simple and cost-effective PCB design
1.1Kit components
The STEVAL-VOICE-UI kit package includes:
•STEVAL-VUIMB02V1: VUI mother board embedding the STM32H753VIT6E MCU and the Wi-Fi module
•STEVAL-VUIDB01V1: VUI daughter board including the audio front-end (MP23DB01HP microphones and
FDA903D audio amplifier) and the user interface (buttons, joystick, LEDs and USB)
•8 Ohm speaker
•Mechanical parts
•STLINK-V3MINI debugger/programmer for STM32 with programming cable
•Windows® OS (7, 8 and 10), Linux® 64-bit, or MacOS
•html5 web browser version
•Companion app requires Android 7
1.4Development toolchains
•IAR Systems - IAR Embedded Workbench® EWARM
1.5Power supply
The easiest way to power the STEVAL-VOICE-UI kit is via the USB-C connector.
J1J8Description
CLOSECLOSESingle power supply from USB. Do not connect V_PA (J2)
CLOSEOPENSingle power supply from V_PA (J2) → up to 5 V
Dual power supply:
OPENCLOSE
OPENOPEN5 V from external source (CN1)
•5 V from USB
•V_PA from J2 → Up to 18 V
®
Table 1. Power supply options
Figure 3. STEVAL-VOICE-UI power supply block diagram
UM2800 - Rev 1
page 3/34
1.6User interfaces
1.4 LEDs
2.Reset button
3.4 RGB LEDs
4.J8
5.J1
6.Loudspeaker terminals
7.Programming connector (STDC14)
8.User button
9.Joystick
UM2800
User interfaces
Figure 4. STEVAL-VOICE-UI user interfaces
UM2800 - Rev 1
page 4/34
2Demo firmware
2.1Pre-requisites
The pre-installed ST_VOICE_UI flashed demo firmware demonstrates a voice service solution able to connect to
AVS for AWS IoT.
A direct Internet connection is needed (without proxy).
As an Alexa® device, you need an Amazon™ account to connect to AVS for AWS IoT service.
The account can be created on www.amazon.com or other local versions.
The users who have registered to Amazon Music service will be able to play music on the device.
2.2Device setup
Step 1.Power the device through a USB C cable.
Step 2.Configure the network connection.
Step 3.Register to AVS for AWS IoT service.
2.2.1Android users
For Android users, the stvsSmartConfig companion app is available on Google Store and allows configuring the
device. The application is also available in the software delivery package for manual installation.
UM2800
Demo firmware
UM2800 - Rev 1
page 5/34
UM2800
Device setup
Step 1.To configure a new device, push the [Onboarding new device] button and follow the instructions.
Figure 5. stvsSmartConfig procedure
2.2.2Other users - HTTP UI
The device embeds an HTTP service that the consumer can connect to via smartphone or PC and an HTML5
browser (Safari or Chrome). To connect to the server, the smartphone must be connected to the same Wi-Fi spot
of the board.
The HTTP UI interface tab allows checking the service status and changing some configurations.
Two cases must be distinguished:
1.Wi-Fi connection
2.Other connections (Wi-Fi information already logged in)
2.2.2.1Wi-Fi connection
Step 1.Ensure the device is in Access Point (AP) mode.
Step 1a. Check the current mode using the RGB LEDs (see Table 2).
Step 1b. If not in AP mode, refer to Section 2.9 .
Step 2.Connect your phone/PC navigator to 192.168.0.1.
Step 3.Follow the procedure described in Section 2.2.2.1.1 .
2.2.2.1.1Wi-Fi configuration
By default, the device comes in Wi-Fi AP mode and offers a hotspot whose name looks like stvs-xxxx.
Step 1.Connect your PC or smartphone to the hotspot and then connect the browser to the address
192.168.0.1.
UM2800 - Rev 1
page 6/34
Step 2.Go to STVS UI [Setup] tab.
UM2800
Device setup
Figure 6. STVS user interface
2.2.2.2
UM2800 - Rev 1
Step 3.Push the [Wi-Fi-Scan] button.
All visible spots will be listed in the scan results.
Step 4.Scroll down and select your home network (in this case the hotspot is called [Netbook]).
Step 5.Scroll back and type the Wi-Fi password.
Step 6.Scroll down and select the connection type ([Wi-Fi STA].
Step 7.To connect the board, scroll up and select [Re-connect].
Step 8.Check RGB LEDs on the board (see Table 2).
After few seconds, the Wi-Fi state should switch from “disconnected” to “connected “.
The board reboots and connects to the network via Wi-Fi using a new IP address.
Connection to Wi-Fi STA
In this case, hotspot Wi-Fi information has already been configured and the board is properly connected to it
(refer to Section 2.2.2.1.1 , step 6).
page 7/34
Step 1.Get the board IP address available in the serial console.
Step 2.Refer to Section 2.11 to access the traces.
The browser will display a code and a link (amazon.com/code).
UM2800 - Rev 1
page 8/34
Step 3.Copy the code and click on the link.
Figure 7. CBL device registration code
You will be redirected to an Amazon sign-in page.
UM2800
Device registration
Figure 8. Amazon sign-in page
UM2800 - Rev 1
Step 4.Enter you Amazon credentials.
If credentials are correct, you will be redirected to the following page.
Figure 9. Register device page
page 9/34
Step 5.Past or enter the code given in the previous page and click on continue.
If this step is successful, the board connects to AVS for AWS IoT and the LEDs turns off after few
seconds.
Now you can test the device. You can talk to Alexa (for example, asking: “Alexa, what time is it ?”)
2.4Privacy mode
UM2800
Privacy mode
Figure 10. Successful registration
The device enters privacy mode when you briefly push the white user button.
A red LED switches on and the device does not send any other audio request to the cloud, even when saying
"Alexa".
2.5Alarms
When an alarm or a timer is set and the device rings, you have to press the joystick to acknowledge and stop the
alert.
Example of voice requests:
•“Alexa set a timer for 2 minutes”;
•“Alexa set an alarm at 5 pm”;
•“Alexa set alarm” → Alexa will ask for details.
2.6Amazon music control
If the Amazon account used to register the board is registered to Amazon music, it is possible to ask Alexa to play
some songs or playlists and navigate it.
The joystick is also used to navigate music playlists.
2.7LED UI animations
Table 2. RGB LED animations indicating device state
EffectsColorInternal service IDAnimationComment
BlueRestartingSolid
Blue/CyanBootingNormal beat
Just after the reset.
It remains like this
until the first event is
dispatched.
It remains like this
during the basic
system initialization.