public interface SearchOptions
The search queries included in the search options must match the language of
search options otherwise an InvalidSearchQueryException
is thrown.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_LANGUAGE
The default language.
|
Modifier and Type | Method and Description |
---|---|
String |
getLanguage()
The language used in the speech search.
|
MatchReportingStrategy |
getMatchReportingStrategy()
The match reporting strategy which can be either a summary or detailed.
|
Collection |
getSearchQueries()
The collection of search queries used in the speech search.
|
SearchOptions |
setLanguage(String language)
Set the language used for the speech search.
|
SearchOptions |
setMatchReportingStrategy(MatchReportingStrategy strategy)
Sets the match reporting strategy that tunes the reporting of the matches found during a speech search.
|
SearchOptions |
setSearchQuery(SearchQuery[] queries)
Set the search queries used for the speech search.
|
static final String DEFAULT_LANGUAGE
String getLanguage()
SearchOptions setLanguage(String language)
Well-formed language values have the form comprising of a ISO 639 alpha-2 or alpha-3 language code and the possibility of a ISO 3166 alpha-2 country code.
The following are all examples of well-formed language codes:
If no ISO 639 language code is specified the default ("en_US") is assumed.
The IANA Language Subtag Registry maintains an active directory of valid language and country codes.
language
- the ISO 639 language code (and optional ISO 3166 country code) used for the speech searchCollection getSearchQueries()
SearchOptions setSearchQuery(SearchQuery[] queries) throws InvalidSearchQueryException
queries
- the search queries used for the search.InvalidSearchQueryException
MatchReportingStrategy getMatchReportingStrategy()
SearchOptions setMatchReportingStrategy(MatchReportingStrategy strategy)
Copyright © 2016 Avaya. All Rights Reserved.