• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yext / answers-search-ui / 25056892734

28 Apr 2026 01:51PM UTC coverage: 61.914% (+0.09%) from 61.826%
25056892734

Pull #1989

github

web-flow
Merge eda7070fa into e1bc6bfc0
Pull Request #1989: v2.0.0

2050 of 3451 branches covered (59.4%)

Branch coverage included in aggregate %.

12 of 18 new or added lines in 5 files covered. (66.67%)

17 existing lines in 3 files now uncovered.

3495 of 5505 relevant lines covered (63.49%)

26.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

43.48
/src/core/speechrecognition/support.js
1
import Bowser from 'bowser';
2

3
/**
4
 * Whether the SpeechRecognition API is supported by the current browser.
5
 *
6
 * Currently all languages in the SDK (en, es, fr, de, it, ja)
7
 * have SpeechRecognition support in browsers that support SpeechRecognition.
8
 * However, because browser specific SpeechRecognition documentation is poor to nonexistent,
9
 * new languages/locales will need to be manually tested for SpeechRecognition support.
10
 *
11
 * @returns {boolean}
12
 */
13
export function speechRecognitionIsSupported () {
14
  const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
2!
15
  if (!(SpeechRecognition && navigator.mediaDevices)) {
2!
UNCOV
16
    return false;
×
17
  }
18

19
  const browserData = Bowser.parse(navigator.userAgent);
2✔
20
  if (browserData.platform.type === 'desktop') {
2!
21
    return true;
2✔
22
  }
23

24
  const os = browserData.os.name;
×
UNCOV
25
  const browser = browserData.browser.name;
×
26

UNCOV
27
  return (browser === 'Safari' && os === 'iOS') ||
×
28
    (browser === 'Chrome' && os === 'Android') ||
29
    (browser === 'Samsung Internet for Android' && os === 'Android');
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc