Voice data transmission method and device
AssigneeTencent Technology (Shenzhen) Company Limited
InventorJunbin Liang
Life of this patent
Estimating the term…
Abstract
A voice data transmission method performed by at least one processor, includes placing multiple voice data frames in a target sending queue, sequentially sending the multiple voice data frames to a data receiving party, and identifying one or more important voice frames among the multiple voice data frames placed in the target sending queue. The method further includes placing the one or more important voice frames that are identified, in a retransmission processing queue, and for the multiple voice data frames that are sent, performing retransmission processing on only the one or more important voice frames placed in the retransmission processing queue.
Claims19
A voice data transmission method performed by at least one processor, the method comprising:
- placing multiple voice data frames in a target sending queue;
- sequentially sending the multiple voice data frames to a data receiving party;
- identifying one or more voice frames to be retransmitted, among the multiple voice data frames placed in the target sending queue;
- placing the one or more voice frames that are identified, in a retransmission processing queue;
- and
- for the multiple voice data frames that are sent, performing retransmission processing on only the one or more voice frames placed in the retransmission processing queue,
- wherein the identifying the one or more voices frames comprises:
- calculating a frame energy of one of the multiple voice data frames placed in the target sending queue;
- determining whether the frame energy is less than a first preset threshold;
- and
- based on the frame energy being determined to not be less than the first preset threshold;
- performing a fast Fourier transformation (FFT) of 2N points on the one of the multiple voice data frames, to obtain a power spectrum of the one of the multiple voice data frames, wherein N is a positive integer;
- estimating noise energy of each frequency;
- calculating a signal-to-noise ratio of each frequency, based on the power spectrum and the noise energy;
- calculating a quadratic sum of the signal-to-noise ratio of each frequency;
- determining whether the quadratic sum of the signal-to-noise ratio of each frequency is less than a second preset threshold;
- and
- in response to the quadratic sum of the signal-to-noise ratio of each frequency being determined to be less than the second preset threshold, identifying the one of the multiple voice data frames as a voice frame that is not retransmitted.
A voice data transmission apparatus, comprising:
- at least one memory configured to store computer program code;
- and
- at least one processor configured to access the at least one memory and operate according to the computer program code, the computer program code comprising:
- placing and sending code configured to cause the at least one processor to place multiple voice data frames in a target sending queue, and sequentially send the multiple voice data frames to a data receiving party;
- identifying and placing code configured to cause the at least one processor to identify one or more voice frames to be retransmitted, among the multiple voice data frames placed in the target sending queue, and place the one or more voice frames that are identified, in a retransmission processing queue;
- and
- retransmission code configured to cause the at least one processor to, for the multiple voice data frames that are sent, perform retransmission processing on only the one or more voice frames placed in the retransmission processing queue;
- calculation code configured to cause the at least one processor to calculate a frame energy of one of the multiple voice data frames placed in the target sending queue;
- and
- energy determining code configured to cause the at least one processor to determine whether the frame energy is less than a first preset threshold,
- wherein the identifying and placing code is further configured to cause the at least one processor to, based on the frame energy being determined to not be less than the first preset threshold:
- perform a fast Fourier transformation (FFT) of 2N points on the one of the multiple voice data frames, to obtain a power spectrum of the one of the multiple voice data frames, wherein N is a positive integer;
- estimate noise energy of each frequency;
- calculate a signal-to-noise ratio of each frequency, based on the power spectrum and the noise energy;
- calculate a quadratic sum of the signal-to-noise ratio of each frequency;
- determine whether the quadratic sum of the signal-to-noise ratio of each frequency is less than a second preset threshold;
- and
- in response to the quadratic sum of the signal-to-noise ratio of each frequency being determined to be less than the second preset threshold, identify the one of the multiple voice data frames as a voice frame that is not retransmitted.
A non-transitory computer-readable storage medium storing instructions that cause a processor of a voice data transmission apparatus to:
- place multiple voice data frames in a target sending queue;
- sequentially send the multiple voice data frames to a data receiving party;
- identify one or more voice frames among the multiple voice data frames placed in the target sending queue;
- place the one or more voice frames that are identified, in a retransmission processing queue;
- for the multiple voice data frames that are sent, perform retransmission processing on only the one or more voice frames placed in the retransmission processing queue,
- calculate a frame energy of one of the multiple voice data frames placed in the target sending queue;
- determine whether the frame energy is less than a first preset threshold;
- and
- based on the frame energy being determined to not be less than the first preset threshold:
- perform a fast Fourier transformation (FFT) of 2N points on the one of the multiple voice data frames, to obtain a power spectrum of the one of the multiple voice data frames, wherein N is a positive integer;
- estimate noise energy of each frequency;
- calculate a signal-to-noise ratio of each frequency, based on the power spectrum and the noise energy;
- calculate a quadratic sum of the signal-to-noise ratio of each frequency;
- determine whether the quadratic sum of the signal-to-noise ratio of each frequency is less than a second preset threshold;
- and
- in response to the quadratic sum of the signal-to-noise ratio of each frequency being determined to be less than the second preset threshold, identify the one of the multiple voice data frames as a voice frame that is not retransmitted.
Dependencies are inferred from the claim text.