UNPKG

beautiful-react-hooks

Version:

A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development

10 lines (9 loc) 413 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Returns all the available voices on the system. * This hook is here to backward compatibility with the previous version of the library that was using * a different non-stable version of the Web Speech API. */ var useSystemVoices = function () { return window.speechSynthesis.getVoices(); }; exports.default = useSystemVoices;