WO2022048020A1 - 蓝牙音箱的控制方法及系统、存储介质及移动终端 - Google Patents

蓝牙音箱的控制方法及系统、存储介质及移动终端 Download PDF

Info

Publication number
WO2022048020A1
WO2022048020A1 PCT/CN2020/128776 CN2020128776W WO2022048020A1 WO 2022048020 A1 WO2022048020 A1 WO 2022048020A1 CN 2020128776 W CN2020128776 W CN 2020128776W WO 2022048020 A1 WO2022048020 A1 WO 2022048020A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
audio
mobile terminal
speakers
channels
Prior art date
Application number
PCT/CN2020/128776
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 捷开通讯(深圳)有限公司
Priority to US18/043,907 priority Critical patent/US20230370774A1/en
Publication of WO2022048020A1 publication Critical patent/WO2022048020A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2227/00Details of public address [PA] systems covered by H04R27/00 but not provided for in any of its subgroups
    • H04R2227/005Audio distribution systems for home, i.e. multi-room use
    • 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

  • the present application relates to computer technology, and in particular, to a method and system for controlling a Bluetooth speaker, a storage medium and a mobile terminal.
  • the concept of home theater represents expensive, wiring, heavy, and at least a player (usually a DVD player), power amplifier, 5.1-channel audio and a large number of cables in the impression of ordinary people.
  • wireless speakers are becoming more and more popular, making any room a place to enjoy music as you like.
  • a wireless music system composed of wireless speakers it is generally composed of multiple wireless speakers. These speakers can be placed in many places in the home, such as some in the living room, some in the bedroom, some in the study and so on. These wireless speakers can communicate with each other through wireless transmission technology.
  • the number of wireless speakers controlled by a mobile terminal is limited to only one. Therefore, the user cannot enjoy the multi-channel sound effect of multiple speakers (for example, 4 speakers).
  • the audio signal needs to be encoded and decoded in the process of wireless transmission, and the process of encoding and decoding the audio signal requires a certain time, when the corresponding audio signal is played, the audio signal will be delayed, which affects the user's hearing. effect and experience.
  • the embodiments of the present application provide a control method and system for a Bluetooth speaker, a storage medium and a mobile terminal, which not only effectively solve the problem that the mobile terminal cannot be connected to multiple speakers at the same time, but also solve the problem of audio playback delay caused by connecting multiple speakers through Bluetooth. question.
  • an embodiment of the present application provides a method for controlling a Bluetooth speaker.
  • the control method includes the steps of: acquiring audio information; analyzing the audio information; The audio manager constructs multiple channels; constructs multiple virtual Bluetooth audio transmission model protocol channels through the Bluetooth protocol stack of the mobile terminal; connects the multiple virtual Bluetooth audio transmission model protocol channels with multiple external Bluetooth speakers correspondingly sending the parsed audio information to the multiple channels in the audio manager; and playing the audio information in the multiple channels through the multiple Bluetooth speakers.
  • the method further includes the step of: synchronously detecting the plurality of Bluetooth speakers.
  • the step further includes the step of acquiring the delay time of the plurality of bluetooth speakers.
  • the step of synchronously detecting the plurality of bluetooth speakers it also includes the step of: judging the longest delay time according to the obtained delay times of the plurality of bluetooth speakers; Configured as the delay time for audio playback.
  • an embodiment of the present application provides a control system for a Bluetooth speaker.
  • the control system for a Bluetooth speaker includes: an audio acquisition unit for acquiring audio information; an audio parsing unit for Analyze the audio information; a channel construction unit for constructing multiple channels through the audio manager in the mobile terminal system framework; a Bluetooth protocol construction unit for passing the Bluetooth protocol of the mobile terminal
  • the stack constructs a plurality of virtual bluetooth audio transmission model protocol channels; a connection unit is used to connect the plurality of virtual bluetooth audio transmission model protocol channels with a plurality of external bluetooth speakers correspondingly; an audio information sending unit is used for parsing The latter audio information is sent to the plurality of channels in the audio manager; and an audio information playing unit is used to pass the audio information in the plurality of channels through the plurality of channels.
  • Bluetooth speaker to play.
  • system further includes: a synchronization detection unit for performing synchronization detection on the plurality of Bluetooth speakers.
  • the synchronization detection unit includes: a delay acquisition unit for acquiring the delay times of the plurality of Bluetooth speakers.
  • the synchronization detection unit also includes: a delay time judgment unit, used to judge the longest delay time according to the obtained delay times of the plurality of Bluetooth speakers; a delay time configuration unit, used for Configure the longest delay time as the delay time for audio playback.
  • an embodiment of the present application provides a storage medium, where a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute any one of the above-mentioned control of the Bluetooth speaker method.
  • an embodiment of the present application provides a mobile terminal, including a processor and a memory, where the processor is electrically connected to the memory, and the memory is used for storing instructions and data, and the processor uses performing the steps in the control method of any one of the above-mentioned Bluetooth speakers.
  • the advantage of the present application is that, compared with the prior art, the method described in the present application constructs multiple channels through the audio manager in the system framework of the mobile terminal, and then constructs multiple virtual channels through the Bluetooth protocol stack of the mobile terminal.
  • the Bluetooth audio transmission model protocol channel is to connect the multiple virtual Bluetooth audio transmission model protocol channels with multiple external Bluetooth speakers correspondingly, so that the audio information in the multiple channels is processed through the multiple Bluetooth speakers. play.
  • the method performs synchronous detection on the plurality of Bluetooth speakers, so as to avoid the phenomenon that the audio signals of the plurality of Bluetooth speakers are delayed.
  • FIG. 1 is a flowchart of steps of a method for controlling a Bluetooth speaker according to an embodiment of the present application.
  • FIG. 2 is a flowchart of sub-steps of step S170 in the embodiment described in this application.
  • FIG. 3 is a schematic structural diagram of a control system of a Bluetooth speaker according to an embodiment of the application.
  • FIG. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
  • FIG. 1 a flowchart of steps of a method for controlling a Bluetooth speaker provided by an embodiment of the present application.
  • the control method of the bluetooth speaker is suitable for a mobile terminal, and the control method includes the steps:
  • Step S110 Acquire an audio message.
  • the audio information refers to audible sounds emitted by various sound sources in nature and speech or music synthesized by a computer through special equipment.
  • Step S120 Parse the audio information.
  • a media decoder in a system architecture layer of a mobile terminal eg, an Android phone
  • a mobile terminal eg, an Android phone
  • Step S130 Build multiple channels through the audio manager in the mobile terminal system framework.
  • the channels refer to mutually independent audio signals collected or played back at different spatial positions during sound recording or playback, so the number of channels is the number of sound sources during sound recording or the corresponding number of speakers during playback.
  • the obtained stereo is processed by the up-mixing algorithm of the up-mixing module of the audio manager, and output through the delay module, the low-pass filtering module and the phase-shifting module to form four channels.
  • the obtained 5.1 channels are processed by the up-mixing algorithm of the down-mixing module of the audio manager to form corresponding four-channels.
  • Step S140 Build a plurality of virtual Bluetooth audio transmission model protocol channels through the Bluetooth protocol stack of the mobile terminal.
  • Bluetooth Audio Transmission Model Protocol Advanced Audio Distribution Profile (A2DP for short) is an audio transmission protocol of Bluetooth, which is applied to Bluetooth devices and defines the parameter negotiation, establishment and transmission process of data stream handles between Bluetooth devices, and the form of signaling entities exchanged with each other. Therefore, multiple channels using the Bluetooth audio transmission model protocol can be virtualized through the Bluetooth protocol stack.
  • A2DP Advanced Audio Distribution Profile
  • Step S150 Correspondingly connect the plurality of virtual Bluetooth audio transmission model protocol channels to a plurality of external Bluetooth speakers.
  • the Bluetooth speaker has a built-in Bluetooth chip, and the wire connection is replaced by the Bluetooth connection. Therefore, through the implementation of steps S140 and S150, the connection between the Bluetooth protocol stack of the mobile terminal and the plurality of Bluetooth speakers corresponding to the Bluetooth protocol can be realized.
  • Step S160 Send the parsed audio information to the multiple channels in the audio manager.
  • the parsed audio information includes four channels, so four A2DP protocol channels can be virtualized through the Bluetooth protocol stack to connect respectively corresponding to the four Bluetooth speakers.
  • the audio information may also include three channels, five channels, or multiple channels, so a corresponding number of A2DP protocol channels and external multi-channel channels can also be virtualized through the Bluetooth protocol stack.
  • a bluetooth speaker corresponds to the connection.
  • a time-division multiplexing method can be used to transmit the audio information of the corresponding protocol channel respectively.
  • Step S170 Perform synchronous detection on the plurality of Bluetooth speakers.
  • synchronous detection is performed on the plurality of Bluetooth speakers, so as to avoid the phenomenon that the audio signals of the multiple Bluetooth speakers are delayed.
  • the specific operation includes the following steps:
  • Step S171 Obtain the delay times of the plurality of Bluetooth speakers.
  • each Bluetooth speaker can be tested for playing audio, and the sound can be collected by the microphone of the mobile phone, so as to obtain the delay time of the corresponding Bluetooth speaker.
  • Step S172 Determine the longest delay time according to the obtained delay times of the plurality of Bluetooth speakers.
  • the delay times of multiple Bluetooth speakers are different, it is necessary to determine the longest delay time.
  • the number of the Bluetooth speakers is four. Therefore, it is necessary to perform audio playback tests on the four Bluetooth speakers and obtain the delay time of the corresponding Bluetooth speakers.
  • Step S173 Configure the longest delay time as the delay time of audio playback.
  • step S180 Play the audio information in the multiple channels through the multiple Bluetooth speakers.
  • the audio information in the multiple channels (for example, four channels) is transmitted to the corresponding Bluetooth speaker, and played.
  • the method described in the present application enables one mobile terminal to control multiple Bluetooth speakers through the implementation of the above steps S110 to S180.
  • the method performs synchronous detection on the plurality of Bluetooth speakers, so as to avoid the phenomenon that the audio signals of the multiple Bluetooth speakers are delayed.
  • the advantage of the present application is that, compared with the prior art, the method described in the present application constructs multiple channels through the audio manager in the system framework of the mobile terminal, and then constructs multiple virtual channels through the Bluetooth protocol stack of the mobile terminal.
  • the Bluetooth audio transmission model protocol channel is to connect the plurality of virtual Bluetooth audio transmission model protocol channels with multiple external Bluetooth speakers correspondingly, so that the audio information in the multiple channels is transmitted through the multiple Bluetooth speakers. play.
  • the method performs synchronous detection on the plurality of Bluetooth speakers, so as to avoid the phenomenon that the audio signals of the plurality of Bluetooth speakers are delayed.
  • a schematic structural diagram of a control system of a Bluetooth speaker provided in an embodiment of the application includes: an audio acquisition unit 1, an audio analysis unit 2, a channel construction unit 3, a Bluetooth protocol construction unit 4, a A connection unit 5 , an audio information sending unit 6 , an audio information playing unit 8 and a synchronization detection unit 7 .
  • the audio acquisition unit 1 is used for acquiring audio information.
  • the audio information refers to audible sounds emitted by various sound sources in nature and speech or music synthesized by a computer through special equipment.
  • the audio parsing unit 2 is used for parsing the audio information.
  • a media decoder in a system architecture layer of a mobile terminal eg, an Android phone
  • decode the audio information when an audio and video source is played, a media decoder in a system architecture layer of a mobile terminal (eg, an Android phone) is called to decode the audio information.
  • the channel construction unit 3 is configured to construct a plurality of channels through the audio manager in the mobile terminal system framework.
  • the channels refer to mutually independent audio signals collected or played back at different spatial positions during sound recording or playback, so the number of channels is the number of sound sources during sound recording or the corresponding number of speakers during playback.
  • the Bluetooth protocol construction unit 4 is configured to construct a plurality of virtual Bluetooth audio transmission model protocol channels through the Bluetooth protocol stack of the mobile terminal.
  • radio frequency connection can be performed between various Bluetooth devices through the Bluetooth protocol stack structure.
  • Bluetooth Audio Transmission Model Protocol Advanced Audio Distribution Profile (A2DP for short) is an audio transmission protocol of Bluetooth, which is applied to Bluetooth devices and defines the parameter negotiation, establishment and transmission process of data stream handles between Bluetooth devices, and the form of signaling entities exchanged with each other. Therefore, multiple channels using the Bluetooth audio transmission model protocol can be virtualized through the Bluetooth protocol stack.
  • A2DP Advanced Audio Distribution Profile
  • the connection unit 5 is used for correspondingly connecting the plurality of virtual Bluetooth audio transmission model protocol channels with a plurality of external Bluetooth speakers.
  • the bluetooth speaker has a built-in bluetooth chip, and the wire connection is replaced by the bluetooth connection. Therefore, by invoking the Bluetooth protocol construction unit 4 and the connection unit 5, the connection between the Bluetooth protocol stack of the mobile terminal and the plurality of Bluetooth speakers corresponding to the Bluetooth protocol can be realized.
  • the audio information sending unit 6 is configured to send the parsed audio information to the multiple channels in the audio manager.
  • the parsed audio information includes four channels, so four A2DP protocol channels can be virtualized through the Bluetooth protocol stack to connect respectively corresponding to the four Bluetooth speakers.
  • the audio information may also include three channels, five channels, or multiple channels, so a corresponding number of A2DP protocol channels and external multi-channel channels can also be virtualized through the Bluetooth protocol stack.
  • a bluetooth speaker corresponds to the connection.
  • a time-division multiplexing method can be used to transmit the audio information of the corresponding protocol channel respectively.
  • the synchronization detection unit 7 is used to perform synchronization detection on the plurality of Bluetooth speakers.
  • the synchronization detection unit 7 includes: a delay acquisition unit 9 , a delay time determination unit 10 and a delay time configuration unit 11 .
  • the delay obtaining unit 9 is used to obtain the delay times of the plurality of Bluetooth speakers. Specifically, each Bluetooth speaker can be tested for playing audio, and the sound can be collected by the microphone of the mobile phone, so as to obtain the delay time of the corresponding Bluetooth speaker.
  • the delay time determining unit 10 is configured to determine the longest delay time according to the obtained delay times of the plurality of Bluetooth speakers. Since the delay times of multiple Bluetooth speakers are different, it is necessary to determine the longest delay time. In this example, the number of the Bluetooth speakers is four. Therefore, it is necessary to perform audio playback tests on the four Bluetooth speakers and obtain the delay time of the corresponding Bluetooth speakers.
  • the delay time configuration unit 11 is configured to configure the longest delay time as the delay time of audio playback. In the embodiment of the present application, by configuring the longest delay time as the delay time of audio playback, the phenomenon that the audio signals of multiple Bluetooth speakers are delayed can be avoided.
  • the audio information playing unit 8 is configured to play the audio information in the multiple channels through the multiple Bluetooth speakers. By transmitting the audio information in multiple channels (for example, four channels) to the corresponding Bluetooth speakers, and playing.
  • the system described in the present application constructs multiple channels through the audio manager in the mobile terminal system framework, and then constructs multiple virtual Bluetooth audio transmission model protocol channels through the Bluetooth protocol stack of the mobile terminal, Each virtual Bluetooth audio transmission model protocol channel is correspondingly connected to multiple external Bluetooth speakers, so that the audio information in the multiple channels is played through the multiple Bluetooth speakers, so that one mobile terminal can control multiple Bluetooth speakers.
  • Bluetooth Speaker constructs multiple channels through the audio manager in the mobile terminal system framework, and then constructs multiple virtual Bluetooth audio transmission model protocol channels through the Bluetooth protocol stack of the mobile terminal, Each virtual Bluetooth audio transmission model protocol channel is correspondingly connected to multiple external Bluetooth speakers, so that the audio information in the multiple channels is played through the multiple Bluetooth speakers, so that one mobile terminal can control multiple Bluetooth speakers.
  • a mobile terminal is also provided, and the mobile terminal may be a device such as a smart phone or a tablet computer.
  • the mobile terminal 200 includes a processor 201 and a memory 202 .
  • the processor 201 is electrically connected to the memory 202 .
  • the processor 201 is the control center of the mobile terminal 200, uses various interfaces and lines to connect various parts of the entire mobile terminal, executes the mobile application by running or loading the application program stored in the memory 202, and calling the data stored in the memory 202. Various functions of the terminal and processing data, so as to monitor the mobile terminal as a whole.
  • the mobile terminal 200 is provided with multiple storage partitions, and the multiple storage partitions include a system partition and a target partition.
  • the instructions corresponding to the process of the program are loaded into the memory 202, and the processor 201 runs the application program stored in the memory 202, thereby realizing various functions:
  • FIG. 5 shows a specific structural block diagram of a mobile terminal provided by an embodiment of the present application, and the mobile terminal can be used to implement the control method of the Bluetooth speaker provided in the above-mentioned embodiment.
  • the mobile terminal 300 can be a smart phone or a tablet computer.
  • the mobile terminal may further include the following components, the RF circuit 310 is used for receiving and transmitting electromagnetic waves, realizing mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices.
  • RF circuitry 310 may include various existing circuit elements for performing these functions, eg, antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, subscriber identity module (SIM) cards, memory, and the like.
  • SIM subscriber identity module
  • the RF circuit 310 may communicate with various networks such as the Internet, an intranet, a wireless network, or with other devices over a wireless network.
  • the aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to the Global System for Mobile Communications (Global System for Mobile Communication, GSM), Enhanced Mobile Communication Technology (Enhanced Data GSM Environment, EDGE), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), code division multiple access technology (Code Division Access, CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wireless Fidelity, Wi-Fi) (e.g.
  • IEEE 802.11a Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n
  • Internet telephony VoIP over Internet Protocol, VoIP
  • Worldwide Interconnection for Microwave Access Worldwide Interoperability for Microwave Access, Wi-Max
  • other protocols for mail, instant messaging, and short messaging and any other suitable communication protocols, even those that are not currently being developed.
  • the memory 320 can be used to store software programs and modules, such as program instructions/modules corresponding to the control method of the Bluetooth speaker in the above-mentioned embodiment, the processor 380 executes various functional applications and modules by running the software programs and modules stored in the memory 320. Data processing is the function of realizing the control method of the Bluetooth speaker.
  • Memory 320 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 320 may further include memory disposed remotely with respect to the processor 380, and these remote memories may be connected to the mobile terminal 300 through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the input unit 330 may be used to receive input numerical or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332 .
  • Touch-sensitive surface 331 also known as a touch display or trackpad, collects user touch operations on or near it (such as a user using a finger, stylus, etc., any suitable object or accessory on or on touch-sensitive surface 331). operation near the touch-sensitive surface 331), and drive the corresponding connection device according to a preset program.
  • the touch-sensitive surface 331 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller.
  • the touch-sensitive surface 331 may be implemented using resistive, capacitive, infrared, and surface acoustic wave types.
  • the input unit 330 may also include other input devices 332 .
  • other input devices 332 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 340 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 300, which may be composed of graphics, text, icons, videos, and any combination thereof.
  • the display unit 340 may include a display panel 341, and optionally, an LCD (Liquid
  • the display panel 341 is configured in the form of Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light emitting diode), etc.
  • the touch-sensitive surface 331 may cover the display panel 341. When the touch-sensitive surface 331 detects a touch operation on or near it, it transmits it to the processor 380 to determine the type of the touch event, and then the processor 380 determines the type of the touch event according to the touch event.
  • Type provides corresponding visual output on display panel 341 .
  • the touch-sensitive surface 331 and the display panel 341 are implemented as two separate components to realize the input and output functions, in some embodiments, the touch-sensitive surface 331 and the display panel 341 may be integrated to realize the input and output functions.
  • the mobile terminal 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 341 according to the brightness of the ambient light, and the proximity sensor may close the display panel 341 when the mobile terminal 300 is moved to the ear and/or backlight.
  • the gravitational acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary.
  • the audio circuit 360 , the speaker 361 , and the microphone 362 may provide an audio interface between the user and the mobile terminal 300 .
  • the audio circuit 360 can transmit the received audio data converted electrical signal to the speaker 361, and the speaker 361 converts it into a sound signal for output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 360 After receiving, it is converted into audio data, and then the audio data is output to the processor 380 for processing, and then sent to, for example, another terminal through the RF circuit 310, or the audio data is output to the memory 320 for further processing.
  • the audio circuit 360 may also include an earphone jack to provide communication between peripheral headphones and the mobile terminal 300 .
  • the mobile terminal 300 can help the user to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 370 (eg, a Wi-Fi module), and it provides the user with wireless broadband Internet access.
  • the transmission module 370 eg, a Wi-Fi module
  • FIG. 5 shows the transmission module 370, it can be understood that it is not a necessary component of the mobile terminal 300, and can be completely omitted as required without changing the essence of the invention.
  • the processor 380 is the control center of the mobile terminal 300, uses various interfaces and lines to connect various parts of the entire mobile phone, runs or executes the software programs and/or modules stored in the memory 320, and calls the data stored in the memory 320. , perform various functions of the mobile terminal 300 and process data, so as to monitor the mobile phone as a whole.
  • the processor 380 may include one or more processing cores; in some embodiments, the processor 380 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface and Applications, etc., the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 380 .
  • the mobile terminal 300 also includes a power source 390 (such as a battery) for powering various components.
  • the power source can be logically connected to the processor 380 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. management and other functions.
  • Power supply 390 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.
  • the mobile terminal 300 may further include a camera (eg, a front camera, a rear camera), a Bluetooth module, and the like, which will not be repeated here.
  • the display unit of the mobile terminal is a touch screen display
  • the mobile terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be displayed by one or more programs.
  • the above processor executing one or more programs contains instructions for:
  • the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities.
  • the specific implementation of the above modules can refer to the previous method embodiments, which will not be repeated here.
  • the embodiments of the present application provide a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any of the methods for controlling a Bluetooth speaker provided by the embodiments of the present application.
  • the storage medium may include: a read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD, etc.
  • ROM Read Only Memory
  • RAM Random Access Memory
  • CD Compact Disc
  • any method for controlling a Bluetooth speaker provided by the embodiments of the present application can be executed, and therefore, any method for controlling a Bluetooth speaker provided by the embodiments of the present application can be implemented.
  • any method for controlling a Bluetooth speaker provided by the embodiments of the present application can be implemented.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Stereophonic System (AREA)

Abstract

本申请公开了一种蓝牙音箱的控制方法及系统、存储介质及移动终端。本申请所述方法通过所述移动终端系统框架中的音频管理器构建多个声道,再通过所述移动终端的蓝牙协议栈构建多个虚拟蓝牙音频传输模型协议通道,将所述多个虚拟蓝牙音频传输模型协议通道与外部的多个蓝牙音箱对应连接,使得所述多个声道中的所述音频信息通过所述多个蓝牙音箱进行播放。另外所述方法对所述多个蓝牙音箱进行同步检测,以避免多个蓝牙音箱的音频信号发生延迟的现象

Description

蓝牙音箱的控制方法及系统、存储介质及移动终端
本申请要求于2020年09月04日提交中国专利局、申请号为202010924318.4、发明名称为“蓝牙音箱的控制方法及系统、存储介质及移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术,尤其涉及一种蓝牙音箱的控制方法及系统、存储介质及移动终端。
背景技术
目前家庭剧院的概念在一般人的印象中代表昂贵、需要布线、沉重,至少需要播放器(一般为DVD机)、功放、5.1声道音响及大量的线。
随着控制终端和无线传输技术的发展,无线音箱正变得越来越普及,使得任意房间都能成为随心所欲享受音乐的场所。在由无线音箱组成的无线音乐系统中,一般由多个无线音箱组成。这些音箱可以放置在家中的多个地方,如有的放置在客厅,有的放置在卧室,有的放置在书房等等。这些无线音箱可通过无线传输技术实现相互连接通信。
目前,如果通过移动终端控制无线音箱的数量受到限制,仅为一台。因此无法使得用户能够享受到多个音箱(例如4个音箱)所具有的多声道音响效果。
此外,由于音频信号在无线传输过程中需要编码、解码,而音频信号编码、解码的过程均需要一定的时间,因此在播放相应的音频信号时,会出现音频信号延迟的现象,影响用户的听觉效果和体验。
技术问题
本申请实施例提供一种蓝牙音箱的控制方法及系统、存储介质及移动终端,不仅有效解决了移动终端不能同时连接多个音箱,而且还解决了通过蓝牙连接多个音箱,存在音频播放延迟的问题。
技术解决方案
根据本申请的一方面,本申请一实施例提供一种蓝牙音箱的控制方法,所述控制方法包括步骤:获取一音频信息;对所述音频信息进行解析;通过所述移动终端系统框架中的音频管理器构建多个声道;通过所述移动终端的蓝牙协议栈构建多个虚拟蓝牙音频传输模型协议通道;将所述多个虚拟蓝牙音频传输模型协议通道与外部的多个蓝牙音箱对应连接;将解析后的所述音频信息发送到所述音频管理器中的所述多个声道中;以及将所述多个声道中的所述音频信息通过所述多个蓝牙音箱进行播放。
进一步地,所述方法还包括步骤:对所述多个蓝牙音箱进行同步检测。
进一步地,在对所述多个蓝牙音箱进行同步检测的步骤中,还包括步骤:获取所述多个蓝牙音箱的延迟时间。
进一步地,在对所述多个蓝牙音箱进行同步检测的步骤中,还包括步骤:根据所获得的所述多个蓝牙音箱的延迟时间以判断出最长的延迟时间;将最长的延迟时间配置为音频播放的延迟时间。
根据本申请的另一方面,本申请一实施例提供一种蓝牙音箱的控制系统,所述蓝牙音箱的控制系统包括:一音频获取单元,用于获取一音频信息;一音频解析单元,用于对所述音频信息进行解析;一声道构建单元,用于通过所述移动终端系统框架中的音频管理器构建多个声道;一蓝牙协议构建单元,用于通过所述移动终端的蓝牙协议栈构建多个虚拟蓝牙音频传输模型协议通道;一连接单元,用于将所述多个虚拟蓝牙音频传输模型协议通道与外部的多个蓝牙音箱对应连接;一音频信息发送单元,用于将解析后的所述音频信息发送到所述音频管理器中的所述多个声道中;以及一音频信息播放单元,用于将所述多个声道中的所述音频信息通过所述多个蓝牙音箱进行播放。
进一步地,所述系统还包括:一同步检测单元,用于对所述多个蓝牙音箱进行同步检测。
进一步地,所述同步检测单元包括:一延迟获取单元,用于获取所述多个蓝牙音箱的延迟时间。
进一步地,所述同步检测单元还包括:一延迟时间判断单元,用于根据所获得的所述多个蓝牙音箱的延迟时间以判断出最长的延迟时间;一延时时间配置单元,用于将最长的延迟时间配置为音频播放的延迟时间。
根据本申请的又一方面,本申请实施例提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行上述任一所述的蓝牙音箱的控制方法。
根据本申请的又一方面,本申请实施例提供一种移动终端,包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行上述任一项所述的蓝牙音箱的控制方法中的步骤。
有益效果
本申请的优点在于,相较于现有技术,本申请所述方法通过所述移动终端系统框架中的音频管理器构建多个声道,再通过所述移动终端的蓝牙协议栈构建多个虚拟蓝牙音频传输模型协议通道,将所述多个虚拟蓝牙音频传输模型协议通道与外部的多个蓝牙音箱对应连接,使得所述多个声道中的所述音频信息通过所述多个蓝牙音箱进行播放。另外所述方法对所述多个蓝牙音箱进行同步检测,以避免多个蓝牙音箱的音频信号发生延迟的现象。
附图说明
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其它有益效果显而易见。
图1为本申请一实施例提供的一种蓝牙音箱的控制方法的步骤流程图。
图2为本申请所述实施例步骤S170的子步骤流程图。
图3为本申请一实施例提供的一种蓝牙音箱的控制系统结构示意图。
图4为本申请一实施例提供的一种移动终端的结构示意图。
图5为本申请一实施例提供的另一种移动终端的结构示意图。
本发明的实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
如图1所示,为本申请一实施例提供的蓝牙音箱的控制方法的步骤流程图。所述蓝牙音箱的控制方法适用于一移动终端,该控制方法包括步骤:
步骤S110:获取一音频信息。
在本申请实施例中,所述音频信息是指自然界中各种音源发出的可闻声和由计算机通过专门设备合成的语音或音乐。
步骤S120:对所述音频信息进行解析。
在本申请实施例中,当播放音视频源时,会调用移动终端(例如安卓手机)的系统架构层中的媒体解码器,对所述音频信息解码。
步骤S130:通过所述移动终端系统框架中的音频管理器构建多个声道。
在本申请所述实施例中,所述声道是指声音在录制或播放时在不同空间位置采集或回放的相互独立的音频信号,因此所述声道的数量也就是声音录制时的音源数量或回放时相应的扬声器数量。具体的,例如,将获得的立体声通过音频管理器的上混模块的上混音算法处理,并经过延时模块、低通滤波模块及移相模块输出以形成四声道。又例如,将获得的5.1声道通过音频管理器的下混模块上混音算法处理后形成相应的四声道。
步骤S140:通过所述移动终端的蓝牙协议栈构建多个虚拟蓝牙音频传输模型协议通道。
在本申请所述实施例中,通过蓝牙协议栈构能够使各个蓝牙设备之间进行射频连接。蓝牙音频传输模型协议(Advanced Audio Distribution Profile,简称A2DP)是蓝牙的音频传输协议,应用于蓝牙设备,定义了蓝牙设备之间数据流句柄的参数协商,建立和传输过程以及相互交换的信令实体形式。因此,通过蓝牙协议栈能够虚拟出多个采用蓝牙音频传输模型协议的通道。
步骤S150:将所述多个虚拟蓝牙音频传输模型协议通道与外部的多个蓝牙音箱对应连接。
在本申请所述实施例中,所述蓝牙音箱内置蓝牙芯片,以蓝牙连接取代线材连接。因此,通过步骤S140和步骤S150的实施,能够实现移动终端的蓝牙协议栈通过蓝牙协议与多个蓝牙音箱相对应的连接。
步骤S160:将解析后的所述音频信息发送到所述音频管理器中的所述多个声道中。
在本实施例中,所述解析后的所述音频信息包括四个声道,于是可以通过蓝牙协议栈虚拟出四个A2DP协议通道分别与四个蓝牙音箱相对应的连接。当然在其他部分实施中,所述音频信息也可以包括三个声道、五个声道、或多个声道的,于是也可以通过蓝牙协议栈虚拟出相应数量的A2DP协议通道与外部的多个蓝牙音箱对应连接。进一步,可以采用分时多工的方式,分别传输其对应协议通道的音频信息。
步骤S170:对所述多个蓝牙音箱进行同步检测。
在本实施例中,对所述多个蓝牙音箱进行同步检测,以避免多个蓝牙音箱的音频信号发生延迟的现象。具体操作包括如下步骤:
结合参阅图2。
步骤S171:获取所述多个蓝牙音箱的延迟时间。
在此步骤中,可以分别对每个蓝牙音箱进行播放音频的测试,并用手机麦克风采集该声音,从而得到相应蓝牙音箱的延迟时间。
步骤S172:根据所获得的所述多个蓝牙音箱的延迟时间以判断出最长的延迟时间。
由于多个蓝牙音箱的延迟时间不同,因此,需要判断出最长的延迟时间。在本实例中,所述蓝牙音箱的数量为四个,因此,需要分别对四个蓝牙音箱进行播放音频的测试以及获取相应蓝牙音箱的延迟时间。
步骤S173:将最长的延迟时间配置为音频播放的延迟时间。
在此步骤中,通过将最长的延迟时间配置为音频播放的延迟时间,可以避免多个蓝牙音箱的音频信号发生延迟的现象。
继续参阅图1,步骤S180:将所述多个声道中的所述音频信息通过所述多个蓝牙音箱进行播放。
在此步骤中,通过将多个声道(例如四声道)中的所述音频信息传送至相应的蓝牙音箱,并进行播放。
本申请所述方法通过上述步骤S110至步骤S180的实施能够实现一个移动终端控制多个蓝牙音箱。此外,所述方法对所述多个蓝牙音箱进行同步检测,以避免多个蓝牙音箱的音频信号发生延迟的现象。
本申请的优点在于,相较于现有技术,本申请所述方法通过所述移动终端系统框架中的音频管理器构建多个声道,再通过所述移动终端的蓝牙协议栈构建多个虚拟蓝牙音频传输模型协议通道,将所述多个虚拟蓝牙音频传输模型协议通道与外部的多个蓝牙音箱对应连接,使所述多个声道中的所述音频信息通过所述多个蓝牙音箱进行播放。另外所述方法对所述多个蓝牙音箱进行同步检测,以避免多个蓝牙音箱的音频信号发生延迟的现象。
如图3所示,为本申请实施例提供的蓝牙音箱的控制系统结构示意图,包括:一音频获取单元1、一音频解析单元2、一声道构建单元3、一蓝牙协议构建单元4、一连接单元5、一音频信息发送单元6、一音频信息播放单元8及一同步检测单元7。
所述音频获取单元1用于获取一音频信息。在本申请实施例中,所述音频信息是指自然界中各种音源发出的可闻声和由计算机通过专门设备合成的语音或音乐。
所述音频解析单元2用于对所述音频信息进行解析。在本申请实施例中,当播放音视频源时,会调用移动终端(例如安卓手机)的系统架构层中的媒体解码器,对所述音频信息解码。
所述声道构建单元3用于通过所述移动终端系统框架中的音频管理器构建多个声道。在本申请所述实施例中,所述声道是指声音在录制或播放时在不同空间位置采集或回放的相互独立的音频信号,因此所述声道的数量也就是声音录制时的音源数量或回放时相应的扬声器数量。
所述蓝牙协议构建单元4用于通过所述移动终端的蓝牙协议栈构建多个虚拟蓝牙音频传输模型协议通道。在本申请所述实施例中,通过蓝牙协议栈构能够使各个蓝牙设备之间进行射频连接。蓝牙音频传输模型协议(Advanced Audio Distribution Profile,简称A2DP)是蓝牙的音频传输协议,应用于蓝牙设备,定义了蓝牙设备之间数据流句柄的参数协商,建立和传输过程以及相互交换的信令实体形式。因此,通过蓝牙协议栈能够虚拟出多个采用蓝牙音频传输模型协议的通道。
所述连接单元5用于将所述多个虚拟蓝牙音频传输模型协议通道与外部的多个蓝牙音箱对应连接。在本实施例中,所述蓝牙音箱内置蓝牙芯片,以蓝牙连接取代线材连接。因此,通过调用蓝牙协议构建单元4和连接单元5,能够实现移动终端的蓝牙协议栈通过蓝牙协议与多个蓝牙音箱相对应的连接。
所述音频信息发送单元6用于将解析后的所述音频信息发送到所述音频管理器中的所述多个声道中。在本申请实施例中,所述解析后的所述音频信息包括四个声道,于是可以通过蓝牙协议栈虚拟出四个A2DP协议通道分别与四个蓝牙音箱相对应的连接。当然在其他部分实施中,所述音频信息也可以包括三个声道、五个声道、或多个声道的,于是也可以通过蓝牙协议栈虚拟出相应数量的A2DP协议通道与外部的多个蓝牙音箱对应连接。进一步,可以采用分时多工的方式,分别传输其对应协议通道的音频信息。
所述同步检测单元7用于对所述多个蓝牙音箱进行同步检测。所述同步检测单元7包括:一延迟获取单元9、一延迟时间判断单元10及一延时时间配置单元11。
所述延迟获取单元9用于获取所述多个蓝牙音箱的延迟时间。具体地,可以分别对每个蓝牙音箱进行播放音频的测试,并用手机麦克风采集该声音,从而得到相应蓝牙音箱的延迟时间。
所述延迟时间判断单元10用于根据所获得的所述多个蓝牙音箱的延迟时间以判断出最长的延迟时间。由于多个蓝牙音箱的延迟时间不同,因此,需要判断出最长的延迟时间。在本实例中,所述蓝牙音箱的数量为四个,因此,需要分别对四个蓝牙音箱进行播放音频的测试以及获取相应蓝牙音箱的延迟时间。
所述延时时间配置单元11用于将最长的延迟时间配置为音频播放的延迟时间。在本申请实施例中,通过将最长的延迟时间配置为音频播放的延迟时间,可以避免多个蓝牙音箱的音频信号发生延迟的现象。
所述音频信息播放单元8用于将所述多个声道中的所述音频信息通过所述多个蓝牙音箱进行播放。通过将多个声道(例如四声道)中的所述音频信息传送至相应的蓝牙音箱,并进行播放。
因此,本申请所述系统通过所述移动终端系统框架中的音频管理器构建多个声道,再通过所述移动终端的蓝牙协议栈构建多个虚拟蓝牙音频传输模型协议通道,将所述多个虚拟蓝牙音频传输模型协议通道与外部的多个蓝牙音箱对应连接,使所述多个声道中的所述音频信息通过所述多个蓝牙音箱进行播放,从而能够实现一个移动终端控制多个蓝牙音箱。
另外,在本申请的一实施例中,还提供一种移动终端,该移动终端可以是智能手机、平板电脑等设备。具体地,如图4所示,移动终端200包括处理器201和存储器202。其中,处理器201与存储器202电性连接。
处理器201是移动终端200的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或加载存储在存储器202内的应用程序,以及调用存储在存储器202内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。
在本实施例中,该移动终端200设有多个存储分区,该多个存储分区包括系统分区和目标分区,移动终端200中的处理器201会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器202中,并由处理器201来运行存储在存储器202中的应用程序,从而实现各种功能:
获取一音频信息;
对所述音频信息进行解析;
通过所述移动终端系统框架中的音频管理器构建多个声道;
通过所述移动终端的蓝牙协议栈构建多个虚拟蓝牙音频传输模型协议通道;
将所述多个虚拟蓝牙音频传输模型协议通道与外部的多个蓝牙音箱对应连接;
将解析后的所述音频信息发送到所述音频管理器中的所述多个声道中;以及
将所述多个声道中的所述音频信息通过所述多个蓝牙音箱进行播放。
图5示出了本申请实施例提供的移动终端的具体结构框图,该移动终端可以用于实施上述实施例中提供的蓝牙音箱的控制方法。该移动终端300可以为智能手机或平板电脑。另外,所述移动终端还可以包括以下部件,RF电路310用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。RF电路310可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路310可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication, GSM)、增强型移动通信技术(Enhanced Data GSM Environment, EDGE),宽带码分多址技术(Wideband Code Division Multiple Access, WCDMA),码分多址技术(Code Division Access, CDMA)、时分多址技术(Time Division Multiple Access, TDMA),无线保真技术(Wireless Fidelity, Wi-Fi)(如美国电气和电子工程师协会标准 IEEE 802.11a, IEEE 802.11b, IEEE802.11g 和/或 IEEE 802.11n)、网络电话(Voice over Internet Protocol, VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access, Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。
存储器320可用于存储软件程序以及模块,如上述实施例中蓝牙音箱的控制方法对应的程序指令/模块,处理器380通过运行存储在存储器320内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现蓝牙音箱的控制方法的功能。存储器320可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器320可进一步包括相对于处理器380远程设置的存储器,这些远程存储器可以通过网络连接至移动终端300。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入单元330可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元330可包括触敏表面331以及其他输入设备332。触敏表面331,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面331上或在触敏表面331附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面331可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器380,并能接收处理器380发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面331。除了触敏表面331,输入单元330还可以包括其他输入设备332。具体地,其他输入设备332可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元340可用于显示由用户输入的信息或提供给用户的信息以及移动终端300的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元340可包括显示面板341,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板341。进一步的,触敏表面331可覆盖显示面板341,当触敏表面331检测到在其上或附近的触摸操作后,传送给处理器380以确定触摸事件的类型,随后处理器380根据触摸事件的类型在显示面板341上提供相应的视觉输出。虽然在图4中,触敏表面331与显示面板341是作为两个独立的部件来实现输入和输出功能,但是在某些实施例中,可以将触敏表面331与显示面板341集成而实现输入和输出功能。
移动终端300还可包括至少一种传感器350,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板341的亮度,接近传感器可在移动终端300移动到耳边时,关闭显示面板341和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等; 至于移动终端300还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路360、扬声器361,传声器362可提供用户与移动终端300之间的音频接口。音频电路360可将接收到的音频数据转换后的电信号,传输到扬声器361,由扬声器361转换为声音信号输出;另一方面,传声器362将收集的声音信号转换为电信号,由音频电路360接收后转换为音频数据,再将音频数据输出处理器380处理后,经RF电路310以发送给比如另一终端,或者将音频数据输出至存储器320以便进一步处理。音频电路360还可能包括耳塞插孔,以提供外设耳机与移动终端300的通信。
移动终端300通过传输模块370(例如Wi-Fi模块)可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了传输模块370,但是可以理解的是,其并不属于移动终端300的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器380是移动终端300的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器320内的软件程序和/或模块,以及调用存储在存储器320内的数据,执行移动终端300的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器380可包括一个或多个处理核心;在一些实施例中,处理器380可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器380中。
移动终端300还包括给各个部件供电的电源390(比如电池),在一些实施例中,电源可以通过电源管理系统与处理器380逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源390还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
尽管未示出,移动终端300还可以包括摄像头(如前置摄像头、后置摄像头)、蓝牙模块等,在此不再赘述。具体在本实施例中,移动终端的显示单元是触摸屏显示器,移动终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行一个或者一个以上程序包含用于进行以下操作的指令:
获取一音频信息;
对所述音频信息进行解析;
通过所述移动终端系统框架中的音频管理器构建多个声道;
通过所述移动终端的蓝牙协议栈构建多个虚拟蓝牙音频传输模型协议通道;
将所述多个虚拟蓝牙音频传输模型协议通道与外部的多个蓝牙音箱对应连接;
将解析后的所述音频信息发送到所述音频管理器中的所述多个声道中;以及
将所述多个声道中的所述音频信息通过所述多个蓝牙音箱进行播放。
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。
为此,本申请实施例提供一种存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本申请实施例所提供的任一种蓝牙音箱的控制方法中的步骤。
其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
由于该存储介质中所存储的指令,可以执行本申请实施例所提供的任一种蓝牙音箱的控制方法中的步骤,因此,可以实现本申请实施例所提供的任一种蓝牙音箱的控制方法所能实现的有益效果,详见前面的实施例,在此不再赘述。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的技术方案及其核心思想;本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例的技术方案的范围。

Claims (10)

  1. 一种蓝牙音箱的控制方法,适用于一移动终端,其中所述蓝牙音箱的控制方法包括步骤:
    获取一音频信息;
    对所述音频信息进行解析;
    通过所述移动终端系统框架中的音频管理器构建多个声道;
    通过所述移动终端的蓝牙协议栈构建多个虚拟蓝牙音频传输模型协议通道;
    将所述多个虚拟蓝牙音频传输模型协议通道与外部的多个蓝牙音箱对应连接;
    将解析后的所述音频信息发送到所述音频管理器中的所述多个声道中;以及
    将所述多个声道中的所述音频信息通过所述多个蓝牙音箱进行播放。
  2. 根据权利要求1所述的蓝牙音箱的控制方法,其中所述方法还包括步骤:
    对所述多个蓝牙音箱进行同步检测。
  3. 根据权利要求2所述的蓝牙音箱的控制方法,其中在对所述多个蓝牙音箱进行同步检测的步骤中,还包括步骤:
    获取所述多个蓝牙音箱的延迟时间。
  4. 根据权利要求3所述的蓝牙音箱的控制方法,其中在对所述多个蓝牙音箱进行同步检测的步骤中,还包括步骤:
    根据所获得的所述多个蓝牙音箱的延迟时间以判断出最长的延迟时间;
    将最长的延迟时间配置为音频播放的延迟时间。
  5. 一种蓝牙音箱的控制系统,适用于一移动终端,其中所述蓝牙音箱的控制系统包括:
    一音频获取单元,用于获取一音频信息;
    一音频解析单元,用于对所述音频信息进行解析;
    一声道构建单元,用于通过所述移动终端系统框架中的音频管理器构建多个声道;
    一蓝牙协议构建单元,用于通过所述移动终端的蓝牙协议栈构建多个虚拟蓝牙音频传输模型协议通道;
    一连接单元,用于将所述多个虚拟蓝牙音频传输模型协议通道与外部的多个蓝牙音箱对应连接;
    一音频信息发送单元,用于将解析后的所述音频信息发送到所述音频管理器中的所述多个声道中;以及
    一音频信息播放单元,用于将所述多个声道中的所述音频信息通过所述多个蓝牙音箱进行播放。
  6. 根据权利要求5所述的蓝牙音箱的控制系统,其中所述系统还包括:
    一同步检测单元,用于对所述多个蓝牙音箱进行同步检测。
  7. 根据权利要求6所述的蓝牙音箱的控制系统,其中所述同步检测单元包括:
    一延迟获取单元,用于获取所述多个蓝牙音箱的延迟时间。
  8. 根据权利要求6所述的蓝牙音箱的控制系统,其中所述同步检测单元还包括:
    一延迟时间判断单元,用于根据所获得的所述多个蓝牙音箱的延迟时间以判断出最长的延迟时间;
    一延时时间配置单元,用于将最长的延迟时间配置为音频播放的延迟时间。
  9. 一种存储介质,其特征在于,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行权利要求1所述的蓝牙音箱的控制方法。
  10. 一种移动终端,其特征在于,包括处理器和存储器,所述处理器与所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行权利要求1所述的蓝牙音箱的控制方法中的步骤。
PCT/CN2020/128776 2020-09-04 2020-11-13 蓝牙音箱的控制方法及系统、存储介质及移动终端 WO2022048020A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US18/043,907 US20230370774A1 (en) 2020-09-04 2020-11-13 Bluetooth speaker control method and system, storage medium, and mobile terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010924318.4A CN112055286A (zh) 2020-09-04 2020-09-04 蓝牙音箱的控制方法及系统、存储介质及移动终端
CN202010924318.4 2020-09-04

Publications (1)

Publication Number Publication Date
WO2022048020A1 true WO2022048020A1 (zh) 2022-03-10

Family

ID=73608364

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/128776 WO2022048020A1 (zh) 2020-09-04 2020-11-13 蓝牙音箱的控制方法及系统、存储介质及移动终端

Country Status (3)

Country Link
US (1) US20230370774A1 (zh)
CN (1) CN112055286A (zh)
WO (1) WO2022048020A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115664468B (zh) * 2022-09-21 2023-11-21 深圳市酷开网络科技股份有限公司 蓝牙播放设备的数据传输方法、装置、终端设备及介质
CN116170039A (zh) * 2023-02-10 2023-05-26 潍坊歌尔丹拿电子科技有限公司 音频播放控制方法、装置、设备及存储介质
CN116760497A (zh) * 2023-03-30 2023-09-15 海信视像科技股份有限公司 显示系统及音频广播方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465910A (zh) * 2009-01-12 2009-06-24 深圳华为通信技术有限公司 基于移动终端的立体声播放控制方法、终端与系统
US20120058727A1 (en) * 2010-09-02 2012-03-08 Passif Semiconductor Corp. Un-tethered wireless stereo speaker system
CN105898503A (zh) * 2016-04-25 2016-08-24 乐视控股(北京)有限公司 移动终端的播放控制方法、装置和系统
US20160286330A1 (en) * 2015-03-23 2016-09-29 Bose Corporation Augmenting existing acoustic profiles
CN107864432A (zh) * 2017-10-25 2018-03-30 努比亚技术有限公司 蓝牙音箱连接管理方法、终端及计算机可读存储介质
CN109089330A (zh) * 2018-08-23 2018-12-25 维沃移动通信有限公司 一种音频数据传输方法及终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10681479B2 (en) * 2015-01-30 2020-06-09 Cassia Networks Inc. Methods, devices and systems for bluetooth audio transmission
CN108200495A (zh) * 2018-01-23 2018-06-22 恒玄科技(上海)有限公司 一种实现蓝牙耳机同步播放的方法
CN111343620A (zh) * 2020-02-28 2020-06-26 捷开通讯(深圳)有限公司 多设备音频播放校正方法,装置及其终端

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465910A (zh) * 2009-01-12 2009-06-24 深圳华为通信技术有限公司 基于移动终端的立体声播放控制方法、终端与系统
US20120058727A1 (en) * 2010-09-02 2012-03-08 Passif Semiconductor Corp. Un-tethered wireless stereo speaker system
US20160286330A1 (en) * 2015-03-23 2016-09-29 Bose Corporation Augmenting existing acoustic profiles
CN105898503A (zh) * 2016-04-25 2016-08-24 乐视控股(北京)有限公司 移动终端的播放控制方法、装置和系统
CN107864432A (zh) * 2017-10-25 2018-03-30 努比亚技术有限公司 蓝牙音箱连接管理方法、终端及计算机可读存储介质
CN109089330A (zh) * 2018-08-23 2018-12-25 维沃移动通信有限公司 一种音频数据传输方法及终端

Also Published As

Publication number Publication date
US20230370774A1 (en) 2023-11-16
CN112055286A (zh) 2020-12-08

Similar Documents

Publication Publication Date Title
WO2017215512A1 (zh) 音频流处理方法及相关设备
WO2022048020A1 (zh) 蓝牙音箱的控制方法及系统、存储介质及移动终端
JP6373576B2 (ja) 端末装置及び制御方法
WO2017215639A1 (zh) 音效配置方法、系统及相关设备
WO2018032455A1 (zh) 一种蓝牙通信的方法及终端
US10616700B2 (en) Method and system for a game headset with audio alerts based on audio track analysis
CN115175043A (zh) 应用于tws耳机单双耳切换的音频数据传输方法及设备
WO2017181365A1 (zh) 一种耳机声道控制方法、相关设备及系统
WO2017215507A1 (zh) 一种音效处理方法及移动终端
WO2021147718A1 (zh) 音频传输方法及电子设备
WO2022083711A1 (zh) 电子设备及其控制方法、控制装置
CN109379490B (zh) 音频播放方法、装置、电子设备及计算机可读介质
CN108810860B (zh) 一种音频传输方法、终端设备及主耳机
WO2021136141A1 (zh) 播放方法及电子设备
WO2017215661A1 (zh) 一种场景音效的控制方法、及电子设备
WO2024021736A1 (zh) 蓝牙多媒体包的传输方法、装置、设备和系统
US20170102914A1 (en) Electronic device and audio ouputting method thereof
WO2024055494A1 (zh) 基于蓝牙耳机的通话方法、装置及存储介质
CN111641916A (zh) 音频共享方法及电子设备
US9479858B2 (en) Method and system for electronic packaging for a headset
WO2020259295A1 (zh) 移动终端及控制方法
WO2024021735A1 (zh) 蓝牙多媒体包的传输方法、装置、设备、系统和存储介质
WO2017185602A1 (zh) 一种耳机模式切换方法和电子设备
CN109155803B (zh) 音频数据处理方法、终端设备和存储介质
CN112203116A (zh) 一种视频生成方法、播放方法及相关设备

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

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

Country of ref document: EP

Kind code of ref document: A1