CN109040937B - Microphone blockage reminding method and related device - Google Patents

Microphone blockage reminding method and related device Download PDF

Info

Publication number
CN109040937B
CN109040937B CN201810818377.6A CN201810818377A CN109040937B CN 109040937 B CN109040937 B CN 109040937B CN 201810818377 A CN201810818377 A CN 201810818377A CN 109040937 B CN109040937 B CN 109040937B
Authority
CN
China
Prior art keywords
voice data
microphone
determining
decibel value
medium
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
CN201810818377.6A
Other languages
Chinese (zh)
Other versions
CN109040937A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810818377.6A priority Critical patent/CN109040937B/en
Publication of CN109040937A publication Critical patent/CN109040937A/en
Application granted granted Critical
Publication of CN109040937B publication Critical patent/CN109040937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/004Monitoring arrangements; Testing arrangements for microphones
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01HMEASUREMENT OF MECHANICAL VIBRATIONS OR ULTRASONIC, SONIC OR INFRASONIC WAVES
    • G01H17/00Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves, not provided for in the preceding groups

Abstract

The application discloses microphone blockage reminding method and related device, which are applied to electronic equipment, wherein the electronic equipment comprises a microphone, and the microphone comprises: when detecting that the electronic equipment collects voice data, acquiring a decibel value of the voice data; when detecting that the decibel value of the voice data meets a preset condition, determining that the microphone is blocked; determining a medium blocking the microphone, and outputting a first notification message for prompting a user that the microphone is blocked, the first notification message including information about the medium. The method and the device are beneficial to timely informing the user that the microphone is blocked when the microphone is detected to be blocked and informing the user of the medium for blocking the microphone.

Description

Microphone blockage reminding method and related device
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a microphone jam reminding method and a related device.
Background
With the rapid development and the increasing popularity of the technology of the intelligent terminal (such as a smart phone), the technology of the intelligent terminal is now an indispensable electronic product in the daily life of users. The electronic device comprises at least one microphone for recording the voice data of the user, but when the microphone is blocked, the user cannot perceive the voice data, so that the recorded voice data has poor quality.
Disclosure of Invention
The embodiment of the application provides a microphone blockage reminding method and a related device, which are beneficial to reminding a user in time when the microphone is detected to be blocked and informing the user of the blockage of a medium of the microphone.
In a first aspect, an embodiment of the present application provides a microphone blockage reminding method, which is applied to an electronic device, where the electronic device includes a microphone, and the method includes:
when detecting that the electronic equipment collects voice data, acquiring a decibel value of the voice data;
when detecting that the decibel value of the voice data meets a preset condition, determining that the microphone is blocked;
determining a medium blocking the microphone, and outputting a first notification message for prompting a user that the microphone is blocked, the first notification message including information about the medium.
In a second aspect, an embodiment of the present application provides a microphone blockage warning device, which is applied to an electronic device, where the electronic device includes a microphone, and the microphone blockage warning device includes an obtaining unit, a determining unit, and an output unit,
the acquisition unit is used for acquiring a decibel value of the voice data when the electronic equipment is detected to acquire the voice data;
the determining unit is used for determining that the microphone is blocked when detecting that the decibel value of the voice data meets a preset condition;
the output unit is used for determining a medium blocking the microphone and outputting a first notification message for prompting a user that the microphone is blocked, wherein the first notification message comprises related information of the medium.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
It can be seen that, in the embodiment of the present application, an electronic device first obtains a decibel value of voice data when detecting that the electronic device collects the voice data, then determines that a microphone is blocked when detecting that the decibel value of the voice data satisfies a preset condition, and finally determines that a medium blocking the microphone is blocked, and outputs a first notification message for prompting a user that the microphone is blocked, where the first notification message includes related information of the medium. Because the electronic equipment analyzes the collected voice data to determine the decibel value of the voice data in the process of collecting the voice data, when the decibel value of the voice data is detected to meet the preset condition, the blockage of the microphone of the electronic equipment can be determined, and the medium blocking the microphone can be further determined, so that the microphone blocking and blocking of a user can be reminded, the user can take corresponding measures in time, and the quality of the collected voice data is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
FIG. 1A is a schematic diagram of a program runtime space of a smart phone;
FIG. 1B is a system architecture diagram of an android system;
fig. 2 is a schematic flowchart of a microphone blockage reminding method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another microphone blockage reminding method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another microphone blockage reminding method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a block diagram of functional units of a microphone blockage warning device according to an embodiment of the present disclosure.
Detailed description of the invention
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
As shown in fig. 1A, currently, an electronic device such as a smart phone is generally provided with a program running space, where the program running space includes a user space and an operating system space, where the user space runs one or more application programs, and the one or more application programs are third-party application programs installed in the electronic device.
The electronic device can specifically run an Android system, a mobile operating system iOS developed by apple Inc., and the like, and the electronic device is not limited herein. As shown in fig. 1B, for example that the electronic device runs an Android system, the corresponding user space includes an Application layer (Applications) in the Android system, and the operating system space may include an Application Framework layer (Application Framework) in the Android system, a system Runtime library layer (including system Runtime Libraries and Android Runtime runtimes), and a Linux Kernel layer (Linux Kernel). The application layer comprises various application programs which are directly interacted with the user or service programs which are written by Java language and run in the background. For example, programs that implement common basic functions on smartphones, such as Short Messaging Service (SMS) notes, phone dialing, picture viewer, calendar, games, maps, World Wide Web (Web) browser, and other applications developed by developers. The application framework layer provides a series of class libraries required by Android application development, can be used for reusing components, and can also realize personalized extension through inheritance. And the system operation library layer is a support of an application program framework and provides services for each component in the Android system. The system operation library layer is composed of a system class library and Android operation. The Android runtime comprises two parts, namely a core library and a Dalvik virtual machine. The Linux kernel layer is used for realizing core functions such as hardware device driving, process and memory management, a network protocol stack, power management, wireless communication and the like.
Electronic devices may include various handheld devices, vehicle-mounted devices, wearable devices (e.g., smartwatches, smartbands, pedometers, etc.), computing devices or other processing devices connected to wireless modems, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), and so forth, having wireless communication capabilities. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The following describes embodiments of the present application in detail.
Referring to fig. 2, fig. 2 is a schematic flowchart of a microphone blockage reminding method according to an embodiment of the present application, applied to an electronic device, where the electronic device includes a microphone, and the microphone blockage reminding method includes:
s201, when the electronic equipment detects that the electronic equipment collects voice data, the decibel value of the voice data is obtained.
The microphone blockage reminding method aims at electronic equipment with a single microphone, and a plurality of electronic equipment on the current market only have one microphone and are usually located at the bottom of the electronic equipment, so that when the microphone is blocked, the quality of collected voice data is reduced, and the functions of recording, conversation and the like of the electronic equipment are imaged.
The specific expression that the microphone is blocked can be that the through hole for collecting sound by the microphone is blocked, the medium for blocking the through hole can be dust, water, clothes, skin and other media, and the medium for blocking the microphone can be judged according to the collected voice data.
When the electronic equipment is detected to collect the voice data, the voice data can be collected while the decibel value of the collected voice data is determined, and then the quality of the collected voice data can be determined by analyzing the decibel value of the collected voice data.
S202, when the electronic equipment detects that the decibel value of the voice data meets a preset condition, the microphone is determined to be blocked.
When the microphone is blocked, the decibel value of the collected voice data is lower than that of the voice data collected when the microphone is not blocked, so that the decibel value of the voice data is reduced probably because the microphone is blocked and probably because of other reasons, whether the microphone is blocked or not is judged by judging whether the decibel value of the voice data meets a preset condition or not, the preset condition can be one or more, and the preset condition can be different because of different scenes where the electronic equipment is located.
S203, the electronic device determines a medium blocking the microphone, and outputs a first notification message for prompting a user that the microphone is blocked, wherein the first notification message comprises related information of the medium.
Wherein, after detecting that the microphone is clogged, the medium clogging the microphone may be determined, and a notification message of the clogged microphone may be output to remind the user that the microphone is clogged and the medium clogging the microphone, so that the user may know that the microphone is clogged and the medium clogging the microphone.
It can be seen that, in the embodiment of the present application, an electronic device first obtains a decibel value of voice data when detecting that the electronic device collects the voice data, then determines that a microphone is blocked when detecting that the decibel value of the voice data satisfies a preset condition, and finally determines that a medium blocking the microphone is blocked, and outputs a first notification message for prompting a user that the microphone is blocked, where the first notification message includes related information of the medium. Because the electronic equipment analyzes the collected voice data to determine the decibel value of the voice data in the process of collecting the voice data, when the decibel value of the voice data is detected to meet the preset condition, the blockage of the microphone of the electronic equipment can be determined, and the medium blocking the microphone can be further determined, so that the microphone blocking and blocking of a user can be reminded, the user can take corresponding measures in time, and the quality of the collected voice data is improved.
In one possible example, the determining a medium clogging the microphone comprises: acquiring partial voice data of which the decibel value is smaller than the preset decibel value; acquiring sound characteristics of the partial voice data, wherein the sound characteristics comprise tone information; and determining a medium blocking the microphone according to the tone color information.
The method comprises the steps of determining whether a microphone is blocked or not by presetting a decibel value, acquiring partial voice data of which the decibel value is smaller than the preset decibel value in the voice data, further acquiring the sound characteristics of the partial voice data, wherein the sound characteristics comprise the tone color information of the emitted sound, and determining the specific medium for blocking the microphone according to the tone color information.
The timbre refers to that different sound frequencies always have distinctive characteristics in terms of waveform, and when the microphone is blocked by different media, the timbre of the collected voice data is different.
As can be seen, in this example, a part of the voice data with a decibel value smaller than a preset decibel value is obtained first, the part of the voice data is the voice data collected when the microphone is plugged, and the medium plugging the microphone can be determined by obtaining the sound characteristics of the part of the voice data, such as the tone information, so that the user can know the medium plugging the microphone.
In one possible example, the determining a medium clogging the microphone comprises: acquiring partial voice data of which the decibel value is smaller than a preset decibel value; determining an average decibel value of the portion of voice data; determining a difference between the average decibel value and the preset decibel value; and determining the medium blocking the microphone according to the difference value.
The method comprises the steps of acquiring partial voice data of which the decibel value is smaller than a preset decibel value in the voice data, calculating a difference value between the average decibel value and the preset decibel value after determining the average decibel value of the partial voice data, and determining what medium blocks a microphone according to the difference value.
It can be seen that, in this example, a part of the voice data smaller than the preset decibel value is obtained first, and the medium blocking the microphone can be determined by calculating a difference between the average decibel value of the part of the voice data and the preset decibel value.
In one possible example, the determining a medium clogging the microphone comprises: the method comprises the steps of obtaining a plurality of voice data templates prestored in the electronic equipment, wherein the voice data templates comprise voice data collected when a microphone is blocked by a plurality of media; determining a target voice data template matched with the voice data in the voice data template; and determining that the medium corresponding to the target voice data is the medium blocking the microphone.
The method comprises the steps that electronic equipment acquires various pre-stored voice data templates, the voice data templates are voice data collected when a microphone is blocked by various media, the collected voice data are compared with the voice data templates, a target voice data template matched with the voice data in the voice data template is determined, and the media blocking the microphone can be determined according to the media corresponding to the target voice data template.
As can be seen, in this example, the voice data template acquired when the microphone is blocked by multiple media is pre-stored in the electronic device, so that the acquired voice data and the voice data template can be matched to obtain the target voice data template, and the medium blocking the microphone can be determined according to the target voice data template.
In one possible example, the determining that the microphone is jammed when detecting that a decibel value of the voice data satisfies a preset condition includes: determining part of voice data of which decibel values are smaller than the preset decibel value in the voice data; determining a first sampling duration of the voice data and a second sampling duration of the portion of voice data; determining that the microphone is blocked when it is detected that a ratio of the second sampling duration to the first sampling duration is greater than a preset ratio.
When determining whether the microphone is blocked, acquiring partial voice data of which the decibel value is smaller than a preset decibel in the voice data, determining a first sampling time length of the voice data and a second sampling time length of the partial voice data, and when the ratio of the second sampling time length to the first sampling time length is larger than the preset ratio, determining that the microphone is blocked. For example, the first sampling period is five minutes, the preset percentage is fifty percent, and when the second sampling period is three minutes, the percentage is sixty percent and is greater than the preset percentage fifty percent, so that it is determined that the microphone is clogged.
As can be seen, in this example, by obtaining the partial voice data with the decibel value smaller than the preset decibel value, the second sampling duration corresponding to the partial voice data can be determined, the time ratio between the second sampling duration and the first sampling duration is calculated, and by determining whether the time ratio is greater than the preset ratio, it is determined whether the microphone is blocked, so that the accuracy is high.
In one possible example, the determining that the microphone is jammed when detecting that a decibel value of the voice data satisfies a preset condition includes: determining the duration of part of voice data of which the decibel value is smaller than the preset decibel value in the voice data; and when the time length is detected to be longer than the preset time length, determining that the microphone is blocked.
The electronic device may determine a duration of a part of the voice data with a decibel value smaller than a preset decibel value, determine that the microphone is blocked when the duration is greater than the preset duration, for example, the preset duration is two minutes, and determine that the microphone is blocked when it is detected that a decibel value of voice data exceeding two minutes is smaller than the preset decibel value in the collected voice data.
It can be seen that, in this example, the duration of a part of voice data with a decibel value smaller than a preset decibel value is determined, and then whether the duration is greater than the preset duration is determined, so as to determine whether the microphone is blocked, and when the duration is greater than the preset duration, it is determined that the microphone is blocked, the determination process is simple, and it can be quickly determined whether the microphone is blocked, so as to notify the user in time.
In one possible example, after the outputting of the first notification message prompting the user that the microphone is jammed, the method further comprises: determining a countermeasure to address the microphone being plugged in accordance with the medium; outputting a second notification message including the countermeasure.
After the medium blocking the microphone is determined, a countermeasure for solving the blockage of the microphone can be determined according to the medium, specifically, the countermeasure for solving the blockage of the microphone can be determined when the electronic device is determined to be blocked by the medium according to the historical usage record of the electronic device, or a countermeasure for solving the blockage of the microphone under the condition that the microphone is blocked by the medium can be obtained in the network, so that the countermeasure can be obtained.
It can be seen that, in this example, after the notification message for prompting the user that the microphone is blocked is output, the countermeasure for solving the blockage of the microphone by the medium can be determined by searching the history and the network query according to the medium of the blocked microphone, which is beneficial to help the user to solve the situation that the microphone is blocked in time.
Referring to fig. 3, fig. 3 is a schematic flowchart of a microphone blockage reminding method according to an embodiment of the present application, and the method is applied to an electronic device, where the electronic device includes a microphone. As shown in the figure, the microphone blockage reminding method comprises the following steps:
s301, when the electronic equipment detects that the electronic equipment collects voice data, the decibel value of the voice data is obtained.
S302, when detecting that the decibel value of the voice data meets a preset condition, the electronic device determines that the microphone is blocked.
And S303, the electronic equipment acquires a plurality of voice data templates prestored in the electronic equipment, wherein the voice data templates comprise voice data acquired when the microphone is blocked by a plurality of media.
S304, the electronic equipment determines a target voice data template matched with the voice data in the voice data template.
S305, the electronic equipment determines that the medium corresponding to the target voice data is the medium blocking the microphone.
S306, the electronic equipment outputs a first notification message for prompting the user that the microphone is blocked, wherein the first notification message comprises the relevant information of the medium.
It can be seen that, in the embodiment of the present application, an electronic device first obtains a decibel value of voice data when detecting that the electronic device collects the voice data, then determines that a microphone is blocked when detecting that the decibel value of the voice data satisfies a preset condition, and finally determines that a medium blocking the microphone is blocked, and outputs a first notification message for prompting a user that the microphone is blocked, where the first notification message includes related information of the medium. Because the electronic equipment analyzes the collected voice data to determine the decibel value of the voice data in the process of collecting the voice data, when the decibel value of the voice data is detected to meet the preset condition, the blockage of the microphone of the electronic equipment can be determined, and the medium blocking the microphone can be further determined, so that the microphone blocking and blocking of a user can be reminded, the user can take corresponding measures in time, and the quality of the collected voice data is improved.
In addition, the voice data template acquired under the condition that the microphone is blocked by various media is prestored in the electronic equipment, so that the acquired voice data and the voice data template can be matched to obtain a target voice data template, and the medium blocking the microphone can be determined according to the target voice data template.
Referring to fig. 4, fig. 4 is a schematic flowchart of a microphone blockage reminding method according to an embodiment of the present application, and the method is applied to an electronic device, where the electronic device includes a microphone. As shown in the figure, the microphone blockage reminding method comprises the following steps:
s401, when the electronic equipment detects that the electronic equipment collects voice data, the decibel value of the voice data is obtained.
S402, the electronic equipment determines the duration of part of the voice data of which the decibel value is smaller than the preset decibel value.
S403, when the electronic equipment detects that the time length is longer than a preset time length, the microphone is determined to be blocked.
S404, the electronic equipment acquires a plurality of voice data templates prestored in the electronic equipment, wherein the voice data templates comprise voice data collected when the microphone is blocked by a plurality of media.
S405, the electronic equipment determines a target voice data template matched with the voice data in the voice data template.
S406, the electronic equipment determines that the medium corresponding to the target voice data is the medium blocking the microphone.
S407, the electronic device outputs a first notification message for prompting a user that the microphone is blocked, wherein the first notification message includes information related to the medium.
It can be seen that, in the embodiment of the present application, an electronic device first obtains a decibel value of voice data when detecting that the electronic device collects the voice data, then determines that a microphone is blocked when detecting that the decibel value of the voice data satisfies a preset condition, and finally determines that a medium blocking the microphone is blocked, and outputs a first notification message for prompting a user that the microphone is blocked, where the first notification message includes related information of the medium. Because the electronic equipment analyzes the collected voice data to determine the decibel value of the voice data in the process of collecting the voice data, when the decibel value of the voice data is detected to meet the preset condition, the blockage of the microphone of the electronic equipment can be determined, and the medium blocking the microphone can be further determined, so that the microphone blocking and blocking of a user can be reminded, the user can take corresponding measures in time, and the quality of the collected voice data is improved.
In addition, the voice data template acquired under the condition that the microphone is blocked by various media is prestored in the electronic equipment, so that the acquired voice data and the voice data template can be matched to obtain a target voice data template, and the medium blocking the microphone can be determined according to the target voice data template.
In addition, the time length of partial voice data with the decibel value smaller than the preset decibel value is determined, whether the time length is larger than the preset time length or not is judged, whether the microphone is blocked or not is determined, and when the time length is detected to be larger than the preset time length, the microphone is determined to be blocked, the judgment process is simple, and whether the microphone is blocked or not can be determined quickly, so that a user can be informed timely.
Consistent with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 5, fig. 5 is a schematic structural diagram of an electronic device 500 provided in the embodiments of the present application, where the electronic device 500 runs one or more application programs and an operating system, as shown in the figure, the electronic device 500 includes a processor 510, a memory 520, a communication interface 530, and one or more programs 521, where the one or more programs 521 are stored in the memory 520 and configured to be executed by the processor 510, and the one or more programs 521 include instructions for performing the following steps;
when detecting that the electronic equipment collects voice data, acquiring a decibel value of the voice data;
when detecting that the decibel value of the voice data meets a preset condition, determining that the microphone is blocked;
determining a medium blocking the microphone, and outputting a first notification message for prompting a user that the microphone is blocked, the first notification message including information about the medium.
It can be seen that, in the embodiment of the present application, an electronic device first obtains a decibel value of voice data when detecting that the electronic device collects the voice data, then determines that a microphone is blocked when detecting that the decibel value of the voice data satisfies a preset condition, and finally determines that a medium blocking the microphone is blocked, and outputs a first notification message for prompting a user that the microphone is blocked, where the first notification message includes related information of the medium. Because the electronic equipment analyzes the collected voice data to determine the decibel value of the voice data in the process of collecting the voice data, when the decibel value of the voice data is detected to meet the preset condition, the blockage of the microphone of the electronic equipment can be determined, and the medium blocking the microphone can be further determined, so that the microphone blocking and blocking of a user can be reminded, the user can take corresponding measures in time, and the quality of the collected voice data is improved.
In one possible example, in connection with the determining to block the medium of the microphone, the instructions in the program are specifically for performing the following: acquiring partial voice data of which the decibel value is smaller than a preset decibel value; acquiring sound characteristics of the partial voice data, wherein the sound characteristics comprise tone information; and determining a medium blocking the microphone according to the tone color information.
In one possible example, in connection with the determining to block the medium of the microphone, the instructions in the program are specifically for performing the following: acquiring partial voice data of which the decibel value is smaller than a preset decibel value; determining an average decibel value of the portion of voice data; determining a difference between the average decibel value and the preset decibel value; and determining the medium blocking the microphone according to the difference value.
In one possible example, in connection with the determining to block the medium of the microphone, the instructions in the program are specifically for performing the following: the method comprises the steps of obtaining a plurality of voice data templates prestored in the electronic equipment, wherein the voice data templates comprise voice data collected when a microphone is blocked by a plurality of media; determining a target voice data template matched with the voice data in the voice data template; and determining that the medium corresponding to the target voice data is the medium blocking the microphone.
In one possible example, in the case that it is determined that the microphone is blocked when it is detected that the decibel value of the voice data satisfies the preset condition, the instructions in the program are specifically configured to: determining part of voice data of which decibel values are smaller than the preset decibel value in the voice data; determining a first sampling duration of the voice data and a second sampling duration of the portion of voice data; determining that the microphone is blocked when it is detected that a ratio of the second sampling duration to the first sampling duration is greater than a preset ratio.
In one possible example, in the case that it is determined that the microphone is blocked when it is detected that the decibel value of the voice data satisfies the preset condition, the instructions in the program are specifically configured to: determining the duration of part of voice data of which the decibel value is smaller than the preset decibel value in the voice data; and when the time length is detected to be longer than the preset time length, determining that the microphone is blocked.
In one possible example, the instructions in the program are specifically configured to, after outputting a first notification message prompting the user that the microphone is jammed: determining a countermeasure to address the microphone being plugged in accordance with the medium; outputting a second notification message including the countermeasure.
The above embodiments mainly introduce the scheme of the embodiments of the present application from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing 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. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
The following is an embodiment of the apparatus of the present invention, which is used to perform the method implemented by the embodiment of the method of the present invention. The microphone blockage warning device 600 shown in fig. 6 is applied to the electronic equipment, the electronic equipment comprises a microphone, the microphone blockage warning device comprises an acquisition unit 601, a determination unit 602 and an output unit 603, wherein,
the obtaining unit 601 is configured to obtain a decibel value of the voice data when it is detected that the electronic device collects the voice data;
the determining unit 602 is configured to determine that the microphone is blocked when it is detected that a decibel value of the voice data satisfies a preset condition;
the output unit 603 is configured to determine that the medium blocking the microphone is jammed, and output a first notification message for prompting a user that the microphone is jammed, where the first notification message includes information about the medium.
The microphone blockage reminding device can further comprise a storage unit 604 for storing program codes and data of the electronic equipment. The acquiring unit 601, the determining unit 602, and the output unit 603 may be processors, and the storage unit 604 may be a memory.
It can be seen that, in the embodiment of the present application, an electronic device first obtains a decibel value of voice data when detecting that the electronic device collects the voice data, then determines that a microphone is blocked when detecting that the decibel value of the voice data satisfies a preset condition, and finally determines that a medium blocking the microphone is blocked, and outputs a first notification message for prompting a user that the microphone is blocked, where the first notification message includes related information of the medium. Because the electronic equipment analyzes the collected voice data to determine the decibel value of the voice data in the process of collecting the voice data, when the decibel value of the voice data is detected to meet the preset condition, the blockage of the microphone of the electronic equipment can be determined, and the medium blocking the microphone can be further determined, so that the microphone blocking and blocking of a user can be reminded, the user can take corresponding measures in time, and the quality of the collected voice data is improved.
In one possible example, in terms of determining a medium clogging the microphone, the output unit 603 is specifically configured to: acquiring partial voice data of which the decibel value is smaller than a preset decibel value; and sound features for acquiring the partial voice data, the sound features including tone information; and determining a medium blocking the microphone according to the tone color information.
In one possible example, in terms of determining a medium clogging the microphone, the output unit 603 is specifically configured to: acquiring partial voice data of which the decibel value is smaller than a preset decibel value; and means for determining an average decibel value for the portion of speech data; and for determining a difference between the average decibel value and the preset decibel value; and means for determining a medium clogging the microphone based on the difference.
In one possible example, in terms of determining a medium clogging the microphone, the output unit 603 is specifically configured to: the method comprises the steps of obtaining a plurality of voice data templates prestored in the electronic equipment, wherein the voice data templates comprise voice data collected when a microphone is blocked by a plurality of media; and a target voice data template for determining that the voice data template matches the voice data; and the medium corresponding to the target voice data is determined to be the medium blocking the microphone.
In a possible example, when it is detected that the decibel value of the voice data satisfies the preset condition, the determining unit 602 is specifically configured to: determining part of voice data of which decibel values are smaller than the preset decibel value in the voice data; and for determining a first sampling duration of the speech data and a second sampling duration of the portion of speech data; and the microphone is determined to be blocked when the ratio of the second sampling time length relative to the first sampling time length is detected to be larger than a preset ratio.
In a possible example, when it is detected that the decibel value of the voice data satisfies the preset condition, the determining unit 602 is specifically configured to: determining the duration of part of voice data of which the decibel value is smaller than the preset decibel value in the voice data; and the microphone is determined to be blocked when the time length is detected to be greater than the preset time length.
In one possible example, after the outputting of the first notification message for prompting the user that the microphone is clogged, the output unit 603 is further configured to determine a countermeasure for solving the clogging of the microphone according to the medium; and for outputting a second notification message including the countermeasure.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, 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 of some interfaces, devices or units, and may be an electric or other form.
The 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 solution 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 integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A microphone blockage reminding method is applied to electronic equipment, the electronic equipment comprises a microphone, and the method comprises the following steps:
when detecting that the electronic equipment collects voice data, acquiring a decibel value of the voice data;
when detecting that the decibel value of the voice data meets a preset condition, determining that the microphone is blocked;
determining tone information of the voice data, decibel value attenuation degree of the voice data or a target voice data template matched with the voice data in a plurality of pre-stored voice data templates;
determining a medium blocking the microphone according to the tone color information, the decibel value attenuation degree or the target voice data template, and outputting a first notification message for prompting a user that the microphone is blocked, wherein the first notification message comprises related information of the medium;
determining a countermeasure to address the microphone being plugged based on the medium.
2. The method of claim 1, wherein determining a medium clogging the microphone based on the timbre information comprises:
acquiring partial voice data of which the decibel value is smaller than a preset decibel value;
acquiring tone information of the part of voice data;
and determining a medium blocking the microphone according to the tone color information of the part of voice data.
3. The method of claim 1, wherein said determining a medium clogging said microphone based on said decibel value attenuation level comprises:
acquiring partial voice data of which the decibel value is smaller than a preset decibel value;
determining an average decibel value of the portion of voice data;
determining a difference between the average decibel value and the preset decibel value;
and determining the medium blocking the microphone according to the difference value.
4. The method of claim 1, wherein determining the medium clogging the microphone based on the target speech data template comprises:
the method comprises the steps of obtaining a plurality of voice data templates prestored in the electronic equipment, wherein the plurality of voice data templates comprise voice data collected when a microphone is blocked by a plurality of media;
determining the target voice data template matched with the voice data in the plurality of voice data templates;
and determining that the medium corresponding to the target voice data is the medium blocking the microphone.
5. The method according to any one of claims 2-3, wherein the determining that the microphone is plugged when detecting that the decibel value of the voice data satisfies a preset condition comprises:
determining part of voice data of which decibel values are smaller than the preset decibel value in the voice data;
determining a first sampling duration of the voice data and a second sampling duration of the portion of voice data;
determining that the microphone is blocked when it is detected that a ratio of the second sampling duration to the first sampling duration is greater than a preset ratio.
6. The method according to any one of claims 2-3, wherein the determining that the microphone is plugged when detecting that the decibel value of the voice data satisfies a preset condition comprises:
determining the duration of part of voice data of which the decibel value is smaller than the preset decibel value in the voice data;
and when the time length is detected to be longer than the preset time length, determining that the microphone is blocked.
7. The method of any of claims 1-4, wherein after outputting the first notification message prompting the user that the microphone is plugged, the method further comprises:
outputting a second notification message including the countermeasure.
8. A microphone blockage reminding device is applied to electronic equipment, the electronic equipment comprises a microphone, the microphone blockage reminding device comprises an acquisition unit, a determination unit and an output unit, wherein,
the acquisition unit is used for acquiring a decibel value of the voice data when the electronic equipment is detected to acquire the voice data;
the determining unit is used for determining that the microphone is blocked when detecting that the decibel value of the voice data meets a preset condition;
the determining unit is further configured to determine timbre information of the voice data, a decibel value attenuation degree of the voice data, or a target voice data template matched with the voice data from among a plurality of pre-stored voice data templates;
the output unit is used for determining a medium for blocking the microphone according to the tone color information, the decibel value attenuation degree or the target voice data template, and outputting a first notification message for prompting a user that the microphone is blocked, wherein the first notification message comprises related information of the medium;
the determination unit is further configured to determine a countermeasure for solving the microphone jam according to the medium.
9. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN201810818377.6A 2018-07-24 2018-07-24 Microphone blockage reminding method and related device Active CN109040937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810818377.6A CN109040937B (en) 2018-07-24 2018-07-24 Microphone blockage reminding method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810818377.6A CN109040937B (en) 2018-07-24 2018-07-24 Microphone blockage reminding method and related device

Publications (2)

Publication Number Publication Date
CN109040937A CN109040937A (en) 2018-12-18
CN109040937B true CN109040937B (en) 2020-08-28

Family

ID=64644497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810818377.6A Active CN109040937B (en) 2018-07-24 2018-07-24 Microphone blockage reminding method and related device

Country Status (1)

Country Link
CN (1) CN109040937B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109788423B (en) * 2019-01-23 2023-01-13 深圳市翰林迅通科技有限公司 Voice receiving method, device and computer readable storage medium
CN110745391A (en) * 2019-09-27 2020-02-04 首钢京唐钢铁联合有限责任公司 Device for cleaning accessory materials on walls of Australian mine bins

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501375A (en) * 2013-09-16 2014-01-08 华为终端有限公司 Method and device for controlling sound effect
CN103929707A (en) * 2014-04-08 2014-07-16 深圳市中兴移动通信有限公司 Method for detecting conditions of microphone voice-grade channels and terminal
CN105049636A (en) * 2015-08-21 2015-11-11 广东欧珀移动通信有限公司 Detection method and device for main microphone hole of terminal
CN105323363A (en) * 2014-06-30 2016-02-10 中兴通讯股份有限公司 Method and device for selecting main microphones
CN106610812A (en) * 2016-12-28 2017-05-03 广东欧珀移动通信有限公司 Control method and control device
CN106791186A (en) * 2017-01-22 2017-05-31 惠州Tcl移动通信有限公司 It is a kind of to detect the method and system that microphone sound hole is blocked
WO2017185342A1 (en) * 2016-04-29 2017-11-02 华为技术有限公司 Method and apparatus for determining voice input anomaly, terminal, and storage medium
CN107509153A (en) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 Detection method, device, storage medium and the terminal of Audio Players part

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501375A (en) * 2013-09-16 2014-01-08 华为终端有限公司 Method and device for controlling sound effect
CN103929707A (en) * 2014-04-08 2014-07-16 深圳市中兴移动通信有限公司 Method for detecting conditions of microphone voice-grade channels and terminal
CN105323363A (en) * 2014-06-30 2016-02-10 中兴通讯股份有限公司 Method and device for selecting main microphones
CN105049636A (en) * 2015-08-21 2015-11-11 广东欧珀移动通信有限公司 Detection method and device for main microphone hole of terminal
WO2017185342A1 (en) * 2016-04-29 2017-11-02 华为技术有限公司 Method and apparatus for determining voice input anomaly, terminal, and storage medium
CN106610812A (en) * 2016-12-28 2017-05-03 广东欧珀移动通信有限公司 Control method and control device
CN106791186A (en) * 2017-01-22 2017-05-31 惠州Tcl移动通信有限公司 It is a kind of to detect the method and system that microphone sound hole is blocked
CN107509153A (en) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 Detection method, device, storage medium and the terminal of Audio Players part

Also Published As

Publication number Publication date
CN109040937A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN109213539B (en) Memory recovery method and device
CN107861814B (en) Resource allocation method and equipment
CN111343558B (en) Microphone hole blockage detection method and related product
CN110830986B (en) Method, device, equipment and storage medium for detecting abnormal behavior of Internet of things card
CN107635078B (en) Game control method and device
CN108091333B (en) Voice control method and related product
CN107832142B (en) Resource allocation method and equipment for application program
CN107807852B (en) Application program performance control method, device and computer readable storage medium
CN109120779B (en) Microphone blockage reminding method and related device
CN108536480B (en) Input method configuration method and related product
CN105549718A (en) Method and device for optimizing power consumption of application program and electronic equipment
CN106131312B (en) Voice message playing method and device and mobile terminal
CN109040937B (en) Microphone blockage reminding method and related device
CN109089201B (en) Microphone hole blockage detection method and related product
CN108984339B (en) Data recovery method and related product
CN112738538A (en) Live broadcast room on-hook behavior detection method and device, electronic equipment and computer readable storage medium
CN109065017B (en) Voice data generation method and related device
CN103618786A (en) Playing error processing method and server
CN112333608B (en) Voice data processing method and related product
CN109376062B (en) Network state prompting method and related device
CN109040912B (en) Plugging hole treatment method and related product
CN107450951B (en) Application processing method and device, storage medium and terminal
CN104301235A (en) Network flow control method and device
CN108965562B (en) Voice data generation method and related device
CN107291543B (en) Application processing method and device, storage medium and terminal

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