wp.hooks.addFilter('ttsProPlayerOptions', 'textToSpeech', function(obj) {
return {
...obj,
autoplay: true
};
});
wp.hooks.addFilter('ttsProLink', 'textToSpeech', function(val) {
return '';
});
wp.hooks.addFilter('ttsSetSelectedLanguageFromDom', 'textToSpeech', function(val) {
return true;
});
wp.hooks.addFilter('ttsProApplyNumberFormat', 'texttospeech', function(value) {
return true;
})
wp.hooks.addFilter('ttsProGetContentFromDOM', 'texttospeech', function(val) {
return false;
});
wp.hooks.addFilter('ttsProPlayerDesign', 'textToSpeech', function(obj) {
return {
speed: {selected: 1, options: [0.5, 0.75, 1, 1.25, 1.5, 1.75]}
};
});