×Full view
Back to Portfolio

// Android · Java · GPT-3.5 Turbo · Firebase

Chat AI Bot App

Android chatbot app powered by GPT-3.5 Turbo with text and voice modes, Firebase authentication, and persistent conversation history.

Platform: Android (Java)
AI: GPT-3.5 Turbo
Backend: Firebase

Overview

A feature-rich Android chatbot that connects to OpenAI's GPT-3.5 Turbo API. Users can type or speak their messages (using Android's SpeechRecognizer) and receive responses that are optionally read aloud via TextToSpeech. Conversation history persists in Firebase Firestore per user account, so chats resume across devices and sessions.

Tech Stack

JavaAndroidOpenAI GPT-3.5 APIFirebase AuthCloud FirestoreSpeechRecognizerTextToSpeech

Key Contributions

  • Integrated GPT-3.5 Turbo API with streaming response display — text appears token-by-token like native ChatGPT.
  • Voice input using Android SpeechRecognizer with fallback to keyboard for accessibility.
  • TextToSpeech output with playback controls (pause, stop) and voice speed settings.
  • Conversation history stored in Firestore with batched writes to minimize read/write costs.
  • Firebase Authentication with Google Sign-In for frictionless onboarding.

Screenshots

Screenshot Screenshot

Results

Streaming API responses in Android RecyclerView required custom DiffUtil work to prevent scroll-jump artifacts as tokens arrived. Solved with a custom append-only adapter.