Browser Voice Intercom via Websocket and Built-in Audio
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current voice intercom systems in security systems rely on browser plug-ins for real-time voice communication, which can compromise user privacy and security, as plug-ins can be modified to access sensitive information, and may be disabled in future browser updates, preventing voice communication without plug-ins.
Innovation Solution
A method and apparatus that enable voice transmission and reception directly through a browser's built-in audio interfaces, using Websocket communication to establish connections and sampling parameters for voice data processing, eliminating the need for plug-ins.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If a plug-in is used in the browser for voice intercom, then real-time voice communication can be achieved, but user privacy and security are compromised
Solution Approach 1:
The patent extracts the voice processing functionality from the browser plug-in and relocates it to the browser's built-in audio interfaces. The plug-in is completely removed, and voice collection, processing, and transmission are handled natively by the browser through standard audio APIs, eliminating the security vulnerability while preserving real-time communication capability
Solution Approach 2:
The patent introduces Websocket as an intermediary communication protocol between the browser and server. This allows establishing a persistent long connection for real-time voice data transmission without requiring plug-ins, thereby maintaining communication reliability while enhancing security through the use of standard browser-supported protocols
2Reliability
If a plug-in is used in the browser for voice intercom, then voice transmission can be implemented, but compatibility with future browser updates is reduced
Solution Approach 1:
The patent utilizes the browser's built-in audio interfaces and standard Websocket protocol, which are universally supported across different browsers and versions. This approach eliminates dependency on proprietary plug-ins and ensures the voice intercom system remains compatible with future browser updates and different browser environments
Solution Approach 2:
The patent removes the browser plug-in component entirely and extracts voice processing functionality to use standard browser-built-in audio capabilities. This extraction ensures the solution works across all modern browsers without requiring special installations or updates, greatly enhancing adaptability
3Object-affected harmful factors
If voice data is collected through built-in audio interfaces without plug-ins, then security is enhanced, but voice sampling and processing capability is reduced
Solution Approach 1:
The patent dynamically adjusts voice sampling parameters (such as sampling rate, bitrate, and format) to optimize quality while working within the constraints of built-in audio interfaces. By flexibly changing these parameters based on network conditions and device capabilities, the system maintains high voice quality without requiring plug-in enhancements
Solution Approach 2:
The patent performs preliminary voice data processing and encoding within the browser before transmission. This includes pre-sampling, compression, and format conversion of voice data to ensure optimal quality and compatibility, compensating for any limitations of the built-in audio interfaces
Data Source
AI summary
A method and apparatus for voice transmission and reception by a browser and a voice intercom system are provided. The method for voice transmission by a browser includes: collecting first voice data through a built-in audio collection interface of the browser (S101); obtaining a first voice sampling parameter that can be utilized by a target device (S102) to process voice data; sampling the first voice data based on the first voice sampling parameter to obtain target voice data (S103); and transmitting the target voice data to the target device (S104). The method enables a browser to have a function of voice intercom without using a plug-in.


