DescriptionImprove TTS GetMatchingVoices algorithm
The previous algorithm only handled exact matches and a few partial
matches.
Replace it with an algorithm that sorts the possible voices based on
a strict precedence of criteria and returns the best one.
This fixes cases where it was using a language other than the system
language when there were no voices with matching criteria.
BUG=582455
TEST=Manually test TTS Demo app, speechSynthesis API, and ChromeVox to confirm no breakage
Committed: https://crrev.com/f48913979bb58b7e4b8585b873392484241edb2c
Cr-Commit-Position: refs/heads/master@{#421958}
Patch Set 1 #Patch Set 2 : Fix tests #
Total comments: 6
Patch Set 3 : Fix DCHECK #Patch Set 4 : Address feedback #
Messages
Total messages: 22 (14 generated)
|