WO2024066933A1 - 扬声器控制方法及设备 - Google Patents

扬声器控制方法及设备 Download PDF

Info

Publication number
WO2024066933A1
WO2024066933A1 PCT/CN2023/116723 CN2023116723W WO2024066933A1 WO 2024066933 A1 WO2024066933 A1 WO 2024066933A1 CN 2023116723 W CN2023116723 W CN 2023116723W WO 2024066933 A1 WO2024066933 A1 WO 2024066933A1
Authority
WO
WIPO (PCT)
Prior art keywords
speaker
abnormal
abnormality
audio
playback
Prior art date
Application number
PCT/CN2023/116723
Other languages
English (en)
French (fr)
Other versions
WO2024066933A9 (zh
Inventor
蔡智恒
Original Assignee
荣耀终端有限公司
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 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2024066933A1 publication Critical patent/WO2024066933A1/zh
Publication of WO2024066933A9 publication Critical patent/WO2024066933A9/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R9/00Transducers of moving-coil, moving-strip, or moving-wire type
    • H04R9/06Loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R9/00Transducers of moving-coil, moving-strip, or moving-wire type
    • H04R9/02Details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2400/00Loudspeakers
    • H04R2400/11Aspects regarding the frame of loudspeaker transducers

Definitions

  • the embodiments of the present application relate to the field of loudspeakers, and in particular, to a loudspeaker control method and device.
  • Stereo refers to sound with a three-dimensional sense.
  • the three-dimensional sense means that in addition to the loudness, pitch and timbre of the sound, the user can also feel the direction and level of the sound.
  • a plurality of speakers are usually configured for an audio playback device to ensure that the audio played through the plurality of speakers has a three-dimensional sense, thereby achieving stereo and panoramic sound field effects to enhance the user audio experience.
  • the present application provides a speaker control method and device.
  • the sound field is reconstructed into a sound field with a stereo effect by adjusting the operating state of the speakers, thereby solving the abnormal sound field effect caused by the abnormal speaker playback.
  • an embodiment of the present application provides a speaker control method, which is applied to an audio playback device configured with multiple speakers, the method comprising: controlling multiple speakers to play audio signals; wherein the multiple speakers are symmetrically arranged and the number is greater than or equal to 3; detecting the operating status of each speaker for the audio signal to obtain a detection result; if the detection result is a playback abnormality, determining the abnormal cause of the playback abnormality and the speaker identification; according to the abnormal cause of the playback abnormality and the speaker identification, adjusting the operating status of at least one of the multiple speakers to a target state; wherein the target state is used to construct a sound field with a stereo or surround sound effect.
  • Fig. 1 is a schematic diagram of an exemplary application scenario. As shown in Fig. 1, the positions of the speaker 101 and the speaker 102 on the audio playback device 100 are symmetrical, and the positions of the speaker 103 and the speaker 104 on the audio playback device 100 are symmetrical.
  • the audio playback device can adjust the operating state of the speaker of the audio playback device to a target state based on the abnormal cause of the abnormal speaker playback and the speaker identification, and then reconstruct the sound field formed by the multiple speakers with the abnormal speaker playback into a sound field with a stereo effect, thereby resolving the abnormal stereo effect caused by the abnormal speaker playback.
  • detecting the operating state of each speaker for an audio signal and obtaining a detection result includes: detecting the operating state of each speaker for an audio signal and obtaining current state information indicating the operating state of each speaker; Determine the difference between the current state information and the pre-stored standard state information; wherein the standard state information is used to indicate the operating state of the speaker of the audio playback device when there is no abnormality in the playback; if the difference is greater than or equal to the difference threshold, determine that the detection result is abnormal playback; if the difference is less than the difference threshold, determine that the detection result is normal playback.
  • the normal operating state of the speaker when playing the audio signal can be predetermined, and then the audio playback device can pre-store standard state information for indicating the normal operating state of each speaker. In this way, when the audio playback device plays the audio signal through each speaker, it can directly determine whether the speaker is abnormal according to the pre-stored standard state information, which is more convenient and accurate.
  • the current state information includes at least one of the following information: the current input power of the speaker, the current theoretical amplitude of the speaker and the current vibration measurement parameters of the speaker; wherein the current input power of the speaker includes the power currently input to the speaker by the power amplifier that controls the speaker; the current theoretical amplitude of the speaker includes the amplitude determined by the power amplifier according to the electrical signal currently input to the speaker; the current vibration measurement parameters of the speaker include at least one of the following: measuring the vibration frequency and vibration amplitude of the speaker corresponding to each level of power, and obtaining the vibration frequency measurement value and vibration amplitude measurement value.
  • the current status information includes at least one of the following information: the current input power of the speaker, the current theoretical amplitude of the speaker, and the current vibration measurement parameters of the speaker, which can reflect a more realistic operating state of the speaker, thereby improving the detection accuracy of the speaker operating state, improving the accuracy of subsequent adjustments to the speaker operating state, further reducing abnormal sound field effects caused by abnormal speaker playback, and improving user experience.
  • the audio signal includes: a swept frequency sound signal, a single frequency sound signal, or a pre-set sound signal.
  • the single-frequency signal and the swept-frequency signal are within the audible range of the human ear, and the operating state of the speaker can be detected when being played, which can improve the accuracy of detecting abnormal speaker playback, improve the accuracy of subsequent speaker operating state adjustment, further reduce abnormal sound field effects caused by abnormal speaker playback, and improve user experience.
  • the pre-formulated sound signal is an audio signal formulated by the user, such as music played by the user, and the user has an audio experience requirement when playing the sound signal. Therefore, based on the detection of the sound signal, the user's audio experience can be improved in a timely manner.
  • the standard status information includes at least one of the following information: a power configuration table for each speaker, a standard theoretical amplitude corresponding to each level of power, and a speaker vibration measurement parameter corresponding to each level of power; wherein the power configuration table includes: a standard input power of each speaker corresponding to each level of volume; the standard input power is used to indicate the input power of each speaker corresponding to each level of volume when the speaker of the audio playback device plays normally; the standard theoretical amplitude corresponding to each level of power includes: a theoretical amplitude of each speaker corresponding to each level of input power when the speaker of the audio playback device plays normally; the speaker vibration measurement parameter corresponding to each level of power includes: a measured amplitude of each speaker corresponding to each level of input power when the speaker of the audio playback device plays normally.
  • the standard status information includes at least one of the following information: a power configuration table of each speaker, a standard theoretical amplitude corresponding to each power level, and a speaker vibration measurement parameter corresponding to each power level, so that it can be applied to the scenario where the current status information includes at least one of the current input power of the speaker, the current theoretical amplitude of the speaker, and the current vibration measurement parameter of the speaker, thereby expanding the application scenarios.
  • the abnormal cause includes: a calibrable abnormality or an uncalibrable abnormality; wherein the calibrable abnormality includes adjusting the operating state of the speaker that plays the abnormality Resolvable anomalies, non-calibrable anomalies include anomalies that cannot be resolved by adjusting the operating state of the speaker that plays the anomaly.
  • the embodiments of the present application can be applicable to calibrable exceptions or non-calibrable exceptions, so as to cope with speaker playback exceptions caused by various reasons, further reduce speaker playback exceptions, and improve user experience.
  • the operating state of at least one of the multiple speakers is adjusted to a target state according to the abnormal cause of the playback abnormality and the speaker identification, including: if the abnormal cause is a calibrable abnormality, according to the difference between the current state information indicating the operating state of the speaker with the playback abnormality and the standard state information, determining the operating parameter adjustment amount corresponding to the target state; wherein the standard state information is used to indicate the operating state of the speaker with the playback abnormality when there is no abnormality in the playback; according to the operating parameter adjustment amount and the speaker identification, adjusting the operating parameters of at least one of the multiple speakers.
  • At least one of the multiple speakers may include a speaker with a playback abnormality.
  • the sound effects of the abnormal speaker can be supplemented by directly adjusting the operating parameters of the abnormal speaker to solve the playback abnormality, thereby constructing a sound field with stereo or surround sound effects.
  • the operating state of at least one of the multiple speakers is adjusted to the target state, including: if the abnormal cause is an uncalibrable abnormality, turning off the first speaker that is symmetrical to the position of the speaker with the playback abnormality; determining the operating parameter adjustment amount corresponding to the target state according to the standard operating parameters of the speaker with the playback abnormality and the standard operating parameters of the first speaker; adjusting the operating parameters of the second speaker according to the operating parameter adjustment amount and the speaker identification; wherein the second speaker is a speaker among all the speakers of the audio playback device, excluding the abnormal speaker and the first speaker.
  • At least one of the multiple speakers may include all the speakers of the audio playback device, except for the speaker with the playback abnormality. In this way, by adjusting the operating parameters of the speakers in the audio playback device except for the abnormal speaker, the sound effects of the abnormal speaker can be supplemented to solve the playback abnormality, thereby constructing a sound field with stereo or surround sound effects.
  • the operating state of at least one of the multiple speakers is adjusted to the target state, including: detecting whether the target power amplifier corresponding to the speaker with the abnormal playback is abnormal; the audio playback device is also configured with multiple power amplifiers, and the multiple power amplifiers correspond one-to-one to the multiple speakers, and are respectively used to control the corresponding speakers; if abnormal, establish a current path between the target power amplifier and the power amplifiers in the same group; wherein every two power amplifiers in the multiple power amplifiers form a group; the power amplifier corresponding to the speaker with the abnormal playback is adjusted from the target power amplifier to the power amplifier in the same group; the operating state of the speaker with the abnormal playback includes the power amplifier corresponding to the speaker with the abnormal playback.
  • FIG7a is a schematic diagram of the structure of a speaker control device provided in an embodiment of the present application.
  • power amplifier PA1 and power amplifier PA3 are power amplifiers in the same group, and a connection with controllable connection and disconnection is established.
  • Power amplifier PA2 and power amplifier PA4 are power amplifiers in the same group, and a connection with controllable connection and disconnection is established.
  • the audio playback device indicates that the connection is connected, that is, a current path is established between the power amplifiers in the same group.
  • the power amplifier without abnormality in the power amplifier in the same group (such as PA3) can control the operation of the two-way speakers to solve the speaker abnormality caused by the power amplifier abnormality.
  • the abnormal power amplifier by detecting whether the power amplifier is abnormal, the abnormal power amplifier is established with the same
  • the current path between the power amplifiers of the group can deal with the abnormal operation state of the speaker caused by the abnormal power amplifier.
  • the power amplifier corresponding to the speaker with abnormal playback is adjusted from the target power amplifier to the power amplifier of the same group, so that the operation state of the speaker is normal, and the target state is achieved.
  • the method after adjusting the operating state of at least one of the multiple speakers to the target state according to the abnormal cause of the abnormal playback and the speaker identification, the method also includes: outputting an inquiry message on whether to make a personalized adjustment; if an instruction message for making a personalized adjustment is received, displaying a personalized adjustment interface; receiving sound effect parameters input through the personalized adjustment interface; and adjusting the operating state of at least one of the multiple speakers according to the sound effect parameters.
  • the corresponding adjustment method is executed, that is, the operating state of at least one of the multiple speakers is adjusted to the target state, so that the user can perceive the corresponding adjustment effect.
  • the user can be guided to further adjust and optimize the speaker operating state adjustment method executed by the audio playback device according to their own needs, thereby further reducing the abnormal playback of the speaker and improving the user experience.
  • the inquiry information includes: information prompting the user whether to make personalized adjustments, and at least one of the following information: the location of the speaker that plays abnormally, the speaker identification, the cause of the abnormality, and the target status.
  • the inquiry information also includes at least one of the following information: the location of the speaker with abnormal playback, the speaker identification, the cause of the abnormality, and the target status. In this way, the user can be informed of the abnormal situation of the speaker and the user can be informed of how the audio playback device handles the abnormal situation.
  • an embodiment of the present application provides an electronic device, comprising: a processor and a transceiver; a memory for storing one or more programs; when the one or more programs are executed by one or more processors, the one or more processors implement the method in the first aspect or any possible implementation of the first aspect.
  • the second aspect and any implementation of the second aspect correspond to the first aspect and any implementation of the first aspect respectively.
  • the technical effects corresponding to the second aspect and any implementation of the second aspect can refer to the technical effects corresponding to the first aspect and any implementation of the first aspect, which will not be repeated here.
  • an embodiment of the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for executing the method in the first aspect or any possible implementation of the first aspect.
  • an embodiment of the present application provides a computer program, which includes instructions for executing the method in the first aspect or any possible implementation of the first aspect.
  • an embodiment of the present application provides a chip, the chip comprising a processing circuit and a transceiver pin, wherein the transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the method in the first aspect or any possible implementation of the first aspect to control the receiving pin to receive a signal and control the transmitting pin to send a signal.
  • FIG1 is a schematic diagram showing an exemplary application scenario
  • FIG2 is a schematic diagram showing an exemplary application scenario
  • FIG3 is a schematic diagram showing an exemplary application scenario
  • FIG4 is a schematic diagram showing an exemplary application scenario
  • FIG5 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application.
  • FIG6 is a schematic diagram of a software architecture of an electronic device 500 provided in an embodiment of the present application.
  • FIG7a is a schematic structural diagram of a speaker control device provided in an embodiment of the present application.
  • FIG7b is a schematic diagram of the structure of a speaker control system provided in an embodiment of the present application.
  • FIG8 is a flowchart of a speaker control method provided in an embodiment of the present application.
  • FIG9 is one of schematic diagrams of a speaker control process provided in an embodiment of the present application.
  • FIG10 is one of schematic diagrams of a speaker control process provided in an embodiment of the present application.
  • FIG11 is a flowchart of a speaker control method provided in an embodiment of the present application.
  • FIG. 12 is a schematic block diagram of a device provided in an embodiment of the present application.
  • a and/or B in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist.
  • a and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
  • first and second in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects.
  • a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.
  • words such as “exemplary” or “for example” are used to indicate examples, illustrations or descriptions. Any embodiment or design described as “exemplary” or “for example” in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as “exemplary” or “for example” is intended to present related concepts in a specific way.
  • multiple refers to two or more than two.
  • multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.
  • An audio playback device is usually equipped with multiple speakers.
  • stereo and panoramic sound effects are achieved through a symmetrical layout of multiple speakers.
  • panoramic sound refers to the sound effect of the spatial sense of the sound field having a surround effect, which increases the sense of spatial immersion.
  • FIG1 is a schematic diagram of an exemplary application scenario.
  • an audio playback device 100 configured with multiple speakers to achieve stereo and panoramic sound effects may include four speakers: speaker 101, speaker 102, speaker 103 and speaker 104.
  • the four speakers are arranged symmetrically on the left and right, that is, the positions of speaker 101 and speaker 102 on the audio playback device 100 are symmetrical on the left and right, and speaker 103 is symmetrical on the left and right.
  • the positions of the speakers 104 and 106 on the audio playback device 100 are symmetrical. In this way, multiple speakers working simultaneously can bring a wider frequency response bandwidth, expand the sound field coverage area, obtain a sound field with greater depth and width, and achieve stereo and panoramic sound effects, thereby greatly improving the user's audio experience.
  • the audio playback device 100 can be of various types, for example, a computer, a tablet, a large screen, a mobile terminal, a Bluetooth speaker, a theater sound system, a car sound system, and the like.
  • the sound field of the entire audio playback device is negatively affected or even collapses, and the sound field is no longer balanced, resulting in the loss of stereo or surround sound effects. In this way, the audio function of the audio playback device declines or is lost, and the user experience deteriorates.
  • the embodiment of the present application provides a speaker control method to solve the above problems.
  • the speaker control method provided in the embodiment of the present application for the sound field of an audio playback device (such as the audio playback device 100) equipped with multiple speakers, if there is a speaker with abnormal playback, the sound field can be reconstructed into a sound field with a stereo effect by adjusting the operating state of at least one of the multiple speakers, thereby solving the abnormal sound field effect caused by the abnormal speaker playback and ensuring the user's stereo and panoramic sound experience.
  • the speaker control method provided in the embodiment of the present application is not only applicable to the audio playback device 100 shown in FIG1 , but can also be applied to any of the audio playback devices shown in FIG2 to FIG4 .
  • FIG2 is a schematic diagram of an exemplary application scenario.
  • an audio playback device 200 configured with multiple speakers to achieve stereo and panoramic sound effects may include 8 speakers: speaker 201, speaker 202, speaker 203, speaker 204, speaker 205, speaker 206, speaker 207, and speaker 208.
  • These 8 speakers are arranged symmetrically around, that is, the positions of speaker 201 and speaker 202 on the audio playback device 200 are symmetrical, the positions of speaker 203 and speaker 204 on the audio playback device 200 are symmetrical, the positions of speaker 205 and speaker 206 on the audio playback device 200 are symmetrical up and down, and the positions of speaker 207 and speaker 208 on the audio playback device 200 are symmetrical up and down.
  • FIG3 is a schematic diagram of an exemplary application scenario.
  • an audio playback device 300 configured with multiple speakers to achieve stereo and panoramic sound effects may include four speakers: speaker 301, speaker 302, speaker 303, and speaker 304.
  • the four speakers are arranged symmetrically up and down, that is, the positions of speaker 301 and speaker 302 on the audio playback device 300 are symmetrical up and down, and the positions of speaker 303 and speaker 304 on the audio playback device 300 are symmetrical up and down.
  • FIG4 is a schematic diagram of an exemplary application scenario.
  • an audio playback device 400 configured with multiple speakers to achieve stereo and panoramic sound effects may include four speakers: speaker 401, speaker 402, speaker 403, and speaker 404.
  • the four speakers are arranged unilaterally symmetrically, that is, the positions of speaker 401 and speaker 402 on the audio playback device 100 are symmetrical on the left and right, and speaker 403 and speaker 404 are symmetrical on the audio playback device 400 on a single side.
  • FIG5 is a structural schematic diagram of an electronic device 500 provided by the embodiment of the present application.
  • the electronic device can be, for example, a tablet, a computer, a mobile phone, etc., and the embodiment of the present application does not limit this.
  • the electronic device 500 shown in FIG. 5 is only an example of an electronic device, and the electronic device 500 There may be more or fewer components than shown in the figure, two or more components may be combined, or different component configurations may be provided.
  • the various components shown in FIG. 5 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • the electronic device 500 may include: a processor 510, an external memory interface 520, an internal memory 521, a universal serial bus (USB) interface 530, a charging management module 540, a power management module 541, a battery 542, an antenna 1, an antenna 2, a mobile communication module 550, a wireless communication module 560, an audio module 570, a speaker 570A, a receiver 570B, a microphone 570C, an earphone interface 570D, a sensor module 580, a button 590, a motor 591, an indicator 592, a camera 593, a display screen 594, and a subscriber identification module (SIM) card interface 595, etc.
  • SIM subscriber identification module
  • the sensor module 580 may include a pressure sensor 580A, a gyroscope sensor 580B, an air pressure sensor 580C, a magnetic sensor 580D, an acceleration sensor 580E, a distance sensor 580F, a proximity light sensor 580G, a fingerprint sensor 580H, a temperature sensor 580J, a touch sensor 580K, an ambient light sensor 580L, a bone conduction sensor 580M, and the like.
  • the processor 510 may include one or more processing units, for example, the processor 510 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • controller a memory
  • DSP digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • Different processing units may be independent devices or integrated into one or more processors.
  • the controller may be the nerve center and command center of the electronic device 500.
  • the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
  • the processor 510 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 510 is a cache memory.
  • the memory may store instructions or data that the processor 510 has just used or cyclically used. If the processor 510 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 510, and thus improves the efficiency of the system.
  • the processor 510 may include one or more interfaces.
  • the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
  • I2C inter-integrated circuit
  • I2S inter-integrated circuit sound
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 510 may include multiple groups of I2C buses.
  • the processor 510 may be coupled to the touch sensor 580K, the charger, the flash, the camera 593, etc. through different I2C bus interfaces.
  • the processor 510 may be coupled to the touch sensor 580K through the I2C interface, so that the processor 510 communicates with the touch sensor 580K through the I2C bus interface, thereby realizing the touch function of the electronic device 500.
  • the I2S interface can be used for audio communication.
  • the processor 510 can include multiple I2S buses.
  • the processor 510 can be coupled to the audio module 570 via the I2S bus to achieve communication between the processor 510 and the audio module 570.
  • the audio module 570 can transmit audio signals to the wireless communication module 560 through the I2S interface to implement the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals.
  • the audio module 570 and the wireless communication module 560 can be coupled via a PCM bus interface.
  • the audio module 570 can also transmit audio signals to the wireless communication module 560 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 510 and the wireless communication module 560.
  • the processor 510 communicates with the Bluetooth module in the wireless communication module 560 through the UART interface to implement the Bluetooth function.
  • the audio module 570 can transmit an audio signal to the wireless communication module 560 through the UART interface to implement the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 510 with peripheral devices such as the display screen 594 and the camera 593.
  • the MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc.
  • the processor 510 and the camera 593 communicate via the CSI interface to realize the shooting function of the electronic device 500.
  • the processor 510 and the display screen 594 communicate via the DSI interface to realize the display function of the electronic device 500.
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 510 with the camera 593, the display 594, the wireless communication module 560, the audio module 570, the sensor module 580, etc.
  • the GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
  • the USB interface 530 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 530 can be used to connect a charger to charge the electronic device 500, and can also be used to transmit data between the electronic device 500 and a peripheral device. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices, etc.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 500.
  • the electronic device 500 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 540 is used to receive charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 540 may receive charging input from a wired charger through the USB interface 530.
  • the charging management module 540 may receive wireless charging input through a wireless charging coil of the electronic device 500. While the charging management module 540 is charging the battery 542, it may also power the electronic device through the power management module 541.
  • the power management module 541 is used to connect the battery 542, the charging management module 540 and the processor 510.
  • the power management module 541 receives input from the battery 542 and/or the charging management module 540, and supplies power to the processor 510, the internal memory 521, the external memory, the display screen 594, the camera 593, and the wireless communication module 560.
  • the power management module 541 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
  • the power management module 541 can also be set in the processor 510.
  • the power management module 541 and the charging management module 540 can also be set in the same device.
  • the wireless communication function of the electronic device 500 can be implemented through the antenna 1, the antenna 2, the mobile communication module 550, the wireless communication module 560, the modem processor and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 500 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 550 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 500.
  • the mobile communication module 550 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
  • the mobile communication module 550 may receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 550 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
  • at least some of the functional modules of the mobile communication module 550 may be arranged in the processor 510.
  • at least some of the functional modules of the mobile communication module 550 may be arranged in the same device as at least some of the modules of the processor 510.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 570A, a receiver 570B, etc.), or displays an image or video through a display screen 594.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 510 and be set in the same device as the mobile communication module 550 or other functional modules.
  • the wireless communication module 560 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 500.
  • the wireless communication module 560 can be one or more devices integrating at least one communication processing module.
  • the wireless communication module 560 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 510.
  • the wireless communication module 560 can also receive the signal to be sent from the processor 510, modulate the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
  • the antenna 1 of the electronic device 500 is coupled to the mobile communication module 550, and the antenna 2 is coupled to the wireless communication module 560, so that the electronic device 500 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), etc. system (BDS), quasi-zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • the electronic device 500 implements the display function through a GPU, a display screen 594, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 594 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 510 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 594 is used to display images, videos, etc.
  • the display screen 594 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
  • the electronic device 500 may include 1 or N display screens 594, where N is a positive integer greater than 1.
  • the electronic device 500 can realize the shooting function through ISP, camera 593, video codec, GPU, display screen 594 and application processor.
  • the ISP is used to process the data fed back by the camera 593. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye.
  • the ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 593.
  • the camera 593 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor.
  • CMOS complementary metal oxide semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • the DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
  • the electronic device 500 may include 1 or N cameras 593, where N is a positive integer greater than 1.
  • the digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 500 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital videos.
  • the electronic device 500 may support one or more video codecs.
  • the electronic device 500 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG Moving Picture Experts Group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural network (NN) computing processor, which can quickly process input information and continuously self-learn by drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain.
  • NPU can realize applications such as intelligent cognition of electronic device 500, such as image recognition, face recognition, voice recognition, text understanding, etc.
  • the external memory interface 520 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 500.
  • the external memory card communicates with the processor 510 through the external memory interface 520 to implement a data storage function, such as storing music, video and other files in the external memory card.
  • the internal memory 521 can be used to store computer executable program codes, which include instructions.
  • the processor 510 executes various functional applications and data processing of the electronic device 500 by running the instructions stored in the internal memory 521.
  • the internal memory 521 may include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the data storage area may store data created during the use of the electronic device 500 (such as audio data, a phone book, etc.), etc.
  • the internal memory 521 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • UFS universal flash storage
  • the electronic device 500 can implement audio functions such as music playing and recording through the audio module 570, the speaker 570A, the receiver 570B, the microphone 570C, the headphone jack 570D, and the application processor.
  • audio functions such as music playing and recording through the audio module 570, the speaker 570A, the receiver 570B, the microphone 570C, the headphone jack 570D, and the application processor.
  • the audio module 570 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 570 can also be used to encode and decode audio signals.
  • the audio module 570 can be arranged in the processor 510, or some functional modules of the audio module 570 can be arranged in the processor 510.
  • the speaker 570A also called a "speaker" is used to convert an audio electrical signal into a sound signal.
  • the electronic device 500 can listen to audio such as music or listen to a hands-free call through the speaker 570A.
  • the number of the speakers 570A is an even number greater than or equal to 4, and is symmetrically arranged on the electronic device 800, such as the symmetrical arrangement shown in Figures 1 to 4.
  • the receiver 570B also called a "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be received by placing the receiver 570B close to the human ear.
  • Microphone 570C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 570C to input the sound signal into the microphone 570C.
  • the electronic device 500 can be provided with at least one microphone 570C. In other embodiments, the electronic device 500 can be provided with two microphones 570C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 500 can also be provided with three, four or more microphones 570C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
  • the earphone interface 570D is used to connect a wired earphone.
  • the earphone interface 570D may be the USB interface 530, or may be a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 580A is used to sense pressure signals and can convert pressure signals into electrical signals.
  • the pressure sensor 580A can be set on the display screen 594.
  • a capacitive pressure sensor can be a parallel plate including at least two conductive materials.
  • the electronic device 500 can also calculate the position of the touch based on the detection signal of the pressure sensor 580A.
  • touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when there is a touch operation intensity less than the first When a touch operation with a pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyroscope sensor 580B can be used to determine the motion posture of the electronic device 500.
  • the angular velocity of the electronic device 500 around three axes i.e., x, y, and z axes
  • the gyroscope sensor 580B can be used for anti-shake shooting.
  • the gyroscope sensor 580B detects the angle of the electronic device 500 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 500 through reverse movement to achieve anti-shake.
  • the gyroscope sensor 580B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 580C is used to measure air pressure.
  • the electronic device 500 calculates the altitude through the air pressure value measured by the air pressure sensor 580C to assist in positioning and navigation.
  • the magnetic sensor 580D includes a Hall sensor.
  • the electronic device 500 can use the magnetic sensor 580D to detect the opening and closing of the flip leather case.
  • the electronic device 500 when the electronic device 500 is a flip phone, the electronic device 500 can detect the opening and closing of the flip cover according to the magnetic sensor 580D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
  • the acceleration sensor 580E can detect the magnitude of the acceleration of the electronic device 500 in all directions (generally three axes). When the electronic device 500 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
  • the distance sensor 580F is used to measure the distance.
  • the electronic device 500 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 500 can use the distance sensor 580F to measure the distance to achieve fast focusing.
  • the proximity light sensor 580G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 500 emits infrared light outward through the light emitting diode.
  • the electronic device 500 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 500. When insufficient reflected light is detected, the electronic device 500 can determine that there is no object near the electronic device 500.
  • the electronic device 500 can use the proximity light sensor 580G to detect that the user holds the electronic device 500 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 580G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
  • the ambient light sensor 580L is used to sense the ambient light brightness.
  • the electronic device 500 can adaptively adjust the brightness of the display screen 594 according to the perceived ambient light brightness.
  • the ambient light sensor 580L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 580L can also cooperate with the proximity light sensor 580G to detect whether the electronic device 500 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 580H is used to collect fingerprints.
  • the electronic device 500 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
  • the temperature sensor 580J is used to detect temperature.
  • the electronic device 500 uses the temperature detected by the temperature sensor 580J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 580J exceeds a threshold, the electronic device 500 reduces the performance of the processor located near the temperature sensor 580J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 500 heats the battery 542 to prevent the low temperature from causing the electronic device 500 to shut down abnormally. In other embodiments, when the temperature is lower than another threshold, the electronic device 500 The device 500 performs a voltage boost on the output voltage of the battery 542 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 580K is also called a "touch panel”.
  • the touch sensor 580K can be set on the display screen 594, and the touch sensor 580K and the display screen 594 form a touch screen, also called a "touch screen”.
  • the touch sensor 580K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 594.
  • the touch sensor 580K can also be set on the surface of the electronic device 500, which is different from the position of the display screen 594.
  • the bone conduction sensor 580M can obtain a vibration signal. In some embodiments, the bone conduction sensor 580M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 580M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 580M can also be set in an earphone and combined into a bone conduction earphone.
  • the audio module 570 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 580M to realize a voice function.
  • the application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 580M to realize a heart rate detection function.
  • the key 590 includes a power key, a volume key, etc.
  • the key 590 may be a mechanical key or a touch key.
  • the electronic device 500 may receive key input and generate key signal input related to user settings and function control of the electronic device 500.
  • Motor 591 can generate vibration prompts.
  • Motor 591 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • touch operations acting on different areas of the display screen 594 motor 591 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminders, receiving messages, alarm clocks, games, etc.
  • the touch vibration feedback effect can also support customization.
  • Indicator 592 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
  • the SIM card interface 595 is used to connect a SIM card.
  • the SIM card can be connected to and separated from the electronic device 500 by inserting it into the SIM card interface 595 or pulling it out from the SIM card interface 595.
  • the electronic device 500 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 595 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 595 at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 595 can also be compatible with different types of SIM cards.
  • the SIM card interface 595 can also be compatible with external memory cards.
  • the electronic device 500 interacts with the network through the SIM card to implement functions such as calls and data communications.
  • the electronic device 500 uses an eSIM, i.e., an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 500 and cannot be separated from the electronic device 500.
  • the software system of the electronic device 500 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 500.
  • FIG. 6 is a software structure block diagram of an electronic device 500 provided in an embodiment of the present application.
  • the layered architecture of the electronic device 500 divides the software into several layers, each with a clear role and division of labor.
  • the layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, from top to bottom. They are application layer, application framework layer, Android runtime and system library, and kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides application programming interface (API) and programming framework for the applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
  • the window manager is used to manage window programs.
  • the window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • the data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
  • the view system can be used to build applications.
  • a display interface can be composed of one or more views.
  • a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
  • the phone manager is used to provide communication functions of the electronic device 500, such as management of call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
  • the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
  • Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the Java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
  • functional modules such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
  • the surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • a 2D graphics engine is a drawing engine for 2D drawings.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the components included in the application framework layer, system library, and runtime kernel layer shown in FIG6 do not constitute a specific limitation on the electronic device 500.
  • the electronic device 500 may include more or fewer components than shown, or combine some components, or split some components, or arrange the components differently.
  • FIG. 7a is a schematic diagram of the structure of a speaker control device provided by an embodiment of the present application.
  • the audio playback device 700 may include: a processor 701, a bus 702, a memory 703, a speaker 704, a speaker 705, a speaker 706, a speaker 707, a power amplifier P1, a power amplifier P2, a power amplifier P3, and a power amplifier P4.
  • the processor 701 is connected to the memory 703 through the bus 702, the power amplifier P1 is connected to the speaker 704, the power amplifier P2 is connected to the speaker 706, the power amplifier P3 is connected to the speaker 705, and the power amplifier P4 is connected to the speaker 707.
  • the power amplifier (for example, the power amplifier P2) is used to control the amplification power of the speaker to the audio signal.
  • a controllable connection can be established between each two power amplifiers, that is, a pair of power amplifiers. Normally, the connection is disconnected. When one of the pair of power amplifiers is abnormal, the connection can be connected, and the power amplifier without abnormality controls the two speakers to deal with the speaker abnormality caused by the abnormality of the power amplifier.
  • the connection can be a switch circuit controlled by a level signal.
  • the power amplifier P1 is abnormal, and the audio playback device controls the connection between the power amplifier P1 and the power amplifier P2 to be connected.
  • the audio playback device can control the amplification power of the audio signal by the speakers 704 and 706 through the power amplifier P2.
  • FIG. 7a is another schematic diagram of the electronic device structure of FIG. 5.
  • the audio playback device 700 shown in FIG. 7a is only an example of an audio playback device, and the audio playback device 700 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations.
  • the various components shown in FIG. 7a may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • FIG7b is a schematic diagram of the structure of a speaker control system provided in an embodiment of the present application.
  • the speaker control system 800 may include a speaker device 801 and a control device 802 that are connected in communication.
  • the communication connection may be a wired connection or a wireless connection, which is not limited in the embodiment of the present application.
  • the speaker device 801 includes a speaker 8011, a speaker 8012, a speaker 8013, a speaker 8014, a power amplifier P1, a power amplifier P2, a power amplifier P3, and a power amplifier P4.
  • the control device 802 includes a processor 8021, a bus 8022, and a memory 8023.
  • the speaker, power amplifier, processor, and bus in FIG7b are similar to those in FIG7a, and the same parts are not repeated here.
  • the difference is that the speaker device 801 and the control device 802 in FIG7b are independent of each other.
  • the control device 802 may be a mobile phone
  • the speaker device 801 may be a stereo connected to the mobile phone via Bluetooth.
  • the speaker control system 800 shown in FIG7 b is only one example of a speaker control system, and the speaker control system 800 may have more or fewer components than shown in the figure, may combine two or more components, or may have a different component configuration.
  • the various components shown in FIG7 b may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • FIG8 is one of the flow charts of a speaker control method provided in an embodiment of the present application.
  • the speaker control method provided in an embodiment of the present application is applied to an audio playback device configured with multiple speakers, and may include the following steps:
  • the audio playback device may be, for example, a tablet, a car audio system, etc., and an audio signal may be played through multiple speakers of the audio playback device to detect whether the multiple speakers are abnormal.
  • the audio signal played by the audio playback device through multiple speakers may be a specified audio signal, that is, a specified sound source, for example, a single-frequency signal with a resonant frequency (F0) ⁇ 100Hz, or a swept frequency signal with a frequency variation range of [20Hz, 20KHz].
  • the resonant frequency (F0) refers to the frequency corresponding to the point where the vibration plate vibrates most strongly when the speaker starts to vibrate from the bass range.
  • a single-frequency signal is a sound wave signal with a fixed frequency and sinusoidally varying generated by simple harmonic vibration.
  • a swept frequency signal that is, a sine swept frequency signal, refers to a signal whose frequency changes continuously within a certain frequency band.
  • the audio signal played by the audio playback device through multiple speakers may be a pre-defined sound signal, for example, an audio signal defined by a user (such as a mobile phone user) (music played through the speaker of a mobile phone).
  • the normal operating state of the speaker when playing the audio signal can be predetermined, and then the audio playback device can pre-store standard state information for indicating the normal operating state of each speaker. In this way, when the audio playback device plays the audio signal through each speaker, it can directly determine whether the speaker is abnormal according to the pre-stored standard state information, which is more convenient and accurate.
  • the single-frequency signal and the swept-frequency signal in the above optional examples are within the audible range of the human ear, and the operating status of the speaker can be detected when being played, which can improve the accuracy of detecting abnormal speaker playback, improve the accuracy of subsequent speaker operating status adjustments, further reduce abnormal sound field effects caused by abnormal speaker playback, and improve user experience.
  • the pre-defined sound signal is an audio signal defined by the user, such as music played by the user, and the user has an audio experience requirement when playing the sound signal. Therefore, based on the sound signal detection, the user's audio experience can be improved in a timely manner.
  • the audio playback device may execute the above step S801 when it is started.
  • the audio playback device may display a user interaction interface asking whether to start calibration when it is started, and when an instruction to start calibration is received through the user interaction interface, the above step S801 is executed.
  • the audio playback device may periodically display a user interaction interface asking whether to start calibration during operation, and when an instruction to start calibration is received through the user interaction interface, the above step S801 is executed.
  • the embodiment of the present application does not limit the execution conditions of the above step S801.
  • the layout of multiple speakers on the audio playback device can refer to the description of Figures 1 to 4 of the present application, which will not be repeated here.
  • the audio playback device can refer to the description of Figures 5 to 7b of the present application, which will not be repeated here.
  • S802 Detect the operating status of each speaker for the audio signal and obtain a detection result.
  • the audio playback device After the audio playback device plays the audio signal through multiple speakers, it can detect the operating status of each speaker for the audio signal and obtain a detection result.
  • the detection result of the operating status of each speaker for the audio signal may include: abnormal playback or normal playback.
  • detecting the operating status of each speaker for the audio signal and obtaining the detection result may include: detecting the operating status of each speaker for the audio signal and obtaining an indication of each speaker.
  • the standard state information is used to indicate the running state of the speaker of the audio playback device when there is no abnormality in the playback.
  • the audio playback device when the audio playback device is equipped with a microphone (MIC), the audio playback device can use the MIC to collect the audio signal played by the audio playback device to obtain a first sound field audio signal; determine the difference between the first sound field audio signal and the pre-stored second sound field audio signal; if the difference is greater than the preset signal difference, determine that the detection result is a playback abnormality.
  • the audio playback device uses the MIC to collect the audio signal played by the audio playback device to obtain the first sound field audio signal, which may include: the audio playback device controls each speaker to play the audio signal independently, and uses the MIC to collect the audio signal played by each speaker respectively, to obtain the first sound field audio signal of the speaker.
  • each speaker determine the difference between the first sound field audio signal of the speaker and the pre-stored second sound field audio signal of the speaker; if the difference is greater than the preset signal difference, determine that the detection result of the speaker is a playback abnormality.
  • the number of the above-mentioned microphones can be multiple, and the configuration position can be near each speaker of the audio playback device.
  • the number of microphones can be one, and the configuration position can be the middle position of all the speakers of the audio playback device, for example, between the speaker 401 and the speaker 402 of the audio playback device shown in Figure 4 of the present application, and the distance between the speaker 403 and the speaker 404 is the same.
  • the first sound field audio signal is equivalent to the current state information.
  • the second sound field audio signal is equivalent to the standard state information, which is the audio signal played by the audio playback device collected by the above-mentioned microphone when there is no abnormality in the playback of the speaker of the audio playback device.
  • the second sound field audio signal can be pre-collected by the manufacturer of the audio playback device and stored in the audio playback device.
  • the difference between the first sound field audio signal and the pre-stored second sound field audio signal can be a difference in signal characteristics such as signal waveform and frequency, and/or can be a difference in loudness.
  • each speaker of the audio playback device can be configured with a power amplifier.
  • the audio playback device can obtain the current input power of the speaker corresponding to the power amplifier from each power amplifier; obtain the current volume level of each speaker; according to the current volume level of each speaker, search the standard input power corresponding to the current volume level from the pre-stored power configuration table of each speaker; determine the difference between the current volume level of each speaker and the searched standard input power; if the difference is greater than or equal to the preset power difference threshold, determine the detection result as abnormal playback; if the difference is less than the preset power difference, determine the detection result as normal playback.
  • the pre-stored power configuration table may include: the standard input power of each speaker corresponding to each level of volume.
  • the standard input power is used to indicate the input power of each speaker corresponding to each level of volume when the speaker of the audio playback device plays without abnormality.
  • the audio playback device is a level one volume, and the standard input power of the speaker is the first power; the audio playback device is a level two volume, and the standard input power of the speaker is the second power.
  • each speaker of the audio playback device can be configured with a power amplifier.
  • the audio playback device can obtain the current theoretical amplitude and current input power of the speaker corresponding to each power amplifier from the power amplifier; search for the correspondence between the pre-stored standard theoretical amplitude and each level of power of each speaker, and obtain the standard theoretical amplitude corresponding to the current input power; determine the difference between the current volume level of each speaker and the searched standard theoretical amplitude; if the difference is greater than or equal to the preset theoretical amplitude threshold, determine that the detection result is abnormal playback; if the difference is less than the preset theoretical amplitude difference, determine that the detection result is normal playback.
  • the standard theoretical amplitude may include: the value of each speaker corresponding to each level of input power when the speaker of the audio playback device plays normally
  • the theoretical amplitude of each speaker corresponding to each level of power may include: the amplitude of the speaker calculated by the power amplifier of the audio playback device (for example, a smart power amplifier SmartPA) according to the electrical signal of the speaker corresponding to each level of power.
  • the power amplifier of the audio playback device for example, a smart power amplifier SmartPA
  • each speaker of the audio playback device can be configured with a vibration measurement sensor (such as an acoustic-electric sensor, a small acceleration sensor, etc.), that is, the acoustic-electric sensor, the small acceleration sensor corresponds to the speaker of the audio playback device one by one, and is installed near the corresponding speaker, for example, the distance from the corresponding speaker is less than or equal to the distance threshold.
  • the audio playback device can measure the current vibration measurement parameters of the speaker corresponding to the vibration measurement sensor through each vibration measurement sensor.
  • the speaker vibration measurement parameters corresponding to each level of power may include at least one of the following: measuring the vibration frequency and vibration amplitude of the speaker corresponding to each level of power, and obtaining the vibration frequency measurement value and vibration amplitude measurement value.
  • the audio playback device can obtain the current input power of the speaker corresponding to the power amplifier from each power amplifier; find the corresponding relationship between the pre-stored standard measurement amplitude of each speaker and each level of power, and obtain the standard measurement amplitude corresponding to the current input power; determine the difference between the current volume level of each speaker and the standard measurement amplitude found; if the difference is greater than or equal to the preset measurement amplitude threshold, determine that the detection result is abnormal playback, and if the difference is less than the preset measurement amplitude difference, determine that the detection result is normal playback.
  • the standard measurement amplitude may include: the measurement amplitude of each speaker corresponding to each level of input power when the speaker of the audio playback device plays normally.
  • the playback abnormality determined by the audio playback device based on the current input power can indicate abnormal loudness of the speaker, for example, the loudness is greater than the standard loudness, that is, the loudness is too loud, and the loudness is less than the standard loudness, that is, the loudness is too low.
  • the playback abnormality determined by the audio playback device based on the current theoretical amplitude and the current vibration measurement parameter can indicate abnormal frequency of the speaker, for example, the frequency is greater than the standard frequency, that is, the frequency is too high, and the frequency is less than the standard loudness, that is, the frequency is too low.
  • the playback abnormality determined when any one of the current input power, the current theoretical amplitude, and the current vibration measurement parameter is 0 can indicate abnormal speaker damage, for example, the speaker is silent, the line is disconnected, etc.
  • the audio playback device can detect at least one of the current input power, current vibration theoretical parameters and current vibration measurement parameters of the above-mentioned speaker as the current state information, which can be specifically set according to application requirements. Accordingly, the structure of the audio playback device is suitable for the measured parameters, and the description of the corresponding structure can refer to the description of the above-mentioned embodiment of obtaining the current state information, which will not be repeated here.
  • the standard state information may be pre-stored in the audio playback device, for example, initial parameters, that is, the built-in algorithm in the audio playback device for implementing the speaker control method provided in the embodiment of the present application may be pre-implanted with initial parameters indicating that the speaker is in a normal operating state.
  • the initial parameters may include at least one of the following parameters: a power configuration table of the speaker at each position, a theoretical amplitude of the speaker corresponding to each power level, and a vibration measurement parameter of the speaker corresponding to each power level.
  • the audio playback device can simultaneously detect the operating status of each speaker for the audio signal.
  • the audio playback device can perform loop detection, that is, detect the operating status of each speaker for the audio signal one by one.
  • the audio playback device can sequentially detect the operating status of speaker 401, speaker 403, speaker 404, and speaker 402, or sequentially detect the operating status of speaker 401, speaker 402, speaker 404, and speaker 403, that is, detect in the form of a "loop".
  • the embodiments of the present application are not limited to this.
  • the initial parameters indicating that the speaker is in a normal operating state may include the speaker vibration measurement parameters corresponding to each level of power, which can reflect the speaker more realistically than only including the theoretical amplitude or power.
  • the operating status of the speaker can be detected, thereby improving the accuracy of detecting the operating status of the speaker, improving the accuracy of subsequent adjustments to the operating status of the speaker, further reducing abnormal sound field effects caused by abnormal speaker playback, and improving user experience.
  • the audio playback device detects the operating state of each speaker for the audio signal, and after obtaining the detection result, if the detection result is abnormal playback, the abnormal cause of the abnormal playback and the speaker identification can be determined.
  • the subsequent audio playback device can adopt an adjustment method adapted to the abnormal cause of the abnormal playback and the speaker identification in step S804 to construct a new sound field formed by the speakers with abnormal playback and the speakers without abnormal playback, and the new sound field has a stereo or surround sound sound field effect.
  • FIG. 9 is one of the schematic diagrams of a speaker control process provided in an embodiment of the present application.
  • the process takes the speaker control method provided in an embodiment of the present application applied to the audio playback device 700 shown in FIG. 7a as an example, and includes the following steps:
  • S901 is similar to S801 to S802 of the embodiment of FIG. 8 of the present application, and the same parts are not repeated here.
  • S901 please refer to the existing description of the embodiment of FIG. 8 of the present application. The difference is that in S901:
  • the detection result obtained by the audio playback device may specifically be an abnormality cause. If the abnormality cause is not empty, it indicates that the detection result is a playback abnormality. If the abnormality cause is empty, it indicates that the detection result is no playback abnormality.
  • the abnormality cause may include a calibrable abnormality or an uncalibrable abnormality.
  • a calibrable abnormality refers to an abnormality that can be solved by adjusting the operating state of the speaker with the playback abnormality, such as abnormal loudness and frequency response of the speaker.
  • An uncalibrable abnormality refers to an abnormality that cannot be solved by adjusting the operating state of the speaker with the playback abnormality, such as a damage abnormality of the speaker.
  • For the loudness abnormality, frequency response abnormality and damage abnormality of the speaker please refer to the existing description in the above description of S802.
  • the abnormality is a calibrable abnormality
  • the operating state of the speaker can be adjusted regardless of the number of speakers with abnormal playback. For example, for an audio playback device configured with N (N ⁇ 4) speakers, if M (M ⁇ N) speakers are abnormal and the abnormality is calibrable, S902 can be executed. Referring to FIG. 9 , the abnormality of speaker 706 is low loudness, and the abnormality of speaker 705 is high loudness.
  • the power amplifier P3 and the power amplifier P2 can feed back the detection results to the chip end (codec) of the audio playback device, for example, the processor 701 in Figure 9.
  • the audio playback device can extract the speaker identifiers "705" and "706" of abnormal playback from the detection results fed back by the power amplifier P3 and the power amplifier P2, so as to be used for subsequent determination of at least one of the multiple speakers and adjustment of the operating status.
  • FIG10 is one of schematic diagrams of a speaker control process provided in an embodiment of the present application.
  • the process is based on the application of the speaker control method provided in an embodiment of the present application to the audio playback device shown in FIG7a, and includes the following steps:
  • S1001 detect whether to adjust the operating status of the speaker; if adjusted, execute S1002; if not adjusted, execute S1005.
  • S1001 is similar to S901 of the embodiment of FIG. 9 of the present application. The same parts will not be described here. For details, please refer to the existing description of the embodiment of FIG. 9 of the present application. The difference is that in S1001: if the abnormality is caused by an uncalibrable abnormality and the number of speakers playing abnormally is less than or equal to half of the total number of speakers of the audio playback device, the adjustment can be made.
  • the operating status of the speaker that is, to build a new sound field. For example, for an audio playback device equipped with N (N ⁇ 4) speakers, if K (K ⁇ N/2) speakers are abnormal and cannot be calibrated, S1002 can be executed.
  • the speaker repair reminder may be at least one of a voice reminder, a text reminder, and an image reminder.
  • the speaker repair reminder may indicate the number, location, identification, and cause of abnormality of the speaker that plays abnormally.
  • the speaker repair reminder may display the cause of the abnormality of speaker 707 as shown in FIG. 10 of the present application: no sound.
  • the audio signals played by the audio playback device through multiple speakers are audio signals selected by the user.
  • the audio playback device plays audio signals such as music, movies, and audio books through speakers
  • the current state information of the speakers playing audio signals of different contents is usually quite different.
  • the audio playback device can execute S802 according to the preset period to obtain a more accurate operating state and a more accurate detection result.
  • S1002 is similar to S902 of the embodiment of FIG. 9 of the present application, and the same parts are not described here in detail. For details, please refer to the existing description of the embodiment of FIG. 9 of the present application. The difference is that the speaker with abnormal playback in S1002 is identified as "707".
  • the operating state of at least one of the multiple speakers in the audio playback device can be adjusted to a target state according to the abnormal reason for the abnormal playback and the speaker identification.
  • the at least one of the multiple speakers is a speaker among all the speakers of the audio playback device that is used to supplement the sound effect of the abnormal speaker.
  • At least one of the multiple speakers may include a speaker with a playback abnormality. That is to say, for an abnormal speaker with a calibrable abnormality, directly adjusting the operating parameters of the abnormal speaker can supplement the sound effect of the abnormal speaker to solve the playback abnormality, thereby constructing a sound field with a stereo or surround sound effect.
  • the audio playback device adjusts the operating state of at least one of the multiple speakers in the audio playback device to a target state according to the cause of the abnormality and the speaker identification of the playback abnormality, which may include: the audio playback device determines the operating parameter adjustment amount corresponding to the target state according to the difference between the current state information of the abnormal speaker and the standard state information, and adjusts the operating parameters of at least one of the multiple speakers according to the operating parameter adjustment amount and the speaker identification.
  • the operating parameter adjustment amount may be, for example, parameters such as power compensation value, gain compensation value, and EQ (Equalize, an equalizer for adjusting sound effects) compensation value.
  • the audio playback device may reduce the power, reduce the gain, and perform EQ adjustment on the speaker with abnormally high loudness; and increase the power, increase the gain, and perform EQ adjustment on the speaker with abnormally low loudness.
  • the processing process of the speaker control method may also include: S903, the processor 701 instructs the speaker 705 to lower the gain, and the speaker 706 to increase the gain.
  • At least one of the multiple speakers may include all speakers of the audio playback device, except for the speaker with the abnormal playback.
  • the operating parameters of the speakers other than the abnormal speaker in the audio playback device can be adjusted to supplement the sound effect of the abnormal speaker to solve the playback abnormality, thereby constructing a sound field with stereo or surround sound effects.
  • the audio playback device adjusts the operating state of at least one of the multiple speakers in the audio playback device to the target state according to the abnormal cause of the playback abnormality and the speaker identification, which may include: the audio playback device turns off the first speaker symmetrical to the position of the abnormal speaker, determines the operating parameter adjustment amount corresponding to the target state according to the standard operating parameters of the abnormal speaker and the standard operating parameters of the first speaker, and adjusts the operating parameters of the second speaker according to the operating parameter adjustment amount and the speaker identification; wherein the second speaker is a speaker of the audio playback device other than the abnormal speaker and the first speaker.
  • the processing process of the speaker control method may also include: S1003, the processor 701 instructs the speaker 706 to turn off, and the speaker 704 and the speaker 705 to increase the gain. That is, the speaker 707 is the speaker with abnormal playback, the speaker 706 is the first speaker, and the speaker 704 and the speaker 705 are the second speakers.
  • the processor 701 sends an instruction to the speaker 706 symmetrically located with the speaker 707 to turn off the signal input of the speaker 706.
  • the processor 701 controls the power amplifiers of the remaining two speakers, that is, the speaker 704 and the speaker 705, to increase the gain, increase the input power, and perform EQ adjustment according to the operating parameter adjustment amount.
  • the audio playback device can also detect whether the power amplifier corresponding to the speaker is abnormal. If abnormal, a current path is established between the power amplifier and the power amplifiers in the same group. Among them, every two power amplifiers with the shortest distance can be used as a group of power amplifiers. Alternatively, the power amplifiers corresponding to every two symmetrically positioned speakers can be used as a group of power amplifiers. Every two power amplifiers can be used as a group of power amplifiers to reduce control and hardware costs. This embodiment of the present application is not limited to this.
  • the audio playback device can detect whether the electrical signal fed back by the power amplifier corresponding to the speaker playing abnormally is abnormal. If it is abnormal, it is determined that the power amplifier is abnormal.
  • the abnormality of the power amplifier can be, for example, that the power amplifier stops working.
  • the power amplifier PA1 and the power amplifier PA3 are power amplifiers in the same group, and a connection with controllable connection and disconnection is established.
  • the power amplifier PA2 and the power amplifier PA4 are power amplifiers in the same group, and a connection with controllable connection and disconnection is established.
  • the audio playback device When there is an abnormality in the power amplifiers in the same group (such as PA4), the audio playback device indicates that the connection is connected, that is, a current path is established between the power amplifiers in the same group.
  • the power amplifier such as PA3 without abnormality in the power amplifier in the same group can control the operation of the two-way speaker to solve the speaker abnormality caused by the power amplifier abnormality.
  • this embodiment is equivalent to the audio playback device adjusting the operating state of the abnormal speaker (such as speaker 707) from being controlled by the abnormal power amplifier (such as PA4) to being controlled by the power amplifier (such as PA3) without abnormality.
  • the abnormal operation state of the speaker caused by the abnormal power amplifier can be dealt with.
  • the power amplifier corresponding to the speaker with abnormal playback is adjusted from the target power amplifier to the power amplifier in the same group, so that the operation state of the speaker is normal, and the target state is achieved.
  • FIG11 is one of the flowcharts of a speaker control method provided in an embodiment of the present application, and the method may include the following steps:
  • the inquiry information may be in the form of audio, video, text, etc., and this application does not limit this.
  • the inquiry information may also include at least one of the following: the identification, location, and cause of the abnormal speaker, and the operating state adjustment method performed by the audio playback device (such as the operating state adjustment method performed in Figure 9 or Figure 10).
  • the instruction information for performing personalized adjustment may be a user's voice instruction, a user's click instruction on a control indicating adjustment in the inquiry information, etc., and this embodiment of the present application does not impose any limitation on this.
  • the personalized adjustment interface may display a parameter adjustment control of at least one of the multiple speakers included in the operating status adjustment method, and the parameter adjustment control may pre-set user-adjustable parameter values, parameter ranges and other components to guide the user to make reasonable adjustments.
  • the audio playback device does not receive the instruction information for performing personalized adjustment, it indicates that the user approves the speaker operation state adjustment method performed by the audio playback device. Therefore, the inquiry information can be closed to maintain the current operation state of the speaker.
  • the corresponding adjustment method is executed, that is, the operating state of at least one of the multiple speakers is adjusted to the target state, so that the user can perceive the corresponding adjustment effect.
  • the user can be informed of the abnormal situation of the speaker and the processing method of the audio playback device for the abnormal situation. Then, the user can further adjust and optimize the speaker operating state adjustment method executed by the audio playback device according to his own needs, thereby further reducing the abnormal playback of the speaker and improving the user experience.
  • an audio playback device such as an electronic device
  • an audio playback device includes hardware and/or software modules corresponding to executing each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.
  • FIG12 is a schematic block diagram of a device provided by an embodiment of the present application.
  • the device 1200 may include: a processor 1201 and a transceiver/transceiver pin 1202 , and optionally, a memory 1203 .
  • bus 1204 includes a data bus and a
  • bus 1204 also includes a power bus, a control bus, and a status signal bus.
  • bus 1204 the various buses are referred to as bus 1204 in the figure.
  • the memory 1203 may be used for instructions in the aforementioned method embodiment.
  • the processor 1201 may be used to execute instructions in the memory 1203, and control the receiving pin to receive a signal, and control the sending pin to send a signal.
  • the apparatus 1200 may be the electronic device or a chip of the electronic device in the above method embodiment.
  • This embodiment further provides a computer storage medium, in which computer instructions are stored.
  • the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the speaker control method in the above-mentioned embodiment.
  • This embodiment further provides a computer program product.
  • the computer program product When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the speaker control method in the above-mentioned embodiment.
  • an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory so that the chip executes the speaker control method in the above-mentioned method embodiments.
  • the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
  • Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
  • the steps of the method or algorithm described in conjunction with the disclosed content of the embodiments of the present application can be implemented in hardware or by executing software instructions by a processor.
  • the software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (Random Access Memory, RAM), flash memory, read-only memory (Read Only Memory, ROM), erasable programmable read-only memory (Erasable Programmable ROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), registers, hard disks, mobile hard disks, read-only compact disks (CD-ROMs) or any other form of storage medium known in the art.
  • RAM Random Access Memory
  • ROM read-only memory
  • ROM erasable programmable read-only memory
  • EPROM erasable programmable read-only memory
  • Electrically erasable programmable read-only memory Electrically EPROM, EEPROM
  • registers hard disks, mobile hard disks, read-only
  • An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium.
  • the storage medium can also be a component of the processor.
  • the processor and the storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuit, ASIC).
  • ASIC Application Specific Integrated Circuit
  • the ASIC can be located in an electronic device.
  • the processor and the storage medium can also exist in an electronic device as discrete components.
  • Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another.
  • the storage medium can be any available medium that a general or special-purpose computer can access.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

本申请实施例提供了一种扬声器控制方法及及音频播放装置,涉及扬声器领域,该方法应用于配置多个扬声器的音频播放装置,指示多个对称布局、且数量大于或者等于3的扬声器播放音频信号;检测每个扬声器对音频信号的运行状态,若检测结果为播放异常,确定播放异常的异常原因和扬声器标识;根据播放异常的异常原因和扬声器标识,调整音频播放装置中多个扬声器中至少一个的运行状态至目标状态。本申请实施例可以通过调整扬声器的运行状态,将存在播放异常扬声器的多个扬声器形成的声场重新构建为具有立体声效果的声场,从而解决扬声器播放异常导致的声场效果异常。

Description

扬声器控制方法及设备
本申请要求于2022年09月30日提交中国国家知识产权局、申请号为202211213394.X、申请名称为“扬声器控制方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及扬声器领域,尤其涉及一种扬声器控制方法及设备。
背景技术
立体声指具有立体感的声音,立体感是指用户除了感受到声音的响度、音调和音色以外,还能感受到声音的方位和层次。
相关技术中,通常为音频播放装置配置多个扬声器,以保证经多个扬声器播放的音频具有立体感,从而实现立体声、全景声的声场效果,以提升用户音频体验。
但是,多个扬声器的场景中,若某个或者某几个扬声器故障,会导致声场效果异常,用户体验变差。
发明内容
为了解决上述技术问题,本申请提供一种扬声器控制方法及设备。在该方法中,对存在播放异常扬声器的多个扬声器形成的声场,通过调整扬声器的运行状态,将该声场重新构建为具有立体声效果的声场,从而解决扬声器播放异常导致的声场效果异常。
第一方面,本申请实施例提供一种扬声器控制方法,应用于配置多个扬声器的音频播放装置,该方法包括:控制多个扬声器播放音频信号;其中,多个扬声器对称布局、且数量大于或者等于3;检测每个扬声器对音频信号的运行状态,得到检测结果;若检测结果为播放异常,确定播放异常的异常原因和扬声器标识;根据播放异常的异常原因和扬声器标识,调整多个扬声器中至少一个的运行状态至目标状态;其中,目标状态用于构建具有立体声或环绕声效果的声场。
示例性的,图1是示例性示出的应用场景的一种示意图。如图1所示,扬声器101和扬声器102在音频播放装置100上的位置左右对称,扬声器103和扬声器104在音频播放装置100上的位置左右对称。
本申请实施例,对配置多个扬声器、且多个扬声器对称布局的音频播放装置,若存在播放异常的扬声器,音频播放装置可以根据扬声器播放异常的异常原因和扬声器标识,调整该音频播放装置的扬声器的运行状态至目标状态,进而将存在播放异常扬声器的多个扬声器形成的声场,重新构建为具有立体声效果的声场,从而解决扬声器播放异常导致的立体声效果异常。
根据第一方面,检测每个扬声器对音频信号的运行状态,得到检测结果,包括:检测每个扬声器对音频信号的运行状态,得到指示每个扬声器运行状态的当前状态信息; 确定当前状态信息与预先存储的标准状态信息的差异;其中,标准状态信息用于指示音频播放装置的扬声器播放无异常时的运行状态;若差异大于或者等于差异阈值,确定检测结果为播放异常;若差异小于差异阈值,确定检测结果为播放无异常。
本申请实施例,扬声器播放音频信号时的无异常运行状态可以预先确定,进而音频播放装置可以预先存储用于指示每个扬声器无异常的运行状态的标准状态信息。这样,音频播放装置通过每个扬声器播放音频信号时,可以直接根据预先存储的标准状态信息确定该扬声器播放是否异常,更加便捷、准确。
根据第一方面,或者以上第一方面的任意一种实现方式,当前状态信息,包括如下信息中的至少之一:扬声器的当前输入功率、扬声器的当前理论振幅和扬声器的当前振动测量参数;其中,扬声器的当前输入功率包括控制扬声器的功率放大器对扬声器当前输入的功率;扬声器的当前理论振幅包括功率放大器根据当前输入至扬声器的电信号确定的振幅;扬声器的当前振动测量参数包括以下至少之一:测量每级功率对应的扬声器的振动频率和振动幅度,得到的振动频率测量值和振动幅度测量值。
本申请实施例,当前状态信息包括如下信息中的至少之一:扬声器的当前输入功率、扬声器的当前理论振幅和扬声器的当前振动测量参数,可以反映扬声器更加真实的运行状态,从而提高扬声器运行状态的检测准确度,提高后续扬声器运行状态调整的准确度,进一步减少扬声器播放异常引起的声场效果异常,提高用户体验。
根据第一方面,或者以上第一方面的任意一种实现方式,音频信号包括:扫频声音信号,单频声音信号,或者预先制定的声音信号。
本申请实施例,单频信号和扫频信号属于人耳可听范围,且被播放时扬声器的运行状态能够被检测,可以提高对扬声器播放异常的检测准确度,提高后续扬声器运行状态调整的准确度,进一步减少扬声器播放异常引起的声场效果异常,提高用户体验。预先制定的声音信号为用户制定的音频信号,例如用户播放的音乐等,播放该声音信号时用户存在音频体验需求,因此,基于该声音信号检测可以及时提高用户的音频体验。
根据第一方面,或者以上第一方面的任意一种实现方式,标准状态信息,包括如下信息中的至少之一:每个扬声器的功率配置表、每级功率对应的标准理论振幅,每级功率对应的扬声器振动测量参数;其中,功率配置表包括:每级音量对应的每个扬声器的标准输入功率;标准输入功率用于指示音频播放装置的扬声器播放无异常时,每级音量对应的每个扬声器的输入功率;每级功率对应的标准理论振幅包括:音频播放装置的扬声器播放无异常时,每级输入功率对应的每个扬声器的理论振幅;每级功率对应的扬声器振动测量参数包括:音频播放装置的扬声器播放无异常时,每级输入功率对应的每个扬声器的测量振幅。
本申请实施例,标准状态信息,包括如下信息中的至少之一:每个扬声器的功率配置表、每级功率对应的标准理论振幅,每级功率对应的扬声器振动测量参数,从而可以分别适用于当前状态信息包括扬声器的当前输入功率、扬声器的当前理论振幅和扬声器的当前振动测量参数中至少之一的场景,拓展了应用场景。
根据第一方面,或者以上第一方面的任意一种实现方式,异常原因,包括:可校准异常或者不可校准异常;其中,可校准异常包括通过调整播放异常的扬声器的运行状态 能够解决的异常,不可校准异常包括无法通过调整播放异常的扬声器的运行状态解决的异常。
本申请实施例,可以适用于可校准异常或者不可校准异常,从而能够应对多种原因的扬声器播放异常,进一步减少扬声器播放异常,提高用户体验。
根据第一方面,或者以上第一方面的任意一种实现方式,根据播放异常的异常原因和扬声器标识,调整多个扬声器中至少一个的运行状态至目标状态,包括:若异常原因为可校准异常,根据指示播放异常的扬声器运行状态的当前状态信息与标准状态信息的差异,确定目标状态对应的运行参数调整量;其中,标准状态信息用于指示播放异常的扬声器播放无异常时的运行状态;根据运行参数调整量和扬声器标识,调整多个扬声器中至少一个的运行参数。
本申请实施例,异常原因为可校准异常时,多个扬声器中至少一个可以包括播放异常的扬声器,这样,直接调整该异常扬声器的运行参数即可补充异常扬声器的声音效果以解决播放异常,从而构建具有立体声或环绕声效果的声场。
根据第一方面,或者以上第一方面的任意一种实现方式,根据播放异常的异常原因和扬声器标识,调整多个扬声器中至少一个的运行状态至目标状态,包括:若异常原因为不可校准异常,关闭与播放异常的扬声器位置对称的第一扬声器;根据播放异常的扬声器的标准运行参数和第一扬声器的标准运行参数,确定目标状态对应的运行参数调整量;根据运行参数调整量和扬声器标识,调整第二扬声器的运行参数;其中,第二扬声器为音频播放装置的全部扬声器中,除异常扬声器和第一扬声器以外的扬声器。
本申请实施例,异常原因为不可校准异常时,多个扬声器中至少一个可以包括音频播放装置的全部扬声器中,除播放异常的扬声器以外的扬声器,这样,调整音频播放装置中除该异常扬声器以外扬声器的运行参数,可以补充异常扬声器的声音效果以解决播放异常,从而构建具有立体声或环绕声效果的声场。
根据第一方面,或者以上第一方面的任意一种实现方式,根据播放异常的异常原因和扬声器标识,调整多个扬声器中至少一个的运行状态至目标状态,包括:检测播放异常的扬声器对应的目标功率放大器是否异常;音频播放装置还配置多个功率放大器,多个功率放大器与多个扬声器一一对应,分别用于控制对应的扬声器;若异常,建立目标功率放大器与同组功率放大器间的电流通路;其中,多个功率放大器中每两个功率放大器为一组;将播放异常的扬声器对应的功率放大器,从目标功率放大器调整为同组功率放大器;播放异常的扬声器的运行状态包括播放异常的扬声器对应的功率放大器。
示例性的,图7a是本申请实施例提供的一种扬声器控制装置的结构示意图。如图7a所示,功率放大器PA1和功率放大器PA3作为同组功率放大器,建立有连通和断开可控的连接。功率放大器PA2和和功率放大器PA4作为同组功率放大器,建立有连通和断开可控的连接。当同组功率放大器中有一个异常(如PA4)时,音频播放装置指示该连接连通,也就是建立同组功率放大器间的电流通路。这样,同组功率放大器中无异常的功率放大器(如PA3)可以控制两路扬声器的工作,以解决功率放大器异常引起的扬声器异常。
本申请实施例,通过检测功率放大器是否异常,进而对异常的功率放大器建立与同 组功率放大器间的电流通路,可以应对功率放大器异常引起的扬声器运行状态异常。这样,将播放异常的扬声器对应的功率放大器,从目标功率放大器调整为同组功率放大器,可以使扬声器运行状态无异常,也就达到了目标状态。
根据第一方面,或者以上第一方面的任意一种实现方式,根据播放异常的异常原因和扬声器标识,调整多个扬声器中至少一个的运行状态至目标状态之后,该方法还包括:输出是否个性化调整的询问信息;若接收到进行个性化调整的指示息,展示个性化调整界面;接收通过个性化调整界面输入的声音效果参数;根据声音效果参数调整多个扬声器中至少一个的运行状态。
本申请实施例,在可以调整扬声器运行状态的情况下,执行相应的调整方式也就是调整多个扬声器中至少一个的运行状态至目标状态,可以使用户感知到相应的调整效果。在此基础上,通过输出是否个性化调整的询问信息,可以引导用户可以根据自身需求对音频播放装置执行的扬声器运行状态调整方式进行进一步调整优化,从而进一步降低扬声器的播放异常,提高用户体验。
根据第一方面,或者以上第一方面的任意一种实现方式,询问信息,包括:提示用户是否个性化调整的信息,和以下信息中的至少之一:播放异常的扬声器的位置、扬声器标识、异常原因、和目标状态。
本申请实施例,询问信息中还包括以下信息中的至少之一:播放异常的扬声器的位置、扬声器标识、异常原因、和目标状态,这样,可以告知用户扬声器的异常情况,并告知用户音频播放装置对该异常情况的处理方式。
第二方面,本申请实施例提供了一种电子设备,包括:处理器和收发器;存储器,用于存储一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现第一方面或第一方面的任一种可能的实现方式中的方法。
第二方面以及第二方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第二方面以及第二方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。
第三方面,本申请实施例提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的指令。
第四方面,本申请实施例提供了一种计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的指令。
第五方面,本申请实施例提供了一种芯片,该芯片包括处理电路、收发管脚。其中,该收发管脚、和该处理电路通过内部连接通路互相通信,该处理电路执行第一方面或第一方面的任一种可能的实现方式中的方法,以控制接收管脚接收信号,以控制发送管脚发送信号。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些 附图获得其他的附图。
图1是示例性示出的应用场景的一种示意图;
图2是示例性示出的应用场景的一种示意图;
图3是示例性示出的应用场景的一种示意图;
图4是示例性示出的应用场景的一种示意图;
图5是本申请实施例提供的一种电子设备500的结构示意图;
图6是本申请实施例提供的一种电子设备500的软件架构示意图;
图7a是本申请实施例提供的一种扬声器控制装置的结构示意图;
图7b是本申请实施例提供的一种扬声器控制系统的结构示意图;
图8是本申请实施例提供的一种扬声器控制方法的流程图之一;
图9是本申请实施例提供的一种扬声器控制过程示意图之一;
图10是本申请实施例提供的一种扬声器控制过程示意图之一;
图11是本申请实施例提供的一种扬声器控制方法的流程图之一;
图12是本申请实施例提供的一种装置的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。
本申请实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一目标对象和第二目标对象等是用于区别不同的目标对象,而不是用于描述目标对象的特定顺序。
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。例如,多个处理单元是指两个或两个以上的处理单元;多个系统是指两个或两个以上的系统。
音频播放装置通常配置多个扬声器。在一种实施方式中,,以通过多个扬声器的对称布局实现立体声、全景声的效果。其中,全景声是指声场的空间感具有环绕效果,增加空间沉浸感的声音效果。示例性的,图1是示例性示出的应用场景的一种示意图。如图1所示,配置多个扬声器以实现立体声、全景声效果的音频播放装置100,可以包括4个扬声器:扬声器101、扬声器102、扬声器103和扬声器104。这4个扬声器左右对称布局,即扬声器101和扬声器102在音频播放装置100上的位置左右对称,扬声器103 和扬声器104在音频播放装置100上的位置左右对称。这样,多个扬声器同时工作可以带来更宽广的频响带宽,拓展声场覆盖区域,获得更大纵深和广度的声场,实现立体声、全景声的效果,从而用户的音频体验极大地提升。
可以理解的是,音频播放装置100具体可以是多种的。例如,计算机、平板,大屏、移动终端、蓝牙音响、影院音响系统和车载音响系统等等。
上述场景中,多个扬声器中的至少一个扬声器异常,例如响度异常、频率异常、无声等异常时,整个音频播放装置的声场受到负面影响甚至崩溃,声场不再平衡,导致立体声或环绕音效果因此航。这样,音频播放装置的音频功能衰退或丧失,用户体验变差。
因此,本申请实施例提供了一种扬声器控制方法,以解决上述问题。示例性地,应用本申请实施例提供的扬声器控制方法,对于配置有多个扬声器的音频播放装置(如音频播放装置100)的声场,若存在播放异常的扬声器,可以通过调整多个扬声器中至少一个的运行状态,将该声场重新构建为具有立体声效果的声场,从而解决扬声器播放异常导致的声场效果异常,保证用户的立体声、全景声体验。
本申请实施例提供的扬声器控制方法中除了应用于上述图1所示的音频播放装置100,还可以应用于图2至图4所示音频播放装置中的任一种。下面结合图2至图4进行具体说明。
示例性的,图2是示例性示出的应用场景的一种示意图。如图2所示,配置多个扬声器以实现立体声、全景声效果的音频播放装置200,可以包括8个扬声器:扬声器201、扬声器202、扬声器203、扬声器204、扬声器205、扬声器206、扬声器207和扬声器208。这8个扬声器环绕对称布局,即扬声器201和扬声器202在音频播放装置200上的位置左右对称,扬声器203和扬声器204在音频播放装置200上的位置左右对称,扬声器205和扬声器206在音频播放装置200上的位置上下对称,扬声器207和扬声器208在音频播放装置200上的位置上下对称。
示例性的,图3是示例性示出的应用场景的一种示意图。如图3所示,配置多个扬声器以实现立体声、全景声效果的音频播放装置300,可以包括4个扬声器:扬声器301、扬声器302、扬声器303和扬声器304。这4个扬声器上下对称布局,即扬声器301和扬声器302在音频播放装置300上的位置上下对称,扬声器303和扬声器304在音频播放装置300上的位置上下对称。
示例性的,图4是示例性示出的应用场景的一种示意图。如图4所示,配置多个扬声器以实现立体声、全景声效果的音频播放装置400,可以包括4个扬声器:扬声器401、扬声器402、扬声器403和扬声器404。这4个扬声器单边对称布局,即扬声器401和扬声器402在音频播放装置100上的位置左右对称,扬声器403和扬声器404在音频播放装置400上处于单一边对称。
在对本申请实施例的技术方案说明之前,首先结合附图对本申请实施例的音频播放装置进行说明。示例性的,以音频播放装置为电子设备为例,图5是本申请实施例提供的一种电子设备500的结构示意图。该电子设备例如可以是平板、计算机、手机等设备,本申请实施例对此不作限制。
应该理解的是,图5所示电子设备500仅是电子设备的一个范例,并且电子设备500 可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图5中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
电子设备500可以包括:处理器510,外部存储器接口520,内部存储器521,通用串行总线(universal serial bus,USB)接口530,充电管理模块540,电源管理模块541,电池542,天线1,天线2,移动通信模块550,无线通信模块560,音频模块570,扬声器570A,受话器570B,麦克风570C,耳机接口570D,传感器模块580,按键590,马达591,指示器592,摄像头593,显示屏594,以及用户标识模块(subscriber identification module,SIM)卡接口595等。其中传感器模块580可以包括压力传感器580A,陀螺仪传感器580B,气压传感器580C,磁传感器580D,加速度传感器580E,距离传感器580F,接近光传感器580G,指纹传感器580H,温度传感器580J,触摸传感器580K,环境光传感器580L,骨传导传感器580M等。
处理器510可以包括一个或多个处理单元,例如:处理器510可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备500的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器510中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器510中的存储器为高速缓冲存储器。该存储器可以保存处理器510刚用过或循环使用的指令或数据。如果处理器510需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器510的等待时间,因而提高了系统的效率。
在一些实施例中,处理器510可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器510可以包含多组I2C总线。处理器510可以通过不同的I2C总线接口分别耦合触摸传感器580K,充电器,闪光灯,摄像头593等。例如:处理器510可以通过I2C接口耦合触摸传感器580K,使处理器510与触摸传感器580K通过I2C总线接口通信,实现电子设备500的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器510可以包含多组I2S总线。处理器510可以通过I2S总线与音频模块570耦合,实现处理器510与音频模块570之 间的通信。在一些实施例中,音频模块570可以通过I2S接口向无线通信模块560传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块570与无线通信模块560可以通过PCM总线接口耦合。在一些实施例中,音频模块570也可以通过PCM接口向无线通信模块560传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器510与无线通信模块560。例如:处理器510通过UART接口与无线通信模块560中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块570可以通过UART接口向无线通信模块560传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器510与显示屏594,摄像头593等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器510和摄像头593通过CSI接口通信,实现电子设备500的拍摄功能。处理器510和显示屏594通过DSI接口通信,实现电子设备500的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器510与摄像头593,显示屏594,无线通信模块560,音频模块570,传感器模块580等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口530是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口530可以用于连接充电器为电子设备500充电,也可以用于电子设备500与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备500的结构限定。在本申请另一些实施例中,电子设备500也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块540用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块540可以通过USB接口530接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块540可以通过电子设备500的无线充电线圈接收无线充电输入。充电管理模块540为电池542充电的同时,还可以通过电源管理模块541为电子设备供电。
电源管理模块541用于连接电池542,充电管理模块540与处理器510。电源管理模块541接收电池542和/或充电管理模块540的输入,为处理器510,内部存储器521,外部存储器,显示屏594,摄像头593,和无线通信模块560等供电。电源管理模块541还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块541也可以设置于处理器510中。在另一些实施例中,电源管理模块541和充电管理模块540也可以设置于同一个器件中。
电子设备500的无线通信功能可以通过天线1,天线2,移动通信模块550,无线通信模块560,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备500中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块550可以提供应用在电子设备500上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块550可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块550可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块550还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块550的至少部分功能模块可以被设置于处理器510中。在一些实施例中,移动通信模块550的至少部分功能模块可以与处理器510的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器570A,受话器570B等)输出声音信号,或通过显示屏594显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器510,与移动通信模块550或其他功能模块设置在同一个器件中。
无线通信模块560可以提供应用在电子设备500上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块560可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块560经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器510。无线通信模块560还可以从处理器510接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备500的天线1和移动通信模块550耦合,天线2和无线通信模块560耦合,使得电子设备500可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite  system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备500通过GPU,显示屏594,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏594和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器510可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏594用于显示图像,视频等。显示屏594包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备500可以包括1个或N个显示屏594,N为大于1的正整数。
电子设备500可以通过ISP,摄像头593,视频编解码器,GPU,显示屏594以及应用处理器等实现拍摄功能。
ISP用于处理摄像头593反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头593中。
摄像头593用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备500可以包括1个或N个摄像头593,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备500在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备500可以支持一种或多种视频编解码器。这样,电子设备500可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备500的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口520可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备500的存储能力。外部存储卡通过外部存储器接口520与处理器510通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器521可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器510通过运行存储在内部存储器521的指令,从而执行电子设备500的各种功能应用以及数据处理。内部存储器521可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备500使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器521可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备500可以通过音频模块570,扬声器570A,受话器570B,麦克风570C,耳机接口570D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块570用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块570还可以用于对音频信号编码和解码。在一些实施例中,音频模块570可以设置于处理器510中,或将音频模块570的部分功能模块设置于处理器510中。
扬声器570A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备500可以通过扬声器570A收听音频例如音乐,或收听免提通话。本申请实施例中,扬声器570A的数量为大于或者等于4的偶数,在电子设备800上对称布局,例如图1至图4所示的对称布局。
受话器570B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备500接听电话或语音信息时,可以通过将受话器570B靠近人耳接听语音。
麦克风570C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风570C发声,将声音信号输入到麦克风570C。电子设备500可以设置至少一个麦克风570C。在另一些实施例中,电子设备500可以设置两个麦克风570C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备500还可以设置三个,四个或更多麦克风570C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口570D用于连接有线耳机。耳机接口570D可以是USB接口530,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器580A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器580A可以设置于显示屏594。压力传感器580A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器580A,电极之间的电容改变。电子设备500根据电容的变化确定压力的强度。当有触摸操作作用于显示屏594,电子设备500根据压力传感器580A检测所述触摸操作强度。电子设备500也可以根据压力传感器580A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一 压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器580B可以用于确定电子设备500的运动姿态。在一些实施例中,可以通过陀螺仪传感器580B确定电子设备500围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器580B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器580B检测电子设备500抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备500的抖动,实现防抖。陀螺仪传感器580B还可以用于导航,体感游戏场景。
气压传感器580C用于测量气压。在一些实施例中,电子设备500通过气压传感器580C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器580D包括霍尔传感器。电子设备500可以利用磁传感器580D检测翻盖皮套的开合。在一些实施例中,当电子设备500是翻盖机时,电子设备500可以根据磁传感器580D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器580E可检测电子设备500在各个方向上(一般为三轴)加速度的大小。当电子设备500静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器580F,用于测量距离。电子设备500可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备500可以利用距离传感器580F测距以实现快速对焦。
接近光传感器580G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备500通过发光二极管向外发射红外光。电子设备500使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备500附近有物体。当检测到不充分的反射光时,电子设备500可以确定电子设备500附近没有物体。电子设备500可以利用接近光传感器580G检测用户手持电子设备500贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器580G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器580L用于感知环境光亮度。电子设备500可以根据感知的环境光亮度自适应调节显示屏594亮度。环境光传感器580L也可用于拍照时自动调节白平衡。环境光传感器580L还可以与接近光传感器580G配合,检测电子设备500是否在口袋里,以防误触。
指纹传感器580H用于采集指纹。电子设备500可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器580J用于检测温度。在一些实施例中,电子设备500利用温度传感器580J检测的温度,执行温度处理策略。例如,当温度传感器580J上报的温度超过阈值,电子设备500执行降低位于温度传感器580J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备500对电池542加热,以避免低温导致电子设备500异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设 备500对电池542的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器580K,也称“触控面板”。触摸传感器580K可以设置于显示屏594,由触摸传感器580K与显示屏594组成触摸屏,也称“触控屏”。触摸传感器580K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏594提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器580K也可以设置于电子设备500的表面,与显示屏594所处的位置不同。
骨传导传感器580M可以获取振动信号。在一些实施例中,骨传导传感器580M可以获取人体声部振动骨块的振动信号。骨传导传感器580M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器580M也可以设置于耳机中,结合成骨传导耳机。音频模块570可以基于所述骨传导传感器580M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器580M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键590包括开机键,音量键等。按键590可以是机械按键。也可以是触摸式按键。电子设备500可以接收按键输入,产生与电子设备500的用户设置以及功能控制有关的键信号输入。
马达591可以产生振动提示。马达591可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏594不同区域的触摸操作,马达591也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器592可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口595用于连接SIM卡。SIM卡可以通过插入SIM卡接口595,或从SIM卡接口595拔出,实现和电子设备500的接触和分离。电子设备500可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口595可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口595可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口595也可以兼容不同类型的SIM卡。SIM卡接口595也可以兼容外部存储卡。电子设备500通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备500采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备500中,不能和电子设备500分离。
电子设备500的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备500的软件结构。
图6是本申请实施例提供的一种电子设备500的软件结构框图。
电子设备500的分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分 别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图6所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图6所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备500的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
可以理解的是,图6示出的应用程序框架层、系统库与运行时内核层包含的部件,并不构成对电子设备500的具体限定。在本申请另一些实施例中,电子设备500可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。
在一种示例中,图7a是本申请实施例提供的一种扬声器控制装置的结构示意图。如图7a所示,音频播放装置700可以包括:处理器701、总线702、存储器703、扬声器704、扬声器705、扬声器706、扬声器707、功率放大器P1、功率放大器P2、功率放大器P3和功率放大器P4。其中,处理器701通过总线702与存储器703通信连接,功率放大器P1与扬声器704连接,功率放大器P2与扬声器706连接,功率放大器P3与扬声器705连接,功率放大器P4与扬声器707连接。功率放大器(例如功率放大器P2)用于控制扬声器对音频信号的放大功率。在一种可选的实施方式中,每两个功率放大器也就是一对功率放大器之间可以建立连通和断开可控的连接。通常情况下,该连接为断开,一对功率放大器中的一个异常时,该连接可以连通,由无异常的功率放大器控制两个扬声器,以应对功率放大器异常导致的扬声器异常。示例性的,该连接可以为通过电平信号控制的开关电路。举例而言,图7a所示,功率放大器P1异常,音频播放装置控制功率放大器P1和功率放大器P2的连接为连通状态,音频播放装置可以通过功率放大器P2可以控制扬声器704和扬声器706对音频信号的放大功率。
可以理解的是,图7a所示可以为上述图5电子设备结构的另一种示意。图7a所示的音频播放装置700仅是音频播放装置的一个范例,并且音频播放装置700可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图7a中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
图7b是本申请实施例提供的一种扬声器控制系统的结构示意图。如图7b所示,扬声器控制系统800可以包括通信连接的扬声装置801和控制装置802。该通信连接可以是有线连接或者无线连接,本申请实施例对此不作限制。扬声装置801包括扬声器8011、扬声器8012、扬声器8013、扬声器8014、功率放大器P1、功率放大器P2、功率放大器P3和功率放大器P4。控制装置802包括处理器8021、总线8022和存储器8023。图7b中的扬声器、功率放大器、处理器和总线与图7a中的类似,对于相同部分此处不再赘述。区别在于图7b中的扬声装置801与控制装置802相互独立,例如,控制装置802可以为手机,扬声装置801可以为与手机蓝牙连接的立体声音响。
可以理解的是,图7b所示的扬声器控制系统800仅是扬声器控制系统的一个范例,并且扬声器控制系统800可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图7b中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
下面结合图8至图11对本申请实施例提供的扬声器控制方法进行具体说明。
示例性的,图8是本申请实施例提供的一种扬声器控制方法的流程图之一。如图8所示,本申请实施例提供的扬声器控制方法,应用于配置多个扬声器的音频播放装置,可以包括如下步骤:
S801,通过多个扬声器播放音频信号;其中,多个扬声器对称布局、且数量大于或者等于3。
音频播放装置例如可以是平板、车载音响系统等,可以通过该音频播放装置的多个扬声器播放音频信号,以检测多个扬声器是否异常。在一种可选的示例中,音频播放装置通过多个扬声器播放的音频信号,可以是指定音频信号也就是指定音源,例如可以是谐振频率(F0)±100Hz的单频信号,或频率变化范围属于[20Hz,20KHz]的扫频信号。谐振频率(F0)指扬声器从低音域开始振动时,振动板最强烈振动所在点对应的频率。单频信号是由简谐振动产生的频率固定、并按正弦变化的声波信号。扫频信号也就是正弦扫频信号是指在一定的频段范围内频率连续变化的信号。在一种可选的示例中,音频播放装置通过多个扬声器播放的音频信号,可以是预先制定的声音信号,例如,用户(如手机用户)制定的音频信号(通过手机的扬声器外放的音乐)。
本申请实施例中,扬声器播放音频信号时的无异常运行状态可以预先确定,进而音频播放装置可以预先存储用于指示每个扬声器无异常的运行状态的标准状态信息。这样,音频播放装置通过每个扬声器播放音频信号时,可以直接根据预先存储的标准状态信息确定该扬声器播放是否异常,更加便捷、准确。
另外,上述可选示例中的单频信号和扫频信号属于人耳可听范围,且被播放时扬声器的运行状态能够被检测,可以提高对扬声器播放异常的检测准确度,提高后续扬声器运行状态调整的准确度,进一步减少扬声器播放异常引起的声场效果异常,提高用户体验。预先制定的声音信号为用户制定的音频信号,例如用户播放的音乐等,播放该声音信号时用户存在音频体验需求,因此,基于该声音信号检测可以及时提高用户的音频体验。
在一种可选的实施方式中,音频播放装置可以在启动时执行上述步骤S801。或者,音频播放装置可以在启动时,展示询问是否开启校准的用户交互界面,当通过该用户交互界面接收到开启校准的指示信息时,执行上述步骤S801。或者,音频播放装置可以在运行过程中周期性展示询问是否开启校准的用户交互界面,当通过该用户交互界面接收到开启校准的指示信息时,执行上述步骤S801。本申请实施例对上述步骤S801的执行条件不作限制。
另外,多个扬声器在音频播放装置上的布局可以参见本申请图1至图4的描述,此处不再赘述。音频播放装置可以参见本申请图5至图7b的描述,此处不再赘述。
S802,检测每个扬声器对音频信号的运行状态,得到检测结果。
音频播放装置通过多个扬声器播放音频信号后,可以检测每个扬声器对音频信号的运行状态,得到检测结果。其中,每个扬声器对音频信号的运行状态的检测结果可以包括:播放异常或者播放无异常。示例性的,检测每个扬声器对音频信号的运行状态,得到检测结果,可以包括:检测每个扬声器对音频信号的运行状态,得到指示每个扬声器 运行状态的当前状态信息;确定当前状态信息与标准状态信息的差异;若差异大于或者等于差异阈值,确定检测结果为播放异常;若差异小于差异阈值,确定检测结果为播放无异常。标准状态信息用于指示音频播放装置的扬声器播放无异常时的运行状态。
下面对音频播放装置获取当前状态信息和检测结果的方式进行具体说明。
在一种可选的实施方式中,在音频播放装置配置有麦克风(MIC)的情况下,音频播放装置可以利用MIC采集音频播放装置播放的音频信号,得到第一声场音频信号;确定第一声场音频信号与预先存储的第二声场音频信号间的差异;若差异大于预设信号差异,确定检测结果为播放异常。在一种可选的实施方式中,音频播放装置利用MIC采集音频播放装置播放的音频信号,得到第一声场音频信号,可以包括:音频播放装置控制每个扬声器独立播放音频信号,利用MIC分别采集每个扬声器播放的音频信号,得到该扬声器的第一声场音频信号。相应地,针对每个扬声器,确定该扬声器的第一声场音频信号与该扬声器的预先存储的第二声场音频信号间的差异;若差异大于预设信号差异,确定该扬声器的检测结果为播放异常。
示例性的,上述麦克风的数量可以为多个,配置位置可以是音频播放装置的每个扬声器附近。或者,麦克风的数量可以为一个,配置位置可以是音频播放装置的全部扬声器的中间位置,例如,本申请图4所示音频播放装置的扬声器401和扬声器402中间,且与扬声器403和扬声器404间的距离相同。第一声场音频信号相当于当前状态信息。第二声场音频信号相当于标准状态信息,是音频播放装置的扬声器的播放无异常时,上述麦克风采集的音频播放装置播放的音频信号。第二声场音频信号可以由音频播放装置的厂商预先采集并存储在音频播放装置中。第一声场音频信号与预先存储的第二声场音频信号间的差异,可以是信号的波形、频率等信号特征的差异,和/或可以是响度的差异。
在一种可选的示例中,如本申请图7a和图7b所示,音频播放装置的每个扬声器可以配置一个功率放大器。音频播放装置可以从每个功率放大器中获取该功率放大器对应的扬声器的当前输入功率;获取每个扬声器的当前音量级别;根据每个扬声器的当前音量级别,从每个扬声器的预存的功率配置表中查找当前音量级别对应的标准输入功率;确定每个扬声器的当前音量级别与所查找的标准输入功率的差异;若差异大于或者等于预设功率差异阈值,确定检测结果为播放异常,若差异小于预设功率差异,确定检测结果为播放无异常。预存的功率配置表可以包括:每级音量对应的每个扬声器的标准输入功率。标准输入功率用于指示音频播放装置的扬声器播放无异常时每级音量对应的每个扬声器的输入功率。举例而言,音频播放装置为一级音量,此时扬声器的标准输入功率为第一功率;音频播放装置为二级音量,此时扬声器的标准输入功率为第二功率。
在一种可选的示例中,如本申请图7a和图7b所示,音频播放装置的每个扬声器可以配置一个功率放大器。音频播放装置可以从每个功率放大器中获取该功率放大器对应的扬声器的当前理论振幅和当前输入功率;查找每个扬声器的预存的标准理论振幅与每级功率的对应关系,得到当前输入功率对应的标准理论振幅;确定每个扬声器的当前音量级别与所查找的标准理论振幅的差异;若差异大于或者等于预设理论振幅阈值,确定检测结果为播放异常,若差异小于预设理论振幅差异,确定检测结果为播放无异常。标准理论振幅可以包括:音频播放装置的扬声器播放无异常时每级输入功率对应的每个扬 声器的理论振幅。每级功率对应的每个扬声器的理论振幅可以包括:音频播放装置的功率放大器(例如可以是智能功率放大器SmartPA)根据每级功率对应的该扬声器的电信号计算得到的该扬声器的振幅。
在一种可选的示例中,音频播放装置的每个扬声器可以配置振动测量传感器(如声电式传感器、小型加速度传感器等),也就是说,音电传感器、小型加速度传感器与音频播放装置的扬声器一一对应,安装在相应扬声器附近,例如与相应扬声器的距离小于或者等于距离阈值。相应地,音频播放装置可以通过每个振动测量传感器,测量该振动测量传感器对应扬声器的当前振动测量参数。其中,每级功率对应的扬声器振动测量参数可以包括以下至少之一:测量每级功率对应的扬声器的振动频率和振动幅度,得到的振动频率测量值和振动幅度测量值。音频播放装置可以从每个功率放大器中获取该功率放大器对应的扬声器的当前输入功率;查找每个扬声器的预存的标准测量振幅与每级功率的对应关系,得到当前输入功率对应的标准测量振幅;确定每个扬声器的当前音量级别与所查找的标准测量振幅的差异;若差异大于或者等于预设测量振幅阈值,确定检测结果为播放异常,若差异小于预设测量振幅差异,确定检测结果为播放无异常。标准测量振幅可以包括:音频播放装置的扬声器播放无异常时每级输入功率对应的每个扬声器的测量振幅。
音频播放装置根据当前输入功率确定的播放异常可以指示扬声器响度异常,例如响度大于标准响度也就是响度偏大,响度小于标准响度也就是响度偏小。音频播放装置根据当前理论振幅和当前振动测量参数确定的播放异常可以指示扬声器频率异常,例如频率大于标准频率也就是频率偏高,频率小于标准响度也就是频率偏低。当前输入功率、当前理论振幅和当前振动测量参数中的任一种为0时确定的播放异常,可以指示扬声器损坏异常,例如,扬声器无声,线路断开等异常。
可以理解的是,音频播放装置可以检测上述扬声器的当前输入功率、当前振动理论参数和当前振动测量参数中的至少之一,作为当前状态信息,具体可以根据应用需求设置。相应地,音频播放装置的结构适用于所测量的参数,对相应结构的描述可以参见上述关于获取当前状态信息的实施例的描述,此处不再赘述。
示例性的,音频播放装置中可以预先存储标准状态信息例如可以是初始参数,也就是说,音频播放装置中用于实现本申请实施例提供的扬声器控制方法的内置算法可以预先植入指示扬声器无异常的运行状态的初始参数。其中,初始参数可以包括如下参数中的至少之一:每个位置的扬声器的功率配置表、每级功率对应的扬声器理论振幅,每级功率对应的扬声器振动测量参数。
另外,音频播放装置可以同时检测每个扬声器对音频信号的运行状态。或者,音频播放装置可以回环检测也就是逐一检测每个扬声器对音频信号的运行状态,例如,参见图4,音频播放装置可以依次检测扬声器401、扬声器403、扬声器404和扬声器402的运行状态,或者依次检测扬声器401、扬声器402、扬声器404和扬声器403的运行状态,即以“环路”的形式检测。本申请实施例对此不作限制。
本申请实施例中,指示扬声器无异常的运行状态的初始参数,可以包括每级功率对应的扬声器振动测量参数,与仅包括理论振幅或者功率相比,可以反映扬声器更加真实 的运行状态,从而提高扬声器运行状态的检测准确度,提高后续扬声器运行状态调整的准确度,进一步减少扬声器播放异常引起的声场效果异常,提高用户体验。
S803,若检测结果为播放异常,确定播放异常的异常原因和扬声器标识。
音频播放装置检测每个扬声器对音频信号的运行状态,得到检测结果后,若检测结果为播放异常,可以确定播放异常的异常原因和扬声器标识。这样,后续音频播放装置可以通过步骤S804采用与播放异常的异常原因和扬声器标识适配的调整方式,构建由播放异常的扬声器和播放无异常的扬声器形成的新声场,且该新声场具有立体声或环绕声的声场效果。
下面结合图9和图10,以示例性说明的方式对S803进行具体描述,以便于理解。
示例性的,图9是本申请实施例提供的一种扬声器控制过程示意图之一,该过程以本申请实施例提供的扬声器控制方法应用于图7a所示的音频播放装置700为例,包括如下步骤:
S901,检测是否调整扬声器的运行状态;若调整,执行S902;若不调整,执行S905。
上述S901与本申请图8实施例的S801至S802为相似步骤,对于相同部分此处不再赘述,详见本申请图8实施例的已有描述。区别在于S901中:
音频播放装置获得的检测结果,具体可以是异常原因,异常原因不为空则指示检测结果为播放异常,异常原因为空则指示检测结果为播放无异常。示例性的,异常原因可以包括可校准异常或者不可校准异常。其中,可校准异常指通过调整播放异常的扬声器的运行状态能够解决的异常,例如,扬声器的响度异常、频响异常等异常。不可校准异常指无法通过调整播放异常的扬声器的运行状态解决的异常,例如,扬声器的损坏异常。对于扬声器的响度异常、频响异常和损坏异常,可以参见上述对S802的说明中的已有描述。
若异常原因为可校准异常,则播放异常的扬声器数量无论为多少,均可调整扬声器的运行状态。举例而言,针对配置N(N≥4)个扬声器的音频播放装置,在M(M≤N)个扬声器异常、且为可校准异常,可以执行S902。参见图9,扬声器706的异常为响度偏小,扬声器705的异常为响度偏大。
S902,确定播放异常的扬声器标识“705”和“706”。
功率放大器P3和功率放大器P2可以反馈检测结果至音频播放装置的芯片端(codec)例如可以是图9中的处理器701。这样,音频播放装置可以从功率放大器P3和功率放大器P2反馈的检测结果中提取播放异常的扬声器标识“705”和“706”,以用于后续进行多个扬声器中至少一个的确定以及运行状态调整。
示例性的,图10是本申请实施例提供的一种扬声器控制过程示意图之一,该过程以本申请实施例提供的扬声器控制方法应用于图7a所示的音频播放装置为例,包括如下步骤:
S1001,检测是否调整扬声器的运行状态;若调整,执行S1002;若不调整,执行S1005。
上述S1001与本申请图9实施例的S901为相似步骤,对于相同部分此处不再赘述,详见本申请图9实施例的已有描述。区别在于S1001中:若异常原因为不可校准异常,且播放异常的扬声器数量小于或者等于音频播放装置的扬声器总数的一半时,才可调整 扬声器的运行状态,也就是才能构建新声场。举例而言,针对配置N(N≥4)个扬声器的音频播放装置,若K(K<N/2)个扬声器异常、且为不可校准异常,可以执行S1002。若异常原因为不可校准异常,且播放异常的扬声器数量大于音频播放装置的扬声器总数的一半时,执行S1005,输出扬声器报修提醒。如图10所示,N/2=4/2=2,则播放异常的扬声器数量大于2时,输出扬声器报修提醒。
示例性的,扬声器报修提醒可以是语音提醒、文字提醒和图像提醒中的至少之一。扬声器报修提醒可以指示播放异常的扬声器数量、位置、标识、异常原因等信息。举例而言,扬声器报修提醒可以如本申请图10所示展示扬声器707的异常原因:无声。
另外,音频播放装置通过多个扬声器播放的音频信号为用户选择的音频信号,例如音频播放装置对音乐、电影、有声读物等音频信号通过扬声器外放时,扬声器播放不同内容的音频信号时的当前状态信息通常存在较大差异。此时,音频播放装置可以按照预设周期执行S802,以获得更加准确的运行状态,得到更加准确的检测结果。
S1002,确定播放异常的扬声器标识“707”。
上述S1002与本申请图9实施例的S902为相似步骤,对于相同部分此处不再赘述,详见本申请图9实施例的已有描述。区别在于S1002中播放异常的扬声器标识为“707”。
S804,根据播放异常的异常原因和扬声器标识,调整多个扬声器中至少一个的运行状态至目标状态;其中,目标状态用于构建具有立体声或环绕声效果的声场。
音频播放装置确定播放异常的异常原因和扬声器标识后,可以根据播放异常的异常原因和扬声器标识,调整音频播放装置中多个扬声器中至少一个的运行状态至目标状态。其中,多个扬声器中至少一个为音频播放装置的全部扬声器中,用于补充异常扬声器的声音效果的扬声器。
在一种可选的实施方式中,异常原因为可校准异常时,多个扬声器中至少一个可以包括播放异常的扬声器。也就是说,对于可校准异常的异常扬声器,直接调整该异常扬声器的运行参数即可补充异常扬声器的声音效果以解决播放异常,从而构建具有立体声或环绕声效果的声场。相应地,音频播放装置根据播放异常的异常原因和扬声器标识,调整音频播放装置中多个扬声器中至少一个的运行状态至目标状态,可以包括:音频播放装置根据异常扬声器的当前状态信息与标准状态信息的差异,确定目标状态对应的运行参数调整量,根据运行参数调整量和扬声器标识调整多个扬声器中至少一个的运行参数。
示例性的,运行参数调整量例如可以是功率补偿值、增益补偿值和EQ(Equalize,均衡效果器,用于调节音效)补偿值等参数。音频播放装置根据功率补偿值、增益补偿值和EQ补偿值,可以对响度异常偏大的扬声器进行降功率,降增益,EQ调整的处理;对响度异响偏小的扬声器进行升功率,升增益,EQ调整的处理。这样,可以及时完成异常处理,使音频播放装置恢复到初始的播放水平。举例而言,如图9所示,扬声器控制方法的处理过程还可以包括:S903,处理器701指示扬声器705下调增益,扬声器706上调增益。
在一种可选的实施方式中,异常原因为不可校准异常时,多个扬声器中至少一个可以包括音频播放装置的全部扬声器中,除播放异常的扬声器以外的扬声器。也就是说, 对于不可校准异常的异常扬声器,可以调整音频播放装置中除该异常扬声器以外扬声器的运行参数,来补充异常扬声器的声音效果以解决播放异常,从而构建具有立体声或环绕声效果的声场。相应地,音频播放装置根据播放异常的异常原因和扬声器标识,调整音频播放装置中多个扬声器中至少一个的运行状态至目标状态,可以包括:音频播放装置关闭与异常扬声器位置对称的第一扬声器,根据异常扬声器的标准运行参数和第一扬声器的标准运行参数,确定目标状态对应的运行参数调整量,根据运行参数调整量和扬声器标识调整第二扬声器的运行参数;其中第二扬声器为音频播放装置的扬声器中,除异常扬声器和第一扬声器以外的扬声器。
示例性的,如图10所示,扬声器控制方法的处理过程还可以包括:S1003,处理器701指示扬声器706关闭,扬声器704和扬声器705上调增益。也就是说,扬声器707为播放异常的扬声器,扬声器706为第一扬声器,扬声器704和扬声器705为第二扬声器。处理器701向与扬声器707位置对称的扬声器706发出指令,关闭扬声器706的信号输入,同时处理器701控制其余两路扬声器也就是扬声器704和扬声器705的功率放大器根据运行参数调整量,加大增益,提升输入功率及进行EQ调整。
在一种可选的实施方式中,音频播放装置在检测到扬声器异常后,还可以检测该扬声器对应的功率放大器是否异常,若异常,则建立该功率放大器与同组功率放大器间的电流通路。其中,每两个间距最短的功率放大器可以作为一组功率放大器。或者,每两个位置对称的扬声器分别对应的功率放大器可以作为一组功率放大器。每两个功率放大器可以作为一组功率放大器,以降低控制和硬件成本。本申请实施例对此不作限制。
示例性的,音频播放装置可以检测播放异常的扬声器对应的功率放大器反馈的电信号是否异常,若异常,确定该功率放大器异常。功率放大器的异常例如可以是功率放大器停止工作。如图9或者图10所示,功率放大器PA1和功率放大器PA3作为同组功率放大器,建立有连通和断开可控的连接。功率放大器PA2和和功率放大器PA4作为同组功率放大器,建立有连通和断开可控的连接。当同组功率放大器中有一个异常(如PA4)时,音频播放装置指示该连接连通,也就是建立同组功率放大器间的电流通路。这样,同组功率放大器中无异常的功率放大器(如PA3)可以控制两路扬声器的工作,以解决功率放大器异常引起的扬声器异常。举例而言,本实施例相当于音频播放装置将异常扬声器(如扬声器707)的运行状态从由异常的功率放大器(如PA4)控制,调整为由无异常的功率放大器(如PA3)控制。
本申请实施例,通过检测功率放大器是否异常,进而对异常的功率放大器建立与同组功率放大器间的电流通路,可以应对功率放大器异常引起的扬声器运行状态异常。这样,将播放异常的扬声器对应的功率放大器,从目标功率放大器调整为同组功率放大器,可以使扬声器运行状态无异常,也就达到了目标状态。
示例性的,图11是本申请实施例提供的一种扬声器控制方法的流程图之一,该方法可以包括如下步骤:
S1101,启动声场检测;
S1102,确定扬声器信息;
S1103,根据扬声器信息,确定是否调整扬声器的运行状态;若调整,执行S1104, 若不调整,执行S1105;
S1104,执行与扬声器信息对应的运行状态调整方式;
S1105,输出扬声器报修提醒;
上述S1101至S1105与本申请图8至图10中作用相同的步骤类似,对于相同部分此处不再赘述,可以参见本申请图8至图10中的已有描述。区别在于本实施例中扬声器信息可以包括扬声器的当前状态信息和扬声器标识。
S1106,输出是否个性化调整的询问信息;
询问信息可以是音频、视频、文字等形式的信息,本申请对此不作限制。在一种可选的实施方式中,询问信息除了提示用户是否个性化调整外,还可以包括如下至少之一:播放异常的扬声器的标识、位置、异常原因等信息,以及音频播放装置所执行的运行状态调整方式(如图9或者图10执行的运行状态调整方式)。
S1107,是否接收到进行个性化调整的指示息;若接收到,执行S1108,;若未接收到,执行S1109;
进行个性化调整的指示信息可以是用户的语音指示、用户对询问信息上指示调整的控件的点击指令等等,本申请实施例对此不作限制。
S1108,展示个性化调整界面,个性化调整界面用于用户调整扬声器的声音效果参数;
个性化调整界面中可以展示运行状态调整方式包含的多个扬声器中至少一个的参数调整控件,该参数调整控件中可以预先设置用户可调整的参数数值和参数范围等组件,以引导用户进行合理的调整。
S1109,关闭询问信息,维持扬声器当前的运行状态。
音频播放装置在未接收到进行个性化调整的指示信息的情况下,表明用户认可音频播放装置执行的扬声器运行状态调整方式,因此,可以关闭询问信息,维持扬声器当前的运行状态。
本申请实施例,在可以调整扬声器运行状态的情况下,执行相应的调整方式也就是调整多个扬声器中至少一个的运行状态至目标状态,可以使用户感知到相应的调整效果。在此基础上,通过输出是否个性化调整的询问信息,可以告知用户扬声器的异常情况,并告知用户音频播放装置对该异常情况的处理方式,进而用户可以根据自身需求对音频播放装置执行的扬声器运行状态调整方式进行进一步调整优化,从而进一步降低扬声器的播放异常,提高用户体验。
可以理解的是,音频播放装置例如电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
一个示例中,图12是本申请实施例提供的一种装置的示意性框图。如图12所示,装置1200可包括:处理器1201和收发器/收发管脚1202,可选地,还包括存储器1203。
装置1200的各个组件通过总线1204耦合在一起,其中总线1204除包括数据总线之 外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图中将各种总线都称为总线1204。
可选地,存储器1203可以用于前述方法实施例中的指令。该处理器1201可用于执行存储器1203中的指令,并控制接收管脚接收信号,以及控制发送管脚发送信号。
装置1200可以是上述方法实施例中的电子设备或电子设备的芯片。
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的扬声器控制方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的扬声器控制方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的扬声器控制方法。
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
本申请各个实施例的任意内容,以及同一实施例的任意内容,均可以自由组合。对上述内容的任意组合均在本申请的范围之内。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。
结合本申请实施例公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于专用集成电路(Application Specific Integrated Circuit,ASIC)中。另外,该ASIC可以位于电子设备中。当然,处理器和存储介质也可以作为分立组件存在于电子设备中。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (15)

  1. 一种扬声器控制方法,其特征在于,应用于配置多个扬声器的音频播放装置,所述方法包括:
    控制所述多个扬声器播放音频信号;其中,所述多个扬声器对称布局、且数量大于或者等于3;
    检测每个扬声器对所述音频信号的运行状态,得到检测结果;
    若所述检测结果为播放异常,确定播放异常的异常原因和扬声器标识;
    根据所述播放异常的异常原因和所述扬声器标识,调整所述多个扬声器中至少一个的运行状态至目标状态;其中,所述目标状态用于构建具有立体声或环绕声效果的声场。
  2. 根据权利要求1所述的方法,其特征在于,所述检测每个扬声器对所述音频信号的运行状态,得到检测结果,包括:
    检测所述每个扬声器对所述音频信号的运行状态,得到指示所述每个扬声器运行状态的当前状态信息;
    确定所述当前状态信息与预先存储的标准状态信息的差异;其中,所述标准状态信息用于指示所述音频播放装置的扬声器播放无异常时的运行状态;
    若差异大于或者等于差异阈值,确定检测结果为播放异常;
    若差异小于差异阈值,确定检测结果为播放无异常。
  3. 根据权利要求2所述的方法,其特征在于,所述当前状态信息,包括如下信息中的至少之一:
    扬声器的当前输入功率、扬声器的当前理论振幅和扬声器的当前振动测量参数;
    其中,所述扬声器的当前输入功率包括控制扬声器的功率放大器对所述扬声器当前输入的功率;
    所述扬声器的当前理论振幅包括所述功率放大器根据当前输入至所述扬声器的电信号确定的振幅;
    所述扬声器的当前振动测量参数包括以下至少之一:测量每级功率对应的扬声器的振动频率和振动幅度,得到的振动频率测量值和振动幅度测量值。
  4. 根据权利要求3所述的方法,其特征在于,所述音频信号包括:扫频声音信号,单频声音信号,或者预先制定的声音信号。
  5. 根据权利要求2-4中任一项所述的方法,其特征在于,所述标准状态信息,包括如下信息中的至少之一:
    每个扬声器的功率配置表、每级功率对应的标准理论振幅,每级功率对应的扬声器振动测量参数;
    其中,所述功率配置表包括:每级音量对应的每个扬声器的标准输入功率;所述标准输入功率用于指示所述音频播放装置的扬声器播放无异常时,每级音量对应的每个扬声器的输入功率;
    所述每级功率对应的标准理论振幅包括:所述音频播放装置的扬声器播放无异常时,每级输入功率对应的每个扬声器的理论振幅;
    所述每级功率对应的扬声器振动测量参数包括:所述音频播放装置的扬声器播放无异常时,每级输入功率对应的每个扬声器的测量振幅。
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述异常原因,包括:可校准异常或者不可校准异常;
    其中,所述可校准异常包括通过调整播放异常的扬声器的运行状态能够解决的异常,所述不可校准异常包括无法通过调整播放异常的扬声器的运行状态解决的异常。
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述播放异常的异常原因和所述扬声器标识,调整所述多个扬声器中至少一个的运行状态至目标状态,包括:
    若异常原因为可校准异常,根据指示所述播放异常的扬声器运行状态的当前状态信息与标准状态信息的差异,确定所述目标状态对应的运行参数调整量;其中,所述标准状态信息用于指示所述播放异常的扬声器播放无异常时的运行状态;
    根据所述运行参数调整量和所述扬声器标识,调整所述多个扬声器中至少一个的运行参数。
  8. 根据权利要求6或7所述的方法,其特征在于,所述根据所述播放异常的异常原因和所述扬声器标识,调整所述多个扬声器中至少一个的运行状态至目标状态,包括:
    若异常原因为不可校准异常,关闭与所述播放异常的扬声器位置对称的第一扬声器;
    根据所述播放异常的扬声器的标准运行参数和所述第一扬声器的标准运行参数,确定目标状态对应的运行参数调整量;
    根据所述运行参数调整量和所述扬声器标识,调整第二扬声器的运行参数;其中,所述第二扬声器为所述音频播放装置的全部扬声器中,除所述异常扬声器和所述第一扬声器以外的扬声器。
  9. 根据权利要求1-8中任一项所述的方法,其特征在于,所述根据所述播放异常的异常原因和所述扬声器标识,调整所述多个扬声器中至少一个的运行状态至目标状态,包括:
    检测所述播放异常的扬声器对应的目标功率放大器是否异常;所述音频播放装置还配置多个功率放大器,所述多个功率放大器与所述多个扬声器一一对应,分别用于控制对应的扬声器;
    若异常,建立所述目标功率放大器与同组功率放大器间的电流通路;其中,所述多个功率放大器中每两个功率放大器为一组;
    将所述播放异常的扬声器对应的功率放大器,从所述目标功率放大器调整为所述同组功率放大器;所述播放异常的扬声器的运行状态包括所述播放异常的扬声器对应的功率放大器。
  10. 根据权利要求1-8中任一项所述的方法,其特征在于,所述根据所述播放异常的异常原因和所述扬声器标识,调整所述多个扬声器中至少一个的运行状态至目标状态之后,所述方法还包括:
    输出是否个性化调整的询问信息;
    若接收到进行个性化调整的指示息,展示个性化调整界面;
    接收通过所述个性化调整界面输入的声音效果参数;
    根据所述声音效果参数调整所述多个扬声器中至少一个的运行状态。
  11. 根据权利要求10所述的方法,其特征在于,所述询问信息,包括:提示用户是否个性化调整的信息,和以下信息中的至少之一:
    播放异常的扬声器的位置、所述扬声器标识、所述异常原因、和所述目标状态。
  12. 一种电子设备,其特征在于,包括:
    处理器和收发器;
    存储器,用于存储一个或多个程序;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1至11中任一项所述的方法。
  13. 一种计算机可读存储介质,其特征在于,包括计算机程序,其特征在于,当所述计算机程序在摄像头上运行时,使得所述摄像头执行如权利要求1至10中任意一项所述的方法。
  14. 一种芯片,其特征在于,包括一个或多个接口电路和一个或多个处理器;所述接口电路用于从电子设备的存储器接收信号,并向所述处理器发送所述信号,所述信号包括存储器中存储的计算机指令;当所述处理器执行所述计算机指令时,使得所述电子设备执行权利要求1至11中任意一项所述的方法。
  15. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序被电子设备执行时,使得所述电子设备执行权利要求1至11中任意一项所述的方法。
PCT/CN2023/116723 2022-09-30 2023-09-04 扬声器控制方法及设备 WO2024066933A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211213394.XA CN116744187B (zh) 2022-09-30 2022-09-30 扬声器控制方法及设备
CN202211213394.X 2022-09-30

Publications (2)

Publication Number Publication Date
WO2024066933A1 true WO2024066933A1 (zh) 2024-04-04
WO2024066933A9 WO2024066933A9 (zh) 2024-05-23

Family

ID=87906657

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/116723 WO2024066933A1 (zh) 2022-09-30 2023-09-04 扬声器控制方法及设备

Country Status (2)

Country Link
CN (1) CN116744187B (zh)
WO (1) WO2024066933A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002023761A (ja) * 2000-07-03 2002-01-25 Osaka Sairen Seisakusho:Kk 車両用電子サイレン装置
US20160192101A1 (en) * 2013-08-02 2016-06-30 Junjunsa Co., Ltd. Method and device for analyzing and processing abnormal load on premises broadcasting device
JP2017118247A (ja) * 2015-12-22 2017-06-29 東芝三菱電機産業システム株式会社 指向性音声案内装置
CN207531084U (zh) * 2017-09-27 2018-06-22 广州市迪士普音响科技有限公司 广播分区检测控制器
CN210168210U (zh) * 2019-07-30 2020-03-20 比亚迪股份有限公司 广播系统和应用于广播系统的扬声器系统
CN113168303A (zh) * 2018-12-21 2021-07-23 深圳市欢太科技有限公司 音频处理方法和装置、计算机可读存储介质、电子设备

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5949894A (en) * 1997-03-18 1999-09-07 Adaptive Audio Limited Adaptive audio systems and sound reproduction systems
JPH10319973A (ja) * 1997-05-16 1998-12-04 Shinko Electric Co Ltd 消音装置
EP1729541A1 (en) * 2004-03-24 2006-12-06 Pioneer Corporation Voice output device, voice signal output regulating method, and voice signal output regulation processing program or the like
US8194869B2 (en) * 2010-03-17 2012-06-05 Harman International Industries, Incorporated Audio power management system
EP2692155B1 (en) * 2012-03-22 2018-05-16 Dirac Research AB Audio precompensation controller design using a variable set of support loudspeakers
CN103747409B (zh) * 2013-12-31 2017-02-08 北京智谷睿拓技术服务有限公司 扬声装置、扬声方法及交互设备
US9398392B2 (en) * 2014-06-30 2016-07-19 Microsoft Technology Licensing, Llc Audio calibration and adjustment
WO2020107290A1 (zh) * 2018-11-28 2020-06-04 深圳市欢太科技有限公司 音频输出控制方法和装置、计算机可读存储介质、电子设备
CN114071315A (zh) * 2021-11-04 2022-02-18 深圳Tcl新技术有限公司 音频处理方法、装置、电子设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002023761A (ja) * 2000-07-03 2002-01-25 Osaka Sairen Seisakusho:Kk 車両用電子サイレン装置
US20160192101A1 (en) * 2013-08-02 2016-06-30 Junjunsa Co., Ltd. Method and device for analyzing and processing abnormal load on premises broadcasting device
JP2017118247A (ja) * 2015-12-22 2017-06-29 東芝三菱電機産業システム株式会社 指向性音声案内装置
CN207531084U (zh) * 2017-09-27 2018-06-22 广州市迪士普音响科技有限公司 广播分区检测控制器
CN113168303A (zh) * 2018-12-21 2021-07-23 深圳市欢太科技有限公司 音频处理方法和装置、计算机可读存储介质、电子设备
CN210168210U (zh) * 2019-07-30 2020-03-20 比亚迪股份有限公司 广播系统和应用于广播系统的扬声器系统

Also Published As

Publication number Publication date
CN116744187A (zh) 2023-09-12
WO2024066933A9 (zh) 2024-05-23
CN116744187B (zh) 2024-04-26

Similar Documents

Publication Publication Date Title
CN112399390B (zh) 一种蓝牙回连的方法及相关装置
US20230053104A1 (en) Method for implementing stereo output and terminal
US20220070247A1 (en) Wireless Short-Range Audio Sharing Method and Electronic Device
WO2020062159A1 (zh) 无线充电方法及电子设备
CN113169915A (zh) 无线音频系统、音频通讯方法及设备
US20220248160A1 (en) Sound processing method and apparatus
US11973895B2 (en) Call method and apparatus
CN114466107A (zh) 音效控制方法、装置、电子设备及计算机可读存储介质
US20230343318A1 (en) Noise reduction method and noise reduction apparatus
CN114827581A (zh) 同步时延测量方法、内容同步方法、终端设备及存储介质
CN114115770A (zh) 显示控制的方法及相关装置
CN114185503A (zh) 多屏交互的系统、方法、装置和介质
CN113141483B (zh) 基于视频通话的共享屏幕方法及移动设备
CN111065020B (zh) 音频数据处理的方法和装置
CN114338913B (zh) 故障诊断方法、电子设备及可读存储介质
WO2022089563A1 (zh) 一种声音增强方法、耳机控制方法、装置及耳机
US20230224398A1 (en) Audio output channel switching method and apparatus and electronic device
WO2024066933A1 (zh) 扬声器控制方法及设备
CN115695640A (zh) 一种防关机保护方法及电子设备
RU2789308C1 (ru) Беспроводной способ зарядки и электронное устройство
CN116489272B (zh) 语音消息播放方法及电子设备
WO2024027259A1 (zh) 信号处理方法及装置、设备控制方法及装置
CN114125805B (zh) 蓝牙回连方法及终端设备
CN114423024B (zh) Wlan驱动框架、wlan驱动框架的组件化方法及相关设备
RU2775835C1 (ru) Способ беспроводной зарядки и электронное устройство

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23870173

Country of ref document: EP

Kind code of ref document: A1