contextlab / autofr Goto Github PK
View Code? Open in Web Editor NEWTemplate for a free recall experiment with automatic audio transcription
Template for a free recall experiment with automatic audio transcription
Need instructions for adding Google credentials in README.md
Idea from Tal Yarkoni (via Twitter):
this is neat! you could consider wrapping pliers (https://github.com/tyarkoni/pliers ), which would allow you to easily switch between different speech transcription services (Google, IBM, http://Wit.ai , etc.)--though at the cost of a few dependencies.
it would simplify things quite a bit if at the end of an experiment, the .db file is processed and an egg
containing the just finished subject's data would be saved out.
I think it may take too long for me to implement by the time we submit the paper, but would be a nice feature for a future release
at minimum we need:
ideally we'd also have:
we could use a docker image to replicate our testing room compute environment, which would hopefully simplify things if someone else wanted to run this experiment / use this template
Hi,
Great package and super useful! I'm going to submit a pull request (I'm sort of new to GitHub but hopefully that's the right thing to do) with a couple updates to the repo to account for new semantics in using Google's API in the custom.py
file, but even accounting for that change, I'm running into the following error running the experiment. As soon as I click that the participant has "Yes, they have signed" the consent form, the terminal displays "[psiTurk server:on mode:sdbx #HITs:0]$ creating audio folder... " and the server.log
displays the error below. I'm able to run a sample of the experiment—just the appearance of the first two words, followed by instructions to recall all the words I remember (which are only two since I only saw two) and then after the red microphone appears for ~5 seconds the screen goes blank. Neither the terminal nor server.log
have any additional messages. Any guidance would be much appreciated!
2020-05-23 18:31:57,113 Accessing /exp: debug772D75 debug30SB34 debugAOHAJU
2020-05-23 18:31:57,146 given Counter({(0, 0): 5}) chose (0, 0)
2020-05-23 18:31:58,094 GET /sync route with id: debugAOHAJU:debug30SB34
2020-05-23 18:31:58,269 Exception on /function() { console.log('trial number', currentTrialNumber) console.log('stimulus', currentStimArray[currentTrialNumber]) return stimHTMLFormatter(currentStimArray[currentTrialNumber]) } [GET]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2317, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1840, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1743, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1838, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1824, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python2.7/dist-packages/psiturk/experiment.py", line 747, in regularpage
return render_template(pagename)
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 134, in render_template
return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 930, in get_or_select_template
return self.get_template(template_name_or_list, parent, globals)
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 883, in get_template
return self._load_template(name, self.make_globals(globals))
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 857, in _load_template
template = self.loader.load(self, name, globals)
File "/usr/local/lib/python2.7/dist-packages/jinja2/loaders.py", line 115, in load
source, filename, uptodate = self.get_source(environment, name)
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 58, in get_source
return self._get_source_fast(environment, template)
File "/usr/local/lib/python2.7/dist-packages/flask/templating.py", line 86, in _get_source_fast
raise TemplateNotFound(template)
TemplateNotFound: function() { console.log('trial number', currentTrialNumber) console.log('stimulus', currentStimArray[currentTrialNumber]) return stimHTMLFormatter(currentStimArray[currentTrialNumber]) }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.