Skip to content

getVoices() or equivalent should return a promise #220

Open

Description

@eeejay

Synth and voice retrieval is typically async because it is IO blocking. We (and I think others) return an empty string on the first call to getVoices before the synth is initialized. We then send a voiceschanged event to let the content know synth is inited and voices are available. Developers are rightfully confused by this pattern. This should be a promise.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions