Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

VoiceRecognition

  • Last UpdatedJan 18, 2024
  • 2 minute read

The VoiceRecognition node recognizes a set of voice commands defined by the user. It provides access to the shared speech recognition service available on the Windows desktop.

Platform support

This node is supported on XR-Windows platform only.

XR-WIN

XR-P-WIN

XR-P-IOS

XR-P-AND

XR-P-WASM

Full support

No support

No support

No support

No support

Full support

No support

No support

No support

No support

Code example

This is a code example for VoiceRecognition node.

<!-- VoiceRecognition declaration-->

<VoiceRecognition name="voiceRec" commands="{open=open}{no=no}{yes=yes}{table=table}{valve=valve}{close=close}"/>

<route from="voiceRec.recognized" to="mycmd.execute" condition="@voiceRec.recognized@==table"/>

<Command name="mycmd">

<log text="Recognized: @voiceRec.recognized@"/>

</Command>

VoiceRecognition fields

These are the fields for VoiceRecognition node. Only the node-specific fields are indicated, not fields obtained by inheritance.

Field inheritance: NodeBase > VoiceRecognition

Fields

Type

Use

Default value

Description

command

dstring

Optional

Not set

Set of commands that the voice recognizer is able to recognize. Commands can be defined only during node creation.

configuration

sstring

Optional

en-EN

Sets the culture to initialize the VoiceRecognition node. A speech recognizer must be installed on the current system in order to be used.

recognized

sstring

Optional

Not set

Returns the last recognized command.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in