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.
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
andvisionglass
flavours. Maybe this is something that we could improve in the future.