audiolabs / webMUSHRA

a MUSHRA compliant web audio API based experiment software

Home Page:https://audiolabs.github.io/webMUSHRA/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reset the start time of the audio on play button

speech-utcluj opened this issue · comments

Hi,

Is there a simple way to reset the starting time of each condition whenever the corresponding Play button is pressed? Meaning that I don't want the audio to resume from the last index of the previously played condition.

Thanks!

I also am experiencing this problem

@speech-utcluj @ChromaticIsobar sorry for the slow response.

the play buttons in webMUSRHA are indeed have a "switching" instead of "start/stop" behavior. I am not sure if a different behavior would still validate with the ITU recommendation. Could you check that?

If you need this behavior you could copy the MushraPage and replace the calls to the MushraAudioControl.pause with stop and play....

The strongest requirement I can find in ITU BS.1534-3 is in section 5.3:

the subject is allowed to switch near instantaneously between the [...] test signals and the open reference

But at no point in the recommendation I found that, when switching, the playback system should continue from the same time-index, although I think that is the proper behaviour in the most common scenarios. But in some situations a start/stop behaviour could be better.

@ChromaticIsobar @speech-utcluj alright, so it would make sense to implement an option that allows to switch the behaviour.

I do not have the capacity at the moment to implement such a feature myself. But feel free to open a PR