Encountering 'String Too Long' Error When Adding Non-English Keywords in Unity's RemoteSpeechProvider

WL.TSAI 85 Reputation points
2024-01-08T03:11:56.5266667+00:00

The use of English keywords with holographic remoting and keyword recognition functions smoothly.

However, when I attempt to use non-English keywords (e.g., Chinese), an error occurs while adding commands to the remote speech profile. This leads me to wonder if there are additional steps required to enable non-English speech input. The error displayed is as follows:

[XR] [MROpenXR][Error  ][10:40:43.984083][tid:a6a8] openxr_plugin_SetXrSession_StdException Function=openxr_plugin_SetXrSession Message=string too long
[XR] [MROpenXR][Error  ][10:40:43.984083][tid:a6a8] openxr_plugin_SetXrSession_StdException Function=openxr_plugin_SetXrSession Message=string too long

Additionally, under normal circumstances, the RemoteSpeechProvider initializes the keyword dictionary as shown below. However, this initialization does not occur when I use a Chinese keyword.

RemoteSpeechProvider_UpdateState_InitializeRemotingSpeech language= dictionaryEntriesCount

Environments:

  • Operating System: Windows (standalone version)
  • Software: Unity 2021.3.26f1, MRTK 2.8.3, MRTK OpenXR 1.10.0
  • Feature in use: holographic remoting
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
386 questions
{count} votes