Voice and Text-Based AI Healthcare Chatbot Using Local Language Models

Abstract -- In recent years, the integration of Artificial Intelligence (AI) into healthcare systems has transformed the way users access medical knowledge, offering enhanced accessibility, personalization, and efficiency. This project presents the design and development of an AI-based healthcare chatbot capable of functioning both offline and online, supporting voice and text input/output, and built entirely using free, open-source tools. Unlike most existing solutions that depend on expensive or cloud-based APIs, this chatbot utilizes locally hosted machine learning models from Hugging Face (distilGPT2) to deliver responses to health-related queries. The chatbot allows users to either type or speak their questions. It processes spoken input using the SpeechRecognition library and synthesizes spoken responses using pyttsx3, creating a natural, conversational experience. Responses are generated using a hybrid approach: a rule-based system handles common queries such as flu symptoms or sleep advice, while transformer-based text generation provides contextually appropriate answers for general or ambiguous queries. All conversations are handled through an intuitive web interface built with Streamlit, which also maintains session memory to simulate human-like dialogue. Key Words: Voice-enabled AI chatbot, Healthcare assistant, Natural language processing, Offline chatbot, Speech recognition, Text-to-speech synthesis, Local language models, Streamlit interface, Hugging Face transformers, distilGPT2, pyttsx3, Speech Recognition, PyTorch, Real-time voice interaction, Rule-based healthcare responses.

Authors

Publication Details

Journal
INTERANTIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT
Published
2025-05-29
DOI
https://doi.org/10.55041/ijsrem49087
Primary Topic
AI in Service Interactions
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Voice and Text-Based AI Healthcare Chatbot Using Local Language Models

S China Venkateswarlu
INTERANTIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT
AI in Service Interactions
article

Voice and Text-Based AI Healthcare Chatbot Using Local Language Models

S China Venkateswarlu
article en

Abstract

Abstract -- In recent years, the integration of Artificial Intelligence (AI) into healthcare systems has transformed the way users access medical knowledge, offering enhanced accessibility, personalization, and efficiency. This project presents the design and development of an AI-based healthcare chatbot capable of functioning both offline and online, supporting voice and text input/output, and built entirely using free, open-source tools. Unlike most existing solutions that depend on expensive or cloud-based APIs, this chatbot utilizes locally hosted machine learning models from Hugging Face (distilGPT2) to deliver responses to health-related queries. The chatbot allows users to either type or speak their questions. It processes spoken input using the SpeechRecognition library and synthesizes spoken responses using pyttsx3, creating a natural, conversational experience. Responses are generated using a hybrid approach: a rule-based system handles common queries such as flu symptoms or sleep advice, while transformer-based text generation provides contextually appropriate answers for general or ambiguous queries. All conversations are handled through an intuitive web interface built with Streamlit, which also maintains session memory to simulate human-like dialogue. Key Words: Voice-enabled AI chatbot, Healthcare assistant, Natural language processing, Offline chatbot, Speech recognition, Text-to-speech synthesis, Local language models, Streamlit interface, Hugging Face transformers, distilGPT2, pyttsx3, Speech Recognition, PyTorch, Real-time voice interaction, Rule-based healthcare responses.

INTERANTIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENTVol. 09(05)
Openalex Percentile: Top 94%
AI in Service Interactions
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.