uTalk: Bridging the Gap Between Humans and AI

Hussam Azzuni, Sharim Jamal, Abdulmotaleb Elsaddik

Abstract

Large Language Models (LLMs) have revolutionized various industries by harnessing their power to improve productivity and facilitate learning across different fields. One intriguing application involves combining LLMs with visual models to create a novel approach to Human-Computer Interaction. The core idea of this system is to create a user-friendly platform that enables people to utilize ChatGPT's features in their everyday lives. uTalk is comprised of technologies like Whisper, ChatGPT, Microsoft Speech Services, and the state-of-the-art (SOTA) talking head system SadTalker. Users can engage in human-like conversation with a digital twin and receive answers to any questions. Also, uTalk could generate content by submitting an image and input (text or audio). This system is hosted on Streamlit, where users will be prompted to provide an image to serve as their AI assistant. Then, as the input (text or audio) is provided, a set of operations will produce a video of the avatar with the precise response. This paper outlines how SadTalker's run-time has been optimized by 27.69% based on 25 frames per second (FPS) generated videos and 38.38% compared to our 20FPS generated videos. Furthermore, the integration and parallelization of SadTalker and Streamlit have resulted in a 9.8% improvement compared to the initial performance of the system.

Introduction

While Large Language Models (LLMs) like ChatGPT have revolutionized how we access information, the interface remains largely text-based or simple audio. Human-Computer Interaction (HCI) is naturally more engaging when it involves visual cues, such as a speaking face (an avatar or "digital twin"). However, generating realistic, lip-synced video in response to AI-generated text is computationally expensive. Existing state-of-the-art models like SadTalker are often too slow for seamless conversation. uTalk addresses this "latency gap" by profiling the system's bottlenecks and optimizing the pipeline to make avatar-based AI more practical for everyday use.

System Architecture

The uTalk framework follows a multi-step pipeline designed for responsiveness and realism.

uTalk system architecture pipeline.
  1. Speech-to-Text: OpenAI’s Whisper API (specifically the whisper-tiny model) transcribes user queries quickly.
  2. Brain (LLM): Transcribed text is sent to ChatGPT (GPT-3.5-turbo). By feeding the context of previous interactions back into the model, uTalk maintains a coherent, human-like conversation flow.
  3. Text-to-Speech: Azure Cognitive Services converts the AI's text response into high-quality audio.
  4. Video Generation: The audio and a user-provided image are fed into an optimized version of SadTalker to produce the final video.

Key optimizations to SadTalker include redundancy removal (e.g., stripping tqdm), Facexlib efficiency (switching to retinaface-mobile0.25), I/O optimization using OpenCV, and parallelization via Streamlit’s caching to pre-load models.

Evaluation and Results

The system was benchmarked on an NVIDIA RTX 3090Ti. A subjective user study with 29 participants evaluated video smoothness across different frame rates to find the optimal balance between speed and quality.

Performance Gains

The optimized SadTalker (Proposed mod4) achieved a significant reduction in runtime through aggressive optimization of the generation stages.

Optimization results for SadTalker modifications.

As shown in the table, the final proposed modification (uTalk) reduced video generation time from 40.64 seconds to 29.39 seconds for a 7-second audio clip—a 27.69% improvement. Overall system integration and modularization resulted in a 9.8% reduction in total system response time.

The 20 FPS "Sweet Spot"

A key insight from the user study was the identification of 20 FPS as the optimal balance point. Users perceived 20 FPS videos as comparable in quality to higher frame rates (23-24 FPS), which allows for a ~15% speedup in inference without a perceived loss in user experience. At 20 FPS, the system achieved a mean user score of 3.66/5.

Conclusion

uTalk successfully bridges the gap between text-based AI and lifelike human interaction. By optimizing the SadTalker model and identifying efficient frame-rate thresholds, the system achieves near-real-time performance on consumer-grade high-end hardware. Future work will focus on reaching true real-time speeds and expanding the platform for low-power mobile devices and diverse automated customer service applications.

Summary updated

Abstract

Large Language Models (LLMs) have revolutionized various industries by harnessing their power to improve productivity and facilitate learning across different fields. One intriguing application involves combining LLMs with visual models to create a novel approach to Human-Computer Interaction. The core idea of this system is to create a user-friendly platform that enables people to utilize ChatGPT's features in their everyday lives. uTalk is comprised of technologies like Whisper, ChatGPT, Microsoft Speech Services, and the state-of-the-art (SOTA) talking head system SadTalker. Users can engage in human-like conversation with a digital twin and receive answers to any questions. Also, uTalk could generate content by submitting an image and input (text or audio). This system is hosted on Streamlit, where users will be prompted to provide an image to serve as their AI assistant. Then, as the input (text or audio) is provided, a set of operations will produce a video of the avatar with the precise response. This paper outlines how SadTalker's run-time has been optimized by 27.69% based on 25 frames per second (FPS) generated videos and 38.38% compared to our 20FPS generated videos. Furthermore, the integration and parallelization of SadTalker and Streamlit have resulted in a 9.8% improvement compared to the initial performance of the system.
BibTeX
@inproceedings{azzuni2024utalk,
  author = {Hussam Azzuni and Sharim Jamal and Abdulmotaleb Elsaddik},
  title = {{uTalk: Bridging the Gap Between Humans and AI}},
  booktitle = {ICCE},
  year = {2024},
  url = {https://openreview.net/forum?id=78TRDEcmlh},
}
Figure