CN111586512A - Howling prevention method, electronic device and computer readable storage medium - Google Patents
Howling prevention method, electronic device and computer readable storage medium Download PDFInfo
- Publication number
- CN111586512A CN111586512A CN202010361256.0A CN202010361256A CN111586512A CN 111586512 A CN111586512 A CN 111586512A CN 202010361256 A CN202010361256 A CN 202010361256A CN 111586512 A CN111586512 A CN 111586512A
- Authority
- CN
- China
- Prior art keywords
- electronic device
- max
- input signal
- prevention method
- howling prevention
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/08—Mouthpieces; Microphones; Attachments therefor
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10K—SOUND-PRODUCING DEVICES; METHODS OR DEVICES FOR PROTECTING AGAINST, OR FOR DAMPING, NOISE OR OTHER ACOUSTIC WAVES IN GENERAL; ACOUSTICS NOT OTHERWISE PROVIDED FOR
- G10K11/00—Methods or devices for transmitting, conducting or directing sound in general; Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
- G10K11/16—Methods or devices for protecting against, or for damping, noise or other acoustic waves in general
- G10K11/175—Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound
- G10K11/178—Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase
- G10K11/1781—Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase characterised by the analysis of input or output signals, e.g. frequency range, modes, transfer functions
- G10K11/17813—Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase characterised by the analysis of input or output signals, e.g. frequency range, modes, transfer functions characterised by the analysis of the acoustic paths, e.g. estimating, calibrating or testing of transfer functions or cross-terms
- G10K11/17819—Methods or devices for protecting against, or for damping, noise or other acoustic waves in general using interference effects; Masking sound by electro-acoustically regenerating the original acoustic waves in anti-phase characterised by the analysis of input or output signals, e.g. frequency range, modes, transfer functions characterised by the analysis of the acoustic paths, e.g. estimating, calibrating or testing of transfer functions or cross-terms between the output signals and the reference signals, e.g. to prevent howling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
- H04R3/02—Circuits for transducers, loudspeakers or microphones for preventing acoustic reaction, i.e. acoustic oscillatory feedback
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Circuit For Audible Band Transducer (AREA)
- Telephone Function (AREA)
Abstract
The invention relates to a howling prevention method, electronic equipment and a computer readable storage medium, wherein the howling prevention method comprises the following steps: s1: acquiring an input signal s (t) before entering a horn channel of first electronic equipment, wherein the input signal s (t) is sent by at least one second electronic equipment; s2: acquiring a front end signal s1(t) entering a horn of the first electronic device; s3: delaying the front end signal s1(T) for a first time T, resulting in s1 (T-T); s4: calculating the maximum value C of the correlation coefficient between s (T) and s1(T-T)max(ii) a S5: judgment CmaxAnd a size of 0.5; s6: if Cmax>0.5, filtering s (t). The method and the device are used for solving the problem that the conventional electronic equipment with the open-out function is short in distance from other electronic equipment, so that the electronic equipment can generate cyclic squeal, and the use experience of a user is improved.
Description
Technical Field
The invention belongs to the technical field of electronic communication equipment, and particularly relates to a howling prevention method, electronic equipment and a computer readable storage medium.
Background
At present, electronic devices with a play-out function, such as VR (Virtual Reality) devices with a call function, AR (Augmented Reality) devices with a call function, bracelets, watches, mobile phones, call speakers, and the like.
When at least two electronic devices (at least one of the electronic devices has a loudspeaker and has a loudspeaker opening function, the electronic device with the loudspeaker opening function is a first electronic device, and the other electronic devices are second electronic devices) carry out short-distance communication or play games in the same room, sound played by the loudspeaker of the first electronic device is transmitted to a microphone of at least one second electronic device and then is transmitted to the loudspeaker of the first electronic device through an antenna, and sound played by the loudspeaker of the first electronic device is sent to the microphone of the second electronic device again, so that circulation is achieved, circulation howling occurs, signal receiving between the electronic devices is affected, and user experience is reduced.
Disclosure of Invention
The invention provides a howling prevention method, electronic equipment and a computer-readable storage medium, which are used for solving the problem of cyclic howling between the electronic equipment caused by the fact that the existing electronic equipment with the open-out function is short-distance away from other electronic equipment, so that the use experience of a user is improved.
In order to solve the technical problems, the invention provides the following technical scheme for solving the problems:
the invention relates to a howling prevention method, which is characterized by comprising the following steps:
s1: at a first electronic device with an external playing function, acquiring an input signal s (t) before entering a loudspeaker channel of the first electronic device, wherein the input signal s (t) is sent by at least one second electronic device;
s2: acquiring a front end signal s1(t) entering a horn of the first electronic device;
s3: delaying the front end signal s1(T) for a first time T, resulting in s1 (T-T);
s4: calculating the maximum value C of the correlation coefficient between the input signals s (T) and s1(T-T)max;
S5: judgment CmaxAnd a size of 0.5;
s6: if Cmax>0.5, filtering the input signal s (t);
s61: obtaining CmaxA corresponding at least one delay time;
s62: selecting a minimum value t0 of the delay times;
s63: obtaining filter coefficients of the filter according to s (t-t0) and the input signal s (t);
s64: filtering the input signal s (t) with the filter.
The invention also relates to a howling prevention method, which is characterized by comprising the following steps:
s1: at a first electronic device with an external playing function, acquiring an input signal s (t) before entering a loudspeaker channel of the first electronic device, wherein the input signal s (t) is sent by at least one second electronic device;
s2: acquiring a front end signal s1(t) entering a horn of the first electronic device;
s3: delaying the front end signal s1(T) for a first time T, resulting in s1 (T-T);
s4: calculating the maximum value C of the correlation coefficient between the input signals s (T) and s1(T-T)max;
S5: judgment CmaxAnd a size of 0.5;
s6: if Cmax>0.5, filtering the input signal s (t);
s61: obtaining CmaxAt least one delay time corresponding to each second electronic device;
s62: selecting a minimum value t0 in each delay time;
s63: calculating a distance L between the first electronic device and at least one second electronic device according to the minimum value t 0;
s64: determining a filtering amplitude coefficient K according to the distance L, wherein the filtering amplitude coefficient K is inversely proportional to the distance L;
s65: obtaining filter coefficients of the filter according to s (t-t0) and the input signal s (t);
s66: and filtering the input signal s (t) according to the filtering amplitude coefficient K and the filter coefficient.
As the above-mentioned howling prevention method, step S63 specifically includes: the distance L is c t0/2, wherein c is the speed of sound of air; step S64 specifically includes: and the filtering amplitude coefficient K is n/L, wherein n is the attribute value of the first electronic device.
The howling prevention method further includes a volume adjusting step S7 after the step S5 and before the step S6, for adjusting the speaker volume of the first electronic device.
As the above-mentioned howling prevention method, step S7 specifically includes: s71: if Cmax>0.5 goes to S72; s72: comparison CmaxAnd a first preset value, wherein the first preset value is greater than 0.5; s73: if Cmax<A first preset value, where the loudspeaker volume of the first electronic device is not operated, and S6 is performed; otherwise, the horn tone first value of the first electronic device is lowered and returns to S1.
The howling prevention method further includes step S8: which is executed in cooperation with step S7, for determining whether to increase the speaker volume of the first electronic device that has been decreased.
As the above-mentioned howling prevention method, step S8 specifically includes: s81: acquiring a microphone signal x (t) received by a microphone of the first electronic device; s82: calculating the maximum value C1 of the correlation coefficient between the microphone signal x (t) and the input signal s (t)max(ii) a S83: if C1max>0.5, not increasing the reduced loudspeaker volume of the first electronic device, and returning to S81; s84: if C1max<0.5, increasing the reduced loudspeaker volume of the first electronic device by a second value, and returning to S81.
In the howling prevention method, the first value and the second value are the same.
The invention also relates to an electronic device comprising a loudspeaker, an antenna, a microphone and a processor for performing the anti-howling method as described above.
The invention also relates to a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the anti-howling method as described above.
Compared with the prior art, the invention has the advantages and beneficial effects that: the signal sent to the first electronic equipment by the at least second electronic equipment is automatically detected whether to have correlation with the signal played by the first electronic equipment, if yes, the signal sent to the first electronic equipment by the at least second electronic equipment is filtered through the filter, the howling influence of the first electronic equipment is reduced, and the use experience of a user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present invention or the prior art will be briefly described below, and it is obvious that the drawings described below are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic block diagram of an embodiment of a howling prevention method according to the present invention;
FIG. 2 is a flowchart illustrating an embodiment of a howling prevention method according to the present invention;
FIG. 3 is a flowchart illustrating an alternative embodiment of a howling prevention method according to the present invention;
FIG. 4 is a schematic block diagram of a howling prevention method according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating increasing the speaker volume of the first electronic device according to still another embodiment of the anti-howling method of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
When a first electronic device and at least one second electronic device which open a play-out function are in the same narrow space, for example, the first electronic device is influenced by the at least one second electronic device to generate a cyclic squeal.
Example one
Referring to fig. 1, a schematic block diagram of the howling prevention method according to the embodiment is shown, and correspondingly, fig. 2 shows a flowchart based on the schematic block diagram in fig. 1.
Referring to fig. 1, the first electronic device 100 includes a microphone 10, a speaker 20, an antenna 30, an antenna 40, and a processor 50.
Referring to fig. 2, the howling prevention method is described in detail as follows.
S1: at the first electronic device 100 with the external playing function being turned on, an input signal s (t) is obtained before entering a speaker channel of the first electronic device 100, and the input signal s (t) is sent by at least one second electronic device.
The embodiment relates to a plurality of electronic devices which are separated by a short distance or are in the same narrow space, and for convenience of description, a first electronic device which opens a play-out function is a device a, and a second electronic device is a device B and a device c.
It should be noted that: 1. a device a (mobile phone, PAD, speaker, etc.) according to this embodiment is a device having a play-out function and turning on the play-out function, and any of the devices B and c. 2. Device a, device B, device c.
The following description will take an example in which the device B affects the device a.
The signal sent by the horn of device a enters the microphone of device B, and device B sends the signal to device a in a wireless manner, and then the horn of device a sends a new signal to reenter the microphone of device B, thereby forming a howling cycle.
Note that the input signal received by the microphone of device B and emitted by device B to the front of the horn channel of device a is s (t).
S2: a front end signal s1(t) is obtained into the horn of device a.
In order to determine whether there is a signal that device a has played through its horn, it is also necessary to obtain a front-end signal s1(t) to the horn of device a.
S3: the front-end signal s1(T) is delayed for a first time T, resulting in s1 (T-T).
Since the signal from the horn of the device a is propagated to the microphone of the device B through the air and then transmitted to the front end of the horn channel of the device a through the radio, the input signal s (T) has a certain delay time compared with the front end signal s1(T), and the delayed time is denoted as a first time T in this embodiment.
To find the maximum point of correlation between the input signal s (T) and the front-end signal s1(T), the front-end signal s1(T) is delayed by a first time T to obtain the signal s1 (T-T).
After the structure and acoustic system of device a are fixed, the first time T is a fixed attribute value for device a.
The specific first time T may be adjusted according to the type of the device a, and is generally 0.1s < T <1s, and the specific value is not limited herein.
S4: calculating the maximum value C of the correlation coefficient between the input signal s (T) and the signal s1(T-T)max。
Calculation formula based on correlation coefficientObtaining the maximum value C of the correlation coefficientmax。
As above S1 to S4, the signal for determining whether there is a signal that the horn of device a has played is recorded as correlation detection 1.
S5: judgment CmaxAnd a size of 0.5.
If Cmax>0.5, indicating that there is a signal played by the device a horn, the input signal S (t) needs to be filtered out by the filtering step S6.
If Cmax<0.5 denotes noThe signal played by the horn of the presence device a or the correlation between the input signal s (T) and the signal s1(T-T) is small, and the input signal s (T) is not filtered.
S6: if Cmax>0.5, filtering the input signal s (t).
The implementation process of the specific filtering step S6 is described as follows.
S61: obtaining CmaxCorresponding delay time t 0.
Recording correlation coefficient taking maximum value CmaxIs the delay time t 0.
The signal representing s1(T-T) delayed by time T0 is most similar to the input signal s (T).
S62: the filter coefficients of the filter F are obtained from s (t-t0) and the input signal s (t).
In the present embodiment, the filter F is selected as an existing adaptive filter, such as an LMS/NLMS filter, an RLS filter, an adaptive filter based on a steepest descent algorithm, a wiener filter, or the like.
Assuming that the filter F is an LMS filter, the filter coefficients of the filter F are calculated using an existing LMS algorithm based on the reference signal s (t-t0) and the input signal s (t).
S63: the input signal s (t) is filtered by means of a filter F.
As shown in fig. 1, the howling of device a is mitigated by filtering the input signal s (t) with a filter F.
The following description will take at least one second electronic device, for example, two second electronic devices, device B and device C, as an example to influence device a.
The difference from the above is that: and acquiring the delay time.
S61: obtaining CmaxThe next two corresponding delay times.
For each of device B and device C, there is a delay time, denoted t1 and t2, respectively.
S62: the minimum of the delay times t1 and t2 is chosen, denoted t 0.
In the howling prevention method of this embodiment, there is a correlation between an input signal s (t) sent to the device a by the automatic detection device B and a signal s1(t) played by the device a before a certain time, and in the presence of the correlation, the input signal s (t) input to the horn channel of the device a is filtered to filter the signal s (t), so as to alleviate the howling of the device a.
Example two
The howling prevention method of the present embodiment is different from the first embodiment in the filtering step S6.
The following description will take an example in which the device B affects the device a.
S6: if Cmax>0.5, filtering the input signal s (t).
The implementation process of the specific filtering step S6 is described as follows.
S61: obtaining CmaxCorresponding delay time t 0.
Recording correlation coefficient taking maximum value CmaxIs the delay time t 0.
The signal representing s1(T-T) delayed by time T0 is most similar to the input signal s (T).
S62: from the delay time t0, the distance L between device a and device B is calculated.
Delay time t0 is related to the distance between device a and device B.
In the present embodiment, the distance L is c t0/2, where c is the speed of sound of air 340 m/s.
S63: the filter amplitude coefficient K of the filter F is determined from the distance L, wherein the filter amplitude coefficient K is inversely proportional to the distance L.
When the distance L is small, the influence of the device B on the device a is large, and the filter amplitude coefficient K of the filter F should be increased.
When the distance L is larger, it is described that the influence of the device B on the device a is smaller, and the filter amplitude coefficient K of the filter F can be appropriately reduced.
In the present embodiment, a1 is n/L, and n may be adjusted to different values according to different equipment products.
After the structure and acoustic system of device a are fixed, n is a fixed attribute value for device a.
S64: the filter coefficients of the filter F are obtained from s (t-t0) and the input signal s (t).
In this embodiment, the filter F may be selected as a non-adaptive filter in the prior art.
S65: and filtering the input signal s (t) according to the filtering amplitude coefficient K and the filter coefficient.
And integrating the calculated filtering amplitude coefficient K and the filter coefficient to obtain a model of a filter F, and filtering the input signal s (t) through the filter F to relieve the howling of the equipment A.
The following description will take at least one second electronic device, for example, two second electronic devices, device B and device C, as an example to influence device a.
The difference from the above is that: obtaining the delay time and obtaining the filter amplitude coefficient K.
S61: obtaining CmaxThe next two corresponding delay times.
For each of device B and device C, there is a delay time, denoted t1 and t2, respectively.
S62: the minimum of the delay times t1 and t2 is chosen, denoted t 0.
S63: from t0, the distance L between device A and device B, C is calculated.
In the howling prevention method of this embodiment, there is a correlation between an input signal s (t) sent to the device a by the automatic detection device B and a signal s1(t) played by the device a before a certain time, and in the presence of the correlation, the input signal s (t) input to the horn channel of the device a is filtered to filter the signal s (t) and alleviate the howling of the device a.
EXAMPLE III
To better suppress howling by the device a, the present embodiment relates to a howling prevention method.
Referring to fig. 3, a flowchart of the howling prevention method of the present embodiment is shown.
Performing the steps S1 to S4 as in the first embodiment, obtaining the maximum value C of the correlation coefficientmax。
In the same narrow space, there are the device a and the device B, or the device a and the device B and the device C.
In the presence of device B affecting device a,will appear Cmax>A peak value of 0.5; in the presence of device B and device C affecting device a,will appear Cmax>A peak value of 0.5.
Whether or not there are several second electronic devices affecting device a, as long as C is presentmax>0.5, the volume adjustment is to be made to device a.
I.e., if Cmax>0.5, a volume adjustment step S7 of adjusting the volume of the device a is performed after the step S5 is performed and before the step S6 is performed.
In the volume adjustment step S7, the following description will be made taking an example in which the presence of the device B affects the device a.
S71: if Cmax>0.5, proceed to S72.
If Cmax>0.5, namely, the correlation exists between the signal sent by the loudspeaker of the device a to the microphone of the device B and the signal played by the device a before t0, which indicates that the device a and the device B are close to each other, and the howling of the device a can be relieved by reducing the volume of the loudspeaker of the device a.
S72: comparison CmaxAnd a first preset value, wherein the first preset value is greater than 0.5.
The first preset value corresponds to the maximum value of the correlation coefficient between the input signal s (T) and the signal s1(T-T) calculated after the horn volume of the device a is reduced to a certain value, and the horn volume of the device a cannot be reduced continuously thereafter.
In order to suppress the howling of the device a also by the filtering step S6 after the horn volume of the device a cannot be further reduced, the first preset value of the present embodiment is set to be greater than 0.5, for example, selected to be 0.6.
This step S72 is a condition as to whether or not to continue to decrease the speaker volume of device a.
S73: if Cmax<The first preset value represents a lower limit value of the volume emitted by the loudspeaker of the device a, that is, the volume of the loudspeaker of the device a cannot be reduced from the second preset value any more, so that the volume of the loudspeaker of the device a should not be operated at this time, that is, the volume of the loudspeaker is reduced.
When the horn volume of the device a cannot be continuously lowered, the volume adjustment step S7 exits, and the process proceeds to the filtering step S6.
S74: if Cmax>And sending an instruction for reducing the volume of the horn to the device A.
And after the device A receives the volume adjusting instruction, controlling the volume of the loudspeaker of the device A to be reduced by a first value.
In this embodiment, the first value is selected to be, for example, 5 dB.
After the device a receives the volume adjustment instruction, the volume is reduced by 5dB, and then the process returns to S1 to continuously determine whether there is a signal that the speaker of the device a has played.
If C is presentmaxIs still greater than the first preset value (i.e. C)maxCertainly greater than 0.5), the volume adjustment step S7 is continued, wherein each time the volume adjustment step S7 is performed, the decrease is 5 dB.
The process is repeated until 0.5 ═ is<Cmax<When the first preset value is reached, the loudspeaker volume of the device A is stopped being adjusted.
Example four
Fig. 4 shows a schematic block diagram of the howling prevention method of the embodiment, and correspondingly, fig. 5 shows a flowchart based on the schematic block diagram in fig. 4
Referring to fig. 5, a flow chart for determining whether the second electronic device is away from device a is shown.
In this embodiment, it is determined whether the device B leaves the device a, and then it is determined whether the speaker volume of the device a that has decreased needs to be increased in step S8.
Step S8 is executed in cooperation with the volume adjustment step S7.
As shown in fig. 4, in the present embodiment, the operation performed at step S8 is referred to as correlation detection 2.
Under the condition that the volume of the loudspeaker of the equipment A is reduced, if the equipment B is detected to leave the equipment A, the volume of the loudspeaker of the equipment A is increased so as to ensure the normal work of the equipment A; and if detecting that the equipment B does not leave the equipment A, not operating the loudspeaker volume of the equipment A, and avoiding the equipment A from generating howling.
The embodiment is carried out on the basis of the second embodiment.
Specifically, referring to fig. 5, the implementation of step S8 is as follows.
S81: a microphone signal x (t) received by a microphone of device a is acquired.
The microphone signal x (t) received by the microphone of the device a includes the useful signal received by the microphone and the received signal transmitted from the device B.
S82: calculating the maximum value C1 of the correlation coefficient between the microphone signal x (t) and the input signal s (t)max。
Calculation formula based on correlation coefficientObtaining the maximum value C1 of the correlation coefficientmax。
Maximum value C1maxIndicating the most similarity between the microphone signal x (t) and the input signal s (t).
S83: if C1max>0.5, not increasing the reduced horn volume of device a, and returning to S81;
C1max>0.5, indicating that the device B has not left the device a, the lowered horn volume of the device a is not raised, and the process returns to S81 to continue to determine whether the device B has left the device a.
When the device B does not leave the device a, the input signal S (t) is directly filtered through the filtering step in the first embodiment, or the speaker volume of the device a is adjusted through the volume adjusting step S7 in the second embodiment, and when the speaker volume is adjusted to be unable to be reduced, the filtering step S6 is performed.
S84: if C1max<0.5, increase the volume of the horn of the device A by a second value and return to S81。
C1max<When the device B leaves the device a and there is an operation to lower the horn volume of the device a before, the device B outputs a command to increase the volume by the second value to the device a, indicating that the device B leaves the device a.
The second volume is set to 5dB in this embodiment.
After the device A receives the instruction of increasing the horn volume by 5dB, the device A returns to S81 to S82 and continues to calculate C1max。
If C1maxStill less than 0.5, the horn volume of device a continues to be increased by 5 dB.
This is repeated until the horn volume of device a reaches an initial value (at which time it is detected that device B has left device a), or until C1max>0.5, at which time the horn volume stops increasing.
In the same narrow space, there are the device a and the device B, or the device a and the device B and the device C.
In the presence of device B affecting device a,c1 will appearmax>A peak value of 0.5; in the presence of device B and device C affecting device a,c1 will appearmax>A peak value of 0.5.
Whether there are several second electronic devices affecting device A, as long as C1max>0.5, the reduced horn volume of device a is not increased. Only C1max<0.5, the reduced horn volume of device a would be increased.
The specific process of increasing the volume is referred to as the step S8, which is not described herein.
EXAMPLE five
Referring to fig. 1 and 4, the present embodiment also relates to an electronic device 100 including a microphone 10, a speaker 20, an antenna 30, an antenna 40, and a processor 50.
The processor 50 of this embodiment adopts a microprocessor for executing the howling prevention method, which is the howling prevention method described above, and the specific execution process takes part in the contents described in embodiments one to three, which are not described herein again.
EXAMPLE six
The present embodiment also provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the howling prevention method as described above.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment.
It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned howling prevention method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the above-mentioned howling prevention method.
The computer program includes computer code that may be in the form of source code, object code, an executable file or some intermediate form, and the like.
The computer-readable storage medium may include: any entity or device capable of carrying the computer code, recording media, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A howling prevention method, comprising:
s1: at a first electronic device with an external playing function, acquiring an input signal s (t) before entering a loudspeaker channel of the first electronic device, wherein the input signal s (t) is sent by at least one second electronic device;
s2: acquiring a front end signal s1(t) entering a horn of the first electronic device;
s3: delaying the front end signal s1(T) for a first time T, resulting in s1 (T-T);
s4: calculating the maximum value C of the correlation coefficient between the input signals s (T) and s1(T-T)max;
S5: judgment CmaxAnd a size of 0.5;
s6: if Cmax>0.5, filtering the input signal s (t);
s61: obtaining CmaxA corresponding at least one delay time;
s62: selecting a minimum value t0 in each delay time;
s63: obtaining filter coefficients of the filter according to s (t-t0) and the input signal s (t);
s64: filtering the input signal s (t) with the filter.
2. A howling prevention method, comprising:
s1: at a first electronic device with an external playing function, acquiring an input signal s (t) before entering a loudspeaker channel of the first electronic device, wherein the input signal s (t) is sent by at least one second electronic device;
s2: acquiring a front end signal s1(t) entering a horn of the first electronic device;
s3: delaying the front end signal s1(T) for a first time T, resulting in s1 (T-T);
s4: calculating the maximum value C of the correlation coefficient between the input signals s (T) and s1(T-T)max;
S5: judgment CmaxAnd a size of 0.5;
s6: if Cmax>0.5, filtering the input signal s (t);
s61: obtaining CmaxAt least one delay time corresponding to each second electronic device;
s62: selecting a minimum value t0 in each delay time;
s63: calculating a distance L between the first electronic device and at least one second electronic device according to the minimum value t 0;
s64: determining a filtering amplitude coefficient K according to the distance L, wherein the filtering amplitude coefficient K is inversely proportional to the distance L;
s65: obtaining filter coefficients of the filter according to s (t-t0) and the input signal s (t);
s66: and filtering the input signal s (t) according to the filtering amplitude coefficient K and the filter coefficient.
3. The howling prevention method according to claim 2,
step S63 specifically includes:
the distance L = c t0/2, where c is the speed of sound of air;
step S64 specifically includes:
the filter amplitude coefficient K = n/L, wherein n is an attribute value of the first electronic device.
4. The howling prevention method as claimed in claim 1 or 2, further comprising a volume adjusting step S7 after step S5 and before step S6 for adjusting a speaker volume of the first electronic device.
5. The howling prevention method according to claim 4, wherein the step S7 is specifically as follows:
s71: if Cmax>0.5, go to S72;
s72: comparison CmaxAnd a first preset value, wherein the first preset value is greater than 0.5;
s73: if Cmax<A first preset value, where the loudspeaker volume of the first electronic device is not operated, and S6 is performed;
otherwise, the horn tone first value of the first electronic device is lowered and returns to S1.
6. The howling prevention method as claimed in claim 5, wherein the howling prevention method further comprises step S8: which is executed in cooperation with step S7, for determining whether to increase the speaker volume of the first electronic device that has been decreased.
7. The howling prevention method according to claim 6, wherein the step S8 is specifically as follows:
s81: acquiring a microphone signal x (t) received by a microphone of the first electronic device;
s82: calculating the maximum value C1 of the correlation coefficient between the microphone signal x (t) and the input signal s (t)max;
S83: if C1max>0.5, not increasing the reduced loudspeaker volume of the first electronic device, and returning to S81;
s84: if C1max<0.5, increasing the reduced loudspeaker volume of the first electronic device by a second value, and returning to S81.
8. The howling prevention method of claim 7, wherein the first value and the second value are the same.
9. An electronic device comprising a speaker, an antenna, and a microphone; characterized in that, the electronic equipment still includes:
a processor for performing the anti-howling method of any one of claims 1 to 8.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out a howling prevention method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010361256.0A CN111586512B (en) | 2020-04-30 | 2020-04-30 | Howling prevention method, electronic device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010361256.0A CN111586512B (en) | 2020-04-30 | 2020-04-30 | Howling prevention method, electronic device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111586512A true CN111586512A (en) | 2020-08-25 |
CN111586512B CN111586512B (en) | 2022-01-04 |
Family
ID=72111998
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010361256.0A Active CN111586512B (en) | 2020-04-30 | 2020-04-30 | Howling prevention method, electronic device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111586512B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024093307A1 (en) * | 2022-11-04 | 2024-05-10 | 恒玄科技(上海)股份有限公司 | Audio processing method and apparatus, electronic device, and computer-readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050038838A1 (en) * | 2003-08-12 | 2005-02-17 | Stefan Gustavsson | Electronic devices, methods, and computer program products for detecting noise in a signal based on autocorrelation coefficient gradients |
CN104506746A (en) * | 2015-01-20 | 2015-04-08 | 西南交通大学 | Improved convex combination decorrelation proportionate self-adaption echo cancellation method |
CN106162482A (en) * | 2015-04-10 | 2016-11-23 | 中国科学院声学研究所 | A kind of loudspeaker array sound reinforcement system uttered long and high-pitched sounds for suppression and method |
CN110267160A (en) * | 2019-05-31 | 2019-09-20 | 潍坊歌尔电子有限公司 | Audio signal processing method, device and equipment |
-
2020
- 2020-04-30 CN CN202010361256.0A patent/CN111586512B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050038838A1 (en) * | 2003-08-12 | 2005-02-17 | Stefan Gustavsson | Electronic devices, methods, and computer program products for detecting noise in a signal based on autocorrelation coefficient gradients |
CN104506746A (en) * | 2015-01-20 | 2015-04-08 | 西南交通大学 | Improved convex combination decorrelation proportionate self-adaption echo cancellation method |
CN106162482A (en) * | 2015-04-10 | 2016-11-23 | 中国科学院声学研究所 | A kind of loudspeaker array sound reinforcement system uttered long and high-pitched sounds for suppression and method |
CN110267160A (en) * | 2019-05-31 | 2019-09-20 | 潍坊歌尔电子有限公司 | Audio signal processing method, device and equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024093307A1 (en) * | 2022-11-04 | 2024-05-10 | 恒玄科技(上海)股份有限公司 | Audio processing method and apparatus, electronic device, and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111586512B (en) | 2022-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9818425B1 (en) | Parallel output paths for acoustic echo cancellation | |
US9870783B2 (en) | Audio signal processing | |
CN110970057B (en) | Sound processing method, device and equipment | |
CN108476256A (en) | A kind of volume adjusting method and terminal | |
CN104050971A (en) | Acoustic echo mitigating apparatus and method, audio processing apparatus, and voice communication terminal | |
CN110996203B (en) | Earphone noise reduction method, device and system and wireless earphone | |
WO2020097828A1 (en) | Echo cancellation method, delay estimation method, echo cancellation apparatus, delay estimation apparatus, storage medium, and device | |
WO2021189309A1 (en) | Method and system for active noise reduction, electronic device, and chip | |
CN102624961A (en) | Method and terminal for preventing sound crosstalk between external loudspeaker and microphone | |
WO2023284402A1 (en) | Audio signal processing method, system, and apparatus, electronic device, and storage medium | |
CN107979790A (en) | One kind call noise-reduction method, device, equipment and medium | |
CN110225429A (en) | Active denoising method, device and earphone | |
KR102607120B1 (en) | Sound data noise canceling method and apparatus, electronic device , computer readable storage medium and computer program | |
CN111586512B (en) | Howling prevention method, electronic device and computer readable storage medium | |
CN113241085A (en) | Echo cancellation method, device, equipment and readable storage medium | |
CN112037810A (en) | Echo processing method, device, medium and computing equipment | |
EP3809601B1 (en) | Echo suppression device, echo suppression method, and echo suppression program | |
CN108510997A (en) | Electronic equipment and echo cancel method applied to electronic equipment | |
CN113038318B (en) | Voice signal processing method and device | |
CN112312255A (en) | Intelligent voice-reducing earphone and noise reduction algorithm based on audio decoder | |
WO2023197474A1 (en) | Method for determining parameter corresponding to earphone mode, and earphone, terminal and system | |
CN113038340B (en) | Acoustic echo elimination and tuning method, system and storage medium based on android device | |
CN107533849A (en) | The audio signal processor of input earpiece audio signal is handled based on microphone audio signal | |
EP4021008B1 (en) | Voice signal processing method and device | |
CN102655558A (en) | Double-end pronouncing robust structure and acoustic echo cancellation method |
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 |