After running experiment mic "wav" files are not saving in created folder

Hello, I am using the “mic” component to save a new created “wav” file in the folder. Please let me know what could be the reason
OS : Win10
PsychoPy version : 2022.1.3
Standard Standalone? (y/n) If not then what?: y
What are you trying to achieve?:
I am using “mic” component trying to save the “wav” data files in the folder, however when I open the created “wav” data folder there is no file saved.

What did you try to make it work?:

I am using “mic” component to record the sounds

I wrote the microphone code at “Compline to Python Script”.
Using the following code:

micRecFolder = filename + ‘_mic_recorded’
if not os.path.isdir(micRecFolder):

What specifically went wrong when you tried that?:
Experiment runs, but I do not receive an error about “mic” component, that could specify why the “wav” files aren’t saving.

Hi, did you first create the mic component on builder mode and then added the additional line of code when you compiled to coder? If so, any changes you made in coder would not be reflected in builder.

That being said, if you’re running your task locally, your recordings are saved in wav format in the data folder.

Hi @suelynnmah, thanks for the reply. We created the “mic” component in the Psychopy, but did not make any changes in the code. the folder is saving, but there are no wav files inside the folder, so no audio recordings.

Hi, would you mind sharing your task so that I can try to replicate this issue on my end?

Hi, @suelynnmah thank you, I am sharing with you the task. I want to tell you, that we used import nidaqmx for our task as our experiment includes sliders (national instrument card) that are connected to the computer, so maybe when you try to run it will show an error.
pong_t5.psyexp (37.2 KB)

Hi, I couldn’t run your task without your conditions file but I tried to make a new routine with a mic component and it does indeed save wav files within the data folder. However, I also included a placeholder instruction routine before this new routine to initialise the mic. Perhaps this is something you can try on your end.

Hi @suelynnmah, thank you for trying and letting me know. I want to tell you that the recordings are saving. we have 125 trials in total and mic is recording during all the trials. Before we never run the trials from beginning to end, that was why the files were showing empty. Later we run all the trials and after we checked that the wav files were all saved