[go: up one dir, main page]

CN117729287A - Audio sharing method and device and storage medium - Google Patents

Audio sharing method and device and storage medium Download PDF

Info

Publication number
CN117729287A
CN117729287A CN202311835102.0A CN202311835102A CN117729287A CN 117729287 A CN117729287 A CN 117729287A CN 202311835102 A CN202311835102 A CN 202311835102A CN 117729287 A CN117729287 A CN 117729287A
Authority
CN
China
Prior art keywords
audio
audio data
call
broadcasting
mode
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
CN202311835102.0A
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 CN202311835102.0A priority Critical patent/CN117729287A/en
Publication of CN117729287A publication Critical patent/CN117729287A/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

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses an audio sharing method, an audio sharing device and a storage medium, wherein the method comprises the following steps: under the condition of being in a call mode, acquiring audio data input in the call process; and under the condition that the broadcasting mode is started, sending the audio data in a broadcasting mode, so that each audio playing device receives the audio data and outputs the audio data, and each audio playing device supports broadcasting communication with the terminal device. Each audio playing device participating in the call can more clearly and directly realize audio output in the call process, and the audio transmission effect in the call process is improved.

Description

Audio sharing 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 sharing method and apparatus, and a storage medium.
Background
In a call based on a terminal device, there is generally a call scenario in which a conference or the like requires multiple persons to participate.
In the prior art, in the process of realizing multi-person conversation, a conversation channel is generally established between one device and other devices, and the device outputs corresponding audio through an audio playing device.
However, in an actual conference, due to the limitation of the conference scene, a part of people may not hear the sound due to the use of the speaker, so that the part of the audio information is missed, and the audio transmission effect is poor.
Disclosure of Invention
In view of this, the audio sharing method, the audio sharing device and the storage medium provided by the embodiment of the application can make each audio playing device participating in the call clearer and directly realize audio output in the call process, and improve the audio transmission effect in the call process. The audio sharing method, the audio sharing 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, there is provided an audio sharing method, which is applied to a terminal device, including:
under the condition of being in a call mode, acquiring audio data input in the call process;
and under the condition that the broadcasting mode is started, sending the audio data in a broadcasting mode, so that each audio playing device receives the audio data and outputs the audio data, and each audio playing device supports broadcasting communication with the terminal device.
In another aspect of the embodiments of the present application, there is further provided an audio sharing apparatus, including: the device comprises an acquisition module and a sending module;
The acquisition module is used for acquiring the audio data input in the conversation process under the condition of being in the conversation mode;
and the sending module is used for sending the audio data in a broadcasting mode under the condition that the broadcasting mode is started, so that each audio playing device receives the audio data and outputs the audio data, and each audio playing device supports broadcasting communication with the terminal device.
The audio sharing 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.
In the audio sharing method, the audio sharing device and the storage medium provided by the embodiment of the application, under the condition of being in a call mode, audio data input in the call process are obtained; and under the condition that the broadcasting mode is started, sending the audio data in a broadcasting mode, so that each audio playing device receives the audio data and outputs the audio data, and each audio playing device supports broadcasting communication with the terminal device. Under the condition that the broadcasting mode of the terminal equipment is started, the audio data can be sent to a plurality of audio playing equipment, so that each playing equipment can play the corresponding audio data, namely, each audio playing equipment participating in the call can clearly and directly realize audio output in the call process.
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 sharing method provided in an embodiment of the present application;
fig. 2 is a flow chart of an audio sharing method according to an embodiment of the present application;
fig. 3 is another flow chart of an audio sharing method according to an embodiment of the present application;
fig. 4 is another flow chart of an audio sharing method according to an embodiment of the present application;
fig. 5 is another flow chart of an audio sharing method according to an embodiment of the present application;
fig. 6 is an overall interaction schematic diagram of an audio sharing method provided in an embodiment of the present application;
fig. 7 is an overall flow chart of an audio sharing method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an audio sharing device according to an embodiment of the present disclosure;
fig. 9 is another schematic structural diagram of an audio sharing 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.
In a call based on a terminal device, there is generally a call scenario in which a conference or the like requires multiple persons to participate.
In the related art, in the process of realizing multi-person conversation, a conversation channel is generally established between one device and other devices, and the device outputs corresponding audio through an audio playing device.
However, in an actual conference, due to the limitation of the conference scene, a part of people may not hear the sound due to the use of the speaker, so that the part of the audio information is missed, and the audio transmission effect is poor.
For example: in a conference room of 100 people, if a conference call mode is adopted to call with other terminal devices, a speaker is required to play sound in the conference room, but due to the excessive number of participants, the participants far away from the speaker cannot clearly hear the sound emitted by the speaker, that is, the audio transmission effect is poor.
In order to solve the above problems in the related art, an audio sharing method is provided in the embodiments of the present application, and a practical application scenario of the audio sharing method is explained below.
Fig. 1 is a schematic view of an application scenario of an audio sharing method provided in an embodiment of the present application, referring to fig. 1, the scenario may include: a terminal device 110, a plurality of audio playback devices 120, and a telephony device 130.
The terminal device 110 may be in communication connection with the call device 130, and the call scene is a scene based on the call between the terminal device 110 and the call device 130, for example: teleconferencing, video conferencing, or conversation based on any application implementation is not particularly limited herein.
The terminal device 110 may be further communicatively connected to the plurality of audio playing devices 120 in a broadcast manner, where the terminal device 110 may be configured to transmit broadcast information as a broadcast source, and each audio playing device 120 may be configured to receive the broadcast information transmitted by the terminal device 110 as a broadcast receiving end, and play corresponding audio data based on the broadcast information.
It should be noted that, the terminal device 110 and the call device 130 may include, but are not limited to, a mobile phone, a wearable device (such as a smart watch, a smart bracelet, a smart glasses, etc.), a tablet computer, a notebook computer, a vehicle-mounted terminal, a PC (Personal Computer, a personal computer), etc. The functions performed by the method may be performed by the processor in the terminal device 110 or the call device 130 invoking program code, which may of course be stored in a computer storage medium, it being seen that the terminal device 110, the call device 130 comprise at least a processor and a storage medium.
The audio playing device 120 may be a device with an audio output function such as an earphone or a speaker, where the audio playing device 120 may have a broadcast receiving function, that is, may receive broadcast information sent by the terminal device 110.
The types of the plurality of audio playback devices 120 may be the same or different, and in the case of receiving broadcast information transmitted by the same terminal device 110, the audio playback devices 120 may be at the same broadcast reception frequency.
Based on the relationships between the respective devices existing in the above-described actual application scenario, the implementation procedure of the audio sharing method provided in the embodiment of the present application is explained below.
Fig. 2 is a flowchart of an audio sharing method according to an embodiment of the present application, referring to fig. 2, the method includes:
s210: under the condition of being in a call mode, audio data input in the call process are acquired.
It should be noted that, the execution body of the method may be a terminal device, and the terminal device may determine whether it is in a call mode, and may obtain audio data input in the call process in the call mode.
The call mode may be a mode in which the terminal device and the call device perform a call, for example: and a telephone conference or a video conference is carried out between the terminal equipment and the call equipment, and when the telephone conference or the video conference is connected, the terminal equipment can be determined to be in a call mode.
The audio data input in the conversation process can be audio data input by other users based on the conversation equipment, and the audio data can be sent to the terminal equipment by the conversation equipment in a conversation mode, so that the terminal equipment can acquire the audio data input in the conversation process.
For example: when the user A performs a call based on the call equipment and the user B based on the terminal equipment, the voice spoken by the user A can be recorded by the call equipment to obtain corresponding audio data, and the audio data input in the call process is obtained by the terminal equipment receiving the recording of the user A transmitted by the call equipment.
It should be noted that, the call device and the terminal device are two devices that are relatively existing in the call scene, and are not specific limitations on a certain device, for example: when the user A uses the equipment to communicate with the user B uses the equipment, if the user A speaks, the equipment used by the user A is the communication equipment, and the equipment used by the user B is the terminal equipment; in contrast, if the user B speaks, the device used by the user B is a call device, and the device used by the user a is a terminal device, so that it can be determined whether a certain device in the corresponding scene is used as the terminal device or the call device based on the change of the real-time call scene.
S220: in the case where the broadcast mode is on, the audio data is transmitted in a broadcast manner so that each audio playback apparatus receives the audio data and outputs the audio data.
Wherein, each audio playing device supports broadcast communication with the terminal device.
It should be noted that after the audio data is acquired, whether the broadcasting mode of the terminal device is turned on may be determined, where the broadcasting mode may be a working mode of the terminal device itself, and the broadcasting information may be sent when the terminal device is in the broadcasting mode turned on; accordingly, in case that the terminal device is in the broadcast mode off, the broadcast information cannot be transmitted.
Wherein, whether the broadcasting mode is on or not can be determined by the terminal device according to the actual requirement, after the broadcasting mode is on, the audio data can be sent in a broadcasting mode, namely, the audio data is broadcasted as a broadcasting signal, and the audio data is received by the device with the broadcasting signal receiving capability.
After the terminal device transmits the audio data in the form of broadcasting, a plurality of audio playing devices can receive the corresponding audio data, and the audio playing devices can play based on the received audio data.
For example, if there are 3 audio playing devices, after the terminal device sends the audio data to be sent in the form of a broadcast signal, all the 3 audio playing devices may receive the audio data, and the user may listen to the audio data by wearing or listening to the corresponding audio playing device, that is, may hear the voice message sent by the user on the call device side.
In addition, in the actual implementation process, there may be a plurality of audio data, and correspondingly, a plurality of different audio playing devices may respectively play different audio data.
For example: the audio data includes: the music and conference voice may cause the audio playback apparatus 1 to play back only the music, the audio playback apparatus 2 to play back only the conference voice, and the like, without being particularly limited thereto.
That is, in the actual use process, the audio data played by the plurality of audio playing devices may be different, and the specific played content may be implemented based on the broadcasting of the terminal device.
In the audio sharing method provided by the embodiment of the application, under the condition that the terminal equipment is in a call mode, audio data input in the call process are acquired; and under the condition that the broadcasting mode of the terminal equipment is started, sending the audio data in a broadcasting mode, so that each audio playing equipment receives the audio data and outputs the audio data, and each audio playing equipment supports broadcasting communication with the terminal equipment. Under the condition that the broadcasting mode of the terminal equipment is started, the audio data can be sent to a plurality of audio playing equipment, so that each playing equipment can play the corresponding audio data, namely, each audio playing equipment participating in the call can clearly and directly realize audio output in the call process.
The following explains a specific implementation procedure for determining that the terminal device is in the call mode provided in the embodiment of the present application.
Fig. 3 is another flow chart of an audio sharing method provided in the embodiment of the present application, referring to fig. 3, before obtaining audio data input in a call process, the method further includes:
s310: and acquiring a call request sent by the call equipment.
It should be noted that, the call device may be in communication connection with the terminal device, and the call device may send a call request to the terminal device, where the call request may be used to request the terminal device to make a call with the call device.
For example, the process of the user a making a call or inviting a meeting to the terminal device corresponding to the user B based on the call device is a process of sending a call request.
S320: and establishing a communication channel with communication equipment according to the communication request, and placing the communication channel in a communication mode.
When the terminal device receives the call request, it may determine that the terminal device agrees to perform a call with the call device, and may establish a call path between the terminal device and the call device.
The call channel may be any type of channel, for example: the channel for making a call based on the mobile network, the channel for making a call based on the telephone communication network, or the channel for making a call based on the local area network, etc., are not particularly limited herein, and any channel for making a call based on the call channel may be used.
It should be noted that, in the case of a call between the terminal device and the call device based on the call channel, it may be determined that the terminal device is already in the call mode.
In the process of performing a call based on the call channel, the terminal device may send audio data to the call device, or the call device may send audio data to the terminal device.
It should be noted that, the manner of establishing the call channel may be that, in addition to the foregoing manner, the terminal device sends a call request to the call device, and the call device establishes the call channel between the terminal device and the call device according to the call request, and the foregoing steps S310 to S320 are merely examples of one of the cases, which is not limited in particular herein.
The embodiment of the application provides an audio sharing method, which can acquire a call request sent by a call device; and establishing a call channel between the terminal equipment and the call equipment according to the call request, and placing the terminal equipment and the call equipment in a call mode. The communication channel can be established according to the communication request, so that the terminal equipment is determined to be in a communication state, and the transmission of the audio data can be more efficiently realized.
In one embodiment, transmitting audio data in a broadcast manner includes: audio data is transmitted in a broadcast manner according to a low power audio protocol.
It should be noted that, the low-power audio protocol (Bluetooth Low Energy audio, LE audio) may be a communication protocol based on bluetooth technology, and the broadcast signal reception is implemented by adopting a low-power audio transmission manner, so that power consumption can be reduced and reception of multiple devices can be implemented in the process of receiving audio data based on the communication protocol.
The broadcasting mode based on the low-power-consumption audio protocol may be a communication mode of low-power-consumption broadcasting, and the transmission of the audio data may be implemented under the condition that the corresponding audio playing device is in the corresponding playing mode, so that the audio playing device plays the audio data.
In one embodiment, before transmitting the audio data in a broadcast manner according to the low power audio protocol, the method further comprises: and establishing communication connection with at least two audio playing devices, and determining that each audio playing device is in a low-power-consumption audio receiving mode.
In order to ensure that the audio playing device can normally receive the audio data during the transmission process, a communication connection between the terminal device and at least two audio playing devices may be established before the terminal device broadcasts the audio data, where the communication connection may be, for example, an acl connection (Asynchronous Connection Link, asynchronous connectionless), and each audio playing device may be in a Low-power audio mode, for example, a Low-power audio asynchronous connection mode, where the audio playing device may implement Low-power audio communication and receive corresponding broadcast messages, thereby acquiring the audio data therein and playing the corresponding audio data.
It should be noted that, an audio playing device may be a bluetooth headset, or a group of bluetooth headsets, or other devices for outputting audio, which are not limited herein.
For bluetooth headphones, for example, TWS (True Wireless Stereo, true wireless headphone) may be a single headphone, or a set of headphones with a main headphone and a sub-headphone.
The at least two audio playing devices may be scenes including two audio playing devices or more, and the scenes in which two audio playing devices exist are taken as examples, for example: the first audio playback device may be a separate bluetooth headset, the second audio playback device may be a set of bluetooth headsets or other devices, etc.
An implementation process for implementing audio data transmission in the audio sharing method provided in the embodiments of the present application is explained below.
Fig. 4 is another flow chart of an audio sharing method provided in the embodiment of the present application, referring to fig. 4, the audio data is sent in a broadcast manner according to a low-power audio protocol, including:
s410: a broadcast transmission frequency is determined.
The broadcast transmission frequency may be a transmission frequency used by the terminal device in transmitting the broadcast signal, and different transmission frequencies may transmit the broadcast signal at different distances.
The larger the broadcast transmission frequency is, the larger the power consumption is, and correspondingly, the larger the broadcast transmission range is; the smaller the broadcast transmission frequency, the smaller the power consumption and, correspondingly, the smaller the range of broadcast transmissions.
To ensure that the broadcast transmission is in a proper range and to maintain low power consumption after the broadcast transmission, a further determination of the broadcast transmission frequency may be made prior to transmission of the broadcast information.
The corresponding broadcast transmission frequency may be obtained by manual setting or by determination after the terminal device recognizes based on the environment in which it is currently located, and is not particularly limited herein.
S420: audio data is transmitted in a broadcast manner according to a low power consumption audio protocol based on a broadcast transmission frequency.
After the broadcast transmission frequency is obtained, the audio data may be transmitted in a broadcast manner according to the low power audio protocol at the broadcast transmission frequency.
That is, in different scenes or actual demands, the audio data may be transmitted based on different broadcast transmission frequencies, so as to ensure that the transmitted audio data may be transmitted in a suitable range, and the power consumption of the terminal device itself is maintained at a low level.
Example: before each broadcast transmission, the broadcast transmission frequency of the audio data transmitted at this time can be determined based on the requirement of the transmission at this time, and then the audio signal is transmitted to a plurality of corresponding audio playing devices based on the broadcast transmission frequency.
In the audio sharing method provided in the embodiment of the present application, a broadcast transmission frequency may be determined; and transmitting audio data in a broadcast manner according to a low power consumption audio protocol based on the broadcast transmission frequency. By determining the appropriate broadcast transmission frequency, the terminal device can transmit the audio data to the plurality of audio playing devices in an appropriate transmission range and with appropriate power consumption, so that the power consumption of the terminal device can be reduced while ensuring normal transmission.
One possible implementation procedure for implementing broadcast transmission frequency determination in the audio sharing method provided in the embodiment of the present application is specifically explained below.
Fig. 5 is another flow chart of an audio sharing method provided in an embodiment of the present application, please refer to fig. 5, for determining a broadcast transmission frequency, which includes:
s510: and determining the current working scene.
It should be noted that the terminal device may determine the working scenario where the terminal device is located.
The working scene in which the terminal device is located can be determined, for example, by a setting operation of a user.
By way of example, three operating scenarios may be preconfigured, such as: scene 1, scene 2, and scene 3 are in order of scene from big to small. A corresponding broadcast transmission frequency may be set for each of the operation scenarios, for example: the broadcast transmission frequency of scene 1 is the largest, the broadcast transmission frequency of scene 2 is the next largest, and the broadcast transmission frequency of scene 3 is the smallest.
Or the terminal device can also determine the current working scene through the identification of the terminal device to the scene, for example: the terminal equipment can acquire environmental information through the environmental sensor, so that a corresponding working scene is determined; also for example: the terminal equipment can perform voice recognition by acquiring voice of a user so as to determine a corresponding working scene; for another example: the terminal equipment can determine the size of the current space by sending infrared rays, so as to determine the current working scene.
The working scene where the terminal device is currently located can be determined by adopting any one of the above modes, and it should be noted that a broadcast transmission frequency can be corresponding to each working scene.
S520: the broadcast transmission frequency is determined based on the operating scenario.
After determining the working scenario of the terminal device, the broadcast transmission frequency corresponding to the working scenario may be determined, and then the audio data may be transmitted according to the corresponding broadcast transmission frequency.
For example, if it is determined that the scene in which the terminal device is located is scene 1, the broadcast transmission frequency corresponding to scene 1 may be used as the broadcast transmission frequency used by the terminal device to transmit the audio data, so that the audio data may be transmitted to each audio playing device at the broadcast transmission frequency.
In the audio sharing method provided by the embodiment of the application, the current working scene of the terminal equipment can be determined; the broadcast transmission frequency is determined based on the operating scenario. The broadcasting transmission frequency of the terminal equipment can be obtained more accurately and appropriately by determining the working scene, so that the audio data can be transmitted to each audio playing equipment more accurately, appropriately and with low consumption.
In addition to the above-described manner of determining the broadcast transmission frequency, the broadcast transmission frequency may be determined in various other manners, and methods of determining the broadcast transmission frequency other than based on the operation scenario are described below.
In one embodiment, determining a broadcast transmission frequency includes: in response to the parameter setting operation, a broadcast transmission frequency is determined.
It should be noted that, the parameter setting may be a setting of a relevant parameter in the terminal device by the user, for example: the required transmission range can be set, the minimum power consumption during transmission is limited, or the broadcast transmission frequency is directly and correspondingly set, and the corresponding setting can be performed without specific limitation, so that the related parameters which can influence the broadcast transmission frequency setting can be all the same.
The terminal device may be a device having a display interface, in which related parameters that can be adjusted or set may be displayed, so that the determination of the broadcast transmission frequency is implemented in response to the adjustment or setting of the user for each parameter in the interface.
For example, the broadcast transmission frequency of the terminal device may be set to the value N directly by means of parameter setting, and the terminal device may transmit the audio data as the broadcast transmission frequency according to the value N, thereby transmitting the audio data to the respective audio playback devices at the broadcast transmission frequency.
In addition to determining the broadcast transmission frequency of the terminal device based on the manner of parameter setting, the broadcast transmission frequency may be determined based on other factors.
In one embodiment, determining a broadcast transmission frequency includes: the broadcast transmission frequency is determined based on an upper limit of the number of audio playback devices configured in advance.
It should be noted that, for each terminal device, an upper limit of the number of audio playing devices may be configured, that is, the terminal device transmits the broadcast signal to at most M audio playing devices, where M is the upper limit of the number of audio playing devices configured in advance.
The upper limit of the number of the corresponding audio playing devices may be different for different terminal devices, and accordingly, the broadcast transmission frequency may be determined based on the upper limit of the number of the different audio playing devices, so that the audio data is transmitted to each audio playing device at the broadcast transmission frequency.
It should be noted that, the above three manners of determining the broadcast transmission frequency are all selectable manners, and any one of them may be used for determining in the actual implementation process, or may also be used for determining the broadcast transmission frequency in other manners based on the actual requirement, so that the broadcast transmission frequency of transmitting the audio data to each audio playing device can be achieved more accurately, appropriately and with low consumption, which is not limited in particular.
In one embodiment, after obtaining the audio data input during the call, the method further includes: in the case that the broadcasting mode is turned off, audio data is output based on the audio playing module.
It should be noted that, in the actual working process, the broadcasting mode of the terminal device may not be kept in an on state in real time, and if the broadcasting mode is turned off based on factors such as actual requirements or external factors, the audio data may be output based on the audio playing module of the terminal device.
For example: the audio output module of the terminal device can be used, for example: the audio data output is realized by the sound box and the like, or the audio data output can be realized by the external device of the earphone or the loudspeaker which are connected in a wired way, or the audio data can be transmitted to the Bluetooth audio playing device and the like in a traditional Bluetooth transmission way, and the method is not particularly limited.
In the actual implementation process, the terminal device may have a broadcasting function, or the terminal device that does not have a broadcasting function may send audio data to each audio playing device through the broadcasting device.
The above explanation of the steps is implemented for the case that the terminal device has a broadcasting function, and in the audio sharing method provided in the embodiment of the present application, the interaction situation among the terminal device, the broadcasting device and each audio playing device is explained below when the terminal device does not have a broadcasting capability.
Fig. 6 is an overall interaction schematic diagram of an audio sharing method provided in an embodiment of the present application, and referring to fig. 6, the interaction step includes interaction between a terminal device and a broadcasting device and interaction between the broadcasting device and a plurality of audio playing devices, where the terminal device may be communicatively connected to the broadcasting device, and broadcast audio data to be sent to each corresponding audio playing device through the broadcasting device.
Wherein, in order of execution, the interaction between the terminal device and the broadcasting device may include:
the terminal device determines the manner in which the audio data is transmitted, for example, whether it is time-lapse transmission or timing transmission; the terminal equipment acquires the audio data sent by the call equipment, and can acquire the audio data through an audio input module of the call equipment or can acquire the audio data through external audio input equipment, and sends the acquired audio data to the terminal equipment; in addition, the method can also comprise the steps of determining the storage space of audio data in the conversation process and establishing a data path of the audio data in the conversation process; the audio data is transmitted by the terminal device to the broadcasting device.
In order of execution, the interaction between the broadcasting device and any one of the plurality of playback devices may include:
establishing acl connection and determining that the audio playing device is in a lea mode; the method comprises the steps that a broadcasting device sends a source adding request to an audio playing device, and the broadcasting device receives a first response message returned by the audio playing device; transmitting a path setting message based on a public broadcasting system to the audio playing device by the broadcasting device, and receiving a second response message returned by the audio playing device by the broadcasting device; receiving, by the broadcasting device, the double synchronization message transmitted by the audio playing device; the audio data is transmitted to the audio playback device in the form of a broadcast.
The audio playback device may play the audio data after receiving the audio data.
It should be noted that the foregoing is merely an explanation of an example of the terminal device having no broadcasting capability, and in the actual implementation process, the audio sharing method of the present application may be implemented by using a device having broadcasting transmission capability as the terminal device.
The following explains the overall implementation procedure applied to the terminal device in the audio sharing method provided in the embodiment of the present application.
Fig. 7 is an overall flowchart of an audio sharing method provided in an embodiment of the present application, please refer to fig. 7, and the method includes:
s710: it is determined to be in a talk mode.
S720: and acquiring the audio data input in the conversation process.
S730: it is determined whether the broadcast mode is on. If yes, go to step S740; if not, go to step S760.
S740: the transmission format of the audio data is converted into the transmission format of the broadcast signal.
S750: and sending the audio data to each audio playing device in a low-power audio mode.
S760: the audio data is output based on the audio playing module.
The specific embodiments of the above processes have been explained correspondingly in the foregoing, and are not repeated here.
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 sharing device, where the device 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. 8 is a schematic structural diagram of an audio sharing device according to an embodiment of the present application, referring to fig. 8, the device includes: an acquisition module 810, a transmission module 820;
an obtaining module 810, configured to obtain audio data input during a call in a case of being in a call mode;
and a transmitting module 820 for transmitting audio data in a broadcasting manner in case of a broadcasting mode being turned on, so that each audio playing device receives the audio data and outputs the audio data, and each audio playing device supports broadcasting communication with the terminal device.
In one embodiment, the obtaining module 810 is further configured to obtain a call request sent by the call device; and establishing a communication channel with communication equipment according to the communication request, and placing the communication channel in a communication mode.
In one embodiment, the transmitting module 820 is specifically configured to transmit audio data in a broadcast manner according to a low power audio protocol.
In one embodiment, the sending module 820 is further configured to establish a communication connection with at least two audio playing devices, and determine that each audio playing device is in a low power audio receiving mode.
In one embodiment, the transmitting module 820 is specifically configured to determine a broadcast transmission frequency; audio data is transmitted in a broadcast manner according to a low power consumption audio protocol based on a broadcast transmission frequency.
In one embodiment, the sending module 820 is specifically configured to determine a current working scenario; the broadcast transmission frequency is determined based on the operating scenario.
In one embodiment, the transmitting module 820 is specifically configured to determine the broadcast transmission frequency in response to a parameter setting operation.
In one embodiment, the transmitting module 820 is specifically configured to determine the broadcast transmission frequency based on a preconfigured upper limit on the number of audio playback devices.
In one embodiment, the sending module 820 is further configured to output audio data based on the audio playing module in a case where the broadcasting mode is turned off.
In the audio sharing device provided by the embodiment of the application, under the condition that the terminal equipment is in a call mode, audio data input in the call process are acquired; and under the condition that the broadcasting mode of the terminal equipment is started, sending the audio data in a broadcasting mode, so that each audio playing equipment receives the audio data and outputs the audio data, and each audio playing equipment supports broadcasting communication with the terminal equipment. Under the condition that the broadcasting mode of the terminal equipment is started, the audio data can be sent to a plurality of audio playing equipment, so that each playing equipment can play the corresponding audio data, namely, each audio playing equipment participating in the call can clearly and directly realize audio output in the call process.
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 sharing device shown in fig. 8 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. 9 is another schematic structural diagram of an audio sharing device provided in the embodiment of the present application, and referring to fig. 9, the embodiment of the present application provides an audio sharing device, which may be the above-mentioned terminal device or may be a part of the terminal device, where the internal structure of the audio sharing device is not limited specifically, and may be shown in fig. 9. The audio sharing device includes a processor 920, a memory, and a network interface 940 connected by a system bus 910. Wherein the processor 920 of the audio sharing device is configured to provide computing and control capabilities. The memory of the audio sharing device includes a non-volatile storage medium 931, an internal memory 932. The nonvolatile storage medium 931 stores an operating system, computer programs, and a database. The internal memory 932 provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium 931. The database of the audio sharing device is used for storing data. The network interface 940 of the audio sharing device is used to communicate with an external terminal through a network connection. Which when executed by the processor 920, performs the above-described methods.
The apparatus further includes a transceiver 950, where the transceiver 950 may receive messages from other devices or send messages to other devices during operation, and may be implemented through the network interface 940 described above, or may be implemented through other communication capability modules, which are not particularly limited herein.
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. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the audio sharing device to which the present application is applied, and that a particular audio sharing device may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
In one embodiment, the audio sharing device provided herein may be implemented in the form of a computer program that is executable on an audio sharing device as shown in fig. 9. The memory of the audio sharing device may store various program modules that make up 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 sharing method, wherein the method is applied to a terminal device, and the method comprises:
under the condition of being in a call mode, acquiring audio data input in the call process;
and under the condition that a broadcasting mode is started, the audio data are sent in a broadcasting mode, so that each audio playing device receives the audio data and outputs the audio data, and each audio playing device supports broadcasting communication with the terminal device.
2. The method of claim 1, wherein prior to the obtaining the audio data input during the call, the method further comprises:
acquiring a call request sent by a call device;
and establishing a communication channel with the communication equipment according to the communication request, and placing the communication channel in a communication mode.
3. The method of claim 1, wherein the broadcasting the audio data comprises:
and transmitting the audio data in a broadcasting mode according to a low-power audio protocol.
4. A method according to claim 3, wherein prior to said transmitting said audio data in broadcast mode in accordance with a low power audio protocol, said method further comprises:
establishing communication connection with at least two audio playing devices, and determining that each of the audio playing devices is in a low-power-consumption audio receiving mode.
5. A method according to claim 3, wherein said transmitting said audio data in a broadcast manner in accordance with a low power audio protocol comprises:
determining a broadcast transmission frequency;
and transmitting the audio data in a broadcasting mode according to a low-power audio protocol based on the broadcasting transmission frequency.
6. The method of claim 5, wherein the determining the broadcast transmission frequency comprises:
determining the current working scene;
and determining the broadcast transmission frequency based on the working scene.
7. The method of claim 5, wherein the determining the broadcast transmission frequency comprises:
The broadcast transmission frequency is determined in response to a parameter setting operation.
8. The method of claim 5, wherein the determining the broadcast transmission frequency comprises:
the broadcast transmission frequency is determined based on a preconfigured upper limit of the number of audio playback devices.
9. The method of claim 1, wherein after the audio data input during the call is obtained, the method further comprises:
in the case that the broadcast mode is turned off, the audio data is output based on the audio playing module.
10. An audio sharing device, the device comprising: the device comprises an acquisition module and a sending module;
the acquisition module is used for acquiring the audio data input in the call process under the condition of being in the call mode;
the sending module is used for sending the audio data in a broadcasting mode under the condition that a broadcasting mode is started, so that each audio playing device receives the audio data and outputs the audio data, and each audio playing device supports broadcasting communication with the terminal device.
11. An audio sharing 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 executing the program.
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.
CN202311835102.0A 2023-12-27 2023-12-27 Audio sharing method and device and storage medium Pending CN117729287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311835102.0A CN117729287A (en) 2023-12-27 2023-12-27 Audio sharing method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311835102.0A CN117729287A (en) 2023-12-27 2023-12-27 Audio sharing method and device and storage medium

Publications (1)

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

Family

ID=90203447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311835102.0A Pending CN117729287A (en) 2023-12-27 2023-12-27 Audio sharing method and device and storage medium

Country Status (1)

Country Link
CN (1) CN117729287A (en)

Similar Documents

Publication Publication Date Title
CN109445740B (en) Audio playback method, device, electronic device and storage medium
US9820087B2 (en) Smartphone bluetooth headset receiver
US10425758B2 (en) Apparatus and method for reproducing multi-sound channel contents using DLNA in mobile terminal
CN109379490B (en) Audio playing method and device, electronic equipment and computer readable medium
CN113411726A (en) Audio processing method, device and system
WO2021180115A1 (en) Recording method and recording system using true wireless earbuds
CN114531425B (en) Processing method and processing device
CN113301544B (en) Method and equipment for voice intercommunication between audio equipment
US20180279048A1 (en) Binaural recording system and earpiece set
US20220286538A1 (en) Earphone device and communication method
CN117909082A (en) Method for occupying equipment and electronic equipment
CN111696554B (en) Translation method and device, earphone and earphone storage device
CN105744022A (en) Mobile terminal as well as voice playing method and system
CN111107226A (en) Volume control method applied to mobile terminal
WO2021244135A1 (en) Translation method and apparatus, and headset
US10194117B2 (en) Combining audio and video streams for a video headset
CN117729287A (en) Audio sharing method and device and storage medium
CN103986818B (en) A kind of information processing method and electronic equipment
CN114885440B (en) Method, electronic device and storage medium for voice communication between multiple audio devices
CN111556406B (en) Audio processing method, audio processing device and earphone
CN116866472A (en) Volume control method and electronic device
CN115967926A (en) Bluetooth connection method, device, electronic equipment and computer readable storage medium
CN116036591A (en) Sound effect optimization method, device, equipment and storage medium
CN113407147A (en) Audio playing method, device, equipment and storage medium
CN114785886B (en) Call method and electronic device using multiple audio devices

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