SpeechPhraseAggregator typedef

SpeechPhraseAggregator = String Function(List<String> phrases)

Aggregates multiple phrases into a single result. This is used when the platform returns multiple phrases for a single utterance. The default behaviour is to concatenate the phrases into a single result with spaces separating the phrases and no change to capitalization. This can be overridden to provide a different aggregation strategy. see _defaultPhraseAggregator for the default implementation.

Implementation

typedef SpeechPhraseAggregator = String Function(List<String> phrases);