CN113824838B - Sounding control method and device, electronic equipment and storage medium - Google Patents

Sounding control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113824838B
CN113824838B CN202110990921.7A CN202110990921A CN113824838B CN 113824838 B CN113824838 B CN 113824838B CN 202110990921 A CN202110990921 A CN 202110990921A CN 113824838 B CN113824838 B CN 113824838B
Authority
CN
China
Prior art keywords
sound
loudness
signal
difference value
difference
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
CN202110990921.7A
Other languages
Chinese (zh)
Other versions
CN113824838A (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.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications 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 Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN202110990921.7A priority Critical patent/CN113824838B/en
Publication of CN113824838A publication Critical patent/CN113824838A/en
Application granted granted Critical
Publication of CN113824838B publication Critical patent/CN113824838B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • 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)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Environmental & Geological Engineering (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the application provides a sounding control method, a sounding control device, electronic equipment and a storage medium. The method comprises the following steps: acquiring the loudness of a sound signal played by a sound generating component in electronic equipment; acquiring the loudness of an environmental noise signal acquired by a designated microphone of the electronic equipment; detecting whether a sound leakage event occurs based on the loudness of the sound signal and the loudness of the environmental noise signal, wherein the sound leakage event refers to an event that the leakage amount of the sound signal meets a preset condition; if a sound leakage event occurs, sound production parameters of the sound production component are adjusted, and the sound production parameters are used for controlling the loudness of sound signals. The technical scheme that this embodiment provided provides a scheme of automated inspection sound leakage incident for electronic equipment can feel the sound leakage incident, later adjusts the sounding parameter of sounding part through in time, so that sound signal no longer takes place to reveal, effectively protects user privacy.

Description

Sounding control method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of sound technologies, and in particular, to a sound production control method, a sound production control device, an electronic device, and a storage medium.
Background
At present, the Bluetooth technology is widely applied, and after the Bluetooth connection is established between the wireless earphone and the mobile terminal, call audio or media audio sent by the mobile terminal can be played.
In the related art, when a wireless earphone is worn by a user and is used for playing the call audio or the media audio, if the loudness of the played sound signal is large, a sound leakage event may occur, and at this time, people around the user can also hear the sound signal played by the wireless earphone.
Disclosure of Invention
The embodiment of the application provides a sounding control method, a sounding control device, electronic equipment and a storage medium.
In a first aspect, some embodiments of the present application provide a sounding control method, where the method is applied to an electronic device, the method includes: acquiring the loudness of a sound signal played by a sound generating component in electronic equipment; acquiring the loudness of an environmental noise signal acquired by a designated microphone of the electronic equipment; detecting whether a sound leakage event occurs based on the loudness of the sound signal and the loudness of the environmental noise signal, wherein the sound leakage event refers to an event that the leakage amount of the sound signal meets a preset condition; if a sound leakage event occurs, sound production parameters of the sound production component are adjusted, and the sound production parameters are used for controlling the loudness of sound signals.
In a second aspect, some embodiments of the present application provide a sound emission control device, the device including: the first acquisition module is used for acquiring the loudness of a sound signal played by a sound generating component in the electronic equipment; a second acquisition module, configured to acquire a loudness of an environmental noise signal acquired by a designated microphone of the electronic device; the event detection module is used for detecting whether a sound leakage event occurs or not based on the loudness of the sound signal and the loudness of the environment noise signal, wherein the sound leakage event refers to an event that the leakage amount of the sound signal meets a preset condition; and the parameter adjustment module is used for adjusting the sounding parameters of the sounding component if the sound leakage event occurs, and the sounding parameters are used for controlling the loudness of the sound signal.
In a third aspect, some embodiments of the present application provide an electronic device comprising a processor and a memory storing computer program instructions that are invoked by the processor to perform a method as in the first aspect described above. In some embodiments, the electronic device is a mobile terminal. In other embodiments, the electronic device is a wireless headset.
In a fourth aspect, some embodiments of the present application provide a computer readable storage medium having program code stored therein, the program code being invoked by a processor to perform a method as described above in the first aspect.
In a fifth aspect, some embodiments of the present application provide a computer program product for implementing a method as in the first aspect described above when the computer program product is executed.
The embodiment of the application provides a sounding control method, a sounding control device, electronic equipment and a storage medium, when a sounding component of the electronic equipment sends a sound signal, whether a sounding sound leakage event occurs or not is detected through the loudness of the sound signal and the loudness of an environmental noise signal collected by a designated microphone in the electronic equipment, and if the sound leakage event occurs, sounding parameters of the sounding component are adjusted to reduce the loudness of the sound signal until the sound leakage event does not occur any more; the technical scheme that this embodiment provided provides a scheme of automated inspection sound leakage incident for electronic equipment can feel the sound leakage incident, later adjusts the sounding parameter of sounding part through in time, so that sound signal no longer takes place to reveal, effectively protects user privacy.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario provided in one embodiment of the present application;
fig. 2 is a schematic diagram of an application scenario provided in another embodiment of the present application;
FIG. 3 is a flow chart of a sound emission control method provided by one embodiment of the present application;
FIG. 4 is a block diagram of an electronic device according to one embodiment of the present application;
FIG. 5 is a schematic illustration of an experimental environment provided by one embodiment of the present application;
FIG. 6 is a block diagram of a sound production control device provided in one embodiment of the present application;
FIG. 7 is a block diagram of an electronic device provided in one embodiment of the present application;
fig. 8 is a block diagram of a computer-readable storage medium provided in one embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In order to better understand the solution of the present application, the following description will make clear and complete descriptions of the technical solution of the embodiment of the present application with reference to the accompanying drawings in the embodiment of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In the related art, when a user wears the wireless earphone, a sound leakage event cannot be perceived, and adjustment measures cannot be made for the sound leakage event, so that privacy of the user is damaged.
Based on this, the embodiment of the present application provides a sounding control method, when a sounding component of an electronic device sends a sound signal, detecting whether a sounding sound leakage event occurs through the loudness of the sound signal and the loudness of an environmental noise signal collected by a designated microphone in the electronic device, and if the sounding sound leakage event occurs, adjusting sounding parameters of the sounding component to reduce the loudness of the sound signal until the sounding sound leakage event does not occur any more; the technical scheme that this embodiment provided provides a scheme of automated inspection sound leakage incident for electronic equipment can feel the sound leakage incident, later adjusts the sounding parameter of sounding part through in time, so that sound signal no longer takes place to reveal, effectively protects user privacy.
According to the technical scheme provided by the embodiment of the application, the execution main body of each step is electronic equipment, and the electronic equipment comprises an electroacoustic transducer device, namely an electronic device for converting an electric signal into a sound signal, such as a loudspeaker. In some embodiments, the electronic device further comprises an acousto-electric transducer device, i.e. an electronic device, such as a microphone, that converts an acoustic signal into an electrical signal. The number and the positions of the electroacoustic transducer devices and the electroacoustic transducer devices in the electronic equipment are not limited. In this embodiment of the present application, the electronic device further has a sound leakage event detection function, that is, based on the loudness of the sound signal sent by the electroacoustic transducer and the intensity of the environmental noise signal collected by the electroacoustic transducer, whether a sound leakage event occurs is detected.
In an embodiment, the electronic device is a wireless earphone, the wireless earphone includes a speaker unit and a microphone, the speaker unit is disposed in a sound pickup hole of the wireless earphone, the microphone is disposed on an outer side of the wireless earphone (such as a side of the wireless earphone facing away from an ear canal of a user), and when the user wears the wireless earphone, a sound pickup hole of the microphone faces an outer side of the ear canal to facilitate picking up sound signals. Referring to fig. 1, an application scenario provided in one embodiment of the present application is shown. The user wears the wireless earphone 11, the wireless earphone 11 establishes communication connection with the mobile terminal 12, and plays the media audio or the call audio sent by the mobile terminal 12, at this time, whether a sound leakage event occurs needs to be detected, and if the sound leakage event occurs, the loudness of the sound signal sent by the speaker unit needs to be reduced.
In another embodiment, the electronic device is a mobile terminal 21, the mobile terminal 21 includes a speaker and a microphone, the speaker may be disposed at a top end, a bottom end, and a back plate of the mobile terminal, and the microphone is disposed at a bottom end of the mobile terminal. Referring to fig. 2, an application scenario provided in one embodiment of the present application is shown. The mobile terminal 21 plays the call audio, and the user places the mobile terminal 21 beside the ear to make a call with other people, at this time, it is necessary to detect whether a sound leakage event occurs, and if the sound leakage event occurs, it is necessary to reduce the loudness of the sound signal emitted from the speaker.
As shown in fig. 3, the embodiment of the present application further provides a sound emission control method, which includes the following steps (steps 301-304).
Step 301, obtaining the loudness of a sound signal played by a sound generating component in an electronic device.
The electronic device may be a mobile terminal or a wireless headset. When the electronic device is a mobile terminal, the sound generating component of the electronic device is a speaker component, which can be arranged at the top end of the mobile terminal, or can be arranged at the bottom end of the mobile terminal, or can be arranged at the back of the mobile terminal. When the electronic equipment is a wireless earphone, the sounding component in the electronic equipment is a loudspeaker unit, and the loudspeaker unit is arranged at the earplug part of the wireless earphone.
Loudness, i.e. volume, describes the degree of ringing of a sound, representing the subjective perception of the sound by the human ear, in units of measure of Song, defining 1kHz, and loudness of pure tone at a sound pressure level of 40dB of 1 Song.
In some embodiments, the loudness of the sound signal is determined by the volume level and the loudness of the source signal. The volume level is positively correlated with the loudness of the sound signal, i.e. the higher the volume level, the higher the loudness of the sound signal, and the lower the volume level, the lower the loudness of the sound signal. The loudness of the sound source signal and the loudness of the sound signal also have a positive correlation, that is, the higher the loudness of the sound source signal, the higher the loudness of the sound signal, and the lower the loudness of the sound source signal. The loudness of the sound signal is set to be S, the volume level to be L, the loudness of the sound source signal to be M, and the loudness of the sound signal S to be expressed by the following formula.
S=m(L+M)。
Wherein m is a preset coefficient. Since M is a preset coefficient, is a fixed value, in the following embodiment, the loudness of a sound signal is represented by (l+m).
In other embodiments, the electronic device further includes an automatic gain circuit (Automatic Gain Control, AGC), which is an automatic control circuit that causes the gain of the amplifying circuit to automatically adjust with the signal strength. The first end of the AGC circuit is electrically connected with the appointed microphone, and the second end of the AGC circuit is electrically connected with the sounding component. Optionally, the electronic device further comprises a digital-to-analog conversion circuit (Digital Analog Converter, DAC) and an analog-to-digital conversion circuit (Analog Digital Converter, ADC), wherein the DAC circuit is disposed between the AGC circuit and the sound emitting component and the ADC circuit is disposed between the AGC circuit and the designated microphone. Optionally, the AGC circuit is disposed inside the DSP circuit.
Referring to fig. 4, the electronic apparatus further includes a DSP circuit 41, a DAC circuit 44, and an ADC circuit 45, the DSP circuit 41 includes an AGC411, the DAC circuit 44 is disposed between the DSP circuit 41 and the sound emitting part 43 (i.e., S), and the ADC circuit 45 is disposed between the AGC circuit and the designated microphone 42.
In this embodiment, the loudness of the sound signal is determined by the volume level, the loudness of the sound source signal, and the gain value of the AGC circuit. When the input signal is small, the AGC circuit is not active, and only after the input signal is increased to a certain extent, the AGC circuit is controlled to reduce the gain along with the increase of the input signal. The gain value of the AGC circuit and the loudness of the sound signal are in positive correlation, namely, the larger the gain value of the AGC circuit is, the higher the loudness of the sound signal is, the smaller the gain value of the AGC circuit is, and the lower the loudness of the sound signal is. The loudness of the sound signal is set to be S, the volume level is L, the loudness of the sound source signal is M, the gain value of the AGC circuit is G, and the loudness of the sound signal S can be expressed by the following formula.
S=b(L+M+G)。
Wherein b is a preset coefficient. Since b is a preset coefficient, is a fixed value, in the following embodiment, the loudness of the sound signal is represented by (l+m+g).
In some embodiments, when the electronic device is a mobile terminal, step 301 is implemented as: the method comprises the steps of obtaining the loudness of sound signals played by a designated sound generating component in the electronic equipment, wherein the designated sound generating component is a loudspeaker assembly arranged at the top end of the mobile terminal. When the appointed sounding component works, the mobile terminal is in a call state, the requirement of preventing sound leakage exists, and the mobile terminal executes a subsequent detection step of a sound leakage event at the moment so as to avoid the leakage of call audio.
Step 302, the loudness of an ambient noise signal acquired by a designated microphone of an electronic device is obtained.
When the electronic device is a mobile terminal, the microphone is designated as a noise reduction microphone, which can be arranged at the bottom end of the mobile terminal and can also be arranged at the back of the mobile terminal. When the electronic device is a wireless earphone, the appointed microphone is arranged on the outer side of the wireless earphone (such as one side of the wireless earphone, which is away from the auditory canal of the user), and when the user wears the wireless earphone, the pickup port of the microphone faces the outer part of the auditory canal, so that the environment noise signal is facilitated. The electronic device obtains the loudness of the environmental noise signals collected by the designated microphone through a noise estimation method. Noise estimation methods include, but are not limited to: a noise estimation algorithm based on minimum statistics, a recursive average algorithm based on minimum statistics control, an adaptive continuous noise spectrum estimation method, etc.
Step 303, detecting whether a sound leakage event has occurred based on the loudness of the sound signal and the loudness of the ambient noise signal.
The sound leakage event refers to an event in which the leakage amount of the sound signal satisfies a preset condition. The leakage amount of the sound signal refers to the loudness of the sound signal collected by the specified microphone.
The preset conditions are set according to experiments or experience. In some embodiments, the preset condition is that the loudness of the leakage amount of the sound signal is greater than the loudness of the environmental noise signal, in which case, other users can also hear the sound signal played by the sound emitting component of the electronic device, so as to cause privacy leakage. In other embodiments, the preset condition refers to that the loudness of the leakage amount of the sound signal is greater than a preset loudness, where the preset loudness is set according to experiments or experience, which is not limited in the embodiments of the present application.
The judgment condition for the electronic device to judge whether or not the sound leakage event occurs may be determined in a laboratory environment. Referring to fig. 5, a schematic diagram of an experimental environment provided in an embodiment of the present application is shown, where the experimental environment includes: artificial ear 51, electronic device 52, test microphone mic1, sound 53. Wherein the electronic device 52 comprises a speaker and a microphone, the speaker in the electronic device 52 is denoted S and the microphone is denoted mic2.
The distance between the artificial ear 51 and the test microphone mic1 is determined according to reality, and in one example, the distance between the artificial ear 51 and the test microphone mic1 is approximately 50 cm. The sound 53 is used for simulating an ambient noise signal, and is provided on the right side of the test microphone mic 1. The experimenter sets up to play the first test sound signal S through the speaker S in the electronic device 52 0 Second test sound signal s 1 The sound 53 plays the ambient noise signal N. First test sound signal s 0 And a second test sound signal s 1 May be the same or different.
The test system records a first test sound signal s collected by a microphone mic2 of the electronic device 0 Is equal to the loudness s of the first test sound signal acquired by the test microphone mic1 0 Difference betweenAs a first difference. That is, the first difference value X is expressed by the following first formula: x=mic2 (s 0 )-mic1(s 0 ) I.e., x=mic2 (S) -mic1 (S).
The test system records the difference between the loudness of the test noise signal N collected by the test microphone mic1 and the loudness of the test noise signal N collected by the microphone mic1 of the electronic device 52 as a second difference. That is, the second difference Y is expressed by the following second formula: y=mic1 (N) -mic2 (N).
The test system records a second test sound signal s 1 And a second test sound signal s picked up by the microphone mic2 of the electronic device 52 1 As a third difference value. The third difference a is represented by the following third formula: a=s 1 -mic2(s 1 ) I.e., a=s-mic 2 (S).
In the laboratory environment, if it is determined that no sound leakage event occurs, the environmental noise signal mic1 (N) collected by the test microphone mic1 needs to be greater than the collected test sound signal mic1 (S). That is, mic1 (S) <=mic1 (N) (fourth formula).
However, according to the first formula, mic1 (S) =mic2 (S) -X (fifth formula) is available.
From the second formula: mic1 (N) =mic2 (N) +y (sixth formula).
Combining the fourth, fifth and sixth formulas can result in:
mic2 (S) -X < = mic2 (N) +y, i.e. mic2 (S) < = mic2 (N) +y+x (seventh formula).
Further, according to the third formulse:Sup>A, mic2 (S) =s-se:Sup>A (eighth formulse:Sup>A).
The seventh and eighth formulas can be obtained: S-se:Sup>A < = mic2 (N) +y+x, S < = mic2 (N) +y+x+se:Sup>A (ninth formulse:Sup>A).
When S is represented by (l+m), i.e., (l+m) <=mic2 (N) +y+x+a. In this case, it is determined that the sound safety condition, which is a condition to be satisfied without occurrence of a sound leakage event, is satisfied. Conversely, if (l+m) > mic2 (N) +y+x+a, the occurrence of a sound leakage event is described.
When S is represented by (l+m+g), i.e., (l+m+g) <=mic2 (N) +y+x+a. In this case, it is determined that the sound safety condition is satisfied, whereas if (l+m+g) > mic2 (N) +y+x+a), the occurrence of the sound leakage event is described.
In combination with the judgment conditions of the sound leakage event determined in the laboratory environment, the electronic device detects whether the sound leakage event occurs through the following steps.
In step 303a, a first difference value, a second difference value, and a third difference value are obtained.
The first difference is a difference between a loudness of a first test sound signal collected by a designated microphone of the electronic device and a loudness of the first test sound signal collected by the test microphone, the first test sound signal being emitted by a sound emitting component of the electronic device. The second difference is the difference between the loudness of the test noise signal collected by the test microphone and the loudness of the test noise signal collected by the designated microphone of the electronic device. The third difference is a difference between the loudness of the second test sound signal and the loudness of the second test sound signal collected by the designated microphone of the electronic device, where the second test sound signal is emitted by the sound emitting component of the electronic device.
The process of obtaining the first difference, the second difference, and the third difference refers to the above embodiment.
In step 303b, if the loudness of the sound signal is greater than the sum of the loudness of the ambient noise signal, the first difference, the second difference, and the third difference, then it is determined that the sound leakage event occurs.
When S is represented by (l+m), if (l+m) <=mic2 (N) +x+y+a), it is indicated that no sound leakage event occurs; if (l+m) > mic2 (N) +x+y+a, the occurrence of a sound leakage event is described.
When S is represented by (l+m+g), if (l+m+g) <=mic2 (N) +x+y+a, it is indicated that no sound leakage event occurs; conversely, if (l+m+g) > mic2 (N) +x+y+a, the occurrence of a sound leakage event is described.
Step 304, if a sound leakage event occurs, adjusting sound parameters of the sound emitting component, wherein the sound parameters are used for controlling the loudness of the sound signal.
After the sound leakage event is determined, the electronic equipment automatically adjusts sound emission parameters of the sound emission component, wherein the sound emission parameters comprise volume level and/or gain value of the AGC circuit so as to reduce loudness of sound signals, so that the sound signals are not leaked any more, and user privacy can be effectively protected.
The embodiment of the application provides a sounding control method, when a sounding component of electronic equipment sends a sound signal, whether a sounding sound leakage event occurs is detected through the loudness of the sound signal and the loudness of an environmental noise signal collected by a designated microphone in the electronic equipment, and if the sound leakage event occurs, sounding parameters of the sounding component are adjusted to reduce the loudness of the sound signal until the sound leakage event does not occur any more; the technical scheme that this embodiment provided provides a scheme of automated inspection sound leakage incident for electronic equipment can feel the sound leakage incident, later adjusts the sounding parameter of sounding part through in time, so that sound signal no longer takes place to reveal, effectively protects user privacy.
In a first implementation, the sound emission parameters of the sound emission component include a volume level, and the electronic device adjusts the loudness of the sound signal by adjusting the volume level. Such an implementation is described below.
In some embodiments, adjusting the volume level specifically includes the following steps (steps 401-403).
In step 401, if a sound leakage event is sent, a prompt message is sent.
The prompt information is used for prompting the occurrence of the sound leakage event. When the electronic device is a mobile terminal, the prompt information can be at least one of a voice prompt mode, a text prompt mode and a flashing prompt mode. When the electronic device is a wireless earphone, the prompt information can be at least one of a voice prompt mode and a flickering prompt mode.
In one example, the wireless headset emits a "sound leak, please handle in time" to prompt the user.
In another example, the mobile terminal displays a floating window that includes the prompt "sound leakage, please handle in time".
In step 402, a first adjustment amount of a volume level is obtained in response to an adjustment signal for the volume level.
The adjustment signal for the volume level is used to adjust the volume level. When the electronic device detects a sound leakage event, the loudness of the sound signal needs to be reduced, and thus the volume level needs to be reduced, i.e. in the embodiment of the present application, the adjustment signal for the volume level is used to reduce the volume level.
When the electronic equipment is a mobile terminal, a volume adjusting button is arranged on a side frame of the mobile terminal, and when the electronic equipment receives a pressing operation for the volume adjusting button, the mobile terminal receives an adjusting signal for the volume level. Specifically, the volume adjustment button includes a decrease button, and when the mobile terminal receives a pressing operation for the decrease button, an adjustment signal for decreasing the volume level is received.
In some embodiments, the first adjustment amount of the volume level is in positive correlation with the number of operations of the pressing operation, that is, the greater the number of operations of the pressing operation, the greater the first adjustment amount of the volume level, and the lesser the number of operations of the pressing operation, the smaller the first adjustment amount of the volume level. Optionally, a first mapping relationship exists between a first adjustment amount of the volume level and the operation times of the pressing signal, after receiving the pressing operation, the mobile terminal obtains the operation times of the pressing operation, and then determines the first adjustment amount of the volume level based on the first mapping relationship. The first mapping relation may be a functional relation, or may be a correspondence relation between different operation times and different adjustment amounts.
In other embodiments, the first adjustment amount of the volume level is in positive correlation with the operation duration of the pressing operation, that is, the longer the operation duration of the pressing operation is, the larger the first adjustment amount of the volume level is, the shorter the operation duration of the pressing operation is, and the smaller the first adjustment amount of the volume level is. Optionally, a second mapping relationship exists between the first adjustment amount of the volume level and the operation time of the pressing signal, after receiving the pressing operation, the mobile terminal obtains the operation times of the pressing operation, and then determines the first adjustment amount of the volume level based on the second mapping relationship. The second mapping relation can be a functional relation, or can be a corresponding relation between different operation time lengths and different adjustment amounts.
When the electronic equipment is a wireless earphone, a volume adjusting button is arranged at the ear handle part of the wireless earphone, and when a pressing signal aiming at the volume adjusting button is received, the wireless earphone receives an adjusting signal aiming at the volume level. Specifically, the volume adjustment button includes a decrease button, and when the wireless headset receives a pressing operation for the decrease button, an adjustment signal for decreasing the volume level is received. In other possible implementations, the wireless headset receives an adjustment signal for the volume level sent by the mobile terminal, the adjustment signal carrying the first adjustment amount. Wherein a communication connection, such as a bluetooth connection, is established between the wireless headset and the mobile terminal.
Step 403, adjusting the volume level according to the first adjustment amount of the volume level.
In some embodiments, the electronic device subtracts the first adjustment amount from the original volume level to obtain an adjusted volume level, and then adjusts the volume level to the adjusted volume level. Illustratively, the original volume level is 36, the first adjustment of the volume level is 10, the adjusted volume level is 26, and the electronic device adjusts the volume level to 26.
In other embodiments, adjusting the volume level specifically includes steps 404-406 as follows.
Step 404, obtaining a leakage level of the sound leakage event.
The leak rating is used to characterize the severity of the acoustic leak event. In some embodiments, the leakage level is determined based on the interval to which the fourth difference value belongs. The fourth difference is the sum of the loudness of the sound signal and the loudness of the ambient noise signal, the first difference, the second difference and the third difference.
When S is expressed as (l+m), the fourth difference Z is expressed by the following formula.
Z=(L+M)-(mic2(N)+X+Y+A)。
The greater the value of Z, the greater the severity of the sound leakage event; the greater the value of Z, the lower the severity of the sound leakage event. In some embodiments, the electronic device sets a third mapping relationship between the value interval of Z and the leakage level, and determines the leakage level based on the third mapping relationship after calculating Z.
Step 405, determining a second adjustment amount of the volume level based on the leakage level of the sound leakage event.
The leakage level and the second adjustment amount are in positive correlation. The higher the leak level, the larger the second adjustment amount, and the lower the leak level, the smaller the second adjustment amount. In some embodiments, the electronic device presets a fourth mapping relationship between the leakage level and the volume level, and determines the second adjustment amount based on the fourth mapping relationship after determining the leakage level.
Step 406, adjusting the volume level according to the second adjustment amount of the volume level.
In some embodiments, the electronic device subtracts the first adjustment amount from the original volume level to obtain an adjusted volume level, and then adjusts the volume level to the adjusted volume level.
In other embodiments, the adjustment of the volume level specifically includes the following steps (steps 407-409).
Step 407, obtaining loudness, first difference, second difference and third difference of the sound source signal of the sound signal.
Step 408, determining a target volume level based on the sound safety condition, the loudness of the sound source signal, the first difference, the second difference, and the third difference.
The sound safety condition is used to characterize the condition satisfied by the absence of a sound leakage event. When S is represented by (l+m), if (l+m) <=mic2 (N) +x+y+a), it is indicated that no sound leakage event occurs.
In some embodiments, the electronic device determines a difference between a sum of the loudness of the ambient noise signal, the first difference, the second difference, and the third difference, and the loudness of the sound source signal, as the target volume level, without occurrence of the sound leakage event. I.e., L < = mic2 (N) +x+y+a-M), the electronic device determines any volume level satisfying the above formula as the target volume level.
In some embodiments, the method F of adjusting the volume level provided by steps 407-409 may be expressed as the following formula.
Figure BDA0003232386780000111
That is, when l+m is equal to or less than mic2 (N) +y+x+a, the volume level L is unchanged, the original user setting value is maintained, and when l+m > mic2 (N) +y+x+a, the volume level L is adjusted to l=mic 2 (N) +y+x+a-M.
Step 409, the volume level is adjusted to the target volume level.
The electronic device adjusts the volume level to a target volume level.
The embodiment of the application provides a sounding control method, after a sound leakage event is determined, the volume level of a sounding component is adjusted to reduce the loudness of a sound signal, so that the sound signal is not leaked any more, and the privacy of a user is effectively protected.
In a second implementation, the sounding parameters of the sounding component include a gain value of the AGC circuit, and the electronic device adjusts the loudness of the sound signal by adjusting the gain value. Such an implementation is described below.
In some embodiments, adjusting the gain value of the AGC circuit specifically includes the following steps (steps 501-503).
Step 501, a leakage level of a sound leakage event is obtained.
The leak rating is used to characterize the severity of the acoustic leak event. The leak rating is used to characterize the severity of the acoustic leak event. In some embodiments, the leakage level is determined based on the interval to which the fourth difference value belongs. The fourth difference is the sum of the loudness of the sound signal and the loudness of the ambient noise signal, the first difference, the second difference and the third difference.
When S is expressed as (l+m+g), the fourth difference Z is expressed by the following formula.
Z=(L+M+G)-(mic2(N)+X+Y+A)。
The greater the value of Z, the greater the severity of the sound leakage event; the greater the value of Z, the lower the severity of the sound leakage event. In some embodiments, the electronic device sets a third mapping relationship between the value interval of Z and the leakage level, and determines the leakage level based on the third mapping relationship after calculating Z.
Step 502, determining an adjustment amount of the gain value based on the leakage level of the sound leakage event.
The leakage level and the adjustment amount of the gain value are in positive correlation. The leakage level and the adjustment amount of the gain value are in positive correlation. That is, the higher the leak level, the larger the adjustment amount of the gain value, and the lower the leak level, the smaller the adjustment amount of the gain value. In some embodiments, the electronic device presets a fifth mapping relationship between the leakage level and the gain value, and determines the adjustment amount of the gain value based on the fifth mapping relationship after determining the leakage level.
In step 503, the volume level is adjusted according to the gain adjustment amount.
In some embodiments, the electronic device subtracts the adjustment amount from the original gain value to obtain an adjusted gain value, and then adjusts the gain value of the AGC circuit to the adjusted volume level.
In some embodiments, adjusting the gain value of the AGC circuit specifically includes the following steps (steps 504-506).
Step 504, obtaining a volume level, a loudness of a sound source signal of the sound signal, a first difference value, a second difference value, and a third difference value.
In step 505, a target gain value is determined based on the sound safety condition, the volume level, the loudness of the sound source signal, the first difference, the second difference, and the third difference.
The sound safety condition is used to characterize the condition satisfied by the absence of a sound leakage event. When S is represented by (l+m+g), if (l+m+g) <=mic2 (N) +x+y+a), it is indicated that no sound leakage event occurs.
In some embodiments, the electronic device determines a difference between a sum of the loudness of the ambient noise signal, the first difference, the second difference, and the third difference, and a sum of the loudness of the sound source signal and the volume level, as the target volume level, without occurrence of the sound leakage event. That is, G < = mic2 (N) +x+y+a- (l+m), the electronic device determines any gain value satisfying the above formula as the target gain value.
In some embodiments, the method F of adjusting the gain value of the AGC provided by steps 504-506 can be represented as the following formula.
Figure BDA0003232386780000121
That is, when L+M+G is less than or equal to mic2 (N) +Y+X+A, the gain G of the AGC module is set so as not to change accordingly, and when L+M+G > mic2 (N) +Y+X+A, the gain G of the AGC module is required to satisfy G less than or equal to mic2 (N) +Y+X+A-M-L.
Step 506, adjusting the gain value of the AGC circuit to a target gain value.
The electronic device adjusts the gain value of the AGC circuit to a target gain value.
The embodiment of the application provides a sounding parameter adjusting method, which adjusts the gain value of an AGC circuit after determining that a sound leakage event occurs so as to reduce the loudness of a sound signal, so that the sound signal is not leaked any more, and the privacy of a user is effectively protected. In addition, because the AGC circuit is not active when the input signal is small and only when the input signal is increased to a certain degree, the AGC circuit is controlled, so that the sound signal of the sounding component has proper gain when the loudness of the sound signal is small, and the user can hear the sound signal conveniently.
In some embodiments, the electronic device performs the subsequent step of detecting the sound leakage event when the privacy mode is in the on state, so as to avoid that the electronic device performs the step under the scene (such as by playing music outside the mobile phone) without detecting the sound leakage event, which causes unnecessary power consumption waste on the one hand, and reduces the loudness of the sound signal under the scene without detecting the sound leakage event on the other hand, which may violate the actual requirement of the user, and bring inconvenience to the user.
Based on the above-mentioned problem, the embodiment of the present application further provides a sounding parameter adjustment method, and in an alternative embodiment provided based on the embodiment shown in fig. 3, the method further includes the following step before step 301.
In step 601, the on-off state of the privacy mode is obtained.
The on-off states of the privacy mode include an on state and an off state.
And if the switch state of the privacy mode is the on state, executing the step of acquiring the loudness of the sound signal played by the sound generating component in the electronic equipment. Under the condition that the privacy mode is in an open state, determining that a user has privacy protection requirements, detecting whether a sound leakage event exists at the moment, and adjusting sounding parameters in time after determining that the sound leakage event occurs so as to reduce the loudness of sound signals until the sound leakage does not occur any more, thereby effectively protecting the privacy of the user.
If the switch state of the privacy mode is the off state, the following steps are not executed. Under the condition that the privacy mode is in the closed state, the fact that the user has no privacy protection requirement is determined, and at the moment, no follow-up steps are executed, so that the power consumption of the electronic equipment is saved.
Prior to step 601, the electronic device opens the portal privacy mode according to the user's settings, or according to privacy protection requirements in different scenarios. These two cases are described below.
When the electronic device is a mobile terminal, in some embodiments, the mobile terminal monitors a communication incoming call event, and switches the on/off state of the privacy mode to the on state.
The communication incoming call event refers to an event that the opposite mobile terminal requests to establish a call with the home mobile terminal, the communication incoming call event indicates that the mobile terminal is about to enter a call scene, and if privacy protection needs to exist, a privacy mode needs to be opened, so that a sound leakage event can be detected in time, and sound production parameters can be adjusted in time, so that sound leakage is avoided.
Optionally, after receiving a call instruction for the number of the SIM card built in the home terminal, the opposite terminal sends a call request to the home terminal, where the home terminal monitors a communication incoming call event. Optionally, after receiving a voice call instruction or a video call instruction for a specified account in a specified application program, the opposite mobile terminal sends a call request to the home mobile terminal, at this time, the home mobile terminal monitors a communication incoming call event, where the specified account is a user account in the home mobile terminal, where the specified application program is logged in, and the specified application program is an application program having a voice call function or a video call function, for example, a social application program.
In other embodiments, a mobile terminal displays a switch of a privacy mode, obtains a first open indication for the switch of the privacy mode, and switches a switch state of the privacy mode to an on state based on the first open indication.
The first open indication is triggered by the user for triggering the opening of the privacy mode. The first open indication comprises at least one of: a specified operation signal for a switch of the privacy mode, a specified voice signal.
The above specified operation signals include, but are not limited to: a long press operation signal, a single click operation signal, a double click operation signal, a sliding operation signal and a dragging operation signal. In the embodiment of the present application, only the designation operation signal is described as an example of the one-click operation signal. In one example, the user speaks "open privacy mode" when the mobile terminal receives a specified voice signal.
When the electronic device is a wireless headset, in some embodiments, if the wireless headset receives call data sent by the mobile terminal, the wireless headset switches the on/off state of the privacy mode to the on state. If the wireless earphone receives the call data sent by the mobile terminal, the wireless earphone indicates that the wireless earphone is about to enter a call scene, and a privacy protection requirement exists, and the privacy mode needs to be opened, so that a sound leakage event can be detected in time, and sounding parameters can be adjusted in time, so that sound leakage is avoided.
In some embodiments, the wireless headset receives a second open indication sent by the mobile terminal, and switches to the open state based on the switch state of the second open indication privacy mode. In this embodiment, the user turns on the privacy mode in the mobile terminal, which synchronizes the on-off state of the privacy mode to the wireless headset. The step of opening the privacy mode by the user in the mobile terminal is described above and will not be described here.
The embodiment of the application provides a sounding control method, which is characterized in that the electronic equipment executes a subsequent sound leakage event detection step when a privacy mode is in an on state, so that the electronic equipment is prevented from executing the steps under the scene of not detecting the sound leakage event, and the power consumption of the electronic equipment is saved on the premise of protecting the privacy of a user.
The privacy mode is automatically opened in the conversation scene, so that the electronic equipment can timely detect the sound leakage event in the conversation scene and timely adjust the sounding parameters, and conversation data leakage is avoided.
As shown in fig. 6, an embodiment of the present application further provides a sounding control apparatus, including: a first acquisition module 610, a second acquisition module 620, an event detection module 630, and a parameter adjustment module 640.
The first obtaining module 610 is configured to obtain a loudness of a sound signal played by a sound generating component in the electronic device.
A second obtaining module 620 is configured to obtain a loudness of an ambient noise signal collected by a designated microphone of the electronic device.
The event detection module 630 is configured to detect whether a sound leakage event occurs based on the loudness of the sound signal and the loudness of the ambient noise signal, where the sound leakage event is an event that the leakage amount of the sound signal meets a preset condition.
And the parameter adjustment module 640 is configured to adjust a sound emission parameter of the sound emission component if the sound leakage event occurs, where the sound emission parameter is used to control the loudness of the sound signal.
The embodiment of the application provides a sound emission control device, when a sound emission component of electronic equipment emits a sound signal, whether a sound emission sound leakage event occurs or not is detected through the loudness of the sound signal and the loudness of an environmental noise signal collected by a designated microphone in the electronic equipment, if the sound leakage event occurs, sound emission parameters of the sound emission component are adjusted to reduce the loudness of the sound signal until the sound leakage event does not occur any more; the technical scheme that this embodiment provided provides a scheme of automated inspection sound leakage incident for electronic equipment can feel the sound leakage incident, later adjusts the sounding parameter of sounding part through in time, so that sound signal no longer takes place to reveal, effectively protects user privacy.
In some embodiments, the sound emission parameters include a volume level, and the parameter adjustment module 640 is configured to adjust the volume level.
In some embodiments, the parameter adjustment module 640 is configured to send out a prompt message if the sound leakage event occurs, where the prompt message is used to prompt that the sound leakage event occurs; acquiring a first adjustment amount of the volume level in response to an adjustment signal for the volume level; and adjusting the volume level according to the first adjustment amount of the volume level.
In some embodiments, the parameter adjustment module 640 is configured to obtain a leakage level of the sound leakage event, where the leakage level is used to characterize a severity of the sound leakage event; determining a second adjustment amount of the volume level based on a leakage level of the sound leakage event, wherein the leakage level and the second adjustment amount are in positive correlation; and adjusting the volume level according to the second adjustment amount of the volume level.
In some embodiments, the parameter adjustment module 640 is configured to obtain a loudness, a first difference value, a second difference value, and a third difference value of a sound source signal of the sound signal; determining a target volume level based on a sound safety condition, a loudness of the sound source signal, the first difference, the second difference, and the third difference, the sound safety condition being used to characterize a condition satisfied by the absence of the sound leakage event; adjusting the volume level to the target volume level; the first difference value is a difference value between the loudness of a first test sound signal collected by a designated microphone of the electronic device and the loudness of the first test sound signal collected by the test microphone, and the first test sound signal is emitted by a sound emitting component of the electronic device; the second difference value is a difference value between the loudness of the test noise signal collected by the test microphone and the loudness of the test noise signal collected by the designated microphone of the electronic device; the third difference value refers to a difference value between the loudness of a second test sound signal and the loudness of the second test sound signal collected by the designated microphone of the electronic device, where the second test sound signal is emitted by the sound emitting component of the electronic device.
In some embodiments, the electronic device further comprises an automatic gain control circuit, a first end of the automatic gain control circuit is electrically connected with the designated microphone, a second end of the automatic gain control circuit is electrically connected with the sound emitting component, and the sound emitting parameter comprises a gain value of the automatic gain circuit; the parameter adjustment module 640 is configured to adjust a gain value of the AGC circuit.
In some embodiments, the parameter adjustment module 640 is configured to obtain a leakage level of the sound leakage event, where the leakage level is used to characterize a severity of the sound leakage event; determining the adjustment amount of the gain value based on the leakage level of the sound leakage event, wherein the leakage level and the adjustment amount of the gain value are in positive correlation; and adjusting the volume level according to the adjustment amount of the gain.
In some embodiments, the parameter adjustment module 640 is configured to obtain a volume level, a loudness of a sound source signal of the sound signal, a first difference value, a second difference value, and a third difference value; determining a target gain value based on a sound safety condition, the volume level, the loudness of the sound source signal, the first difference value, the second difference value, and the third difference value, the sound safety condition being used to characterize a condition satisfied by the absence of the sound leakage event; and adjusting the gain value of the AGC circuit to the target gain value.
In some embodiments, the event detection module 630 is configured to obtain a first difference value, a second difference value, and a third difference value; and if the loudness of the sound signal is larger than the sum of the loudness of the environment noise signal, the first difference value, the second difference value and the third difference value, determining that the sound leakage event occurs.
In some embodiments, a switch state control module (not shown in FIG. 6).
And the switch state control module is used for acquiring the switch state of the privacy mode.
The first obtaining module 610 is configured to perform the step of obtaining the loudness of the sound signal played by the sound generating component in the electronic device if the on/off state of the privacy mode is an on state.
In some embodiments, when the electronic device is a wireless headset, the switch state control module is configured to switch the switch state of the privacy mode to the on state if call data sent by the mobile terminal is received; or receiving a second opening instruction sent by the mobile terminal, and switching the on-off state of the privacy mode to the on-state based on the second opening instruction.
In some embodiments, when the electronic device is a mobile terminal, the switch state control module is configured to switch the switch state of the privacy mode to the on state if call data sent by the mobile terminal is received; or receiving a second opening instruction sent by the mobile terminal, and switching the on-off state of the privacy mode to the on-state based on the second opening instruction.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided herein, the coupling of the modules to each other may be electrical, mechanical, or other.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
As shown in fig. 7, the embodiment of the application further provides an electronic device 700, where the electronic device 700 includes a processor 710 and a memory 720, and the memory 720 stores computer program instructions.
Processor 710 may include one or more processing cores. The processor 710 utilizes various interfaces and lines to connect various portions of the overall battery management system, perform various functions of the battery management system, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 720, and invoking data stored in the memory 720. Alternatively, the processor 710 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 710 may integrate one or a combination of several of a central processor 710 (Central Processing Unit, CPU), an image processor 710 (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 710 and may be implemented solely by a single communication chip.
The Memory 720 may include a random access Memory 720 (Random Access Memory, RAM) or a Read-Only Memory 720 (Read-Only Memory). Memory 720 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 720 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the electronic device map in use (e.g., phonebook, audiovisual data, chat log data), and the like.
As shown in fig. 8, the present embodiment also provides a computer readable storage medium 800, where the computer readable storage medium 800 stores computer program instructions 810, where the computer program instructions 810 may be invoked by a processor to perform the method described in the above embodiment.
The computer readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium comprises a non-volatile computer readable storage medium (non-transitory computer-readable storage medium). The computer readable storage medium 800 has storage space for program code to perform any of the method steps described above. The program code can be read from or written to one or more computer program products. The program code may be compressed, for example, in a suitable form.
The foregoing description is not intended to limit the preferred embodiments of the present application, but is not intended to limit the scope of the present application, and any such modifications, equivalents and adaptations of the embodiments described above in accordance with the principles of the present application should and are intended to be within the scope of the present application, as long as they do not depart from the scope of the present application.

Claims (9)

1. A sound emission control method, applied to an electronic device, the method comprising:
acquiring the loudness of a sound signal played by a sound generating component in electronic equipment, wherein the loudness of the sound signal is determined by the loudness of a sound source signal of the sound signal and the volume level of the sound generating component;
acquiring the loudness of an environmental noise signal acquired by a designated microphone of the electronic equipment;
detecting whether a sound leakage event occurs based on the loudness of the sound signal and the loudness of the environmental noise signal, wherein the sound leakage event refers to an event that the leakage amount of the sound signal meets a preset condition;
If the sound leakage event occurs, adjusting the volume level of the sound generating component;
wherein, adjust the volume level of sound production part, include:
acquiring loudness, a first difference value, a second difference value and a third difference value of a sound source signal of the sound signal;
determining a difference between the loudness of the ambient noise signal, the sum of the first difference, the second difference and the third difference, and the loudness of the sound source signal as a target volume level;
adjusting the volume level to the target volume level;
the first difference value is a difference value between the loudness of a first test sound signal collected by a designated microphone of the electronic device and the loudness of the first test sound signal collected by the test microphone, and the first test sound signal is emitted by a sound emitting component of the electronic device;
the second difference value is a difference value between the loudness of the test noise signal collected by the test microphone and the loudness of the test noise signal collected by the designated microphone of the electronic device;
the third difference value refers to a difference value between the loudness of a second test sound signal and the loudness of the second test sound signal collected by the designated microphone of the electronic device, where the second test sound signal is emitted by the sound emitting component of the electronic device.
2. The method according to claim 1, wherein the method further comprises:
and if the sound leakage event occurs, sending out prompt information, wherein the prompt information is used for prompting the occurrence of the sound leakage event.
3. The method of claim 1, wherein the electronic device further comprises an automatic gain control circuit, a first end of the automatic gain control circuit being electrically connected to the designated microphone, a second end of the automatic gain control being electrically connected to the sound emitting component, the loudness of the sound signal being further determined by a gain value of the automatic gain control circuit; the method further comprises the steps of:
and adjusting the gain value of the automatic gain control circuit.
4. A method according to claim 3, wherein said adjusting the gain value of the automatic gain control circuit comprises:
acquiring a leakage level of the sound leakage event, wherein the leakage level is used for representing the severity of the sound leakage event;
determining the adjustment amount of the gain value based on the leakage level of the sound leakage event, wherein the leakage level and the adjustment amount of the gain value are in positive correlation;
And adjusting the gain value of the automatic gain control circuit according to the adjustment quantity of the gain value.
5. A method according to claim 3, wherein said adjusting the gain value of the automatic gain control circuit comprises:
acquiring a volume level, loudness of a sound source signal of the sound signal, a first difference value, a second difference value and a third difference value;
determining a difference between the loudness of the ambient noise signal, the sum of the first difference, the second difference and the third difference, and the sum of the loudness of the sound source signal and the volume level as a target gain value;
and adjusting the gain value of the automatic gain control circuit to the target gain value.
6. The method of any one of claims 1 to 5, wherein the detecting whether a sound leakage event occurs based on the loudness of the sound signal and the loudness of the ambient noise signal comprises:
acquiring a first difference value, a second difference value and a third difference value;
and if the loudness of the sound signal is larger than the sum of the loudness of the environment noise signal, the first difference value, the second difference value and the third difference value, determining that the sound leakage event occurs.
7. A sound production control device, the device comprising:
the device comprises a first acquisition module, a second acquisition module and a sound generation module, wherein the first acquisition module is used for acquiring the loudness of a sound signal played by a sound generation component in electronic equipment, and the loudness of the sound signal is determined by the loudness of a sound source signal of the sound signal and the volume level of the sound generation component;
a second acquisition module, configured to acquire a loudness of an environmental noise signal acquired by a designated microphone of the electronic device;
the event detection module is used for detecting whether a sound leakage event occurs or not based on the loudness of the sound signal and the loudness of the environment noise signal, wherein the sound leakage event refers to an event that the leakage amount of the sound signal meets a preset condition;
the parameter adjusting module is used for adjusting the volume level of the sounding component if the sound leakage event occurs;
wherein, adjust the volume level of sound production part, include:
acquiring loudness, a first difference value, a second difference value and a third difference value of a sound source signal of the sound signal;
determining a difference between the loudness of the ambient noise signal, the sum of the first difference, the second difference and the third difference, and the loudness of the sound source signal as a target volume level;
Adjusting the volume level to the target volume level;
the first difference value is a difference value between the loudness of a first test sound signal collected by a designated microphone of the electronic device and the loudness of the first test sound signal collected by the test microphone, and the first test sound signal is emitted by a sound emitting component of the electronic device;
the second difference value is a difference value between the loudness of the test noise signal collected by the test microphone and the loudness of the test noise signal collected by the designated microphone of the electronic device;
the third difference value refers to a difference value between the loudness of a second test sound signal and the loudness of the second test sound signal collected by the designated microphone of the electronic device, where the second test sound signal is emitted by the sound emitting component of the electronic device.
8. An electronic device comprising a processor and a memory storing computer program instructions that are invoked by the processor to perform the method of any one of claims 1-6.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, which is called by a processor to perform the method according to any of claims 1-6.
CN202110990921.7A 2021-08-26 2021-08-26 Sounding control method and device, electronic equipment and storage medium Active CN113824838B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110990921.7A CN113824838B (en) 2021-08-26 2021-08-26 Sounding control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110990921.7A CN113824838B (en) 2021-08-26 2021-08-26 Sounding control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113824838A CN113824838A (en) 2021-12-21
CN113824838B true CN113824838B (en) 2023-05-23

Family

ID=78913576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110990921.7A Active CN113824838B (en) 2021-08-26 2021-08-26 Sounding control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113824838B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117119092B (en) * 2023-02-22 2024-06-07 荣耀终端有限公司 Audio processing method and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108806710A (en) * 2018-06-15 2018-11-13 会听声学科技(北京)有限公司 A kind of speech enhancement gain method of adjustment, system and earphone

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4640461B2 (en) * 2008-07-08 2011-03-02 ソニー株式会社 Volume control device and program
US9641660B2 (en) * 2014-04-04 2017-05-02 Empire Technology Development Llc Modifying sound output in personal communication device
CN107835482A (en) * 2017-10-17 2018-03-23 广东欧珀移动通信有限公司 Detection method, device and the electronic equipment of sound leakage rate
CN112509594A (en) * 2020-06-22 2021-03-16 中兴通讯股份有限公司 Terminal, sound production method, storage medium and electronic device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108806710A (en) * 2018-06-15 2018-11-13 会听声学科技(北京)有限公司 A kind of speech enhancement gain method of adjustment, system and earphone

Also Published As

Publication number Publication date
CN113824838A (en) 2021-12-21

Similar Documents

Publication Publication Date Title
CN108540906B (en) Volume adjusting method, earphone and computer readable storage medium
CN108810693B (en) Wearable device and device control device and method thereof
CN113676804A (en) Active noise reduction method and device
CN110915238B (en) Speech intelligibility enhancement system
CN108476256A (en) A kind of volume adjusting method and terminal
CN110896509A (en) Earphone wearing state determining method, electronic equipment control method and electronic equipment
CN110839190B (en) Earphone wearing detection method and device, earphone and readable storage medium
EP3038255B1 (en) An intelligent volume control interface
EP3777114B1 (en) Dynamically adjustable sidetone generation
CN104580753A (en) Method and system for estimating acoustic noise levels
US20190394557A1 (en) Headphones
CN113099336B (en) Method and device for adjusting earphone audio parameters, earphone and storage medium
CN113824838B (en) Sounding control method and device, electronic equipment and storage medium
CN110058837B (en) Audio output method and terminal
CN108668018B (en) Mobile terminal, volume control method and related product
CN111049972B (en) Audio playing method and terminal equipment
CN108605067B (en) Method for playing audio and mobile terminal
CN110740413A (en) environmental sound monitoring parameter calibration system and method
CN107493376A (en) A kind of ringing volume adjusting method and device
CN114466278A (en) Method for determining parameters corresponding to earphone mode, earphone, terminal and system
CN115623121A (en) Call method and electronic equipment
WO2020019822A1 (en) Microphone hole blockage detecting method and related product
CN111324331A (en) Interactive message prompting method and device, electronic equipment and storage medium
CN117135262B (en) Conversation method and electronic equipment
CN117093182B (en) Audio playing method, electronic equipment and computer readable 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