Untitled

 avatar
unknown
plain_text
3 months ago
605 B
3
Indexable
(function () {
    'use strict';

    if (!!window.SpeechSynthesisUtterance || !!window.speechSynthesis) {
        return;
    }

    window.SpeechSynthesisUtterance = function (text) {
        return {
            lang: 'en',
            volume: 1.0,
            onend: function () { },
            onstart: function () { },
            text: text
        };
    };

    window.speechSynthesis = {
        speak: function (utterance) { },
        'cancel': function () { },
        'pause': function () { },
        'resume': function () { },
        'getVoices': function () { return []; },
    };
})();
Editor is loading...
Leave a Comment