Skip to content

Wrong voices initial value definition on tts file #2047

@RodriSanchez1

Description

@RodriSanchez1

I think that the following voices definition should be an empty array [] insted of and object {}

_getPlatformVoices() {
let voices = {};
try {
voices = synth.getVoices();
} catch (err) {
console.log(err.message);
synth = window.speechSynthesis;
}
// On Cordova, voice results are under `._list`
return voices._list || voices;
},

if an object is returned the following platformVoices.concat will throw an error and brak the app

platformVoices = this._getPlatformVoices();
resolve(platformVoices.concat(elevenLabsVoices).concat(cloudVoices));

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions