0

Enable Live Caption for SSE4.1

This CL enables the Live Caption feature for Linux CPUs that support the SSE4.1 instruction set. The reporter of crbug.com/1201604 has verified that the Speech On-Device API (SODA) is capable of running on a Core2Duo E7500 CPU which has support for the SSE4.1 instruction set but not SSE4.2.

Bug: 1189623
Change-Id: I3571eaac429c4f9750267222027a8d60a2c30097
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2854977
Commit-Queue: Evan Liu <evliu@google.com>
Reviewed-by: Frank Liberato <liberato@chromium.org>
Cr-Commit-Position: refs/heads/master@{#876780}
This commit is contained in:
evliu
2021-04-27 21:55:51 +00:00
committed by Chromium LUCI CQ
parent bfa583b864
commit 0cd85855bc

@ -873,8 +873,8 @@ bool IsLiveCaptionFeatureEnabled() {
if (base::FeatureList::IsEnabled(media::kUseSodaForLiveCaption)) {
// Check if the CPU has the required instruction set to run the Speech
// On-Device API (SODA) library.
static bool has_sse42 = base::CPU().has_sse42();
if (!has_sse42)
static bool has_sse41 = base::CPU().has_sse41();
if (!has_sse41)
return false;
}
#endif