I have googled this hard and even similar questions dont have the info I need and assume more prior knowledge than I have! If I have a sound file such as an mp3, where should I save it and in what format so that I can insert it into the builder? I am using the latest version of PsycoPy on a windows computer.
I have attached pictures to show the filename and output. I'm sorry this is such a basic queston but I am at my wits end trying to find a simple explanation for how to insert audio with the builder!
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/d6ebe23f-6ea2-4546-95c1-6c7b391748db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Jonathan Peirce University of Nottingham http://www.peirce.org.uk
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
Hi Michael, sorry it's not clear enough - I have tried it with the dot wav file extension in the conditions file (see screenshot) but it comes up with an error message (other shot). It gives me this message whether I use Excel or the LibreOffice equivalent.
I the audio files to play in a randomised loop as referenced in the csv consitions file. Currently it will not play any audio (the rest of the routine such as the text plays fine). I can get it to play single audio files as objects in a trial, but not from the csv doc. I guess it has something to do with this error message or not being able to add the full dot wav name?
many thanks
J
On Wednesday, 1 July 2015 03:08:40 UTC+1, Michael MacAskill wrote:
> On 1/07/2015, at 00:58, Bombshell Molotov <bombshel...@gmail.com> wrote:
>
>
> Thanks Jon, I got it going -I am now having difficulty getting any audio to play via a Loop.
You don't tell us exactly what the problem is, so hard to give you any guidance…
> I have the stimuli saved in the C drive under Python/ExperimentPilot/Stimuli.
> I want to setup the experiment so that it loops and plays a selection of 8s long audio stimuli at random. I currently have just one stimulus in the csv as a test (although I have tried running it with several stimuli too).
> I have attached the setup of the trial routine, the loop and the audio object.
Although you don't say what the problem is, the screenshot of your conditions file shows that it contains only the first part of the filename and not its extension (.wav). Python will need the full name of the files in order to be able to find them.
Regards,
Michael
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/58337dec-3472-4a04-b611-407ed54a7231%40googlegroups.com.
From your screenshots:
- your conditions file is at
"ExperimentPilot/ExpPilotLoop.csv" and
the fact that it says that suggests that your experiment file (.psyexp
with the diagonal grating) is in the outer folder called Python. Correct?
The psyexp file I’m using is now at Python/ExperimentPilot/ (highlighted in screen grab)
- your excel file give no path at all for your stimulus so psychopy
is looking for it next to your experiment file (in Python folder?)
I have put a file path into the excel file (hoping this was what you meant!) – see screen grab
your sound file is currently set to a filename. If you want it to
be accessed from the conditions file you need to use the variable $wav
instead of the filename. And then you still need the filenames in the
conditions file to give the path *relative to the experiment file*. If
your experiment file is in folder Python then the wav entries in your
condtions file should be ExperimentPilot/Stimuli/FolktronicFIFO8s.wav
Changed to the variable $wav instead of the file name.
I’ve run it and NOW I get an error message , so at least that’s something to go on! See attached