ECHO CANCELLATION SYSTEM AND METHOD OF MULTICHANNEL SOUND MIXING

20200349963 ยท 2020-11-05

Assignee

Inventors

Cpc classification

International classification

Abstract

The invention provides an echo cancellation system and method of a multichannel sound mixing. The echo cancellation system comprises a voice assistant module and at least one signal generating device for respectively outputting first audio data and second audio data adapted to the configuration of a loudspeaker; a copying module for copying the first audio data and the second audio data to obtain corresponding third audio data and fourth audio data; a first sound mixing module for mixing and converting the first audio data and the second audio data to obtain two-channel first sound mixing data; a second sound mixing module for mixing the third audio data and the fourth audio data to obtain second sound mixing data; an echo cancellation module for echo cancellation according to the first sound mixing data; and a playing module for receiving and playing the second sound mixing data.

Claims

1. An echo cancellation system for a multichannel sound mixing, comprising: a voice assistant module for outputting first audio data adapted to the configuration of a loudspeaker; at least one sound signal generating device for outputting second audio data adapted to the configuration of the loudspeaker; a copying module, connected to the voice assistant module and the at least one sound signal generating device, respectively, configured to receive the first audio data and the second audio data, and configured to copy the first audio data and the second audio data to obtain third audio data corresponding to the first audio data and fourth audio data corresponding to the second audio data; a first sound mixing module, connected to the copy module, configured to receive the first audio data and the second audio data, and configured to mix and convert the first audio data and the second audio data to obtain two-channel first sound mixing data; a second sound mixing module, connected to the copy module, configured to receive the third audio data and the fourth audio data, and configured to mix the third audio data and the fourth audio data to obtain second sound mixing data; an echo cancellation module, connected to the first sound mixing module, and configured to perform echo cancellation according to the first sound mixing data; and a playing module, connected to the second sound mixing module, and configured to receive and play the second sound mixing data.

2. The echo cancellation system of claim 1, wherein the sound signal generating device comprises an application and/or an audio decoder.

3. The echo cancellation system of claim 1, further comprising: a reference module, connected to the first sound mixing module and echo cancellation module, respectively, configured to generate reference data corresponding to the first sound mixing data, and configured to input the first sound mixing data and the reference data to the echo cancellation module.

4. The echo cancellation system of claim 3, wherein the reference data is timestamp information corresponding to the first sound mixing data.

5. The echo cancellation system of claim 1, wherein the configuration of the loudspeaker comprises a 2.0 channel loudspeaker, a 5.1 channel loudspeaker, and a 7.1 channel loudspeaker.

6. The echo cancellation system of claim 1, wherein the playing module converts and amplifies the second sound mixing data through a driver, and output the converted and amplified data to a corresponding loudspeaker.

7. The echo cancellation system of claim 1, wherein the echo cancellation module comprises: a sound acquisition unit for acquiring live audio data; an echo cancellation unit, connected to the sound acquisition unit, configured to perform echo cancellation on the live audio data according to the first sound mixing data, and configured to sent the sound mixing data subjected to the echo cancellation to the voice assistant module.

8. An echo cancellation method of a multichannel sound mixing, comprising the steps of: Step S1, receiving first audio data, output from a voice assistant module, and adapted to the configuration of a loudspeaker, and receiving second audio data, output from at least one sound signal generating device, and adapted to the configuration of the loudspeaker; Step S2, copying the first audio data and the second audio data to obtain third audio data corresponding to the first audio data and fourth audio data corresponding to the second audio data; Step S3, receiving the first audio data and the second audio data, and mixing and converting the first audio data and the second audio data to obtain two-channel first sound mixing data; and receiving the third audio data and the fourth audio data, and mixing the third audio data and the fourth audio data to obtain second sound mixing data; Step S4, performing echo cancellation according to the first sound mixing data; and receiving and playing the second sound mixing data.

9. The echo cancellation method of claim 8, further comprising a step between Step S3 and Step S4: generating reference data corresponding to the first sound mixing data, and inputting the first sound mixing data and the reference data to the echo cancellation module.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings, together with the specification, illustrate exemplary embodiments of the present disclosure, and, together with the description, serve to explain the principles of the present invention.

[0033] FIG. 1 is a function block diagram of an echo cancellation system according to an embodiment of the present invention;

[0034] FIG. 2 is a functional block diagram of an echo cancellation module of the echo cancellation system according to an embodiment of the present invention; and

[0035] FIG. 3 is a flowchart of an echo cancellation method according to an embodiment of the present invention.

DETAILED DESCRIPTION

[0036] The present invention will now be described more fully hereinafter with reference to the accompanying drawings, in which exemplary embodiments of the invention are shown. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. Like reference numerals refer to like elements throughout.

[0037] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms a, an and the are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms comprises and/or comprising, or includes and/or including or has and/or having when used herein, specify the presence of is stated features, regions, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, regions, integers, steps, operations, elements, components, and/or groups thereof.

[0038] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.

[0039] As used herein, around, about or approximately shall generally mean within 20 percent, preferably within 10 percent, and more preferably within 5 percent of a given value or range. Numerical quantities given herein are approximate, meaning that the term around, about or approximately can be inferred if not expressly stated.

[0040] As used herein, the term plurality means a number greater than one.

[0041] Hereinafter, certain exemplary embodiments according to the present disclosure will be described with reference to the accompanying drawings.

[0042] As shown in FIG. 1, the invention comprises an echo cancellation system of a multichannel sound mixing, comprising:

[0043] a voice assistant module 1 for outputting first audio data adapted to the configuration of a loudspeaker;

[0044] at least one sound signal generating device 2 for outputting second audio data adapted to the configuration of the loudspeaker;

[0045] a copying module 3, connected to the voice assistant module 1 and at least one sound signal generating device 2, respectively, configured to receive the first audio data and the second audio data, and configured to copy the first audio data and the second audio data to obtain third audio data corresponding to the first audio data and fourth audio data corresponding to the second audio data;

[0046] a first sound mixing module 4, connected to the copy module 3, configured to receive the first audio data and the second audio data, and configured to mix and convert the first audio data and the second audio data to obtain two-channel first sound mixing data;

[0047] a second sound mixing module 5, connected to the copy module 3, configured to receive the third audio data and the fourth audio data, and configured to mix the third audio data and the fourth audio data to obtain second sound mixing data;

[0048] an echo cancellation module 6, connected to the first sound mixing module 4, and configured to perform echo cancellation according to the first sound mixing data; and

[0049] a playing module 7, connected to the second sound mixing module 5, and configured to receive and play the second sound mixing data.

[0050] In the above-mentioned embodiment, the voice assistant module 1 and the at least one sound signal generating device 2 correspondingly output the first audio data and the second audio data adapted to the configuration of the loudspeaker. The copy module 3 copies the first audio data and the second audio data to obtain the third audio data corresponding to the first audio data and the fourth audio data corresponding to the second audio data. The first sound mixing module 4 mixes and converts the first audio data and the second audio data to obtain the two-channel first sound mixing data. The echo cancellation module 6 performs, according to the first sound mixing data, echo cancellation on the live audio data received by the echo cancellation module 6. The playing module 7 plays the second sound mixing data obtained by the sound mixing of the third audio data and the fourth audio data through the second sound mixing module 5. Therefore, mixed sound mixing data of the multichannel audio data is effectively obtained, and echo cancellation is achieved by the obtained mixed sound mixing data, and thus the functional diversity and the quality of products are improved.

[0051] The echo cancellation module 6 adopts the first sound mixing data as a reference when performing echo cancellation. The first sound mixing data comprises both the first audio data and the second audio data. Therefore, the echo cancellation module 6 not only uses the first audio data output from the voice assistant 1 as the reference, but also uses the second audio data output from other sound signal generating devices 2 as the reference, so that the accuracy of the echo cancellation is improved and the external noise is greatly suppressed.

[0052] Furthermore, in the above-mentioned embodiment, the sound signal generating device 2 comprises an application and/or an audio decoder.

[0053] Typically, the echo cancellation system processes second audio data in the application and the audio decoder.

[0054] Furthermore, in the above-mentioned embodiment, the echo cancellation system further comprises a reference module 8, connected to the first sound mixing module 4 and echo cancellation module 6, respectively, configured to generate reference data corresponding to the first sound mixing data, and configured to input the first sound mixing data and the reference data to the echo cancellation module 6. As a result, the echo cancellation module 6 performs echo cancellation according to the first sound mixing data and the reference data.

[0055] Furthermore, in the above-mentioned embodiment, the reference data is timestamp information corresponding to the first sound mixing data for providing time reference.

[0056] The reference module 8 comprises a virtual sound card equipment. The reference module 8 may provide the echo cancellation module 6 with accurate timestamp information to be corresponding to the first sound mixing data. The timestamp information is used to provide time reference when the echo cancellation module 6 performs echo cancellation according to the first sound mixing data, so that the accuracy of the echo cancellation is improved.

[0057] Furthermore, in the above-mentioned embodiment, the configuration of the loudspeaker comprises a 2.0 channel loudspeaker, a 5.1 channel loudspeaker, and a 7.1 channel loudspeaker, that is, the loudspeaker can output and receive two-channel, six-channel and eight-channel audio data.

[0058] Furthermore, in the above-mentioned embodiment, the playing module 7 converts and amplifies the second sound mixing data through a driver, and output the converted and amplified data to a corresponding loudspeaker. Therefore, it is possible to play the mixed sound mixing data of the multichannel audio data.

[0059] Furthermore, in the above-mentioned embodiment, as shown in FIG. 2, the echo cancellation module 6 comprises:

[0060] a sound acquisition unit 61 for acquiring live audio data;

[0061] an echo cancellation unit 62, connected to the sound acquisition unit 61, configured to perform echo cancellation on the live audio data according to the first sound mixing data, and configured to sent the sound mixing data subjected to the echo cancellation to the voice assistant module.

[0062] The live audio data is all the audio data acquired by the sound acquisition unit 61, that is, the live audio data comprises the first sound mixing data.

[0063] Furthermore, as a preferred embodiment, the loudspeaker is configured to be a two-channel loudspeaker. The echo cancellation system is applied to Linux Alsa system. The copy module 3 here maybe an Alsa Multi Plug-in. The Alsa Multi Plug-in copies two-channel audio data of all the audio playing sources to the first sound mixing module 4 and the second sound mixing module 5 for sound mixing, so as to obtain corresponding first sound mixing data and second sound mixing data. The first sound mixing module 4 sends the first sound mixing data to the echo cancellation module 6 through the reference module 8, and the echo cancellation module 6 performs echo cancellation on the first sound mixing data. The second sound mixing module 5 sends the second sound mixing data to the playing module 7. The playing module 7 converts and amplifies the second sound mixing data through a driver, and output the converted and amplified data to a corresponding loudspeaker, so that playing of the second sound mixing data is achieved.

[0064] When the playing sources comprise an audio decoder outputting the multichannel audio, the audio decoder is required to covert the multichannel audio data into the two-channel/mono-channel second audio data. For example, the audio decoder may convert the six-channel audio data into two-channel second audio data for outputting by using the following codes (1)

TABLE-US-00001 pcm.loopback { type route slave.pcm hw:1,1,0 #input loudspeaker nodes slave.channels 6 #input the number of sound channels ttable.0.0 0.3 # channel mapping and channel ratio, 0.3 represents 30% of mapping percentage ttable.1.1 0.3 ttable.0.2 0.3 ttable.1.3 0.3 ttable.0.4 0.3 ttable.1.5 0.3 } ( 1 )

[0065] Similarly, the audio decoder may convert the eight-channel audio data into two-channel second audio data for outputting.

[0066] Furthermore, as a preferred embodiment, the loudspeaker is configured to be a six-channel loudspeaker. The echo cancellation system is applied to Linux Alsa system. The copy module 3 here maybe an Alsa Multi Plug-in.

[0067] The Alsa Multi Plug-in outputs the multichannel audio data of all the playing sources to the first sound mixing module 4 for sound mixing, to obtain the two-channel first sound mixing data, and the Alsa Multi Plug-in outputs the multichannel audio data of all the playing sources to the second sound mixing module 5 for sound mixing, to obtain second sound mixing data. The first sound mixing module 4 sends the first sound mixing data to the echo cancellation module 6 through the reference module 8, and the echo cancellation module 6 performs echo cancellation on the first sound mixing data. The second sound mixing module 5 sends the second sound mixing data to the playing module 7. The playing module 7 converts and amplifies the second sound mixing data through a driver, and output the converted and amplified data to a corresponding loudspeaker, so that playing of the second sound mixing data is achieved.

[0068] Wherein, the Alsa Multi plug-in may convert the six-channel audio data into two-channel first sound mixing data for output through the program (1).

[0069] Similarly, the Alsa Multi plug-in may convert the eight-channel audio data into the two-channel first sound mixing data for output.

[0070] Wherein, when the playing source comprises the application of the two-channel audio, the application needs to convert the two-channel audio data into the six-channel second audio data for output. When the playing source comprises the voice assistant 1 of the two-channel audio, the voice assistant 1 needs to convert the two-channel audio data into the six-channel second audio data for output. For example, both the application and the voice assistant 1 may convert the two-channel audio data into the six-channel second audio data for output through the following codes (2).

TABLE-US-00002 pcm.output { type route slave.pcm outsideinput #output next level of devices slave.channels 6 ttable.0.0 1 ttable.1.1 1 ttable.0.2 1 ttable.1.3 1 ttable.0.4 1 ttable.1.5 1 } ( 2 )

[0071] Similarly, both the application and the voice assistant 1 may convert the two-channel audio data into the eight-channel second audio data for output.

[0072] An echo cancellation method of a multichannel sound mixing is also provided, as shown in FIG. 3, the method comprising the steps of:

[0073] Step S1, receiving first audio data, output from a voice assistant module 1, and adapted to the configuration of a loudspeaker, and receiving second audio data, output from at least one sound signal generating device 2, and adapted to the configuration of the loudspeaker;

[0074] Step S2, copying the first audio data and the second audio data respectively to obtain third audio data corresponding to the first audio data and fourth audio data corresponding to the second audio data;

[0075] Step S3, receiving the first audio data and the second audio data, and mixing and converting the first audio data and the second audio data to obtain two-channel first sound mixing data; and

[0076] receiving the third audio data and the fourth audio data, and mixing the third audio data and the fourth audio data to obtain second sound mixing data;

[0077] Step S4, performing echo cancellation according to the first sound mixing data; and

[0078] receiving and playing the second sound mixing data.

[0079] By adopting the above-mentioned method, mixed sound mixing data of the multichannel audio data is effectively obtained, and echo cancellation is achieved according to the obtained mixed sound mixing data, and thus the functional diversity and the quality of products are improved.

[0080] Furthermore, in the above-mentioned embodiment, the method further comprises a step between Step S3 and Step S3: generating reference data corresponding to the first sound mixing data, and inputting the first sound mixing data and the reference data to the echo cancellation module 6.

[0081] The reference data is timestamp information corresponding to the first sound mixing data. The timestamp information is used to provide time reference when the echo cancellation module 6 performs echo cancellation on the first sound mixing data, so that the accuracy of the echo cancellation is improved.

[0082] The above descriptions are only the preferred embodiments of the invention, not thus limiting the embodiments and scope of the invention. Those skilled in the art should be able to realize that the schemes obtained from the content of specification and drawings of the invention are within the scope of the invention.