# 7s audio file only plays 1s when running

**URL:** <https://discourse.psychopy.org/t/7s-audio-file-only-plays-1s-when-running/17981>\
**Category:** Builder\
**Created:** [November 10, 2020, 7:44am UTC](https://discourse.psychopy.org/t/7s-audio-file-only-plays-1s-when-running/17981 "2020-11-10T07:44:05Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![aisa2](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/aisa2/32/8666_2.png) [@aisa2](https://discourse.psychopy.org/u/aisa2)\
**Post date:** [November 16, 2020, 11:07pm UTC](https://discourse.psychopy.org/t/7s-audio-file-only-plays-1s-when-running/17981/9 "2020-11-16T23:07:59Z")

</div>

This is a known issue for audio specified in loops:

> [@Audio stimuli being cut short in trials](https://discourse.psychopy.org/t/audio-stimuli-being-cut-short-in-trials/16892):
>
> Hi all, I am having a very frustrating bug: when your audio stimuli have different durations, PsychoPy takes the duration of the first random item in a loop and takes it as “maximum”, cutting short all subsequent files that are longer than that. It seems that this issue has been known for years now ([Audio sample cut off](https://discourse.psychopy.org/t/audio-sample-cut-off/6885) + [Audio stimuli cut short during trials](https://discourse.psychopy.org/t/audio-stimuli-cut-short-during-trials/8474), etc). Is there really still no solution? I must add that nothing that people have suggested so far works for me: changing the library to…

If your goal is to go online, you should be okay. It doesn’t have the same bug in the javascript verison.

---

_[View the full topic](https://discourse.psychopy.org/t/7s-audio-file-only-plays-1s-when-running/17981)._
