Inspiration

Fact checking websites exist to check information with a quick search. However, it isn't as easy/practical to do this while talking to someone in person, so we thought of making a solution for that.

What it does

We implemented a solution to this by constantly listening to inputs through a microphone and responding back through the speakers of a device if a falsehood is detected.

How we built it

1) First, we implemented a program to record audio, using the library pyaudio, then saving it as a .wav file with the wave library. 2) Then, we transcribed this audio using the speech-to-text api, Whisper. 3) Running the transcription through GPT-4 with it's role of "fact checking assistant", we will get it's analysis of the text. 4) Using its analysis of false or true with a short description of why, we will output it audibly with the pyttsx3 library.

Challenges we ran into

We implemented each aspect of the program into three different files, and we were able to make each file work independently, but when they started working together, we would get different results (i.e. 2 + 2 = 5 is true when tested in the main file, but false when tested individually the validity file). After meddling a bit and changing some code logic, the main file eventually matched the output of the validity file, though we are still not very sure why.

Accomplishments that we're proud of

Making each step of the program work, followed by the entirety of the program run together through the main function was extremely satisfying. We're glad that we were able to make it work completely, and it was even a bit of fun to play around with it and see if it would detect certain common schemes are false (such as "Watching this 5 minute video will teach you everything you need to know about mushrooms in the wild")

What we learned

We learnt how to use python libraries, such as audio recording and file saving libraries, use multiple APIs in collaboration with each other, and learnt how to implement AI more extensively in day-to-day life.

Built With

Share this project:

Updates