CN117729513A - Audio transmission method and device and storage medium - Google Patents

Audio transmission method and device and storage medium Download PDF

Info

Publication number
CN117729513A
CN117729513A CN202311830561.XA CN202311830561A CN117729513A CN 117729513 A CN117729513 A CN 117729513A CN 202311830561 A CN202311830561 A CN 202311830561A CN 117729513 A CN117729513 A CN 117729513A
Authority
CN
China
Prior art keywords
broadcast source
broadcast
target
source
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.)
Pending
Application number
CN202311830561.XA
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202311830561.XA priority Critical patent/CN117729513A/en
Publication of CN117729513A publication Critical patent/CN117729513A/en
Pending legal-status Critical Current

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

Abstract

The embodiment of the application discloses an audio transmission method, an audio transmission device and a storage medium, wherein the method comprises the following steps: acquiring a broadcast signal of a broadcast source device, wherein the broadcast signal comprises target audio data; and sending the target audio data to an audio playing device which establishes communication connection so as to play the target audio data through the audio playing device, wherein the audio playing device does not support broadcast communication with the broadcast source device. The audio playing device which does not support the broadcast communication with the broadcast source device can receive the corresponding audio information, so that the corresponding audio playing is realized.

Description

Audio transmission method and device and storage medium
Technical Field
Embodiments of the present application relate to broadcast communication technology, and relate to, but are not limited to, an audio transmission method and apparatus, and a storage medium.
Background
Low power audio transmission technology (LE audio, bluetooth Low Energy audio) is a way to realize broadcast audio transmission, which can work with lower power consumption to realize transmission of audio data.
In the prior art, in order to implement a low-power audio transmission technology, a broadcast source device and an audio playing device are generally required to be adopted, and audio data sent by the broadcast source device is received based on the audio playing device and played correspondingly.
However, if the audio playing device is required to receive the audio data sent by the broadcast source device, the audio playing device must support the low-power audio transmission protocol, and some headphones, speakers and the like in the prior art cannot support the transmission protocol, that is, cannot communicate with the broadcast source device, so that the audio data cannot be acquired for playing in a low-power audio transmission manner.
Disclosure of Invention
In view of this, the audio transmission method, apparatus, and storage medium provided in the embodiments of the present application enable an audio playing device that does not support broadcast communication with a broadcast source device to receive corresponding audio information, thereby implementing corresponding audio playing. The audio transmission method, the audio transmission device and the storage medium provided by the embodiment of the application are realized in the following way:
in an embodiment of the present application, an audio transmission method is provided, where the method is applied to a terminal device, and the method includes:
acquiring a broadcast signal of a broadcast source device, wherein the broadcast signal comprises target audio data;
and sending the target audio data to an audio playing device which establishes communication connection so as to play the target audio data through the audio playing device, wherein the audio playing device does not support broadcast communication with the broadcast source device.
In an embodiment of the present application, there is further provided an audio transmission apparatus, including: the device comprises an acquisition module and a sending module;
the acquisition module is used for acquiring a broadcast signal of the broadcast source equipment, wherein the broadcast signal comprises target audio data;
and the sending module is used for sending the target audio data to the audio playing device which establishes communication connection so as to play the target audio data through the audio playing device, wherein the audio playing device does not support broadcast communication with the broadcast source device.
The audio transmission device provided by the embodiment of the application comprises a memory, a processor and a transceiver, wherein the memory stores a computer program capable of running on the processor, and the processor and the transceiver implement the method of the embodiment of the application when executing the program.
The computer readable storage medium provided in the embodiments of the present application stores a computer program thereon, which when executed by a processor implements the method provided in the embodiments of the present application.
The audio transmission method, the audio transmission device and the storage medium provided by the embodiment of the application can acquire the broadcast signal of the broadcast source equipment, wherein the broadcast signal comprises target audio data; and sending the target audio data to an audio playing device which establishes communication connection so as to play the target audio data through the audio playing device, wherein the audio playing device does not support broadcast communication with the broadcast source device. The terminal equipment acquires the broadcast signal of the broadcast source equipment, and the terminal equipment transmits the broadcast signal in a communication mode between the terminal equipment and the audio playing equipment, so that the audio playing equipment can receive corresponding audio information, corresponding audio playing is realized, and the universality of broadcast communication is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the technical aspects of the application.
Fig. 1 is an application scenario schematic diagram of an audio transmission method provided in an embodiment of the present application;
fig. 2 is a flow chart of an audio transmission method provided in an embodiment of the present application;
fig. 3 is another flow chart of an audio transmission method provided in an embodiment of the present application;
fig. 4 is another flow chart of an audio transmission method provided in an embodiment of the present application;
fig. 5 is another flow chart of an audio transmission method provided in an embodiment of the present application;
fig. 6 is an overall interaction schematic diagram of an audio transmission method provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an audio transmission device provided in an embodiment of the present application;
fig. 8 is another schematic structural diagram of an audio transmission device according to an embodiment of the present application.
Detailed Description
For the purposes, technical solutions and advantages of the embodiments of the present application to be more apparent, the specific technical solutions of the present application will be described in further detail below with reference to the accompanying drawings in the embodiments of the present application. The following examples are illustrative of the present application, but are not intended to limit the scope of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
It should be noted that the term "first/second/third" in reference to the embodiments of the present application is used to distinguish similar or different objects, and does not represent a specific ordering of the objects, it being understood that the "first/second/third" may be interchanged with a specific order or sequence, as permitted, to enable the embodiments of the present application described herein to be implemented in an order other than that illustrated or described herein.
It should be noted that the low-power audio transmission technology is a way to realize broadcast audio transmission, and it can work with lower power consumption to realize audio data transmission.
In the related art, in order to implement a low-power audio transmission technology, a broadcast source device and an audio playing device are generally required to be used, and audio data sent by the broadcast source device is received and played correspondingly based on the audio playing device.
However, if the audio playing device is required to receive the audio data sent by the broadcast source device, the audio playing device must support the low-power audio transmission protocol, and some headphones, speakers and the like in the prior art cannot support the transmission protocol, that is, cannot communicate with the broadcast source device, so that the audio data cannot be acquired for playing in a low-power audio transmission manner.
For example: under the condition that the traditional Bluetooth earphone, the wired earphone and the like are used as audio playing equipment, the equipment cannot support a low-power-consumption audio transmission protocol, so that the equipment cannot directly communicate with broadcast source equipment, and cannot acquire audio data for playing in a low-power-consumption audio transmission mode.
In order to solve the above-mentioned problems in the related art, an audio transmission method is provided in the embodiments of the present application, and a practical application scenario of the audio transmission method is explained below.
Fig. 1 is a schematic view of an application scenario of an audio transmission method provided in an embodiment of the present application, please refer to fig. 1, and the scenario includes: broadcast source device 110, terminal device 120, and audio playback device 130.
The broadcast source device 110 may be a mobile phone with broadcasting capability, a signal initiating device, or any electronic device with a broadcast transmitting function, through which audio data may be transmitted in a broadcast form.
The terminal device 120 may be a mobile phone including, but not limited to, a mobile phone, a wearable device (e.g., smart watch, smart bracelet, smart glasses, etc.), a tablet computer, a notebook computer, a vehicle-mounted terminal, a PC (Personal Computer ), etc. The functions performed by the method may be performed by a processor in the relay device calling program code, which of course may be stored in a computer storage medium, it being seen that the relay device comprises at least a processor and a storage medium.
The audio playback device 130 may be, for example, a speaker, a headphone, or any device having audio output capabilities, without specific limitation.
It should be noted that, communication may be performed between the broadcast source device 110 and the terminal device 120 in a broadcast manner, that is, the broadcast source device 110 transmits data in a broadcast manner, and the terminal device 120 receives corresponding data.
The terminal device 120 and the audio playing device 130 may communicate with each other by a wired connection or a bluetooth connection, and it should be noted that, the audio playing device is a device that does not support broadcast communication with the broadcast source device.
The implementation process of the audio transmission method provided in the embodiment of the present application is explained below based on the above-mentioned practical application scenario.
Fig. 2 is a flowchart of an audio transmission method provided in an embodiment of the present application, please refer to fig. 2, the method includes:
s210: a broadcast signal of a broadcast source device is acquired.
Wherein the broadcast signal includes target audio data.
It should be noted that the main implementation body of the method may be the terminal device, and the terminal device may acquire a broadcast signal of the broadcast source device, where the broadcast signal may include target audio data sent by the broadcast source device, where the target audio data may be, for example, music, a recording, or any information that may be transmitted as audio data, and is not limited herein.
Wherein the broadcast source device may transmit a broadcast signal in the form of a broadcast, and the terminal device may receive the broadcast signal in a specific reception state, thereby acquiring the target audio data.
S220: and sending the target audio data to an audio playing device which establishes communication connection so as to play the target audio data through the audio playing device.
Wherein the audio playback device does not support broadcast communication with the broadcast source device.
It should be noted that, after the target audio data is obtained, the target audio data may be sent to the audio playing device. The audio playing device may be, for example, a wired earphone, or a conventional bluetooth earphone without broadcast receiving capability, or the like.
For wired headphones, the target audio data may be sent to the audio playing device by way of a physical line; for a conventional bluetooth headset without broadcast receiving capability, the target audio data may be transmitted to the audio playback device by means of bluetooth communication.
Because the audio playing device does not support the broadcast communication with the broadcast source device, the audio playing device cannot directly receive the broadcast signal sent by the broadcast source device, and the target audio data needs to be acquired after forwarding through the terminal device.
In the audio transmission method provided by the embodiment of the application, a broadcast signal of a broadcast source device can be obtained, wherein the broadcast signal comprises target audio data; and sending the target audio data to an audio playing device which establishes communication connection so as to play the target audio data through the audio playing device, wherein the audio playing device does not support broadcast communication with the broadcast source device. The terminal equipment acquires the broadcast signal of the broadcast source equipment, and the terminal equipment transmits the broadcast signal in a communication mode between the terminal equipment and the audio playing equipment, so that the audio playing equipment can receive corresponding audio information, corresponding audio playing is realized, and the universality of broadcast communication is improved.
The implementation procedure of determining the broadcast source apparatus based on the terminal apparatus provided in the embodiment of the present application is explained below.
Fig. 3 is another flow chart of an audio transmission method provided in an embodiment of the present application, referring to fig. 3, before acquiring a broadcast signal of a broadcast source device, the method includes:
s310: a target broadcast source is determined from the at least one broadcast source.
In the actual application scenario, the same terminal device may receive broadcast signals sent by multiple broadcast sources.
For example: in the case where two broadcast sources exist in one area, the terminal device may receive broadcast information of the two broadcast sources, but in the case where the terminal device transmits target audio data to the audio playback device, the target audio data in the broadcast information transmitted by one of the broadcast sources may be required.
On the basis, one of the broadcast sources may be determined from among the plurality of broadcast sources as the target broadcast source.
Correspondingly, acquiring the broadcast signal of the broadcast source device includes:
s320: target audio data is acquired from a target broadcast source by means of broadcast reception.
The broadcast receiving manner may be to receive the broadcast message according to a corresponding receiving frequency, for example: the receiving frequency of the first broadcast source is frequency a, and the receiving frequency of the second broadcast source is frequency B, and if the broadcast information of the first broadcast source needs to be received, the receiving frequency a can be used as the receiving frequency to receive, thereby obtaining the corresponding broadcast signal.
After the broadcast signals are acquired through the corresponding broadcast receiving mode, corresponding target audio data can be determined, and then the target audio data are sent to corresponding audio playing equipment to realize the output of the audio data.
In the audio transmission method provided by the embodiment of the application, a target broadcast source can be determined from at least one broadcast source; target audio data is acquired from a target broadcast source by means of broadcast reception. The method can more accurately receive the broadcast signal by determining the target broadcast source, avoid error propagation of the broadcast signal, and further obtain more accurate target audio data to be sent to the audio playing device.
The following explains a specific implementation procedure for determining a target broadcast source provided in the embodiment of the present application.
Fig. 4 is another flow chart of an audio transmission method provided in an embodiment of the present application, referring to fig. 4, before determining a target broadcast source from at least one broadcast source, the method includes:
s410: broadcast source information is acquired and a broadcast source list is established based on the broadcast source information.
Wherein the broadcast source list includes at least one broadcast source.
It should be noted that, before determining the target broadcast source, the broadcast source information may be acquired by a manner of detection of the terminal device itself, for example: the source of the broadcast signals which can be received by the terminal equipment can be determined in a detection mode, if the terminal equipment can receive N broadcast signals in a broadcast mode, the terminal equipment can be determined to acquire the signals sent by the N broadcast sources, and the information of the broadcast sources can be acquired respectively.
The information of the broadcast source may be, for example, a receiving frequency of a broadcast signal transmitted by the broadcast source, a signal strength of the broadcast signal, etc., which are not particularly limited herein, and any relevant information that may be used to represent the broadcast source may be obtained as one of the broadcast source information based on actual requirements.
After the broadcast source information of the plurality of broadcast sources is obtained respectively, a broadcast source list can be established based on the broadcast source information, and the plurality of broadcast sources and the corresponding broadcast source information thereof can be recorded in the broadcast source list, wherein the broadcast sources can be broadcast sources which can receive broadcast signals by the terminal equipment.
It should be noted that, based on the above manner, a plurality of broadcast sources may be established to obtain a broadcast source list, and based on the broadcast source list, a subsequent target broadcast source determination task may be performed.
Accordingly, determining a target broadcast source from the at least one broadcast source includes:
s420: a target broadcast source is determined from the broadcast source list.
After the broadcast source list is obtained, one of the broadcast sources may be set as a target broadcast source from the broadcast source list. Wherein the at least one broadcast source comprises the target broadcast source.
The target broadcast source may be determined from the broadcast source list, or if a new broadcast source is temporarily added by the user, if the new broadcast source is used as the target broadcast source, the broadcast source information of the new broadcast source may be stored in the broadcast source list by the terminal device.
In the audio transmission method provided by the embodiment of the application, broadcast source information can be acquired, and a broadcast source list is established based on the broadcast source information; a target broadcast source is determined from the broadcast source list. By establishing the broadcast source list, the target broadcast source can be determined more quickly and accurately, so that broadcast signals sent by the target broadcast source can be received more efficiently, and corresponding target audio data can be determined.
The method for determining the target broadcast source from the broadcast source list may be various, and a process for determining the target broadcast source in various ways will be explained below.
In one embodiment, determining a target broadcast source from a broadcast source list includes: in response to the selection operation, a target broadcast source is determined from the broadcast source list.
It should be noted that the terminal device may be a mobile phone or other types of devices with display interfaces, where a list of broadcast sources may be displayed in the corresponding display interface of the device, for example, a name of each broadcast source and corresponding broadcast source information may be displayed in a list manner.
The target broadcast source may be determined from the broadcast source list based on a user selection operation, for example: if the broadcast source list includes N broadcast sources, a corresponding selection control may exist based on the N broadcast sources, and the user may select one of the broadcast sources as the target broadcast source through the selection control.
In another embodiment, determining a target broadcast source from a broadcast source list includes: determining identification information of each broadcast source in a broadcast source list; and under the condition that the identification information of the broadcast source is the same as the preset identification information, determining the broadcast source as a target broadcast source.
It should be noted that, a preset identification information may be configured in advance in the terminal device, where the preset identification information may be used to indicate identification information of a required broadcast source, after the broadcast source list is obtained, since the broadcast source list may include broadcast source information, these information may include identification information of the broadcast source, and the broadcast source may be compared with the preset identification information based on the identification information of each broadcast source, if the broadcast source is the required broadcast source, the corresponding broadcast source may be used as the target broadcast source; in contrast, if the broadcast source is different, the broadcast source may be determined to be an unnecessary broadcast source, and the corresponding determination may be performed based on the next broadcast source in the broadcast source list until the target broadcast source is determined or all the broadcast sources in the list cannot be used as the target broadcast source.
The identification information may be a name of a broadcast source or a reception frequency, etc., and is not particularly limited herein. If there are a plurality of broadcast sources that can be targeted broadcast sources in the broadcast source list, one of the broadcast sources may be targeted broadcast sources in order.
In one embodiment, determining a target broadcast source from a broadcast source list includes: determining the signal intensity of each broadcast source in the broadcast source list; and taking the broadcast source with the highest signal strength as a target broadcast source.
It should be noted that, in the actual implementation process, there may be a scenario where there is no hard requirement on the specific content broadcast by the broadcast source, for example: when any one of the broadcast sources is selected as the target broadcast source, in order to ensure normal transmission of the broadcast signals, the signal strength of the broadcast source can be used as a standard, and the broadcast source with high signal strength can be used as the target broadcast source.
The signal intensity of each broadcast source can be recorded in the broadcast source list, and in the process of determining the target broadcast source, the broadcast source with the highest signal intensity in the broadcast source list can be used as the target broadcast source.
In addition to the above three manners of determining the target broadcast source from the broadcast source list, the transmission of the audio signal may be achieved by selecting the desired broadcast source from the broadcast source list as the target broadcast source according to the actual application scenario, which is not particularly limited herein.
The following explains a specific implementation procedure implemented by bluetooth transmission in the audio transmission method provided in the embodiment of the present application.
Fig. 5 is another flow chart of an audio transmission method provided in an embodiment of the present application, please refer to fig. 5, for sending target audio data to an audio playing device for establishing a communication connection, which includes:
s510: in the case where the communication connection is a bluetooth communication connection, the format of the target audio data is converted into an audio stream format supporting bluetooth transmission.
It should be noted that, the initial format of the target audio data received by the terminal device may be a format of a broadcast audio stream, and the audio stream in the format may be converted into an audio stream format supporting bluetooth transmission.
The above format conversion may be performed on the premise that the communication connection is determined to be a bluetooth connection, so as to obtain the target audio data in the audio stream format supporting bluetooth transmission.
In the actual conversion process, a corresponding conversion mode may be preconfigured in the terminal device, for example: the conversion of the two audio stream formats can be realized by a pre-configured conversion mode in the terminal equipment, so that the audio stream format supported by Bluetooth transmission is obtained.
The audio stream format supported by bluetooth transmission may be, for example, an audio stream in the format of a2dp (Advanced Audio Distribution Profile, bluetooth audio transmission model agreement).
S520: and transmitting the target audio data to the audio playing device through the Bluetooth communication connection.
It should be noted that, after converting the format of the target audio data, determining whether the audio playing device is in the bluetooth receiving mode, if so, transmitting the target audio data to the audio playing device in a bluetooth transmission mode.
The bluetooth reception mode may be, for example, a mode in which an acl connection (Asynchronous Connection Link) is established between the terminal device and the audio playback device, and it is determined that the audio playback device is in a br (basic rate) mode, in which the audio playback device may receive the target audio data after format conversion.
In addition, except for the case of bluetooth transmission, if the audio playing device is a wired earphone, the terminal device can directly transmit the target audio data to the wired earphone through the corresponding physical line in a bluetooth transmission mode, and the earphone plays the corresponding target audio data.
In the audio transmission method provided by the embodiment of the application, the format of the target audio data can be converted into the audio stream format supported by Bluetooth transmission; and under the condition that the audio playing device is in the Bluetooth receiving mode, transmitting the target audio data to the audio playing device in a Bluetooth transmission mode. The method comprises the steps that through format conversion, the audio playing device can receive target audio data sent by the broadcast source device, and accordingly the audio source device can play the corresponding target audio data.
It should be noted that, in the implementation process, there may be a cause such as a failure of the broadcast source, so as to ensure that the audio playing device can play the target audio data normally, the broadcast source may be switched and selected, and one possible switching manner is explained below.
In one embodiment, after the target audio data is sent to the audio playing device communicatively connected to the terminal device, the method further includes: determining the signal strength of a current broadcast source; and switching the broadcasting source under the condition that the signal intensity of the current broadcasting source is lower than a preset signal intensity threshold value.
It should be noted that, the signal strength of the broadcast source may be obtained in real time by the terminal device, and a preset signal strength threshold may be preconfigured, where the preset signal strength threshold may be set correspondingly according to the actual requirement, and is not limited by a specific numerical value.
Under the condition that the signal intensity of the current broadcast source is lower than a preset signal intensity threshold value, it can be determined that the currently used broadcast source is unstable, and the situation that signal packet loss and the like possibly exist when the broadcast signal is continuously acquired based on the current broadcast source can be avoided, and the broadcast source can be switched.
Accordingly, if the signal strength of the current broadcast source is not lower than the preset signal strength threshold, it can be determined that the currently used broadcast source is stable, and the situation that signal packet loss and the like cannot occur due to the fact that the broadcast signal is continuously acquired based on the current broadcast source does not need to be switched.
The signal strength may be calculated by packet loss rate or other related data, for example: the farther the terminal device is from the broadcast source, the lower the signal strength; the more interference signals that are present around, the lower the signal strength.
The following explains the implementation process of switching the current broadcast source to other broadcast sources in the process of implementing the broadcast source switching.
In one embodiment, switching the broadcast source in the case that the signal strength of the broadcast source is lower than a preset signal strength threshold value includes: determining at least one associated broadcast source of the same type as the current broadcast source; and under the condition that the signal intensity of the current broadcast source is lower than a preset signal intensity threshold value, switching the current broadcast source into an associated broadcast source of the current broadcast source.
It should be noted that at least one associated broadcast source of the same type as the current broadcast source may be determined, where the broadcast source type may be determined by information of the broadcast source, and the associated broadcast source may be determined based on the broadcast source list described above.
For example: and traversing the information of all the broadcast sources in the broadcast source list, and taking the broadcast source B as an associated broadcast source if the current broadcast source is the broadcast source A and the broadcast source B is the same as the broadcast source A.
It should be noted that the broadcast sources may be the same or similar in type, or the broadcast sources may be the same or similar in frequency, which is not particularly limited herein, and may be represented by a certain association relationship between the broadcast sources, and the associated broadcast sources are determined based on the association relationship.
Wherein, the associated broadcast source can be one or a plurality of broadcast sources.
In addition, besides determining the associated broadcast source in the above manner, one or more broadcast sources may be obtained as the associated broadcast source through active setting by the user or automatic detection by the terminal device based on the broadcast source information.
After determining the associated broadcast source, the current broadcast source may be switched to the associated broadcast source of the current broadcast source if the signal strength of the current broadcast source is below a preset signal strength threshold.
For example, if the broadcast source a is a current broadcast source and the broadcast source B is an associated broadcast source of the broadcast source a, the current broadcast source may be switched to the broadcast source B if the signal strength of the broadcast source a is lower than a preset signal strength threshold.
The above-mentioned process is a process of switching broadcast sources based on the terminal device itself, and in the actual implementation process, the corresponding switching may be performed by a user operation manner, which is not limited herein.
The following explains the interaction among the broadcast source device, the terminal device, and the audio playing device in the embodiments of the present application.
Fig. 6 is an overall interaction schematic diagram of an audio transmission method provided in an embodiment of the present application, referring to fig. 6, the interaction step includes interaction between a broadcast source device and a terminal device and interaction between the terminal device and an audio playing device, where, according to an execution sequence, the interaction between the broadcast source device and the terminal device may include:
determining, by the broadcast source device, a manner of transmitting the broadcast signal, for example, determining whether to delay transmission or to transmit at a fixed time, and determining, by the broadcast source device, target audio data to be transmitted; in addition, determining a storage space of the target audio data in the broadcast signal and establishing a data path of the target audio data; the broadcast signal is transmitted by the broadcast source device to the terminal device.
In order of execution, the interaction between the terminal device and the audio playback device may include:
establishing acl connection and determining that the audio playing device is in br mode; the terminal equipment sends a Bluetooth transmission request to the audio playing equipment, and the audio playing equipment returns a request result to the terminal equipment; and sending the target audio data to the audio playing device by the terminal device.
The audio playback device may play the target audio data after receiving the target audio data.
It should be understood that, although the steps in the flowcharts described above are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described above may include a plurality of sub-steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of execution of the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with at least a part of the sub-steps or stages of other steps or other steps.
Based on the foregoing embodiments, the embodiments of the present application provide an audio transmission apparatus, where the apparatus includes each module included, and each unit included in each module may be implemented by a processor; of course, the method can also be realized by a specific logic circuit; in an implementation, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 7 is a schematic structural diagram of an audio transmission apparatus provided in an embodiment of the present application, referring to fig. 7, the apparatus includes: an acquisition module 710 and a transmission module 720;
an acquisition module 710, configured to acquire a broadcast signal of a broadcast source device, where the broadcast signal includes target audio data;
the sending module 720 is configured to send the target audio data to an audio playing device that establishes a communication connection, so that the target audio data is played by the audio playing device, and the audio playing device does not support broadcast communication with the broadcast source device.
In one embodiment, the obtaining module 710 is further configured to determine a target broadcast source from the at least one broadcast source; and acquiring target audio data from the target broadcast source in a broadcast receiving mode.
In one embodiment, the obtaining module 710 is specifically configured to obtain broadcast source information, and establish a broadcast source list based on the broadcast source information, where the broadcast source list includes at least one broadcast source; a target broadcast source is determined from the broadcast source list, wherein at least one broadcast source includes a target broadcast source.
In one embodiment, the obtaining module 710 is further configured to determine a target broadcast source from the broadcast source list in response to a selection operation.
In one embodiment, the obtaining module 710 is further configured to determine identification information of each broadcast source in the broadcast source list; and under the condition that the identification information of the broadcast source is the same as the preset identification information, determining the broadcast source as a target broadcast source.
In one embodiment, the obtaining module 710 is further configured to determine a signal strength of each broadcast source in the broadcast source list; and taking the broadcasting source with the highest signal strength as the target broadcasting source.
In one embodiment, the sending module 720 is specifically configured to convert, in a case where the communication connection is a bluetooth communication connection, a format of the target audio data into an audio stream format supporting bluetooth transmission; and transmitting the target audio data to the audio playing device through the Bluetooth communication connection.
In one embodiment, the sending module 720 is further configured to determine a signal strength of the current broadcast source; and switching the broadcasting source under the condition that the signal intensity of the current broadcasting source is lower than a preset signal intensity threshold value.
In one embodiment, the sending module 720 is further configured to determine at least one associated broadcast source of the same type as the current broadcast source; and under the condition that the signal intensity of the current broadcast source is lower than a preset signal intensity threshold value, switching the current broadcast source into an associated broadcast source of the current broadcast source.
In the audio transmission device provided by the embodiment of the application, a broadcast signal of a broadcast source device can be obtained, wherein the broadcast signal comprises target audio data; and sending the target audio data to an audio playing device which establishes communication connection so as to play the target audio data through the audio playing device, wherein the audio playing device does not support broadcast communication with the broadcast source device. The terminal equipment acquires the broadcast signal of the broadcast source equipment, and the terminal equipment transmits the broadcast signal in a communication mode between the terminal equipment and the audio playing equipment, so that the audio playing equipment can receive corresponding audio information, corresponding audio playing is realized, and the universality of broadcast communication is improved.
The description of the apparatus embodiments above is similar to that of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
It should be noted that, in the embodiment of the present application, the division of modules by the audio transmission apparatus shown in fig. 7 is schematic, which is merely a logic function division, and other division manners may be adopted in actual implementation. In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units. Or in a combination of software and hardware.
It should be noted that, in the embodiment of the present application, if the method is implemented in the form of a software functional module, and sold or used as a separate product, the method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or part contributing to the related art, and the computer software product may be stored in a storage medium, including several instructions for causing an electronic device to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Fig. 8 is another schematic structural diagram of an audio transmission apparatus provided in the embodiment of the present application, and referring to fig. 8, the embodiment of the present application provides an audio transmission apparatus, which may be the above-mentioned terminal device, or a part of the terminal device, where no specific limitation is placed, and the internal structure diagram may be as shown in fig. 8. The audio transmission device includes a processor 820, memory, and a network interface 840 connected by a system bus 810. Wherein the processor 820 of the audio transmission device is adapted to provide computing and control capabilities. The memory of the audio transmission device includes a non-volatile storage medium 831, an internal memory 832. The non-volatile storage medium 831 stores an operating system, computer programs, and databases. The internal memory 832 provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium 831. The database of the audio transmission device is used for storing data. The network interface 840 of the audio transmission apparatus is used for communication with an external terminal through a network connection. Which when executed by the processor 820, performs the above-described methods.
The apparatus further includes a transceiver 850, where the transceiver 850 may receive messages from other devices or send messages to other devices during operation, through the network interface 840 described above, or through other communication capability modules, without limitation.
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method provided in the above embodiment.
The present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the method provided by the method embodiments described above.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the audio transmission apparatus to which the present application is applied, and that a particular audio transmission apparatus may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the audio transmission apparatus provided herein may be implemented in the form of a computer program that is executable on an audio transmission apparatus as shown in fig. 8. The memory of the audio transmission device may store various program modules constituting the device. The computer program of each program module causes a processor to perform the steps in the methods of each embodiment of the present application described in the present specification.
It should be noted here that: the description of the storage medium and apparatus embodiments above is similar to that of the method embodiments described above, with similar benefits as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" or "some embodiments" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" or "in some embodiments" in various places throughout this specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application. The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments. The foregoing description of various embodiments is intended to highlight differences between the various embodiments, which may be the same or similar to each other by reference, and is not repeated herein for the sake of brevity.
The term "and/or" is herein merely an association relation describing associated objects, meaning that there may be three relations, e.g. object a and/or object B, may represent: there are three cases where object a alone exists, object a and object B together, and object B alone exists.
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 apparatus 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 apparatus. 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 apparatus that comprises the element.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments are merely illustrative, and the division of the modules is merely a logical function division, and other divisions may be implemented in practice, such as: multiple modules or components may be combined, or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or modules, whether electrically, mechanically, or otherwise.
The modules described above as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules; can be located in one place or distributed to a plurality of network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated in one processing unit, or each module may be separately used as one unit, or two or more modules may be integrated in one unit; the integrated modules may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read Only Memory (ROM), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the integrated units described above may be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or part contributing to the related art, and the computer software product may be stored in a storage medium, including several instructions for causing an electronic device to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a removable storage device, a ROM, a magnetic disk, or an optical disk.
The methods disclosed in the several method embodiments provided in the present application may be arbitrarily combined without collision to obtain a new method embodiment.
The features disclosed in the several product embodiments provided in the present application may be combined arbitrarily without conflict to obtain new product embodiments.
The features disclosed in the several method or apparatus embodiments provided in the present application may be arbitrarily combined without conflict to obtain new method embodiments or apparatus embodiments.
The foregoing is merely an embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. An audio transmission method, wherein the method is applied to a terminal device, and the method comprises:
acquiring a broadcast signal of a broadcast source device, wherein the broadcast signal comprises target audio data;
and sending the target audio data to an audio playing device which establishes communication connection so as to play the target audio data through the audio playing device, wherein the audio playing device does not support broadcast communication with the broadcast source device.
2. The method according to claim 1, wherein prior to the acquiring the broadcast signal of the broadcast source device, the method comprises:
determining a target broadcast source from the at least one broadcast source;
the acquiring the broadcast signal of the broadcast source device includes:
and acquiring target audio data from the target broadcast source in a broadcast receiving mode.
3. The method of claim 2, wherein prior to determining the target broadcast source from the at least one broadcast source, the method comprises:
acquiring broadcast source information, and establishing a broadcast source list based on the broadcast source information, wherein the broadcast source list comprises at least one broadcast source, and the at least one broadcast source comprises the target broadcast source;
the determining a target broadcast source from at least one broadcast source includes:
and determining a target broadcast source from the broadcast source list.
4. The method of claim 3, wherein said determining a target broadcast source from said broadcast source list comprises:
in response to a selection operation, a target broadcast source is determined from the broadcast source list.
5. The method of claim 3, wherein said determining a target broadcast source from said broadcast source list comprises:
determining identification information of each broadcast source in the broadcast source list;
and under the condition that the identification information of the broadcast source is the same as the preset identification information, determining the broadcast source as a target broadcast source.
6. The method of claim 3, wherein said determining a target broadcast source from said broadcast source list comprises:
Determining signal strength of each broadcast source in the broadcast source list;
and taking the broadcasting source with the highest signal strength as the target broadcasting source.
7. The method of claim 1, wherein the transmitting the target audio data to an audio playback device that establishes a communication connection comprises:
converting the format of the target audio data into an audio stream format supporting Bluetooth transmission under the condition that the communication connection is Bluetooth communication connection;
and sending the target audio data to the audio playing device through the Bluetooth communication connection.
8. The method according to any one of claims 1-7, wherein after said transmitting said target audio data to an audio playback device communicatively connected to said terminal device, said method further comprises:
determining the signal strength of a current broadcast source;
and switching the broadcasting source under the condition that the signal intensity of the current broadcasting source is lower than a preset signal intensity threshold value.
9. The method of claim 8, wherein switching the broadcast source if the signal strength of the broadcast source is below a preset signal strength threshold comprises:
Determining at least one associated broadcast source of the same type as the current broadcast source;
and under the condition that the signal intensity of the current broadcast source is lower than a preset signal intensity threshold value, switching the current broadcast source into an associated broadcast source of the current broadcast source.
10. An audio transmission device, the device comprising: the device comprises an acquisition module and a sending module;
the acquisition module is used for acquiring a broadcast signal of the broadcast source equipment, wherein the broadcast signal comprises target audio data;
the sending module is configured to send the target audio data to an audio playing device that establishes a communication connection, so that the target audio data is played by the audio playing device, where the audio playing device does not support broadcast communication with the broadcast source device.
11. An audio transmission device comprising a memory, a processor and a transceiver, the memory storing a computer program executable on the processor, characterized in that the processor and the transceiver implement the steps of the method of any one of claims 1 to 9 when the program is executed.
12. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any one of claims 1 to 9.
CN202311830561.XA 2023-12-27 2023-12-27 Audio transmission method and device and storage medium Pending CN117729513A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311830561.XA CN117729513A (en) 2023-12-27 2023-12-27 Audio transmission method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311830561.XA CN117729513A (en) 2023-12-27 2023-12-27 Audio transmission method and device and storage medium

Publications (1)

Publication Number Publication Date
CN117729513A true CN117729513A (en) 2024-03-19

Family

ID=90205288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311830561.XA Pending CN117729513A (en) 2023-12-27 2023-12-27 Audio transmission method and device and storage medium

Country Status (1)

Country Link
CN (1) CN117729513A (en)

Similar Documents

Publication Publication Date Title
WO2020063761A1 (en) Data transmitting method and system
CN106936987B (en) Method and device capable of identifying voice source of Bluetooth headset
CN110650408B (en) Earphone, anti-lost method, anti-lost system and computer readable storage medium
CN108377406B (en) Method and device for adjusting sound and picture synchronization
US10698652B2 (en) Intermediary device for establishing wireless services
US8964638B2 (en) Wireless communication device, wireless communication system, program, and wireless communication method
CN102265578A (en) System and method of switching from streaming content to local content
CN111132111B (en) BLE-based audio sharing method, system and computer readable storage medium
EP4047471A1 (en) Audio data processing method, server, and storage medium
US8510484B2 (en) Content transmission apparatus, content playback system, content transmission method, and program
US20190173991A1 (en) Message Processing Method and System, and Related Device
US20210043203A1 (en) Smart Service Method, Apparatus and Device
CN104092658B (en) Audio data play method and device
CN111954123B (en) Method, system, medium, and wireless audio device for information synchronization of wireless audio devices
CN105681886A (en) Playback device Bluetooth connection control method and device, and playback device
CN109194998A (en) Data transmission method, device, electronic equipment and computer-readable medium
CN112423053A (en) Audio sharing method, system, remote controller and computer readable storage medium
CN116406027A (en) Audio sharing method, bluetooth device, terminal device and storage medium
CN117729513A (en) Audio transmission method and device and storage medium
CN114466099B (en) Control method and device of Bluetooth equipment and storage medium
CN112786070B (en) Audio data processing method and device, storage medium and electronic equipment
CN114173321B (en) Equipment communication connection establishment method and equipment communication system
CN111556406B (en) Audio processing method, audio processing device and earphone
CN113407147A (en) Audio playing method, device, equipment and storage medium
CN112822665A (en) Audio playing method, device, equipment and system

Legal Events

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