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:
@ -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
|
||||
|
Reference in New Issue
Block a user