CN106648536B - Control method, control device and electronic device - Google Patents

Control method, control device and electronic device Download PDF

Info

Publication number
CN106648536B
CN106648536B CN201611236697.8A CN201611236697A CN106648536B CN 106648536 B CN106648536 B CN 106648536B CN 201611236697 A CN201611236697 A CN 201611236697A CN 106648536 B CN106648536 B CN 106648536B
Authority
CN
China
Prior art keywords
recording signal
signal
electroacoustic
saturation distortion
saturation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611236697.8A
Other languages
Chinese (zh)
Other versions
CN106648536A (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 CN201611236697.8A priority Critical patent/CN106648536B/en
Publication of CN106648536A publication Critical patent/CN106648536A/en
Application granted granted Critical
Publication of CN106648536B publication Critical patent/CN106648536B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a control method of an electronic device. Firstly, whether the first recording signal of the first acoustoelectric device has saturation distortion or not is judged. Then, the electroacoustic device is switched to a second electroacoustic device when the first recording signal is subjected to saturation distortion to obtain a second recording signal. In addition, the invention also discloses a control device and an electronic device. According to the control method and the control device of the electronic device and the electronic device, the electroacoustic device with low sensitivity is switched to be used as the second electroacoustic device when the first recording signal of the first electroacoustic device has saturated distortion so as to obtain the undistorted second recording signal, so that the recording quality can be improved.

Description

Control method, control device and electronic device
Technical Field
The present invention relates to the field of audio, and in particular, to a control method, a control device, and an electronic device.
Background
The dynamic range of the mobile phone microphone is too small, so that signal saturation distortion is easily caused when the recording volume is too large, and the recording quality is influenced.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the present invention is to provide a control method and a control device for an electronic device, and an electronic device.
A control method for controlling an electronic apparatus, the electronic apparatus comprising a first acousto-electric device and an electro-acoustic device, the control method comprising the steps of:
judging whether the first recording signal of the first sound-electricity device has saturation distortion or not; and
and switching the electroacoustic device to be a second electroacoustic device when the first recording signal has saturation distortion so as to obtain a second recording signal.
In some embodiments, the step of determining whether the first sound recording signal of the first acoustoelectric device has saturation distortion includes the steps of:
converting the first sound recording signal into a pulse code modulation signal; and
and judging whether the first recording signal has saturation distortion or not according to the pulse code modulation signal.
In some embodiments, the step of determining whether the first sound recording signal of the first acoustoelectric device has saturation distortion includes the steps of:
judging whether the occurrence frequency of a saturation threshold value of the first sound recording signal in a preset period exceeds a preset frequency or not; and
and determining that the first sound recording signal has saturation distortion when the occurrence frequency exceeds the preset frequency.
In some embodiments, the step of determining whether the first sound recording signal of the first acoustoelectric device has saturation distortion includes the steps of:
converting the first sound recording signal into a frequency domain signal;
judging whether the frequency domain signal meets a preset condition or not; and
and when the frequency domain signal meets the preset condition, determining that the first sound recording signal has saturation distortion.
In some embodiments, the step of switching the electroacoustic device to be the second electroacoustic device to obtain the second recording signal when the first recording signal is saturated and distorted comprises the steps of:
loading parameters of the second acoustoelectric device, wherein the parameters are used for processing the second recording signal.
In some embodiments, the step of switching the electroacoustic device to be the second electroacoustic device to obtain the second recording signal when the first recording signal is saturated and distorted comprises the steps of:
turning off the first acousto-electric device.
A control device is used for controlling an electronic device, wherein the electronic device comprises a first acoustoelectric device and an electroacoustic device, and the control device is characterized by comprising a judgment module and a control module.
The judging module is used for judging whether the first recording signal of the first sound-electricity device has saturation distortion or not.
The control module is used for switching the electroacoustic device into a second electroacoustic device when the first recording signal is subjected to saturation distortion so as to obtain a second recording signal.
In some embodiments, the determining module includes a first converting unit and a first determining unit.
The first conversion unit is used for converting the first sound recording signal into a pulse code modulation signal.
The first judging unit is used for judging whether the first recording signal has saturation distortion according to the pulse code modulation signal.
In some embodiments, the determining module includes a second determining unit and a first determining unit.
The second judging unit is used for judging whether the occurrence frequency of the saturation threshold value of the first sound recording signal in a preset period exceeds a preset frequency.
The first determining unit is used for determining that the first sound recording signal has saturation distortion when the maximum signal is equal to the occurrence frequency exceeding the preset frequency.
In some embodiments, the determining module includes a second converting unit, a third determining unit, and a second determining unit.
The second conversion unit is used for converting the first sound recording signal into a frequency domain signal.
The third judging unit is used for judging whether the frequency domain signal meets a preset condition.
The second determining unit is used for determining that the first sound recording signal has saturation distortion when the frequency domain signal meets the preset condition.
In certain embodiments, the control module comprises a load unit.
The loading unit is used for loading parameters of the second acoustoelectric device, and the parameters are used for processing the second recording signal.
In certain embodiments, the control module comprises a shut down unit.
The closing unit is used for closing the first acoustoelectric device.
An electronic device comprises a first acousto-electric device, an electro-acoustic device and the control device.
In some embodiments, the electronic device comprises a cell phone or a tablet computer.
In some embodiments, the first acousto-electrical device comprises a microphone, or a sound pick-up.
In some embodiments, the electroacoustic device comprises a speaker, an earphone, or a loudspeaker.
In some embodiments, the electronic device includes a switching circuit including a first input terminal, a second input terminal, an output terminal, and a control terminal.
The first input end is used for receiving the first sound recording signal.
The second input end is used for receiving the second sound recording signal.
The output end is connected with the first input end.
The control end is used for switching the output end to be connected with the second input end when the first recording signal has saturation distortion.
According to the control method and the control device of the electronic device and the electronic device, the electroacoustic device with low sensitivity is switched to be used as the second electroacoustic device when the first recording signal of the first electroacoustic device has saturated distortion so as to obtain the undistorted second recording signal, so that the recording quality can be improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart illustrating a control method according to an embodiment of the present invention.
Fig. 2 is a functional block diagram of an electronic device according to an embodiment of the invention.
Fig. 3 is a flow chart illustrating a control method according to some embodiments of the present invention.
FIG. 4 is a functional block diagram of a determination module according to some embodiments of the present invention.
FIG. 5 is a flow chart illustrating a control method according to some embodiments of the present invention.
FIG. 6 is a functional block diagram of a determination module according to some embodiments of the present invention.
FIG. 7 is a flow chart illustrating a control method according to some embodiments of the present invention.
FIG. 8 is a functional block diagram of a determination module in accordance with certain embodiments of the present invention.
FIG. 9 is a flow chart illustrating a control method according to some embodiments of the present invention.
FIG. 10 is a functional block diagram of a control module according to some embodiments of the present invention.
FIG. 11 is a schematic diagram of a switching circuit in accordance with certain embodiments of the present invention.
Description of the main element symbols:
the electronic device 100, the control device 10, the judgment module 12, the first conversion unit 121, the first judgment unit 122, the second judgment unit 123, the first determination unit 124, the second conversion unit 125, the third judgment unit 126, the second determination unit 127, the control module 14, the loading unit 142, the closing unit 144, the first acoustoelectric device 20, the electroacoustic device (second acoustoelectric device) 30, the switching circuit 40, the first input terminal 42, the second input terminal 44, the output terminal 46, and the control terminal 48.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
Referring to fig. 1, a control method according to an embodiment of the invention may be used for controlling an electronic device. The electronic device includes a first acousto-electric device and an electro-acoustic device. The control method comprises the following steps:
s12: judging whether the first recording signal of the first acoustoelectric device has saturation distortion or not; and
s14: and switching the electroacoustic device to be a second electroacoustic device when the first recording signal has saturation distortion so as to obtain a second recording signal.
Referring to fig. 2, the control device 10 according to the embodiment of the invention can be used for controlling the electronic device 100. The electronic device 100 may further comprise a first acousto-electric device 20 and an electro-acoustic device 30.
The control device 10 includes a determination module 12 and a control module 14. The judging module 12 is configured to judge whether saturation distortion occurs in the first sound recording signal of the first acousto-electric device 20. The control module 14 is configured to switch the electroacoustic device 30 to be the second electroacoustic device 30 to obtain the second recording signal when the first recording signal is saturated and distorted.
That is, the control method according to the embodiment of the present invention may be implemented by the control device 10 according to the embodiment of the present invention, wherein the step S12 may be implemented by the determination module 12, and the step S14 may be implemented by the control module 14.
In some embodiments, the control device 10 according to the embodiment of the present invention may be applied to the electronic device 100 according to the embodiment of the present invention, or the electronic device 100 according to the embodiment of the present invention includes the control device 10 according to the embodiment of the present invention.
The control method, the control device 10 and the electronic device 100 according to the embodiment of the present invention switch the electroacoustic device 30 with low sensitivity as the second electroacoustic device 30 when the first recording signal of the first electroacoustic device 20 has saturation distortion to obtain the undistorted second recording signal, so as to improve the recording quality.
In some embodiments, the electronic device 100 comprises a mobile phone or a tablet computer. In the embodiment of the present invention, the electronic device 100 is a mobile phone.
In some embodiments, the first acoustoelectric device 20 includes a microphone, a sound pickup, or other devices capable of converting an acoustic signal into an electrical signal, and is disposed directly above the front of the electronic apparatus 100. The microphone includes a moving coil microphone, a condenser microphone, or an electret microphone. In the embodiment of the present invention, the first acoustoelectric device 20 is a moving-coil microphone. In other embodiments, the first acoustoelectric device 20 may also be disposed at other suitable locations of the electronic apparatus 100. Even more, the first acoustoelectric device 20 may include a plurality of, be adjacently disposed or be disposed at different locations of the electronic apparatus 100.
In some embodiments, the electroacoustic device 30 comprises a speaker, an earphone, a loudspeaker, or other device capable of converting acoustic signals and electrical signals to each other, and is disposed directly above the front of the electronic device 100. That is, the electroacoustic device 30 can convert both an electric signal into an acoustic signal and an acoustic signal into an electric signal. In an embodiment of the present invention, the electroacoustic device 30 is a moving coil speaker. In other embodiments, the electroacoustic device 30 may also be disposed in other suitable locations of the electronic device 100. Even more, the electroacoustic device 30 may comprise a plurality of, adjacently arranged or separately arranged at different locations of the electronic apparatus 100.
It can be understood that, since the first acousto-electric device 20 is used as an acousto-electric conversion device, a diaphragm with a smaller mass is used in the manufacturing process to obtain a higher sensitivity, and due to the dynamic range limitation of the first acousto-electric device 20, saturation distortion of the first recording signal is easily caused when the recording volume is larger. On the other hand, the electroacoustic device 30 itself is a device for performing electroacoustic conversion, and a diaphragm with a larger mass is generally used to obtain a larger volume of voice output, so the sensitivity of the electroacoustic device 30 is lower, and therefore, when the electroacoustic device 30 is used as the second electroacoustic device 30 to obtain the second recording signal, saturation distortion does not easily occur.
Referring to fig. 3, in some embodiments, step S12 includes the following steps:
s121: converting the first recording signal into a pulse code modulation signal; and
s122: and judging whether the first recording signal has saturation distortion or not according to the pulse code modulation signal.
Referring to fig. 4, in some embodiments, the determining module 12 includes a first converting unit 121 and a first determining unit 122. The first converting unit 121 is used for converting the first recording signal into a pulse code modulation signal. The first determining unit 122 is configured to determine whether the first recording signal has saturation distortion according to the pulse code modulation signal.
That is, step S121 may be implemented by the first conversion unit 121, and step S122 may be implemented by the first judgment unit 122.
It can be understood that, before processing the first recording signal, the control device 10 may first convert the analog signal into a digital signal by an analog-to-digital conversion method, that is, convert the first recording signal into a pulse code modulation signal, and by processing the digital signal corresponding to the first recording signal, it is convenient to subsequently identify whether saturation distortion occurs by using a digital signal processor with high computing power.
Referring to fig. 5, in some embodiments, step S12 includes the following steps:
s123: judging whether the occurrence frequency of a saturation threshold value of the first sound recording signal in a preset period exceeds a preset frequency or not; and
s124: and determining that the first sound recording signal has saturation distortion when the occurrence frequency exceeds a preset frequency.
Referring to fig. 6, in some embodiments, the determining module 12 includes a second determining unit 123 and a first determining unit 124. The second judging unit 123 is configured to judge whether the occurrence frequency of the saturation threshold of the first sound recording signal in the predetermined period exceeds the predetermined frequency. The first determining unit 124 is used for determining that the first sound recording signal has saturation distortion when the occurrence number exceeds a predetermined number.
That is, step S123 may be implemented by the second determination unit 123, and step S142 may be implemented by the first determination unit 124.
It can be understood that if the first recording signal does not have saturation distortion, the first recording signal should be within the saturation threshold, and therefore, whether the first recording signal has saturation distortion can be determined by determining whether the first recording signal is greater than the saturation threshold. However, in order to prevent noise interference, the determining step S12 and the determining module 12 of the embodiment of the present invention determine whether saturation distortion occurs by using the condition that the occurrence number of saturation thresholds exceeds the predetermined number in the predetermined period, so that noise interference can be effectively avoided and correct determination can be affected. In addition, the condition that the occurrence number of the saturation threshold value exceeds the predetermined number within the predetermined period can be adopted to avoid the misjudgment of the control device 10 caused by the short excessive volume of the external environment.
In some embodiments, the length of the predetermined period may be set according to the sampling frequency of the first recording signal, and the predetermined period may be set to 3-5 sampling periods. For example, when the first audio record signal is sampled at a sampling frequency of 8000 hz, the sampling period is 0.125 ms, and the predetermined period may be set to 0.375 to 0.625 ms.
In some embodiments, the length of the predetermined period may be set by a user, without limitation. It should be noted that the length of the predetermined period may affect the accuracy of determining whether the first recording signal is saturated or not. If the predetermined period is too long, errors in the first recording signal may accumulate, which may lead the control device 10 to falsely determine that the first recording signal has saturation distortion, and thus switch the electroacoustic device 30 as the second electroacoustic device 30. If the predetermined period is too short, the occurrence frequency of the saturation threshold may be dispersed, so that the determination criterion of the control apparatus 10 is not met, and the electroacoustic device 30 cannot be switched to serve as the second electroacoustic device 30 in time when the saturation distortion occurs in the first recording signal.
In some embodiments, the saturation threshold may be obtained by processing the first sound recording signal by the control device 10. The control device 10 processes the first recording signal to obtain a maximum signal of the first recording signal, and in combination with the parameters of the first acousto-electric device 20, may determine whether the maximum signal has been distorted, and when the maximum signal is distorted, may determine that the maximum signal is a saturation threshold.
In some embodiments, the saturation threshold may be a fixed value, and is not limited herein. The saturation threshold may be a fixed value obtained from a large amount of experimental data before the electronic device 100 is shipped.
In some embodiments, the predetermined number of times may be a value stored by the electronic device 100.
In some embodiments, the size of the predetermined number of times may be set by a user, without limitation. It should be noted that the magnitude of the predetermined number of times may affect the accuracy of determining whether the first recording signal is saturated and distorted. If the predetermined number of times is too small, the error in the first recorded signal may cause the control device 10 to falsely determine that the first recorded signal has saturation distortion, and then switch the electroacoustic device 30 as the second electroacoustic device 30. If the predetermined number of times is too large, the number of times of occurrence of the saturation threshold may not meet the determination criterion of the control apparatus 10, and the electroacoustic device 30 may not be switched as the second electroacoustic device 30 in time when the first recording signal has saturation distortion.
Referring to fig. 7, in some embodiments, step S12 includes the following steps:
s125: converting the first sound recording signal into a frequency domain signal;
s126: judging whether the frequency domain signal meets a preset condition or not; and
s127: and when the frequency domain signal meets a preset condition, determining that the first recording signal has saturation distortion.
Referring to fig. 8, in some embodiments, the determining module 12 includes a second converting unit 125, a third determining unit 126, and a second determining unit 127. The second converting unit 125 is used for converting the first sound recording signal into a frequency domain signal. The third judging unit 126 is used for judging whether the frequency domain signal meets the predetermined condition. The second determining unit 127 is used for determining that the first sound recording signal has saturation distortion when the frequency domain signal meets a predetermined condition.
That is, step S125 may be implemented by the second conversion unit 125, step S126 may be implemented by the third judgment unit 126, and step S127 may be implemented by the second determination unit 127.
It can be understood that the judgment of whether the first recording signal has saturation distortion can be performed not only by processing the time domain signal, but also by processing the frequency domain signal. Whether the frequency domain signal meets the preset condition or not can be judged by converting the first sound recording signal into the frequency domain signal, and when the frequency domain signal meets the preset condition, the first sound recording signal is determined to have saturation distortion.
In some embodiments, the predetermined condition may be a harmonic law of the frequency domain signal. The control device 10 may store a harmonic law corresponding to the saturation distortion signal, and then determine whether the harmonic of the frequency domain signal of the first recording signal satisfies the harmonic law of the saturation distortion signal, and when the frequency domain signal satisfies the harmonic law of the saturation distortion signal, determine that the first recording signal has saturation distortion, so that the control device 10 switches the electroacoustic device 30 as the second electroacoustic device 30. For example, the control device 10 may calculate or experimentally obtain the harmonic coefficients of the saturation signal as m1, m2, and m3 … mn, determine whether the same harmonic coefficient occurs in the frequency domain signal of the first recording signal, and determine that saturation distortion occurs in the first recording signal when the same harmonic coefficient occurs.
Referring to fig. 9, in some embodiments, step S14 includes the following steps:
s142: parameters of a second acoustoelectric device are loaded, and the parameters are used for processing the second recording signal.
Referring to FIG. 10, in some embodiments, the control module 14 includes a load unit 142. The loading unit 142 is used for loading the parameters of the second acoustoelectric device 30, and the parameters are used for processing the second recording signal.
That is, step S142 may be implemented by the loading unit 142.
It will be appreciated that due to the different characteristics of the second acousto-electric device 30, such as sensitivity, that the first acousto-electric device 20 and the electro-acoustic device 30 transduce, the corresponding signal processing parameters will also be different. The parameters include analog gain, digital gain, and filter parameters. The control device 10 processes the first recording signal and the second recording signal differently with different parameters.
Referring again to fig. 9, in some embodiments, step S14 includes the following steps:
s144: the first acousto-electric device is turned off.
Referring again to FIG. 10, in some embodiments, the control module 14 includes a shut down unit 144. The turning-off unit 144 is used to turn off the first acoustoelectric device 20.
That is, step S144 may be implemented by the closing unit 144.
It will be appreciated that the second recorded signal replaces the first recorded signal when the electro-acoustic device 30 is switched to the second electro-acoustic device 30, and thus the first electro-acoustic device 20 may be turned off to avoid unnecessary power consumption by the electronic apparatus 100.
Referring to fig. 11, in some embodiments, the electronic device 100 includes a switching circuit 40. Switching circuit 40 includes a first input 42, a second input 44, an output 46, and a control 48. The first input 42 is for receiving a first sound recording signal. The second input 44 is for receiving a second recording signal. The output 46 is connected to the first input 42. The control terminal 48 is used for switching the output terminal 46 to connect with the second input terminal 44 when the first recording signal has saturation distortion.
It can be understood that the switching circuit 40 receives the first recording signal through the first input end 42, and then transmits the first recording signal to the control device 10 through the output end 46, the control device 10 determines whether saturation distortion occurs in the first recording signal by processing the first recording signal, when saturation distortion occurs in the first recording signal, the control device 10 transmits the control signal to the switching circuit 40 through the control end 48, and the switching circuit 40 transmits the second recording signal received by the second input end 44 to the control device 10 through the output end 46, so that the control device 10 obtains the undistorted second recording signal.
It will be appreciated that the switching circuit 40 further comprises a power supply terminal for supplying the voltage required for operation of the switching circuit and a ground terminal for being connected to ground and common with the control device 10.
In some embodiments, the control device 10 may receive the first recording signal and the second recording signal simultaneously. In the case where the voice input of the control device 10 is sufficient, the first recording signal and the second recording signal may be directly connected to the control device 10 without switching by the switching circuit 40. It should be noted that, when the electroacoustic device 30 is used as a device for outputting electroacoustic sound, the operating voltage is relatively high, and it is easy to damage the input terminal of the second recording signal connected to the electroacoustic device 30, so that the input terminal of the second recording signal may be connected to an electric switch.
In some embodiments, the input of the first acousto-electric device 20 may be a single-ended input or a differential input, the output of the electro-acoustic device 30 may also be a single-ended output or a differential output, and the corresponding second acousto-electric device 30 may also be a single-ended input or a differential input, without limitation. In an embodiment of the present invention, the first acousto-electric device 20 is a single-ended input, the electro-acoustic device 30 is a single-ended output, and the second acousto-electric device 30 is a single-ended input.
In the description of the embodiments of the present invention, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the embodiments of the present invention, "a plurality" means two or more unless specifically limited otherwise.
In the description of the embodiments of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as being fixedly connected, detachably connected, or integrally connected; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. Specific meanings of the above terms in the embodiments of the present invention can be understood by those of ordinary skill in the art according to specific situations.
In the description herein, references to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example" or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processing module-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of embodiments of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (15)

1. A control method for controlling an electronic apparatus comprising a first acousto-electric device and an electro-acoustic device, characterized in that the control method comprises the steps of:
judging whether the first recording signal of the first sound-electricity device has saturation distortion or not; and
switching the electroacoustic device to be a second electroacoustic device when the first recording signal has saturation distortion to obtain a second recording signal, wherein the sensitivity of the first electroacoustic device is higher than that of the second electroacoustic device;
the step of judging whether the first recording signal of the first sound-electric device has saturation distortion or not comprises the following steps:
converting the first sound recording signal into a frequency domain signal;
judging whether the frequency domain signal has a harmonic coefficient the same as that of the saturated signal; and
and when the frequency domain signals have the same harmonic coefficient, determining that the first sound recording signal has saturation distortion.
2. The control method according to claim 1, wherein the step of determining whether the first recording signal of the first acousto-electric device has saturation distortion comprises the steps of:
converting the first sound recording signal into a pulse code modulation signal; and
and judging whether the first recording signal has saturation distortion or not according to the pulse code modulation signal.
3. The control method according to claim 1, wherein the step of determining whether the first recording signal of the first acousto-electric device has saturation distortion comprises the steps of:
judging whether the occurrence frequency of a saturation threshold value of the first sound recording signal in a preset period exceeds a preset frequency or not; and
and determining that the first sound recording signal has saturation distortion when the occurrence frequency exceeds the preset frequency.
4. The control method of claim 1, wherein the step of switching the electroacoustic device to a second electroacoustic device to obtain a second recorded signal when saturation distortion occurs in the first recorded signal comprises the steps of:
loading parameters of the second acoustoelectric device, wherein the parameters are used for processing the second recording signal.
5. The control method of claim 1, wherein the step of switching the electroacoustic device to a second electroacoustic device to obtain a second recorded signal when saturation distortion occurs in the first recorded signal comprises the steps of:
turning off the first acousto-electric device.
6. A control apparatus for controlling an electronic apparatus, the electronic apparatus comprising a first acousto-electric device and an electro-acoustic device, the control apparatus comprising:
the judgment module is used for judging whether the first recording signal of the first sound-electricity device has saturation distortion or not; and
the control module is used for switching the electroacoustic device to be a second electroacoustic device when the first recording signal has saturation distortion so as to obtain a second recording signal, and the sensitivity of the first electroacoustic device is higher than that of the second electroacoustic device;
the judging module comprises:
a second converting unit for converting the first sound recording signal into a frequency domain signal;
a third judging unit, configured to judge whether a harmonic coefficient that is the same as a harmonic coefficient of a saturated signal appears in the frequency domain signal; and
and the second determining unit is used for determining that the first sound recording signal has saturation distortion when the frequency domain signals have the same harmonic coefficient.
7. The control apparatus of claim 6, wherein the determining module comprises:
a first converting unit for converting the first sound recording signal into a pulse code modulation signal; and
and the first judging unit is used for judging whether the first recording signal has saturation distortion or not according to the pulse code modulation signal.
8. The control apparatus of claim 6, wherein the determining module comprises:
a second judging unit, configured to judge whether the occurrence frequency of a saturation threshold of the first sound recording signal in a predetermined period exceeds a predetermined frequency; and
a first determining unit configured to determine that saturation distortion occurs in the first sound recording signal when the number of occurrences exceeds the predetermined number of occurrences.
9. The control apparatus of claim 6, wherein the control module comprises:
and the loading unit is used for loading the parameter of the second acoustoelectric device, and the parameter is used for processing the second recording signal.
10. The control apparatus of claim 6, wherein the control module comprises:
a turn-off unit for turning off the first acousto-electric device.
11. An electronic device, comprising:
a first acousto-electric device;
an electroacoustic device; and
a control device as claimed in any one of claims 6 to 10.
12. The electronic device of claim 11, wherein the electronic device comprises a cell phone or a tablet computer.
13. The electronic device of claim 11, wherein the first acousto-electronic device comprises a microphone, or a sound pick-up.
14. The electronic device of claim 11, wherein the electroacoustic device comprises a speaker, an earphone, or a loudspeaker.
15. The electronic device of claim 11, further comprising a switching circuit, the switching circuit comprising:
a first input for receiving the first sound recording signal;
a second input for receiving the second sound recording signal;
an output connected to the first input; and
and the control end is used for switching the output end to be connected with the second input end when the first recording signal has saturation distortion.
CN201611236697.8A 2016-12-28 2016-12-28 Control method, control device and electronic device Active CN106648536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611236697.8A CN106648536B (en) 2016-12-28 2016-12-28 Control method, control device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611236697.8A CN106648536B (en) 2016-12-28 2016-12-28 Control method, control device and electronic device

Publications (2)

Publication Number Publication Date
CN106648536A CN106648536A (en) 2017-05-10
CN106648536B true CN106648536B (en) 2020-01-10

Family

ID=58832317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611236697.8A Active CN106648536B (en) 2016-12-28 2016-12-28 Control method, control device and electronic device

Country Status (1)

Country Link
CN (1) CN106648536B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873980A (en) * 2012-12-10 2014-06-18 联想(北京)有限公司 Audio processing method and device, and electronic device
CN104066036A (en) * 2014-06-19 2014-09-24 华为技术有限公司 Pick-up device and method
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
CN106161705A (en) * 2015-04-22 2016-11-23 小米科技有限责任公司 Audio frequency apparatus method of testing and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5763994A (en) * 1980-10-06 1982-04-17 Masaki Yoshimura Microphone
US20140270259A1 (en) * 2013-03-13 2014-09-18 Aliphcom Speech detection using low power microelectrical mechanical systems sensor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873980A (en) * 2012-12-10 2014-06-18 联想(北京)有限公司 Audio processing method and device, and electronic device
CN104380698A (en) * 2014-04-10 2015-02-25 华为终端有限公司 Verbal system, and switching method and device which are applied to verbal system
CN104066036A (en) * 2014-06-19 2014-09-24 华为技术有限公司 Pick-up device and method
CN106161705A (en) * 2015-04-22 2016-11-23 小米科技有限责任公司 Audio frequency apparatus method of testing and device
CN105554202A (en) * 2015-09-28 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Microphone control method and device

Also Published As

Publication number Publication date
CN106648536A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
TWI521981B (en) Control method of sound producing, sound producing apparatus, and portable apparatus
US8223981B2 (en) Wide dynamic range microphone
CN1960175B (en) Method and apparatus to control output power of a power amplifier and audio player having the same
CN102804598B (en) Method and circuit for controlling an output of an audio signal of a battery-powered device
US9531433B2 (en) Echo cancellation methodology and assembly for electroacoustic communication apparatuses
US10219090B2 (en) Method and detector of loudspeaker diaphragm excursion
US9525939B2 (en) Overheat protector and protection methodology for electrodynamic loudspeakers
CN107852136B (en) Audio amplifier with predistortion
US9419640B2 (en) Control of a microphone
US20130308797A1 (en) Multi-Membrane Microphone for High-Amplitude Audio Capture
CN108076219B (en) Mobile terminal, method for optimizing audio performance of mobile terminal, and computer-readable storage medium
TWI539830B (en) Electronic device and audio output control method
JP2008294803A (en) Reproducing device, and reproducing method
US20130259242A1 (en) Control of a microphone
US11871193B2 (en) Microphone system
US10979010B2 (en) Audio signal processing
CN112509595A (en) Audio data processing method, system and storage medium
CN106648536B (en) Control method, control device and electronic device
KR20120066634A (en) Electronic audio device
JP5762797B2 (en) Signal processing apparatus and signal processing method
JP2019091988A (en) Voice processing unit and voice processing method
US20230362541A1 (en) Measurement-Based Loudspeaker Excursion Limiting
JP2020005133A (en) Music reproduction device
CN106791131A (en) Control method and control device
JP2010187352A (en) Circuit for suppressing sound-signal amplitude

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: OPPO Guangdong Mobile Communications Co., Ltd.

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

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant