CN117241253B - Multi-audio self-adaptive switching play processing method, system, terminal and medium - Google Patents

Multi-audio self-adaptive switching play processing method, system, terminal and medium Download PDF

Info

Publication number
CN117241253B
CN117241253B CN202311498041.3A CN202311498041A CN117241253B CN 117241253 B CN117241253 B CN 117241253B CN 202311498041 A CN202311498041 A CN 202311498041A CN 117241253 B CN117241253 B CN 117241253B
Authority
CN
China
Prior art keywords
audio
request
playing
play
application
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
CN202311498041.3A
Other languages
Chinese (zh)
Other versions
CN117241253A (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.)
Chengdu Zhike Communication Technology Co ltd
Original Assignee
Chengdu Zhike Communication Technology 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 Chengdu Zhike Communication Technology Co ltd filed Critical Chengdu Zhike Communication Technology Co ltd
Priority to CN202311498041.3A priority Critical patent/CN117241253B/en
Publication of CN117241253A publication Critical patent/CN117241253A/en
Application granted granted Critical
Publication of CN117241253B publication Critical patent/CN117241253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a multi-audio self-adaptive switching play processing method, a system, a terminal and a medium, which relate to the technical field of audio play and have the technical scheme that: the audio playing device performs sorting processing on the received audio playing requests, responds one by one to the audio playing requests in the task list, establishes Bluetooth connection with the audio application device in a password-free authentication mode, directly acquires an audio data packet of audio to be played in an authorization verification mode by an authorization verification instruction, can realize adaptive switching processing of a plurality of audio playing, and meets the audio playing requirements of a plurality of users when the Bluetooth communication technology is adopted.

Description

Multi-audio self-adaptive switching play processing method, system, terminal and medium
Technical Field
The invention relates to the technical field of audio playing, in particular to a multi-audio self-adaptive switching playing processing method, a system, a terminal and a medium.
Background
For some audio playing devices which cannot be networked or are inconvenient to download data, communication between the audio application device and the audio playing device is mainly achieved through Bluetooth connection, and after the audio application device is connected with the audio playing device, the audio application device transmits downloaded audio data packets to the audio playing device for playing.
However, limited by the application of bluetooth technology, one bluetooth master device can connect to a plurality of bluetooth devices at the same time, but the plurality of bluetooth devices need to be a plurality of different types of bluetooth devices; if a plurality of bluetooth devices of the same type are connected, communication can be realized only after one bluetooth device is disconnected and the other bluetooth device is connected, for example, a plurality of mobile phone terminals are connected with the vehicle-mounted terminal. For application scenarios where multiple audio application devices of the same type want to control the audio playback device in a bluetooth connection manner, the connection switching of the audio application devices reduces the controlled flexibility of the audio playback device, so that it is difficult for one audio playback device to simultaneously meet the audio playback needs of multiple users.
Therefore, how to study and design a multi-audio adaptive switching playing processing method, system, terminal and medium capable of overcoming the above-mentioned defects is an urgent problem to be solved at present.
Disclosure of Invention
In order to solve the defects in the prior art, the invention aims to provide a multi-audio self-adaptive switching play processing method, a system, a terminal and a medium, which can realize the self-adaptive switching processing of a plurality of audio plays and meet the audio play demands of a plurality of users when adopting the Bluetooth communication technology.
The technical aim of the invention is realized by the following technical scheme:
in a first aspect, a multi-audio adaptive switching playing processing method is provided, which is applicable to an audio playing device, and includes the following steps:
receiving audio playing requests sent by a plurality of audio application devices, wherein the audio playing requests comprise Bluetooth pairing information of the audio application devices, authorization verification instructions of the audio applications and audio attribute information of audio to be played;
collecting the communication state of the audio application device from the audio playing device, and analyzing the sequencing value of the corresponding audio playing request in real time by combining the request time and the request frequency of the audio playing request sent by the audio application device;
writing the audio playing request into a task list, and updating the ordering position of the audio playing request in the task list in real time according to the ordering value;
reading the audio play request of the front sequence in the task list to play and respond, and establishing Bluetooth connection with the corresponding audio application equipment after carrying out encryption-free pairing authentication on the corresponding Bluetooth pairing information;
transmitting an authorization verification instruction to an audio application in the corresponding audio application device, and receiving an audio data packet of audio to be played, which is sent by the audio application device after the audio application authorization verification is passed;
and analyzing the audio data packet, playing in real time, and reading the audio playing request of the front sequence in the task list again after the playing is finished so as to realize multi-audio switching playing.
Further, the process of collecting the communication state of the audio application device from the audio playing device specifically includes:
acquiring an audio application device which is in Bluetooth real-time connection with an audio playing device as a reference device;
if the audio application device sending the audio playing request and the reference device are the same device, the communication state of the corresponding audio application device is a connection state;
if the audio application device sending the audio playing request and the reference device are not the same device, the communication state of the corresponding audio application device is a non-connection state.
Further, the sorting value analysis process of the audio playing request specifically includes:
determining a first parameter according to a communication state of the audio application device corresponding to the audio playing request, wherein the first parameter when the communication state is a connection state is larger than the first parameter when the communication state is a non-connection state;
determining the request queuing time of the audio play request in the task list according to the request time of the audio play request, and determining a second parameter which is positively correlated according to the request queuing time;
counting the request frequency of the audio playing request in the request queuing time, and determining a third parameter which is positively correlated according to the request frequency;
the ranking value of the corresponding audio playing request is determined by the product of the first parameter, the second parameter and the third parameter.
Further, the calculation formula of the ranking value of the audio playing request specifically includes:
wherein,a ranking value representing an audio play request j; />A first parameter indicating that the audio playing request j is in a communication state i of the corresponding audio application device, i=1 indicating that the communication state is a connection state, and i=0 indicating that the communication state is a non-connection state; />Representing a request queuing time of the audio play request j in the task list; />Representing an average request queuing time of the historical audio play request in the task list; />Representing the audio play request j at request queuing time +.>Frequency of requests within.
Further, the method further comprises:
receiving an audio play revocation request sent by audio application equipment, wherein the audio play revocation request comprises Bluetooth pairing information of the audio application equipment and audio attribute information of audio to be revoked;
and comparing and verifying the Bluetooth pairing information and the audio attribute information in the audio play revocation request with the Bluetooth pairing information and the audio attribute information in the audio play request, and deleting the corresponding audio play request in the task list after verification is passed.
In a second aspect, a multi-audio adaptive switching playing processing method is provided, which is applicable to an audio application device, and includes the following steps:
generating an authorization verification instruction according to the Bluetooth name of the audio to be played and the audio playing device selected in the audio application;
setting operation authority for calling an audio data packet corresponding to audio to be played in the audio application according to the authorization verification instruction;
acquiring Bluetooth pairing information of audio application equipment and audio attribute information of audio to be played, and generating an audio playing request by combining an authorization verification instruction of the audio application;
sending the audio playing request to corresponding audio playing equipment;
receiving an authorization verification instruction returned by the audio playing device;
inputting the returned authorization verification instruction into the audio application for authorization verification, and downloading an audio data packet of the audio to be played after the authorization verification is passed;
and transmitting the audio data packet of the audio to be played to corresponding audio playing equipment.
Further, the method further comprises:
generating an authorization releasing instruction according to the Bluetooth name of the audio to be revoked and the audio playing device selected in the audio application;
according to the authorization releasing instruction, releasing the operation authority of the audio data packet which is set and called the corresponding audio to be played in the audio application;
generating an audio playing revocation request after Bluetooth pairing information of audio application equipment and audio attribute information of audio to be revoked are acquired;
and sending the audio play revocation request to the corresponding audio play device.
In a third aspect, a multi-audio adaptive switching play processing system is provided, including:
the request receiving module is used for receiving audio playing requests sent by a plurality of audio application devices, wherein the audio playing requests comprise Bluetooth pairing information of the audio application devices, authorization verification instructions of the audio applications and audio attribute information of audio to be played;
the sequencing analysis module is used for collecting the communication state of the audio application device from the audio playing device and analyzing the sequencing value of the corresponding audio playing request in real time by combining the request time and the request frequency of the audio playing request sent by the audio application device;
the request ordering module is used for writing the audio playing request into the task list and updating the ordering position of the audio playing request in the task list in real time according to the ordering value;
the response authentication module is used for reading the audio playing requests of the front sequence in the task list to play and respond, and establishing Bluetooth connection with the corresponding audio application equipment after carrying out encryption-free pairing authentication on the corresponding Bluetooth pairing information;
the audio receiving module is used for sending an authorization verification instruction to an audio application in the corresponding audio application equipment and receiving an audio data packet of audio to be played, which is sent by the audio application equipment after the authorization verification of the audio application passes;
and the audio playing module is used for playing the audio data packet in real time after being analyzed, and reading the audio playing request with the front sequence in the task list again after the playing is finished so as to realize multi-audio switching playing.
In a fourth aspect, a computer terminal is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements a multi-audio adaptive switching play processing method according to any one of the first aspects when the program is executed.
In a fifth aspect, a computer readable medium is provided, on which a computer program is stored, the computer program being executed by a processor to implement a multi-audio adaptive switching play processing method according to any one of the first aspects.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention provides a multi-audio self-adaptive switching playing processing method, which comprises the steps that audio playing equipment carries out sequencing processing on received audio playing requests, responds one by one to the audio playing requests in a task list, realizes Bluetooth connection with audio application equipment in a password-free pairing authentication mode, directly acquires an audio data packet of audio to be played in an authorization verification mode by an authorization verification instruction, can realize self-adaptive switching processing of a plurality of audio playing, and meets the audio playing requirements of a plurality of users when adopting a Bluetooth communication technology;
2. the invention adopts the authorization verification instruction to directly acquire the audio data packet when the audio application is in the silence state, and after the audio application equipment sends out the audio playing request, the audio application equipment is not influenced to operate other applications;
3. the invention comprehensively considers the communication state of the audio application equipment, the request time and the request frequency of the audio playing request to determine the ordering value, so that the ordering of the audio playing request is more reasonable, the ordered arrangement of the audio playing request can be realized, the skip response of the audio playing request can be realized, and the response of the audio playing request is more flexible;
4. in the specific calculation process of the sequencing value, the communication state, the request queuing time and the sensitivity degree of the sequencing value to the audio application equipment are comprehensively considered, so that the influence of the request queuing time and the request frequency on the sequencing value can be well balanced;
5. the invention can also provide the audio play cancel request to delete the corresponding audio play request in the task list, and can reduce the waste of network resources caused by downloading and transmitting the audio data packet under the condition that the audio play request does not contain the audio data packet.
Drawings
The accompanying drawings, which are included to provide a further understanding of embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention. In the drawings:
fig. 1 is a flowchart of an audio playback apparatus in embodiment 1 of the present invention;
fig. 2 is a system block diagram of an audio playback apparatus in embodiment 2 of the present invention;
FIG. 3 is a flow chart of an audio application device in embodiment 3 of the present invention;
fig. 4 is a system block diagram of an audio application device in embodiment 4 of the present invention.
Description of the embodiments
For the purpose of making apparent the objects, technical solutions and advantages of the present invention, the present invention will be further described in detail with reference to the following examples and the accompanying drawings, wherein the exemplary embodiments of the present invention and the descriptions thereof are for illustrating the present invention only and are not to be construed as limiting the present invention.
Example 1: a multi-audio self-adaptive switching play processing method is suitable for audio play equipment, as shown in fig. 1, and comprises the following steps:
s101: receiving audio playing requests sent by a plurality of audio application devices, wherein the audio playing requests comprise Bluetooth pairing information of the audio application devices, authorization verification instructions of the audio applications and audio attribute information of audio to be played;
s102: collecting the communication state of the audio application device from the audio playing device, and analyzing the sequencing value of the corresponding audio playing request in real time by combining the request time and the request frequency of the audio playing request sent by the audio application device;
s103: writing the audio playing request into a task list, and updating the ordering position of the audio playing request in the task list in real time according to the ordering value;
s104: reading the audio play request of the front sequence in the task list to play and respond, and establishing Bluetooth connection with the corresponding audio application equipment after carrying out encryption-free pairing authentication on the corresponding Bluetooth pairing information;
s105: transmitting an authorization verification instruction to an audio application in the corresponding audio application device, and receiving an audio data packet of audio to be played, which is sent by the audio application device after the audio application authorization verification is passed;
s106: and analyzing the audio data packet, playing in real time, and reading the audio playing request of the front sequence in the task list again after the playing is finished so as to realize multi-audio switching playing.
It should be noted that, the audio play request sent by the audio application device may be sent instead of the bluetooth pairing request in the prior art. Every time an audio playing request is stored in the task list, traversing the existing audio playing request, and judging whether the newly stored audio playing request exists in the task list or not; if not, storing the new audio playing request into a task list; if so, the method does not store, and only changes the request frequency of the existing audio playing requests.
In step S102, the process of collecting the communication status of the audio application device from the audio playing device specifically includes: acquiring an audio application device which is in Bluetooth real-time connection with an audio playing device as a reference device; if the audio application device sending the audio playing request and the reference device are the same device, the communication state of the corresponding audio application device is a connection state; if the audio application device sending the audio playing request and the reference device are not the same device, the communication state of the corresponding audio application device is a non-connection state.
Because the same type of audio application equipment which is connected with the audio playing equipment simultaneously is only one, the other types of audio application equipment can be judged to be in a non-connection state only by acquiring the audio application equipment which is connected in real time by Bluetooth.
In step S102, the ranking value analysis process of the audio playing request specifically includes: determining a first parameter according to a communication state of the audio application device corresponding to the audio playing request, wherein the first parameter when the communication state is a connection state is larger than the first parameter when the communication state is a non-connection state; determining the request queuing time of the audio play request in the task list according to the request time of the audio play request, and determining a second parameter which is positively correlated according to the request queuing time; counting the request frequency of the audio playing request in the request queuing time, and determining a third parameter which is positively correlated according to the request frequency; the ranking value of the corresponding audio playing request is determined by the product of the first parameter, the second parameter and the third parameter.
As an alternative implementation manner, in order to better balance the influence of the request queuing time and the request frequency on the ranking value, the ranking value calculation formula of the audio playing request is specifically as follows:
wherein,a ranking value representing an audio play request j; />A first parameter indicating that the audio playing request j is in a communication state i of the corresponding audio application device, i=1 indicating that the communication state is a connection state, and i=0 indicating that the communication state is a non-connection state; />Representing a request queuing time of the audio play request j in the task list; />Representing an average request queuing time of the historical audio play request in the task list; />Representing the audio play request j at request queuing time +.>Frequency of requests within.
As another alternative, the second parameter may also be calculated directly during the calculation process by using the request queuing time or collecting other data that is directly related to the request queuing time, and the third parameter may also be calculated during the calculation process by using a linear function of the request frequency, which is not limited herein.
In order to enhance the operation flexibility of the multi-audio adaptive switching play processing method, the method further comprises the following steps: receiving an audio play revocation request sent by audio application equipment, wherein the audio play revocation request comprises Bluetooth pairing information of the audio application equipment and audio attribute information of audio to be revoked; and comparing and verifying the Bluetooth pairing information and the audio attribute information in the audio play revocation request with the Bluetooth pairing information and the audio attribute information in the audio play request, and deleting the corresponding audio play request in the task list after verification is passed.
The invention can also provide the audio play cancel request to delete the corresponding audio play request in the task list, and can reduce the waste of network resources caused by downloading and transmitting the audio data packet under the condition that the audio play request does not contain the audio data packet.
Example 2: a multi-audio self-adaptive switching play processing system is used for realizing the multi-audio self-adaptive switching play processing method described in the embodiment 1, and as shown in fig. 2, the system comprises a request receiving module, a sorting analysis module, a request sorting module, a response authentication module, an audio receiving module and an audio play module.
The request receiving module is used for receiving audio playing requests sent by a plurality of audio application devices, wherein the audio playing requests comprise Bluetooth pairing information of the audio application devices, authorization verification instructions of the audio applications and audio attribute information of audio to be played; the sequencing analysis module is used for collecting the communication state of the audio application device from the audio playing device and analyzing the sequencing value of the corresponding audio playing request in real time by combining the request time and the request frequency of the audio playing request sent by the audio application device; the request ordering module is used for writing the audio playing request into the task list and updating the ordering position of the audio playing request in the task list in real time according to the ordering value; the response authentication module is used for reading the audio playing requests of the front sequence in the task list to play and respond, and establishing Bluetooth connection with the corresponding audio application equipment after carrying out encryption-free pairing authentication on the corresponding Bluetooth pairing information; the audio receiving module is used for sending an authorization verification instruction to an audio application in the corresponding audio application equipment and receiving an audio data packet of audio to be played, which is sent by the audio application equipment after the authorization verification of the audio application passes; and the audio playing module is used for playing the audio data packet in real time after being analyzed, and reading the audio playing request with the front sequence in the task list again after the playing is finished so as to realize multi-audio switching playing.
Example 3: a multi-audio self-adaptive switching play processing method is suitable for audio application equipment, as shown in fig. 3, and comprises the following steps:
s201: generating an authorization verification instruction according to the Bluetooth name of the audio to be played and the audio playing device selected in the audio application;
s202: setting operation authority for calling an audio data packet corresponding to audio to be played in the audio application according to the authorization verification instruction;
s203: acquiring Bluetooth pairing information of audio application equipment and audio attribute information of audio to be played, and generating an audio playing request by combining an authorization verification instruction of the audio application;
s204: sending the audio playing request to corresponding audio playing equipment;
s205: receiving an authorization verification instruction returned by the audio playing device;
s206: inputting the returned authorization verification instruction into the audio application for authorization verification, and downloading an audio data packet of the audio to be played after the authorization verification is passed;
s207: and transmitting the audio data packet of the audio to be played to corresponding audio playing equipment.
The multi-audio self-adaptive switching play processing method disclosed by the invention further comprises the following steps: generating an authorization releasing instruction according to the Bluetooth name of the audio to be revoked and the audio playing device selected in the audio application; according to the authorization releasing instruction, releasing the operation authority of the audio data packet which is set and called the corresponding audio to be played in the audio application; generating an audio playing revocation request after Bluetooth pairing information of audio application equipment and audio attribute information of audio to be revoked are acquired; and sending the audio play revocation request to the corresponding audio play device.
Example 4: a multi-audio self-adaptive switching play processing system is used for realizing the multi-audio self-adaptive switching play processing method described in the embodiment 3, and comprises an instruction generating module, a permission setting module, a request generating module, a request sending module, an instruction receiving module, an instruction verifying module and a data sending module as shown in fig. 4.
The instruction generation module is used for generating an authorization verification instruction according to the Bluetooth name of the audio to be played and the audio playing equipment selected in the audio application; the permission setting module is used for setting and calling the operation permission of the audio data packet of the corresponding audio to be played in the audio application according to the authorization verification instruction; the request generation module is used for acquiring Bluetooth pairing information of the audio application equipment and audio attribute information of audio to be played, and generating an audio playing request by combining an authorization verification instruction of the audio application; the request sending module is used for sending the audio playing request to the corresponding audio playing equipment; the instruction receiving module is used for receiving an authorization verification instruction returned by the audio playing equipment; the instruction verification module is used for inputting a returned authorization verification instruction into the audio application to carry out authorization verification, and downloading an audio data packet of the audio to be played after the authorization verification is passed; and the data sending module is used for transmitting the audio data packet of the audio to be played to the corresponding audio playing equipment.
Working principle: the audio playing device in the invention carries out sequencing processing on the received audio playing requests, responds one by one to the audio playing requests in the task list, realizes the establishment of Bluetooth connection with the audio application device in a password-free authentication mode, and simultaneously directly acquires an audio data packet of the audio to be played in an authorization verification mode by an authorization verification instruction, thereby realizing the self-adaptive switching processing of a plurality of audio playing and meeting the audio playing demands of a plurality of users when adopting the Bluetooth communication technology; in addition, the invention can directly acquire the audio data packet when the audio application is in the silence state by adopting the authorization verification instruction, and the audio application equipment is not influenced to operate other applications after the audio application equipment sends out the audio playing request; in addition, the invention comprehensively considers the communication state of the audio application equipment, the request time and the request frequency of the audio playing requests to determine the ordering value, so that the ordering of the audio playing requests is more reasonable, the ordered arrangement of the audio playing requests can be realized, the skip response of the audio playing requests can be realized, and the response of the audio playing requests is more flexible.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing detailed description of the invention has been presented for purposes of illustration and description, and it should be understood that the invention is not limited to the particular embodiments disclosed, but is intended to cover all modifications, equivalents, alternatives, and improvements within the spirit and principles of the invention.

Claims (7)

1. The multi-audio self-adaptive switching play processing method is suitable for audio play equipment and is characterized by comprising the following steps:
receiving audio playing requests sent by a plurality of audio application devices, wherein the audio playing requests comprise Bluetooth pairing information of the audio application devices, authorization verification instructions of the audio applications and audio attribute information of audio to be played;
collecting the communication state of the audio application device from the audio playing device, and analyzing the sequencing value of the corresponding audio playing request in real time by combining the request time and the request frequency of the audio playing request sent by the audio application device;
writing the audio playing request into a task list, and updating the ordering position of the audio playing request in the task list in real time according to the ordering value;
reading the audio play request of the front sequence in the task list to play and respond, and establishing Bluetooth connection with the corresponding audio application equipment after carrying out encryption-free pairing authentication on the corresponding Bluetooth pairing information;
transmitting an authorization verification instruction to an audio application in the corresponding audio application device, and receiving an audio data packet of audio to be played, which is sent by the audio application device after the audio application authorization verification is passed;
analyzing the audio data packet, playing in real time, and reading the audio playing request of the front sequence in the task list again after the playing is finished so as to realize multi-audio switching playing;
wherein the audio application device performs the steps of:
generating an authorization verification instruction according to the Bluetooth name of the audio to be played and the audio playing device selected in the audio application;
setting operation authority for calling an audio data packet corresponding to audio to be played in the audio application according to the authorization verification instruction;
acquiring Bluetooth pairing information of audio application equipment and audio attribute information of audio to be played, and generating an audio playing request by combining an authorization verification instruction of the audio application;
sending the audio playing request to corresponding audio playing equipment;
receiving an authorization verification instruction returned by the audio playing device;
inputting the returned authorization verification instruction into the audio application for authorization verification, and downloading an audio data packet of the audio to be played after the authorization verification is passed;
transmitting an audio data packet of the audio to be played to corresponding audio playing equipment;
the sorting value analysis process of the audio playing request specifically comprises the following steps:
determining a first parameter according to a communication state of the audio application device corresponding to the audio playing request, wherein the first parameter when the communication state is a connection state is larger than the first parameter when the communication state is a non-connection state;
determining the request queuing time of the audio play request in the task list according to the request time of the audio play request, and determining a second parameter which is positively correlated according to the request queuing time;
counting the request frequency of the audio playing request in the request queuing time, and determining a third parameter which is positively correlated according to the request frequency;
determining a ranking value of the corresponding audio playing request by the product of the first parameter, the second parameter and the third parameter;
the calculation formula of the ordering value of the audio playing request specifically comprises the following steps:
wherein,a ranking value representing an audio play request j; />A first parameter indicating that the audio playing request j is in a communication state i of the corresponding audio application device, i=1 indicating that the communication state is a connection state, and i=0 indicating that the communication state is a non-connection state; />Representing a request queuing time of the audio play request j in the task list; />Representing an average request queuing time of the historical audio play request in the task list; />Representing the audio play request j at request queuing time +.>Frequency of requests within.
2. The method for adaptively switching between audio modes according to claim 1, wherein the process of collecting the communication state of the audio application device from the audio playing device specifically comprises the following steps:
acquiring an audio application device which is in Bluetooth real-time connection with an audio playing device as a reference device;
if the audio application device sending the audio playing request and the reference device are the same device, the communication state of the corresponding audio application device is a connection state;
if the audio application device sending the audio playing request and the reference device are not the same device, the communication state of the corresponding audio application device is a non-connection state.
3. The method for adaptively switching between playback processing according to claim 1, further comprising:
receiving an audio play revocation request sent by audio application equipment, wherein the audio play revocation request comprises Bluetooth pairing information of the audio application equipment and audio attribute information of audio to be revoked;
and comparing and verifying the Bluetooth pairing information and the audio attribute information in the audio play revocation request with the Bluetooth pairing information and the audio attribute information in the audio play request, and deleting the corresponding audio play request in the task list after verification is passed.
4. The multi-audio adaptive switching play processing method according to claim 1, wherein the audio application device further comprises:
generating an authorization releasing instruction according to the Bluetooth name of the audio to be revoked and the audio playing device selected in the audio application;
according to the authorization releasing instruction, releasing the operation authority of the audio data packet which is set and called the corresponding audio to be played in the audio application;
generating an audio playing revocation request after Bluetooth pairing information of audio application equipment and audio attribute information of audio to be revoked are acquired;
and sending the audio play revocation request to the corresponding audio play device.
5. A multi-audio self-adaptive switching play processing system is characterized by comprising:
the request receiving module is used for receiving audio playing requests sent by a plurality of audio application devices, wherein the audio playing requests comprise Bluetooth pairing information of the audio application devices, authorization verification instructions of the audio applications and audio attribute information of audio to be played;
the sequencing analysis module is used for collecting the communication state of the audio application device from the audio playing device and analyzing the sequencing value of the corresponding audio playing request in real time by combining the request time and the request frequency of the audio playing request sent by the audio application device;
the request ordering module is used for writing the audio playing request into the task list and updating the ordering position of the audio playing request in the task list in real time according to the ordering value;
the response authentication module is used for reading the audio playing requests of the front sequence in the task list to play and respond, and establishing Bluetooth connection with the corresponding audio application equipment after carrying out encryption-free pairing authentication on the corresponding Bluetooth pairing information;
the audio receiving module is used for sending an authorization verification instruction to an audio application in the corresponding audio application equipment and receiving an audio data packet of audio to be played, which is sent by the audio application equipment after the authorization verification of the audio application passes;
the audio playing module is used for playing the audio data packet in real time after being analyzed, and reading the audio playing request of the front sequence in the task list again after the playing is finished so as to realize multi-audio switching playing;
wherein the audio application device performs the steps of:
generating an authorization verification instruction according to the Bluetooth name of the audio to be played and the audio playing device selected in the audio application;
setting operation authority for calling an audio data packet corresponding to audio to be played in the audio application according to the authorization verification instruction;
acquiring Bluetooth pairing information of audio application equipment and audio attribute information of audio to be played, and generating an audio playing request by combining an authorization verification instruction of the audio application;
sending the audio playing request to corresponding audio playing equipment;
receiving an authorization verification instruction returned by the audio playing device;
inputting the returned authorization verification instruction into the audio application for authorization verification, and downloading an audio data packet of the audio to be played after the authorization verification is passed;
transmitting an audio data packet of the audio to be played to corresponding audio playing equipment;
the sorting value analysis process of the audio playing request specifically comprises the following steps:
determining a first parameter according to a communication state of the audio application device corresponding to the audio playing request, wherein the first parameter when the communication state is a connection state is larger than the first parameter when the communication state is a non-connection state;
determining the request queuing time of the audio play request in the task list according to the request time of the audio play request, and determining a second parameter which is positively correlated according to the request queuing time;
counting the request frequency of the audio playing request in the request queuing time, and determining a third parameter which is positively correlated according to the request frequency;
determining a ranking value of the corresponding audio playing request by the product of the first parameter, the second parameter and the third parameter;
the calculation formula of the ordering value of the audio playing request specifically comprises the following steps:
wherein,a ranking value representing an audio play request j; />A first parameter indicating that the audio playing request j is in a communication state i of the corresponding audio application device, i=1 indicating that the communication state is a connection state, and i=0 indicating that the communication state is a non-connection state; />Representing a request queuing time of the audio play request j in the task list; />Representing an average request queuing time of the historical audio play request in the task list; />Representing the audio play request j at request queuing time +.>Frequency of requests within.
6. A computer terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements a multi-audio adaptive switching play processing method according to any one of claims 1-3 when executing the program.
7. A computer readable medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement a multi-audio adaptive switching play processing method as claimed in any one of claims 1 to 3.
CN202311498041.3A 2023-11-13 2023-11-13 Multi-audio self-adaptive switching play processing method, system, terminal and medium Active CN117241253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311498041.3A CN117241253B (en) 2023-11-13 2023-11-13 Multi-audio self-adaptive switching play processing method, system, terminal and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311498041.3A CN117241253B (en) 2023-11-13 2023-11-13 Multi-audio self-adaptive switching play processing method, system, terminal and medium

Publications (2)

Publication Number Publication Date
CN117241253A CN117241253A (en) 2023-12-15
CN117241253B true CN117241253B (en) 2024-01-19

Family

ID=89086448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311498041.3A Active CN117241253B (en) 2023-11-13 2023-11-13 Multi-audio self-adaptive switching play processing method, system, terminal and medium

Country Status (1)

Country Link
CN (1) CN117241253B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499407A (en) * 2002-11-06 2004-05-26 联想(北京)有限公司 System and method for controlling music playing back in household network
CN105744288A (en) * 2016-03-22 2016-07-06 广东欧珀移动通信有限公司 Playing control method and apparatus for audio/video playing system
CN105810220A (en) * 2016-03-22 2016-07-27 广东欧珀移动通信有限公司 Control method, apparatus and system for music playback system
CN205881453U (en) * 2016-04-14 2017-01-11 卓荣集成电路科技有限公司 Music approval broadcast smart machine and system based on bluetooth
CN111083684A (en) * 2019-12-23 2020-04-28 维沃移动通信有限公司 Method for controlling electronic equipment and electronic equipment
CN111294642A (en) * 2018-12-10 2020-06-16 杭州海康威视数字技术股份有限公司 Video stream playing method and device
CN112562614A (en) * 2019-09-26 2021-03-26 广州艾美网络科技有限公司 Song singing requesting information processing method and device, song requesting terminal equipment and song requesting equipment
CN115022773A (en) * 2022-07-04 2022-09-06 深圳创维-Rgb电子有限公司 Bluetooth device audio control method, device and storage medium
CN115589581A (en) * 2022-09-26 2023-01-10 上汽大众汽车有限公司 Bluetooth-based audio non-inductive transmission method for copilot entertainment system
CN115915081A (en) * 2022-12-01 2023-04-04 深圳市东明炬创电子股份有限公司 Audio output channel switching control method, intelligent terminal and storage medium
CN116017382A (en) * 2022-12-12 2023-04-25 西安紫光展锐科技有限公司 Audio playing method and device and terminal equipment
CN116419196A (en) * 2023-02-02 2023-07-11 深圳市威益德智能科技有限公司 Data transmission method, device, equipment and computer readable storage medium
CN116684856A (en) * 2023-06-21 2023-09-01 上海摩软通讯技术有限公司 Bluetooth connection method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100840901B1 (en) * 2007-06-22 2008-06-24 주식회사 케이티프리텔 System for supporting over-the-air service and method thereof
CN105930691B (en) * 2016-04-14 2019-01-08 卓荣集成电路科技有限公司 Music license play system and method based on bluetooth

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1499407A (en) * 2002-11-06 2004-05-26 联想(北京)有限公司 System and method for controlling music playing back in household network
CN105744288A (en) * 2016-03-22 2016-07-06 广东欧珀移动通信有限公司 Playing control method and apparatus for audio/video playing system
CN105810220A (en) * 2016-03-22 2016-07-27 广东欧珀移动通信有限公司 Control method, apparatus and system for music playback system
CN205881453U (en) * 2016-04-14 2017-01-11 卓荣集成电路科技有限公司 Music approval broadcast smart machine and system based on bluetooth
CN111294642A (en) * 2018-12-10 2020-06-16 杭州海康威视数字技术股份有限公司 Video stream playing method and device
CN112562614A (en) * 2019-09-26 2021-03-26 广州艾美网络科技有限公司 Song singing requesting information processing method and device, song requesting terminal equipment and song requesting equipment
CN111083684A (en) * 2019-12-23 2020-04-28 维沃移动通信有限公司 Method for controlling electronic equipment and electronic equipment
CN115022773A (en) * 2022-07-04 2022-09-06 深圳创维-Rgb电子有限公司 Bluetooth device audio control method, device and storage medium
CN115589581A (en) * 2022-09-26 2023-01-10 上汽大众汽车有限公司 Bluetooth-based audio non-inductive transmission method for copilot entertainment system
CN115915081A (en) * 2022-12-01 2023-04-04 深圳市东明炬创电子股份有限公司 Audio output channel switching control method, intelligent terminal and storage medium
CN116017382A (en) * 2022-12-12 2023-04-25 西安紫光展锐科技有限公司 Audio playing method and device and terminal equipment
CN116419196A (en) * 2023-02-02 2023-07-11 深圳市威益德智能科技有限公司 Data transmission method, device, equipment and computer readable storage medium
CN116684856A (en) * 2023-06-21 2023-09-01 上海摩软通讯技术有限公司 Bluetooth connection method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于TCP/IP协议的桌面视频会议系统传输控制的实现;马莉, 殷伯云;现代计算机(第11期);全文 *

Also Published As

Publication number Publication date
CN117241253A (en) 2023-12-15

Similar Documents

Publication Publication Date Title
US9411553B2 (en) Audio configuration based on selectable audio modes
CN105493069A (en) Method for sharing media data and electronic device thereof
JP6974688B2 (en) Communication methods, terminals, telecommunications company servers and smart devices
JP2019128586A (en) Audio processing method and apparatus, and computer-readable storage medium
CN110708694A (en) Method, system, storage medium and electronic device for realizing simultaneous online public and private networks
CN106970816B (en) Software upgrading processing method and device and audio playing equipment
CN109819101A (en) A kind of evidence collecting method and Specialised mobile terminal of collecting evidence
CN109151595A (en) Method for processing video frequency, device, terminal and medium
CN104917762A (en) Permission assignment method, first electronic equipment and system
CN112533188B (en) Output processing method and device of play source
CN117241253B (en) Multi-audio self-adaptive switching play processing method, system, terminal and medium
CN111274433A (en) Method and device for updating voice resource library
CN106022090A (en) User login information processing method, user login information processing device and electronic equipment
CN108337306A (en) Equipment finding method, device, system, terminal and storage medium
CN105979297A (en) Watching duration statistic method and system
CN107342981B (en) Sensor data transmission method and device and virtual reality head-mounted equipment
CN112637821B (en) Management platform and management method of vehicle communication chip and vehicle communication management system
CN114979344A (en) Echo cancellation method, device, equipment and storage medium
CN112860938A (en) Multi-sound-source control method of vehicle-mounted multimedia, storage medium and electronic equipment
CN110275981B (en) Content recommendation method and device
CN112803957B (en) Data processing method and system, embedded user card and terminal
CN113923270B (en) Message processing method, device, equipment and readable storage medium
CN107181727B (en) Control method and device of external equipment
CN112767965B (en) Method, system, medium, and service/terminal for generating/applying noise recognition model
JP6928638B2 (en) Service control method, service control device and computer readable storage medium

Legal Events

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