Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
813 stars 105 forks source link

[Vision Glass] Voice button can be used for search and text input #1449

Closed felipeerias closed 4 months ago

felipeerias commented 5 months ago

Set up the connection to the Huawei Speech Recognition service.

The voice button on the phone UI will perform a search if the user is not currently writing on a text field (and therefore the keyboard is not visible).

When the keyboard is visible, the voice button will capture text which will be entered into the text field that the user is editing.

This PR also fixes a couple of crashes when the voice recogniser could not be properly initialised.

It is a bit inconvenient that the implementation of this functionality is split between the hvr and visionglass flavours. Maybe this is something that we could improve in the future.