chaosparrot / parrot.py

Computer interaction using audio and speechrecognition
MIT License
139 stars 36 forks source link

[Bug/Error] Pausing gave error and ended program during recording #38

Open PiggiesGoSqueal opened 1 year ago

PiggiesGoSqueal commented 1 year ago

First off, thank you for making this and having it be free!

Now, I tried to record a sound (sss) using 2 microphones. I recorded for about 1 min 15 seconds until it showed data quality as "Good" then tried to pause it by pressing space bar. It gave an error and stopped the program instead.

Output: https://pastebin.com/bV8i4tEv

Python: 3.8.0 Pip: pip 23.2 parrot.py version: 0.13.0

After re-running it, it looks like it successfully created a folder for the sound ('sss') but I haven't gone further than that yet.

Edit: Errors also occur if I click Esc to stop the recording. As seen here: https://pastebin.com/RNcvaHww

chaosparrot commented 1 year ago

I have a hunch that it might be caused by multiple microphones being used for recording, but I am unsure.

Does the sss folder have a segments folder inside of it? There might be an issue where that folder isn't created which causes the errors from occurring.

PiggiesGoSqueal commented 1 year ago

It does have a segments folder in it. Also I've learned this issue of being unable to escape or pause the recording will only occur when creating a new sound. The first time I create a new sound and try to "esc" or click spacebar then it'll show this error but it does seem to save the data. Then I have to re-run "py settings.py" and it'll load the new file and will allow esc and spacebar to pause afterwards for that sound.