Movatterモバイル変換


[0]ホーム

URL:


CN109218913B - Sound adjusting method, terminal equipment and device with storage function - Google Patents

Sound adjusting method, terminal equipment and device with storage function
Download PDF

Info

Publication number
CN109218913B
CN109218913BCN201810983693.9ACN201810983693ACN109218913BCN 109218913 BCN109218913 BCN 109218913BCN 201810983693 ACN201810983693 ACN 201810983693ACN 109218913 BCN109218913 BCN 109218913B
Authority
CN
China
Prior art keywords
audio signal
loudspeaker
preset
signal
collected
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
CN201810983693.9A
Other languages
Chinese (zh)
Other versions
CN109218913A (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.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet Technology Shenzhen 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 Qiku Internet Technology Shenzhen Co LtdfiledCriticalQiku Internet Technology Shenzhen Co Ltd
Priority to CN201810983693.9ApriorityCriticalpatent/CN109218913B/en
Publication of CN109218913ApublicationCriticalpatent/CN109218913A/en
Application grantedgrantedCritical
Publication of CN109218913BpublicationCriticalpatent/CN109218913B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a sound adjusting method, a terminal device and a device with a storage function, wherein the method comprises the steps that the terminal device judges whether foreign matters exist at the sounding position of a loudspeaker of the terminal device; when the fact that foreign matters exist in the sounding position of the loudspeaker is judged, a foreign matter clearing reminding signal is sent out; when the terminal equipment sends out a foreign matter removal reminding signal exceeding the preset time, repeatedly executing the step of judging whether foreign matters exist at the sounding position of the loudspeaker of the terminal equipment; and when the sound production position of the loudspeaker is judged to still have the foreign matter, adjusting the volume parameter of the loudspeaker to increase the volume of the loudspeaker when the file to be played is played. By the method, the invention can keep a better playing effect when foreign matters exist in the loudspeaker of the terminal equipment, so that a user has better use experience.

Description

Sound adjusting method, terminal equipment and device with storage function
Technical Field
The present invention relates to the field of terminal device technologies, and in particular, to a sound adjusting method, a terminal device, and a device with a storage function.
Background
In order to meet the audiovisual requirements of users in life and work, such as voice call, video call, listening to music, watching video, and the like, most terminals have an audio playing function, such as a mobile phone, a tablet computer, a music player, a recording pen, and the like. Generally, a terminal may play sound using a speaker. The loudspeaker is the process of converting electrical energy into mechanical energy, and mechanical energy is converted into sound energy, mainly utilizes the electromagnetic induction principle, and when the coil in the loudspeaker was switched on, its coil will produce magnetic field, under the magnetic field interact with magnet, the coil will vibrate to drive the vibration of vibrating diaphragm, the vibrating diaphragm is arranged the air and is realized the sound production.
Taking a mobile phone as an example, due to long-time use or other reasons, a foreign object exists at the sounding position of a speaker of the mobile phone, and when a user receives an incoming call, the obstacle prevents sound propagation, so that the played sound effect is poor, or the user often cannot hear the incoming call ringtone and misses the incoming call.
Disclosure of Invention
The technical problem mainly solved by the invention is to provide a sound adjusting method, a terminal device and a device with a storage function, which can keep a better playing effect when foreign matters exist in a loudspeaker of the terminal device.
In order to solve the above technical problem, one technical solution adopted by the present invention is to provide a sound adjusting method for a terminal device, where the method includes: the terminal equipment judges whether foreign matters exist at the sounding position of a loudspeaker of the terminal equipment; when the fact that foreign matters exist in the sounding position of the loudspeaker is judged, a foreign matter clearing reminding signal is sent out; when the terminal equipment sends out a foreign matter removal reminding signal exceeding the preset time, repeatedly executing the step of judging whether foreign matters exist at the sounding position of the loudspeaker of the terminal equipment; and when the sound production position of the loudspeaker is judged to still have the foreign matter, adjusting the volume parameter of the loudspeaker to increase the volume of the loudspeaker when the file to be played is played.
Wherein the terminal device comprises a first microphone; judge whether there is the foreign matter in the vocal position of speaker includes: acquiring a first acquired audio signal acquired by the first microphone at a preset volume emitted by the loudspeaker; comparing the first collected audio signal with a prestored first preset audio signal, wherein the first preset audio signal is the audio signal collected by the first microphone when no foreign matter exists at the sounding position of the loudspeaker and the preset volume is given out; and when the first collected audio signal is smaller than the first preset audio signal and the signal difference between the first collected audio signal and the first preset audio signal exceeds a preset threshold value, judging that foreign matters exist at the sounding position of the loudspeaker.
The adjusted audio parameters meet the requirement that the ratio of the volume of the loudspeaker after the loudspeaker changes to the volume of the loudspeaker before the loudspeaker changes when the loudspeaker plays the file to be played is larger than or equal to the ratio of the first preset audio signal to the first collected audio signal.
Wherein, terminal equipment still includes the second microphone, work as first collection audio signal is less than first default audio signal, and when the signal difference between the two exceeded and predetermine the threshold value, then judged the sound production position of speaker exists the foreign matter, include: when the first collected audio signal is smaller than the first preset audio signal and the signal difference between the first collected audio signal and the first preset audio signal exceeds a preset threshold value, acquiring a second collected audio signal collected by the second microphone at a preset volume emitted by the loudspeaker; comparing the second collected audio signal with a second preset audio signal which is prestored, wherein the second preset audio signal is the audio signal collected by the second microphone when no foreign matter exists at the sounding position of the loudspeaker and the preset volume is given out; and when the second collected audio signal is smaller than the second preset audio signal and the signal difference between the second collected audio signal and the second preset audio signal exceeds the preset threshold value, judging that foreign matters exist at the sounding position of the loudspeaker.
Wherein, when judging the sound production position of speaker still has the foreign matter, adjust the volume parameter of speaker to make the volume grow of speaker when the file is waited to play in the broadcast specifically includes: when the fact that foreign matters still exist in the sounding position of the loudspeaker is judged, a distance detection signal is emitted, a distance feedback signal corresponding to the distance detection signal is obtained, and whether the terminal equipment is located in the closed space or not is judged according to the distance feedback signal; if so, adjusting the volume parameter of the loudspeaker to increase the volume of the loudspeaker when playing the file to be played.
Wherein, terminal equipment includes the display, send and clear away foreign matter reminder signal, include: a loudspeaker of the terminal equipment emits prompt sound; and/or a display of the terminal equipment displays a prompt message.
In order to solve the above technical problem, another technical solution adopted by the present invention is to provide a terminal device, including a speaker and a control apparatus coupled to the speaker; the control device comprises a memory and a processor which are coupled with each other; the memory is used for storing computer instructions and data; the processor executes the computer instructions for implementing the steps of: judging whether foreign matters exist at the sounding position of a loudspeaker of the terminal equipment; when the fact that foreign matters exist in the sounding position of the loudspeaker is judged, a foreign matter clearing reminding signal is sent out; when the terminal equipment sends out a foreign matter removal reminding signal exceeding the preset time, repeatedly executing the step of judging whether foreign matters exist at the sounding position of the loudspeaker of the terminal equipment; and when the sound production position of the loudspeaker is judged to still have the foreign matter, adjusting the volume parameter of the loudspeaker to increase the volume of the loudspeaker when the file to be played is played.
Wherein the terminal device comprises a first microphone coupled with the control means; the memory stores a first preset audio signal, and the first preset audio signal is an audio signal collected by the first microphone when no foreign matter exists at the sounding position of the loudspeaker and the preset volume is given out; the processor executes the judgment of whether foreign matters exist in the sounding position of the loudspeaker, and specifically includes: acquiring a first acquired audio signal acquired by the first microphone at a preset volume emitted by the loudspeaker; comparing the first collected audio signal with a pre-stored first preset audio signal; and when the first collected audio signal is smaller than the first preset audio signal and the signal difference between the first collected audio signal and the first preset audio signal exceeds a preset threshold value, judging that foreign matters exist at the sounding position of the loudspeaker.
Wherein the terminal device further comprises a second microphone coupled with the control means; the memory stores a second preset audio signal, and the second preset audio signal is an audio signal collected by the second microphone when no foreign matter exists at the sounding position of the loudspeaker and the preset volume is given out; the processor executes the first collection audio signal is smaller than the first preset audio signal, and when the signal difference between the first collection audio signal and the first preset audio signal exceeds a preset threshold, the processor judges that a foreign object exists at the sounding position of the loudspeaker, and the method specifically comprises the following steps: acquiring a second acquired audio signal acquired by the second microphone at a preset volume emitted by the loudspeaker; comparing the second collected audio signal with a second pre-stored preset audio signal; and when the second collected audio signal is smaller than the second preset audio signal and the signal difference between the second collected audio signal and the second preset audio signal exceeds the preset threshold value, judging that foreign matters exist at the sounding position of the loudspeaker.
In order to solve the technical problem, another technical solution adopted by the present invention is to provide an apparatus having a storage function, wherein the apparatus stores program data, and the program data can be executed to implement the method.
The invention has the beneficial effects that: different from the prior art, send out after judging that there is the foreign matter in the vocal position of terminal equipment's speaker and clear away foreign matter reminder signal to when the vocal position of confirming the speaker still has the foreign matter more than predetermined time, adjust the volume parameter of speaker, so that the volume grow of speaker when the file is waited to play in the broadcast, thereby keep better broadcast effect when there is the foreign matter in terminal equipment's speaker, make the user have better use experience.
Drawings
Fig. 1 is a schematic flow chart of a first embodiment of a sound adjusting method of a terminal device provided by the present invention;
fig. 2 is a flowchart illustrating a second embodiment of a sound adjusting method of a terminal device according to the present invention;
fig. 3 is a flowchart illustrating a sound adjusting method of a terminal device according to a third embodiment of the present invention;
fig. 4 is a schematic flowchart of a fourth embodiment of a sound adjusting method of a terminal device according to the present invention;
fig. 5 is a flowchart of a fifth embodiment of a sound adjusting method of a terminal device provided by the present invention;
fig. 6 is a flowchart illustrating a sixth embodiment of a sound adjusting method of a terminal device according to the present invention;
fig. 7 is a schematic structural diagram of a first embodiment of a terminal device provided by the present invention;
fig. 8 is a schematic structural diagram of an embodiment of a control device in the terminal device provided by the present invention;
fig. 9 is a schematic structural diagram of a second embodiment of the terminal device provided by the present invention;
fig. 10 is a schematic structural diagram of a third embodiment of the terminal device provided by the present invention;
fig. 11 is a schematic structural diagram of a fourth embodiment of the terminal device provided by the present invention;
fig. 12 is a schematic structural diagram of an embodiment of an apparatus with a storage function according to the present invention.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a sound adjusting method of a terminal device according to a first embodiment of the present invention. The sound adjusting method of the terminal device in the embodiment includes:
s101: the terminal equipment judges whether foreign matters exist in the sounding position of the loudspeaker of the terminal equipment.
It is understood that the event for determining whether the foreign object exists in the sound emission position of the speaker of the terminal device in the present application may be automatically triggered by the terminal device system, for example, a trigger condition for determining whether the foreign object exists in the sound emission position of the speaker is preset in the terminal device system. The condition may be when the terminal device is powered on; the detection can be performed at regular time intervals, for example, every 1 hour, every 1 day, every 1 week, or at any self-defined interval period; or when receiving a sound playing request, for example, the terminal device needs to play a certain video or a certain song, or answer an incoming call, etc.; the determination event may be triggered by a user operation, for example, an option for triggering a determination event of whether a foreign object exists at the sound emission position of the speaker is added to a system setting menu of the terminal device, and when the option is selected by the user, the determination event of whether a foreign object exists at the sound emission position of the speaker is triggered.
S102: and when the sound production position of the loudspeaker is judged to have the foreign matter, a foreign matter clearing reminding signal is sent.
The loudspeaker is an electroacoustic device which converts electric energy into sound energy, and the loudspeaker is of various types, and although the loudspeaker works in different modes, the loudspeaker finally realizes the conversion of electricity, force and sound by generating mechanical vibration to push surrounding air to enable an air medium to generate wave. Known by above-mentioned vocal principle, the speaker needs to promote the air and realizes the sound production, when the speaker phonation position exists the foreign matter, will exert an influence to the broadcast of sound so, generally can lead to the broadcast volume to diminish. It can be understood that when the terminal device judges that the sound production position of the loudspeaker has the foreign matter, the terminal device can remind the user of timely cleaning the foreign matter by sending a reminding signal for clearing the foreign matter so as to prevent the user from influencing the sound effect played by the loudspeaker due to the foreign matter when the user uses the terminal device.
S103: and when the terminal equipment sends out a foreign matter removal reminding signal exceeding the preset time, repeatedly executing the step of judging whether foreign matters exist at the sounding position of the loudspeaker of the terminal equipment.
The predetermined time may be set by the user. It can be understood that when the terminal device judges that the foreign matter exists at the sounding position of the speaker of the terminal device and sends a foreign matter clearing reminding signal to remind a user to clear the foreign matter in time, a certain time needs to be reserved for the user to clear the foreign matter; for example, the foreign matter removal reminding signal can be immediately removed after the terminal equipment sends the foreign matter removal reminding signal; or because the user does not have related clearing tools on the hand, the preset time is set to be 1 hour, 1 day or other time after the terminal equipment sends out the foreign matter clearing reminding signal. In an implementation scene, the terminal equipment sends a foreign matter removal reminding signal, but a user receives the foreign matter removal reminding signal, but the foreign matter removal reminding signal cannot be removed at that time, and the terminal equipment is set aside to wait for subsequent foreign matter removal; therefore, after the terminal device sends the foreign object removal reminding signal for more than the preset time set by the user, the terminal device may repeatedly execute the step S101 of determining whether the sound emission position of the speaker of the terminal device has the content of the foreign object, so as to determine whether the foreign object is subsequently removed by the user. Or in other implementation scenarios, the terminal device sends the foreign matter removal reminding signal, but the user does not receive the foreign matter removal reminding signal because the user is not beside the terminal device at that time; then, after the terminal device sends the foreign object removal reminding signal for more than the predetermined time set by the user, the terminal device may repeatedly execute the step S101 of determining whether the sound emitting position of the speaker of the terminal device has the content of the foreign object, so as to determine whether the user has received the foreign object removal reminding signal.
S104: and when the sound production position of the loudspeaker is judged to still have the foreign matter, adjusting the volume parameter of the loudspeaker to increase the volume of the loudspeaker when the file to be played is played.
It is understood that after the operation of determining whether the foreign object exists at the sound emission position of the speaker of the terminal device is repeatedly performed in step S103, two results are obtained; one result is that the sound production position of the loudspeaker of the terminal equipment is judged to have no foreign matter, and at the moment, the user receives a foreign matter removal reminding signal sent by the terminal equipment and removes the foreign matter; and the other result is that the sound production position of the loudspeaker of the terminal device is judged to still have the foreign matter, which indicates that the user does not receive the foreign matter clearing reminding signal or that the user receives the foreign matter clearing reminding signal but cannot clear the foreign matter at that time. In a specific implementation scenario, when it is determined that the foreign object still exists at the sound emitting position of the speaker of the terminal device, in order to prevent the sound played by the speaker from becoming smaller due to the foreign object when the user uses the terminal device, the volume parameter of the speaker may be adjusted so as to make the volume of the speaker increase when playing the file to be played.
In this embodiment, there is the foreign matter warning signal through sending after judging the vocal position of terminal equipment's speaker and clearing away after the foreign matter, and when the vocal position of confirming the speaker still has the foreign matter in exceeding scheduled time, in order to avoid having the sound that the foreign matter leads to the speaker broadcast less because of the vocal position of speaker, the broadcast effect is relatively poor, select the volume parameter of adjusting the speaker, so that the volume grow of speaker when the file is waited to broadcast in the broadcast, thereby can keep better broadcast effect when there is the foreign matter in terminal equipment's speaker, make the user have better use experience.
Referring to fig. 2, fig. 2 is a flowchart illustrating a sound adjusting method of a terminal device according to a second embodiment of the present invention. In this embodiment, the terminal device includes the first microphone, and determines whether there is a foreign object in the sound emission position of the speaker of the terminal device, where the determination may be performed by the first microphone collecting the volume of the sound signal of the speaker. The sound adjusting method of the terminal device in the embodiment includes:
s201: the terminal equipment acquires a first acquisition audio signal acquired by the first microphone when the first microphone emits a preset volume.
The terminal device in the application can acquire the first collected audio signal in advance. In an implementation scenario, a preset audio file is stored in the terminal device, and the speaker plays the preset audio file with a preset volume, so that the first microphone can acquire an audio signal sent by the speaker, that is, a first acquired audio signal, and then the terminal device can acquire the first acquired audio signal. It is understood that the preset audio file and the preset volume for playing the preset audio file can be set by a designer according to actual conditions. In addition, the audio signal in the present application may be an analog audio signal converted from a mechanical sound wave signal, an amplified analog audio signal, a digital audio signal subjected to a/D conversion, or the like, and is not limited herein.
S202: and comparing the first collected audio signal with a prestored first preset audio signal, wherein the first preset audio signal is the audio signal collected by the first microphone when the volume is preset, and no foreign matter exists in the sounding position of the loudspeaker and the first preset audio signal is sent.
It can be understood that, because the terminal device stores a preset audio file, the speaker can play the preset audio file with a preset volume, so that when it is determined that no foreign object exists at the sounding position of the speaker, a user or a designer can play the preset audio file with the preset volume through the speaker, and the first microphone acquires an audio signal sent by the speaker, that is, the audio signal is a first preset audio signal, and the first preset audio signal is stored in the terminal device in advance. In the last step S201, the terminal device obtains a first collected audio signal collected when the speaker is in the current state and the preset volume is emitted by the first microphone, and the terminal device prestores the first preset audio signal collected when the speaker emits the preset volume without the foreign object at the sound emission position of the first microphone, so that the first collected audio signal is compared with the prestored first preset audio signal, and it can be determined whether the sound emission position of the speaker is the foreign object in the current state.
S203: and when the first collected audio signal is smaller than the first preset audio signal and the signal difference between the first collected audio signal and the first preset audio signal exceeds a preset threshold value, judging that foreign matters exist at the sounding position of the loudspeaker.
It can be understood that, compare first collection audio signal with the first preset audio signal that prestores, because the first preset audio signal that prestores does not exist the foreign matter for the vocal position at the speaker and when playing in order to predetermine the volume size to predetermineeing the audio file, the audio signal who gathers by first microphone, and because the vocal principle of speaker can know, the speaker needs the propulsion air to realize the sound production, when speaker vocal position exists the foreign matter, can produce the influence to the broadcast of sound, generally can lead to the broadcast volume to diminish, the first preset audio signal that the audio signal must be less than or equal to prestores of event. When the first collected audio signal is equal to a pre-stored first preset audio signal, the fact that no foreign matter exists in the sounding position of the loudspeaker at the moment can be judged; when the first collected audio signal is smaller than the first preset audio signal, the fact that foreign matters exist in the sounding position of the loudspeaker at the moment is indicated. In practical application, because there can be certain foreign matter interference more or less in the environment that terminal equipment is located, if judge the sound production position of speaker promptly when first collection audio signal is less than first preset audio signal and have the foreign matter, can make terminal equipment all judge the state that has the foreign matter for the sound production position of its speaker at most of time or anytime, the terminal equipment's of being not convenient for use like this. Therefore, a designer or a user can set a preset threshold, and only when the signal difference between the first collected audio signal and the first preset audio signal exceeds the preset threshold, the fact that foreign matters exist at the sound production position of the terminal equipment loudspeaker is judged; and when the signal difference between the first collection audio signal and the first preset audio signal is not more than the preset threshold value, the foreign matter existing in the sound production position of the terminal equipment loudspeaker does not influence the sound effect of the loudspeaker playing or influences a small value, the foreign matter does not exist in the sound production position of the terminal equipment loudspeaker, and a user does not need to clean the foreign matter.
S204: and when the sound production position of the loudspeaker is judged to have the foreign matter, a foreign matter clearing reminding signal is sent.
S205: and when the terminal equipment sends out a foreign matter removal reminding signal exceeding the preset time, repeatedly executing the step of judging whether foreign matters exist at the sounding position of the loudspeaker of the terminal equipment.
S206: and when the sound production position of the loudspeaker is judged to still have the foreign matter, adjusting the volume parameter of the loudspeaker to increase the volume of the loudspeaker when the file to be played is played.
In this implementation scenario, steps S204 to S206 provided in this embodiment are substantially similar to steps S102 to S104 in the first embodiment of the sound adjusting method for a terminal device provided in this application, and are not described here again.
In the present embodiment, by capturing the first captured audio signal by the first microphone at the preset volume emitted by the speaker in the current state, comparing with a first preset audio signal collected when the first microphone pre-stored in the terminal device emits a preset volume without a foreign object at the sound emitting position of the speaker, judging whether the foreign object exists at the sound emitting position of the speaker in the current state, thereby realizing the purpose of sending the foreign matter clearing reminding signal after judging that the foreign matter exists at the sounding position of the loudspeaker of the terminal equipment, and when the sound production position of the loudspeaker is confirmed to have foreign matters after the preset time is exceeded, the volume parameter of the loudspeaker is selected and adjusted, therefore, the volume of the loudspeaker when the file to be played is increased, and a better playing effect can be kept when foreign matters exist in the loudspeaker of the terminal equipment, so that a user has better use experience.
Further, the adjusted audio parameter satisfies a condition that a ratio of the volume of the speaker playing the file to be played between after the change and before the change is greater than or equal to a ratio between the first preset audio signal and the first collected audio signal. In a specific implementation scenario, since the amplitude of the audio signal is related to the volume of the sound corresponding to the amplitude, the amplitude of the first preset audio signal corresponds to the volume of the sound collected by the first microphone at the preset volume when no foreign object exists at the sounding position of the speaker, and is 60 (db); the amplitude of the first collected audio signal corresponds to the volume of sound collected by the first microphone when the speaker is in the current state and the preset volume is 55 (db); therefore, the fact that foreign matters exist at the sounding position of the loudspeaker in the current state, and the volume of the sound emitted by the loudspeaker is reduced due to the foreign matters can be obtained; when a file to be played is played by a speaker, a user sets the volume that the speaker should play to be 70(db), and then, in order to ensure that the volume of the speaker when playing the file to be played is not reduced due to the influence of a foreign object, the terminal device adjusts the volume parameter of the speaker so that the volume of the speaker when playing the file to be played is a (db), and a should satisfy a > -60/50 × 70, that is, a > -84, the volume of the sound collected when the file to be played is played when the foreign object exists at the sound production position of the speaker by the first microphone is not less than the volume of the sound collected when the file to be played is played when the foreign object does not exist at the sound production position of the speaker by the first microphone, that is, the volume of the speaker when playing the file to be played is not reduced due to the influence of the foreign object. In addition, if the volume parameter of the speaker of the terminal device only supports multi-level adjustment, the volume interval between each level is a certain value, such as 1(db), 5(db) or other interval values; for example, in the foregoing implementation scenario, the volume interval between each level is 5(db), and theoretically, the terminal device may adjust the volume parameter of the speaker so that the volume of the speaker actually playing the file to be played becomes 84(db), but the volume of the terminal device after adjustment cannot be set to 84(db), the terminal device should adjust the volume parameter of the speaker so that the volume of the speaker actually playing the file to be played becomes 85(db), that is, the requirement that the volume of the speaker when playing the file to be played is not reduced due to the influence of the foreign object and the capability of the terminal device itself to adjust the volume parameter of the speaker is met.
Referring to fig. 3, fig. 3 is a flowchart illustrating a sound adjusting method of a terminal device according to a third embodiment of the present invention. The difference from the second embodiment is that the terminal device in this embodiment further includes a second microphone, and since it is determined whether a foreign object exists at the sound emission position of the speaker of the terminal device, the determination may be performed by the first microphone collecting the volume of the sound signal of the speaker, and the first microphone may have a fault or a flaw, which may cause the volume of the sound signal collected by the first microphone not to be representative, which may cause a misdetermination result, and at this time, the further determination may be performed by the second microphone collecting the volume of the sound signal of the speaker. The sound adjusting method of the terminal device in the embodiment includes:
s301: the terminal equipment acquires a first acquisition audio signal acquired by the first microphone when the first microphone emits a preset volume.
S302: and comparing the first collected audio signal with a prestored first preset audio signal, wherein the first preset audio signal is the audio signal collected by the first microphone when the volume is preset, and no foreign matter exists in the sounding position of the loudspeaker and the first preset audio signal is sent.
In this implementation scenario, steps S301 to S302 provided in this embodiment are substantially similar to steps S201 to S202 in the first embodiment of the sound adjusting method for a terminal device provided in this application, and are not described again here.
S303: and when the first acquisition audio signal is smaller than the first preset audio signal and the signal difference between the first acquisition audio signal and the first preset audio signal exceeds a preset threshold value, acquiring a second acquisition audio signal acquired by the second microphone when the loudspeaker emits preset volume.
It can be understood that when the first microphone works normally, and the first collected audio signal is smaller than the first preset audio signal, and the signal difference between the first collected audio signal and the first preset audio signal exceeds the preset threshold, it can be said that a foreign object exists at the sounding position of the speaker at this time; when the first microphone has a fault or a flaw, even if the first collected audio signal is smaller than the first preset audio signal and the signal difference between the first collected audio signal and the first preset audio signal exceeds the preset threshold, it cannot be said that a foreign object exists at the sounding position of the speaker at the moment. Therefore, in this embodiment, a second collected audio signal collected by the second microphone when the speaker emits a preset volume should also be obtained. Similar to the method for acquiring the first collected audio signal by the terminal device when the terminal device acquires the preset volume emitted by the loudspeaker by the first microphone, the terminal device in the application can also acquire the second collected audio signal in advance. In an implementation scenario, a preset audio file is stored in the terminal device, and the speaker plays the preset audio file with a preset volume, so that the first microphone can acquire a first acquisition audio signal sent by the speaker, and at this time, the second microphone can acquire an audio signal sent by the speaker, that is, the second acquisition audio signal.
S304: and comparing the second collected audio signal with a prestored second preset audio signal, wherein the second preset audio signal is the audio signal collected by the second microphone when the volume is preset, and no foreign matter exists in the sounding position of the loudspeaker and the second preset audio signal is sent.
It can be understood that, because the terminal device stores the preset audio file, the speaker can play the preset audio file with the preset volume, so that when it is determined that no foreign object exists at the sounding position of the speaker, a user or a designer can play the preset audio file with the preset volume through the speaker, and the second microphone acquires an audio signal sent by the speaker, that is, the second preset audio signal, and stores the second preset audio signal in the terminal device in advance. In the last step S303, the terminal device obtains a second collected audio signal collected when the speaker emits the preset volume in the current state, and the terminal device prestores the second preset audio signal collected when the speaker emits the preset volume without a foreign object at the sound emission position of the second microphone, so that the second collected audio signal can be compared with the prestored second preset audio signal.
S305: and when the second collected audio signal is smaller than the second preset audio signal and the signal difference between the second collected audio signal and the second preset audio signal exceeds the preset threshold value, judging that foreign matters exist at the sounding position of the loudspeaker.
It is understood that the contents of the comparison between the second collected audio signal and the second preset audio signal and the corresponding determination in step S305 of the present embodiment are substantially similar to the contents of the comparison between the first collected audio signal and the first preset audio signal and the corresponding determination in step S203 of the sound adjusting method of the terminal device provided in the present application. Therefore, the foreign object is judged to exist at the sounding position of the terminal device loudspeaker only when the signal difference between the first collected audio signal and the first preset audio signal exceeds the preset threshold value and the signal difference between the second collected audio signal and the second preset audio signal also exceeds the preset threshold value.
S306: and when the sound production position of the loudspeaker is judged to have the foreign matter, a foreign matter clearing reminding signal is sent.
S307: and when the terminal equipment sends out a foreign matter removal reminding signal exceeding the preset time, repeatedly executing the step of judging whether foreign matters exist at the sounding position of the loudspeaker of the terminal equipment.
S308: and when the sound production position of the loudspeaker is judged to still have the foreign matter, adjusting the volume parameter of the loudspeaker to increase the volume of the loudspeaker when the file to be played is played.
In this implementation scenario, steps S306 to S308 provided in this embodiment are substantially similar to steps S102 to S104 in the first embodiment of the sound adjusting method for a terminal device provided in this application, and are not described here again.
In the embodiment, after the sound volume of the sound signal of the loudspeaker is collected by the first microphone, the existence of foreign matters at the sound production position of the loudspeaker is judged, then, by collecting a second collected audio signal when the loudspeaker emits a preset volume under the current state by the second microphone, comparing the first preset audio signal with a second preset audio signal collected when the second microphone pre-stored by the terminal device emits a preset volume without a foreign object at the sound emitting position of the loudspeaker, therefore, whether foreign matters exist at the sound production position of the loudspeaker can be judged by collecting the volume of the sound signal of the loudspeaker through the second microphone, and whether the situation that the volume of the sound signal of the loudspeaker is not representative due to the fact that the first microphone has own faults or flaws can be further judged, so that the judgment result of whether the foreign matters exist at the sound production position of the loudspeaker is more accurate.
Referring to fig. 4, fig. 4 is a flowchart illustrating a sound adjusting method of a terminal device according to a fourth embodiment of the present invention. The sound adjusting method of the terminal device in the embodiment includes:
s401: the terminal equipment judges whether foreign matters exist in the sounding position of the loudspeaker of the terminal equipment.
S402: and when the sound production position of the loudspeaker is judged to have the foreign matter, a foreign matter clearing reminding signal is sent.
S403: and when the terminal equipment sends out a foreign matter removal reminding signal exceeding the preset time, repeatedly executing the step of judging whether foreign matters exist at the sounding position of the loudspeaker of the terminal equipment.
In this implementation scenario, steps S401 to S403 provided in this embodiment are substantially similar to steps S101 to S103 in the first embodiment of the sound adjusting method for a terminal device provided in this application, and are not described again here.
S404: and when the sound production position of the loudspeaker is judged to still have the foreign matter, transmitting a distance detection signal and acquiring a distance feedback signal corresponding to the distance detection signal, and judging whether the terminal equipment is in the closed space or not according to the distance feedback signal.
It can be understood that the foreign matter existing at the sound production position of the speaker in the application can be dust or scrap iron and the like blocking the foreign matter at the sound production position of the speaker, and also can be a separation wall existing at the sound production position of the speaker due to the narrow and small closed environment of the environment where the terminal device is located, and the separation wall enables the first microphone and/or the second microphone to be blocked when receiving the sound emitted by the speaker, so that the collected volume is weak. In order to further determine whether the terminal device is located in the enclosed space, after determining that the foreign object still exists at the sound generating position of the speaker, the terminal device of this embodiment determines whether the terminal device is located in the enclosed space according to the distance feedback signal by transmitting the distance detection signal and acquiring the distance feedback signal corresponding to the distance detection signal. In a specific implementation scenario, after the fact that foreign matters still exist in the sounding position of the loudspeaker is judged, the terminal device can be triggered to emit a distance detection signal, the distance detection signal is an ultrasonic signal, and due to the fact that the wavelength length and the diffraction of the ultrasonic are poor, the ultrasonic can be directionally and linearly transmitted in the same uniform medium, and energy is concentrated; because the distance detection signal has the advantages of good directivity and easy reflection, a reflected signal can be formed after the distance detection signal meets an obstacle, and the terminal equipment can further acquire the reflected signal, namely a distance feedback signal corresponding to the distance detection signal; when the environment of the terminal equipment is a wide environment and the sounding position of the loudspeaker of the terminal equipment does not have a 'separation wall' or the separation wall is far away, the terminal equipment cannot acquire the distance feedback signal or the acquired distance feedback signal is very weak, and when the environment of the terminal equipment is a narrow closed environment, the distance feedback signal acquired by the terminal equipment is very strong; therefore, whether the terminal equipment is in the closed space can be judged according to the magnitude of the distance feedback signal. In addition, because the size of the enclosed space has a great influence on the signal strength of the distance feedback signal acquired by the terminal device, generally, the smaller the enclosed space is, the greater the signal strength of the distance feedback signal acquired by the terminal device after transmitting the same distance detection signal is, and therefore, the present application can further determine in what enclosed space the terminal device is, for example, in a clothes pocket with a smaller space, or in a larger handbag, or in a larger room, and the like, according to the size of the distance feedback signal. Of course, in other implementation scenarios, the distance detection signal may also be an infrasonic wave or a general sonic wave signal or a corresponding signal sent by a distance sensor on a terminal such as a mobile phone for determination.
S405: if so, adjusting the volume parameter of the loudspeaker to increase the volume of the loudspeaker when playing the file to be played.
In a specific implementation scenario, the terminal device is a mobile phone, and after the mobile phone is determined to be in the clothes pocket according to the magnitude of the distance feedback signal, in order to prevent a user from missing an incoming call because the incoming call cannot be heard by the user due to a small incoming call, the volume parameter of the speaker can be adjusted, so that the volume of the speaker is increased when the mobile phone is in an incoming call. In another specific implementation scenario, the terminal device is a mobile phone, and the mobile phone is placed under a pillow when a user sleeps, so as to prevent the alarm clock set by the user from being unable to wake up the mobile phone, the volume parameter of the speaker can be adjusted, so that the volume of the speaker is increased when the alarm is sounded.
In this embodiment, it can be further confirmed that the foreign matter is dust or scrap iron and the like blocking the foreign matter at the speaker sound production position after judging that the sound production position of the speaker of the terminal device has the foreign matter, or because the environment where the terminal device is located is a narrow and small closed environment, and the volume of the speaker when playing a file to be played is increased after confirming that the terminal device is located in the closed space, so that the user is prevented from being unable to hear the sound played by the speaker when the terminal device is located in the closed space, and the user has better use experience.
Please refer to fig. 5 and fig. 6, wherein fig. 5 is a flowchart illustrating a fifth embodiment of a sound adjusting method of a terminal device according to the present invention, and fig. 6 is a flowchart illustrating a sixth embodiment of the sound adjusting method of the terminal device according to the present invention. The sound adjusting method of the terminal device in the fifth embodiment includes:
s501: the terminal equipment judges whether foreign matters exist in the sounding position of the loudspeaker of the terminal equipment.
S502: and when the sound production position of the loudspeaker is judged to have foreign matters, the loudspeaker of the terminal equipment emits prompt sound.
S503: and when the prompt tone emitted by the loudspeaker of the terminal equipment exceeds the preset time, repeatedly executing the step of judging whether foreign matters exist at the sound emission position of the loudspeaker of the terminal equipment.
S504: and when the sound production position of the loudspeaker is judged to still have the foreign matter, adjusting the volume parameter of the loudspeaker to increase the volume of the loudspeaker when the file to be played is played.
In this implementation scenario, steps S501 to S504 provided in this embodiment are substantially similar to steps S101 to S104 in the first embodiment of the sound adjustment method for a terminal device provided in this application, except that the foreign object removal alert signal in this embodiment is an alert sound emitted by a speaker of the terminal device. The prompt tone can be set and stored in advance by a designer or a user, such as a specific music or song, or a voice recorded in advance by the user; when the sound production position of the loudspeaker is judged to have foreign matters, the loudspeaker of the terminal equipment can be triggered to produce the prompt sound.
The terminal device in the sixth embodiment further includes a display, and the sound adjustment method of the terminal device includes:
s601: the terminal equipment judges whether foreign matters exist in the sounding position of the loudspeaker of the terminal equipment.
S602: and when the sound production position of the loudspeaker is judged to have the foreign matter, a display of the terminal equipment displays a prompt message.
S603: and when the display of the terminal equipment displays the prompt message for more than preset time, repeatedly executing the step of judging whether foreign matters exist at the sounding position of the loudspeaker of the terminal equipment.
S604: and when the sound production position of the loudspeaker is judged to still have the foreign matter, adjusting the volume parameter of the loudspeaker to increase the volume of the loudspeaker when the file to be played is played.
In this implementation scenario, steps S601 to S604 in this embodiment are substantially similar to steps S101 to S104 in the first embodiment of the sound adjustment method for a terminal device in this application, except that the terminal device further includes a display, and the foreign object removal alert signal is a prompt message displayed by the display of the terminal device. The prompting message can be set and stored in advance by a designer or a user, and when the fact that the foreign matter exists in the sounding position of the loudspeaker is judged, the prompting message displayed by the display of the terminal equipment can be triggered.
In other embodiments, the terminal device may prompt the user to remove the foreign object through both the prompt tone emitted by the speaker and the prompt message displayed by the display, so that the user can receive the prompt in time through the prompt tone, and when the user cannot perform the removal processing temporarily, the user may also perform an operation of removing the foreign object at an appropriate time through the prompt message displayed by the display.
Referring to fig. 7 and fig. 8, fig. 7 is a schematic structural diagram of a terminal device according to a first embodiment of the present invention, and fig. 8 is a schematic structural diagram of a control apparatus in a terminal device according to an embodiment of the present invention. Theterminal device 70 in this embodiment comprises aspeaker 700 and acontrol apparatus 702 coupled to thespeaker 700, thecontrol apparatus 702 comprising amemory 7020 and aprocessor 7022 coupled to each other, thememory 7020 being configured to store computer instructions and data, theprocessor 7022 executing the computer instructions being configured to implement the steps of:
theprocessor 7022 determines whether or not a foreign substance is present at the sound emission position of thespeaker 700 of theterminal device 70; when the sound production position of thespeaker 700 is judged to have the foreign matter, theprocessor 7022 controls theterminal device 70 to send a foreign matter removal reminding signal; when theterminal device 70 sends out the foreign substance removal reminding signal for more than the preset time, theprocessor 7022 repeatedly performs the step of judging whether the sound production position of thespeaker 700 of theterminal device 70 has the foreign substance; when it is determined that the foreign object still exists at the sound emitting position of thespeaker 700, theprocessor 7022 adjusts the volume parameter of thespeaker 700, so that the volume of thespeaker 700 when playing the file to be played becomes larger.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a terminal device according to a second embodiment of the present invention. In the present embodiment, theterminal device 70 includes afirst microphone 704 coupled with thecontrol apparatus 702; thememory 7020 stores a first preset audio signal, which is an audio signal collected by thefirst microphone 704 when there is no foreign object at the sound generating position of thespeaker 700 and a preset volume is generated; theprocessor 7022 executes the above method for determining whether a foreign object exists at the sound emission position of thespeaker 700 of theterminal device 70, which specifically includes:
theprocessor 7022 obtains a first captured audio signal captured by thefirst microphone 704 at a preset volume emitted by thespeaker 700; theprocessor 7022 compares the first collected audio signal with a first preset audio signal prestored in thememory 7020; when the first collected audio signal is smaller than the first preset audio signal and the signal difference between the first collected audio signal and the first preset audio signal exceeds the preset threshold, theprocessor 7022 determines that a foreign object exists at the sound generating position of thespeaker 700.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a terminal device according to a third embodiment of the present invention. The difference from the second embodiment of theterminal device 70 is that theterminal device 70 in this embodiment further comprises asecond microphone 706 coupled to the control means 702; thememory 7020 stores a second preset audio signal, where the second preset audio signal is an audio signal collected by thesecond microphone 706 when there is no foreign object at the sound generating position of thespeaker 700 and a preset volume is generated; the processor executes the method that when the first collected audio signal is smaller than the first preset audio signal and the signal difference between the first collected audio signal and the first preset audio signal exceeds the preset threshold, theprocessor 7022 determines that the foreign object exists at the sounding position of thespeaker 700, and specifically includes:
theprocessor 7022 obtains a second captured audio signal captured by thesecond microphone 706 at a preset volume emitted by thespeaker 700; theprocessor 7022 compares the second collected audio signal with a second preset audio signal that is prestored; when the second collected audio signal is smaller than the second preset audio signal and the signal difference between the second collected audio signal and the second preset audio signal exceeds the preset threshold, theprocessor 7022 determines that a foreign object exists at the sound generating position of thespeaker 700.
Referring to fig. 11, fig. 11 is a schematic structural diagram of a terminal device according to a fourth embodiment of the present invention. Unlike the above-mentioned embodiment, theterminal device 70 in this embodiment further includes adisplay 708 coupled to thecontrol device 702, and thedisplay 708 may be configured to display a prompt message, which is a clear foreign object reminder.
Theterminal device 70 in the present application may be any device including a speaker, for example, an electronic device such as a sound box, a radio, a recorder, or an intelligent device such as a mobile phone, a tablet computer, or a desktop computer.
The specific process of theprocessor 7022 in theterminal device 70 embodiment of the present application for implementing the above functions may refer to the above method embodiment.
Referring to fig. 12, fig. 12 is a diagram illustrating an apparatus with a storage function according to the present invention. Thedevice 120 having the storage function stores thereinprogram data 1200, and theprogram data 1200 can be executed to implement the sound adjusting method of the terminal apparatus as described above.
Thedevice 120 with storage function may be a storage chip in a terminal, a hard disk, or other readable and writable storage tool such as a mobile hard disk, a flash disk, an optical disk, etc., and may also be a server, etc.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus, and device may be implemented in other ways. For example, the above-described device architecture implementations are merely illustrative, and for example, a division of a module or a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (5)

CN201810983693.9A2018-08-272018-08-27Sound adjusting method, terminal equipment and device with storage functionActiveCN109218913B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810983693.9ACN109218913B (en)2018-08-272018-08-27Sound adjusting method, terminal equipment and device with storage function

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810983693.9ACN109218913B (en)2018-08-272018-08-27Sound adjusting method, terminal equipment and device with storage function

Publications (2)

Publication NumberPublication Date
CN109218913A CN109218913A (en)2019-01-15
CN109218913Btrue CN109218913B (en)2021-08-31

Family

ID=64985490

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810983693.9AActiveCN109218913B (en)2018-08-272018-08-27Sound adjusting method, terminal equipment and device with storage function

Country Status (1)

CountryLink
CN (1)CN109218913B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111654800B (en)*2020-05-282021-09-17维沃移动通信有限公司Speaker control method, speaker control device, electronic device, and medium
CN113746976B (en)*2021-07-232023-03-28荣耀终端有限公司Audio module detection method, electronic device and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106878880A (en)*2017-03-032017-06-20广东欧珀移动通信有限公司 Dust removal method, device and terminal equipment for loudspeaker sound hole
CN106878909A (en)*2017-03-032017-06-20广东欧珀移动通信有限公司 Loudspeaker sound hole blockage treatment method, device and terminal equipment
CN107290750A (en)*2017-07-172017-10-24青岛海信移动通信技术股份有限公司Method and terminal that audio hole is blocked are detected in a kind of terminal
CN108124042A (en)*2017-12-192018-06-05厦门美图移动科技有限公司Device fault detection method and device and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP4283287B2 (en)*2006-06-052009-06-24株式会社オリンピア Game machine
CN102957790A (en)*2011-08-252013-03-06北京爱国者信息技术有限公司Automatic regulation module of mobile terminal and implementation method thereof
CN103002143B (en)*2012-11-292014-12-24广东欧珀移动通信有限公司Control method of mobile phone incoming calls and short messages
CN106658331A (en)*2016-12-302017-05-10维沃移动通信有限公司Loudspeaker detection method and mobile terminal
CN107509153B (en)*2017-08-182020-01-14Oppo广东移动通信有限公司Detection method and device of sound playing device, storage medium and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106878880A (en)*2017-03-032017-06-20广东欧珀移动通信有限公司 Dust removal method, device and terminal equipment for loudspeaker sound hole
CN106878909A (en)*2017-03-032017-06-20广东欧珀移动通信有限公司 Loudspeaker sound hole blockage treatment method, device and terminal equipment
CN107290750A (en)*2017-07-172017-10-24青岛海信移动通信技术股份有限公司Method and terminal that audio hole is blocked are detected in a kind of terminal
CN108124042A (en)*2017-12-192018-06-05厦门美图移动科技有限公司Device fault detection method and device and mobile terminal

Also Published As

Publication numberPublication date
CN109218913A (en)2019-01-15

Similar Documents

PublicationPublication DateTitle
CN111917489B (en)Audio signal processing method and device and electronic equipment
CN105282654A (en)Headphone listening apparatus
WO2020019821A1 (en)Microphone hole-blockage detection method and related product
CN1679314A (en)Device and method for overriding a do-not-disturb mode
CN108521621A (en) Signal processing method, device, terminal, earphone and readable storage medium
CN101523881A (en)Method for providing an alert signal
WO2014206275A1 (en)Method and devices for outputting an audio file
CN109062535A (en)Sound production control method and device, electronic device and computer readable medium
CN104506991B (en)A kind of information prompting method and device
CN107621933B (en)Audio playing method and device and related medium product
CN113885827B (en) Audio playback method, device, electronic device, computer readable medium and product
CN109218913B (en)Sound adjusting method, terminal equipment and device with storage function
CN106412259A (en) Mobile terminal call control method, device and mobile terminal
CN112291689A (en) Sound playback method, wearable device and readable storage medium
CN110517711A (en)Audio playing method and device, storage medium and electronic equipment
CN114845213A (en)Method for adjusting volume of terminal and terminal
CN106412188A (en) A reminder method and device
CN104333649B (en)The method and apparatus of speech message is presented in communication terminal
CN103095916B (en)A kind of incidence prompt method and user terminal
CN103853646A (en)Called prompting system and method
CN105681950A (en)Prompting method, prompting device, earphone and terminal
CN112312273B (en) Sound playing method, sound receiving method and electronic device
CN104980583A (en)Event reminding method and terminal
CN103813228A (en)Earphones and activation method thereof
WO2016028847A1 (en)Binaural recording system and earpiece set

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information
CB02Change of applicant information

Address after:518000 1-10 Floor, Building A2, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Applicant after:Our Internet Network Technology (Shenzhen) Co., Ltd.

Address before:518000 1-10 Floor, Building A2, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Shenzhen City, Guangdong Province

Applicant before:Our Internet Network Technology (Shenzhen) Co., Ltd.

GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp