Skip to content
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.
/ htn21-cactus Public archive

Give positive affirmations to your CactUs and it will grow with you! We're ready to take you from Cact-I to Cact-Us!

Notifications You must be signed in to change notification settings

browningluke/htn21-cactus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CactUs - taking Cact-I to Cact-Us!

All Contributors

As students, we may unintentionally compare ourselves to peers and cause a domino effect of resentment towards others, and towards ourselves. This deprivation of joy leads to weariness and self-doubt, resulting in a poor mental health state. To alleviate the struggles and stress people face, we are ready to take it from “Cact-i” to “Cact-Us”, a web app that encourages positivity through the form of positive affirmations that grow your plant.

 

 

What it does

Users can record themselves on the “Try Me!” button voicing words of affirmations. Controlled with a points system, positive affirmations contribute to the plant’s growth in unlocking more stylish plant evolutions, while negative affirmations result in a decrease of points. The ultimate goal is to reach the desired state--Level 4 Cactus-- where the Cactus is happy and fulfilled.

Challenges we ran into

Working with the MediaRecorder API, it was a challenge to tailor the React package to our use cases and convert the blob to a file that could be sent to our backend endpoints. Given that we were using the Google Cloud Speech-to-Text API, we had to send the audio data in one of a limited number of codecs. One challenge we ran into was the React media recorder output data not being compatible with Google’s requirement. This was fixed by transcoding the audio data in a memory buffer using ffmpeg.

Given that we were using the Google Cloud Speech-to-Text API, we had to send the audio data in one of a limited number of codecs. One challenge we ran into was the React media recorder output data not being compatible with Google’s requirement. This was fixed by transcoding the audio data in a memory buffer using ffmpeg.

Accomplishments that we're proud of

  • The Speech-to-Text integration, paired with the sentiment analysis, took a while to get working, but it works well
  • The in-memory audio transcoding with ffmpeg fixed all issues with incompatible codecs
  • The user is successfully awarded growth points depending on the length of their audio snippets

What we learned

  • Frontend: React & React packages
  • Backend: Express & OAuth
  • Integration between frontend and backend
  • Collaborating over varying time zones

What's next for CactUs

  • Forest of previous cacti: each cactus shows how long it took to grow, and 3 random messages that were said to it.
  • Multi-player: by generating a unique QR code, a user will be able to ‘check-in’ with another, allowing their cacti to have a playdate.
  • Messaging: text notifications through Discord to alert the user that the cacti is feeling dumb and sad again.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


k-chew

💻 🎨

Christina Liang

💻 🎨

selina-20

🎨 📖

Luke Browning

💻 🚇

This project follows the all-contributors specification.

About

Give positive affirmations to your CactUs and it will grow with you! We're ready to take you from Cact-I to Cact-Us!

Topics

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •