To load the speech-processor audio worklet without changing my app's Content Security Policy directives, I am running:
audioConfig.setProperty('MICROPHONE-WorkletSourceUrl', '/some/path/speech-processor.js');
It took me some time to find this option. Also, I was hoping not to hard-code the property name ('MICROPHONE-WorkletSourceUrl') in my code.
For documentation, it could be helpful to include it in PropertyId, similarly to WebWorkerLoadType.
To load the speech-processor audio worklet without changing my app's Content Security Policy directives, I am running:
It took me some time to find this option. Also, I was hoping not to hard-code the property name ('MICROPHONE-WorkletSourceUrl') in my code.
For documentation, it could be helpful to include it in PropertyId, similarly to WebWorkerLoadType.