CN116112126B - Self-adaptive noise reduction method and device based on conversation scene and communication terminal - Google Patents

Self-adaptive noise reduction method and device based on conversation scene and communication terminal Download PDF

Info

Publication number
CN116112126B
CN116112126B CN202310384482.4A CN202310384482A CN116112126B CN 116112126 B CN116112126 B CN 116112126B CN 202310384482 A CN202310384482 A CN 202310384482A CN 116112126 B CN116112126 B CN 116112126B
Authority
CN
China
Prior art keywords
data
block
unit
data block
blocks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310384482.4A
Other languages
Chinese (zh)
Other versions
CN116112126A (en
Inventor
陈培
陈郭杰
刘平生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yuntian Intelligent Communication Co ltd
Original Assignee
Shenzhen Yuntian Intelligent Communication Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yuntian Intelligent Communication Co ltd filed Critical Shenzhen Yuntian Intelligent Communication Co ltd
Priority to CN202310384482.4A priority Critical patent/CN116112126B/en
Publication of CN116112126A publication Critical patent/CN116112126A/en
Application granted granted Critical
Publication of CN116112126B publication Critical patent/CN116112126B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/74Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission for increasing reliability, e.g. using redundant or spare channels or apparatus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Self-adaptive noise reduction method and device based on call scene and communication terminal belong to the technical field of data communication, and comprise the following steps of S1: establishing a first communication line, a second communication line and a third communication line between the data transmitting unit and the data receiving unit; step S2: the data processing unit splits voice data into a plurality of data blocks, and simultaneously sends the data blocks to the data receiving unit based on a communication line; step S3: the data repairing unit repairs the data block with the error, and if the repairing times reach a first preset value, the data transmitting unit generates a restored block based on the data block; step S4: the data transmitting unit transmits the data block and the restored block to the data receiving unit through two transmissions. According to the invention, the transmission mode of the voice data is regulated according to the actual situation, the real-time performance of communication is ensured when the communication state is normal, and the integrity of the voice data is ensured by switching the transmission mode when the communication state is abnormal, so that the self-adaptive noise reduction of the voice is realized.

Description

Self-adaptive noise reduction method and device based on conversation scene and communication terminal
Technical Field
The invention belongs to the field of data communication, and particularly relates to a self-adaptive noise reduction method and device based on a call scene and a communication terminal.
Background
The conversation process between different communication terminals can be simply described as that the voice sender terminal converts voice into data packets for transmission, and the voice receiver terminal converts the data packets into voice for output after receiving the data packets.
In order to avoid the occurrence of the above phenomenon, in the prior art, after detecting that a data packet is wrong, a voice receiving terminal locates the position where the data is wrong, and repairs the wrong data in a data compensation mode, so as to repair voice data and realize self-adaptive noise reduction of voice.
Disclosure of Invention
In order to solve the problems, the invention provides a self-adaptive noise reduction method and device based on a call scene and a communication terminal, so as to solve the problems in the background technology.
In order to achieve the above-mentioned object, the present invention provides a call scene-based adaptive noise reduction method, comprising:
step S1: a first communication line, a second communication line and a third communication line are established between the data sending unit and the data receiving unit, the first communication line, the second communication line and the third communication line are respectively used for transmitting a first data queue, a second data queue and a third data queue, the first data queue and the second data queue comprise two data blocks, and the third data queue comprises one data block;
step S2: the data processing unit receives voice data, divides the voice data into a first data block, a second data block, a third data block, a fourth data block and a fifth data block, numbers are arranged in each data block, the data transmitting unit divides the first data block and the fifth data block into a first data queue, the second data block and the fourth data block into a second data queue, the third data block into a third data queue and simultaneously transmits the third data block to the data receiving unit;
step S3: the data checking unit checks the received data blocks, if the checking result is correct, the data blocks are combined and restored to voice data based on the serial numbers of the data blocks, if the checking result is wrong, the data repairing unit repairs the data blocks with errors, the data repairing unit records the repairing times of the data blocks, if the repairing times reach a first preset value, the data repairing unit returns first network fluctuation information to the data processing unit, after receiving the first network fluctuation information, the data processing unit receives the voice data again and completes the splitting of the voice data, generates a first restoration block based on the first data block and the second data block in a communication line, generates a second restoration block based on the second data block and the third data block, generates a third restoration block based on the third data block and the fourth data block, and generates a fourth restoration block based on the fourth data block and the fifth data block;
step S4: and establishing two groups of transmission queues, wherein each group of transmission queues comprises a first data queue to a third data queue, each restoring block and each data block are distributed into the two groups of transmission queues, and the data transmitting unit transmits the two groups of transmission queues to the data receiving unit through two transmissions.
Further, the data receiving unit records the number of data transmission times of the lost data blocks, if the number of data transmission times reaches a second preset value, the data receiving unit sends second network fluctuation information to the data sending unit, the second network fluctuation information comprises a communication line number, when data is sent again, the data processing unit splits voice data into six data blocks, the data sending unit copies the data blocks in the communication line queues in the second network fluctuation information, and the copied data blocks are moved to replace the data blocks in the other two communication line queues.
Further, in the step S3, the repairing of the data block with the error by the data repairing unit includes the following steps:
step S31: the data processing unit adds a check code into each data block, the data check unit checks the data blocks based on the check code, if the check result of the data blocks is wrong and the data blocks cannot be corrected based on the check code, the data check unit generates a first retransmission instruction and returns the first retransmission instruction to the data transmitting unit, and the data transmitting unit transmits the data blocks with the same number again based on the first retransmission instruction;
step S32: the data checking unit checks the received data blocks, if the checking result of the data blocks is wrong and the data blocks cannot be corrected based on the checking code, the data checking unit obtains the total number of error positions of the two data blocks, if the total number of error positions is not larger than a third preset value, the data repairing unit compares the two data blocks bit by bit, positions different positions of the data of the two data blocks, inverts the data of the different positions of the data, generates various derivative data blocks, and checks the derivative data blocks one by one based on the checking code, and combines the data blocks with the rest data blocks with correct checking result to restore the voice data.
Further, if the total number of positions where two data blocks are in error is greater than a third preset value, the data verification unit generates a second retransmission instruction and returns the second retransmission instruction to the data transmission unit, the data transmission unit retransmits the data block with the error number based on the second retransmission instruction, the data verification unit verifies the received data block, if the verification result is still in error and cannot be corrected by using the verification code, the three data blocks are combined based on a majority voting mode, and the combined data block and the rest data blocks are combined and restored into voice data.
Further, in the step S2, before the data transmitting unit transmits the data block, the method further includes the following steps:
dividing a first data block and a fifth data block into a first buffer unit, dividing a second data block and a fourth data block into a second buffer unit, dividing a third data block into a third buffer unit, copying the data blocks in the first buffer unit, the second buffer unit and the third buffer unit into a first data queue, a second data queue and a second data queue by a data sending unit, sending the first data block and the fifth data block to a data receiving unit, judging whether the number of the received data block is complete or not by the data receiving unit, restoring the combination of the received data blocks into voice data based on the number of the received data block if the number of the received data block is complete, returning data receiving success information to the data sending unit, deleting the data blocks in each buffer unit based on the data receiving success information, generating a data block loss instruction, returning the data block loss instruction to the data sending unit, and copying the lost data blocks from the corresponding buffer units into the corresponding data queues based on the data block loss instruction, and sending the data blocks again.
The invention also provides a self-adaptive noise reduction device based on the call scene, which is used for realizing the self-adaptive noise reduction method based on the call scene, and comprises the following steps:
the data processing unit is used for receiving voice data, splitting the voice data into a first data block, a second data block, a third data block, a fourth data block and a fifth data block, writing numbers in each data block, and simultaneously receiving transmission abnormality information, and is also used for generating a first reduction block based on the first data block and the second data block, generating a second reduction block by the second data block and the third data block, generating a third reduction block by the third data block and the fourth data block, and generating a fourth reduction block by the fourth data block and the fifth data block;
the data transmission unit is used for establishing a group of transmission queues, dividing a first data block and a fifth data block into a first data queue, dividing a second data block and a fourth data block into a second data queue, dividing a third data block into a third data queue, or establishing two groups of transmission queues, wherein each group of transmission queues comprises the first data queue to the third data queue, distributing each reduction block and each data block into two groups of transmission queues, and transmitting the two groups of transmission queues to the data receiving unit through two transmissions;
the data receiving unit is used for receiving the first data queue, the second data queue and the third data queue and transmitting the first data queue, the second data queue and the third data queue to the data checking unit;
the data checking unit is used for checking the data content in the data block, restoring the data block into voice data based on the combination number of the data block if the data checking result is correct, and transmitting the error data to the data repairing unit if the data checking result is wrong;
the data repairing unit is used for repairing the data block with the error and recording the repairing times of the data block, and if the repairing times reach a first preset value, the data repairing unit returns a first network fluctuation instruction to the data processing unit.
The invention also provides a communication terminal which comprises a memory and a processor, wherein the memory stores a computer program which can be run on the processor, and the processor executes the self-adaptive noise reduction method based on the conversation scene when running the computer program.
Compared with the prior art, the invention has the following beneficial effects:
the invention comprises two voice data transmission modes, when the communication line between two communication terminals is in a normal state, the communication terminal at the data transmission side splits the data into a plurality of data blocks and transmits the data through different communication lines, thereby increasing the redundancy of the communication line and ensuring the real-time performance of communication; when a communication line between two communication terminals is in an abnormal state, the communication terminal at the data transmitting side generates a restored data block based on the data packet, and when a single data block has data errors, the data block can be restored by restoring the data block, so that the errors in voice data are eliminated, and noise is avoided when the data block is restored to voice; according to the invention, the communication mode is switched by monitoring the communication states among the communication terminals, so that the transmission mode of voice data is regulated according to actual conditions, the real-time performance of communication is ensured when the communication states are normal, and the integrity of the voice data is ensured by switching the transmission mode when the communication states are abnormal, thereby realizing self-adaptive noise reduction of voice.
Drawings
FIG. 1 is a flow chart of steps of the adaptive noise reduction method based on a call scene of the present invention;
fig. 2a is a schematic diagram of a first transmission mode according to the present invention;
fig. 2b is a schematic diagram of a second transmission mode according to the present invention;
fig. 3 is a schematic diagram of a third transmission mode according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It will be understood that the terms "first," "second," and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another element. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script, without departing from the scope of the present application.
As shown in fig. 1, the adaptive noise reduction method based on the call scene includes:
step S1: a first communication line, a second communication line and a third communication line are established between the data sending unit and the data receiving unit, the first communication line, the second communication line and the third communication line are respectively used for transmitting a first data queue, a second data queue and a third data queue, the first data queue and the second data queue comprise two data blocks, and the third data queue comprises one data block;
the redundancy of communication can be increased by establishing three communication lines, so that the situation that a single data communication line fails and communication cannot be performed is avoided; the transmission speed of the communication line is affected by the transmission mode and the transmission medium of the communication line, in this embodiment, the transmission speeds of the first communication line and the second communication line are the same and are twice the transmission speed of the third communication line, and in other embodiments, the transmission speeds of the first communication line, the second communication line and the third communication line may be completely the same.
Step S2: the data processing unit receives voice data, splits the voice data into a first data block, a second data block, a third data block, a fourth data block and a fifth data block, numbers are arranged in each data block, the data transmitting unit divides the first data block and the fifth data block into a first data queue, the second data block and the fourth data block into a second data queue, the third data block into a third data queue and simultaneously transmits the third data block to the data receiving unit;
as shown in fig. 2a, in the first transmission mode between the data sending unit and the data transmitting unit in fig. 2a, the transmission speeds of the first communication line and the second communication line are the same and are twice the transmission speed of the third communication line, so that only one transmission is needed to complete the transmission from the data sending unit to the data receiving unit by using the division mode, thereby improving the real-time performance of the data transmission.
Step S3: the data checking unit checks the received data blocks, if the checking result is correct, the data blocks are combined and restored to voice data based on the serial numbers of the data blocks, if the checking result is wrong, the data repairing unit repairs the data blocks with errors, the data repairing unit records the repairing times of the data blocks, if the repairing times reach a first preset value, the data repairing unit returns first network fluctuation information to the data processing unit, after the data processing unit receives the first network fluctuation information, and after voice data are received again and the voice data are split, a first restoration block is generated based on the first data block and the second data block in the communication line, the second data block and the third data block generate a second restoration block, the third data block and the fourth data block generate a third restoration block, and the fourth data block and the fifth data block generate a fourth restoration block;
in this embodiment, the first preset value is set to 10, for example, the data sending unit sends 20 times of data to the data receiving unit, where 10 times of data errors occur, which indicates that there is a great probability of errors occurring in the data during the transmission process, and the reason for this situation may be that there is fluctuation in the communication line; in the prior art, the method for repairing voice data only refers to the previously transmitted voice to carry out synthesis repairing, the repairing result has randomness, the voice data cannot be completely recovered, and if the repairing effect is not ideal, the receiver can receive wrong information.
Therefore, in case of large fluctuation of the network, in order to ensure the complete transmission of the voice data, the data processing unit generates a first restoration block a based on the first data block and the second data block, generates a second restoration block B based on the second data block and the third data block, generates a third restoration block C based on the third data block and the fourth data block, generates a fifth restoration block D based on the fourth data block and the fifth data block, and simultaneously the data transmitting unit changes the transmission mode of the data blocks.
Step S4: two groups of transmission queues are established, each group of transmission queues comprises a first data queue to a third data queue, each restoring block and each data block are distributed into the two groups of transmission queues, and the data sending unit sends the two groups of transmission queues to the data receiving unit through two transmissions.
In this embodiment, after the data receiving unit splits the voice data into 5 data blocks, the 5 data blocks are divided into two transmissions, referring to fig. 2B, fig. 2B shows a second transmission mode, where the first data block and the third data block are allocated to a first data queue for transmitting data for the first time, the second data block and the fourth data block are allocated to a second data queue, the first restoration block a is allocated to the third data queue, the fifth data block and the third restoration block C are allocated to a first data queue for transmitting data for the second time, the fourth restoration block D is allocated to a second data queue for transmitting data for the second time, the second restoration block B is allocated to the third data queue, and the second data queue for transmitting data for the second time is empty by one data block; when the first data block in the graph has errors, the first data block can be restored through the first restoring block of the second data block through exclusive OR operation, so that the voice data restored by the data block combination is ensured not to have noise.
The invention comprises two voice data transmission modes, when the communication line between two communication terminals is in a normal state, the communication terminal at the data transmission side splits the data into a plurality of data blocks and transmits the data through different communication lines, thereby increasing the redundancy of the communication line and ensuring the real-time performance of communication; when a communication line between two communication terminals is in an abnormal state, the communication terminal at the data transmitting side generates a restored data block based on the data packet, and when a single data block has data errors, the data block can be restored by restoring the data block, so that the errors in voice data are eliminated, and noise is avoided when the data block is restored to voice; according to the invention, the communication mode is switched by monitoring the communication states among the communication terminals, so that the transmission mode of voice data is regulated according to actual conditions, the real-time performance of communication is ensured when the communication states are normal, and the integrity of the voice data is ensured by switching the transmission mode when the communication states are abnormal, thereby realizing self-adaptive noise reduction of voice.
On the basis of the above method, when the data block is lost, the lost data block can be restored by the remaining two data blocks, however, the above restoring method still has a partial limitation, and with continued reference to fig. 2b, when there is network fluctuation in the second communication line, the fourth data block and the fourth restoring block may be lost, and because the fourth restoring block is generated based on the fourth data block and the fifth data block, when the fourth data block and the fourth restoring block are lost, the restoration of the data block cannot be completed only by the fifth data block, and therefore, when there is a data block loss condition in the communication line, the present invention further proposes the following transmission mode:
the data receiving unit records the data transmission times of the lost data blocks, if the data transmission times reach a second preset value, the data receiving unit sends second network fluctuation information to the data sending unit, the second network fluctuation information comprises a communication line number, when the data is sent again, the data processing unit splits voice data into six data blocks, the data sending unit copies the data blocks in the communication line queues in the second network fluctuation information, and the copied data blocks are moved and replace the data blocks in the other two communication line queues.
Specifically, the data receiving unit performs combination reduction on the data blocks based on the numbers of the data blocks, when the data blocks are missing, the communication line for transmitting the data blocks can be positioned based on the numbers of the data blocks, and when a condition that a plurality of continuous data blocks are missing in a certain communication line occurs, the communication line is set as a network abnormal line; at this time, the data processing unit splits the received voice data into six data blocks, and because the data processing unit splits the received voice data into more data blocks, compared with five data blocks, the data blocks are smaller by the splitting mode, so that the transmission load of a communication line is not exceeded; for example, in fig. 3, fig. 3 is a third transmission mode, where network fluctuation occurs in the second communication line, after the data processing unit splits the voice data into six data blocks and divides the six data blocks into two transmissions, first describing the first transmission, copying the second data block and the fifth data block in the second communication line on the basis of fig. 2a, and replacing the third data block and the fourth data block in the first communication line; the second transmission, copying the third data block and the fourth data block in the second communication line and replacing the third data block and the fourth data block in the first communication line will be described below, in which case, when the data block in the second communication line is lost, the retrieval can be performed through the first communication line and the third communication line, and the transmission of all the data blocks is completed through the two transmissions.
In the prior art, a check code is usually added into each data sequence, and whether the data sequence is in error or not is checked through the check code, however, the check code in the prior art can only find one error in the data sequence and correct the error, and when the data sequence is in error in a plurality of positions, the check code can only find the number of the errors and cannot know the specific position, so the invention also corrects the data through the following steps on the basis.
Step S31: the data processing unit adds a check code into each data block, the data check unit checks the data blocks based on the check code, if the check result of the data blocks is wrong and the data blocks cannot be corrected based on the check code, the data check unit generates a first retransmission instruction and returns the first retransmission instruction to the data transmitting unit, and the data transmitting unit transmits the data blocks with the same number again based on the first retransmission instruction;
step S32: the data checking unit checks the received data blocks, if the checking result of the data blocks is wrong and the data blocks cannot be corrected based on the checking code, the data checking unit obtains the total number of error positions of the two data blocks, if the total number of error positions is not larger than a third preset value, the data repairing unit compares the two data blocks bit by bit, positions different positions of the data of the two data blocks, inverts the data of the different positions of the data, generates various derivative data blocks, checks the derivative data blocks one by one based on the checking code, and combines the data blocks with the rest data blocks, and restores the data blocks with correct checking result to voice data.
Specifically, after the data verification unit receives a data block with data errors, the number of the data block is obtained, then the data transmission unit is requested to transmit the data block with the same number again, the data reception unit uses the verification code to verify again after receiving the data block, if the verification is passed, the retransmitted data block is proved to have no errors, and at the moment, the data verification unit combines the data block with other data blocks transmitted in the same group and restores the data block into voice data;
if the verification result of the data block indicates that an error still occurs in the data block, the total number of positions where the error occurs in the two data blocks is obtained, and in this embodiment, the third preset value is set to 4, for example, the error occurs in the two positions in the data block sent for the first time, the error occurs in the two positions in the data block sent for the second time, the total number of error positions is less than 4, and the specific positions where the error occurs cannot be known; at this time, the two data blocks are checked bit by bit, for example, if the check result of the two data blocks is that the first transmitted data block and the second transmitted data block are different in the first bit, the second bit, the third bit and the fourth bit, then the position where the data is in error will be in the first to fourth bits of the data block, the first bit and the second bit of the first transmitted data block are inverted, for example, 10 is changed to 01, and then the check code is used for checking, if the check result is correct, the inverted data block is output, and if the check result is incorrect, the first bit and the third bit of the data block are continuously inverted, and the step is repeated until the correct data block is obtained. By this step, when the data block is transmitted only once again, the data block can be corrected,
however, in the above steps, the number of the derivative data blocks increases exponentially with the number of the error positions, and when there are a large number of derivative data blocks, verifying each derivative data block not only takes a large amount of time to affect the real-time performance of communication, but also generates a great processing burden on the communication terminal, so that when the total number of the error positions is greater than the third preset value, the present invention corrects the errors of the data blocks by:
if the total number of the error positions of the two data blocks is larger than a third preset value, the data verification unit generates a second retransmission instruction and returns the second retransmission instruction to the data transmission unit, the data transmission unit retransmits the data block with the error number based on the second retransmission instruction, the data verification unit verifies the received data block, if the verification result is still in error and cannot be corrected by using the verification code, the three data blocks are combined based on a majority voting mode, and the combined data block and the rest data block are combined and restored into voice data.
Specifically, the data transmitting unit continuously transmits the same data block three times, if the data checking unit finds that an error still exists in the data block transmitted for the third time and cannot be corrected, the three data blocks are combined based on a majority voting mode, for example, the 1 st bit in the data block transmitted for the first time is 1, the 1 st bit in the data block transmitted for the second time is 0, the 1 st bit in the data block transmitted for the first time is 1, the 1 st bit in the data block combined by the three data blocks is set to be 1, and each bit of the heart data block is generated based on the majority voting mode. By the method, after three data blocks are acquired, the data blocks can be corrected in a majority voting mode, and the probability of the same error occurring in each data block transmitted is extremely low, so that the data blocks can be corrected in the method, the transmission times of the data transmission unit are limited to three times, and the repair efficiency of the data blocks is greatly improved.
In step S2, before the data transmitting unit transmits the data block, the method further includes the steps of:
dividing a first data block and a fifth data block into a first buffer unit, dividing a second data block and a fourth data block into a second buffer unit, dividing a third data block into a third buffer unit, copying the data blocks in the first buffer unit, the second buffer unit and the third buffer unit into a first data queue, a second data queue and a second data queue by a data sending unit, sending the first data block and the fifth data block to a data receiving unit, judging whether the number of the received data block is complete or not by the data receiving unit, restoring the combination of the received data block into voice data based on the number of the data block and returning data receiving success information to the data sending unit, deleting the data blocks in each buffer unit based on the data receiving success information by the data sending unit, generating a data block loss instruction and returning the data block loss instruction to the data sending unit, copying the missing data blocks from the corresponding buffer units to the corresponding data queues based on the data block loss instruction, and sending the missing data blocks again.
The data buffer unit is arranged to store the transmitted data blocks, and when the data receiving unit detects that the data blocks are missing, the data receiving unit sends a data loss instruction to the data transmitting unit, and the data transmitting unit can rapidly transmit the data blocks again because the transmitted data blocks are stored in the buffer unit; after the data receiving unit receives all the data blocks, generating receiving success information and returning the receiving success information to the data sending unit so that the data sending unit can delete the data in the buffer unit timely, and therefore a storage space is provided for the storage of the next batch of data blocks. The invention also provides a self-adaptive noise reduction device based on the call scene, which is used for realizing the self-adaptive noise reduction method based on the call scene, and comprises the following steps:
the data processing unit is used for receiving voice data, splitting the voice data into a first data block, a second data block, a third data block, a fourth data block and a fifth data block, writing numbers in each data block, and simultaneously receiving transmission abnormality information, and is also used for generating a first reduction block based on the first data block and the second data block, generating a second reduction block by the second data block and the third data block, generating a third reduction block by the third data block and the fourth data block, and generating a fourth reduction block by the fourth data block and the fifth data block;
the data transmission unit is used for establishing a group of transmission queues, dividing a first data block and a fifth data block into a first data queue, dividing a second data block and a fourth data block into a second data queue, dividing a third data block into a third data queue, or establishing two groups of transmission queues, wherein each group of transmission queues comprises the first data queue to the third data queue, distributing each restoring block and each data block into two groups of transmission queues, and transmitting the two groups of transmission queues to the data receiving unit through two transmissions;
the data receiving unit is used for receiving the first data queue, the second data queue and the third data queue and transmitting the first data queue, the second data queue and the third data queue to the data checking unit;
the data checking unit is used for checking the data content in the data block, restoring the data block into voice data based on the combination number of the data block if the data checking result is correct, and transmitting the error data to the data repairing unit if the data checking result is wrong;
the data repairing unit is used for repairing the data block with the error and recording the repairing times of the data block, and if the repairing times reach a first preset value, the data repairing unit returns a first network fluctuation instruction to the data processing unit.
The invention also provides a communication terminal which comprises a memory and a processor, wherein the memory stores a computer program which can be run on the processor, and the processor executes the self-adaptive noise reduction method based on the conversation scene when running the computer program.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by way of computer programs, which may be stored on a non-transitory computer readable storage medium, and which, when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and for brevity, all of the possible combinations of the technical features of the above embodiments are not described, however, they should be considered as the scope of the description of the present specification as long as there is no contradiction between the combinations of the technical features.
The foregoing examples have been presented to illustrate only a few embodiments of the invention and are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (7)

1. The self-adaptive noise reduction method based on the call scene is characterized by comprising the following steps of:
step S1: a first communication line, a second communication line and a third communication line are established between the data sending unit and the data receiving unit, the first communication line, the second communication line and the third communication line are respectively used for transmitting a first data queue, a second data queue and a third data queue, the first data queue and the second data queue comprise two data blocks, and the third data queue comprises one data block;
step S2: the data processing unit receives voice data, divides the voice data into a first data block, a second data block, a third data block, a fourth data block and a fifth data block, numbers are arranged in each data block, the data transmitting unit divides the first data block and the fifth data block into a first data queue, the second data block and the fourth data block into a second data queue, the third data block into a third data queue and simultaneously transmits the third data block to the data receiving unit;
step S3: the data checking unit checks the received data blocks, if the checking result is correct, the data blocks are combined and restored to voice data based on the serial numbers of the data blocks, if the checking result is wrong, the data repairing unit repairs the data blocks with errors, the data repairing unit records the repairing times of the data blocks, if the repairing times reach a first preset value, the data repairing unit returns first network fluctuation information to the data processing unit, after receiving the first network fluctuation information, the data processing unit receives the voice data again and completes the splitting of the voice data, generates a first restoration block based on the first data block and the second data block in a communication line, generates a second restoration block based on the second data block and the third data block, generates a third restoration block based on the third data block and the fourth data block, and generates a fourth restoration block based on the fourth data block and the fifth data block;
step S4: and establishing two groups of transmission queues, wherein each group of transmission queues comprises a first data queue to a third data queue, each restoring block and each data block are distributed into the two groups of transmission queues, and the data transmitting unit transmits the two groups of transmission queues to the data receiving unit through two transmissions.
2. The adaptive noise reduction method based on a call scenario according to claim 1, wherein the data receiving unit records the number of data transmission times when the data blocks are lost, and if the number of data transmission times reaches a second preset value, the data receiving unit sends second network fluctuation information to the data sending unit, the second network fluctuation information includes a communication line number, and when the data is sent again, the data processing unit splits the voice data into six data blocks, and the data sending unit copies the data blocks in the communication line queues in the second network fluctuation information, and moves the copied data blocks and replaces the data blocks in the remaining two communication line queues.
3. The adaptive noise reduction method according to claim 1, wherein in the step S3, the data repair unit repairs the erroneous data block, comprising the steps of:
step S31: the data processing unit adds a check code into each data block, the data check unit checks the data blocks based on the check code, if the check result of the data blocks is wrong and the data blocks cannot be corrected based on the check code, the data check unit generates a first retransmission instruction and returns the first retransmission instruction to the data transmitting unit, and the data transmitting unit transmits the data blocks with the same number again based on the first retransmission instruction;
step S32: the data checking unit checks the received data blocks, if the checking result of the data blocks is wrong and the data blocks cannot be corrected based on the checking code, the data checking unit obtains the total number of error positions of the two data blocks, if the total number of error positions is not larger than a third preset value, the data repairing unit compares the two data blocks bit by bit, positions different positions of the data of the two data blocks, inverts the data of the different positions of the data, generates various derivative data blocks, and checks the derivative data blocks one by one based on the checking code, and combines the data blocks with the rest data blocks with correct checking result to restore the voice data.
4. The adaptive noise reduction method based on call scene as claimed in claim 3, wherein if the data checking unit obtains that the total number of error positions of two data blocks is greater than a third preset value, the data checking unit generates a second retransmission command and returns the second retransmission command to the data transmitting unit, the data transmitting unit retransmits the data block with the error number based on the second retransmission command, the data checking unit checks the received data block, and if the check result is still in error and cannot be corrected by using a check code, the three data blocks are combined based on a majority voting mode, and the combined data block and the rest data block are combined and restored into voice data.
5. The adaptive noise reduction method according to claim 1, wherein in step S2, before the data transmitting unit transmits the data block, the method further comprises the steps of:
dividing a first data block and a fifth data block into a first buffer unit, dividing a second data block and a fourth data block into a second buffer unit, dividing a third data block into a third buffer unit, copying the data blocks in the first buffer unit, the second buffer unit and the third buffer unit into a first data queue, a second data queue and a second data queue by a data sending unit, sending the first data block and the fifth data block to a data receiving unit, judging whether the number of the received data block is complete or not by the data receiving unit, restoring the combination of the received data blocks into voice data based on the number of the received data block if the number of the received data block is complete, returning data receiving success information to the data sending unit, deleting the data blocks in each buffer unit based on the data receiving success information, generating a data block loss instruction, returning the data block loss instruction to the data sending unit, and copying the lost data blocks from the corresponding buffer units into the corresponding data queues based on the data block loss instruction, and sending the data blocks again.
6. A call scene-based adaptive noise reduction apparatus for implementing a call scene-based adaptive noise reduction method according to any one of claims 1 to 5, comprising:
the data processing unit is used for receiving voice data, splitting the voice data into a first data block, a second data block, a third data block, a fourth data block and a fifth data block, writing numbers in each data block, and simultaneously receiving transmission abnormality information, and is also used for generating a first reduction block based on the first data block and the second data block, generating a second reduction block by the second data block and the third data block, generating a third reduction block by the third data block and the fourth data block, and generating a fourth reduction block by the fourth data block and the fifth data block;
the data transmission unit is used for establishing a group of transmission queues, dividing a first data block and a fifth data block into a first data queue, dividing a second data block and a fourth data block into a second data queue, dividing a third data block into a third data queue, or establishing two groups of transmission queues, wherein each group of transmission queues comprises the first data queue to the third data queue, distributing each reduction block and each data block into two groups of transmission queues, and transmitting the two groups of transmission queues to the data receiving unit through two transmissions;
the data receiving unit is used for receiving the first data queue, the second data queue and the third data queue and transmitting the first data queue, the second data queue and the third data queue to the data checking unit;
the data checking unit is used for checking the data content in the data block, restoring the data block into voice data based on the combination number of the data block if the data checking result is correct, and transmitting the error data to the data repairing unit if the data checking result is wrong;
the data repairing unit is used for repairing the data block with the error and recording the repairing times of the data block, and if the repairing times reach a first preset value, the data repairing unit returns a first network fluctuation instruction to the data processing unit.
7. A communication terminal comprising a memory and a processor, the memory having stored thereon a computer program executable on the processor, wherein the processor executes the call scene based adaptive noise reduction method of any of claims 1-5 when the computer program is executed.
CN202310384482.4A 2023-04-12 2023-04-12 Self-adaptive noise reduction method and device based on conversation scene and communication terminal Active CN116112126B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310384482.4A CN116112126B (en) 2023-04-12 2023-04-12 Self-adaptive noise reduction method and device based on conversation scene and communication terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310384482.4A CN116112126B (en) 2023-04-12 2023-04-12 Self-adaptive noise reduction method and device based on conversation scene and communication terminal

Publications (2)

Publication Number Publication Date
CN116112126A CN116112126A (en) 2023-05-12
CN116112126B true CN116112126B (en) 2023-06-09

Family

ID=86260094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310384482.4A Active CN116112126B (en) 2023-04-12 2023-04-12 Self-adaptive noise reduction method and device based on conversation scene and communication terminal

Country Status (1)

Country Link
CN (1) CN116112126B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026532A (en) * 2019-12-10 2020-04-17 苏州思必驰信息科技有限公司 Message queue management method for voice data
CN113763932A (en) * 2021-05-13 2021-12-07 腾讯科技(深圳)有限公司 Voice processing method and device, computer equipment and storage medium
CN114205429A (en) * 2021-12-14 2022-03-18 深圳壹账通智能科技有限公司 Voice packet processing method, system, equipment and storage medium based on UDP protocol
CN114285830A (en) * 2021-12-21 2022-04-05 北京百度网讯科技有限公司 Voice signal processing method and device, electronic equipment and readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106067847B (en) * 2016-05-25 2019-10-22 腾讯科技(深圳)有限公司 A kind of voice data transmission method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026532A (en) * 2019-12-10 2020-04-17 苏州思必驰信息科技有限公司 Message queue management method for voice data
CN113763932A (en) * 2021-05-13 2021-12-07 腾讯科技(深圳)有限公司 Voice processing method and device, computer equipment and storage medium
CN114205429A (en) * 2021-12-14 2022-03-18 深圳壹账通智能科技有限公司 Voice packet processing method, system, equipment and storage medium based on UDP protocol
CN114285830A (en) * 2021-12-21 2022-04-05 北京百度网讯科技有限公司 Voice signal processing method and device, electronic equipment and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
云存储分级服务缓冲队列技术;刘静涛 等;指挥信息系统与技术(第05期);全文 *

Also Published As

Publication number Publication date
CN116112126A (en) 2023-05-12

Similar Documents

Publication Publication Date Title
WO2020047707A1 (en) Data coding, decoding and repairing method for distributed storage system
US20100142522A1 (en) Methods and apparatus for adaptive error correction in networks
US6728920B1 (en) Method for correcting errors in transfer of information
CN110943800A (en) Method, device and system for sending data packet, storage medium and electronic device
CN110460412B (en) Method and RDMA network card for data transmission
CN108345617B (en) Data synchronization method and device and electronic equipment
CN103957155A (en) Message transmission method and device and interconnection interface
US20140337680A1 (en) Can communication apparatus and method thereof
CN113114526B (en) Data transmission method and device based on sub-packet interference prevention
CN116112126B (en) Self-adaptive noise reduction method and device based on conversation scene and communication terminal
CN105164960A (en) Reduction of retransmission latency by combining pacing and forward error correction
CN109120385B (en) Data transmission method, device and system based on data transmission system
CN111863107B (en) Flash memory error correction method and device
US10009506B2 (en) Image forming system, image-data transmission unit, and image-data transmission method
CN114513285B (en) Method, device, equipment and readable storage medium for detecting and correcting transmission data
CN111246428A (en) Network reliable communication method, system, device and storage medium
CN111488238B (en) Block storage node data restoration method and storage medium
CN111863106B (en) Flash memory error correction method and device
CN112311502B (en) Data retransmission method, device, controller and medium based on optical fiber communication system
CN115334000B (en) Data transmission method, device, equipment and medium based on multi-control storage system
KR102412423B1 (en) Non-volatile memory storage, computing system including the same and peration method thereof
CN118450002A (en) Message sending and caching processing method and system based on check code
CN113656199A (en) Service message transmission method, device, computer equipment and storage medium
CN117608893A (en) Method, device and related equipment for adjusting correctable error reporting threshold
CN116700607A (en) Data restoration method, system, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant