"sampleRate" attribute counterpart for psychoJS sound stimulus

I am converting a psychopy experiment into psychoJS to make it into an online experiment.
The existing psychopy experiment is using a sound stimulus which uses the sampleRate attribute (https://www.psychopy.org/api/sound.html) .

The code for initialisation is

audio_sound = sound.Sound(audio_signal,sampleRate=48000)

However, the psychoJS counterpart does not seem to have this particular attribute (https://psychopy.github.io/psychojs/module-sound.Sound.html).

Is there a way around this ?

Hi Sudeshna,

I’m afraid there isn’t really a workaround for that. What are you using the sampleRate attribute for?

Best, Thomas