diff options
| author | 2023-02-06 14:47:45 +0000 | |
|---|---|---|
| committer | 2023-02-13 16:14:17 +0000 | |
| commit | 8a6c10b2f43b8a6e77e5c98d1e379c6e556f4543 (patch) | |
| tree | 1071612c9b7ff3ab1a0c4061152e2ca3bca58b12 /services/permission/java | |
| parent | d6c4f75c2b66599b5b3cf14d9324682fa3651cb4 (diff) | |
speech: Public API for speech recognition world level info
Following entities are added as part of this change:
- RecognitionPart data class;
- "android.speech.extra.REQUEST_WORD_TIMING"
and "android.speech.extra.REQUEST_WORD_CONFIDENCE"
key entries for RecognizerIntent extras;
- "recognition_parts" key entry for SpeechRecognizer result Bundle.
A recognition part represents a single word with potential adjacent
punctuation, that is returned by the SpeechRecognizer. Recognizer
result bundle contains the result in form of a list
of recognition parts under the key recognition_parts.
The details provided for a recognition part are:
- raw text - in form of a string, always available;
- formatted text - in form of a string, available if
"android.speech.extra.ENABLE_FORMATTING" is set in the intent;
- timestamp - offset of the beginning of this part from the start of
the recognition session in milliseconds, available if
"android.speech.extra.REQUEST_WORD_TIMING" is set in the intent;
- confidence level - one of the five levels of confidence, available
if "android.speech.extra.REQUEST_WORD_CONFIDENCE" is set in the intent.
Bug: 268024544
Bug: 268475583
Test: A new CTS
Change-Id: Ic1ad2a9658a044d4deb9776811f070cb0b2564a8
Diffstat (limited to 'services/permission/java')
0 files changed, 0 insertions, 0 deletions