diff options
| author | 2023-02-08 13:46:50 +0000 | |
|---|---|---|
| committer | 2023-02-15 09:55:12 +0000 | |
| commit | e5b9dbe839038fc8ef7c9eb6002013bc4a6595e9 (patch) | |
| tree | 442f86b5a01e36fa98a5f7cd245f68a881e82842 /libs/androidfw/StringPool.cpp | |
| parent | 15078cd0c6663cc114fc0e6ae7667991651ed39a (diff) | |
Speech: Public API for the language detection and switching features
onLanguageDetection callback method is added to IRecognitionListener
aidl, and is to be called when the language detection (and switching)
results are available. This callback method can be invoked on any
number of occasions at any time between the beginning and the end of
speech, depending on the speech recognition service implementation.
The following entities are created for the language detection feature:
- `android.speech.extra.ENABLE_LANGUAGE_DETECTION`
and `android.speech.extra.LANGUAGE_DETECTION_ALLOWED_LANGUAGES`
key entries for the RecognizerIntent extras;
- `detected_language`, `language_detection_confidence_level`
and `top_locale_alternatives` key entries
for the SpeechRecognizer result Bundle;
- Language detection confidence levels valued
as `UNKNOWN`, `NOT_CONFIDENT`, `CONFIDENT` and `HIGHLY_CONFIDENT`.
The following entities are created for the language switch feature:
- `android.speech.extra.ENABLE_LANGUAGE_SWITCH`
and `android.speech.extra.LANGUAGE_SWITCH_ALLOWED_LANGUAGES`
key entries for the RecognizerIntent extras;
- Language switch sensitivity levels valued
as `high_precision`, `balanced`, and `quick_response`.
- `language_switch_result` key entry
for the SpeechRecognizer result Bundle;
- Language switch results valued
as `NOT_ATTEMPTED`, `SUCCEEDED`, `FAILED` and `SKIPPED_NO_MODEL`.
Bug: 268317656
Bug: 268475583
Test: CTS
Change-Id: I52266b1676535812c9f036149bf3a46f2aaf2340
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions