- This topic has 4 replies, 2 voices, and was last updated 2 years, 6 months ago by .
Viewing 4 reply threads
Viewing 4 reply threads
- You must be logged in to reply to this topic.
› Forums › Technical support › Python SpeechRecorder error
Hello,
I’m on Windows and trying to use the python SpeechRecorder. Installing requirements.txt worked fine, but when I try to run rec.py utts.data and record something, I get an error:
takes[name] += 1
NameError: name ‘takes’ is not defined
Looking at the script I think there are several undefined variables in rec() ?
My mistake! Untested refactoring…
If you got the code through git clone
, then try the following to get back to before I (maybe) broke it: git checkout b70620d
Otherwise you can download a .zip at this point in the commit history from here: https://github.com/dan-wells/speechrecorder/tree/b70620d6baf0aeed26b41d97c1da490629a31042
That said, I don’t get such an error on Linux from the latest version, and I don’t see why that part of the code should behave differently on different platforms…
It works! I had to tinker with the devices and the channels but now it works smoothly. Thank you:)
Good to hear!
For anyone else coming across this issue, I’ve now fixed the problem on Windows (and tested it!)
Any future issues can be opened on GitHub and I’ll see them more quickly than forum posts.
Some forums are only available if you are logged in. Searching will only return results from those forums if you log in.
Copyright © 2024 · Balance Child Theme on Genesis Framework · WordPress · Log in