halfnhalf / hearing Goto Github PK
View Code? Open in Web Editor NEWA raspi app for giving hearing tests
A raspi app for giving hearing tests
If a threshold over 40dB is found then the start of the bone conduction (or end of the air conduction?) causes the following error:
LENGTH OF LEFT THRESHOLDS: 1
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/sysop/capstone/audiometer/screens/hearingscreen.py", line 54, in test_thread
self.audiometer.test.start_test_sequence()
File "/home/sysop/capstone/audiometer/hearing/hearingtest.py", line 60, in start_test_sequence
self.rightBoneThresholds[i] = self.find_threshold(test_freqs[i], False, True)
NameError: global name 'test_freqs' is not defined
This happens regardless which ear has a threshold of over 40dB
We'll need to Thread the pyaudio stream similar to how audiostream does it
It looks like the pi is too slow to generate enough samples for the alsa lib in time. Stepping down the sampling frequency doesn't make it much better. There's probably some configuration I need to change.
After fully completing the new test and going to results screen, pressing the start test button immediately ends the test and goes to results.
Perhaps the old thread isn't dying properly?
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.