A Comparative Study of Webrtc and Websocket Performance in Real-Time Voice Communication

Authors

DOI:

https://doi.org/10.35314/rsx41r57

Keywords:

WebRTC, WebSocket, Real-Time Voice, Openai API, voice to voice

Abstract

This study compares the performance of Web Real-Time Communication (WebRTC) and WebSocket for bidirectional voice interaction with the ChatGPT API on an Orange Pi 3B edge device over a 50 Mbps Ethernet connection. The objective is to determine the most efficient and reliable protocol for real-time interaction on resource-constrained devices. The study evaluates latency, bandwidth, CPU utilization, and jitter metrics automatically collected to assess the efficiency and stability of both protocols. Results show that WebRTC achieves approximately 150 ms latency with lower network and CPU consumption and near-zero jitter, while WebSocket exhibits around 200 ms latency with higher bandwidth usage and CPU load. Practically, WebRTC is more efficient and stable for client-side production due to its resource-efficient and responsive characteristics, whereas WebSocket is better suited for custom data streaming or high-throughput server-to-server communication. These findings provide a quantitative foundation for developers in selecting the optimal protocol for real-time voice applications in edge environments.

Downloads

Download data is not yet available.

Published

09-10-2025

Issue

Section

Articles

How to Cite

A Comparative Study of Webrtc and Websocket Performance in Real-Time Voice Communication. (2025). INOVTEK Polbeng - Seri Informatika, 10(3), 1573-1582. https://doi.org/10.35314/rsx41r57