Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Got NotSupportedError when using OpusRecorder in browser #88

Description

Tested on PC with Chrome 67.0.3369.99 and Edge 17.17134. And also Chrome 67 on Android. All failed with same error.

Following the sample code at
https://docs.microsoft.com/en-us/azure/cognitive-services/speech/api-reference-rest/websocketprotocol#opus.

When starting recognition, console says:

2018-06-30T23:26:57.129Z |
RecognitionEndedEvent |
metadata: {} |
requestId: A7B... |
audioSourceId: 14C... |
audioNodeId: EAA... |
connectionId: <NULL> |
authFetchEventId: <NULL> |
status: 1 |
error: 'Unhandled callback error: 'Unhandled callback error: NotSupportedError: Failed to construct 'MediaRecorder': Failed to initialize native MediaRecorder the type provided (audio/ogg) is not supported.'' |
serviceTag: <NULL>

What's worse, got multiple JS errors afterward and the microphone audio channel is kept opened (keep showing record red icon on tab).

It seems all browsers does not support Opus. Tried to run new MediaRecorder(stream, { mimeType: 'audio/ogg' }) in F12 console:

VM57:1 Uncaught DOMException: Failed to construct 'MediaRecorder': Failed to initialize native MediaRecorder the type provided (audio/ogg) is not supported.
    at <anonymous>:1:1

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