Skip to content

Can we remove live readyState requirement when starting speech recognition with MediaStreamTrack? #127

@beaufortfrancois

Description

@beaufortfrancois

As start(audioTrack) requires audioTrack readyState to be "live", it means the audioTrack must be playing already before calling start(audioTrack). This means web developers are always losing the first tiny parts of the audioTrack. It's a bummer. Could we do something about this and revert some of the changes in #118

The overloaded start method does the same thing as the parameterless start method except it performs speech recognition on provided MediaStreamTrack instead of the input media stream. If the kind attribute of the MediaStreamTrack is not "audio" or the readyState attribute is not "live", the user agent must throw an "InvalidStateError" DOMException and ignore the call.

FYI @evanbliu

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