CN108900942B - Play control method and electronic equipment - Google Patents

Play control method and electronic equipment Download PDF

Info

Publication number
CN108900942B
CN108900942B CN201810776299.8A CN201810776299A CN108900942B CN 108900942 B CN108900942 B CN 108900942B CN 201810776299 A CN201810776299 A CN 201810776299A CN 108900942 B CN108900942 B CN 108900942B
Authority
CN
China
Prior art keywords
impedance value
value
hole
earphone
tuning hole
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
CN201810776299.8A
Other languages
Chinese (zh)
Other versions
CN108900942A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810776299.8A priority Critical patent/CN108900942B/en
Publication of CN108900942A publication Critical patent/CN108900942A/en
Application granted granted Critical
Publication of CN108900942B publication Critical patent/CN108900942B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Abstract

The invention provides a play control method and electronic equipment. The method comprises the following steps: obtaining a first impedance value of an earphone, wherein the earphone is provided with at least one tone adjusting hole; determining a target tuning hole which is shielded in the at least one tuning hole according to the first impedance value; and controlling the playing of the multimedia file according to the target tone hole. The invention can realize the playing control of the multimedia file by utilizing the characteristic that the impedance value of the earphone is changed when the sound adjusting hole of the earphone is shielded, and the key position does not need to be reserved on the hardware structure of the earphone and the key space does not need to be planned on the circuit board, thereby simplifying the manufacturing process of the earphone and greatly saving the time and the cost.

Description

play control method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a play control method and electronic equipment.
Background
with the continuous development of intelligent technology, intelligent equipment brings great convenience to the work and life of people. More and more users are used to listen to music, watch videos and the like by using electronic devices such as mobile phones and tablet computers, and in many cases, users often listen to music, watch videos and the like through earphones in order to avoid interfering with others.
The playing control of multimedia files is mostly realized through keys or touch keys in the use process of the existing earphone, so that the key positions are required to be reserved on a hardware structure, and the key space is required to be planned on a circuit board, so that the manufacturing process of the earphone is complicated, time and labor are wasted, and time and cost are wasted.
Disclosure of Invention
The embodiment of the invention provides a playing control method and electronic equipment, and aims to solve the problems that the existing earphone usually controls the playing of a multimedia file through a key or a touch key, so that the manufacturing process of the earphone is complex, time-consuming and labor-consuming.
in order to solve the technical problem, the invention is realized as follows:
In a first aspect, an embodiment of the present invention provides a play control method applied to an electronic device, including:
obtaining a first impedance value of an earphone, wherein the earphone is provided with at least one tone adjusting hole;
determining a target tuning hole which is shielded in the at least one tuning hole according to the first impedance value;
Acquiring the shielded times of the target tone hole within preset time, wherein the preset time is preset time taking the acquired first impedance value of the earphone as a time starting point;
And controlling the playing of the multimedia file according to the target tone hole.
in a second aspect, an embodiment of the present invention further provides an electronic device, including:
The earphone comprises an acquisition module, a detection module and a control module, wherein the acquisition module is used for acquiring a first impedance value of an earphone, and the earphone is provided with at least one tone adjusting hole;
The determining module is used for determining a shielded target tuning hole in the at least one tuning hole according to the first impedance value;
and the first control module is used for controlling the playing of the multimedia file according to the target tone adjusting hole.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the playback control method described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the playback control method described above.
In the embodiment of the invention, the shielded target tuning hole in at least one tuning hole arranged on the earphone is determined through the acquired first impedance value of the earphone, and the playing of the multimedia file is controlled according to the target tuning hole. Therefore, the characteristic that the impedance value of the earphone is changed when the sound adjusting hole of the earphone is shielded is utilized, the playing control of the multimedia file can be realized, the position of a key does not need to be reserved on the hardware structure of the earphone, and the key space does not need to be planned on the circuit board, so that the manufacturing process of the earphone is simplified, and the time and the cost are greatly saved.
Drawings
fig. 1 is a schematic flowchart of a play control method according to an embodiment of the present invention;
fig. 2 is one of schematic impedance curves of an earphone with a tuning hole according to an embodiment of the present invention;
fig. 3 is a second schematic impedance curve diagram of the earphone with the tuning hole according to the embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
Fig. 5 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a play control method according to an embodiment of the present invention. The method is applied to electronic equipment, and the implementation process of the method is specifically described below with reference to the figure.
Step 101, obtaining a first impedance value of an earphone, wherein the earphone is provided with at least one tone adjusting hole.
in this step, the earphone may be a wired earphone or a wireless earphone, which is not limited herein.
It should be noted that the earphone can be connected to a terminal (e.g., a mobile phone, a tablet computer, etc.). If the earphone is a wired earphone, the earphone can be connected with the terminal through an earphone wire; if the earphone is a wireless earphone, the wireless earphone can be connected with the terminal through a wireless connection mode (such as Bluetooth connection, infrared connection and the like).
Of course, the headset may be an intelligent terminal device, i.e., an intelligent headset, and may exist alone without accessing other terminals.
the earphone is internally provided with a loudspeaker, the loudspeaker sends sound waves into air to make sound through the resonance work of the earphone cone and the electromagnet, and the cavity structure of the earphone is of a completely closed design except for a sound outlet, so that the vibration of the cone can increase the pressure in the earphone, and the vibration of the loudspeaker is blocked in turn.
Therefore, in this embodiment, the earphone is provided with at least one tuning hole, and the tuning hole can let the air flow in and flow out from the speaker, has not only prevented that pressure from piling up, lets the speaker of earphone can more free motion, can also create better tone quality and heavy bass effect simultaneously.
it should be noted that, in this embodiment, acquiring the first impedance value of the earphone is to acquire the first impedance value of the speaker of the earphone.
And 102, determining a target tuning hole shielded in the at least one tuning hole according to the first impedance value.
Because the tuning hole is sheltered from or is blocked up, the air flow is obstructed, and simultaneously the speaker in the earphone also can receive the influence, and the resistance value of speaker can change promptly. As shown in fig. 2. Therefore, different tuning holes correspond to different earphone impedance values when being shielded. Specifically, a curve a in the figure is an earphone impedance curve corresponding to the condition that the tuning hole of the earphone is not blocked; the curve B in the figure is the corresponding earphone impedance curve when the tuning hole of the earphone is blocked.
It should be noted that the impedance curve of the earphone reflects the variation relationship between the impedance of the earphone and the resonant frequency.
In this step, since different tuning holes correspond to different earphone impedance values when being shielded, the shielded target tuning hole in at least one tuning hole can be determined according to the obtained first impedance value of the earphone.
And 103, controlling the playing of the multimedia file according to the target tone hole.
In this step, when the shielded target tuning holes are different, the playing control of the corresponding multimedia files is different.
In the embodiment of the invention, the shielded target tuning hole in at least one tuning hole arranged on the earphone is determined through the acquired first impedance value of the earphone, and the playing of the multimedia file is controlled according to the target tuning hole. Therefore, the characteristic that the impedance value of the earphone is changed when the sound adjusting hole of the earphone is shielded is utilized, the playing control of the multimedia file can be realized, the position of a key does not need to be reserved on the hardware structure of the earphone, and the key space does not need to be planned on the circuit board, so that the manufacturing process of the earphone is simplified, and the time and the cost are greatly saved.
Based on the embodiment shown in fig. 1, in a preferred embodiment of the present invention, step 101 may include the following steps:
Collecting a voltage value and a current value of an earphone passage;
In this step, voltage and current sampling may be performed on the earphone path through an Analog-to-Digital Converter (ADC) disposed on the earphone or the terminal, and a voltage value and a current value flowing through the earphone path at the current frequency may be obtained through sampling and processing.
And determining a first impedance value of the earphone according to the voltage value and the current value.
In the step, a first impedance value of the earphone is calculated according to the voltage value and the current value by using ohm's law.
based on the embodiment shown in fig. 1, in a preferred embodiment of the invention, the tuning hole of the earphone comprises: a first tone hole; wherein step 102 may comprise the steps of:
and when the absolute value of the difference value between the first impedance value and the first preset impedance value is smaller than a preset threshold value, determining that the shielded target tuning hole in the at least one tuning hole is the first tuning hole, wherein the impedance value of the corresponding earphone when the first tuning hole is shielded is the first preset impedance value.
It should be noted that, the user shields the tuning hole of the earphone by touching the tuning hole, and in order to avoid the misoperation of the user, when the absolute value of the difference between the first impedance value and the first preset value is smaller than the preset threshold, it is determined that the first tuning hole corresponding to the first preset impedance value is shielded, that is, the target tuning hole is effectively touched.
in this embodiment, the tuning hole provided in the earphone, i.e., the first tuning hole, is a monotone tuning hole. That is, the corresponding positions of the left ear earphone and the right ear earphone are respectively provided with a first tuning hole with the same shape and size.
Based on the embodiment shown in fig. 1, in a preferred embodiment of the invention, the tuning hole of the earphone comprises: a second tuning hole and a third tuning hole; wherein step 102 may comprise the steps of:
When the absolute value of the difference value between the first impedance value and the second preset impedance value is smaller than the absolute value of the difference value between the first impedance value and the third preset impedance value, determining that the shielded target tone tuning hole in the at least one tone tuning hole is a second tone tuning hole, wherein when the second tone tuning hole is shielded, the impedance value of the corresponding earphone is the second preset impedance value;
and when the absolute value of the difference value between the first impedance value and the second preset impedance value is larger than the absolute value of the difference value between the first impedance value and the third preset impedance value, determining that the shielded target tuning hole in the at least one tuning hole is a third tuning hole, wherein when the third tuning hole is shielded, the impedance value of the corresponding earphone is the third preset impedance value.
in this embodiment, because different tuning holes correspond different earphone impedance values when sheltered from, through with first impedance value respectively with the second preset impedance value, the comparison of third preset impedance value, judge that first impedance value is more close to the second and predetermine impedance value or the third and predetermine impedance value, thereby it is second tuning hole or third tuning hole to determine the target tuning hole, also determine the target tuning hole that is effectively touched promptly, set up near the time at the position of second tuning hole and third tuning hole like this, can avoid the mistake touching of user to one of them tuning hole.
as in this embodiment, the tuning hole of the earphone includes: a second tuning hole and a third tuning hole; that is, when at least two tuning holes are formed in the earphone, the target tuning holes can be different within a preset time due to the fact that different tuning holes correspond to different earphone impedance values when being shielded. When the target sound adjusting holes are different within the preset time, corresponding playing control can be executed according to the determined time sequence of the target sound adjusting holes.
based on this, in a preferred embodiment of the present invention, step 103 may comprise the steps of:
And when the target sound adjusting hole is detected to be switched to the third sound adjusting hole from the second sound adjusting hole or switched to the second sound adjusting hole from the third sound adjusting hole, the playing volume of the multimedia file is adjusted.
Here, specifically describing the above steps by an example, according to the impedance value of the earphone obtained within the preset time, if it is determined that the second tuning hole is blocked and the third tuning hole is not blocked, then, within a preset time threshold from the moment when it is determined that the second tuning hole is blocked, the third tuning hole is blocked and the second tuning hole is not blocked, that is, the terminal detects that the target tuning hole is switched from the second tuning hole to the third tuning hole, the judgment of the operation action that the user slides the finger from the second tuning hole to the second tuning hole can be completed, so that the function of adjusting the volume, such as increasing or decreasing the volume, during the playing of the multimedia file can be realized.
It should be noted that when the earphone is provided with a plurality of tuning holes, the impedance values of the plurality of tuning holes when being shielded are different, that is, the plurality of tuning holes need to be designed into structural forms with different impedances after being shielded, for example, the tuning holes are designed to have different shapes, sizes, positions, and the like, so that the impedances after being shielded are different from each other, as shown in fig. 3. Specifically, a curve 1 in the figure is an earphone impedance curve corresponding to the condition that the tuning hole of the earphone is not blocked; in the figure, a curve 2 is an earphone impedance curve corresponding to the condition that the tuning hole with small area of the earphone is blocked; in the figure, the impedance curve of the earphone corresponding to the earphone when the tuning hole with large area of the curve 3-bit earphone is blocked.
Based on the above preferred embodiment, further, the method further includes:
and when the absolute value of the difference value between the first impedance value and the second preset impedance value is equal to the absolute value of the difference value between the first impedance value and the third preset impedance value, controlling the multimedia file to keep the current playing state.
in this step, when the absolute value of the difference between the first impedance value and the second preset impedance value is equal to the absolute value of the difference between the first impedance value and the third preset impedance value, the system defaults that the second tuning hole and the third tuning hole are not shielded, that is, both are determined as invalid touches, and then the playing state of the multimedia file is controlled to be kept unchanged.
based on the embodiment described in fig. 1, in a preferred embodiment of the present invention, step 103 may include the following steps:
and acquiring the shielded times of the target tone hole within preset time, wherein the preset time is preset time taking the acquired first impedance value of the earphone as a time starting point.
in this step, the number of times that the target tuning hole is blocked within the preset time can be obtained through statistics of the impedance change of the earphone within the preset time.
And determining playing indication parameters according to the target tone holes and the times of the target tone holes being blocked.
in this step, when the target tuning holes to be blocked are different and the number of times that the target tuning holes are blocked is different, the playing control of the corresponding multimedia file is different.
For example, if the target tuning hole is the tuning hole of the left ear earphone and the target tuning hole is shielded once, the multimedia file is controlled to be played;
and if the target sound adjusting hole is the sound adjusting hole of the left ear earphone and the target sound adjusting hole is shielded twice, controlling the previous multimedia file of the current multimedia file to play.
And if the target sound adjusting hole is the sound adjusting hole of the right ear earphone and the target sound adjusting hole is shielded once, the multimedia file is controlled to pause playing.
and if the target sound adjusting hole is the sound adjusting hole of the right ear earphone and the target sound adjusting hole is shielded twice, controlling the next multimedia file of the current multimedia file to play.
In this step, preferably, the playing instruction parameter includes: at least one of a play status, a volume value size, and a file switch indication parameter.
Here, the play state includes: play, pause, and stop.
The file switching indication parameter is used for indicating the switching of the multimedia files. For example, when the file switching indication parameter is "0", controlling to switch to the previous multimedia file of the current multimedia file for playing; and when the file switching indication parameter is '1', controlling to switch to the next multimedia file of the current multimedia file for playing.
and controlling the playing of the multimedia file according to the playing indication parameter.
In this step, the playing of the multimedia file is controlled based on the playing indication parameter. Therefore, the characteristic that the impedance value of the earphone is changed when the tone hole of the earphone is shielded is utilized, the shielded target tone hole and the shielded times of the target tone hole are determined, the playing control of the multimedia file can be realized, the key position can not be reserved on the hardware structure of the earphone, and the key space does not need to be planned on the circuit board, so that the manufacturing process of the earphone is simplified, and the time and the cost are greatly saved.
According to the playing control method provided by the embodiment of the invention, the target tuning hole which is arranged in the at least one tuning hole and is shielded is determined through the acquired first impedance value of the earphone, and the playing of the multimedia file is controlled according to the target tuning hole. Therefore, the characteristic that the impedance value of the earphone is changed when the sound adjusting hole of the earphone is shielded is utilized, the playing control of the multimedia file can be realized, the position of a key does not need to be reserved on the hardware structure of the earphone, and the key space does not need to be planned on the circuit board, so that the manufacturing process of the earphone is simplified, and the time and the cost are greatly saved.
Based on the method, the embodiment of the invention provides electronic equipment for realizing the method.
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. An embodiment of the present invention provides an electronic device 200, where the electronic device 200 may include: an acquisition module 201, a determination module 202 and a first control module 203.
The acquisition module 201 is configured to acquire a first impedance value of an earphone, where the earphone is provided with at least one tone tuning hole;
A determining module 202, configured to determine, according to the first impedance value, a target tuning hole that is blocked in the at least one tuning hole;
And the first control module 203 is used for controlling the playing of the multimedia file according to the target tone tuning hole.
Specifically, the obtaining module 201 may include: the device comprises a collecting unit and a calculating unit.
the acquisition unit is used for acquiring the voltage value and the current value of the earphone channel;
And the determining unit is used for determining a first impedance value of the earphone according to the voltage value and the current value.
preferably, the tuning hole of the earphone includes: a first tone hole; specifically, the determining module 202 may include: a first determination unit.
The first determining unit is configured to determine that a target tuning hole shielded in the at least one tuning hole is a first tuning hole when an absolute value of a difference between the first impedance value and a first preset impedance value is smaller than a preset threshold, where an impedance value of the corresponding earphone when the first tuning hole is shielded is the first preset impedance value.
preferably, the tuning hole of the earphone includes: a second tuning hole and a third tuning hole; specifically, the determining module 202 may include: a second determination unit and a third determination unit.
a second determining unit, configured to determine that a target tuning hole shielded in the at least one tuning hole is a second tuning hole when an absolute value of a difference between the first impedance value and a second preset impedance value is smaller than an absolute value of a difference between the first impedance value and a third preset impedance value, where an impedance value of a corresponding earphone is a second preset impedance value when the second tuning hole is shielded;
And the third determining unit is used for determining that the shielded target tuning hole in the at least one tuning hole is the third tuning hole when the absolute value of the difference value between the first impedance value and the second preset impedance value is greater than the absolute value of the difference value between the first impedance value and the third preset impedance value, wherein when the third tuning hole is shielded, the impedance value of the corresponding earphone is the third preset impedance value.
further, in the embodiment of the present invention, the electronic device 200 may further include: and a second control module.
And the second control module is used for controlling the multimedia file to keep the current playing state when the absolute value of the difference value between the first impedance value and the second preset impedance value is equal to the absolute value of the difference value between the first impedance value and the third preset impedance value.
Specifically, the first control module 204 may include: a first control unit.
And the first control unit is used for adjusting the playing volume of the multimedia file when the target sound adjusting hole is detected to be switched from the second sound adjusting hole to the third sound adjusting hole or from the third sound adjusting hole to the second sound adjusting hole.
Specifically, the first control module 204 may include: the device comprises an acquisition unit, a fourth determination unit and a second control unit.
The acquisition unit is used for acquiring the shielded times of the target tone hole within preset time, wherein the preset time is preset time taking the acquired first impedance value of the earphone as a time starting point;
the fourth determining unit is used for determining playing indication parameters according to the target tone holes and the times that the target tone holes are blocked;
a second control unit, configured to control playing of the multimedia file according to the playing indication parameter, where the playing indication parameter includes: at least one of a play status, a volume value size, and a file switch indication parameter.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition.
According to the electronic device provided by the embodiment of the invention, the determining module determines the shielded target tone hole in the at least one tone hole arranged on the earphone through the first impedance value of the earphone obtained by the obtaining module, and the first control module controls the playing of the multimedia file according to the target tone hole. Therefore, the characteristic that the impedance value of the earphone is changed when the sound adjusting hole of the earphone is shielded is utilized, the playing control of the multimedia file can be realized, the position of a key does not need to be reserved on the hardware structure of the earphone, and the key space does not need to be planned on the circuit board, so that the manufacturing process of the earphone is simplified, and the time and the cost are greatly saved.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 300 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, processor 310, and power supply 311. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, an earphone, a pedometer, and the like. Here, when the electronic device is a terminal device other than the headset, the electronic device is connected to the headset.
The processor 310 is configured to obtain a first impedance value of an earphone, where the earphone is provided with at least one tone tuning hole; determining a target tuning hole which is shielded in the at least one tuning hole according to the first impedance value; and controlling the playing of the multimedia file according to the target tone hole.
in the embodiment of the invention, the playing control of the multimedia file can be realized by utilizing the characteristic that the impedance value of the earphone is changed when the sound adjusting hole of the earphone is shielded, the position of a key does not need to be reserved on the hardware structure of the earphone, and the key space does not need to be planned on a circuit board, thereby simplifying the manufacturing process of the earphone and greatly saving the time and the cost.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 310; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 301 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 301 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 302, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 may also provide audio output related to a specific function performed by the electronic apparatus 300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive audio or video signals. The input Unit 304 may include a Graphics Processing Unit (GPU) 3041 and a microphone 3042, and the Graphics processor 3041 processes image data of a still picture or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 306. The image frames processed by the graphic processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 301 in case of the phone call mode.
The electronic device 300 also includes at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 3061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 3061 and/or the backlight when the electronic device 300 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 305 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 306 is used to display information input by the user or information provided to the user. The Display unit 306 may include a Display panel 3061, and the Display panel 3061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 307 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 3071 (e.g., operations by a user on or near the touch panel 3071 using a finger, a stylus, or any suitable object or attachment). The touch panel 3071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 310, and receives and executes commands sent by the processor 310. In addition, the touch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. Specifically, the other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 3071 may be overlaid on the display panel 3061, and when the touch panel 3071 detects a touch operation on or near the touch panel, the touch operation is transmitted to the processor 310 to determine the type of the touch event, and then the processor 310 provides a corresponding visual output on the display panel 3061 according to the type of the touch event. Although in fig. 5, the touch panel 3071 and the display panel 3061 are implemented as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 308 is an interface for connecting an external device to the electronic apparatus 300. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 308 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 300 or may be used to transmit data between the electronic apparatus 300 and the external device.
the memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 309 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
the processor 310 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 309 and calling data stored in the memory 309, thereby performing overall monitoring of the electronic device. Processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 310.
The electronic device 300 may further include a power supply 311 (such as a battery) for supplying power to various components, and preferably, the power supply 311 may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 300 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 310, a memory 309, and a computer program stored in the memory 309 and capable of running on the processor 310, where the computer program is executed by the processor 310 to implement each process of the foregoing playback control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing playback control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, a headset or a network device) to execute the method according to the embodiments of the present invention.
while the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. A play control method is applied to electronic equipment, and is characterized by comprising the following steps:
Obtaining a first impedance value of an earphone, wherein the earphone is provided with at least one tone adjusting hole;
determining a target tuning hole which is shielded in the at least one tuning hole according to the first impedance value;
Controlling the playing of the multimedia file according to the target tone hole;
The tuning hole of the earphone comprises: a first tone hole;
The step of determining a target tuning hole blocked in the at least one tuning hole according to the first impedance value includes:
When the absolute value of the difference value between the first impedance value and a first preset impedance value is smaller than a preset threshold value, determining that a target tuning hole shielded in the at least one tuning hole is a first tuning hole, wherein the impedance value of the corresponding earphone when the first tuning hole is shielded is the first preset impedance value;
The tuning hole of the earphone comprises: a second tuning hole and a third tuning hole;
the step of determining a target tuning hole blocked in the at least one tuning hole according to the first impedance value includes:
When the absolute value of the difference value between the first impedance value and the second preset impedance value is smaller than the absolute value of the difference value between the first impedance value and the third preset impedance value, determining that the shielded target tone tuning hole in the at least one tone tuning hole is a second tone tuning hole, wherein when the second tone tuning hole is shielded, the impedance value of the corresponding earphone is the second preset impedance value;
and when the absolute value of the difference value between the first impedance value and the second preset impedance value is larger than the absolute value of the difference value between the first impedance value and the third preset impedance value, determining that the shielded target tuning hole in the at least one tuning hole is a third tuning hole, wherein when the third tuning hole is shielded, the impedance value of the corresponding earphone is the third preset impedance value.
2. The playback control method of claim 1, wherein the step of obtaining the first impedance value of the headphone comprises:
Collecting a voltage value and a current value of an earphone passage;
And determining a first impedance value of the earphone according to the voltage value and the current value.
3. The playback control method according to claim 1, wherein the method further comprises:
And when the absolute value of the difference value between the first impedance value and the second preset impedance value is equal to the absolute value of the difference value between the first impedance value and the third preset impedance value, controlling the multimedia file to keep the current playing state.
4. The playback control method according to claim 1, wherein the step of controlling playback of the multimedia file according to the target tuning hole includes:
And when the target sound adjusting hole is detected to be switched to the third sound adjusting hole from the second sound adjusting hole or switched to the second sound adjusting hole from the third sound adjusting hole, the playing volume of the multimedia file is adjusted.
5. the playback control method according to claim 1, wherein the step of controlling playback of the multimedia file based on the target tuning hole includes:
acquiring the shielded times of the target tone hole within preset time, wherein the preset time is preset time taking the acquired first impedance value of the earphone as a time starting point;
determining playing indication parameters according to the target tone holes and the times of the target tone holes being blocked;
controlling the playing of the multimedia file according to the playing indication parameter, wherein the playing indication parameter comprises: at least one of a play status, a volume value size, and a file switch indication parameter.
6. An electronic device, comprising:
The earphone comprises an acquisition module, a detection module and a control module, wherein the acquisition module is used for acquiring a first impedance value of an earphone, and the earphone is provided with at least one tone adjusting hole;
the determining module is used for determining a shielded target tuning hole in the at least one tuning hole according to the first impedance value;
the first control module is used for controlling the playing of the multimedia file according to the target tone adjusting hole;
the tuning hole of the earphone comprises: a first tone hole;
the determining module includes:
the first determining unit is used for determining a shielded target tuning hole in the at least one tuning hole as a first tuning hole when the absolute value of the difference value between the first impedance value and a first preset impedance value is smaller than a preset threshold value, wherein the impedance value of the corresponding earphone when the first tuning hole is shielded is the first preset impedance value;
the tuning hole of the earphone comprises: a second tuning hole and a third tuning hole;
The determining module includes:
a second determining unit, configured to determine that a target tuning hole shielded in the at least one tuning hole is a second tuning hole when an absolute value of a difference between the first impedance value and a second preset impedance value is smaller than an absolute value of a difference between the first impedance value and a third preset impedance value, where an impedance value of a corresponding earphone is a second preset impedance value when the second tuning hole is shielded;
and the third determining unit is used for determining that the shielded target tuning hole in the at least one tuning hole is the third tuning hole when the absolute value of the difference value between the first impedance value and the second preset impedance value is greater than the absolute value of the difference value between the first impedance value and the third preset impedance value, wherein when the third tuning hole is shielded, the impedance value of the corresponding earphone is the third preset impedance value.
7. The electronic device of claim 6, wherein the obtaining module comprises:
The acquisition unit is used for acquiring the voltage value and the current value of the earphone channel;
And the determining unit is used for determining a first impedance value of the earphone according to the voltage value and the current value.
8. The electronic device of claim 6, further comprising:
And the second control module is used for controlling the multimedia file to keep the current playing state when the absolute value of the difference value between the first impedance value and the second preset impedance value is equal to the absolute value of the difference value between the first impedance value and the third preset impedance value.
9. The electronic device of claim 6, wherein the first control module comprises:
and the first control unit is used for adjusting the playing volume of the multimedia file when the target sound adjusting hole is detected to be switched from the second sound adjusting hole to the third sound adjusting hole or from the third sound adjusting hole to the second sound adjusting hole.
10. The electronic device of claim 6, wherein the first control module comprises:
The acquisition unit is used for acquiring the shielded times of the target tone hole within preset time, wherein the preset time is preset time taking the acquired first impedance value of the earphone as a time starting point;
the fourth determining unit is used for determining playing indication parameters according to the target tone holes and the times that the target tone holes are blocked;
A second control unit, configured to control playing of the multimedia file according to the playing indication parameter, where the playing indication parameter includes: at least one of a play status, a volume value size, and a file switch indication parameter.
11. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the playback control method according to any one of claims 1 to 5.
CN201810776299.8A 2018-07-16 2018-07-16 Play control method and electronic equipment Active CN108900942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810776299.8A CN108900942B (en) 2018-07-16 2018-07-16 Play control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810776299.8A CN108900942B (en) 2018-07-16 2018-07-16 Play control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN108900942A CN108900942A (en) 2018-11-27
CN108900942B true CN108900942B (en) 2019-12-17

Family

ID=64349825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810776299.8A Active CN108900942B (en) 2018-07-16 2018-07-16 Play control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN108900942B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113697B (en) * 2019-04-08 2021-04-09 Oppo广东移动通信有限公司 Electroacoustic component and mobile terminal
CN113568529A (en) * 2021-07-13 2021-10-29 读书郎教育科技有限公司 Intelligent desk lamp and method for realizing dictation broadcasting progress control based on infrared technology

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060693A (en) * 2016-04-19 2016-10-26 杭州纳雄科技有限公司 Bluetooth headset with audio plug and control method thereof
CN106954117A (en) * 2017-05-26 2017-07-14 胡锦翔 The adjustable earphone of tonequality

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011049752A (en) * 2009-08-26 2011-03-10 Star Micronics Co Ltd Capacitor microphone
WO2012128765A1 (en) * 2011-03-23 2012-09-27 Halliburton Energy Services, Inc. Ultrasound transducer with acoustic isolator and corresponding mounting method
CN204316703U (en) * 2014-11-21 2015-05-06 富港电子(昆山)有限公司 Two rear sound chambeies earphone
US10397683B2 (en) * 2015-09-30 2019-08-27 Apple Inc. Case with torsion spring over-center mechanism
CN106101895A (en) * 2016-06-30 2016-11-09 华峰君 A kind of noise cancelling headphone and control noise eliminate the method that circuit is turned on and off

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106060693A (en) * 2016-04-19 2016-10-26 杭州纳雄科技有限公司 Bluetooth headset with audio plug and control method thereof
CN106954117A (en) * 2017-05-26 2017-07-14 胡锦翔 The adjustable earphone of tonequality

Also Published As

Publication number Publication date
CN108900942A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN110413315B (en) Application program control method and electronic equipment
CN109918039B (en) Volume adjusting method and mobile terminal
CN108763316B (en) Audio list management method and mobile terminal
CN109710150B (en) Key control method and terminal
CN109086027B (en) Audio signal playing method and terminal
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN111459456A (en) Audio control method and electronic equipment
CN110531915B (en) Screen operation method and terminal equipment
CN111026305A (en) Audio processing method and electronic equipment
CN110806832A (en) Parameter adjusting method and electronic equipment
CN111078186A (en) Playing method and electronic equipment
CN108897516B (en) Wearable device volume adjustment method and related product
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN111562896A (en) Screen projection method and electronic equipment
CN108900942B (en) Play control method and electronic equipment
CN110830861A (en) Telephone receiver control method and device and electronic equipment
CN111526248B (en) Audio output mode switching method and electronic equipment
CN111459447B (en) Volume adjustment display method and electronic equipment
CN111352566B (en) Parameter adjusting method and electronic equipment
CN110673761B (en) Touch key detection method and terminal equipment thereof
CN110456959B (en) Terminal control method and terminal
CN109348366B (en) Method for adjusting volume by using electrical parameters and mobile terminal
CN109270352B (en) Amplitude adjusting method and sound generating device
CN108089799B (en) Control method of screen edge control and mobile terminal
CN110764650A (en) Key trigger detection method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant