uTalk: Bridging the Gap Between Humans and AI

Hussam Azzuni, Sharim Jamal, Abdulmotaleb Elsaddik

TL;DR

uTalk is an integrated framework that transforms ChatGPT into a lifelike "digital twin" by combining speech-to-text, LLMs, and talking-head video generation. By aggressively optimizing the SadTalker model—including a 27.69% reduction in runtime and identifying a "sweet spot" at 20 FPS—the authors have created a more responsive and user-friendly platform for human-AI interaction.

What Problem Does This Paper Address?

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. The authors address this "latency gap" by profiling the system's bottlenecks and optimizing the pipeline to make avatar-based AI more practical for everyday use.

Methods

The uTalk framework follows a multi-step pipeline:

  1. Speech-to-Text: Uses OpenAI’s Whisper API (specifically the whisper-tiny model) to transcribe user queries quickly.
  2. Brain (LLM): Transcribed text is sent to ChatGPT (GPT-3.5-turbo) with specific prompt engineering to ensure concise, conversational responses.
  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: * Redundancy Removal: Stripped out non-essential libraries (like tqdm) and eliminated the saving/loading of intermediate files during the four-stage generation process. * Facexlib Efficiency: Switched the face detection model from retinaface-resnet50 to the lighter retinaface-mobile0.25 and reduced face restoration resolution from 512x512 to 256x256. * I/O Optimization: Replaced the slow mimwrite function with a more efficient OpenCV-based implementation for video output. * Parallelization & Caching: Utilized Streamlit’s caching to pre-load models, ensuring heavy initialization tasks only happen once.

Datasets

The paper does not introduce a new training dataset for the models themselves (it relies on pre-trained weights for Whisper, GPT, and SadTalker). Instead, it focuses on evaluation:

  • Performance Benchmarking: Conducted on a Windows 11 machine with an NVIDIA RTX 3090Ti and Intel i9-12900 CPU.
  • Subjective User Study: A group of 29 participants (55.2% GenZ, 44.8% Millennials) evaluated nine AI-generated videos with varying frame rates (16 to 24 FPS) to determine the threshold for "smoothness."

Key Insights and Ideas

  • The 20 FPS "Sweet Spot": The subjective study revealed that users perceive 20 FPS videos as comparable in quality to 23 or 24 FPS. This is a crucial "aha moment" because generating fewer frames per second directly translates to a ~15% speedup without a perceived loss in user experience.
  • Small Tweaks, Big Gains: The authors found that substantial latency came from "overhead" rather than just neural network inference. For example, removing unnecessary Gaussian blur functions and switching to a mobile-optimized detection model provided a "drastic improvement" in speed.
  • Contextual Memory: By feeding the context of the previous two questions and answers back into ChatGPT, the system maintains a much more coherent and human-like conversation flow.

Key Results

  • Runtime Reduction: The optimized SadTalker (Proposed mod4) reduced video generation time from 40.64 seconds to 29.39 seconds for a 7-second audio clip—a 27.69% improvement.
  • System Integration: Modularizing the code and using Streamlit’s caching resulted in a 9.8% overall reduction in total system response time.
  • FPS Efficiency: The study confirmed that 20 FPS is the optimal balance point, allowing for faster inference while maintaining a mean user score of 3.66/5 (higher than the 17 FPS and 19 FPS versions).

Limitations and Future Work

  • Hardware Requirements: While optimized, the system still requires high-end consumer hardware (like an RTX 3090Ti) to achieve these speeds. It is not yet optimized for low-power mobile devices.
  • Real-time Latency: Even at ~29 seconds of processing for 7 seconds of video, the system is "near-real-time" rather than truly instantaneous. There is still a noticeable wait time for the user.
  • Future Directions: The authors suggest further work on reaching true real-time performance and expanding the UI to support more diverse content creation tools and 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},
}

Loading related content...

Figure