Fix errors on setups with no SpeechSynthesis support (part 2)

This commit is contained in:
Vendicated 2023-04-17 01:52:46 +02:00
parent e4f3f57a28
commit e767da4b08
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

@ -217,7 +217,7 @@ export default definePlugin({
voice: { voice: {
type: OptionType.SELECT, type: OptionType.SELECT,
description: "Narrator Voice", description: "Narrator Voice",
options: speechSynthesis?.getVoices().map(v => ({ options: window.speechSynthesis?.getVoices().map(v => ({
label: v.name, label: v.name,
value: v.voiceURI, value: v.voiceURI,
default: v.default default: v.default