Note This is my first time ever using kotlin or making anything android related
Vibrates an android watch (I have only tested on Galaxy watch 4) when high pitched noises are present
The main purpose is because I own this which emits a high pitched noise when grinding teeth. This project intends to add additional stimuli rather than just the noise.
This could also be useful for hearing impaired people to notice noises they may otherwise not be able to.
TODO: Add a tracking system to see how many times it was used that night
Github project the pitch detection alg came from
Resources used when making this project (I used a whole lot more but these are the only ones relevant in the end):
- https://stackoverflow.com/questions/59797841/android-how-to-call-a-function-on-click-of-an-invisible-button
- https://stackoverflow.com/questions/73605027/promlem-with-pairing-device-using-wifi-in-android-studio/73605270#73605270
- https://support.focusrite.com/hc/en-gb/articles/115004120965-Sample-Rate-Bit-Depth-Buffer-Size-Explained
- https://www.techotopia.com/index.php/Kotlin_-_Making_Runtime_Permission_Requests_in_Android#.EF.BB.BFChecking_for_a_Permission.EF.BB.BF
- https://stackoverflow.com/questions/25660166/how-to-add-a-jar-in-external-libraries-in-android-studio
- https://medium.com/@juniorbump/pitch-detection-in-android-using-tarsosdsp-a2dd4a3f04e9
- Github project the pitch detection alg came from
- https://stackoverflow.com/questions/69240429/android-studio-error-minimum-supported-gradle-version-is-7-0-2-current-version
- https://stackoverflow.com/questions/56305791/unresolved-reference-viewmodelscope-kotlin-android
- https://stackoverflow.com/questions/47880450/how-to-vibrate-android-device-on-button-click-using-vibrator-effects-using-kotli
- https://stackoverflow.com/questions/61377734/kotlin-how-to-change-text-and-color-of-button-when-click
- https://developer.android.com/codelabs/basic-android-kotlin-compose-functions#1
- Youtube: Build A Simple Android App With Kotlin