[go: up one dir, main page]

CN111629304A - Loudspeaker control method and device and electronic equipment - Google Patents

Loudspeaker control method and device and electronic equipment Download PDF

Info

Publication number
CN111629304A
CN111629304A CN202010410894.7A CN202010410894A CN111629304A CN 111629304 A CN111629304 A CN 111629304A CN 202010410894 A CN202010410894 A CN 202010410894A CN 111629304 A CN111629304 A CN 111629304A
Authority
CN
China
Prior art keywords
speaker
loudspeaker
impedance value
audio data
circuit
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.)
Pending
Application number
CN202010410894.7A
Other languages
Chinese (zh)
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 CN202010410894.7A priority Critical patent/CN111629304A/en
Publication of CN111629304A publication Critical patent/CN111629304A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application provides a loudspeaker control method and device and electronic equipment, and belongs to the technical field of communication. The method is applied to the electronic equipment and comprises the following steps: when the electronic equipment is in a double-loudspeaker working mode, acquiring a first impedance value corresponding to a first loudspeaker and a second impedance value corresponding to a second loudspeaker; and under the condition that one of the first impedance value and the second impedance value meets a preset condition, the electronic equipment is controlled to be switched from a double-loudspeaker working mode to a single-loudspeaker working mode, and when the single-loudspeaker working mode is adopted, a circuit where the loudspeaker with the impedance value meeting the preset condition is located is in an off state. According to the scheme, the electronic equipment can be changed into a single-loudspeaker output scheme after one loudspeaker of the electronic equipment fails to work soundlessly, and meanwhile, the voice data of double channels can be kept to be played to enable a user to perceive, so that the voice data cannot be lost, the work of the corresponding power amplifier does not need to be maintained continuously, and the power consumption is reduced.

Description

Loudspeaker control method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a loudspeaker control method and device and electronic equipment.
Background
In the prior art, the current design scheme of the dual speakers also has an obvious defect that when one of the speakers fails and is silent, both the smart power amplifiers still keep working, and at this time, two more serious problems are caused:
firstly, at this time, the Central Processing Unit (CPU) still makes two speakers play data of left and right channels of a stereo Sound source respectively through an Inter-IC Sound (I2S) bus built in an integrated circuit, if one of the speakers fails, the data of one of the channels cannot be played, that is, a user cannot hear audio data of one of the channels, so that audio information is lost, and especially when the stereo Sound source is played, the satisfaction of the user is greatly affected; secondly, when one of the speakers fails, the power amplifier driving the speaker still keeps working, which is equivalent to waste of unnecessarily increased power consumption (the power amplifier consumes a lot of power when working), and affects the duration, thereby affecting the satisfaction of the user.
Disclosure of Invention
The embodiment of the application aims to provide a loudspeaker control method, a loudspeaker control device and electronic equipment, and the problem that the existing double-loudspeaker scheme is easy to cause large power consumption can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a speaker control method, which is applied to an electronic device, where the electronic device includes: a first circuit and a second circuit, the first circuit including a first speaker and the second circuit including a second speaker; the method comprises the following steps:
when the electronic equipment is in a double-loudspeaker working mode, acquiring a first impedance value corresponding to the first loudspeaker and a second impedance value corresponding to the second loudspeaker;
and under the condition that one of the first impedance value and the second impedance value meets a preset condition, controlling the electronic equipment to be switched from a double-loudspeaker working mode to a single-loudspeaker working mode, wherein when the single-loudspeaker working mode is adopted, a circuit where a loudspeaker with the impedance value meeting the preset condition is located is in an off state.
In a second aspect, an embodiment of the present application provides a speaker control apparatus, which is applied to an electronic device, where the electronic device includes: a first circuit and a second circuit, the first circuit including a first speaker and the second circuit including a second speaker; the speaker control apparatus includes:
the first obtaining module is used for obtaining a first impedance value corresponding to the first loudspeaker and a second impedance value corresponding to the second loudspeaker when the electronic equipment is in a double-loudspeaker working mode;
the first control module is used for controlling the electronic equipment to be switched from a double-loudspeaker working mode to a single-loudspeaker working mode under the condition that one of the first impedance value and the second impedance value meets a preset condition, wherein when the single-loudspeaker working mode is adopted, a circuit where a loudspeaker with the impedance value meeting the preset condition is located is in an off state.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, when the electronic device is in a dual-speaker working mode, a first impedance value corresponding to the first speaker and a second impedance value corresponding to the second speaker are obtained, and when one of the first impedance value and the second impedance value meets a preset condition, the electronic device is controlled to be switched from the dual-speaker working mode to a single-speaker working mode.
Drawings
FIG. 1 is a block diagram of circuitry for a single speaker according to an embodiment of the present application;
FIG. 2 is a block diagram of circuitry for a dual speaker in accordance with an embodiment of the present application;
fig. 3 is a flowchart of a speaker control method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a speaker control apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The intelligent electronic equipment develops to the present level, the requirement on the sound effect of the external sound is higher and higher, and the sound quality and the sound efficiency of the external sound directly influence the experience of a user in the scenes of games, videos, audios and the like; compared with a single loudspeaker design scheme, the two-loudspeaker design scheme has the advantages that the most intuitive feeling is the stereo effect, and besides the increase of the volume, the formation of a stereo sound field also enables a user to have a more immersive feeling.
The traditional circuit system framework diagram of a single speaker is shown in fig. 1, and the functions of the modules of the single speaker framework diagram are as follows:
the central processing unit 11: a control hub for the entire system;
I2S module 13: the central processing unit 11 transmits the audio data to the power amplifier 14 through the I2S module 13; due to the design scheme of the single speaker, at this time, the data transmitted by the I2S module 13 is not divided into left and right channels, but is sent to the power amplifier 14 through the central processing unit 11 after the internal sound mixing processing of the stereo sound source, and finally acts on one speaker 15 to make sound;
two-wire serial bus (I2C) module 12: the central processing unit 11 controls the operation of the power amplifier 14 through the I2C module 12;
the power amplifier 14: for driving the speaker 15;
the speaker 15: and playing the corresponding voice information.
The design scheme of the double loudspeakers needs to carry two power amplifiers for respectively driving the respective loudspeakers; the basic circuit system framework diagram of the current mainstream dual-speaker design is shown in fig. 2, and the functions of the modules of the dual-speaker framework diagram are as follows:
the central processing unit 21: a control hub for the entire system;
I2S module 23: the central processing unit 21 transmits audio data to two power amplifiers through the I2S module 23, the two power amplifiers share one group of I2S modules 23, according to the I2S protocol, the same group of I2S modules 23 respectively transmit left and right channel audio data of a stereo sound source to the two power amplifiers, and finally the audio data is applied to the two speakers to form a stereo sound effect;
I2C module 22: the central processing unit 21 controls the operation of the two power amplifiers through the I2C module 22;
first power amplifier 24: for driving a first speaker 25, i.e. an upper speaker;
second power amplifier 26: for driving a second speaker 27, i.e. a lower speaker;
an upper loudspeaker: the loudspeaker which is arranged at the upper position of the electronic equipment and simultaneously produces sound with the lower loudspeaker to form stereo sound effect;
a lower speaker: the loudspeaker arranged at the lower position of the electronic equipment and the upper loudspeaker can simultaneously produce sound to form stereo sound effect.
By combining the circuit framework and principle analysis, the comparison shows that compared with the traditional single loudspeaker design, the current double-loudspeaker design has the advantages that the voice data of the left and right sound channels of a stereo sound source can be played through the two loudspeakers respectively to form a stereo sound field, so that the sound quality is improved; when the single loudspeaker is designed to play a stereo sound source, the stereo sound source can only be played after internal sound mixing processing, so that the single loudspeaker design can play audio data of the stereo sound source without loss, but cannot form a stereo sound field.
At present, a CPU of a dual-speaker electronic device transmits data of left and right channels to two power amplifiers through an I2S bus to act on an upper speaker and a lower speaker, where one speaker correspondingly plays data of one channel, for example, the upper speaker only plays left channel data, the lower speaker only plays right channel data, and the two speakers work together to form a stereo sound effect.
The following describes in detail a speaker control method, a speaker control device, and an electronic device according to embodiments of the present application with reference to the accompanying drawings.
Specifically, as shown in fig. 2 and fig. 3, an embodiment of the present application provides a speaker control method, which is applied to an electronic device, where the electronic device includes: a first circuit comprising a first speaker 25 and a second circuit comprising a second speaker 27; the method comprises the following steps:
step 31, when the electronic device is in a dual-speaker working mode, acquiring a first impedance value corresponding to the first speaker 25 and a second impedance value corresponding to the second speaker 27;
and step 32, under the condition that one of the first impedance value and the second impedance value meets a preset condition, controlling the electronic equipment to be switched from a double-loudspeaker working mode to a single-loudspeaker working mode, wherein in the single-loudspeaker working mode, a circuit where a loudspeaker with an impedance value meeting the preset condition is located is in an off state.
Specifically, when the electronic device is in a dual speaker operating mode, that is, a circuit system frame diagram of the electronic device is shown in fig. 2, the first speaker 25 and the second speaker 27 are both in an operating state, the first speaker 25 may be an upper speaker, the second speaker 27 may be a lower speaker, and the upper speaker and the lower speaker generate sound at the same time to form a stereo sound effect. When the electronic device is switched from the dual-speaker working mode to the single-speaker working mode, that is, the first speaker 25 works, the circuit where the second speaker 27 is located is in an off state; or the second speaker 27 is operated and the circuit in which the first speaker 25 is located is in an open state. When the first impedance value and the second impedance value both satisfy a preset condition, the circuit in which the first speaker 25 is located and the circuit in which the second speaker 27 is located are both in an off state, and at this time, the electronic device is in a fault state.
In the above embodiment of the present application, when the electronic device is in a dual-speaker operating mode, a first impedance value corresponding to the first speaker and a second impedance value corresponding to the second speaker are obtained, and when one of the first impedance value and the second impedance value meets a preset condition, the electronic device is controlled to be switched from the dual-speaker operating mode to a single-speaker operating mode.
Optionally, the preset condition is that the impedance value is greater than a preset threshold value. The main reasons are that: after one of the loudspeakers has failed and is silent, the coil inside the loudspeaker is in an open state, and the corresponding impedance will tend to infinity.
Specifically, if the first impedance value meets a preset condition, that is, the first impedance value is greater than a preset threshold value, it is determined that the first speaker 25 corresponding to the first impedance value is in a failure state, and the first circuit where the first speaker 25 is located is controlled to be disconnected. If the second impedance value meets a preset condition, that is, the second impedance value is greater than a preset threshold value, it is determined that the second speaker 27 corresponding to the second impedance value is in a failure state, a second circuit where the second speaker 27 is located is controlled to be switched off, and after one speaker fails and is silent, a single-speaker output scheme is changed, and meanwhile, the voice data of the two channels can be played to enable a user to sense, so that not only is the voice data not lost, but also the work of the corresponding power amplifier is not required to be continuously maintained, and thus, the power consumption is saved.
Optionally, the step 31 includes:
acquiring a first current value and a first voltage value in the first circuit and a second current value and a second voltage value in the second circuit;
and obtaining a first impedance value corresponding to the first loudspeaker according to the first current value and the first voltage value, and obtaining a second impedance value corresponding to the second loudspeaker according to the second current value and the second voltage value.
Specifically, when the electronic device is in a dual-speaker operating mode, that is, both the first circuit and the second circuit are paths, a first impedance value may be obtained by obtaining a first current value and a first voltage value of the first circuit, and the first impedance value may be used as an impedance value corresponding to the first speaker, so as to determine whether the first speaker fails. The second impedance value can be obtained by obtaining a second current value and a second voltage value of the second circuit, and the second impedance value can be used as an impedance value corresponding to the second speaker, so as to determine whether the second speaker fails.
Optionally, as shown in fig. 2, the first circuit may further include a first power amplifier 24 connected to the first speaker 25, and the second circuit further includes a second power amplifier 26 connected to the second speaker 27; the step 31 may include:
when the electronic device is in an operating state, a first impedance value corresponding to the first speaker 25 is obtained through the first power amplifier 24, and a second impedance value corresponding to the second speaker 27 is obtained through the second power amplifier 26.
Specifically, when the central processing unit 21 determines that one of the speakers fails, the central processing unit 21 turns off the power amplifier corresponding to the failed speaker through the I2C module, and switches to the single speaker operating mode. In general, the normal impedance of the speaker is about 8 ohms, and the speaker failure is silent because a coil inside the speaker is blown out, and after the coil is blown out, a path inside the speaker is equivalent to an open state, so that the impedance of the speaker is increased and even tends to infinity, and therefore, whether the speaker fails or not can be judged by comparing the impedance value of the speaker detected by the power amplifier with a preset threshold value. If the impedance value of the loudspeaker exceeds a preset threshold value, judging that the loudspeaker is invalid; and if the impedance value of the loudspeaker is smaller than a preset threshold value, judging that the loudspeaker is normal. The preset threshold is an impedance threshold for determining whether the speaker corresponding to the impedance value is failed, and can be set as required.
Optionally, the first impedance value is a first current value and a first voltage value in the first circuit, which are obtained by the first power amplifier, and an impedance value is obtained according to the first current value and the first voltage value.
Optionally, the second impedance value is a second current value and a second voltage value in the second circuit, which are obtained by the second power amplifier, and an impedance value is obtained according to the second current value and the second voltage value.
Specifically, as shown in fig. 2, when the first power amplifier 24 and the second power amplifier 26 are in an operating state, both the first circuit and the second circuit are in a pass state, the first power amplifier 24 may detect a first voltage value and a first current value on the first circuit in real time, and the second power amplifier 26 may detect a second voltage value and a second current value on the second circuit in real time. The first power amplifier 24 may obtain a first impedance value according to the first current value and the first voltage value, that is, the first impedance value of the first speaker 25, and feed back the first impedance value to the central processing unit 21 through the I2S module 23, where the central processing unit 21 compares the first impedance value with a preset threshold, and if the first impedance value is greater than the preset threshold, it is determined that the first speaker 25 is disabled. The second power amplifier 26 may obtain a second impedance value according to the second current value and the second voltage value, that is, the second impedance value of the second speaker 27, and feed the second impedance value back to the central processing unit 21 through the I2S module 23, where the central processing unit 21 compares the second impedance value with a preset threshold value, and if the second impedance value is greater than the preset threshold value, it is determined that the second speaker 27 is disabled.
Optionally, the first speaker is configured to play a first channel of audio data, the second speaker is configured to play a second channel of audio data, and after step 32, the method further includes:
acquiring the first channel audio data and the second channel audio data, and merging the first channel audio data and the second channel audio data;
and playing the audio data after the combination processing through a loudspeaker of which the impedance value does not meet the preset condition.
Specifically, as shown in fig. 2, if the central processing unit 21 determines that one of the speakers fails, the central processing unit 21 turns off the power amplifier corresponding to the failed speaker through the I2C module, and switches to the single speaker operating mode. The central processing unit 21 obtains the first channel audio data and the second channel audio data, and merges the first channel audio data and the second channel audio data, that is, the first channel audio data and the second channel audio data are subjected to internal audio mixing processing, and are played through a speaker which is not failed, so that the audio data is ensured not to be lost due to failure of the speaker, and meanwhile, the power consumption can be reduced.
In summary, in the embodiment of the present application, when the electronic device is in the dual-speaker operating mode, acquiring a first impedance value corresponding to the first loudspeaker and a second impedance value corresponding to the second loudspeaker, controlling the electronic device to switch from a dual-speaker operating mode to a single-speaker operating mode when one of the first impedance value and the second impedance value is greater than a preset threshold value, after the electronic device is silent when one of the speakers fails, the single speaker output scheme may be changed, meanwhile, the voice data of the double channels can be played to be perceived by the user, so that the voice data can not be lost, the work of the corresponding power amplifier is not required to be continuously maintained, therefore, the power consumption is saved, the satisfaction degree of a user and the reliability of a product are improved, and the technical feasibility and the mass production are high.
It should be noted that, in the speaker control method provided in the embodiment of the present application, the execution subject may be a speaker control apparatus, or a control module in the speaker control apparatus for executing the loading speaker control method. In the embodiment of the present application, a speaker control device executes a loaded speaker control method as an example, and the speaker control method provided in the embodiment of the present application is described.
As shown in fig. 4, an embodiment of the present application further provides a speaker control apparatus 40, which is applied to an electronic device, where the electronic device includes: a first circuit and a second circuit, the first circuit including a first speaker and the second circuit including a second speaker; the speaker control apparatus 40 includes:
a first obtaining module 41, configured to obtain a first impedance value corresponding to the first speaker and a second impedance value corresponding to the second speaker when the electronic device is in a dual-speaker operating mode;
and a first control module 42, configured to control the electronic device to switch from a dual-speaker operating mode to a single-speaker operating mode when one of the first impedance value and the second impedance value meets a preset condition, where in the single-speaker operating mode, a circuit where a speaker whose impedance value meets the preset condition is in an off state.
Optionally, the preset condition is that the impedance value is greater than a preset threshold value.
Optionally, the first speaker is configured to play a first channel of audio data, the second speaker is configured to play a second channel of audio data, and the speaker control apparatus 40 further includes:
a second obtaining module, configured to obtain the first channel audio data and the second channel audio data, and perform merging processing on the first channel audio data and the second channel audio data;
and the first playing module is used for playing the combined audio data through a loudspeaker of which the impedance value does not meet the preset condition.
Optionally, the first obtaining module 41 includes:
an acquisition unit configured to acquire a first current value and a first voltage value in the first circuit and a second current value and a second voltage value in the second circuit;
and the processing unit is used for obtaining a first impedance value corresponding to the first loudspeaker according to the first current value and the first voltage value, and obtaining a second impedance value corresponding to the second loudspeaker according to the second current value and the second voltage value.
The speaker control device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a kiosk, and the like, and the embodiments of the present application are not particularly limited.
The speaker control apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The speaker control device provided in the embodiment of the present application can implement each process implemented by the speaker control device in the method embodiments of fig. 1 to fig. 3, and is not described here again to avoid repetition.
To sum up, in the embodiment of the present application, when the electronic device is in the dual-speaker operating mode, the first obtaining module 41 obtains the first impedance value corresponding to the first speaker and the second impedance value corresponding to the second speaker, and the first control module 42 controls the electronic device to switch from the dual-speaker operating mode to the single-speaker operating mode when one of the first impedance value and the second impedance value is greater than the preset threshold value, so that a silent electronic device may change to a single-speaker output scheme after one of the speakers fails, and simultaneously, voice data of two channels can be played to make the user sense, which not only does not cause the loss of the voice data, but also does not need to continuously maintain the operation of the corresponding power amplifier, thereby saving power consumption, and improving the satisfaction of the user and the reliability of the product, has high technical feasibility and mass production.
Optionally, an embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, where the program or the instruction, when executed by the processor, implements each process of the above-mentioned speaker control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 50 includes, but is not limited to: a radio frequency unit 51, a network module 52, an audio output unit 53, an input unit 54, a sensor 55, a display unit 56, a user input unit 57, an interface unit 58, a memory 59, and a processor 510.
Those skilled in the art will appreciate that the electronic device 50 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 510 is a central processing unit in this embodiment, and is configured to obtain a first impedance value corresponding to the first speaker and a second impedance value corresponding to the second speaker when the electronic device is in a dual-speaker operating mode;
and under the condition that one of the first impedance value and the second impedance value meets a preset condition, controlling the electronic equipment to be switched from a double-loudspeaker working mode to a single-loudspeaker working mode, wherein when the single-loudspeaker working mode is adopted, a circuit where a loudspeaker with the impedance value meeting the preset condition is located is in an off state.
In the above embodiment of the present application, when the electronic device is in a dual-speaker operating mode, a first impedance value corresponding to the first speaker and a second impedance value corresponding to the second speaker are obtained, and when one of the first impedance value and the second impedance value meets a preset condition, the electronic device is controlled to be switched from the dual-speaker operating mode to a single-speaker operating mode.
Optionally, the preset condition is that the impedance value is greater than a preset threshold value.
Optionally, the first speaker is configured to play a first channel of audio data, the second speaker is configured to play a second channel of audio data, and the processor 510 is further configured to:
acquiring the first channel audio data and the second channel audio data, and merging the first channel audio data and the second channel audio data;
and playing the audio data after the combination processing through a loudspeaker of which the impedance value does not meet the preset condition.
Optionally, the processor 510 is specifically configured to:
acquiring a first current value and a first voltage value in the first circuit and a second current value and a second voltage value in the second circuit;
and obtaining a first impedance value corresponding to the first loudspeaker according to the first current value and the first voltage value, and obtaining a second impedance value corresponding to the second loudspeaker according to the second current value and the second voltage value.
In summary, in the embodiment of the present application, when the electronic device is in the dual-speaker operating mode, acquiring a first impedance value corresponding to the first loudspeaker and a second impedance value corresponding to the second loudspeaker, controlling the electronic device to switch from a dual-speaker operating mode to a single-speaker operating mode when one of the first impedance value and the second impedance value is greater than a preset threshold value, after the electronic device is silent when one of the speakers fails, the single speaker output scheme may be changed, meanwhile, the voice data of the double channels can be played to be perceived by the user, so that the voice data can not be lost, the work of the corresponding power amplifier is not required to be continuously maintained, therefore, the power consumption is saved, the satisfaction degree of a user and the reliability of a product are improved, and the technical feasibility and the mass production are high.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned speaker control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the embodiment of the speaker control method, and can achieve the same technical effect, and is not described herein again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application 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 a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A speaker control method applied to an electronic device, the electronic device comprising: a first circuit and a second circuit, the first circuit including a first speaker and the second circuit including a second speaker; the method comprises the following steps:
when the electronic equipment is in a double-loudspeaker working mode, acquiring a first impedance value corresponding to the first loudspeaker and a second impedance value corresponding to the second loudspeaker;
and under the condition that one of the first impedance value and the second impedance value meets a preset condition, controlling the electronic equipment to be switched from a double-loudspeaker working mode to a single-loudspeaker working mode, wherein when the single-loudspeaker working mode is adopted, a circuit where a loudspeaker with the impedance value meeting the preset condition is located is in an off state.
2. The method of claim 1, wherein the predetermined condition is that the impedance value is greater than a predetermined threshold value.
3. The method of claim 1, wherein the first speaker is configured to play a first channel of audio data, wherein the second speaker is configured to play a second channel of audio data, and wherein after controlling the electronic device to switch from a dual-speaker operation mode to a single-speaker operation mode if one of the first impedance value and the second impedance value satisfies a predetermined condition, the method further comprises:
acquiring the first channel audio data and the second channel audio data, and merging the first channel audio data and the second channel audio data;
and playing the audio data after the combination processing through a loudspeaker of which the impedance value does not meet the preset condition.
4. The method of claim 1, wherein obtaining a first impedance value corresponding to the first speaker and a second impedance value corresponding to the second speaker comprises:
acquiring a first current value and a first voltage value in the first circuit and a second current value and a second voltage value in the second circuit;
and obtaining a first impedance value corresponding to the first loudspeaker according to the first current value and the first voltage value, and obtaining a second impedance value corresponding to the second loudspeaker according to the second current value and the second voltage value.
5. A speaker control apparatus applied to an electronic device, the electronic device comprising: a first circuit and a second circuit, the first circuit including a first speaker and the second circuit including a second speaker; the speaker control apparatus includes:
the first obtaining module is used for obtaining a first impedance value corresponding to the first loudspeaker and a second impedance value corresponding to the second loudspeaker when the electronic equipment is in a double-loudspeaker working mode;
the first control module is used for controlling the electronic equipment to be switched from a double-loudspeaker working mode to a single-loudspeaker working mode under the condition that one of the first impedance value and the second impedance value meets a preset condition, wherein when the single-loudspeaker working mode is adopted, a circuit where a loudspeaker with the impedance value meeting the preset condition is located is in an off state.
6. The speaker control apparatus according to claim 5, wherein the predetermined condition is that the impedance value is larger than a predetermined threshold value.
7. The speaker control apparatus according to claim 5, wherein the first speaker is configured to play a first channel of audio data, and the second speaker is configured to play a second channel of audio data, the speaker control apparatus further comprising:
a second obtaining module, configured to obtain the first channel audio data and the second channel audio data, and perform merging processing on the first channel audio data and the second channel audio data;
and the first playing module is used for playing the combined audio data through a loudspeaker of which the impedance value does not meet the preset condition.
8. The speaker control apparatus according to claim 5, wherein the first obtaining module includes:
an acquisition unit configured to acquire a first current value and a first voltage value in the first circuit and a second current value and a second voltage value in the second circuit;
and the processing unit is used for obtaining a first impedance value corresponding to the first loudspeaker according to the first current value and the first voltage value, and obtaining a second impedance value corresponding to the second loudspeaker according to the second current value and the second voltage value.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the speaker control method according to any one of claims 1-4.
10. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions which, when executed by a processor, implement the steps of the speaker control method according to any one of claims 1-4.
CN202010410894.7A 2020-05-15 2020-05-15 Loudspeaker control method and device and electronic equipment Pending CN111629304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010410894.7A CN111629304A (en) 2020-05-15 2020-05-15 Loudspeaker control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010410894.7A CN111629304A (en) 2020-05-15 2020-05-15 Loudspeaker control method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111629304A true CN111629304A (en) 2020-09-04

Family

ID=72260594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010410894.7A Pending CN111629304A (en) 2020-05-15 2020-05-15 Loudspeaker control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111629304A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112965551A (en) * 2021-01-29 2021-06-15 维沃移动通信有限公司 Heating control method and device for loudspeaker
CN113473319A (en) * 2021-07-14 2021-10-01 斑马网络技术有限公司 Bluetooth multi-channel audio playing method, device and system
CN113630695A (en) * 2021-08-06 2021-11-09 维沃移动通信有限公司 Sound channel switching method and device and electronic equipment
CN113721753A (en) * 2021-08-30 2021-11-30 深圳市锐尔觅移动通信有限公司 Power amplifier control method and apparatus, storage medium, and electronic device
CN114630237A (en) * 2022-03-10 2022-06-14 维沃移动通信有限公司 Audio device, control method and device thereof and electronic device
WO2024065945A1 (en) * 2022-09-27 2024-04-04 瑞声科技(南京)有限公司 Sound channel determination method and apparatus, storage medium, and computer device

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09162765A (en) * 1995-12-01 1997-06-20 Atsuden Kk Monitor
CN201307873Y (en) * 2008-11-12 2009-09-09 宇龙计算机通信科技(深圳)有限公司 Mobile terminal
US20150139428A1 (en) * 2013-11-20 2015-05-21 Knowles IPC (M) Snd. Bhd. Apparatus with a speaker used as second microphone
US20150281865A1 (en) * 2010-06-17 2015-10-01 Steven M. Gottlieb Audio systems and methods employing an array of transducers optimized for particular sound frequencies
CN106375904A (en) * 2016-11-04 2017-02-01 惠州Tcl移动通信有限公司 Audio conversion stereo device and method
CN206149473U (en) * 2016-09-30 2017-05-03 广州飞达音响股份有限公司 Network digit power amplifier system
CN106713645A (en) * 2016-12-28 2017-05-24 努比亚技术有限公司 Method of controlling loudspeaker playing and mobile terminal
CN106878908A (en) * 2017-03-03 2017-06-20 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN106973349A (en) * 2017-05-24 2017-07-21 广东小天才科技有限公司 Directional speaker control method, directional speaker control device and intelligent terminal
CN107708039A (en) * 2017-09-30 2018-02-16 努比亚技术有限公司 Control method, mobile terminal and the computer-readable recording medium of voicefrequency circuit
CN107920321A (en) * 2016-10-09 2018-04-17 中兴通讯股份有限公司 A kind of loudspeaker faults treating method and apparatus
US20190028805A1 (en) * 2016-03-25 2019-01-24 Yamaha Corporation Speaker Operation Checking Device and Method
CN109343820A (en) * 2018-10-12 2019-02-15 Oppo广东移动通信有限公司 Audio playing control method and device and terminal
CN109521990A (en) * 2018-11-20 2019-03-26 厦门美图移动科技有限公司 Audio playing control method and device, electronic equipment and readable storage medium
WO2019071487A1 (en) * 2017-10-11 2019-04-18 深圳传音通讯有限公司 Intelligent terminal-based speaker cavity and intelligent terminal

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09162765A (en) * 1995-12-01 1997-06-20 Atsuden Kk Monitor
CN201307873Y (en) * 2008-11-12 2009-09-09 宇龙计算机通信科技(深圳)有限公司 Mobile terminal
US20150281865A1 (en) * 2010-06-17 2015-10-01 Steven M. Gottlieb Audio systems and methods employing an array of transducers optimized for particular sound frequencies
US20150139428A1 (en) * 2013-11-20 2015-05-21 Knowles IPC (M) Snd. Bhd. Apparatus with a speaker used as second microphone
US20190028805A1 (en) * 2016-03-25 2019-01-24 Yamaha Corporation Speaker Operation Checking Device and Method
CN206149473U (en) * 2016-09-30 2017-05-03 广州飞达音响股份有限公司 Network digit power amplifier system
CN107920321A (en) * 2016-10-09 2018-04-17 中兴通讯股份有限公司 A kind of loudspeaker faults treating method and apparatus
CN106375904A (en) * 2016-11-04 2017-02-01 惠州Tcl移动通信有限公司 Audio conversion stereo device and method
CN106713645A (en) * 2016-12-28 2017-05-24 努比亚技术有限公司 Method of controlling loudspeaker playing and mobile terminal
CN106878908A (en) * 2017-03-03 2017-06-20 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN106973349A (en) * 2017-05-24 2017-07-21 广东小天才科技有限公司 Directional speaker control method, directional speaker control device and intelligent terminal
CN107708039A (en) * 2017-09-30 2018-02-16 努比亚技术有限公司 Control method, mobile terminal and the computer-readable recording medium of voicefrequency circuit
WO2019071487A1 (en) * 2017-10-11 2019-04-18 深圳传音通讯有限公司 Intelligent terminal-based speaker cavity and intelligent terminal
CN109343820A (en) * 2018-10-12 2019-02-15 Oppo广东移动通信有限公司 Audio playing control method and device and terminal
CN109521990A (en) * 2018-11-20 2019-03-26 厦门美图移动科技有限公司 Audio playing control method and device, electronic equipment and readable storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112965551A (en) * 2021-01-29 2021-06-15 维沃移动通信有限公司 Heating control method and device for loudspeaker
CN113473319A (en) * 2021-07-14 2021-10-01 斑马网络技术有限公司 Bluetooth multi-channel audio playing method, device and system
CN113630695A (en) * 2021-08-06 2021-11-09 维沃移动通信有限公司 Sound channel switching method and device and electronic equipment
CN113721753A (en) * 2021-08-30 2021-11-30 深圳市锐尔觅移动通信有限公司 Power amplifier control method and apparatus, storage medium, and electronic device
CN114630237A (en) * 2022-03-10 2022-06-14 维沃移动通信有限公司 Audio device, control method and device thereof and electronic device
CN114630237B (en) * 2022-03-10 2024-03-01 维沃移动通信有限公司 Audio device, control method and device thereof and electronic device
WO2024065945A1 (en) * 2022-09-27 2024-04-04 瑞声科技(南京)有限公司 Sound channel determination method and apparatus, storage medium, and computer device

Similar Documents

Publication Publication Date Title
CN111629304A (en) Loudspeaker control method and device and electronic equipment
CN105308673B (en) For managing the method for the output in HDMI sources, system and medium
EP3547706B1 (en) Method and device for switching play modes of wireless speaker, and wireless speaker
US9025788B2 (en) Earphone system for mobile device and method for operating the same
CN105959878B (en) Control method and device of stereo sound system
EP4047471B1 (en) Audio data processing method, server, and storage medium
US20190302866A1 (en) Method, device for processing data of bluetooth speaker, and bluetooth speaker
CN103929692B (en) Audio information processing method and electronic equipment
WO2017148270A1 (en) Volume control method and device, and terminal
CN103577145B (en) Volume processing unit and method, the electronic system of electronic equipment
CN106851488A (en) The control method of audio output, device and circuit
CN106878915A (en) Playing device control method, device, playing device, and mobile terminal
CN103067601A (en) Mobile terminal and detecting method of earphone inserting state thereof
CN113938738A (en) Control method and system for display device, playing device and storage medium
CN108763139A (en) A kind of control method and device of I2C communications
CN106954138A (en) A kind of information processing method and electronic equipment
CN211378222U (en) Audio circuit, head-mounted display equipment and head-mounted display system
CN116074679B (en) Method, device, equipment and storage medium for determining left and right states of intelligent earphone
CN103813235A (en) Information processing method and device
CN117412214A (en) Audio noise reduction method for Bluetooth headset and Bluetooth headset
CN106792141B (en) The control method for playing back and device of tv audio
CN112954760B (en) Bluetooth equipment connection method and device and electronic equipment
WO2023169367A1 (en) Audio playing method and electronic device
CN103945305A (en) Information processing method and electronic equipment
CN113407147A (en) Audio playing method, device, equipment and storage medium

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200904

WD01 Invention patent application deemed withdrawn after publication