CN108989964A - Microphone blocks based reminding method and relevant apparatus - Google Patents

Microphone blocks based reminding method and relevant apparatus Download PDF

Info

Publication number
CN108989964A
CN108989964A CN201810831332.2A CN201810831332A CN108989964A CN 108989964 A CN108989964 A CN 108989964A CN 201810831332 A CN201810831332 A CN 201810831332A CN 108989964 A CN108989964 A CN 108989964A
Authority
CN
China
Prior art keywords
electronic equipment
microphone
decibel value
voice data
detecting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810831332.2A
Other languages
Chinese (zh)
Other versions
CN108989964B (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 CN201810831332.2A priority Critical patent/CN108989964B/en
Publication of CN108989964A publication Critical patent/CN108989964A/en
Application granted granted Critical
Publication of CN108989964B publication Critical patent/CN108989964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This application discloses a kind of microphone blocking based reminding method and relevant apparatus, applied to electronic equipment, the electronic equipment includes a microphone, comprising: when detecting the electronic equipment acquisition voice data, determines the decibel value of the collected voice data;When detecting that the decibel value of the voice data meets preset condition, determine that the microphone is blocked;Output is for prompting user to change the prompting message of the electronic equipment grip state.The application is conducive to that user's change is reminded to avoid collected voice data quality from declining the grip state of electronic equipment in time when detecting that microphone is blocked.

Description

Microphone blocks based reminding method and relevant apparatus
Technical field
This application involves electronic technology field more particularly to a kind of microphone blocking based reminding methods and relevant apparatus.
Background technique
With the rapid development of intelligent terminal (such as smart phone) technology and more more and more universal, user is become Indispensable electronic product in daily life.Electronic equipment includes at least a microphone, for including the voice number of user According to, but when microphone is blocked, user is difficult to discover, it is second-rate so as to cause the voice data included.
Summary of the invention
The embodiment of the present application provides a kind of microphone blocking based reminding method and relevant apparatus, is conducive to detecting microphone User's change is reminded to avoid collected voice data quality from declining the grip state of electronic equipment when blocked in time.
In a first aspect, the embodiment of the present application provides a kind of microphone blocking based reminding method, it is applied to electronic equipment, the electricity Sub- equipment includes a microphone, which comprises
When detecting the electronic equipment acquisition voice data, the decibel value of the collected voice data is determined;
When detecting that the decibel value of the voice data meets preset condition, determine that the microphone is blocked;
Output is for prompting user to change the prompting message of the electronic equipment grip state.
Second aspect, the embodiment of the present application provide a kind of microphone blockage reminding device, are applied to electronic equipment, the electricity Sub- equipment includes a microphone, and the microphone blockage reminding device includes detection unit, processing unit and prompt unit, In,
The detection unit, it is collected described for determining when detecting the electronic equipment acquisition voice data The decibel value of voice data;
The processing unit, described in determining when detecting that the decibel value of the voice data meets preset condition Microphone is blocked;
The prompt unit, for exporting the prompting message for prompting user to change the electronic equipment grip state.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including processor, memory, communication interface and One or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned It manages device to execute, above procedure is included the steps that for executing the instruction in the embodiment of the present application first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein above-mentioned computer-readable Storage medium storage is used for the computer program of electronic data interchange, wherein above-mentioned computer program executes computer such as Step some or all of described in the embodiment of the present application first aspect either method.
As can be seen that in the embodiment of the present application, electronic equipment is detecting the electronic equipment acquisition voice number first According to when, the decibel value of the collected voice data is determined, secondly, meeting in the decibel value for detecting the voice data pre- If when condition, determining that the microphone is blocked, finally, output is for prompting user to change the electronic equipment grip state Prompting message.Since electronic equipment is during acquiring voice data, by analyze really to collected voice data The decibel value for determining voice data can determine the Mike of electronic equipment when the decibel value for detecting voice data meets preset condition Wind is blocked, so that output is conducive to lead to for prompting user's change to be currently directed to the prompting message of electronic equipment grip state Cross the grip state for notifying user to change electronic equipment, the blocked situation of microphone caused by avoiding because of grip state, in turn Improve the quality of collected voice data.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application or in background technique below will be implemented the application Attached drawing needed in example or background technique is illustrated.
Figure 1A is a kind of schematic diagram of the program running space of smart phone;
Figure 1B is a kind of system architecture diagram of Android system;
Fig. 2 is a kind of flow diagram of microphone blocking based reminding method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another microphone blocking based reminding method provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another microphone blocking based reminding method provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 6 is a kind of functional unit composition block diagram of microphone blockage reminding device provided by the embodiments of the present application.
Specific implementation
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection It encloses.
It is described in detail separately below.
The description and claims of this application and term " first ", " second ", " third " and " in the attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
As shown in Figure 1A, the electronic equipments such as smart phone are typically provided with program running space at present, and program operation is empty Between include user's space and operating system space, wherein user's space operation have one or more application program, this or more A application program is the third party application of electronic equipment installation, and microphone described in the embodiment of the present application blocks prompting side The corresponding software algorithm of method operates in user's space, and operating system space motion has the operating system of electronic equipment.
The electronic equipment can specifically run the Mobile operating system iOS of Android android system, Apple Inc.'s exploitation Deng not doing unique restriction herein.As shown in Figure 1B, by taking electronic equipment operation has android system as an example, corresponding user Space includes the application layer (Applications) in the android system, and operating system space may include the Android system Application framework layer (Application Framework), system Runtime Library layer (including system Runtime Library layer in system Android Runtime when Libraries and Android are run), Linux inner core (Linux Kernel).Wherein, it applies It include all kinds of application programs directly interacted with user, or the service routine for running on backstage write by Java language on layer. For example, the program for the common basic function realized on smart phone, such as short message service (Short Messaging Service, SMS) short message, dialing, Photo Browser, calendar, game, map, WWW (World Wide Web, Web) programs such as browser and the other applications of developer's exploitation.Application framework layer provides exploitation Android A series of class libraries needed for application program can be used in reusing component, can also realize personalized extension by inheriting.System Runtime Library layer is the support of application framework, provides service for the various components in android system.System Runtime Library layer by System class libraries and Android are constituted when running.It include core library and Dalvik virtual machine two parts when Android is run.Linux Inner nuclear layer is for realizing hardware device drivers, process and memory management, network protocol stack, power management, the cores such as wireless communication Function.
Electronic equipment may include the various handheld devices with wireless communication function, mobile unit, wearable device (example Such as smartwatch, Intelligent bracelet, pedometer), calculate equipment or be connected to other processing equipments of radio modem, with And various forms of user equipmenies (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) etc..For convenience of description, apparatus mentioned above is referred to as electronic equipment.
It describes in detail below to the embodiment of the present application.
Referring to Fig. 2, Fig. 2 is that the embodiment of the present application provides a kind of flow diagram of microphone blocking based reminding method, Applied to electronic equipment, the electronic equipment includes a microphone, this microphone blocking based reminding method includes:
S201, the electronic equipment determine collected described when detecting the electronic equipment acquisition voice data The decibel value of voice data.
Wherein, microphone blocking based reminding method provided by the present application is directed to the electronic equipment with single microphone, current city There is only one microphone of many electronic equipments on, is usually located at electronic equipment bottom, therefore when microphone is blocked, meeting Cause collected voice data quality to decline, influences the functions such as recording, the call of electronic equipment.
Wherein, when detecting that electronic equipment is acquiring voice data, it can determine and adopt while acquiring voice data The decibel value of the voice data collected, and then can be analyzed by the decibel value to collected voice data, determination is adopted The quality of the voice data collected.
S202, the electronic equipment is when the decibel value for detecting the voice data meets preset condition, described in determination Microphone is blocked.
Wherein, when being blocked due to microphone, the decibel value of collected voice data can not be blocked lower than microphone The decibel value of collected voice data when plug, currently, the reduction of voice data decibel value may be to be blocked because of microphone, It may be that therefore whether can meet preset condition by judging the decibel value of voice data to judge Mike because of other reasons Whether wind is blocked, and preset condition may be one, it is also possible to and it is multiple, when the difference of the scene locating for the electronic equipment, preset Condition may also be different.
S203, the electronic equipment output is for prompting user to change the prompting message of the electronic equipment grip state.
Wherein, when microphone is blocked, it may be possible to because user's grip state causes microphone to be blocked, due to market The microphone of upper many electronic equipments is located at the bottom of electronic equipment, therefore user is caused to be easy to connect when holding electronic equipment Contact that microphone is blocked in whole or in part so as to cause microphone, however user cannot usually perceive such situation, because This can remind user's change to electricity by exporting the notification message for prompting user's change to be directed to electronic equipment grip state The grip state of sub- equipment avoids microphone from being blocked, to improve the quality of collected voice data.
As can be seen that in the embodiment of the present application, electronic equipment is detecting the electronic equipment acquisition voice number first According to when, the decibel value of the collected voice data is determined, secondly, meeting in the decibel value for detecting the voice data pre- If when condition, determining that the microphone is blocked, finally, output is for prompting user to change the electronic equipment grip state Prompting message.Since electronic equipment is during acquiring voice data, by analyze really to collected voice data The decibel value for determining voice data can determine the Mike of electronic equipment when the decibel value for detecting voice data meets preset condition Wind is blocked, so that output is conducive to lead to for prompting user's change to be currently directed to the prompting message of electronic equipment grip state Cross the grip state for notifying user to change electronic equipment, the blocked situation of microphone caused by avoiding because of grip state, in turn Improve the quality of collected voice data.
It is described when detecting that the decibel value of the voice data meets preset condition in a possible example, really The fixed microphone is blocked, comprising: obtains the destination application of front stage operation;Distance is used to determine institute according to multiple history The corresponding target range of destination application is stated, the target range is the average distance that the multiple history uses distance, institute State history use distance be the electronic equipment run the destination application when, between user and the electronic equipment away from From;The mapping relations for searching preset distance and default decibel value determine the corresponding first default decibel value of the target range; Determine that decibel value is less than the part of speech data of the described first default decibel value in the voice data;Determine the voice data First sampling duration and the part of speech data second sampling duration;Detect it is described second sampling duration relative to When the accounting of the first sampling duration is greater than the first default accounting, determine that the microphone is blocked.
Wherein, by obtaining the destination application of front stage operation, the corresponding target range of destination application, mesh are determined Subject distance is to use distance, determining electronic equipment user in operational objective application program according to the history of multiple electronic equipments Average distance between electronic equipment.Electronic equipment operation is when having different application, user and electronic equipment display it Between distance may be different, for example, user is when using electronic equipment browsing webpage, potential range is closer, sets using electronics When standby viewing video, farther out, concrete condition is determined potential range by the use habit of user, and front stage operation some apply When program, the distance between usual user and electronic equipment are relatively fixed, therefore can determine front stage operation by range sensor Average distance when some application program, between user and electronic equipment.
Wherein, by searching for the mapping relations of preset distance and default decibel value, it may be determined that target range corresponding One default decibel value, since different application is corresponding with different distances, corresponding default decibel value is also different, usually In the case of, the distance between user and electronic equipment get over hour, and corresponding default decibel value should be bigger, therefore can pre-establish Mapping relations between distance and default decibel value.
Wherein, obtain voice data in decibel value less than the first default decibel value part of speech data, and then determine language First sampling duration of sound data and the second sampling duration of part of speech data, the second sampling duration are point of voice data Shellfish value less than the first default decibel value duration, when detect the second sampling duration relative to first sampling duration accounting be greater than When the first default accounting, that is, it can determine that microphone is blocked.For example, the first default accounting is 60 percent, in acquisition voice During data, detects in collected 5 minutes voice data, there is the decibel value of 4 minutes voice data to be both less than First default decibel value, time accounting are 80 percent greater than the first default accounting, it may be determined that microphone is blocked.
As it can be seen that target range is determined according to the destination application of front stage operation in this example, it is true further according to target range Fixed first default decibel value, to be greater than in the decibel value for detecting voice data less than the time accounting of the first default decibel value When the first default accounting, it may be determined that microphone is blocked, so that adaptation is different under the scene of front stage operation different application Default decibel value, be conducive to accurately detect whether microphone is blocked.
It is described when detecting that the decibel value of the voice data meets preset condition in a possible example, really The fixed microphone is blocked, comprising: obtains the occupational information of user, the occupational information includes work scheduling information and work Environmental information;The second default decibel value is determined according to the working environment information;It is determined and is detected according to the work scheduling information Period, it is described detection the period be user at work interior high frequency use the electronic equipment period;Obtain acquisition time The part of speech data in section are target speech data in the detection;Determine that decibel value is less than in the target speech data The third of the voice data of the second default decibel value samples duration;Detecting the third sampling duration relative to described When the accounting of 4th sampling duration of target speech data is greater than the second default accounting, determine that the microphone is blocked.
Wherein, the occupational information of user is obtained, occupation can be user and the occupational information of oneself is stored in electronics in advance In equipment, it is also possible to recognize the occupational information of user by electronic equipment, occupational information includes the work scheduling information of user With working environment information.
Wherein, the second default decibel value is determined according to working environment information, when the working environment of user is more noisy, used Usually one's voice in speech is larger at family, and the second default decibel value is also larger, alternatively, when the working environment of user is more quiet, user Usually one's voice in speech is smaller, and the second default decibel value is also smaller.
Wherein, determine that detection period, detection period are user's interior height at work according to the work scheduling time of user Frequency uses the period of electronic equipment, and obtaining part of speech data of the acquisition time when detecting in section is target speech data, When the time accounting that the decibel value of target speech data is greater than the second default decibel value is greater than the second default accounting, Mike is determined Wind is blocked.
As it can be seen that the second default decibel value and detection period are determined according to the occupational information of user, thus to adopting in this example Part of speech data of the collection time when detecting in section are analyzed, and the part of speech data detect to be got in the period Voice data so that analysis result is more accurate, and then judges whether microphone is blocked, to can avoid user at work It is interior not to be available microphone.
It is described when detecting that the decibel value of the voice data meets preset condition in a possible example, really The fixed microphone is blocked, comprising: when detecting that the electronic equipment enables hand-free function, determines user and the electronics The distance between equipment variation tendency;Determine that third presets the variation tendency of decibel parameter, institute according to the distance change trend It states the default decibel parameter of third to become smaller when distance increases, the increase when the distance becomes smaller;Determine point of the voice data The third that shellfish value is less than the corresponding moment presets the 5th sampling duration of decibel parameter and the voice data the corresponding 6th is adopted Sample duration;Accounting is preset greater than third in the accounting for detecting that the 5th sampling duration samples duration relative to the described 6th When, determine that the microphone is blocked.
Wherein, in some scenes, such as Video chat scene and call scene, the hands-free of electronic equipment may be enabled Function can determine the distance between user and electronic equipment variation tendency at this time, for example, in user movement or the situation of movement Under, the distance between user and electronic equipment can change, so that the decibel value of collected voice data also can be in change In the state of change, therefore determine that third presets decibel parameter according to distance change trend, when detecting that distance increases, third is pre- If decibel parameter can reduce, when detecting that distance reduces, third is preset decibel parameter and be will increase.
Wherein, when being kept in motion due to user, the distance between user and electronic equipment distance frequently change, Therefore the part of speech data that decibel value in voice data is less than the default decibel parameter of third at corresponding moment, the part can be obtained The corresponding 5th sampling duration of voice data is greater than in the 5th sampling duration relative to the accounting of the 6th sampling duration of voice data When third presets accounting, it may be determined that microphone is blocked.
As it can be seen that in this example, when detecting that electronic equipment enables hand-free function, according to the spacing of user and electronic equipment From variation tendency determine that third presets decibel parameter, thus realize user be in movement scene under, judge that microphone is It is no to be blocked, be conducive to the reliability for improving collected voice data.
In a possible example, the output is for prompting user to change the prompt of the electronic equipment grip state Message, comprising: show the first blocked prompting message of the microphone on a display screen;It is detected in preset period of time described When the grip state of electronic equipment does not change, the second prompting message is exported, second prompting message is described for shaking The flash lamp flashing of electronic equipment or the control electronic equipment.
Wherein, after determining that microphone is blocked, the first blocked prompting message of microphone can be shown on display screen, is mentioned Show that message user prompts user to change the current grip state of electronic equipment, if being to detect electronic equipment in preset period of time No change has taken place for grip state, then exports the second prompting message, and the second prompting message can be vibration electronic equipment or control The flash lamp of electronic equipment processed flashes, and allows user to find prompting message in time with this.
As it can be seen that, when detecting that microphone is blocked, output is held for prompting user to change electronic equipment in this example The prompting message of state, prompting message include the first prompting message that display screen is shown and vibration electronic equipment or flashing flash lamp The second prompting message, be conducive to user and see prompting message in time, to change the grip state of electronic equipment, collect matter Measure higher voice data.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is a kind of Mike provided by the embodiments of the present application The flow diagram of wind locking plug based reminding method, is applied to electronic equipment, and the electronic equipment includes a microphone.As schemed Show, this microphone blocking based reminding method includes:
S301, the electronic equipment determine collected described when detecting the electronic equipment acquisition voice data The decibel value of voice data.
S302, the electronic equipment obtain the destination application of front stage operation.
S303, the electronic equipment according to multiple history use distance determine the corresponding target of the destination application away from From the target range is the average distance that the multiple history uses distance, and the history is that the electronics is set using distance When destination application described in received shipment row, the distance between user and the electronic equipment.
S304, the electronic equipment search the mapping relations of preset distance and default decibel value, determine the target away from From corresponding first default decibel value.
S305, the electronic equipment determine that decibel value is less than the part of the described first default decibel value in the voice data Voice data.
S306, the electronic equipment determine the voice data the first sampling duration and the part of speech data the Two sampling durations.
S307, the electronic equipment are detecting accounting of the second sampling duration relative to the first sampling duration When greater than the first default accounting, determine that the microphone is blocked.
S308, the electronic equipment output is for prompting user to change the prompting message of the electronic equipment grip state.
As can be seen that in the embodiment of the present application, electronic equipment is detecting the electronic equipment acquisition voice number first According to when, the decibel value of the collected voice data is determined, secondly, meeting in the decibel value for detecting the voice data pre- If when condition, determining that the microphone is blocked, finally, output is for prompting user to change the electronic equipment grip state Prompting message.Since electronic equipment is during acquiring voice data, by analyze really to collected voice data The decibel value for determining voice data can determine the Mike of electronic equipment when the decibel value for detecting voice data meets preset condition Wind is blocked, so that output is conducive to lead to for prompting user's change to be currently directed to the prompting message of electronic equipment grip state Cross the grip state for notifying user to change electronic equipment, the blocked situation of microphone caused by avoiding because of grip state, in turn Improve the quality of collected voice data.
In addition, the destination application according to front stage operation determines target range, determine that first is pre- further according to target range If decibel value, preset to be greater than first less than the time accounting of the first default decibel value in the decibel value for detecting voice data When accounting, it may be determined that microphone is blocked, so that being adapted to different default points under the scene of front stage operation different application Shellfish value is conducive to accurately detect whether microphone is blocked.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 4, Fig. 4 is a kind of Mike provided by the embodiments of the present application The flow diagram of wind locking plug based reminding method, is applied to electronic equipment, and the electronic equipment includes a microphone.As schemed Show, this microphone blocking based reminding method includes:
S401, the electronic equipment determine collected described when detecting the electronic equipment acquisition voice data The decibel value of voice data.
S402, the electronic equipment obtain the occupational information of user, obtain the occupational information of user, the occupational information packet Include work scheduling information and working environment information.
S403, the electronic equipment determine the second default decibel value according to the working environment information.
S404, the electronic equipment determine that detection period, the detection period are user according to the work scheduling information Interior high frequency uses the period of the electronic equipment at work.
S405, it is target voice that the electronic equipment, which obtains part of speech data of the acquisition time in the detection in section, Data.
S406, the electronic equipment determine that decibel value is less than the described second default decibel value in the target speech data The third of voice data samples duration.
S407, the electronic equipment are detecting the 4th of the third sampling duration relative to the target speech data When sampling the accounting of duration greater than the second default accounting, determine that the microphone is blocked.
S408, the electronic equipment output is for prompting user to change the prompting message of the electronic equipment grip state.
As can be seen that in the embodiment of the present application, electronic equipment is detecting the electronic equipment acquisition voice number first According to when, the decibel value of the collected voice data is determined, secondly, meeting in the decibel value for detecting the voice data pre- If when condition, determining that the microphone is blocked, finally, output is for prompting user to change the electronic equipment grip state Prompting message.Since electronic equipment is during acquiring voice data, by analyze really to collected voice data The decibel value for determining voice data can determine the Mike of electronic equipment when the decibel value for detecting voice data meets preset condition Wind is blocked, so that output is conducive to lead to for prompting user's change to be currently directed to the prompting message of electronic equipment grip state Cross the grip state for notifying user to change electronic equipment, the blocked situation of microphone caused by avoiding because of grip state, in turn Improve the quality of collected voice data.
In addition, the second default decibel value and detection period are determined according to the occupational information of user, to exist to acquisition time Part of speech data in the detection period are analyzed, and the part of speech data are to detect the voice number got in the period According to so that analysis result is more accurate, and then judge whether microphone is blocked, thus avoidable user interior nothing at work Method uses microphone.
It is consistent with described Fig. 2, Fig. 3, embodiment shown in Fig. 4, referring to Fig. 5, Fig. 5 is provided by the embodiments of the present application The structural schematic diagram of a kind of electronic equipment 500, the electronic equipment 500 operation have one or more application program and operating system, As shown, the electronic equipment 500 includes processor 510, memory 520, communication interface 530 and one or more programs 521, wherein one or more of programs 521 are stored in the memory 520, and are configured by the processor 510 execute, and one or more of programs 521 include the instruction for executing following steps;
When detecting the electronic equipment acquisition voice data, the decibel value of the collected voice data is determined;
When detecting that the decibel value of the voice data meets preset condition, determine that the microphone is blocked;
Output is for prompting user to change the prompting message of the electronic equipment grip state.
As can be seen that in the embodiment of the present application, electronic equipment is detecting the electronic equipment acquisition voice number first According to when, the decibel value of the collected voice data is determined, secondly, meeting in the decibel value for detecting the voice data pre- If when condition, determining that the microphone is blocked, finally, output is for prompting user to change the electronic equipment grip state Prompting message.Since electronic equipment is during acquiring voice data, by analyze really to collected voice data The decibel value for determining voice data can determine the Mike of electronic equipment when the decibel value for detecting voice data meets preset condition Wind is blocked, so that output is conducive to lead to for prompting user's change to be currently directed to the prompting message of electronic equipment grip state Cross the grip state for notifying user to change electronic equipment, the blocked situation of microphone caused by avoiding because of grip state, in turn Improve the quality of collected voice data.
In a possible example, described when detecting that the decibel value of the voice data meets preset condition, In terms of determining that the microphone is blocked, the instruction in described program is specifically used for executing following operation: obtaining front stage operation Destination application;Distance is used to determine the corresponding target range of the destination application, the target according to multiple history Distance is the average distance that the multiple history uses distance, and it is that the electronic equipment runs the mesh that the history, which uses distance, When marking application program, the distance between user and the electronic equipment;The mapping for searching preset distance and default decibel value is closed System, determines the corresponding first default decibel value of the target range;Determine that decibel value is less than described first in the voice data The part of speech data of default decibel value;Determine the voice data the first sampling duration and the part of speech data the Two sampling durations;It is accounted for detecting that accounting of the second sampling duration relative to the first sampling duration is preset greater than first Than when, determine the microphone be blocked.
In a possible example, described when detecting that the decibel value of the voice data meets preset condition, In terms of determining that the microphone is blocked, the instruction in described program is specifically used for executing following operation: obtaining the occupation of user Information, the occupational information include work scheduling information and working environment information;Second is determined according to the working environment information Default decibel value;Determine that detection period, the detection period are user's interior height at work according to the work scheduling information Frequency uses the period of the electronic equipment;Obtaining part of speech data of the acquisition time in the detection in section is target language Sound data;Determine that the third for the voice data that decibel value is less than the described second default decibel value in the target speech data samples Duration;Detecting that accounting of the third sampling duration relative to the 4th sampling duration of the target speech data be greater than the When two default accountings, determine that the microphone is blocked.
In a possible example, described when detecting that the decibel value of the voice data meets preset condition, In terms of determining that the microphone is blocked, the instruction in described program is specifically used for executing following operation: detecting the electricity When sub- equipment enables hand-free function, the distance between user and the electronic equipment variation tendency are determined;Become according to the distance Change trend determines that third presets the variation tendency of decibel parameter, and the third presets decibel parameter and becomes smaller when distance increases, The increase when distance becomes smaller;Determine that the decibel value of the voice data is less than the third at corresponding moment and presets the of decibel parameter Five sampling durations and the corresponding 6th sampling duration of the voice data;Detect it is described 5th sampling duration relative to When the accounting of the 6th sampling duration presets accounting greater than third, determine that the microphone is blocked.
In a possible example, in the output for prompting user to change mentioning for the electronic equipment grip state In terms of showing message, the instruction in described program is specifically used for executing following operation: showing that the microphone is blocked on a display screen First prompting message of plug;When detecting that the grip state of the electronic equipment does not change in preset period of time, output the Two prompting messages, second prompting message include the flash lamp sudden strain of a muscle for shaking the electronic equipment or the control electronic equipment It is bright.
Above-described embodiment is mainly described the scheme of the embodiment of the present application from the angle of method side implementation procedure.It can With understanding, in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or soft for electronic equipment Part module.Those skilled in the art should be readily appreciated that, described in conjunction with the examples disclosed in the embodiments of the present disclosure Unit and algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function is studied carefully Unexpectedly it is executed in a manner of hardware or computer software driving hardware, the specific application and design constraint depending on technical solution Condition.Professional technician can specifically realize described function to each using distinct methods, but this It realizes it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to the method example to electronic equipment, for example, can With each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unit In.The integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs It is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical real It is current that there may be another division manner.
The following is an embodiment of the apparatus of the present invention, and apparatus of the present invention embodiment is realized for executing embodiment of the present invention method Method.Microphone blockage reminding device 600 as shown in FIG. 6, is applied to the electronic equipment, and the electronic equipment includes one Microphone, the microphone blockage reminding device include detection unit 601, processing unit 602 and prompt unit 603, wherein
The detection unit 601, for determining collected institute when detecting the electronic equipment acquisition voice data State the decibel value of voice data;
The processing unit 602, for determining institute when detecting that the decibel value of the voice data meets preset condition Microphone is stated to be blocked;
The prompt unit 603, the prompt for exporting for prompting user to change the electronic equipment grip state disappear Breath.
Wherein, the microphone blockage reminding device can also include storage unit 604, for storing the journey of electronic equipment Sequence code and data.The detection unit 601, processing unit 602 and prompt unit 603 can be processor, storage unit 604 It can be memory.
As can be seen that in the embodiment of the present application, electronic equipment is detecting the electronic equipment acquisition voice number first According to when, the decibel value of the collected voice data is determined, secondly, meeting in the decibel value for detecting the voice data pre- If when condition, determining that the microphone is blocked, finally, output is for prompting user to change the electronic equipment grip state Prompting message.Since electronic equipment is during acquiring voice data, by analyze really to collected voice data The decibel value for determining voice data can determine the Mike of electronic equipment when the decibel value for detecting voice data meets preset condition Wind is blocked, so that output is conducive to lead to for prompting user's change to be currently directed to the prompting message of electronic equipment grip state Cross the grip state for notifying user to change electronic equipment, the blocked situation of microphone caused by avoiding because of grip state, in turn Improve the quality of collected voice data.
In a possible example, described when detecting that the decibel value of the voice data meets preset condition, In terms of determining that the microphone is blocked, the processing unit 602 is specifically used for: obtaining the destination application of front stage operation; And for using distance to determine that the corresponding target range of the destination application, the target range are according to multiple history The multiple history uses the average distance of distance, and it is that the electronic equipment runs the target application that the history, which uses distance, When program, the distance between user and the electronic equipment;And the mapping for searching preset distance and default decibel value Relationship determines the corresponding first default decibel value of the target range;And decibel value is small in the voice data for determining In the part of speech data of the described first default decibel value;And the first sampling duration and institute for determining the voice data State the second sampling duration of part of speech data;And for detecting that the second sampling duration adopts relative to described first When the accounting of sample duration is greater than the first default accounting, determine that the microphone is blocked.
In a possible example, described when detecting that the decibel value of the voice data meets preset condition, In terms of determining that the microphone is blocked, the processing unit 602 is specifically used for: obtaining the occupational information of user, the occupation Information includes work scheduling information and working environment information;And for determining second default point according to the working environment information Shellfish value;And for determining that detection period, the detection period are that user is interior at work according to the work scheduling information High frequency uses the period of the electronic equipment;And for obtaining part of speech number of the acquisition time in the detection in section According to for target speech data;And decibel value is less than the described second default decibel value in the target speech data for determining The third of voice data samples duration;And for detecting the third sampling duration relative to the target speech data The 4th sampling duration accounting be greater than the second default accounting when, determine the microphone be blocked.
In a possible example, described when detecting that the decibel value of the voice data meets preset condition, In terms of determining that the microphone is blocked, the processing unit 602 is specifically used for: detecting that it is hands-free that the electronic equipment enables When function, the distance between user and the electronic equipment variation tendency are determined;And for according to the distance change trend Determine third preset decibel parameter variation tendency, the third preset decibel parameter distance increase when become smaller, it is described away from From increase when becoming smaller;And the decibel value for determining the voice data is less than the third at corresponding moment and presets decibel parameter 5th sampling duration and the corresponding 6th sampling duration of the voice data;And for detecting the 5th sampling When duration presets accounting greater than third relative to the accounting of the 6th sampling duration, determine that the microphone is blocked.
In a possible example, in the output for prompting user to change mentioning for the electronic equipment grip state In terms of showing message, the prompt unit 603 is specifically used for: the first prompt for showing that the microphone is blocked on a display screen disappears Breath;And when for detecting that the grip state of the electronic equipment does not change in preset period of time, the second prompt of output Message, second prompting message include the flash lamp flashing for shaking the electronic equipment or the control electronic equipment.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity The computer program of subdata exchange, the computer program make computer execute any as recorded in above method embodiment Some or all of method step, above-mentioned computer include electronic equipment.
The embodiment of the present application also provides a kind of computer program product, and above-mentioned computer program product includes storing calculating The non-transient computer readable storage medium of machine program, above-mentioned computer program are operable to that computer is made to execute such as above-mentioned side Some or all of either record method step in method embodiment.The computer program product can be a software installation Packet, above-mentioned computer includes electronic equipment.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of said units, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment above method of the application Step.And memory above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory May include: flash disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.

Claims (12)

1. a kind of microphone blocks based reminding method, which is characterized in that be applied to electronic equipment, the electronic equipment includes a wheat Gram wind, which comprises
When detecting the electronic equipment acquisition voice data, the decibel value of the collected voice data is determined;
When detecting that the decibel value of the voice data meets preset condition, determine that the microphone is blocked;
Output is for prompting user to change the prompting message of the electronic equipment grip state.
2. the method according to claim 1, wherein described meet in the decibel value for detecting the voice data When preset condition, determine that the microphone is blocked, comprising:
Obtain the destination application of front stage operation;
Distance is used to determine the corresponding target range of the destination application according to multiple history, the target range is described Multiple history use the average distance of distance, and it is that the electronic equipment runs the destination application that the history, which uses distance, When, the distance between user and the electronic equipment;
The mapping relations for searching preset distance and default decibel value determine the corresponding first default decibel of the target range Value;
Determine that decibel value is less than the part of speech data of the described first default decibel value in the voice data;
Determine the first sampling duration of the voice data and the second sampling duration of the part of speech data;
When detecting that accounting of the second sampling duration relative to the first sampling duration is greater than the first default accounting, really The fixed microphone is blocked.
3. the method according to claim 1, wherein described meet in the decibel value for detecting the voice data When preset condition, determine that the microphone is blocked, comprising:
The occupational information of user is obtained, the occupational information includes work scheduling information and working environment information;
The second default decibel value is determined according to the working environment information;
The detection period is determined according to the work scheduling information, and the detection period, interior high frequency used institute at work for user State the period of electronic equipment;
Obtaining part of speech data of the acquisition time in the detection in section is target speech data;
When determining the third sampling for the voice data that decibel value is less than the described second default decibel value in the target speech data It is long;
Detecting that accounting of the third sampling duration relative to the 4th sampling duration of the target speech data be greater than the When two default accountings, determine that the microphone is blocked.
4. the method according to claim 1, wherein described meet in the decibel value for detecting the voice data When preset condition, determine that the microphone is blocked, comprising:
When detecting that the electronic equipment enables hand-free function, determine that the distance between user and the electronic equipment variation become Gesture;
Determine that third presets the variation tendency of decibel parameter according to the distance change trend, the third presets decibel parameter and exists Distance becomes smaller when increasing, the increase when the distance becomes smaller;
Determine that the decibel value of the voice data is less than the 5th sampling duration of the default decibel parameter of third at corresponding moment, and The voice data the corresponding 6th samples duration;
When detecting that accounting of the 5th sampling duration relative to the 6th sampling duration presets accounting greater than third, really The fixed microphone is blocked.
5. method according to claim 1-4, which is characterized in that the output is for prompting described in user's change The prompting message of electronic equipment grip state, comprising:
The first blocked prompting message of the microphone is shown on a display screen;
When detecting that the grip state of the electronic equipment does not change in preset period of time, the second prompting message, institute are exported Stating the second prompting message includes the flash lamp flashing for shaking the electronic equipment or the control electronic equipment.
6. a kind of microphone blockage reminding device, which is characterized in that be applied to electronic equipment, the electronic equipment includes a wheat Gram wind, the microphone blockage reminding device includes detection unit, processing unit and prompt unit, wherein
The detection unit, for determining the collected voice when detecting the electronic equipment acquisition voice data The decibel value of data;
The processing unit, for determining the Mike when detecting that the decibel value of the voice data meets preset condition Wind is blocked;
The prompt unit, for exporting the prompting message for prompting user to change the electronic equipment grip state.
7. microphone blockage reminding device according to claim 6, which is characterized in that detecting the voice described When the decibel value of data meets preset condition, in terms of determining that the microphone is blocked, the processing unit is specifically used for: obtaining The destination application of front stage operation;And for determining that the destination application is corresponding according to the history usage record Target range, the target range are to run the target application according to the electronic equipment that the history usage record determines Average distance when program, between user and the electronic equipment;And for searching preset distance and default decibel value Mapping relations determine the corresponding first default decibel value of the target range;And for detecting the voice data When time accounting when decibel value is less than the first default decibel value is greater than the first preset threshold, determine that the microphone is blocked Plug.
8. microphone blockage reminding device according to claim 6, which is characterized in that detecting the voice described When the decibel value of data meets preset condition, in terms of determining that the microphone is blocked, the processing unit is specifically used for: obtaining The occupational information of user, the occupational information include work scheduling information and working environment information;And for according to the work The second default decibel value is determined as environmental information;And for determining detection period, the inspection according to the work scheduling information Survey the period be user at work interior high frequency use the electronic equipment period;And in section in the detection When detecting that the decibel value of the voice data is less than the time accounting of the described second default decibel value greater than the second preset threshold, Determine that the microphone is blocked.
9. microphone blockage reminding device according to claim 6, which is characterized in that detecting the voice described When the decibel value of data meets preset condition, in terms of determining that the microphone is blocked, the processing unit is specifically used for: examining When measuring the electronic equipment enabling hand-free function, the distance between user and the electronic equipment variation tendency are determined;And For determining that third presets the variation range of decibel parameter according to the distance change trend, the third presets decibel parameter and exists The distance becomes smaller when increasing, the increase when the distance becomes smaller;And in the decibel value for detecting the voice data When being greater than third predetermined threshold value less than the time accounting that the third presets decibel parameter, determine that the microphone is blocked.
10. according to the described in any item microphone blockage reminding devices of claim 6-9, which is characterized in that used in the output In terms of the prompting message that prompt user changes the electronic equipment grip state, the prompt unit is specifically used for: showing The first blocked prompting message of microphone described in screen display;And for detecting the electronic equipment in preset period of time Grip state when not changing, export the second prompting message, second prompting message is for shaking the electronic equipment Or the flash lamp flashing of the control electronic equipment.
11. a kind of electronic equipment, which is characterized in that including processor, memory, communication interface, and one or more programs, One or more of programs are stored in the memory, and are configured to be executed by the processor, described program packet Include the instruction for executing the step in the method according to claim 1 to 5.
12. a kind of computer readable storage medium, which is characterized in that storage is used for the computer program of electronic data interchange, In, the computer program makes computer execute the method according to claim 1 to 5.
CN201810831332.2A 2018-07-24 2018-07-24 Microphone blockage reminding method and related device Active CN108989964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810831332.2A CN108989964B (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
CN201810831332.2A CN108989964B (en) 2018-07-24 2018-07-24 Microphone blockage reminding method and related device

Publications (2)

Publication Number Publication Date
CN108989964A true CN108989964A (en) 2018-12-11
CN108989964B CN108989964B (en) 2021-01-12

Family

ID=64551523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810831332.2A Active CN108989964B (en) 2018-07-24 2018-07-24 Microphone blockage reminding method and related device

Country Status (1)

Country Link
CN (1) CN108989964B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104838669A (en) * 2012-12-06 2015-08-12 高通股份有限公司 Block resistant microphone port design
US20160127845A1 (en) * 2014-10-29 2016-05-05 Invensense, Inc. Blockage detection for a microelectromechanical systems sensor
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
CN106911996A (en) * 2017-03-03 2017-06-30 广东欧珀移动通信有限公司 The detection method of microphone state, device and terminal device
CN108124042A (en) * 2017-12-19 2018-06-05 厦门美图移动科技有限公司 Device fault detection method, device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104838669A (en) * 2012-12-06 2015-08-12 高通股份有限公司 Block resistant microphone port design
US20160127845A1 (en) * 2014-10-29 2016-05-05 Invensense, Inc. Blockage detection for a microelectromechanical systems sensor
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
CN106911996A (en) * 2017-03-03 2017-06-30 广东欧珀移动通信有限公司 The detection method of microphone state, device and terminal device
CN108124042A (en) * 2017-12-19 2018-06-05 厦门美图移动科技有限公司 Device fault detection method, device and mobile terminal

Also Published As

Publication number Publication date
CN108989964B (en) 2021-01-12

Similar Documents

Publication Publication Date Title
US10720176B2 (en) Multisensory speech detection
US8922485B1 (en) Behavioral recognition on mobile devices
CN106055364A (en) Application starting method and terminal equipment
CN106356070B (en) A kind of acoustic signal processing method and device
CN109061611A (en) Proximity sensor calibration method and relevant apparatus
CN106294168A (en) A kind of method and system carrying out Application testing
CN108055386B (en) Mobile terminal, management method thereof and storage device
CN109065017B (en) Voice data generation method and related device
CN105890620A (en) Step counting method and mobile terminal
CN106686579B (en) A kind of operator name acquisition methods and device
CN108415856A (en) Hardware compatibility method and relevant apparatus
CN109040937A (en) Microphone blocks based reminding method and relevant apparatus
CN108989964A (en) Microphone blocks based reminding method and relevant apparatus
CN110049537A (en) A kind of electricity saving method of intelligent wearable device, device, equipment and storage medium
CN109740121A (en) A kind of searching method of mobile terminal, mobile terminal and storage medium
CN108197006B (en) Electronic equipment falls reminding method and Related product
CN109451295A (en) A kind of method and system obtaining virtual information
CN104486512B (en) Calling detection method and device
CN104768132B (en) A kind of call detection method and detection device of conversing
CN106059898A (en) Information transmission method and device
CN109151177A (en) Microphone blocks based reminding method and relevant apparatus
CN108831438B (en) Voice data generation method and device, electronic device and computer readable storage medium
CN114488313B (en) Earphone in-situ detection method and device
CN108681594A (en) Document handling method and relevant apparatus
CN109032482A (en) Split screen control method, device, storage medium and electronic equipment

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