diff --git a/Sources/pyOpenRPA/Robot/Audio.py b/Sources/pyOpenRPA/Robot/Audio.py index 63a3339a..512e8ddf 100644 --- a/Sources/pyOpenRPA/Robot/Audio.py +++ b/Sources/pyOpenRPA/Robot/Audio.py @@ -286,6 +286,8 @@ class Recorder: ) self.mRecordedFramesList = [] lTimeSecFloat = time.time() + if not os.path.exists(os.path.abspath(self.mFolderPathStr)): + os.mkdir(self.mFolderPathStr) sound.export(lFilePathStr, format=f"{self.mFileFormatStr}") self.mFileNameList.append(lFileNameWExtStr) self.mFileInfoDict[lFileNameWExtStr]= {