Method and Apparatus for Sending and Receiving Voice of Browser, and Voice Intercom System
AssigneeHangzhou Hikvision Digital Technology Co., Ltd.
InventorsZhongjian Feng, Xiangzhen Chen, Xiangqing Jin
Life of this patent
Estimating the term…
Abstract
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.
Claims17
A method for voice transmission by a browser, comprising:
- collecting first voice data through a built-in audio collection interface of the browser;
- obtaining a first voice sampling parameter that can be utilized by a target device to process voice data;
- sampling the first voice data based on the first voice sampling parameter to obtain target voice data;
- and
- transmitting the target voice data to the target device.
A method for voice reception by a browser, comprising:
- receiving second voice data transmitted by a target device;
- obtaining a first voice sampling parameter that can be utilized by a target device to process voice data;
- encapsulating the second voice data based on the first voice sampling parameter to obtain encapsulated voice data;
- decoding, through a built-in audio decoding interface of the browser, the encapsulated voice data as obtained;
- and
- playing the decoded second voice data.
10-18. (canceled)
(canceled)
An electronic device, comprising:
- a memory and a processor;
- the memory is configured to store a computer program;
- the processor is configured to execute the program stored in the memory, so as to perform the method for voice transmission by a browser according to claim.
Dependencies are inferred from the claim text.