CN106610812B - Control method and control device - Google Patents

Control method and control device Download PDF

Info

Publication number
CN106610812B
CN106610812B CN201611235418.6A CN201611235418A CN106610812B CN 106610812 B CN106610812 B CN 106610812B CN 201611235418 A CN201611235418 A CN 201611235418A CN 106610812 B CN106610812 B CN 106610812B
Authority
CN
China
Prior art keywords
audio signals
recorded audio
acoustoelectric
acoustoelectric device
unit
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.)
Expired - Fee Related
Application number
CN201611235418.6A
Other languages
Chinese (zh)
Other versions
CN106610812A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611235418.6A priority Critical patent/CN106610812B/en
Publication of CN106610812A publication Critical patent/CN106610812A/en
Application granted granted Critical
Publication of CN106610812B publication Critical patent/CN106610812B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses a kind of control methods of electronic device.Control method includes: the first acoustoelectric device of starting to obtain the first recorded audio signals;Judge whether the first acoustoelectric device breaks down;Use electro-acoustic element as the second acoustoelectric device to obtain the second recorded audio signals with when the first acoustoelectric device breaks down.In addition, the invention also discloses a kind of control devices.Control method and control device of the invention uses electro-acoustic element as the second acoustoelectric device to replace the first acoustoelectric device to carry out voice input when the first acoustoelectric device breaks down, to not influence the normal voice input of user, improves user experience.

Description

Control method and control device
Technical field
The present invention relates to audio area, in particular to a kind of control method and control device.
Background technique
In order to reduce cost, only one general microphone can not record, thus shadow mobile phone when microphone breaks down The normal operating for ringing user, causes user experience bad.
Summary of the invention
The present invention is directed at least solve one of the technical problems existing in the prior art.For this purpose, the present invention needs to provide one Kind control method and control device.
A kind of control method, for controlling electronic device, the electronic device includes the first acoustoelectric device and electro-acoustic element, The control method the following steps are included:
Start first acoustoelectric device to obtain the first recorded audio signals;
Judge whether first acoustoelectric device breaks down;With
Use the electro-acoustic element as the second acoustoelectric device to obtain the when first acoustoelectric device breaks down Two recorded audio signals.
In some embodiments, the starting first acoustoelectric device to obtain the first recorded audio signals the step of include Following steps:
The first parameter of first acoustoelectric device is loaded, first parameter is for handling first recorded audio signals; With
First recorded audio signals are converted into pulse code modulation signal.
In some embodiments, described to judge that the step of whether first acoustoelectric device breaks down includes following step It is rapid:
Judge whether maximum signal level of first recorded audio signals in predetermined period is less than signal threshold value;
When the maximum signal level is less than the signal threshold value, switching the electro-acoustic element is second acoustoelectric device To obtain the second recorded audio signals;
Judge the ratio of the signal value of first recorded audio signals and second recorded audio signals in same predetermined amount of time Whether value is located at outside predetermined interval;With
Determine that first acoustoelectric device breaks down when the ratio is located at outside the predetermined interval.
In some embodiments, described that the electro-acoustic element conduct is used when first acoustoelectric device breaks down The step of second acoustoelectric device is to obtain the second recorded audio signals the following steps are included:
The second parameter of second acoustoelectric device is loaded, second parameter is for handling second recorded audio signals; With
Second recorded audio signals are converted into pulse code modulation signal.
In some embodiments, described that the electro-acoustic element conduct is used when first acoustoelectric device breaks down The step of second acoustoelectric device is to obtain the second recorded audio signals the following steps are included:
Alerting signal is sent to remind the first acoustoelectric device described in user to break down.
A kind of control device, for controlling electronic device, the electronic device includes the first acoustoelectric device and electro-acoustic element, The control device includes starting module, judgment module and control module.
The starting module is for starting first acoustoelectric device to obtain the first recorded audio signals.
The judgment module is for judging whether first acoustoelectric device breaks down.
The control module is used for when first acoustoelectric device breaks down using the electro-acoustic element as second Acoustoelectric device is to obtain the second recorded audio signals.
In some embodiments, the starting module includes the first loading unit and the first modulation unit.
First loading unit is used to load the first parameter of first acoustoelectric device, and first parameter is for locating Manage first recorded audio signals.
First modulation unit is used to first recorded audio signals being converted into pulse code modulation signal.
In some embodiments, the judgment module include the first judging unit, switch unit, second judgment unit and Determination unit.
Whether first judging unit is for judging maximum signal level of first recorded audio signals in predetermined period Less than signal threshold value.
The switch unit is used for when the maximum signal level is less than the signal threshold value, and switching the electro-acoustic element is Second acoustoelectric device is to obtain the second recorded audio signals.
The second judgment unit is for judging first recorded audio signals and described second in same predetermined amount of time Whether the ratio of the signal value of recorded audio signals is located at outside predetermined interval.
The determination unit is for determining that first acoustoelectric device goes out when the ratio is located at outside the predetermined interval Existing failure.
In some embodiments, the control module includes the second loading unit and the second modulation unit.
Second loading unit is used to load the second parameter of second acoustoelectric device, and second parameter is for locating Manage second recorded audio signals.
Second modulation unit is used to second recorded audio signals being converted into pulse code modulation signal.
In some embodiments, the control module includes transmission unit.
The transmission unit reminds the first acoustoelectric device described in user to break down for sending alerting signal.
Control method and control device of the invention is when the first acoustoelectric device breaks down using electro-acoustic element as the Two acoustoelectric devices, to not influence the normal voice input of user, are improved and are used to replace the first acoustoelectric device to carry out voice input Family experience.
Additional aspect and advantage of the invention will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention is from combining in description of the following accompanying drawings to embodiment by change It obtains obviously and is readily appreciated that, in which:
Fig. 1 is the flow diagram of the control method of embodiment of the present invention.
Fig. 2 is the functional block diagram of the control device of embodiment of the present invention.
Fig. 3 is the schematic diagram in kind of the electronic device of certain embodiments of the present invention.
Fig. 4 is the flow diagram of the control method of certain embodiments of the present invention.
Fig. 5 is the functional block diagram of the starting module of certain embodiments of the present invention.
Fig. 6 is the flow diagram of the control method of certain embodiments of the present invention.
Fig. 7 is the functional block diagram of the judgment module of certain embodiments of the present invention.
Fig. 8 is the flow diagram of the control method of certain embodiments of the present invention.
Fig. 9 is the functional block diagram of the control module of certain embodiments of the present invention.
Figure 10 is the flow diagram of the control method of certain embodiments of the present invention.
Figure 11 is the functional block diagram of the control module of certain embodiments of the present invention.
Figure 12 is the schematic diagram of circuit connection structure of the electronic device of certain embodiments of the present invention.
Main element symbol description:
Electronic device 100, starting module 12, the first loading unit 122, the first modulation unit 124, is sentenced control device 10 Disconnected module 14, the first judging unit 142, switch unit 144, second judgment unit 146, determination unit 148, control module 16, Second loading unit 162, the second modulation unit 164, closing unit 166, transmission unit 168, the first acoustoelectric device 20, zund-Burguet apparatus Part 30, the second acoustoelectric device 30, electro-acoustic element match circuit 40, switch 50, microphone matching circuits 60.
Specific embodiment
Embodiments of the present invention are described below in detail, the embodiment of the embodiment is shown in the accompanying drawings, wherein Same or similar label indicates same or similar element or element with the same or similar functions from beginning to end.Lead to below It crosses the embodiment being described with reference to the drawings to be exemplary, for explaining only the invention, and should not be understood as to limit of the invention System.
Also referring to Fig. 1 and Fig. 3, the control method of embodiment of the present invention can be used for controlling electronic device 100.Electricity Sub-device 100 includes the first acoustoelectric device 20 and electro-acoustic element 30.Control method the following steps are included:
S12: the first acoustoelectric device 20 of starting is to obtain the first recorded audio signals;
S14: judge whether the first acoustoelectric device 20 breaks down;With
S16: use electro-acoustic element 30 as the second acoustoelectric device 30 to obtain when the first acoustoelectric device 20 breaks down Second recorded audio signals.
Referring to Figure 2 together and Fig. 3, the control device 10 of embodiment of the present invention can be used for controlling electronic device 100. Electronic device 100 includes the first acoustoelectric device 20 and electro-acoustic element 30.Control device 10 includes starting module 12, judgment module 14 With control module 16.Starting module 12 is for starting the first acoustoelectric device 20 to obtain the first recorded audio signals.Judgment module 14 is used In judging whether the first acoustoelectric device 20 breaks down.Control module 16 is used to use when the first acoustoelectric device 20 breaks down Electro-acoustic element 30 is as the second acoustoelectric device 30 to obtain the second recorded audio signals.
In other words, the control method of embodiment of the present invention can be real by the control device 10 of embodiment of the present invention It is existing, wherein step S12 can be realized that step S14 can be realized by judgment module 14 by starting module 12, and step S16 can be by Control module 16 is realized.
In some embodiments, the control device 10 of embodiment of the present invention can be applied to electronic device 100, or Say that electronic device 100 includes the control device 10 of embodiment of the present invention.
Control method and control device 10 of the invention uses electro-acoustic element 30 when the first acoustoelectric device 20 breaks down As the second acoustoelectric device 30 to replace the first acoustoelectric device 20 to carry out voice input, so that the normal voice for not influencing user is defeated Enter, improves user experience.
In some embodiments, electronic device 100 includes mobile phone or tablet computer.In embodiments of the present invention, electric Sub-device 100 is mobile phone.
In some embodiments, the first acoustoelectric device 20 can be by acoustical signal including microphone, microphone or sound pick-up etc. It is converted into the device of electric signal, and is arranged right above 100 front of electronic device.Microphone includes dynamic microphones, capacitor Formula microphone or electret microphone.In embodiments of the present invention, the first acoustoelectric device 20 refers to dynamic microphones.At it In his embodiment, other suitable positions in electronic device 100 are also can be set in the first acoustoelectric device 20.
In some embodiments, electro-acoustic element 30 being capable of electric signal and acoustical signal including loudspeaker, earphone or loudspeaker etc. The device mutually converted, and be arranged right above 100 front of electronic device.In other words, electro-acoustic element 30 can be by electric signal It is converted into acoustical signal, and electric signal can be converted acoustic signals into.In embodiments of the present invention, electro-acoustic element 30 is that moving-coil type is raised Sound device.In other embodiments, other suitable positions in electronic device 100 also can be set in electro-acoustic element 30.Even, electric Acoustic device 30 may include it is multiple, be disposed adjacent or be separately positioned on the different location of electronic device 100.
Referring to Fig. 4, in some embodiments, step S12 the following steps are included:
S122: the first parameter of the first acoustoelectric device 20 of load, the first parameter is for handling the first recorded audio signals;With
S124: the first recorded audio signals are converted into pulse code modulation signal.
Referring to Fig. 5, in some embodiments, starting module 12 includes that the first loading unit 122 and the first modulation are single Member 124.First loading unit 122 is used to load the first parameter of the first acoustoelectric device 20, and the first parameter is for handling the first record Sound signal.First modulation unit 124 is used to the first recorded audio signals being converted into pulse code modulation signal.
In other words, step S122 can be realized that step S124 can be by the first modulation unit by the first loading unit 122 It realizes.
In this way, can use first the first recorded audio signals of parameter processing of the first acoustoelectric device 20 to improve signal-to-noise ratio.Separately On the one hand, the first recorded audio signals are converted into belonging to the pulse code modulation signal of digital signal, facilitate later use that there is height The digital signal processor of operational capability carries out signal processing.
It is appreciated that corresponding first parameter can be arranged according to the characteristic of the first acoustoelectric device 20.First parameter includes Analog gain, digital gain and filter parameter.In order to improve the conversion speed of the first recorded audio signals, mould can use Quasi--digital conversion method converts analog signals into digital signal, i.e., the first recorded audio signals is converted into pulse code modulation letter Number, signal processing is carried out using the digital signal processor with high operational capability.
Referring to Fig. 6, in some embodiments, step S14 the following steps are included:
S142: judge whether maximum signal level of first recorded audio signals in predetermined period is less than signal threshold value;
S144: when maximum signal level is less than signal threshold value, switching electro-acoustic element 30 is the second acoustoelectric device 30 to obtain Second recorded audio signals;
S146: judge that the ratio of the signal value of the first recorded audio signals and the second recorded audio signals is in same predetermined amount of time It is no to be located at outside predetermined interval;With
S148: determine that the first acoustoelectric device 20 breaks down when ratio is located at outside predetermined interval.
Referring to Fig. 7, in some embodiments, judgment module 14 include the first judging unit 142, switch unit 144, Second judgment unit 146 and determination unit 148.First judging unit 142 is for judging the first recorded audio signals in predetermined period Maximum signal level whether be less than signal threshold value.Switch unit 144 is used for when maximum signal level is less than signal threshold value, switching electricity Acoustic device 30 is the second acoustoelectric device 30 to obtain the second recorded audio signals.Second judgment unit 146 is for judging same predetermined Whether the ratio of the signal value of the first recorded audio signals and the second recorded audio signals is located at outside predetermined interval in period.Determination unit 148 for determining that the first acoustoelectric device 20 breaks down when ratio is located at outside predetermined interval.
In other words, step S142 can be realized that step S144 can be by switch unit 144 by the first judging unit 142 It realizes, step S146 can be realized that step S148 can be realized by determination unit 148 by second judgment unit 146.
In this way, can accurately judge the first acoustoelectric device 20 by the comparison of the second recorded audio signals and the first recorded audio signals Whether break down.
Specifically, first judge whether the maximum signal level in predetermined period of the first recorded audio signals is less than signal threshold value, When maximum signal level is more than or equal to signal threshold value, illustrates that the first acoustoelectric device 20 can obtain the first recorded audio signals, can sentence Disconnected first acoustoelectric device 20 does not break down;When maximum signal level is less than signal threshold value, illustrate that the first acoustoelectric device 20 occurs Failure or input volume are too small, and in order to further judge whether the first acoustoelectric device 20 breaks down, control device 10 can be cut Changing electro-acoustic element 30 is the second acoustoelectric device 30 to obtain the second recorded audio signals, judges the first recording in same predetermined amount of time Whether the ratio of the signal value of signal and the second recorded audio signals is located at outside predetermined interval, when ratio is located in predetermined interval, says Bright first acoustoelectric device 20 can obtain the first recorded audio signals, it can be determined that the first acoustoelectric device 20 does not break down;In ratio When outside predetermined interval, illustrates that the first acoustoelectric device 20 cannot obtain the first recorded audio signals, can determine the first acoustoelectric device 20 break down.
In some embodiments, predetermined period can be 3-5 sampling period or be inputted according to user and determined, herein Do not do any restrictions.It should be noted that predetermined period is too short, it is easy to choose and arrives lesser first recorded audio signals of signal value, from And there is erroneous judgement;Predetermined period is too long, will increase the workload of electronic device 100, reduces the work effect of electronic device 100 Rate.
In some embodiments, signal threshold value can be inputted according to user and be determined.It should be noted that signal threshold value is too Small, the noise of the first recorded audio signals can exceed that signal threshold value, to erroneous judgement occur;Signal threshold value is too big, the first recording letter Number it may be always less than signal threshold value, to erroneous judgement occur.
In some embodiments, predetermined amount of time can be 3-5 sampling period or be inputted according to user and determined, This does not do any restrictions.It should be noted that predetermined amount of time is too short, data volume is too small, is easy to appear erroneous judgement;Predetermined period It is too long, it will increase the workload of electronic device 100, reduce the working efficiency of electronic device 100.
In some embodiments, predetermined interval can be inputted according to user and be determined.It should be noted that predetermined interval is too It is small, when error occur in the first recorded audio signals or the second recorded audio signals, it is easy to appear erroneous judgement;Predetermined interval is too big, One acoustoelectric device 20 may can't detect when breaking down, to erroneous judgement occur.
It is appreciated that the failure of the first acoustoelectric device 20 refers to that the first acoustoelectric device 20 can not work normally, including Situations such as component wear of first acoustoelectric device 20 or the first acoustoelectric device 20 are blocked.
Referring to Fig. 8, in some embodiments, step S16 the following steps are included:
S162: the second parameter of the second acoustoelectric device 30 of load, the second parameter is for handling the second recorded audio signals;With
S164: the second recorded audio signals are converted into pulse code modulation signal.
Referring to Fig. 9, in some embodiments, control module 16 includes that the second loading unit 162 and the second modulation are single Member 164.Second loading unit 162 is used to load the second parameter of the second acoustoelectric device 30, and the second parameter is for handling the second record Sound signal.Second modulation unit 164 is used to the second recorded audio signals being converted into pulse code modulation signal.
In other words, step S162 can be realized that step S164 can be by the second modulation unit by the second loading unit 162 164 realize.
In this way, can use second the second recorded audio signals of parameter processing of the second acoustoelectric device 30 to improve signal-to-noise ratio.Separately On the one hand, the second recorded audio signals are converted into belonging to the pulse code modulation signal of digital signal, facilitate later use that there is height The digital signal processor of operational capability carries out signal processing.
It is appreciated that since the second acoustoelectric device 30 is different with the characteristic of the first acoustoelectric device 20, such as sensitivity, so Corresponding parameter is also different.Second parameter includes analog gain, digital gain and filter parameter.Control device 10 utilizes difference Parameter different processing is carried out to the first recorded audio signals and the second recorded audio signals.At signal in order to improve the second recorded audio signals Speed is managed, analog-digital conversion method of solid is can use and converts analog signals into digital signal, i.e., is converted the second recorded audio signals At pulse code modulation signal, signal processing is carried out using the digital signal processor with high operational capability.
In some embodiments, adjustable first parameter and/or the second parameter so that the first recorded audio signals and The difference of second recorded audio signals becomes smaller.
In this way, will not be recorded because of the second recorded audio signals and first when electro-acoustic element 30 is switched to the second acoustoelectric device 30 The difference of sound signal is excessive and influences the normal use of user.
Specifically, the first acoustoelectric device 20 and the second acoustoelectric device 30 can be placed in anechoic chamber, in anechoic chamber The test sound for playing fixed loudness, adjusts the first parameter and/or the second parameter, so that the signal value size of the second recorded audio signals It is close with the signal value size of the first recorded audio signals.
Referring to Fig. 10, in some embodiments, step S16 the following steps are included:
S166: the first acoustoelectric device 20 is closed.
Figure 11 is please referred to, in some embodiments, control module 16 includes closing unit 166.Closing unit 166 is used for Close the first acoustoelectric device 20.
In other words, step S166 can be realized by closing unit 166.
In this way, can be to avoid the unnecessary electric quantity consumption of the first acoustoelectric device 20.
Referring to Figure 10, in some embodiments, step S16 the following steps are included:
S168: alerting signal is sent to remind the first acoustoelectric device of user 20 to break down.
Referring to Figure 11, in some embodiments, control module 16 includes transmission unit 168.Transmission unit 168 For sending alerting signal to remind the first acoustoelectric device of user 20 to break down.
In other words, step S168 can be realized by transmission unit 168.
In this way, user can be reminded when the first acoustoelectric device 20 breaks down, so that user accurately grasps the first acoustic-electric The working condition of device 20, and then improve user experience.
Figure 12 is please referred to, in some embodiments, electronic device 100 further includes electro-acoustic element match circuit 40, switch 50 and microphone matching circuits 60.Electro-acoustic element match circuit 40 is for connecting electro-acoustic element 30 and control device 10.Switch 50 With microphone matching circuits 60 for connecting electro-acoustic element 30 and control device 10.Control device 10 connect and is used for switch 50 When electro-acoustic element 30 is connected by electro-acoustic element match circuit 40 and control device 10, control switch 50 is disconnected to block electroacoustic The connection of device 30 and microphone matching circuits 60.
In this way, controllable electro-acoustic element 30 is filled by electro-acoustic element match circuit 40 or microphone matching circuits 60 and control 10 connections are set to switch the working condition of electro-acoustic element 30.
Specifically, electro-acoustic element 30 is the device that can carry out electro-acoustic bi-directional conversion.In electro-acoustic element 30 and electro-acoustic element When match circuit 40 connects, the work of electro-acoustic element 30 is disconnected in electroacoustic state, 10 control switch 50 of control device to block electroacoustic The larger possible damage of the voltage of device 30.When electro-acoustic element 30 is connect with microphone matching circuits 60, electro-acoustic element 30 work close electro-acoustic element match circuit 40 in acoustic-electric state, control device 10.
In some embodiments, the input of the first acoustoelectric device 20 can be single ended input or Differential Input, electroacoustic The output of device 30 is also possible to Single-end output or difference output, and corresponding second acoustoelectric device 30 is also possible to single ended input Or Differential Input, any restrictions are not done herein.In embodiments of the present invention, the first acoustoelectric device 20 is single ended input, electricity Acoustic device 30 is Single-end output, and the second acoustoelectric device 30 is single ended input.
In the description of embodiments of the present invention, term " first ", " second " are used for description purposes only, and cannot understand For indication or suggestion relative importance or implicitly indicate the quantity of indicated technical characteristic.Define as a result, " first ", The feature of " second " can explicitly or implicitly include one or more feature.In embodiments of the present invention In description, the meaning of " plurality " is two or more, unless otherwise specifically defined.
In the description of embodiments of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be fixedly connected, may be a detachable connection or one Connect to body;It can be mechanical connection, be also possible to be electrically connected or can mutually communicate;It can be directly connected, can also lead to It crosses intermediary to be indirectly connected, can be the connection inside two elements or the interaction relationship of two elements.For ability For the those of ordinary skill in domain, can understand as the case may be above-mentioned term in embodiments of the present invention specifically contain Justice.
In the description of this specification, reference term " embodiment ", " some embodiments ", " schematically implementation The description of mode ", " example ", specific examples or " some examples " etc. means the tool described in conjunction with the embodiment or example Body characteristics, structure, material or feature are contained at least one embodiment or example of the invention.In the present specification, Schematic expression of the above terms are not necessarily referring to identical embodiment or example.Moreover, the specific features of description, knot Structure, material or feature can be combined in any suitable manner in any one or more embodiments or example.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processing module or other can be from instruction Execute system, device or equipment instruction fetch and the system that executes instruction) use, or combine these instruction execution systems, device or Equipment and use.For the purpose of this specification, " computer-readable medium " can be it is any may include, store, communicating, propagating or Transfer program uses for instruction execution system, device or equipment or in conjunction with these instruction execution systems, device or equipment Device.The more specific example (non-exhaustive list) of computer-readable medium include the following: there are one or more wirings Electrical connection section (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of embodiments of the present invention can be with hardware, software, firmware or their combination come real It is existing.In the above-described embodiment, multiple steps or method can be with storages in memory and by suitable instruction execution system The software or firmware of execution is realized.For example, if realized with hardware, in another embodiment, ability can be used Any one of following technology or their combination well known to domain is realized: being had for realizing logic function to data-signal The discrete logic of logic gates, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
In addition, each functional unit in various embodiments of the present invention can integrate in a processing module, it can also To be that each unit physically exists alone, can also be integrated in two or more units in a module.It is above-mentioned integrated Module both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module If in the form of software function module realize and when sold or used as an independent product, also can store one calculating In machine read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (8)

1. a kind of control method, for controlling electronic device, the electronic device includes the first acoustoelectric device and electro-acoustic element, Be characterized in that, the control method the following steps are included:
Start first acoustoelectric device to obtain the first recorded audio signals;
Judge whether first acoustoelectric device breaks down;With
Use the electro-acoustic element as the second acoustoelectric device to obtain the second record when first acoustoelectric device breaks down Sound signal;
It is described judge the step of whether first acoustoelectric device breaks down the following steps are included:
Judge whether maximum signal level of first recorded audio signals in predetermined period is less than signal threshold value;
When the maximum signal level is less than the signal threshold value, switching the electro-acoustic element is second acoustoelectric device to obtain Obtain the second recorded audio signals;
Judge that the ratio of the signal value of first recorded audio signals and second recorded audio signals is in same predetermined amount of time It is no to be located at outside predetermined interval;With
Determine that first acoustoelectric device breaks down when the ratio is located at outside the predetermined interval.
2. control method as described in claim 1, which is characterized in that starting first acoustoelectric device is to obtain first The step of recorded audio signals the following steps are included:
The first parameter of first acoustoelectric device is loaded, first parameter is for handling first recorded audio signals;With
First recorded audio signals are converted into pulse code modulation signal.
3. control method as described in claim 1, which is characterized in that described to be adopted when first acoustoelectric device breaks down The step of using the electro-acoustic element as the second acoustoelectric device to obtain the second recorded audio signals the following steps are included:
The second parameter of second acoustoelectric device is loaded, second parameter is for handling second recorded audio signals;With
Second recorded audio signals are converted into pulse code modulation signal.
4. control method as described in claim 1, which is characterized in that described to be adopted when first acoustoelectric device breaks down The step of using the electro-acoustic element as the second acoustoelectric device to obtain the second recorded audio signals the following steps are included:
Alerting signal is sent to remind the first acoustoelectric device described in user to break down.
5. a kind of control device, for controlling electronic device, the electronic device includes the first acoustoelectric device and electro-acoustic element, It is characterized in that, the control device includes:
Starting module, the starting module is for starting first acoustoelectric device to obtain the first recorded audio signals;
Judgment module, the judgment module is for judging whether first acoustoelectric device breaks down;With
Control module, the control module are used to use the electro-acoustic element conduct when first acoustoelectric device breaks down Second acoustoelectric device is to obtain the second recorded audio signals;
The judgment module includes:
First judging unit, first judging unit are used to judge maximum letter of first recorded audio signals in predetermined period Number value whether be less than signal threshold value;
Switch unit, the switch unit are used to switch the electroacoustic when the maximum signal level is less than the signal threshold value Device is second acoustoelectric device to obtain the second recorded audio signals;
Second judgment unit, the second judgment unit for judge in same predetermined amount of time first recorded audio signals with Whether the ratio of the signal value of second recorded audio signals is located at outside predetermined interval;With
Determination unit, the determination unit is for determining the first acoustic-electric device when the ratio is located at outside the predetermined interval Part breaks down.
6. control device as claimed in claim 5, which is characterized in that the starting module includes:
First loading unit, first loading unit are used to load the first parameter of first acoustoelectric device, and described first Parameter is for handling first recorded audio signals;With
First modulation unit, first modulation unit are used to for first recorded audio signals to be converted into pulse code modulation letter Number.
7. control device as claimed in claim 5, which is characterized in that the control module includes:
Second loading unit, second loading unit are used to load the second parameter of second acoustoelectric device, and described second Parameter is for handling second recorded audio signals;With
Second modulation unit, second modulation unit are used to for second recorded audio signals to be converted into pulse code modulation letter Number.
8. control device as claimed in claim 5, which is characterized in that the control module includes:
Transmission unit, the transmission unit remind the first acoustoelectric device described in user to break down for sending alerting signal.
CN201611235418.6A 2016-12-28 2016-12-28 Control method and control device Expired - Fee Related CN106610812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611235418.6A CN106610812B (en) 2016-12-28 2016-12-28 Control method and control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611235418.6A CN106610812B (en) 2016-12-28 2016-12-28 Control method and control device

Publications (2)

Publication Number Publication Date
CN106610812A CN106610812A (en) 2017-05-03
CN106610812B true CN106610812B (en) 2019-08-30

Family

ID=58636170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611235418.6A Expired - Fee Related CN106610812B (en) 2016-12-28 2016-12-28 Control method and control device

Country Status (1)

Country Link
CN (1) CN106610812B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040937B (en) * 2018-07-24 2020-08-28 Oppo(重庆)智能科技有限公司 Microphone blockage reminding method and related device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104380698A (en) * 2014-04-10 2015-02-25 华为终端有限公司 Verbal system, and switching method and device which are applied to verbal system
CN105554202A (en) * 2015-09-28 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Microphone control method and device
CN105979053A (en) * 2016-04-18 2016-09-28 广东欧珀移动通信有限公司 Method and device for detecting microphone in mobile terminal and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104380698A (en) * 2014-04-10 2015-02-25 华为终端有限公司 Verbal system, and switching method and device which are applied to verbal system
CN105554202A (en) * 2015-09-28 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Microphone control method and device
CN105979053A (en) * 2016-04-18 2016-09-28 广东欧珀移动通信有限公司 Method and device for detecting microphone in mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN106610812A (en) 2017-05-03

Similar Documents

Publication Publication Date Title
US7450726B2 (en) Headset detector in a device generating audio signals
CA2926858C (en) A device-adaptable audio headset
US20080112572A1 (en) Earphone and media player
CN115802227A (en) Data controller, peripheral electronic device and electronic device
CN103988088A (en) Plug type detection
CN103179495A (en) Audio test method and system for earphone microphone and receiver of mobile terminal
KR101357984B1 (en) System for controlling electronic device, audio accessory having a plurality of passive swithches for controlling the electronic device, and associated method
US8825497B2 (en) Systems and methods for reducing audio disturbance associated with control messages in a bitstream
CN102413402A (en) Audio frequency control method of audio frequency output device and audio frequency output device
CN106878910A (en) Control method of speaking and electronic installation
CN103546839A (en) Audio signal processing system and echo signal removing method thereof
US20130259247A1 (en) Audio control system
CN106610812B (en) Control method and control device
CN106488045A (en) Control method and control device
CN102421056A (en) Loudspeaker detection method and device
CN106878865B (en) Control method and control device for electroacoustic element
CN207070268U (en) Earphone
CN1330228C (en) Apparatus and method for determining strength of impact when closing a folder-type terminal
CN106648536A (en) Control method, control device and electronic device
CN105373209A (en) Control method and apparatus for mobile terminal and mobile terminal
CN217957296U (en) Circuit for realizing internal recording of system sound
CN106791131A (en) Control method and control device
CN212752568U (en) Bluetooth earphone
CA2792358C (en) Systems and methods for reducing audio disturbance associated with control messages in a bitstream
CN112345981B (en) Detection jig and method for detecting audio socket

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190830