WO2021120318A1 - 音箱控制方法、音箱及计算机可读存储介质 - Google Patents

音箱控制方法、音箱及计算机可读存储介质 Download PDF

Info

Publication number
WO2021120318A1
WO2021120318A1 PCT/CN2019/129583 CN2019129583W WO2021120318A1 WO 2021120318 A1 WO2021120318 A1 WO 2021120318A1 CN 2019129583 W CN2019129583 W CN 2019129583W WO 2021120318 A1 WO2021120318 A1 WO 2021120318A1
Authority
WO
WIPO (PCT)
Prior art keywords
speaker
channel information
sound box
sensor
target
Prior art date
Application number
PCT/CN2019/129583
Other languages
English (en)
French (fr)
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 WO2021120318A1 publication Critical patent/WO2021120318A1/zh
Priority to US17/477,252 priority Critical patent/US20220007105A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/20Arrangements for obtaining desired frequency or directional characteristics
    • H04R1/32Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only
    • H04R1/40Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only by combining a number of identical transducers
    • H04R1/403Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only by combining a number of identical transducers loud-speakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • H04S7/302Electronic adaptation of stereophonic sound system to listener position or orientation
    • H04S7/303Tracking of listener position or orientation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/02Casings; Cabinets ; Supports therefor; Mountings therein
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/20Arrangements for obtaining desired frequency or directional characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/20Arrangements for obtaining desired frequency or directional characteristics
    • H04R1/32Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only
    • H04R1/323Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only for loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/04Circuit arrangements, e.g. for selective connection of amplifier inputs/outputs to loudspeakers, for loudspeaker detection, or for adaptation of settings to personal preferences or hearing impairments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • H04S7/301Automatic calibration of stereophonic sound system, e.g. with test microphone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/02Details casings, cabinets or mounting therein for transducers covered by H04R1/02 but not provided for in any of its subgroups
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/40Details of arrangements for obtaining desired directional characteristic by combining a number of identical transducers covered by H04R1/40 but not provided for in any of its subgroups
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/05Detection of connection of loudspeakers or headphones to amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/07Applications of wireless loudspeakers or wireless microphones

Definitions

  • This application relates to the technical field of audio playback, and in particular to a speaker control method, a speaker, and a computer-readable storage medium.
  • the present application provides a speaker control method, a speaker, and a computer-readable storage medium, which aim to solve the problem that the speaker cannot be adjusted flexibly according to the current position of the user when the user moves the position when the speaker is used in the prior art.
  • the present application proposes a speaker control method, which is applied to a speaker in a speaker system.
  • the speaker system includes at least two speakers, and the speaker includes at least two first sensors.
  • the first sensor is used to send and receive a preset signal
  • the sound box control method includes:
  • the speaker obtains the connection status with other speakers
  • the step of determining target channel information according to the first sensor data includes:
  • the two sensors are separately provided on the left and right sides of the sound box, and the step of determining the target sound channel information according to the first sensor corresponding to the sensor data includes:
  • the target sensor When the target sensor is located on the left side of the sound box, determining that the target channel information is right channel information;
  • the target sensor When the target sensor is located on the right side of the sound box, it is determined that the target channel information is left channel information.
  • the sound box further includes at least two second sensors, and the second sensors are disposed oppositely on both sides of the sound box and located between the first sensors, and the second sensors are used to detect the human body.
  • the step of determining target channel information according to the first sensor data includes:
  • the target channel information is determined according to the first sensor data and the second sensor data.
  • the step of determining the target sound channel information according to the first sensor data and the second sensor data includes:
  • the target sound channel is determined
  • the information is right channel information
  • the target sound channel is determined
  • the information is left channel information
  • the target sound channel is determined
  • the information is left channel information
  • the target sound channel is determined
  • the information is right channel information.
  • the sound box includes a contact and an interface
  • the method further includes:
  • the step of outputting audio according to the target channel information is performed.
  • the step of determining the channel information of the sound box according to the connection mode includes:
  • the speaker When the speaker is connected to the interface of another speaker through the contact, determining that the target channel information is right channel information;
  • the target channel information is left channel information.
  • the method further includes:
  • the present application proposes a sound box, the sound box comprising: a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and the computer program is executed by the processor.
  • the steps of the speaker control method as described in any one of the foregoing implementation manners are implemented during execution.
  • this application proposes a computer-readable storage medium with a speaker control program stored on the computer-readable storage medium, and when the speaker control program is executed by a processor, the speaker control program is executed as described in any one of the above embodiments. The steps of the speaker control method.
  • the speaker control method is applied to a speaker in a speaker system.
  • the speaker system includes at least two speakers, and the speaker includes at least two first sensors.
  • the first sensor is used to send and receive preset signals.
  • the first sensor is used to send and receive preset signals.
  • the first sensor data detected by the sensor is acquired, the target channel information is determined according to the first sensor data, and the audio is output according to the target channel information.
  • the target channel information is determined by the speaker, and the audio is output through the target channel information, thereby solving the problem that the speaker cannot flexibly perform according to the current position of the user when the user moves the position in the prior art. The problem of adjustment.
  • FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in a solution of an embodiment of the present application
  • FIG. 2 is a schematic flowchart of an embodiment of a speaker control method according to the present application.
  • FIG. 3 is a schematic flowchart of another embodiment of the speaker control method according to the present application.
  • FIG. 4 is a schematic flowchart of another embodiment of the speaker control method according to the present application.
  • FIG. 5 is a schematic flowchart of another embodiment of a speaker control method according to the present application.
  • FIG. 6 is a schematic flowchart of another embodiment of the speaker control method according to the present application.
  • FIG. 7 is a schematic structural diagram of another embodiment of the speaker control method according to the present application.
  • FIG. 8 is a schematic structural diagram of another embodiment of the speaker control method according to the present application.
  • FIG. 9 is a schematic structural diagram of another embodiment of a speaker control method according to the present application.
  • FIG. 10 is a schematic structural diagram of another embodiment of a speaker control method according to the present application.
  • FIG. 11 is a schematic flowchart of another embodiment of a speaker control method according to the present application.
  • FIG. 12 is a schematic flowchart of another embodiment of the speaker control method according to the present application.
  • the terms “connected”, “fixed”, etc. should be understood in a broad sense.
  • “fixed” can be a fixed connection, a detachable connection, or a whole; It can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be an internal communication between two components or an interaction relationship between two components, unless specifically defined otherwise.
  • “fixed” can be a fixed connection, a detachable connection, or a whole; It can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be an internal communication between two components or an interaction relationship between two components, unless specifically defined otherwise.
  • FIG. 1 is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the present application.
  • the devices in the embodiments of the present application may include control devices of devices such as computers, such as servers, mobile terminal devices, and centralized controllers.
  • the device may include: a controller 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002.
  • the communication bus 1002 is used to implement connection and communication between these components.
  • the user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory.
  • the memory 1005 may also be a storage device independent of the aforementioned controller 1001.
  • FIG. 1 does not constitute a limitation on the device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different component arrangements.
  • the device may include: a processor 1001, such as a CPU, a memory 1005, a communication bus 1002, and a network interface 1004.
  • the communication bus 1002 is used to realize the connection and communication between the components in the device.
  • the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory.
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
  • the memory 1005, which is a readable storage medium may include an operating system, a network communication module, and an abnormality detection program.
  • FIG. 1 does not constitute a limitation on the device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different component arrangements.
  • a memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and application programs.
  • the user interface 1003 is mainly used to display the content of the device structure, and the controller 1001 can be used to call application programs stored in the memory 1005 and perform the following operations:
  • the speaker obtains the connection status with other speakers
  • controller 1001 may call an application program stored in the memory 1005, and also perform the following operations:
  • controller 1001 may call an application program stored in the memory 1005, and also perform the following operations:
  • the target first sensor When the target first sensor is located on the left side of the sound box, determining that the target channel information is right channel information;
  • the target first sensor When the target first sensor is located on the right side of the sound box, it is determined that the target channel information is left channel information.
  • controller 1001 may call an application program stored in the memory 1005, and also perform the following operations:
  • the target channel information is determined according to the first sensor data and the second sensor data.
  • controller 1001 may call an application program stored in the memory 1005, and also perform the following operations:
  • the target channel information is right channel information
  • the target channel information is left channel information
  • the target channel information is left channel information
  • the target channel information is right channel information.
  • controller 1001 may call an application program stored in the memory 1005, and also perform the following operations:
  • the step of outputting audio according to the target channel information is performed.
  • controller 1001 may call an application program stored in the memory 1005, and also perform the following operations:
  • the speaker When the speaker is connected to the interface of another speaker through the contact, determining that the target channel information is right channel information;
  • the target channel information is left channel information.
  • controller 1001 may call an application program stored in the memory 1005, and also perform the following operations:
  • the application provides a method for controlling a speaker, a speaker, and a computer-readable storage medium.
  • the speaker control method is applied to a speaker in a speaker system, the speaker system includes at least two speakers, the speaker includes at least two first sensors, and the first sensors are relatively disposed on two of the speakers.
  • the first sensor is used to send and receive a preset signal, and the speaker control method includes:
  • the speaker obtains the connection status with other speakers
  • the connection mode of the sound box and other sound boxes may include contact connection and wireless communication connection.
  • the sound box is in contact with other sound boxes, the sound box is in contact with other sound boxes.
  • the speaker and other speakers are separated from each other, the speaker and other speakers are connected in wireless communication.
  • the sound box includes a connecting portion, and the sound box can be contact-connected with other sound boxes through the connecting portion.
  • the speaker and other speakers are connected through a wireless communication unit.
  • the wireless communication connection between the speaker and other speakers may be Bluetooth connection.
  • S200 Acquire first sensing data detected by the first sensor when the speaker is wirelessly connected to other speakers
  • S300 Determine target channel information according to the first sensor data
  • the sound box when the sound box is separated from other sound boxes, the sound box is wirelessly connected to other sound boxes in the sound box system, and the first sensor of the sound box can send and receive preset signals with other sound boxes , So as to determine the relative positions of different speakers in the speaker system.
  • the first sensor of the speaker After the first sensor of the speaker receives the first sensing data sent by other speakers, it can determine the position according to the first sensor data.
  • S400 Output audio according to the target channel information.
  • the target channel information includes left channel information and right channel information, and after the speaker determines the target channel information, the speaker outputs audio of a corresponding channel according to the target channel information.
  • the speaker control method is applied to a speaker in a speaker system.
  • the speaker system includes at least two speakers, and the speaker includes at least two first sensors.
  • the first sensor is used to send and receive preset signals.
  • the first sensor is used to send and receive preset signals.
  • the first sensor data detected by the sensor is acquired, the target channel information is determined according to the first sensor data, and the audio is output according to the target channel information.
  • the target channel information is determined by the speaker, so that audio is output through the target channel information, thereby solving the problem that the speaker cannot flexibly perform according to the current position of the user when the user moves the position in the prior art. The problem of adjustment.
  • step S300 includes:
  • the preset signal refers to the information received by the first sensor for detecting other speakers. Specifically, after the target first sensor corresponding to the first sensor data is determined, it may be determined according to the The target first sensor determines the positional relationship between the sound box and other sound boxes, so as to determine the target channel information of the sound box in the sound box system.
  • the first sensor is an infrared transceiver module, the infrared transceiver module is arranged on both sides of the speaker, and the other speakers in the speaker system are also equipped with infrared transceiver modules on both sides.
  • the infrared transceiver module of the speaker can communicate with the infrared transceiver modules of other speakers, and when the infrared transceiver module on the right side of the speaker receives preset signals from other speakers When, it means that the sound box is located on the left side of other sound boxes, so that the target channel information of the sound box is determined.
  • step S330 includes:
  • the target first sensor when the first sensor located on the left side of the sound box is the target first sensor, it means that the sound box is located on the right side of other sound boxes, so the target of the sound box is determined
  • the channel information is the right channel information; when the first sensor located on the right side of the speaker is the target first sensor, it means that the speaker is located on the left side of the other speakers, so it is determined that the speaker
  • the target channel information is left channel information.
  • the sensor of the speaker includes at least two first sensors and two second sensors.
  • the two first sensors are arranged opposite to each other, and the two sensors are arranged opposite to each other.
  • the second sensor is arranged oppositely, and the second sensor is arranged between the first sensors.
  • the first sensor is used for communicating with other speakers in the speaker system
  • the second sensor is used for communicating with other speakers in the speaker system.
  • the two first sensors are respectively arranged on the left and right sides of the sound box, and the two second sensors are respectively arranged on the front and back sides of the sound box, and the first The detection range of the sensor is 180 degrees, and the detection areas of the two first sensors do not overlap with each other, the detection range of the second sensor is 180 degrees, and the detection areas of the two second sensors do not overlap with each other.
  • the foregoing step S300 includes:
  • S340 Acquire second sensor data detected by the second sensor
  • S350 Determine the target channel information according to the first sensor data and the second sensor data.
  • the target channel information is determined according to the position with the user. Specifically, the user is detected by the second sensor.
  • the sound box determines the position with other sound boxes through the first sensor and the position with the user through the second sensor, the sound channel information of the sound box can be determined according to the first sensor and the second sensor .
  • step S350 includes:
  • the first sensor corresponding to the first sensor data is obtained on the left side of the speaker, it means that the speaker is on the right side of other speakers.
  • the second sensor When the second sensor corresponding to the sensory data is located on the front side of the sound box, it means that the user is located on the front side of the sound box, thereby determining that the sound box should output right channel information.
  • the speaker when the speaker is located on the right side of other speakers, and the second sensor corresponding to the second sensor data is located on the back of the speaker, it means that the speaker is located at the user Relative to the position on the left, the speaker should output left channel information. It is understandable that, referring to FIGS. 9 and 10, when the sound box is on the left side of other sound boxes, the sound box may determine the target channel information according to the second sensor data.
  • the speaker includes a contact and an interface, and after the above step S100, it further includes:
  • S500 Determine target channel information of the speaker according to the connection mode
  • the channel type of the audio output by the sound box and the other sound boxes can be determined according to the connection mode of the sound box and the other sound boxes.
  • the sound box includes a first contact and a first interface
  • other sound boxes include a second contact and a second interface
  • the first contact and the second contact have similar shapes
  • the first interface and the second interface have similar shapes
  • the first contact can be fitted to the second interface
  • the second contact can be fitted to the first interface.
  • the contacts of the speaker are in contact with the interface
  • data can be transmitted through the contacts and the interface, so as to transmit audio signals.
  • the combined sound box includes a plurality of the sound boxes and a plurality of other sound boxes
  • the plurality of the sound boxes and a plurality of other sound boxes can be connected to each other. It is understandable that the contact connection between the speaker and other speakers is not limited to the connection through contacts.
  • the speaker can be snap-connected to other speakers, and the speaker is connected to other speakers.
  • the connection mode of the speaker and other speakers can be judged through the connection, so as to determine the channel type of the audio output of the speaker and the other speakers according to the connection mode.
  • the foregoing step S500 includes:
  • the first contact of the sound box is located on the top of the sound box
  • the first interface is located on the bottom of the sound box
  • the second contacts of other sound boxes are located on the top of the other sound box.
  • the second interface is located at the bottom of other speakers.
  • the first contact of the sound box When the first contact of the sound box is connected to the second interface of another sound box, it indicates that the other sound box is located on the top side of the sound box.
  • the The combination speaker can control the speaker at the top of the combination speaker to play the left channel information, and control the speaker at the bottom of the combination speaker to play the right channel information.
  • the speaker When the interface is connected, the speaker outputs right channel information, and other speakers output left channel information.
  • the first interface of the sound box When the first interface of the sound box is connected to the second contact of other sound boxes, the sound box outputs left channel information, and other sound boxes output right channel information.
  • the method further includes:
  • S410 Disconnect the wireless communication connection between the speaker and other speakers.
  • the wireless connection between other speakers and other speakers is disconnected, so as to ensure that other speakers are
  • the speakers can transmit audio signals through contact connections, thereby reducing signal crosstalk between other speakers and other speakers.
  • this application proposes a speaker, which is characterized in that the speaker includes: a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the computer program is When executed by the processor, the steps of the method for controlling the combined sound box described in any one of the above embodiments are realized.
  • the first sound box includes a first control unit, a left channel control circuit, a right channel control circuit, a first left speaker, and a first right speaker; the first control unit and the left channel A channel control circuit and the right channel control circuit are electrically connected, the left channel control circuit is electrically connected with the right channel control circuit, and the left channel control circuit is electrically connected with the first left speaker, The right channel control circuit is electrically connected with the first right channel.
  • the first control unit controls the left channel information to be sent to the left channel information Channel control circuit, and control to send the left channel information from the left channel control circuit to the right channel control circuit, and the left channel information is sent to the left channel control circuit through the left channel control circuit.
  • the first left speaker is sent to the first right speaker through the right channel control circuit, so that the first left speaker and the first right speaker of the first sound box both output left channel information.
  • the present application proposes a readable storage medium having a sound box control program stored on the readable storage medium, and when the sound box control program is executed by a processor, the sound box according to any one of the above embodiments is implemented. Steps of the control method.
  • the processor may be a central processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), and application-specific integrated circuits (Central Processing Unit, CPU).
  • CPU Central Processing Unit
  • DSPs Digital Signal Processors
  • CPU Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory may be an internal storage unit of the device, such as a hard disk or memory of the device.
  • the memory may also be an external storage device of the device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a Secure Digital (SD) card, a flash memory card (Flash Card), etc. equipped on the device.
  • the memory may also include both an internal storage unit of the device and an external storage device.
  • the memory is used to store the computer program and other programs and data required by the device.
  • the memory can also be used to temporarily store data that has been output or will be output.
  • the steps of the method or algorithm described in the embodiments disclosed in this document can be directly implemented by hardware, a software module executed by a processor, or a combination of the two.
  • the software module can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or all areas in the technical field. Any other known storage media.

Landscapes

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

Abstract

一种音箱控制方法、音箱及计算机可读存储介质,应用于音箱***中的音箱,音箱***包括至少两个音箱,音箱包括至少两个第一传感器,第一传感器相对设置于音箱的两侧,第一传感器用于发送以及接收预设信号。音箱控制方法包括:音箱获取与其他音箱的连接状态(S100);当音箱与其他音箱无线通信连接时,获取第一传感器检测到的第一传感数据(S200);根据第一传感数据确定目标声道信息(S300);根据目标声道信息输出音频(S400)。解决现有技术中音箱使用时,用户移动位置时导致音箱无法灵活的根据用户的当前位置进行调整的问题。

Description

音箱控制方法、音箱及计算机可读存储介质
本申请要求于2019年12月20日提交中国专利局、申请号为201911342017.4、发明名称为“音箱控制方法、音箱及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及音频播放技术领域,尤其涉及一种音箱控制方法、音箱及计算机可读存储介质。
背景技术
在现有技术中,为了实现立体声的播放,通常需要多个音箱组合使用,在多个小功率的音箱同时使用时,由于音箱与用户的相对位置经常发生改变,为了保证多个音箱能够按照正确的声道输出音频,在用户移动时,需要不断的调整音箱的位置,从而保证音箱输出音频信息的准确性,但是在用户在使用音箱时,需要不断变换用户与音箱的位置时,会造成调整音箱位置的繁琐性。
发明内容
本申请提供一种音箱控制方法、音箱及计算机可读存储介质,旨在解决现有技术中音箱使用时,用户移动位置时导致音箱无法灵活的根据用户的当前位置进行调整的问题。
为实现上述目的,本申请提出了一种音箱控制方法,应用于音箱***中的音箱,所述音箱***包括至少两个音箱,所述音箱包括至少两个第一传感器,所述第一传感器相对设置于音箱的两侧,所述第一传感器用于发送以及接收预设信号,所述音箱控制方法包括:
音箱获取与其他音箱的连接状态;
当所述音箱与其他音箱无线通信连接时,获取所述第一传感器检测到的第一传感数据;
根据所述第一传感数据确定目标声道信息;
根据所述目标声道信息输出音频。
可选的,所述根据所述第一传感数据确定目标声道信息的步骤,包括:
获取所述传感器数据中的预设信号;
获取提取到预设信号的所述传感器数据对应的目标第一传感器;
获取所述目标第一传感器对应的声道信息作为所述目标声道信息。
可选的,两个所述传感器分设于所述音箱的左右两侧,所述根据所述传感数据对应的所述第一传感器,确定目标声道信息的步骤,包括:
当所述目标传感器位于所述音箱的左侧时,确定所述目标声道信息为右声道信息;
当所述目标传感器位于所述音箱的右侧时,确定所述目标声道信息为左声道信息。
可选的,所述音箱还包括至少两个第二传感器,所述第二传感器相对设置于所述音箱的两侧,且位于所述第一传感器之间,所述第二传感器用于检测人体信号,所述根据所述第一传感数据确定目标声道信息的步骤包括:
获取所述第二传感器检测到的第二传感器数据;
根据所述第一传感数据以及所述第二传感数据确定所述目标声道信息。
可选的,所述根据所述第一传感数据以及所述第二传感数据确定所述目标声道信息的步骤,包括:
当接收所述传感数据对应的所述第一传感器位于所述音箱的左侧,且确定所述相对位置对应的所述第二传感器位于所述音箱的前侧时,确定所述目标声道信息为右声道信息;
当接收所述传感数据对应的所述第一传感器位于所述音箱的左侧,且确定所述相对位置对应的所述第二传感器位于所述音箱的后侧时,确定所述目标声道信息为左声道信息;
当接收所述传感数据对应的所述第一传感器位于所述音箱的右侧,且确定所述相对位置对应的所述第二传感器位于所述音箱的前侧时,确定所述目标声道信息为左声道信息;
当接收所述传感数据对应的所述第一传感器位于所述音箱的右侧,且确定所述相对位置对应的所述第二传感器位于所述音箱的后侧时,确定所述目标声道信息为右声道信息。
可选的,所述音箱包括触点与接口,所述音箱获取与其他音箱的连接状态的步骤之后,还包括:
在所述音箱与其他音箱为接触连接时,获取所述音箱与其他音箱的连接方式;
根据所述连接方式确定所述音箱的声道信息;
执行所述根据所述目标声道信息输出音频的步骤。
可选的,所述根据所述连接方式确定所述音箱的声道信息的步骤包括:
当所述音箱通过所述触点与其他音箱的接口连接时,确定所述目标声道信息为右声道信息;
当所述音箱通过所述接口与其他音箱的触点连接时,确定所述目标声道信息为左声道信息。
可选的,所述在所述音箱与其他音箱为接触连接时,获取所述音箱与其他音箱的连接方式的步骤之后,还包括:
断开所述音箱与其他音箱的无线通信连接。
为实现上述目的,本申请提出一种音箱,所述音箱包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上述任一项实施方式所述的音箱控制方法的步骤。
为实现上述目的,本申请提出一种计算机可读存储介质,所述计算机可读存储介质上存储有音箱控制程序,所述音箱控制程序被处理器执行时实现如上述任一项实施方式所述的音箱控制方法的步骤。
本申请提出的技术方案中,音箱控制方法应用于音箱***中的音箱,所述音箱***包括至少两个音箱,所述音箱包括至少两个第一传感器,所述第一传感器相对设置于音箱的两侧,所述第一传感器用于发送以及接收预设信号,在对所述音箱进行控制播放时,首先获取所述音箱与其他音箱的连接状态,并在检测到所述音箱与其他音箱进行无线通信连接时,获取所述传感器检测到的第一传感数据,根据所述第一传感数据确定目标声道信息,并根据所述目标声道信息输出音频,在用户与组合音箱发生相对移动时,通过所述音箱对所述目标声道信息进行确定,从而通过所述目标声道信息输出音频,从而解决了现有技术中用户移动位置时导致音箱无法灵活的根据用户的当前位置进行调整的问题。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一部分附图,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1是本申请实施例方案涉及的硬件运行环境的终端结构示意图;
图2是本申请音箱控制方法一实施例的流程示意图;
图3是本申请音箱控制方法又一实施例的流程示意图;
图4是本申请音箱控制方法又一实施例的流程示意图;
图5是本申请音箱控制方法又一实施例的流程示意图;
图6是本申请音箱控制方法又一实施例的流程示意图;
图7是本申请音箱控制方法又一实施例的结构示意图;
图8是本申请音箱控制方法又一实施例的结构示意图;
图9是本申请音箱控制方法又一实施例的结构示意图;
图10是本申请音箱控制方法又一实施例的结构示意图;
图11是本申请音箱控制方法又一实施例的流程示意图;
图12是本申请音箱控制方法又一实施例的流程示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
需要说明,本申请实施例中所有方向性指示(诸如上、下、左、右、前、后……)仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。
另外,在本申请中如涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个, 三个等,除非另有明确具体的限定。
在本申请中,除非另有明确的规定和限定,术语“连接”、“固定”等应做广义理解,例如,“固定”可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。
另外,本申请各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。
如图1所示,图1是本申请实施例方案涉及的硬件运行环境的装置结构示意图。
本申请实施例装置可以包括计算机等装置的控制装置如服务器、移动终端设备和集控器等。
如图1所示,该装置可以包括:控制器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述控制器1001的存储装置。
本领域技术人员可以理解,图1中示出的装置结构并不构成对装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
该装置可以包括:处理器1001,例如CPU,存储器1005,通信总线1002,网络接口1004。其中,通信总线1002用于实现该装置中各组成部件之间的连接通信。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器 (non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。如图1所示,作为一种可读存储介质的存储器1005中可以包括操作***、网络通信模块以及异常检测程序。
本领域技术人员可以理解,图1中示出的装置结构并不构成对装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作***、网络通信模块、用户接口模块以及应用程序。
在图1所示的服务器中,用户接口1003主要用于显示装置结构的内容,而控制器1001可以用于调用存储器1005中存储的应用程序,并执行以下操作:
音箱获取与其他音箱的连接状态;
当所述音箱与其他音箱无线通信连接时,获取所述第一传感器检测到的第一传感数据;
根据所述第一传感数据确定目标声道信息;
根据所述目标声道信息输出音频。
进一步地,控制器1001可以调用存储器1005中存储的应用程序,还执行以下操作:
获取所述第一传感数据中的预设信号;
获取提取到所述预设信号的所述第一传感数据对应的目标第一传感器;
获取所述目标第一传感器对应的声道信息作为所述目标声道信息。
进一步地,控制器1001可以调用存储器1005中存储的应用程序,还执行以下操作:
当所述目标第一传感器位于所述音箱的左侧时,确定所述目标声道信息为右声道信息;
当所述目标第一传感器位于所述音箱的右侧时,确定所述目标声道信息为左声道信息。
进一步地,控制器1001可以调用存储器1005中存储的应用程序,还执 行以下操作:
获取所述第二传感器检测到的第二传感器数据;
根据所述第一传感数据以及所述第二传感数据确定所述目标声道信息。
进一步地,控制器1001可以调用存储器1005中存储的应用程序,还执行以下操作:
当获取所述第一传感数据对应的所述第一传感器位于所述音箱的左侧,且获取所述第二传感数据对应的所述第二传感器位于所述音箱的前侧时,确定所述目标声道信息为右声道信息;
当获取所述第一传感数据对应的所述第一传感器位于所述音箱的左侧,且获取所述第二传感数据对应的所述第二传感器位于所述音箱的后侧时,确定所述目标声道信息为左声道信息;
当获取所述第一传感数据对应的所述第一传感器位于所述音箱的右侧,且获取所述第二传感数据对应的所述第二传感器位于所述音箱的前侧时,确定所述目标声道信息为左声道信息;
当获取所述第一传感数据对应的所述第一传感器位于所述音箱的右侧,且获取所述第二传感数据对应的所述第二传感器位于所述音箱的后侧时,确定所述目标声道信息为右声道信息。
进一步地,控制器1001可以调用存储器1005中存储的应用程序,还执行以下操作:
在所述音箱与其他音箱为接触连接时,获取所述音箱与其他音箱的连接方式;
根据所述连接方式确定所述音箱的目标声道信息;
执行所述根据所述目标声道信息输出音频的步骤。
进一步地,控制器1001可以调用存储器1005中存储的应用程序,还执行以下操作:
当所述音箱通过所述触点与其他音箱的接口连接时,确定所述目标声道信息为右声道信息;
当所述音箱通过所述接口与其他音箱的触点连接时,确定所述目标声道信息为左声道信息。
进一步地,控制器1001可以调用存储器1005中存储的应用程序,还执行以下操作:
断开所述音箱与其他音箱的无线通信连接。
本申请提供一种音箱控制方法、音箱及计算机可读存储介质。
第一实施例
请参照图2,所述音箱控制方法应用于音箱***中的音箱,所述音箱***包括至少两个音箱,所述音箱包括至少两个第一传感器,所述第一传感器相对设置于音箱的两侧,所述第一传感器用于发送以及接收预设信号,所述音箱控制方法包括:
S100,音箱获取与其他音箱的连接状态;
其中,当所述音箱***包括多个音箱时,所述音箱与其他音箱的连接方式可以包括接触连接以及无线通信连接,当所述音箱与其他音箱相接触时,所述音箱与其他音箱为接触连接,当所述音箱与其他音箱相互分离时,所述音箱与其他音箱为无线通信连接。
在一具体实施方式中,所述音箱包括连接部,所述音箱能够通过所述连接部与其他音箱进行接触连接。
在另一具体实施方式中,所述音箱与其他音箱通过无线通信单元进行连接,优选实施方式中,所述音箱与其他音箱的无线通信连接方式可以为蓝牙连接。
S200,当所述音箱与其他音箱无线通信连接时,获取所述第一传感器检测到的第一传感数据;
S300,根据所述第一传感数据确定目标声道信息;
其中,在所述音箱与其他音箱相分离时,所述音箱与所述音箱***中的其他音箱无线通信连接,所述音箱的所述第一传感器能够与其他音箱进行预设信号的发送与接收,从而确定所述音箱***中不同音箱的相对位置,所述音箱的所述第一传感器在接收到其他音箱的发送的第一传感数据后,可以根据所述第一传感数据,确定所述音箱与其他音箱的所述目标声道信息。
S400,根据所述目标声道信息输出音频。
其中,所述目标声道信息包括左声道信息与右声道信息,在所述音箱确定所述目标声道信息后,所述音箱根据所述目标声道信息输出对应声道的音频。
本申请提出的实施方式中,音箱控制方法应用于音箱***中的音箱,所述音箱***包括至少两个音箱,所述音箱包括至少两个第一传感器,所述第一传感器相对设置于音箱的两侧,所述第一传感器用于发送以及接收预设信号,在对所述音箱进行控制播放时,首先获取所述音箱与其他音箱的连接状态,并在检测到所述音箱与其他音箱进行无线通信连接时,获取所述传感器检测到的第一传感数据,根据所述第一传感数据确定目标声道信息,并根据所述目标声道信息输出音频,在用户与组合音箱发生相对移动时,通过所述音箱对所述目标声道信息进行确定,从而通过所述目标声道信息输出音频,从而解决了现有技术中用户移动位置时导致音箱无法灵活的根据用户的当前位置进行调整的问题。
第二实施例
请参照图3,在第一实施例中,上述步骤S300,包括:
S310,获取所述第一传感数据中的预设信号;
S320,获取提取到预设信号的所述传感器数据对应的目标第一传感器;
S330,获取所述目标第一传感器对应的声道信息作为所述目标声道信息。
其中,所述预设信号是指所述第一传感器接收的用于检测其他音箱的信息,具体的,在确定所述第一传感数据对应的所述目标第一传感器后,可以根据所述目标第一传感器确定所述音箱与其他音箱的位置关系,从而确定所述音箱在所述音箱***中的目标声道信息。在一具体的实施方式中,所述第一传感器为红外收发模块,所述红外收发模块设于所述音箱的两侧,所述音箱***中其他音箱的两侧同样设置有红外收发模块,在所述音箱与其他音箱靠近时,所述音箱的所述红外收发模块能够与其他音箱的红外收发模块进行通信,当所述音箱的右侧的所述红外收发模块接收到其他音箱的预设信号时,表示所述音箱位于其他音箱的左侧,从而确定所述音箱的所述目标声道信息。
第三实施例
请参照图4,在第二实施例中,上述步骤S330,包括:
S331,当所述目标第一传感器位于所述音箱的左侧时,确定所述目标声道信息为右声道信息;
S332,当所述目标第一传感器位于所述音箱的右侧时,确定所述目标声道信息为左声道信息。
在一具体实施方式中,当位于所述音箱的左侧的所述第一传感器为所述目标第一传感器时,表示所述音箱位于其他音箱的右侧,因此确定所述音箱的所述目标声道信息为右声道信息;当位于所述音箱的右侧的所述第一传感器为所述目标第一传感器时,表示所述音箱位于其他音箱的左侧,因此确定所述音箱的所述目标声道信息为左声道信息。
第四实施例
请参照图5,在第一实施例中,所述音箱的所述传感器至少包括两个所述第一传感器以及两个所述第二传感器,两个所述第一传感器相对设置,两个所述第二传感器相对设置,所述第二传感器设于所述第一传感器之间,具体的,所述第一传感器用于与所述音箱***中的其他音箱进行通信,所述第二传感器用于检测人体信号,优选实施方式中,两个所述第一传感器分别设于所述音箱的左右两侧,两个所述第二传感器分别设于所述音箱的前后两侧,所述第一传感器的检测范围为180度,并且两个所述第一传感器的检测区域互相不重合,所述第二传感器的检测范围为180度,并且两个所述第二传感器的检测区域互相不重合。上述步骤S300,包括:
S340,获取所述第二传感器检测到的第二传感器数据;
S350,根据所述第一传感数据以及所述第二传感数据确定所述目标声道信息。
其中,在确定接收到所述第一传感数据后,继续获取所述第二传感器检测到的用户的人体信号。用户在使用音箱的过程中,音箱的位置不会经常发生变化,但是用户可能会经常移动,从而改变了用户与音箱之间的相对位置,为了方便用户在移动过程中,能够准确的获取正确声道的音频,在确定所述音箱与其他音箱的相对位置后,在根据与用户之间的位置确定所述目标声道信息,具体的,通过所述第二传感器对用户进行检测,当所述音箱通过所述 第一传感器确定与其他音箱的位置以及通过所述第二传感器确定与用户之间的位置时,根据所述第一传感器与所述第二传感器能够确定所述音箱的声道信息。
第五实施例
请参照图6,在一具体实施方式中,上述步骤S350,包括:
S351,当获取所述第一传感数据对应的所述第一传感器位于所述音箱的左侧,且获取所述第二传感数据对应的所述第二传感器位于所述音箱的前侧时,确定所述目标声道信息为右声道信息;
S352,当获取所述第一传感数据对应的所述第一传感器位于所述音箱的左侧,且获取所述第二传感数据对应的所述第二传感器位于所述音箱的后侧时,确定所述目标声道信息为左声道信息;
S353,当获取所述第一传感数据对应的所述第一传感器位于所述音箱的右侧,且获取所述第二传感数据对应的所述第二传感器位于所述音箱的前侧时,确定所述目标声道信息为左声道信息;
S354,当获取所述第一传感数据对应的所述第一传感器位于所述音箱的右侧,且获取所述第二传感数据对应的所述第二传感器位于所述音箱的后侧时,确定所述目标声道信息为右声道信息。
具体的,请参照图7,当获取所述第一传感数据对应的所述第一传感器位于所述音箱的左侧,表示所述音箱位于其他音箱的右侧,当获取所述第二传感数据对应的所述第二传感器位于所述音箱的前侧时,表示用户正位于所述音箱的前侧,从而判断所述音箱应当输出右声道信息。同理,请参照图8,当所述音箱位于其他音箱的右侧,并且获取所述第二传感数据对应的所述第二传感器位于所述音箱的后侧时,表示所述音箱位于用户相对左侧的位置,所述音箱应当输出左声道信息。可以理解的是,请参照图9与图10,当所述音箱为与其他音箱的左侧时,所述音箱可以根据所述所述第二传感数据对所述目标声道信息进行确定。
第六实施例
请参照图11,在可选的实施方式中,所述音箱包括触点与接口,上述步骤S100之后,还包括:
S400,在所述音箱与其他音箱为接触连接时,获取所述音箱与其他音箱的连接方式;
S500,根据所述连接方式确定所述音箱的目标声道信息;
S300,执行所述根据所述目标声道信息输出音频的步骤。
其中,所述音箱与其他音箱为接触连接时,能够根据所述音箱与其他音箱的连接方式确定所述音箱与其他音箱的输出的音频的声道类别。
在一具体实施方式中,所述音箱包括第一触点与第一接口,其他音箱包括第二触点与第二接口,所述第一触点与所述第二触点的形状相近,所述第一接口与所述第二接口的形状相近,所述第一触点能够与所述第二接口适配连接,所述第二触点能够与所述第一接口适配连接。音箱的触点在与接口进行接触连接时,能够通过触点与接口进行数据传输,从而用于传输音频信号。具体的。当所述组合音箱包括多个所述音箱与多个其他音箱时,多个所述音箱与多个其他音箱能够互相连接。可以理解的是,所述音箱与其他音箱的接触连接方式不限于通过触点进行连接,于另一实施方式中,所述音箱可以与其他音箱卡扣连接,并且在所述音箱与其他音箱进行卡扣连接时,能够通过连接处判断所述音箱与其他音箱的连接方式,从而根据连接方式确定所述音箱与其他音箱的音频输出的声道类型。
第七实施例
请参照图12,在上述实施方式中,上述步骤S500,包括:
S510,当所述音箱通过所述触点与其他音箱的接口连接时,确定所述目标声道信息为右声道信息;
S520,当所述音箱通过所述接口与其他音箱的触点连接时,确定所述目标声道信息为左声道信息。
在一具体实施方式中,所述音箱的所述第一触点位于所述音箱的顶部,所述第一接口位于所述音箱的底部,其他音箱的所述第二触点位于其他音箱的顶部,所述第二接口位于其他音箱的底部。
当所述音箱的所述第一触点与其他音箱的所述第二接口连接时,表明其他音箱位于所述音箱的顶部一侧,可以设置所述音箱与其他音箱接触连接使用时,所述组合音箱的可以控制位于所述组合音箱顶部的音箱播放左声道信息,控制位于所述组合音箱底部的音箱播放右声道信息,因此当所述音箱的 第一触点与其他音箱的第二接口连接时,所述音箱输出右声道信息,其他音箱输出左声道信息。当所述音箱的第一接口与其他音箱的第二触点连接时,所述音箱输出左声道信息,其他音箱输出右声道信息。
优选实施方式中,上述步骤S400之后,还包括:
S410,断开所述音箱与其他音箱的无线通信连接。
其中,为了避免其他音箱与其他音箱的接触连接方式与无线连接方式发生冲突,当检测到其他音箱与其他音箱为接触连接时,断开其他音箱与其他音箱的无线连接,从而保证其他音箱与其他音箱之间能够通过接触连接的方式传输音频信号,从而减少其他音箱与其他音箱之间的信号串扰问题。
为实现上述目的,本申请提出一种音箱,其特征在于,所述音箱包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上述任一项实施方式中所述的组合音箱控制方法的步骤。
在一具体实施方式中,所述第一音箱包括第一控制单元,左声道控制电路,右声道控制电路、第一左扬声器以及第一右扬声器;所述第一控制单元与所述左声道控制电路以及所述右声道控制电路电连接,所述左声道控制电路与所述右声道控制电路电连接,所述左声道控制电路与所述第一左扬声器电连接,所述右声道控制电路与所述第一右声道电连接。
当所述第一音箱接收到所述第一声道信息,并确定所述第一声道信息为左声道信息时,所述第一控制单元控制将左声道信息发送至所述左声道控制电路,并控制将所述左声道信息从所述左声道控制电路发送至所述右声道控制电路,所述左声道信息分别通过所述左声道控制电路发送至所述第一左扬声器以及通过所述右声道控制电路发送至所述第一右扬声器,从而使所述第一音箱的所述第一左扬声器与所述第一右扬声器均输出左声道信息。
为实现上述目的,本申请提出一种可读存储介质,所述可读存储介质上存储有音箱控制程序,所述音箱控制程序被处理器执行时实现如上述任一项实施方式所述的音箱控制方法的步骤。
在一些可选的实施方式中,所述处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
所述存储器可以是设备的内部存储单元,例如设备的硬盘或内存。所述存储器也可以是设备的外部存储设备,例如设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器还可以既包括设备的内部存储单元也包括外部存储设备。所述存储器用于存储所述计算机程序以及设备所需的其它程序和数据。所述存储器还可以用于暂时地存储已经输出或者将要输出的数据。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述***中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是在本申请的发明构思下,利用本申请说明书及附图内容所作的等效结构变换,或直接/间接运用在其他相关的技术领域均包括在本申请的专利保护范围内。
本说明书中各个实施例采用并列或者递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应, 所以描述的比较简单,相关之处可参见方法部分说明。
本领域普通技术人员还可以理解,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。

Claims (10)

  1. 一种音箱控制方法,其特征在于,应用于音箱***中的音箱,所述音箱***包括至少两个音箱,所述音箱包括至少两个第一传感器,所述第一传感器相对设置于音箱的两侧,所述第一传感器用于发送以及接收预设信号,所述音箱控制方法包括:
    音箱获取与其他音箱的连接状态;
    当所述音箱与其他音箱无线通信连接时,获取所述第一传感器检测到的第一传感数据;
    根据所述第一传感数据确定目标声道信息;
    根据所述目标声道信息输出音频。
  2. 如权利要求1所述的音箱控制方法,其特征在于,所述根据所述第一传感数据确定目标声道信息的步骤,包括:
    获取所述第一传感数据中的预设信号;
    获取提取到所述预设信号的所述第一传感数据对应的目标第一传感器;
    获取所述目标第一传感器对应的声道信息作为所述目标声道信息。
  3. 如权利要求2所述的音箱控制方法,其特征在于,两个所述传感器分设于所述音箱的左右两侧,所述获取所述目标第一传感器对应的声道信息作为所述目标声道信息的步骤,包括:
    当所述目标第一传感器位于所述音箱的左侧时,确定所述目标声道信息为右声道信息;
    当所述目标第一传感器位于所述音箱的右侧时,确定所述目标声道信息为左声道信息。
  4. 如权利要求1所述的音箱控制方法,其特征在于,所述音箱还包括至少两个第二传感器,所述第二传感器相对设置于所述音箱的两侧,且位于所述第一传感器之间,所述第二传感器用于检测人体信号,所述根据所述第一传感数据确定目标声道信息的步骤包括:
    获取所述第二传感器检测到的第二传感器数据;
    根据所述第一传感数据以及所述第二传感数据确定所述目标声道信息。
  5. 如权利要求4所述的音箱控制方法,其特征在于,所述根据所述第一传感数据以及所述第二传感数据确定所述目标声道信息的步骤,包括:
    当获取所述第一传感数据对应的所述第一传感器位于所述音箱的左侧,且获取所述第二传感数据对应的所述第二传感器位于所述音箱的前侧时,确定所述目标声道信息为右声道信息;
    当获取所述第一传感数据对应的所述第一传感器位于所述音箱的左侧,且获取所述第二传感数据对应的所述第二传感器位于所述音箱的后侧时,确定所述目标声道信息为左声道信息;
    当获取所述第一传感数据对应的所述第一传感器位于所述音箱的右侧,且获取所述第二传感数据对应的所述第二传感器位于所述音箱的前侧时,确定所述目标声道信息为左声道信息;
    当获取所述第一传感数据对应的所述第一传感器位于所述音箱的右侧,且获取所述第二传感数据对应的所述第二传感器位于所述音箱的后侧时,确定所述目标声道信息为右声道信息。
  6. 如权利要求1所述的音箱控制方法,其特征在于,所述音箱包括触点与接口,所述音箱获取与其他音箱的连接状态的步骤之后,还包括:
    在所述音箱与其他音箱为接触连接时,获取所述音箱与其他音箱的连接方式;
    根据所述连接方式确定所述音箱的目标声道信息;
    执行所述根据所述目标声道信息输出音频的步骤。
  7. 如权利要求6所述的音箱控制方法,其特征在于,所述根据所述连接方式确定所述音箱的目标声道信息的步骤包括:
    当所述音箱通过所述触点与其他音箱的接口连接时,确定所述目标声道信息为右声道信息;
    当所述音箱通过所述接口与其他音箱的触点连接时,确定所述目标声道信息为左声道信息。
  8. 如权利要求6所述的音箱控制方法,其特征在于,所述在所述音箱与其他音箱为接触连接时,获取所述音箱与其他音箱的连接方式的步骤之后,还包括:
    断开所述音箱与其他音箱的无线通信连接。
  9. 一种音箱,其特征在于,所述音箱包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1-8任一项所述的音箱控制方法的步骤。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有音箱控制程序,所述音箱控制程序被处理器执行时实现如权利要求1-8中任一项所述的音箱控制方法的步骤。
PCT/CN2019/129583 2019-12-20 2019-12-28 音箱控制方法、音箱及计算机可读存储介质 WO2021120318A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/477,252 US20220007105A1 (en) 2019-12-20 2021-09-16 Method for controlling sound box, sound box, and non-transitory computer readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911342017.4 2019-12-20
CN201911342017.4A CN111031419B (zh) 2019-12-20 2019-12-20 音箱控制方法、音箱及计算机可读存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/477,252 Continuation US20220007105A1 (en) 2019-12-20 2021-09-16 Method for controlling sound box, sound box, and non-transitory computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2021120318A1 true WO2021120318A1 (zh) 2021-06-24

Family

ID=70212809

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/129583 WO2021120318A1 (zh) 2019-12-20 2019-12-28 音箱控制方法、音箱及计算机可读存储介质

Country Status (3)

Country Link
US (1) US20220007105A1 (zh)
CN (1) CN111031419B (zh)
WO (1) WO2021120318A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205716B (zh) * 2020-09-18 2023-03-24 华为技术有限公司 确定音箱声道角色的方法、***、电子设备及存储介质
CN113050458B (zh) * 2021-03-24 2022-07-22 潍坊歌尔电子有限公司 设备的控制方法、控制终端及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219603A (zh) * 2014-08-26 2014-12-17 北京智谷技术服务有限公司 声道配置方法和装置
CN104967953A (zh) * 2015-06-23 2015-10-07 Tcl集团股份有限公司 一种多声道播放方法和***
CN107736037A (zh) * 2017-08-30 2018-02-23 万魔声学科技有限公司 声音播放方法、设备及可读存储介质
US10089066B2 (en) * 2016-12-13 2018-10-02 Samsung Electronics Co., Ltd. Electronic apparatus and audio output apparatus composing audio output system, and control method thereof
CN108882139A (zh) * 2018-05-31 2018-11-23 北京橙鑫数据科技有限公司 参数配置方法以及***

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008149296A1 (en) * 2007-06-08 2008-12-11 Koninklijke Philips Electronics N.V. Beamforming system comprising a transducer assembly
CN101754082A (zh) * 2008-12-09 2010-06-23 北京歌尔泰克科技有限公司 根据音箱横竖摆放方向可切换声道的方法和装置
FR2970574B1 (fr) * 2011-01-19 2013-10-04 Devialet Dispositif de traitement audio
KR101488936B1 (ko) * 2013-05-31 2015-02-02 한국산업은행 프론트 채널 사운드가 발생되는 미들 레이어 위치 조정 장치 및 그 방법
KR102114219B1 (ko) * 2013-10-10 2020-05-25 삼성전자주식회사 오디오 시스템 및 오디오 출력 방법, 그리고 스피커 장치
SE1451466A1 (sv) * 2014-03-26 2015-09-27 Sound Dimension Ab Device for reproducing sound
CN204741556U (zh) * 2014-09-10 2015-11-04 姚波 立体声音箱及立体声音箱组合
JP2018170539A (ja) * 2017-03-29 2018-11-01 ソニー株式会社 スピーカ装置、オーディオデータ供給装置及びオーディオデータ再生システム
US10674303B2 (en) * 2017-09-29 2020-06-02 Apple Inc. System and method for maintaining accuracy of voice recognition

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219603A (zh) * 2014-08-26 2014-12-17 北京智谷技术服务有限公司 声道配置方法和装置
CN104967953A (zh) * 2015-06-23 2015-10-07 Tcl集团股份有限公司 一种多声道播放方法和***
US10089066B2 (en) * 2016-12-13 2018-10-02 Samsung Electronics Co., Ltd. Electronic apparatus and audio output apparatus composing audio output system, and control method thereof
CN107736037A (zh) * 2017-08-30 2018-02-23 万魔声学科技有限公司 声音播放方法、设备及可读存储介质
CN108882139A (zh) * 2018-05-31 2018-11-23 北京橙鑫数据科技有限公司 参数配置方法以及***

Also Published As

Publication number Publication date
CN111031419B (zh) 2021-06-01
US20220007105A1 (en) 2022-01-06
CN111031419A (zh) 2020-04-17

Similar Documents

Publication Publication Date Title
US10185402B2 (en) Method and system for gesture based control device
KR102345926B1 (ko) 지정된 주파수 대역의 신호를 이용하여 외부 객체의 근접을 확인하는 전자 장치 및 전자 장치 제어 방법
WO2021120318A1 (zh) 音箱控制方法、音箱及计算机可读存储介质
US10440462B1 (en) Earphone assembly and sound channel control method applied therein
JP2018182534A (ja) スピーカ位置検出システム、スピーカ位置検出装置、及びスピーカ位置検出方法
CN111766548B (zh) 信息提示方法、装置、电子设备及可读存储介质
KR20220047624A (ko) 객체 위치 조정 방법 및 전자기기
US20200348902A1 (en) Electronic device for controlling volume level of audio signal on basis of states of multiple speakers
EP3766261A1 (en) Remote multi-dimensional audio
TW201525716A (zh) 行動裝置配對方法
CN113377325B (zh) 蓝牙音箱及其控制方法
EP3115262B1 (en) In-vehicle terminal
WO2020181423A1 (zh) 书写笔记信息的传输方法及其传输***、电子设备
US20160095145A1 (en) Automatic pairing for portable computing devices
EP3350790B1 (en) System and method for determining proximity of a controller to a media rendering device
US11330651B2 (en) Electronic device using bluetooth communication and operating method thereof
KR20200079081A (ko) 콘텐트 공유 방법 및 그 전자 장치
CN108377515A (zh) 无线网络传输速率控制方法、装置、终端设备及存储介质
CN113419646A (zh) 压力感应通道的校准方法、装置及电子设备
CN108605200B (zh) 校准数据传输
KR20200101264A (ko) 터치 회로를 포함하는 전자 장치, 및 그 동작 방법
TWI638309B (zh) 虛擬鍵盤的調整方法及觸控裝置
KR20210051423A (ko) 사용자의 액티비티 정보를 제공하는 전자 장치와 이의 동작 방법
JPWO2019225190A1 (ja) 情報処理装置、情報処理方法、プログラム
US11899896B2 (en) Flexible screen terminal and display method therefor, and computer-readable storage medium

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: 19956839

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19956839

Country of ref document: EP

Kind code of ref document: A1