Skip to content

[Web] Running onnxruntime in an audio worklet #13072

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
ricky0123 opened this issue Sep 23, 2022 · 1 comment
Open

[Web] Running onnxruntime in an audio worklet #13072

ricky0123 opened this issue Sep 23, 2022 · 1 comment
Labels
feature request request for unsupported feature or enhancement platform:web issues related to ONNX Runtime web; typically submitted using template

Comments

@ricky0123
Copy link

Describe the issue

I'm unable to start an inference session in an audio worklet context. I'm not sure what all of the obstacles to getting onnxruntime working in that context but I think the current build system may assume there is a global object called "self" that doesn't exist in that context. There are also other unusual characteristics of that context, some of which are documented here.

To reproduce

Here is a repo with my best attempt to run onnxruntime-web in an audio worklet. I end up with this error in the console

Error: no available backend found. ERR: [wasm] TypeError: o.cpus is not a function worklet.js line 19 > eval:85:11

Urgency

No response

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

"onnxruntime-web": "^1.12.1"

Execution Provider

WASM

@ricky0123 ricky0123 added the platform:web issues related to ONNX Runtime web; typically submitted using template label Sep 23, 2022
@fs-eire fs-eire added the feature request request for unsupported feature or enhancement label Sep 26, 2022
@fs-eire
Copy link
Contributor

fs-eire commented Sep 26, 2022

marked as 'feature request'

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature request request for unsupported feature or enhancement platform:web issues related to ONNX Runtime web; typically submitted using template
Projects
None yet
Development

No branches or pull requests

2 participants