Supported versions: 5.20.1 and above

Introduction

The primary function of speech recognition is to convert spoken words into written text. This is achieved through sophisticated algorithms that analyze audio input, identify spoken words, and transcribe them into text format.

Speech recognition

Enable the feature:

<bool name="lp_speech_recognition_enabled">true</bool>

By default, the value is false (disabled).

Features and permissions

Below is the short list of features and permissions present in the manifest file to support this feature.

<uses-permission android:name="android.permission.RECORD_AUDIO" /> //to record audio
<uses-feature android:name="android.hardware.microphone" />

Branding and configurations

lp_speech_recognition_enabled

Enable or disable speech recognition feature.

  • Type: bool
  • Default value: false

lp_speech_recognition_icon_color

Specifies a color filter that is applied to a speech recognition icon.

  • Type: color
  • Default value: @android:color/darker_gray

lp_speech_recognition_input_complete_silence_length_millis

The amount of time in milliseconds that it should take after the recognizer stops hearing speech to consider the input complete hence end the recognition session.

  • Type: integer
  • Default value: 10000