[go: up one dir, main page]

CN111464989B - Audio data processing method, control device and readable storage medium - Google Patents

Audio data processing method, control device and readable storage medium Download PDF

Info

Publication number
CN111464989B
CN111464989B CN202010245546.9A CN202010245546A CN111464989B CN 111464989 B CN111464989 B CN 111464989B CN 202010245546 A CN202010245546 A CN 202010245546A CN 111464989 B CN111464989 B CN 111464989B
Authority
CN
China
Prior art keywords
control device
audio data
data
channel
audio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010245546.9A
Other languages
Chinese (zh)
Other versions
CN111464989A (en
Inventor
杨培
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202010245546.9A priority Critical patent/CN111464989B/en
Publication of CN111464989A publication Critical patent/CN111464989A/en
Application granted granted Critical
Publication of CN111464989B publication Critical patent/CN111464989B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Selective Calling Equipment (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses an audio data processing method, which comprises the following steps: based on the general specification of the low-power consumption Bluetooth protocol stack, controlling the first control device to establish an audio transmission channel with the terminal; the first control device is controlled to send a first message to the second control device, so that the second control device monitors and receives data transmitted in the audio transmission channel; the data are audio data sent to the first control device by the terminal. The invention also discloses a control device and a readable storage medium. The invention aims to reduce the time delay of audio data transmission, ensure the real-time performance of the split control equipment for playing the audio data of the terminal, and prolong the standby time of the control equipment.

Description

Audio data processing method, control device and readable storage medium
Technical Field
The present invention relates to the field of audio transmission technologies, and in particular, to an audio data processing method, a manipulation apparatus, and a readable storage medium.
Background
With the continuous development of technology and people's demands, the performances of terminals such as mobile phones and televisions are more and more diversified. For example, the playing method and operability of games carried on terminals such as mobile phones and televisions are becoming more and more abundant, and the sensory requirements of users on the devices in the process of controlling and using the devices are continuously improved, so that split-type control devices with audio playing functions are created. In the split control device, there are at least two control devices connected in wireless, so that the user can realize the cooperation control of the terminal by the left hand and the right hand or different users.
At present, when the split control device needs to play the audio data of the terminal, the split control device is generally in communication connection with the terminal through a control device, and the control device acquires the audio data from the terminal based on an A2DP protocol (Bluetooth audio transmission model protocol) and then forwards the acquired audio data to other control devices. In this way, the audio data transmission mode can be transmitted to other control devices only after the previous control device receives the audio data, and serious data transmission delay phenomenon exists, so that the real-time performance of the control device for playing the audio data of the terminal cannot be ensured; and the power consumption of the A2DP protocol for transmitting data is larger, so that the standby time of the control device is greatly reduced.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide an audio data processing method, which aims to reduce the time delay of audio data transmission, ensure the real-time performance of the split control equipment for playing the audio data of a terminal and prolong the standby time of the control equipment.
To achieve the above object, the present invention provides an audio data processing method including the steps of:
based on the general specification of the low-power consumption Bluetooth protocol stack, controlling the first control device to establish an audio transmission channel with the terminal;
the first control device is controlled to send a first message to the second control device, so that the second control device monitors and receives data transmitted in the audio transmission channel;
the data are audio data sent to the first control device by the terminal.
Optionally, after the step of controlling the first control device to send the first message to the second control device, the method further includes:
when the first control device receives the audio data, extracting part of data in the audio data as first data;
and controlling the first control device to play the first data.
Optionally, the audio data is stereo data, and the step of extracting part of the audio data as the first data includes:
acquiring a sound channel allocation rule set between the first control device and the second control device;
carrying out channel separation on the audio data to obtain first channel audio data and second channel audio data;
and extracting one of the first channel audio data and the second channel audio data as the first data according to the channel allocation rule.
Optionally, the step of controlling the first control device to play the first data includes:
acquiring state information about a receiving state of the audio data in the second manipulation apparatus;
and controlling the first control device to play the first data according to the state information.
Optionally, the first message includes configuration information of the audio transmission channel, and the step of controlling the first control device to send the first message to the second control device, so that the second control device monitors and receives data transmitted in the audio transmission channel includes:
and controlling the first control device to send a first message to the second control device, so that the second control device monitors and receives the data transmitted in the audio transmission channel according to the configuration information. Establishing an audio transmission channel with a terminal
In addition, in order to achieve the above object, the present application also proposes an audio data processing method including the steps of:
when the second control device receives a first message of the first control device, the second control device is controlled to monitor data transmitted in an audio transmission channel based on a general specification of a low-power consumption Bluetooth protocol stack;
the audio transmission channel is established between the first control device and the terminal, and the data are audio data sent by the terminal to the first control device.
Optionally, after the step of controlling the second control device to monitor the data transmitted in the audio transmission channel, the method further includes:
when the second control device receives the audio data, extracting part of data in the audio data as second data;
and controlling the second control device to play the second data.
Optionally, the step of extracting part of the audio data as the second data includes:
acquiring a sound channel allocation rule set between the first control device and the second control device;
carrying out channel separation on the audio data to obtain first channel audio data and second channel audio data;
and extracting one of the first channel audio data and the second channel audio data as second data according to the channel allocation rule.
Optionally, the first message includes configuration information of the audio transmission channel, and the step of controlling the second control device to monitor data transmitted in the audio transmission channel includes:
and controlling the second control device to monitor the data transmitted in the audio transmission channel according to the configuration information.
Optionally, the audio data processing method includes the steps of:
in the process of controlling the second control device to monitor the data transmitted in the audio transmission channel, generating state information about the receiving state of the audio data in the second control device at intervals of preset time length;
and sending the state information to the first control device so as to control the first control device to play the first data according to the state information.
In addition, in order to achieve the above object, the present application also proposes a manipulation apparatus including:
a first steering device, the first steering device comprising: the device comprises a first memory, a first processor and a first audio data processing program which is stored in the first memory and can run on the first processor, wherein the first audio data processing program realizes the following steps when being executed by the first processor:
when an audio transmission channel is established between a first control device and a terminal, the first control device is controlled to send a first message to a second control device, so that the second control device monitors and receives data transmitted in the audio transmission channel;
the data are audio data sent to the first control device by the terminal;
the second control device is in wireless communication connection with the first control device, and the second control device comprises: the second memory, the second processor and the second audio data processing program stored in the second memory and capable of running on the second processor, the second audio data processing program when executed by the second processor realizes the following steps:
when the second control device receives the first message of the first control device, the second control device is controlled to monitor the data transmitted in the audio transmission channel.
In addition, in order to achieve the above object, the present application also proposes a readable storage medium having stored thereon an audio data processing program which, when executed by a processor, implements the steps of the audio data processing method according to any one of the above.
The invention provides an audio data processing method, which is characterized in that the method controls the first control device to establish an audio transmission channel with a terminal based on the general specification of a low-power consumption Bluetooth protocol stack, and controls the first control device to send a first message to the second control device so that the second control device monitors and receives data transmitted in the audio transmission channel. Because the terminal transmits the audio data sent by the first control device through the audio transmission channel, the first control device does not need to transmit the audio data to the second control device, the second control device can synchronously receive the audio data sent by the audio data terminal by monitoring, and does not need to wait for the first control device to transmit the audio data after receiving the audio data, so that the timeliness of the audio data transmission is reduced, the real-time performance of the audio data of the terminal played by the split control device is ensured, and in addition, because the audio transmission channel between the terminal and the first control device is established based on the general specification of the low-power Bluetooth protocol stack, compared with the mode of transmitting the data by the existing A2DP protocol, the power consumption of the first control device is greatly reduced, and the standby time of the control device is prolonged.
Drawings
Fig. 1 is a schematic diagram of a hardware structure involved in the system operation formed by a control device and a terminal of the present invention;
FIG. 2 is a flow chart illustrating an embodiment of an audio data processing method according to the present invention;
FIG. 3 is a flowchart illustrating an audio data processing method according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating an audio data processing method according to another embodiment of the present invention;
fig. 5 is a schematic diagram of a refinement procedure of step S200 in fig. 4.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main solutions of the embodiments of the present invention are: based on the general specification of a low-power consumption Bluetooth protocol stack, controlling the first control device to establish an audio transmission channel with a terminal, and controlling the first control device to send a first message to a second control device so that the second control device monitors and receives data transmitted in the audio transmission channel; the data are audio data sent to the first control device by the terminal.
In the prior art, when the split control device needs to play the audio data of the terminal, the split control device is generally in communication connection with the terminal through a control device, and after the control device acquires the audio data from the terminal, the control device forwards the acquired audio data to other control devices. Therefore, in the audio data transmission mode, the audio data can be transmitted to other control devices only after the previous control device receives the audio data, and the real-time performance of the control device for playing the audio data of the terminal cannot be ensured due to the serious data transmission delay phenomenon.
The invention provides the solution, which aims to reduce the time delay of audio data transmission and ensure the real-time performance of the split control equipment for playing the audio data of the terminal.
The present invention proposes a manipulation device 1 for performing a manipulation operation on a terminal 2 connected thereto, in particular when the terminal 2 is running a specific scene (such as an application like a game). In the embodiment of the present invention, the terminal 2 specifically refers to a mobile phone. In other embodiments, the terminal 2 may also be any device with an application running environment, such as a tablet computer, a television, etc.
Referring to fig. 1, the manipulation apparatus 1 may specifically include a first manipulation device 101 and a second manipulation device 102 connected to the first manipulation device 101 by wireless communication. In this embodiment, the first control device 101 and the second control device 102 are specifically game handles. In other embodiments, the first manipulating device 101 and the second manipulating device 102 may also be other types of game manipulating devices, and even devices with other terminal manipulating functions. When the control device 1 is used to perform the control operation on the terminal 2, the first control device 101 and the second control device 102 are in wireless communication connection, one of the first control device 101 and the second control device 102 is in wireless communication connection with the terminal 2, the control device connected with the terminal 2 directly sends a control instruction to the terminal 2, the control device not connected with the terminal 2 sends the control instruction to the control device connected with the terminal 2, and then the control device sends the control instruction to the terminal 2, so that the terminal 2 can respond to the received control instruction.
In an embodiment of the present invention, referring to fig. 1, the first manipulating device 101 and the second manipulating device 102 may respectively include: a processor 1001 (e.g., a CPU), a memory 1002, a wireless communication module 1003 (e.g., a bluetooth communication module, etc.), and the like. The memory 1002 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1002 may alternatively be a storage device separate from the processor 1001 described above.
The memory 1002 and the wireless communication module 1003 in each control device are connected to the processor 1001. The first control device 101 and the second control device 102 can be connected in a wireless communication manner via the wireless communication module 1003. In addition, one of the first control device 101 and the second control device 102 can be connected to the terminal 2, which is also provided with the wireless communication module 201, by means of the wireless communication module 1003. The wireless communication module 1003 and the wireless communication module 201 may be bluetooth communication modules.
Those skilled in the art will appreciate that the system hardware architecture shown in fig. 1 is not limiting of the system and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an audio data processing program may be included in a memory 1002 as a readable storage medium. In the manipulation apparatus shown in fig. 1, the processor 1001 in the first manipulation device 101 may be configured to call the audio data processing program stored in the memory 1002 and perform the following operations of the relevant steps of the audio data processing method in the embodiment in which the first manipulation device 101 is the control subject.
In addition, in the manipulation apparatus shown in fig. 1, the processor 1001 in the second manipulation device 102 may be configured to call the audio data processing program stored in the memory 1002 and perform the following operations of the relevant steps of the audio data processing method in the embodiment in which the second manipulation device 102 is the control subject.
Based on the control device in the above embodiment, the present application further provides an audio data processing method.
Referring to fig. 2, an embodiment of an audio data processing method according to the present invention is provided, where a controlled main body of the method according to the present embodiment is a first control device, and the audio data processing method includes:
step S10, controlling the first control device to establish an audio transmission channel with a terminal based on the general specification of a low-power consumption Bluetooth protocol stack;
here, the audio transmission channel is specifically a communication data transmission channel for transmitting audio data.
When receiving the first instruction, the first control device can be controlled to establish an audio transmission channel with the terminal according to a general specification (GATT protocol) of a bluetooth low energy protocol stack (BLE protocol stack). By the mode, compared with the mode that the data channel is established between the existing first control equipment and the terminal by adopting the A2DP protocol, the load of the first control device is lower, the energy consumption of the first control device is greatly reduced, and the cruising ability of the control equipment is ensured.
Furthermore, prior to step S10, the first steering device and the second steering device are paired and an internal data channel is established. In order to avoid the energy consumption of large data transmission such as audio data, the first control device and the second control device are connected based on a file distribution protocol to form a control signal link, and the control signal link is only used for transmitting control signals, but not audio data. Specifically, the link for the Audio data related control signal may be formed based on an AVRCP protocol (Audio/Video Remote Control Profile, audio/video remote control specification) connection.
After the audio transmission channel is established, the terminal and the first control device can perform audio data transmission according to a data processing mode required by the general specification of the low-power consumption Bluetooth protocol stack, and the terminal can transmit the audio data to the first control device through the audio transmission channel.
Step S20, controlling the first control device to send a first message to a second control device, so that the second control device monitors and receives the data transmitted in the audio transmission channel; the data are audio data sent to the first control device by the terminal.
When the audio transmission channel is established, or when the first control device receives an instruction that the terminal needs to transmit audio data, the first control device can be controlled to generate a first message. The first message is sent to the second control device via a control signal link between the first control device and the second control device.
The first message is specifically an enabling message for driving the second control device to monitor the audio transmission channel.
When the second control device receives the first message of the first control device, the second control device can be controlled to start monitoring the transmission data in the audio transmission channel, and the transmission data in the audio transmission channel is copied to the second control device. Because the terminal sends the audio data to the first control device through the audio transmission channel, the second control device can receive the audio data sent to the first control device by the terminal through monitoring the audio transmission channel. It should be noted that, the process of sending the audio data to the first control device by the terminal is not affected by the listening of the second control device to the audio transmission channel.
According to the audio data processing method provided by the embodiment of the invention, the first control device is controlled to establish an audio transmission channel with the terminal based on the general specification of the low-power consumption Bluetooth protocol stack, and the first control device is controlled to send a first message to the second control device so that the second control device monitors and receives data transmitted in the audio transmission channel. Because the terminal transmits the audio data sent by the first control device through the audio transmission channel, the first control device does not need to transmit the audio data to the second control device, the second control device can synchronously receive the audio data sent by the audio data terminal by monitoring, and does not need to wait for the first control device to transmit the audio data after receiving the audio data, so that the timeliness of the audio data transmission is reduced, the real-time performance of the audio data of the terminal played by the split control device is ensured, and in addition, because the audio transmission channel between the terminal and the first control device is established based on the general specification of the low-power Bluetooth protocol stack, compared with the mode of transmitting the data by the existing A2DP protocol, the power consumption of the first control device is greatly reduced, and the standby time of the control device is prolonged.
In order to ensure that the second control device can rapidly realize monitoring of the audio transmission channel, the first message may specifically include configuration information of the audio transmission channel, based on which, the step S10 of controlling the first control device to send the first message to the second control device, so that the second control device monitors and receives data transmitted in the audio transmission channel includes: and controlling the first control device to send a first message to the second control device, so that the second control device monitors and receives the data transmitted in the audio transmission channel according to the configuration information. The configuration information specifically comprises connection parameters, connection keys and the like between the terminal and the first control device.
After the second control device receives the first message, configuration information in the first message can be extracted, and the second control device is controlled to acquire the monitoring authority of the audio transmission channel by adopting the configuration information, so that monitoring and receiving of data transmitted in the audio transmission channel are realized.
It should be noted that, the specific number of the first control devices connected to the terminal is one, and the second control device may be provided with one or more than one according to the need.
Further, based on the above embodiments, referring to fig. 3, another embodiment of the audio data processing method of the present application is provided. In this embodiment, after the step S20, the method further includes:
when the first control device receives the audio data, step S30 is executed: extracting part of data in the audio data as first data;
specifically, the first control device can be controlled to separate the received audio data to form data required to be played by the first control device and the second control device, and the partial data required to be played by the first control device is extracted as the first data.
Further, the audio data is specifically stereo data including mixed channel data. Based on this, step S30 may specifically include:
step S31, obtaining a sound channel allocation rule set between the first control device and the second control device;
the channel allocation rule specifically refers to an allocation rule of a channel required by each manipulation device to be responsible for playing in stereo data. The channel allocation rule can be specifically set according to a user instruction, and can also be configured for system default. Each steering device needs to be responsible for playing at least one channel.
Step S32, carrying out channel separation on the audio data to obtain first channel audio data and second channel audio data;
the first channel audio data is specifically audio data of a channel which is required to be responsible for playing by one of the first control device and the second control device; the second audio data is specifically audio data of a channel which is required to be responsible for playing by the other one of the first control device and the second control device.
Specifically, the stereo data is audio data formed by mixing left channel audio data and right channel audio data. And separating the audio data according to the left channel and the right channel to obtain first channel audio data and second channel audio data, wherein the left channel audio data is used as the first channel audio data, and the right channel audio data is used as the second channel audio data.
And step S33, extracting one of the first channel audio data and the second channel audio data as the first data according to the channel allocation rule.
And determining the sound channel which is responsible for playing by the first control device according to the sound channel allocation rule, and taking the audio data corresponding to the sound channel which is responsible for playing by the first control device as first data in the first sound channel audio data and the second sound channel audio data.
Specifically, in the channel allocation rule, the first control device is responsible for playing audio data of a left channel, the second control device is responsible for playing audio data of a right channel, the first channel audio data can be used as first data to be played by the first control device, and the second channel audio data can be used as second data to be played by the second control device.
Step S40, controlling the first control device to play the first data.
And controlling the first control device to play the first data in real time or delayed or at a specific time. Specifically, step S40 may include:
step S41, acquiring state information about the receiving state of the audio data in the second control device;
step S42, controlling the first control device to play the first data according to the state information.
The state information here specifically includes a first state in which the second manipulation device receives the audio data, and a second state in which the second manipulation device does not receive the audio data. The audio data is transmitted in an audio transmission channel divided into a plurality of data frames. When the first control device receives the first frame of audio data, a query instruction can be sent to the second control device, and state information returned by the second control device based on the query instruction is obtained. When the state information comprises a first state, the first control device is controlled to immediately play the first data; when the state information comprises the second state, the interval is shorter than the set duration of the single-frame audio data, the query instruction is continuously sent to the second control device, and the first control device is controlled to play the first data until the returned state information comprises the first state.
In this embodiment, the first control device is only responsible for playing audio data of a part of channels, and audio data of other part of channels are played through the second control device or other devices, so that the first control device and the second control device are matched to play stereo of the terminal. The first control device is controlled to play the first data based on the state information of the receiving state of the audio data in the second control device, so that the playing of the first data in the first control device can be adapted to the data receiving state of the audio data in the second control device, and the synchronization of the first control device and the second control device when the audio data are played in a matched mode is guaranteed.
Further, the present invention also provides another embodiment of an audio data processing method, in which the controlled main body is a second control device, and referring to fig. 4, the audio data processing method of the present embodiment further includes the following steps:
step S100, when a second control device receives a first message of a first control device, the second control device is controlled to monitor data transmitted in an audio transmission channel based on a general specification of a low-power Bluetooth protocol stack; the audio transmission channel is established between the first control device and the terminal, and the data are audio data sent by the terminal to the first control device;
when the second control device receives the first message of the first control device, the second control device can be controlled to start monitoring the transmission data in the audio transmission channel, and the transmission data in the audio transmission channel is copied to the second control device. Because the terminal sends the audio data to the first control device through the audio transmission channel, the second control device can receive the audio data sent to the first control device by the terminal through monitoring the audio transmission channel. It should be noted that, the process of sending the audio data to the first control device by the terminal is not affected by the listening of the second control device to the audio transmission channel.
In order to further reduce the power consumption required by the audio data transmission between the first control device and the second control device, when the second control device monitors the data transmitted in the audio transmission channel, the data transmitted in the audio transmission channel is monitored based on the general specification of the low-power Bluetooth protocol stack, and the audio data is processed according to the data processing mode required by the general specification of the low-power Bluetooth protocol stack in the monitoring process.
Based on this, the step of controlling the second control device to monitor the data transmitted in the audio transmission channel in step S100 includes the steps of: and controlling the second control device to monitor the data transmitted in the audio transmission channel according to the configuration information.
After the second control device receives the first message, configuration information in the first message can be extracted, and the second control device is controlled to acquire the monitoring authority of the audio transmission channel by adopting the configuration information, so that the monitoring of data transmitted in the audio transmission channel is realized.
In this embodiment, through the step S100, the second control device monitors the data transmitted in the audio transmission channel, so that the second control device can synchronously receive the audio data sent by the audio data terminal with the first control device, and does not need to wait for the first control device to receive the audio data and then forward the audio data, thereby reducing the delay of audio data transmission and ensuring the real-time performance of the split control device for playing the audio data of the terminal.
Further, referring to fig. 4, after step S100, the method further includes:
when the second control device receives the audio data, step S200 is executed: extracting part of data in the audio data as second data;
specifically, the second control device can be controlled to separate the received audio data to form data required to be played by the first control device and the second control device, and the partial data required to be played by the second control device is extracted as second data.
Specifically, referring to fig. 5, step S200 may include:
step S210, obtaining a sound channel allocation rule set between the first control device and the second control device;
the channel allocation rule specifically refers to an allocation rule of a channel required by each manipulation device to be responsible for playing in stereo data. The channel allocation rule can be specifically set according to a user instruction, and can also be configured for system default. Each steering device needs to be responsible for playing at least one channel.
Step S220, carrying out channel separation on the audio data to obtain first channel audio data and second channel audio data;
and carrying out channel separation on the audio data in the same way as the first control device to obtain first channel audio data and second channel audio data.
Specifically, the stereo data is audio data formed by mixing left channel audio data and right channel audio data. And separating the audio data according to the left channel and the right channel to obtain first channel audio data and second channel audio data, wherein the left channel audio data is used as the first channel audio data, and the right channel audio data is used as the second channel audio data.
Step S230, extracting one of the first channel audio data and the second channel audio data as the second data according to the channel allocation rule.
And determining the sound channel which is responsible for playing by the second control device according to the sound channel allocation rule, and taking the audio data which corresponds to the sound channel which is responsible for playing by the second control device as second data in the first sound channel audio data and the second sound channel audio data.
Specifically, in the channel allocation rule, the first control device is responsible for playing audio data of a left channel, the second control device is responsible for playing audio data of a right channel, the first channel audio data can be used as first data to be played by the first control device, and the second channel audio data can be used as second data to be played by the second control device.
Step S300, controlling the second control device to play the second data.
And after the second data is obtained, controlling the first control device to play the second data in real time.
In this embodiment, through the above steps, the first manipulating device plays the audio data of a part of the channels, the audio data of part of sound channels of the other part are played through the second control device, so that the first control device and the second control device are matched to play the stereo of the terminal
Further, the audio data processing method of the present embodiment further includes:
in the process of controlling the second control device to monitor the data transmitted in the audio transmission channel, a preset time interval is used for generating state information about the receiving state of the audio data in the second control device, and the state information is sent to the first control device so as to control the first control device to play the first data according to the state information. The state information here specifically includes a first state in which the second manipulation device receives the audio data, and a second state in which the second manipulation device does not receive the audio data. The audio data is transmitted in an audio transmission channel divided into a plurality of data frames. And generating state information based on the current receiving condition of the second control device on the audio data by setting time length with shorter interval than the duration time length of the single frame of the audio data. Specifically, when the second control device has received the first frame of audio data, state information including a first state is generated; and when the second control device does not receive the first frame of audio data, generating state information comprising a second state. After the first control device receives the status information, the first data is played according to the received status information, and the specific implementation process can be referred to the above embodiment, which is not described herein.
In this embodiment, in the process that the second control device monitors the audio transmission channel, state information about the audio data receiving state is sent to the first control device, so that the playing of the first data in the first control device can be adapted to the data receiving state of the audio data in the second control device, which is beneficial to ensuring the synchronicity when the first control device and the second control device cooperate to play the audio data.
In addition, the embodiment of the invention also provides a readable storage medium, wherein the readable storage medium stores an audio data processing program, and the audio data processing program realizes the relevant steps of any embodiment of the audio data processing method when being executed by a processor.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (7)

1. An audio data processing method, characterized in that the audio data processing method comprises the steps of:
the first control device is paired with the second control device and connected based on a file distribution protocol to form a control signal link, wherein the control signal link is only used for transmitting control signals;
based on the general specification of the low-power consumption Bluetooth protocol stack, controlling the first control device to establish an audio transmission channel with the terminal; the first control device is controlled to send a first message to the second control device, so that the second control device monitors and receives data transmitted in the audio transmission channel; the first message is an enabling message for driving the second control device to monitor the audio transmission channel, and the data is audio data sent by the terminal to the first control device;
when the first control device receives the audio data, extracting part of data in the audio data as first data;
the first control device is controlled to play the first data;
the audio data is stereo data, and the step of extracting part of the audio data as first data includes:
acquiring a sound channel allocation rule set between the first control device and the second control device;
carrying out channel separation on the audio data to obtain first channel audio data and second channel audio data, wherein the first channel audio data is left channel audio data, and the second channel audio data is right channel audio data;
and extracting one of the first channel audio data and the second channel audio data as the first data according to the channel allocation rule.
2. The audio data processing method according to claim 1, wherein the step of controlling the first manipulation device to play the first data includes:
acquiring state information about a receiving state of the audio data in the second manipulation apparatus;
and controlling the first control device to play the first data according to the state information.
3. The audio data processing method according to claim 1, wherein the first message includes configuration information of the audio transmission channel, and the step of controlling the first manipulation device to send the first message to the second manipulation device so that the second manipulation device listens for and receives data transmitted in the audio transmission channel includes:
and controlling the first control device to send a first message to the second control device, so that the second control device monitors and receives the data transmitted in the audio transmission channel according to the configuration information.
4. An audio data processing method, characterized in that the audio data processing method comprises the steps of:
the first control device is paired with the second control device and connected based on a file distribution protocol to form a control signal link, wherein the control signal link is only used for transmitting control signals;
when the second control device receives a first message of the first control device based on the control signal link, the second control device is controlled to monitor data transmitted in an audio transmission channel based on a general specification of a low-power consumption Bluetooth protocol stack, wherein the audio transmission channel is an audio transmission channel established between the first control device and a terminal, and the data is audio data sent by the terminal to the first control device;
when the second control device receives the audio data, extracting part of data in the audio data as second data;
controlling the second control device to play the second data;
the step of extracting part of the data in the audio data as second data includes:
acquiring a sound channel allocation rule set between the first control device and the second control device;
carrying out channel separation on the audio data to obtain first channel audio data and second channel audio data, wherein the first channel audio data is left channel audio data, and the second channel audio data is right channel audio data;
and extracting one of the first channel audio data and the second channel audio data as the second data according to the channel allocation rule.
5. The audio data processing method according to claim 4, wherein the audio data processing method comprises the steps of:
in the process of controlling the second control device to monitor the data transmitted in the audio transmission channel, generating state information about the receiving state of the audio data in the second control device at intervals of preset time length;
and sending the state information to the first control device so as to control the first control device to play the first data according to the state information.
6. A steering apparatus, characterized in that the steering apparatus comprises:
a first steering device, the first steering device comprising: a first processor and a first audio data processing program stored on the first memory and executable on the first processor, which when executed by the first processor, implements the steps of the audio data processing method according to any one of claims 1 to 3;
the second control device is in wireless communication connection with the first control device, and the second control device comprises: a second processor and a second audio data processing program stored on the second processor and executable on the second processor, which second audio data processing program when executed by the second processor implements the steps of the audio data processing method according to any of claims 4 to 5.
7. A readable storage medium, characterized in that the readable storage medium has stored thereon an audio data processing program which, when executed by a processor, implements the steps of the audio data processing method according to any one of claims 1 to 3.
CN202010245546.9A 2020-03-31 2020-03-31 Audio data processing method, control device and readable storage medium Active CN111464989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010245546.9A CN111464989B (en) 2020-03-31 2020-03-31 Audio data processing method, control device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010245546.9A CN111464989B (en) 2020-03-31 2020-03-31 Audio data processing method, control device and readable storage medium

Publications (2)

Publication Number Publication Date
CN111464989A CN111464989A (en) 2020-07-28
CN111464989B true CN111464989B (en) 2023-08-08

Family

ID=71680958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010245546.9A Active CN111464989B (en) 2020-03-31 2020-03-31 Audio data processing method, control device and readable storage medium

Country Status (1)

Country Link
CN (1) CN111464989B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117412084B (en) * 2023-02-10 2024-12-03 深圳Tcl新技术有限公司 Device control method, device, electronic device and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108513702A (en) * 2018-04-26 2018-09-07 万魔声学科技有限公司 Audio wireless communication method, device, audio playback device, and system
CN110234045A (en) * 2019-06-11 2019-09-13 同响科技股份有限公司 To be wirelessly connected the bluetooth headset of ears
CN110290412A (en) * 2019-08-26 2019-09-27 恒玄科技(北京)有限公司 A kind of audio sync playback method, device and loudspeaker apparatus, wireless headset
CN110769347A (en) * 2019-12-27 2020-02-07 恒玄科技(北京)有限公司 Synchronous playing method of earphone assembly and earphone assembly

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8768252B2 (en) * 2010-09-02 2014-07-01 Apple Inc. Un-tethered wireless audio system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108513702A (en) * 2018-04-26 2018-09-07 万魔声学科技有限公司 Audio wireless communication method, device, audio playback device, and system
CN110234045A (en) * 2019-06-11 2019-09-13 同响科技股份有限公司 To be wirelessly connected the bluetooth headset of ears
CN110290412A (en) * 2019-08-26 2019-09-27 恒玄科技(北京)有限公司 A kind of audio sync playback method, device and loudspeaker apparatus, wireless headset
CN110769347A (en) * 2019-12-27 2020-02-07 恒玄科技(北京)有限公司 Synchronous playing method of earphone assembly and earphone assembly

Also Published As

Publication number Publication date
CN111464989A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN107124661B (en) Communication method, device and system in live channel
WO2020063066A1 (en) Data transmission method, apparatus, electronic device, and storage medium
WO2014082458A1 (en) Method and system for managing real-time audio broadcasts among a group of users
CN111132111B (en) BLE-based audio sharing method, system and computer readable storage medium
US20040147282A1 (en) Electronic apparatus having a wireless communication device communicating with at least two device
US9843879B2 (en) Apparatus and method for reproducing multi-sound channel contents using DLNA in mobile terminal
US20250158845A1 (en) Audio data pushing method, apparatus and system, and electronic device and storage medium
CN112822433A (en) Control method and related device in video conference
KR102615710B1 (en) Transmission method, transmission processing method, and related devices for multicast service
CN110856086A (en) Method and device for controlling sound system and readable storage medium
WO2022022698A1 (en) Method for splitting end-to-end qos requirement information, terminal, and network side device
CN110475312B (en) Access control method, message broadcasting method and related equipment
CN111464989B (en) Audio data processing method, control device and readable storage medium
CN113271376A (en) Communication control method, electronic equipment and earphone
CN111491278B (en) Method and terminal for playing audio through Bluetooth device
CN113518297A (en) Sound box interaction method, device and system and sound box
CN112866828B (en) Audio transmission control method, device, sound card, system and readable storage medium
CN114143586A (en) Split screen display sharing method, system, storage medium and intelligent screen
CN116866472B (en) Volume control method and electronic equipment
JP2024170120A (en) Communication Equipment
CN114302380B (en) Data transmission method, device and terminal equipment
CN117082035A (en) Visual intercom method, system, equipment and medium based on elevator Internet of things scene
WO2023165246A1 (en) Bluetooth protocol communication method, electronic device, apparatus, storage medium and product
CN113543043B (en) Transmission method, terminal and network side device for multicast broadcast service
CN114025230A (en) Terminal video playing method and related device

Legal Events

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