Inspiration

What if you could live a life free from negative thoughts?

Your thoughts and actions define the way you feel. It follows that negative, inaccurate, or unfair thoughts completely darken your outlook on life. We created Solace to help you journal your inaccurate, negative, or unfair thoughts. Then, using AI and a research proven method called cognitive behavorial therapy, our app helps you identify harmful thinking styles and practice changing them. Eventually, thinking on the brighter side will become second nature.

What it does

Solace is your therapy companion wherever you go.

As you share your negative thoughts, Solace guides you to a more fair and balanced way of thinking. Over time, you will collect a personal record of amended thinking, forming the unique story of your journey towards better well-being.

How we built it

We used Google’s Gemini-1.5-Flash model as our AI therapist and OpenAI’s Whisper for speech-to-text. For text-to-speech, we evaluated several models but eventually settled on using one of Coqui.ai’s models, as it had low latency while not sounding too robotic. We used TypeScript with React to implement our frontend and allow users to either type in or record their messages. To facilitate transfer of the user’s audio file and the text-to-speech file, we used Cloudinary's content delivery network, which turned our audio files into usable URLs. Furthermore, we used the Bert, a large language classification model, which performed our sentiment analysis of user’s messages.

Challenges we ran into

  • Text-to-speech: balancing latency and roboticness of voice models
  • Transferring audio files between frontend and backend
  • Recording the audio files from the frontend and getting them into a usable format
  • Front-end: Creating multiple journal entries and switching between entries

Accomplishments that we're proud of

  • Implementing voice recognition with low latency
  • Successfully using a content delivery network to connect our frontend and backend
  • Implementing a text-to-speech model that is both efficient and relatively human-sounding
  • Engineering Gemini to create an empathetic cognitive behavorial therapist

What we learned

  • Utilizing various AI-oriented APIs via pipelines or local models
  • Using content delivery networks to transfer files between the frontend and backend
  • Using TypeScript with React to create an effective frontend
  • Communicate often to avoid making costly assumptions

What's next for Solace

  • Multiple user support/mobile app.

Built With

Share this project:

Updates