WO2022247558A1 - Audio sharing method and apparatus, terminal, audio device and storage medium - Google Patents

Audio sharing method and apparatus, terminal, audio device and storage medium Download PDF

Info

Publication number
WO2022247558A1
WO2022247558A1 PCT/CN2022/089181 CN2022089181W WO2022247558A1 WO 2022247558 A1 WO2022247558 A1 WO 2022247558A1 CN 2022089181 W CN2022089181 W CN 2022089181W WO 2022247558 A1 WO2022247558 A1 WO 2022247558A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
terminal
audio device
wireless communication
target
Prior art date
Application number
PCT/CN2022/089181
Other languages
French (fr)
Chinese (zh)
Inventor
张坤
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022247558A1 publication Critical patent/WO2022247558A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/20Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
    • H04W4/21Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel for social networking applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Definitions

  • the embodiments of the present application relate to the technical field of audio sharing, and in particular to an audio sharing method, device, terminal, audio equipment, and storage medium.
  • the user can play audio directly through the terminal, or connect the terminal to an external device for audio playback, for example, play audio through a wireless headset that establishes a Bluetooth connection with the terminal, wherein, during the process of establishing a Bluetooth connection between the terminal and the wireless headset, You need to manually open the Bluetooth connection interface, and select the headset device to be connected on the Bluetooth connection interface.
  • Embodiments of the present application provide an audio sharing method, device, terminal, audio equipment, and storage medium. Described technical scheme is as follows:
  • an embodiment of the present application provides an audio sharing method, the method is applied to a first terminal, the first terminal is provided with a first wireless communication component and a second wireless communication component, and the method includes:
  • the target audio data corresponding to the first audio is sent to the first audio device through the second wireless communication component, and the first audio device is configured to perform an audio playback operation according to the target audio data.
  • an embodiment of the present application provides an audio sharing method, the method is applied to an audio device, the audio device is provided with a first wireless communication component and a second wireless communication component, and the method includes:
  • the first terminal Send a positioning signal to the first terminal through the first wireless communication component, the first terminal is used to identify whether the audio device is within the target range based on the positioning signal, and the first terminal runs a first audio The corresponding multimedia playback process;
  • the second wireless communication component When the second wireless communication component receives a data communication connection request sent by the first terminal, establish a data communication connection with the first terminal, and the data communication connection request is issued by the first terminal sent to the audio device when it is identified that the audio device is within the target range;
  • an embodiment of the present application provides an audio sharing device, the device is applied to a first terminal, the first terminal is provided with a first wireless communication component and a second wireless communication component, and the device includes:
  • An identification module configured to identify the first audio device located within the first range through the first wireless communication component when the multimedia playback process corresponding to the first audio is running;
  • a connection establishment module configured to establish a Bluetooth connection with the first audio device through the second wireless communication component
  • a sending module configured to send target audio data corresponding to the first audio to the first audio device through a second wireless communication component, and the first audio device is configured to perform an audio playback operation according to the target audio data.
  • an embodiment of the present application provides an audio sharing device, the device is applied to an audio device, the audio device is provided with a first wireless communication component and a second wireless communication component, and the device includes:
  • a sending module configured to send a positioning signal to a first terminal through the first wireless communication component, and the first terminal is used to identify whether the audio device is located within a target range based on the positioning signal, and in the first terminal running a multimedia playback process corresponding to the first audio;
  • a connection establishing module configured to establish a data communication connection with the first terminal when a data communication request sent by the first terminal is received through the second wireless communication component, the data communication connection request being the first terminal sent by a terminal to the audio device when it recognizes that the audio device is within the target range;
  • the receiving module is configured to receive the target audio data sent by the first terminal through the second wireless communication component, and play the first audio according to the target audio data.
  • an embodiment of the present application provides a terminal, the terminal includes a processor and a memory, at least one program is stored in the memory, and the at least one program is loaded and executed by the processor to implement the above-mentioned The audio sharing method described in the aspect.
  • an embodiment of the present application provides an audio device, the audio device includes a processor and a memory, at least one program is stored in the memory, and the at least one program is loaded and executed by the processor to realize The audio sharing method as described in the above aspect.
  • an embodiment of the present application provides a computer-readable storage medium, where at least one program is stored in the computer-readable storage medium, and the at least one program is loaded and executed by a processor to implement the above-mentioned audio sharing method.
  • an embodiment of the present application provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the audio sharing method provided in various optional implementation manners of the above aspect.
  • FIG. 1 shows a schematic diagram of an implementation environment of an exemplary embodiment of the present application
  • FIG. 2 shows a flowchart of an audio sharing method provided by an exemplary embodiment of the present application
  • FIG. 3 shows a flowchart of an audio sharing method provided by another exemplary embodiment of the present application
  • FIG. 4 shows a schematic interface diagram of an audio sharing process shown in an exemplary embodiment of the present application
  • FIG. 5 shows a flowchart of an audio sharing method provided by another exemplary embodiment of the present application.
  • Fig. 6 shows a schematic diagram of icon overlapping animation shown in an exemplary embodiment of the present application
  • FIG. 7 shows a flowchart of an audio sharing method provided by another exemplary embodiment of the present application.
  • Fig. 8 shows a schematic diagram of a sharing prompt interface shown in an exemplary embodiment of the present application
  • FIG. 9 shows a flowchart of a complete audio sharing method shown in an exemplary embodiment of the present application.
  • FIG. 10 shows a structural block diagram of an audio sharing device provided by an embodiment of the present application.
  • Fig. 11 shows a structural block diagram of an audio sharing device provided by another embodiment of the present application.
  • Fig. 12 shows a structural block diagram of a terminal device provided by an exemplary embodiment of the present application.
  • Fig. 13 shows a structural block diagram of an audio device provided by an exemplary embodiment of the present application.
  • the "plurality” mentioned herein means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently.
  • the character “/” generally indicates that the contextual objects are an "or” relationship.
  • FIG. 1 shows a schematic diagram of an implementation environment of an exemplary embodiment of the present application.
  • the implementation environment includes a first audio device 110 , a second audio device 120 and a first terminal 130 .
  • the first terminal 130 is a terminal running an audio playback application program, which may be a portable electronic device such as a smart phone, a tablet computer, a smart watch, or a smart speaker.
  • the first terminal 130 is provided with a first wireless communication component and a second wireless communication component, wherein the first wireless communication component is used for precise positioning.
  • the first wireless communication component may be a UWB component, a Bluetooth components, or other wireless communication components that can achieve precise indoor positioning;
  • the second wireless communication component is used to establish a data communication connection with other terminal equipment or audio equipment.
  • the second wireless communication component can be a Bluetooth component, a near field communication (Near Field Communication, NFC) components, WiFi components, infrared components, etc.
  • NFC Near Field Communication
  • the first terminal 130 can identify an audio device within the target range through the UWB component; optionally, when the first terminal 130 recognizes When the first audio device 110 is within the target range, a Bluetooth connection can be established with the first audio device 110, and the target audio data can be sent to the first audio device 110, that is, the first audio device 110 can be controlled to play the target audio.
  • the first terminal 130 may establish a Bluetooth connection with at least one audio device, that is, on the basis of establishing a Bluetooth connection between the first terminal 130 and the second audio device 120, the first terminal 130 A Bluetooth connection may also be established with the first audio device 110 .
  • the first audio device 110 is a device with an audio playback function, which may be a Bluetooth headset, a smart speaker, and the like.
  • the first audio device 110 is provided with a first wireless communication component and a second wireless communication component, wherein the first wireless communication component is used for precise positioning.
  • the first wireless communication component may be a UWB component , Bluetooth components, or other wireless communication components that can achieve precise positioning;
  • the second wireless communication component is used to establish a data communication connection with other terminal devices.
  • the second wireless communication component can be a Bluetooth component, an NFC component, or a WiFi component , infrared components, etc.
  • the first audio device 110 can broadcast a positioning signal through the UWB component, so that the first terminal 130 can identify the first audio device 110 based on the positioning signal Whether it is within the target range;
  • the first terminal 130 recognizes that the first audio device 110 is within the target range, it automatically establishes a Bluetooth connection with the first audio device 110, so that the first audio device 110 can receive the first The target audio data sent by the terminal 130.
  • the first audio device 110 can establish a Bluetooth connection with at least one terminal, that is, when the first audio device 110 establishes a Bluetooth connection with the second terminal, the first audio device 110 can also establish a Bluetooth connection with the first The terminal 130 establishes a Bluetooth connection.
  • the second audio device 120 is a device with an audio playback function, which may be a Bluetooth headset, a smart speaker, and the like.
  • the first terminal 130 has established a data communication connection with the second audio device 120 before establishing a data communication connection with the first audio device 110, that is, the first terminal 130 plays the target audio through the second audio device 120
  • the first audio device 110 may also be provided with a first wireless communication component and a second wireless communication component.
  • the first terminal 130 recognizes that the second audio device 120 is within the target range, it automatically communicates with the The second audio device 120 establishes a data communication connection.
  • the first audio device 110 and the second audio device 120 can be the same type of audio device, for example, the first audio device 110 and the second audio device 120 are both wireless bluetooth earphones; they can also be different types of audio devices
  • the first audio device 110 is a wireless Bluetooth headset
  • the second audio device 120 is a Bluetooth speaker.
  • FIG. 2 shows a flow chart of an audio sharing method provided by an exemplary embodiment of the present application.
  • the embodiment of the present application takes the application of the method in the implementation environment shown in FIG. 1 as an example, and the method includes:
  • Step 201 a first audio device sends a positioning signal to a first terminal through a first wireless communication component.
  • the first wireless communication component may be a UWB component, a Bluetooth component, or other components that can achieve precise positioning.
  • UWB component When the UWB component is set in the audio device, the location information of the audio device can be located in real time through the UWB component positioning technology.
  • Ultra Wide Band (UWB) technology is a wireless carrier communication technology. It does not use sinusoidal carrier, but uses nanosecond-level non-sinusoidal narrow pulse to transmit data, so it occupies a wide spectrum range. , and the data transmission rate can reach hundreds of megabits per second.
  • UWB technology has the advantages of low system complexity, low power spectral density of transmitted signals, insensitivity to channel fading, low interception capability, and high positioning accuracy. It is especially suitable for high-speed wireless access in dense multipath places such as indoors. , Therefore, setting UWB components for audio equipment to realize positioning of audio equipment can realize high-precision positioning in dense multipath places such as indoors with low power consumption.
  • the first wireless communication component may be arranged inside the audio device, that is, the first audio device is provided with the first wireless communication component, so that the positioning of the first audio device can be realized through the first wireless communication component.
  • the first wireless communication component can also be set independently from the first audio device, and the first wireless communication component can be separated from the first audio device, that is, when the first audio device is installed or worn with the first wireless communication component In this case, the positioning of the audio device can be realized through the first wireless communication component.
  • the first wireless communication component can be packaged as the second A device accessory of an audio device, for example, the first wireless communication component may be a device accessory such as a device pendant or a label.
  • the first audio device needs to establish a data communication connection with the first wireless communication component.
  • the data communication The connection may be a Bluetooth connection, a WiFi connection, an infrared connection, or the like.
  • the application scenario that needs to be implemented in this embodiment is: when the user needs to share the audio being played in the terminal to other audio devices, the user can hold the terminal close to the audio device, and when the audio device is determined to be within the target range, the audio device can be connected Establish a data connection, and then control the audio device to play the target audio, so that the audio in the terminal can be shared to other audio devices for playback without the interface interaction process, so as to improve the audio sharing efficiency.
  • the terminal needs to obtain the location information of the audio device in real time, so that the terminal can determine the distance between the terminal and the audio device according to its own location and the location information of the audio device. distance, so that when the distance satisfies the distance condition, subsequent steps of establishing a data communication connection with the audio device and transmitting audio data are performed.
  • the first audio device since the first audio device is equipped with the first wireless communication component, and the first wireless communication component has a positioning function, it can use the first wireless communication component and a nearby positioning base station to locate the location in real time.
  • the location information corresponding to the first audio device, and then the first audio device can broadcast the location information through the first wireless communication component, that is, add the location information to the positioning signal broadcast by the first wireless communication component, so that other terminals can set based on their own
  • the first wireless communication component receives the positioning signal, thereby obtaining the location information corresponding to the first audio device, and then calculating the distance between the first audio device and the terminal in real time.
  • the first wireless communication component is a UWB component
  • the first audio device equipped with the UWB component broadcasts a UWB signal in real time
  • the UWB signal carries the location information and device information of the first audio device, so that other terminals can pass through
  • the UWB signal perceives the distance relationship with the first audio device, so as to determine whether the first audio device is within the target range based on the distance relationship, and then perform subsequent audio sharing operations when it is determined that the first audio device is within the target range .
  • Step 202 In the case that the multimedia playing process corresponding to the first audio is running, the first terminal identifies the first audio device within the first range through the first wireless communication component.
  • the first terminal In order to enable the first terminal to recognize the location information of the surrounding audio equipment, correspondingly, the first terminal also needs to be equipped with a first wireless communication component, so that the first terminal can receive information broadcast by the surrounding audio equipment through the first wireless communication component.
  • the positioning signal and then determine the location information of the audio device based on the positioning signal, so as to determine whether the distance to any surrounding audio device satisfies the distance relationship of sharing audio.
  • the first wireless communication component may be a UWB component, a Bluetooth component, or other communication components capable of precise positioning.
  • the positioning signal needs to be broadcast and received between the first terminal and the first audio device so that the first terminal can identify whether the first audio device is within the target range. Therefore, the first terminal and the first The same first wireless communication component needs to be set between audio devices, for example, if the first wireless communication component set in the first terminal is a UWB component, then the first wireless communication component set in the first audio device should also be a UWB component .
  • the terminal is close to the audio device (satisfies the distance condition), and the audio played on the terminal can be shared with the audio device. It can be seen that only when the audio is played in the terminal, there is a need to be close to the shared audio. Therefore, in order to reduce the power consumption of the terminal, in a possible implementation, when the multimedia player corresponding to the first audio is running in the first terminal During the process, the positioning signal broadcast by the surrounding audio equipment can be received through the first wireless communication component, and the location information of the audio equipment can be obtained from the positioning signal, so as to calculate in real time based on the location information and the own location information of the first terminal. The distance between the first terminal and the audio device is used to determine whether the audio device is within the first range (that is, whether the condition for sharing audio is met), and determine the audio device within the first range as the first audio device.
  • the multimedia playback process refers to the playback process corresponding to the audio and video content.
  • the multimedia playback process can be a video playback process (the audio corresponding to the video is the first audio), or a recording playback process, or a video playback process (the video corresponds to the first audio).
  • the audio that is, the first audio
  • the music playing process the e-book playing process, etc.
  • the embodiment of the present application does not limit the multimedia playing process.
  • the method of obtaining the location information corresponding to the first terminal is similar to the method of obtaining the location information corresponding to the first audio device, and it is also realized by the first wireless communication component and the surrounding positioning base stations.
  • the first wireless If the communication component is a UWB component, the position information of the first terminal can be acquired based on the UWB positioning principle.
  • the current position information of the first terminal can be accurately located through the UWB component positioning technology, and high-precision positioning in dense multi-path places such as indoors can be realized with low power consumption.
  • the first wireless communication component can be set inside the terminal, that is, the first wireless communication component is set inside the terminal, so that terminal positioning can be realized through the first wireless communication component, and audio devices located within the target range can be identified.
  • the first wireless communication component can also be set independently of the terminal, and the first wireless communication component can be separated from the terminal, that is, when the terminal is installed or worn with the first wireless communication component, the first wireless communication component can Realize terminal positioning and identify the target audio device within the target range.
  • the terminal does not carry the first wireless communication component, the terminal cannot perform positioning operations, and it cannot identify the position of the audio device through the first wireless communication component; in this application scenario
  • the first wireless communication component can be packaged as a terminal accessory.
  • the first wireless communication component can be a terminal accessory such as a terminal back cover, a mobile phone case, a terminal protective case, a mobile phone pendant, and a label.
  • the terminal needs to establish a data communication connection with the first wireless communication component before realizing positioning through the first wireless communication component, so that the terminal can obtain the information received by the first wireless communication component.
  • the received positioning signal is used to calculate the distance between the terminal and the audio device in real time.
  • the first terminal equipped with the UWB component can receive UWB signals broadcast by other audio devices through the UWB component, and determine the audio device according to the UWB signal. location information, and then based on the location information and the terminal location information of the first terminal, determine the distance between the audio device and the first terminal, so that the audio device whose distance indication is within the first range is determined as the first audio device, the The first audio device is the audio device that needs to perform audio sharing subsequently.
  • the first range can be a spherical three-dimensional area with the first terminal as the center and the preset distance as the radius, that is, the target range indicates the range of the preset distance from the first terminal; or the first range can also be based on the first terminal is the center of a circle, and the preset distance is a fan-shaped area with a radius; this embodiment does not limit the specific shape of the first range.
  • the preset distance may be 20 cm, that is, when the first terminal recognizes that the distance between the audio device and the first terminal reaches 20 cm, the audio device is determined as the target audio device.
  • the number of first audio devices within the first range identified by the first terminal may be one, or two or more, and this embodiment does not limit the number of identified first audio devices .
  • the first terminal when the first terminal recognizes that at least two audio devices are within the first range, it may automatically establish a data communication connection with the at least two audio devices; or the user may manually determine which audio device to establish a data communication connection with.
  • the first terminal may also measure distance based on UWB The principle is to determine the distance between the first terminal and the audio device, and then determine whether the audio device is within the first range of the first terminal.
  • the specific UWB ranging principles include: signal arrival difference ranging (Phase-Difference-of -Arrival, PDOA), Single Sided Two Way Ranging (Single Sided Two Way Ranging, SS-TWR), Double Side Two Way Ranging (Double Side Two Way Ranging, DS-TWR), PDOA+TWR, etc.
  • the UWB ranging principle specifically used by the terminal does not constitute a limitation.
  • the process of determining the distance between the audio device and the first terminal can be as follows: the first terminal sends a ranging request signal to the audio device through the UWB component, and the audio device receives the ranging request After receiving the signal, the ranging response signal is fed back to the first terminal, and the corresponding terminal determines the distance between the first terminal and the audio device based on the received ranging response signal.
  • the first terminal uses the UWB ranging principle to identify the audio device within the first range, when the audio device broadcasts the UWB signal (positioning signal) through the UWB component, it does not need to add location information to the UWB signal, only needs to Just add the device ID of the audio device.
  • Step 203 the first terminal establishes a data communication connection with the first audio device through the second wireless communication component.
  • audio data sharing also depends on the establishment of a data channel, therefore, in a possible implementation manner, when the first terminal recognizes that the first audio device is within the first range , that is, when the distance condition for audio sharing is met, immediately establish a data communication connection with the first audio device, and establish a data transmission channel for subsequent audio data transmission.
  • the first wireless communication component can be the same as the second wireless communication component, for example, the first wireless communication component and the second wireless communication component are both UWB components, then the audio device can be identified through the UWB communication between the UWB components Whether it is within the first range, audio data can also be transmitted through the UWB component; the first wireless communication component can be different from the second wireless communication component, for example, the first wireless communication component is a UWB component, and the second wireless communication component is a Bluetooth component , the first terminal identifies whether the audio device is within the first range through the UWB component, and then transmits the audio data through the Bluetooth component.
  • the terminal positioning function and the data communication function are performed separately, that is, the first terminal and the first audio device are both equipped with a second wireless communication component , so that the first terminal can establish a data communication connection with the first audio device through the second wireless communication component.
  • the second wireless communication component may be a Bluetooth component, a WiFi component, an infrared component, etc., corresponding to which the first terminal may establish a Bluetooth connection, a WiFi connection or an infrared connection with the target audio device.
  • Step 204 in the case of receiving a data communication connection request sent by the first terminal through the second wireless communication component, the first audio device establishes a data communication connection with the first terminal.
  • the data communication connection request is sent to the first audio device when the first terminal recognizes that the first audio device is within the target range.
  • the first terminal when a multimedia playback process is running in the first terminal and it is recognized that the first audio device is within the target range (first range), that is, when the first audio device meets the distance condition for audio sharing, The first terminal sends a data communication connection request to the first audio device, so as to request to establish a data communication connection with the first audio device, so as to prepare for subsequent audio sharing.
  • the first audio device is provided with a second wireless communication component, so that the first audio device can receive the data communication connection request sent by the first terminal through the second wireless communication component. If the first audio device agrees to the data communication connection request, the first audio device establishes a data communication connection with the first terminal, and then the first terminal can send target audio data to the first audio device through the data communication connection channel.
  • the first audio device does not agree after receiving the data communication connection request, correspondingly, the first terminal and the first audio device cannot establish a data communication connection, and thus cannot perform subsequent audio sharing operations.
  • Step 205 the first terminal sends target audio data corresponding to the first audio to the first audio device through the second wireless communication component.
  • the first terminal may immediately send target audio data to the first audio device through the second wireless communication component, so that the first audio device Audio data performs audio playback operations.
  • the playback progress of the first audio in the first audio device is the same as the playback progress of the first audio in the first terminal, that is, the first terminal sends the audio data corresponding to the current playback progress to the first audio device flow.
  • Step 206 the first audio device receives the target audio data sent by the first terminal through the second wireless communication component, and plays the first audio according to the target audio data.
  • the first terminal may send target audio data to the first audio device through the second wireless communication component, correspondingly, the first An audio device can also receive target audio data through the second wireless communication component, that is, realize the process of sharing the first audio from the first terminal to the first audio device.
  • the first audio device establishes a data communication connection with the second terminal before establishing a data communication connection with the first terminal, and the second terminal plays the second audio through the first audio device; when the first audio device After receiving the target audio data sent by the first terminal, the playing of the second audio can be stopped directly, and the first audio can be played according to the target audio data.
  • the audio device broadcasts the positioning signal through the first wireless communication component, so that the terminal can receive the positioning signal through the set first wireless communication component when running a multimedia playback process corresponding to the audio. And according to the positioning signal, the position of the audio device is located in real time, so that when the audio device within the target range is accurately identified, a data communication connection is automatically established with the audio device, and the target audio is shared with the audio device.
  • the real-time judgment and calculation of the distance between the terminal and the audio device is realized through the first wireless communication component, and then the establishment of the data communication connection and the audio sharing task are performed based on the precise distance, so that the terminal can share the audio with the audio device when the terminal is close to the audio device.
  • the user does not need to manually perform sharing operations on the interface, which improves the efficiency of audio sharing.
  • identifying the first audio device within the first range through the first wireless communication component includes:
  • the first device icon is set as the second device icon, and the icon style of the second device icon is different from the icon style of the first device icon.
  • the first terminal is connected to a second audio device, and the current user interface displays a third device icon corresponding to the second audio device;
  • the method further includes:
  • an icon overlapping animation is displayed in the current user interface, and the relative movement trend between the first device icon and the third device icon in the icon overlapping animation is determined by the second Determination of a distance variation trend between an audio device and the first terminal;
  • the first device icon and the third device icon are set as a fourth device icon, and the icon style of the fourth device icon is different from that of the first device icon and the third device icon.
  • the first wireless communication component is a UWB component
  • the second wireless communication component is a Bluetooth component
  • Establishing a data communication connection with the first audio device through the second wireless communication component including:
  • a Bluetooth connection is established with the first audio device based on the target Bluetooth address.
  • establishing a data communication connection with the first audio device through the second wireless communication component includes:
  • the target white list When the target device ID is in the target white list, a data communication connection is established with the first audio device through the second wireless communication component, and the target white list includes the device ID of at least one audio device with audio sharing authority.
  • the second audio is played in the first audio device, and the second audio is played by the second terminal through the first audio device;
  • Sending target audio data corresponding to the first audio to the first audio device through the second wireless communication component including:
  • an audio sharing request is sent to the first audio device, and the audio sharing request is used to request the first audio device to play the first audio;
  • the target audio data is sent to the first audio device through the second wireless communication component.
  • confirming that the sharing request is triggered by a preset gesture operation on the first audio device, and/or confirming that the sharing request is sent by the second terminal through the first audio device.
  • the method Before receiving the target audio data sent by the first terminal through the second wireless communication component, and playing the first audio according to the target audio data, the method also includes:
  • Receiving the target audio data sent by the first terminal through the second wireless communication component, and playing the first audio according to the target audio data including:
  • sending a confirmation sharing request to the first terminal includes:
  • a confirmation sharing request is sent to the first terminal, and the first terminal is configured to send the target audio data to the audio device after receiving the confirmation sharing request.
  • the second audio is played by the second terminal through an audio device
  • sending a confirmation sharing request to the first terminal including:
  • the audio sharing request sent by the first terminal When the audio sharing request sent by the first terminal is received, the audio sharing request is sent to the second terminal, and the second terminal is used to display a sharing prompt interface based on the audio sharing request;
  • the confirmation sharing request is sent to the first terminal, and the confirmation sharing request is sent to the audio device by the second terminal after receiving the confirmation operation on the sharing prompt interface.
  • the first wireless communication component is a UWB component
  • the second wireless communication component is a Bluetooth component
  • Sending a positioning signal to the first terminal through the first wireless communication component includes:
  • FIG. 3 shows a flowchart of an audio sharing method provided by another exemplary embodiment of the present application.
  • the embodiment of the present application takes the application of the method in the implementation environment shown in FIG. 1 as an example for illustration.
  • the method includes :
  • Step 301 a first audio device sends a positioning signal to a first terminal through a first wireless communication component.
  • the first terminal In order for the first terminal to identify the location information and device information of the first audio device based on the positioning signal, in a possible implementation manner, it is necessary to add the device identification and current location information corresponding to the first audio device to the positioning signal, This makes it possible to transmit the current location information and the device identifier of the first audio device to the first terminal.
  • the process for the first audio device to send the positioning signal may include the following steps:
  • the device identifier can be information that uniquely identifies the audio device such as the device name corresponding to the audio device, the device machine code, etc.; the current location information can be the spatial position coordinates where the audio device is located, and the current location information is determined by the UWB positioning base station for the audio device get positioned.
  • the time of flight ranging method Time of Flight, ToF
  • TDoA Time Difference of Arrival
  • the process of sharing audio from a terminal to an audio device is exemplarily described.
  • the positioning signal broadcast by the UWB component is a UWB signal, that is, after the first audio device obtains the device identification and current location information, in order to enable the first terminal to be identified by the UWB signal To the location of the audio device, and identify which audio device to establish a Bluetooth connection with according to the device identification, in a possible implementation manner, the first audio device adds the device identification and current location information to the UWB signal.
  • the first audio device sends a UWB signal including current location information and device identification to the first terminal through the UWB component, so that the first terminal can identify whether the first audio device is within the first range based on the current location information, and determine based on the device identification
  • the first audio device broadcasts the target Bluetooth signal, and establishes a Bluetooth connection with the first audio device based on the Bluetooth address contained in the target Bluetooth signal.
  • Step 302 in the case that the multimedia playback process corresponding to the first audio is running and the first audio device within the second range is identified, the first terminal displays the first device icon corresponding to the first audio device in the current user interface , the second range is larger than the first range.
  • a second range is set, and the second range is greater than the first range.
  • the first audio device is within the second range, it means that the first terminal can accurately identify the first audio device, and then Wake up the audio sharing process of the terminal; when the first terminal does not find that there is an audio device within the second range, it is in the audio sharing non-awakening state; when the first terminal finds that there is an audio device within the second range, it is in the audio sharing awakening state.
  • the multimedia playback process corresponding to the first audio is running in the terminal, if it is recognized that the first audio device exists in the second range, even if the first audio device is not located in the first range, you can first enter the audio sharing
  • the wake-up state prepares for subsequent audio sharing, and at the same time, the first device icon corresponding to the first audio device can be displayed in the current user interface to remind the user that audio sharing can be performed with the first audio device.
  • the first device icon can be directly displayed in the multimedia playback interface; if the first audio is played in the background, the current user interface If the multimedia playback interface is not displayed in the interface, the first device icon may be displayed at any position of the current user interface.
  • a music playback task when the music is playing in the background, a music playback task will generally be displayed in the notification bar, correspondingly, the first device icon can be displayed in the music playback task in the notification bar ;
  • a multimedia task playing floating window may also be created in the current user interface, so that the identified first device icon is displayed in the floating window.
  • the second range may be a spherical area with a preset distance as a radius, or a fan-shaped area with a preset distance as a radius, where the first terminal is a circle.
  • the preset distance corresponding to the second range is greater than the preset distance corresponding to the first range, for example, the second range is an area 50 cm away from the first terminal, and the first range is an area 20 cm away from the first terminal.
  • the first device icon may be set based on the type of audio device.
  • the first audio device is a wireless Bluetooth headset
  • the corresponding first device icon may be a headset icon.
  • FIG. 4 it shows a schematic interface of an audio sharing process shown in an exemplary embodiment of the present application.
  • the audio playback interface 411 corresponding to the first terminal 410 displays the corresponding audio device 420.
  • First device icon 412 is displayed.
  • Step 303 when the first audio device is within the first range, the first terminal sets the first device icon as the second device icon, and the icon style of the second device icon is different from the icon style of the first device icon.
  • the first device icon is displayed on the audio playback interface to remind the user that the audio device has been recognized. If the user needs to further implement audio sharing, the user can hold the second A terminal continues to approach the first audio device until the first audio device is within the first range. At this time, in order to further remind the user to meet the audio sharing conditions, the first device may be changed when it is recognized that the first audio device is within the first range.
  • the icon style of the icon that is, setting the first device icon to the second device icon, so that the user can be reminded that the audio sharing is in progress through the change of the icon style.
  • the difference in icon style corresponding to the first device icon and the second device icon may be a difference in icon color, a difference in icon size, etc. This embodiment does not limit the difference between the first device icon and the second device icon.
  • the first device icon corresponding to the first audio device 420 is represented by The first device icon 412 changes to a second device icon 413 .
  • the user can hold the first terminal away from the first audio device to avoid operation and an audio sharing operation that is not expected by the user.
  • the first terminal when the user holds the first terminal away from the first audio device, and the first terminal recognizes that the first audio device is outside the second range, it stops displaying the first device icon on the current user interface.
  • Step 304 the first terminal establishes a data communication connection with the first audio device through the second wireless communication component.
  • the first terminal When the first terminal recognizes that the first audio device is within the first range, it means that the audio being played needs to be shared with the first audio device, and the first terminal immediately establishes data communication with the first audio device through the second wireless communication component To connect, so as to perform an audio data sharing operation to share audio data with the first audio device through the second wireless communication component.
  • the first terminal in the process of establishing a Bluetooth connection between the first terminal and the first audio device, the first terminal needs to obtain the Bluetooth connection address corresponding to the first audio device, so that the Bluetooth connection address can be Send a Bluetooth connection request to the first audio device.
  • the Bluetooth signal contains the Bluetooth connection address corresponding to the first audio device; therefore , the first terminal can obtain the Bluetooth address of the first audio device according to the Bluetooth signal broadcast by the first audio device, and the first terminal may receive multiple Bluetooth signals at the same time, it is necessary to determine the first audio from multiple Bluetooth signals The Bluetooth signal broadcast by the device.
  • the process of establishing a Bluetooth connection between the first terminal and the first audio device may include the following steps:
  • the Bluetooth address corresponding to the first audio device in a possible implementation manner, can distinguish the Bluetooth signals broadcast by different audio devices based on the target device identifier corresponding to the first audio device, and determine the target broadcast by the first audio device therefrom Bluetooth signal, and then obtain the Bluetooth address corresponding to the first audio device from the target Bluetooth signal.
  • the terminal Since the first audio device broadcasts the UWB signal, that is, the device identifier corresponding to the audio device is added to the UWB signal, when the terminal determines that it needs to establish a Bluetooth connection with the first audio device, it can first obtain the first audio device For the corresponding target UWB signal, determine the target device identifier corresponding to the first audio device from the target UWB signal, so that the target Bluetooth signal broadcast by the first audio device can be subsequently identified according to the target device identifier.
  • the bluetooth function of the first terminal When the bluetooth function of the first terminal is turned on, it can receive bluetooth signals broadcast by various bluetooth devices around, in order to determine the target bluetooth signal broadcast by the first audio device, so as to establish a bluetooth connection with the first audio device, in a possibility
  • a target Bluetooth signal that matches the target device identifier can be determined from at least one received Bluetooth signal, and the target Bluetooth signal is the Bluetooth signal broadcast by the first audio device. Signal.
  • the target Bluetooth signal contains the target Bluetooth address corresponding to the first audio device.
  • the terminal determines the target Bluetooth signal corresponding to the first audio device, it can obtain the target Bluetooth address corresponding to the first audio device from the target Bluetooth signal. address, and then send a Bluetooth connection request to the first audio device based on the target Bluetooth address, so as to request to establish a Bluetooth connection with the first audio device.
  • the first terminal After the first terminal acquires the target Bluetooth address corresponding to the first audio device, it can send a Bluetooth connection request to the first audio device based on the target Bluetooth address, so that after the first audio device agrees to the Bluetooth connection request, it can communicate with the first audio device.
  • the device establishes a Bluetooth connection; and after the Bluetooth connection is established, the target audio data is sent to the target audio device through the Bluetooth connection channel, so that the first audio is played through the first audio device.
  • the audio sharing method in this embodiment does not require the user to interact with the interface, in order to avoid terminal information leakage caused by misoperation, in a possible implementation manner, when the first terminal determines that there is a multimedia playback process corresponding to the first audio, And when it is recognized that the first audio device satisfies the distance condition for audio sharing, it is first necessary to determine whether the target device identifier corresponding to the first audio device is in the target whitelist.
  • the target device identifier is in the target whitelist, it means that the first audio device is An audio device with audio sharing permission can establish a data communication connection with the first audio device and perform subsequent audio sharing operations; on the contrary, if the target device identification is not included in the target whitelist, it means that the first audio device does not have audio sharing permission , the subsequent audio sharing operation is stopped, and there is no need to establish a data communication connection with the first audio device.
  • the device identification of at least one audio device with audio sharing permission is set in the target white list, and the audio device with audio sharing permission can be a device that has established a data communication connection with the first terminal, or has conducted audio with the first terminal.
  • Shared devices, or devices logged in with the same user account, are not limited in this embodiment.
  • Step 305 in the case of receiving a data communication connection request sent by the first terminal through the second wireless communication component, the first audio device establishes a data communication connection with the first terminal.
  • the second wireless communication component is a Bluetooth component
  • the first terminal when the first terminal determines that the first audio device meets the audio sharing condition (distance condition), it can send a Bluetooth connection request to the first audio device through the second wireless communication component
  • the first audio device can receive the Bluetooth connection request sent by the first terminal through the Bluetooth component, and if the first audio device agrees to the Bluetooth connection request, it can establish a Bluetooth connection with the first terminal.
  • Step 306 the first terminal sends target audio data corresponding to the first audio to the first audio device through the second wireless communication component.
  • the first terminal After the first terminal establishes a data communication connection with the first audio device, the first terminal can send target audio data to the first audio device through the second wireless communication component, completing the process of the first terminal sharing audio with the first audio device.
  • the first terminal since the first terminal establishes a data communication connection with the first audio device, not only the target audio data can be transmitted through the data communication connection, but also the control operation of the first audio device can be realized through the data communication connection, for example,
  • An operation task bar or a control interface of the first audio device may be displayed on the user interface of the first terminal, and the operation task bar (or control interface) includes at least one operation control corresponding to the first audio device.
  • the operation task bar or control interface
  • an operation instruction corresponding to the target operation control may be sent to the first audio device, so that the first audio device performs a related operation.
  • the target operation control may be a sound loudness operation control, and when the user clicks on the target operation control, the sound loudness of the first audio device played by the first audio device may be adjusted;
  • the target operation control may also be a playback control, through which the first audio device is controlled to stop or continue playing the first audio.
  • the operation task bar 414 corresponding to the first audio device 420 can be displayed in the audio playback interface 411, and the operation task bar 414 includes There is a volume operation control, and the user can adjust the audio playback volume of the first audio device 420 by triggering the volume operation control.
  • Step 307 the first audio device receives the target audio data sent by the first terminal through the second wireless communication component, and plays the first audio according to the target audio data.
  • the audio device carries the device identification and location information in the UWB signal, so that the first terminal can identify whether the audio device is located within the first range and the second range based on the location information, and establish a connection with the audio device based on the device identification.
  • Bluetooth connection In addition, in order to ensure the security of terminal information, before establishing the Bluetooth connection, check whether the target device identification corresponding to the first audio device is in the target white list, so as to avoid sharing audio information with unsafe audio devices. This leads to the leakage of terminal information, thereby improving the security of the audio sharing process.
  • the first audio is played by the first terminal through the second audio device, that is, before the first terminal shares the target audio with the first audio device, the first terminal has shared the target audio with the second audio device
  • the device establishes a data communication connection, and the first audio is played through the second audio device.
  • an icon overlap animation between the first device icon (first audio device) and the third device icon (second audio device) may be displayed on the audio playback interface .
  • step 303 may be replaced by step 501 and step 502 .
  • Step 501 in the case that the first audio device is located between the second range and the first range, the first terminal displays icon overlap animation in the current user interface.
  • the relative movement trend between the first device icon and the third device icon in the icon overlapping animation is determined by the distance change trend between the first audio device and the first terminal. That is to say, when the first audio device is close to the first terminal, the icon of the first device is relatively close to the icon of the third device; when the first audio device is far away from the first terminal, the icon of the first device is relatively far away from the icon of the third device .
  • the first terminal Display icon overlap animation in the current user interface when the first audio device is located between the second range and the first range, the first terminal Display icon overlap animation in the current user interface, and remind the user of the current distance change between the first terminal and the first audio device through the relative movement trend between the first device icon and the third device icon, so that the user can based on this
  • the icon overlap animation adjusts the distance between the first audio device and the first terminal.
  • the icon overlap animation can be directly displayed in the multimedia playback interface; if the first audio is played in the background, the current user interface If the multimedia playback interface is not displayed in the interface, icon overlap animation can be displayed at any position of the current user interface.
  • the multimedia playback process as the music playback process as an example.
  • the overlapping animation of the icon can be displayed in the music playback task in the notification bar; optionally, a floating window for multimedia task playback can also be created in the current user interface, so that the icon can be displayed in the floating window Coincident animation.
  • FIG. 6 it shows a schematic diagram of icon overlapping animation shown in an exemplary embodiment of the present application.
  • the audio playback interface 611 corresponding to the first terminal 610 displays the corresponding audio device 620.
  • the first device icon 612 approaches the third device icon 613 until the first terminal 610 approaches the first audio device 620 and reaches a critical
  • the first device icon 612 and the third device icon 613 overlap, and a fourth device icon 614 is displayed.
  • Step 502 when the first audio device is within the first range, the first terminal sets the first device icon and the third device icon as a fourth device icon, and the icon style of the fourth device icon is different from that of the first device icon and third device icons.
  • audio sharing can be performed.
  • the icon style of the fourth device icon is different from that of the first device icon and the third device icon.
  • the difference in icon style between the fourth device icon and the second device icon or the third device icon may be a difference in icon color, a difference in icon size, and the like.
  • the first audio device may be playing the second audio in the second terminal before receiving the audio sharing from the first terminal, so that the user holding the second terminal can also know the first audio in time.
  • the audio device needs to perform an audio sharing task.
  • the first terminal may first send an audio sharing request to the first audio device through the second wireless communication component, So that the user holding the second terminal and the first audio device can manually confirm whether to receive the audio shared by the first terminal.
  • FIG. 7 shows a flow chart of an audio sharing method provided by another exemplary embodiment of the present application.
  • the embodiment of the present application takes the application of the method in the implementation environment shown in FIG. 1 as an example for illustration.
  • the method includes :
  • Step 701 the first audio device sends a positioning signal to the first terminal through the first wireless communication component.
  • Step 702 In the case that the multimedia playing process corresponding to the first audio is running, the first terminal identifies the first audio device within the first range through the first wireless communication component.
  • Step 703 the first terminal establishes a data communication connection with the first audio device through the second wireless communication component.
  • steps 701 to 703 reference may be made to the foregoing embodiments, and details are not described herein in this embodiment.
  • Step 704 In the case of establishing a data communication connection with the first audio device, the first terminal sends an audio sharing request to the first audio device.
  • the first terminal may first send an audio sharing request to the first audio device to request the first audio device to play the first audio, so that the first audio device
  • the audio sharing request can be sent to the second terminal, so as to promptly remind the user holding the second terminal that the first terminal needs to share audio with the first audio device.
  • Step 705 in the case of establishing a data communication connection with the first terminal, the first audio device receives an audio sharing request sent by the first terminal.
  • the audio sharing request sent by the first terminal may be received through the data communication connection channel between the first terminal and the first audio device.
  • Step 706 In response to receiving a sharing confirmation operation on the audio sharing request, the first audio device sends a confirmation sharing request to the first terminal.
  • the sharing confirmation operation may be a preset gesture operation on the first audio device, and the preset gesture operation may be a gesture double-click operation on the target audio device, or a gesture single-click operation, or a press operation on the target physical button, or For the pressing operation of the target virtual key, this embodiment does not limit the preset gesture operation.
  • the user holding the second terminal or the first audio device allows the first terminal to share audio with the first audio device, by performing a preset gesture operation on the first audio device, the corresponding , when the first audio device receives the preset gesture operation, it may feed back a sharing confirmation request to the first terminal, so that the first terminal transmits the target audio data to the first audio device after receiving the sharing confirmation request.
  • the user may also perform a manual confirmation operation on the terminal interface corresponding to the second terminal, so that when the second terminal receives the sharing confirmation operation, it sends a message to the second terminal through the first audio device.
  • a terminal feeds back and confirms the sharing request.
  • step 706 may also include the following steps:
  • the audio sharing request may include a terminal device identifier corresponding to the first terminal, so as to remind the user of the source of the audio sharing request.
  • the terminal device identifier may be a terminal name, or a terminal machine code, or another identifier that uniquely identifies the first terminal.
  • the second terminal controls the first audio device to play the second audio
  • the first audio device receives the audio sharing request sent by the first terminal, and first sends the audio sharing request to the second terminal, so that when the second terminal receives the audio sharing request, it can display a sharing prompt interface, and through the sharing prompt interface
  • the user is prompted that there are other terminals that need to play audio through the first audio device, and the user manually confirms whether to allow the first terminal to share the first audio with the first audio device.
  • the device name corresponding to the first terminal may be displayed on the sharing prompt interface.
  • the second terminal 810 when the second terminal 810 receives the audio sharing request sent by the first terminal through the first audio device, it displays a sharing prompt interface 811, and the sharing prompt interface 811 displays a device name 812 corresponding to the first terminal , accept share control 814 and reject share control 813 .
  • the confirmation sharing request is sent by the second terminal to the first audio device after receiving the confirmation operation on the sharing prompt interface.
  • the user holding the second terminal agrees that the first audio device accepts the audio shared by the first terminal, he can click the accept sharing control in the sharing prompt interface, and correspondingly, the second terminal receives the audio shared by the first terminal.
  • the trigger operation of accepting the sharing control sends a confirmation sharing request to the first audio device; correspondingly, after the first audio device receives the confirmation sharing request, it can send the confirmation sharing request to the first terminal, so that the first terminal After receiving the confirmation sharing request, send the target audio data to the first audio device; on the contrary, if the user holding the second terminal does not agree to the first audio device playing the first audio, he can click the reject sharing control in the sharing prompt interface , corresponding to the fact that the second terminal may receive a rejection operation on the audio sharing request, and feed back the rejection of the sharing request to the first terminal through the first audio device, corresponding to the fact that the first terminal stops sharing audio data with the first audio device.
  • the user can click the receive sharing control 814 in the sharing prompt interface 811, and the corresponding second terminal will send feedback to the first terminal through the first audio device to confirm sharing.
  • Request If the user refuses the first audio device to accept the audio shared by the first terminal, he can click the reject sharing control 813 in the sharing prompt interface 811, and the corresponding second terminal will feed back the rejection of the sharing request to the first terminal through the first audio device.
  • Step 707 In the case of receiving the confirmation sharing request fed back by the first audio device, the first terminal sends the target audio data to the first audio device through the second wireless communication component.
  • the confirmation sharing request may be triggered by a preset gesture operation on the first audio device, that is, the confirmation sharing operation is performed through the first audio device. It may also be sent by the second terminal through the first audio device, that is, by confirming the sharing operation in the second terminal, and feeding back the confirmation sharing request to the first terminal through the first audio device.
  • the first audio device may also feed back the confirmation sharing request to the second terminal while feeding back the confirmation sharing request to the first terminal, corresponding
  • the second terminal can switch to display the waiting sharing interface, so as to wait for the first terminal to share the first audio through the first audio device.
  • the first terminal when the first terminal receives the confirmation sharing request fed back by the first audio device, it indicates that the first terminal is allowed to share the first audio to the first audio device for playback, and then the first terminal can pass The second wireless communication component sends target audio data to the first audio device.
  • the terminal stops sending the target audio data to the first audio device.
  • the first terminal may also send audio information corresponding to the first audio to the second terminal through the first audio device, and the second terminal controls the second terminal after receiving the audio information.
  • An audio device plays the first audio.
  • the audio information sent by the first terminal to the second terminal through the first audio device may also include the current playback progress, then the second terminal may control the first audio device to play the audio according to the current playback progress after receiving the audio information.
  • the first audio so as to realize the synchronous playback of the first audio on the first audio device and the first terminal.
  • Step 708 the first audio device receives the target audio data sent by the first terminal through the second wireless communication component.
  • the corresponding first audio device receives the target audio data sent by the first terminal through the second wireless communication component.
  • Step 709 the first audio device stops playing the second audio, and plays the first audio according to the target audio data.
  • the first audio device When the first audio device receives the target audio data shared by the first terminal, since the target audio data is sent by the first terminal after receiving the confirmation sharing request (that is, shared after the consent of the second terminal holder) , correspondingly, the first audio device may immediately stop playing the second audio, and play the first audio according to the target audio data.
  • the audio sharing operation can be performed under the confirmation of the holder of the first audio device or the second terminal, so that the audio sharing process is a behavior operation expected by the user, thereby ensuring the success rate of the subsequent audio sharing process.
  • FIG. 9 shows a flow chart of a complete audio sharing method shown in an exemplary embodiment of the present application.
  • the target audio device is a wireless headset as an example for illustration.
  • the method includes:
  • Step 901 the first terminal recognizes that a wireless headset appears within the range of X1 .
  • the first terminal identifies whether there is a wireless headset within the range of X1 through the UWB component.
  • Step 902 whether the first terminal is playing the first audio.
  • step 903 If the terminal is playing the first audio, go to step 903 and continue to judge the distance between the wireless earphone and the first terminal; otherwise, go to step 907 and end the audio sharing process.
  • Step 903 within the interval X 1 -X 2 , the first terminal displays a new earphone icon, and displays the overlapping motion effect of the earphones as the distance changes.
  • the earphone overlap motion effect is used to show the change of the distance between the first terminal and the wireless earphone.
  • Step 904 the background of the first terminal calculates the distance data in real time.
  • the background of the first terminal will calculate the distance between the wireless earphone and the first terminal in real time.
  • Step 905 at X2, the first terminal immediately transmits audio to the new earphone, and demonstrates the ability to control the new earphone in the audio task.
  • the first terminal When the first terminal recognizes that the distance to the new headset is less than or equal to X2, the first terminal establishes a Bluetooth connection with the new headset, and transmits audio data to the new headset after the Bluetooth connection is successfully established.
  • Step 906 the background of the first terminal is paired with the new earphone and establishes a bluetooth connection, and transmits audio data and control instructions.
  • the first terminal determines that the distance between the wireless headset and the first terminal is X2, the first terminal performs fast pairing with the new headset and establishes a Bluetooth channel in the background to realize Bluetooth connection and Bluetooth transmission.
  • Step 907 end.
  • the steps with the first audio device as the execution subject can be independently implemented as an audio sharing method on the audio device side, and the steps with the first terminal as the execution subject can be independently implemented as the first terminal side
  • the audio sharing method of this embodiment will not be repeated here.
  • FIG. 10 shows a structural block diagram of an audio sharing device provided by an embodiment of the present application.
  • the apparatus is capable of realizing the functions performed by the first terminal side in the foregoing method embodiments.
  • the device may include:
  • An identification module 1001 configured to identify the first audio device located within the first range through the first wireless communication component when the multimedia playing process corresponding to the first audio is running;
  • a connection establishing module 1002 configured to establish a data communication connection with the first audio device through a second wireless communication component
  • a sending module 1003 configured to send target audio data corresponding to the first audio to the first audio device through the second wireless communication component, and the first audio device is used to perform audio playback according to the target audio data operate.
  • the identification module 1001 is also used for:
  • the first device icon is set as a second device icon, and the icon style of the second device icon is different from that of the first device icon. icon style.
  • a second audio device is connected to the first terminal, and a third device icon corresponding to the second audio device is displayed in the current user interface;
  • the device also includes:
  • a display module configured to display an icon overlap animation in the current user interface when the first audio device is located between the second range and the first range, and the icon overlap animation in the first
  • the relative movement trend between the device icon and the third device icon is determined by the distance change trend between the first audio device and the first terminal;
  • the display module is further configured to set the first device icon and the third device icon as a fourth device icon when the first audio device is within the first range, and the first The icon style of the four-device icon is different from that of the first device icon and the third device icon.
  • the first wireless communication component is a UWB component
  • the second wireless communication component is a Bluetooth component
  • connection establishment module 1002 is further configured to:
  • connection establishment module 1002 is further configured to:
  • the target device identifier When the target device identifier is in the target white list, establish a data communication connection with the first audio device through the second wireless communication component, and the target white list includes at least one audio device with audio sharing authority The device ID of the device.
  • a second audio is played in the first audio device, and the second audio is played by the second terminal through the first audio device;
  • the sending module 1003 is also used for:
  • the confirmation sharing request is triggered by a preset gesture operation on the first audio device, and/or, the confirmation sharing request is sent by the second terminal through the first audio device.
  • the audio device broadcasts the positioning signal through the first wireless communication component, so that the terminal can receive the positioning signal through the set first wireless communication component when running a multimedia playback process corresponding to the audio. And according to the positioning signal, the location of the audio device is located in real time, so that when the audio device within the target range is accurately identified, a data communication connection is automatically established with the audio device, and the target audio is shared with the audio device.
  • the real-time judgment and calculation of the distance between the terminal and the audio device is realized through the first wireless communication component, and then the establishment of the data communication connection and the audio sharing task are performed based on the precise distance, so that the terminal can share the audio with the audio device when the terminal is close to the audio device.
  • the user does not need to manually perform sharing operations on the interface, which improves the efficiency of audio sharing.
  • FIG. 11 shows a structural block diagram of an audio sharing device provided by another embodiment of the present application.
  • the apparatus is capable of implementing the functions performed by the audio device side in the above method embodiments.
  • the device may include:
  • the sending module 1101 is configured to send a positioning signal to a first terminal through the first wireless communication component, and the first terminal is used to identify whether the audio device is located within a target range based on the positioning signal, and the first terminal running a multimedia playback process corresponding to the first audio;
  • a connection establishment module 1102 configured to establish a data communication connection with the first terminal when receiving a data communication connection request sent by the first terminal through the second wireless communication component, and the data communication connection request is sent to the audio device when the first terminal recognizes that the audio device is within the target range;
  • the receiving module 1103 is configured to receive the target audio data sent by the first terminal through the second wireless communication component, and play the first audio according to the target audio data.
  • a second audio is played in the audio device
  • the device also includes:
  • the receiving module is further configured to receive an audio sharing request sent by the first terminal when a data communication connection is established with the first terminal, and the audio sharing request is used to request the first audio device to play said first audio;
  • the receiving module 1103 is further configured to:
  • the receiving module 1103 is further configured to:
  • the second audio is played by the second terminal through the audio device
  • the receiving module 1103 is further configured to:
  • the confirmation sharing request sent by the second terminal is received, the confirmation sharing request is sent to the first terminal, and the confirmation sharing request is received by the second terminal after receiving the confirmation sharing request. It is sent to the audio device after the confirmation operation on the prompt interface.
  • the first wireless communication component is a UWB component
  • the second wireless communication component is a Bluetooth component
  • the sending module 1101 is further configured to:
  • the first terminal is used to identify whether the audio device is located within the target range based on the current location information, and determine the audio device based on the device identifier.
  • the target Bluetooth signal broadcast by the audio device, and establish a Bluetooth connection with the audio device based on the Bluetooth address contained in the target Bluetooth signal.
  • the audio device broadcasts the positioning signal through the first wireless communication component, so that the terminal can receive the positioning signal through the set first wireless communication component when running a multimedia playback process corresponding to the audio. And according to the positioning signal, the location of the audio device is located in real time, so that when the audio device within the target range is accurately identified, a data communication connection is automatically established with the audio device, and the target audio is shared with the audio device.
  • the real-time judgment and calculation of the distance between the terminal and the audio device is realized through the first wireless communication component, and then the establishment of the data communication connection and the audio sharing task are performed based on the precise distance to realize the purpose of sharing the audio with the audio device when the terminal is close to the audio device.
  • the user does not need to manually perform the sharing operation on the interface, which improves the efficiency of audio sharing.
  • the first wireless communication component can be packaged as an internal antenna component of the terminal, and the first wireless communication component is electrically connected to the terminal device through an internal circuit board, and the corresponding terminal device can pass through the first The wireless communication component receives the positioning signal broadcast by the audio device.
  • FIG. 12 shows a structural block diagram of a terminal device 1200 provided by an exemplary embodiment of the present application.
  • the terminal device 1200 in this application may include one or more of the following components: a processor 1210, a memory 1220, a first wireless communication component 1230, and a second wireless communication component 1240, wherein the processor 1210 communicates with the memory 1220, the first wireless The communication component 1230 and the second wireless communication component 1240 are electrically connected.
  • Processor 1210 may include one or more processing cores.
  • the processor 1210 uses various interfaces and lines to connect various parts of the entire terminal device 1200, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 1220, and calls data stored in the memory 1220 to execute Various functions and processing data of the terminal device 1200.
  • the processor 1210 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • the processor 1210 may integrate one or a combination of a CPU, a Graphics Processing Unit (GPU), a modem, and the like.
  • the CPU mainly processes the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing the content that needs to be displayed on the touch screen; the modem is used for processing wireless communication. It can be understood that the above modem may also not be integrated into the processor 1210, but implemented by a communication chip alone.
  • the memory 1220 may include a random access memory (Random Access Memory, RAM), and may also include a read-only memory (Read-Only Memory, ROM).
  • the memory 1220 includes a non-transitory computer-readable storage medium.
  • the memory 1220 may be used to store instructions, programs, codes, sets of codes or sets of instructions.
  • the memory 1220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , the instruction etc.
  • this operating system can be Andrews (Android) system (comprising the system based on the depth development of Android system), the IOS system developed by Apple Inc. (comprising the system based on the depth development of IOS system) or other systems.
  • the storage data area can also store data created by the terminal device 1200 during use (such as phonebook, audio and video data, chat record data) and the like.
  • the terminal 1200 also includes a first wireless communication component 1230 and a second wireless communication component 1240; wherein, the first wireless communication component 1230 is used for precise positioning.
  • the first wireless communication component 1230 may be a UWB components, bluetooth components, or other wireless communication components that can achieve precise indoor positioning;
  • the second wireless communication component 1240 is used to establish a data communication connection with other terminal equipment or audio equipment.
  • the second wireless communication component 1240 can be a bluetooth components, NFC components, WiFi components, infrared components, etc.
  • At least one instruction is stored in the memory 1220, and the at least one instruction is used to be executed by the processor 1210 to execute the audio sharing method as shown in the above-mentioned embodiments.
  • the terminal device 1200 may also include a touch display screen, which may be a capacitive touch display screen, and the capacitive touch screen screen is used to receive a user's touch on or near it using any suitable object such as a finger or a touch pen. operation, and display the user interface of each application.
  • the touch screen is usually set on the front panel of the terminal device 1200 .
  • Touch screens can be designed as full screens, curved screens or special-shaped screens.
  • the touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in this embodiment of the present application.
  • the terminal 1200 may not include the UWB component.
  • the structure of the terminal device 1200 shown in the above drawings does not constitute a limitation on the terminal device 1200, and the terminal may include more or less components than those shown in the figure, or combine certain components, or a different arrangement of components.
  • the terminal device 1200 also includes components such as a radio frequency circuit, a photographing component, a sensor (excluding a temperature sensor), an audio circuit, a wireless fidelity (Wireless Fidelity, WiFi) component, a power supply, and a Bluetooth component, which will not be repeated here.
  • FIG. 13 shows a structural block diagram of an audio device 1300 provided by an exemplary embodiment of the present application.
  • the audio device 1300 in this application may include one or more of the following components: a memory 1301 , a processor 1302 , a first wireless communication component 1303 and a second wireless communication component 1304 .
  • the memory 1301 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory).
  • the memory 1301 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium).
  • the memory 1301 may be used to store instructions, programs, codes, sets of codes or sets of instructions.
  • the memory 1301 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing at least one function (such as a playback function), instructions for implementing the above-mentioned various method embodiments, and the like.
  • the processor 1302 uses various interfaces and lines to connect various parts of the entire audio device 1300, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 1301, and calls data stored in the memory 1301 to execute Various functions of the audio device 1300 and process data.
  • the processor 1302 may be implemented in at least one hardware form among DSP, Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
  • Processor 1302 may integrate a modem. Among them, the modem is used to handle wireless communication.
  • the audio device 1300 may also include a first wireless communication component 1303 and a second wireless communication component 1304, wherein the first wireless communication component 1303 is used for precise positioning.
  • the first wireless communication component 1303 may be UWB components, Bluetooth components, or other wireless communication components that can achieve precise positioning;
  • the second wireless communication component 1304 is used to establish a data communication connection with other terminal devices.
  • the second wireless communication component 1304 can be a Bluetooth component, NFC components, WiFi components, infrared components, etc.
  • the audio device 1300 further includes a speaker, and the target audio is played through the speaker.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the audio sharing method described in each of the above embodiments .
  • a computer program product or computer program comprising computer instructions stored in a computer readable storage medium.
  • the processor of the audio device or the terminal device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the audio device or the terminal device executes the audio sharing method provided in various optional implementation manners of the above aspects.
  • the functions described in the embodiments of the present application may be implemented by hardware, software, firmware or any combination thereof.
  • the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable storage medium.
  • Computer-readable storage media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage media may be any available media that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

An audio sharing method and apparatus, a terminal, an audio device and a storage medium, belonging to the technical field of audio sharing. The method comprises: in a case where the multimedia playback process corresponding to a first audio is run, a first wireless communication component identifies a first audio device located in a first range (202); a second wireless communication component establishes a data communication connection to the first audio device (203); and the second wireless communication component sends target audio data corresponding to the first audio to the first audio device (205). The audio sharing method can improve the audio sharing efficiency.

Description

音频共享方法、装置、终端、音频设备及存储介质Audio sharing method, device, terminal, audio equipment and storage medium
本申请要求于2021年05月27日提交的申请号为202110585748.2、发明名称为“音频共享方法、装置、终端、音频设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110585748.2 and the title of the invention "Audio sharing method, device, terminal, audio equipment and storage medium" submitted on May 27, 2021, the entire content of which is incorporated by reference in In this application.
技术领域technical field
本申请实施例涉及音频分享技术领域,特别涉及一种音频共享方法、装置、终端、音频设备及存储介质。The embodiments of the present application relate to the technical field of audio sharing, and in particular to an audio sharing method, device, terminal, audio equipment, and storage medium.
背景技术Background technique
随着终端的发展,终端具有的功能也越来越丰富,比如,大多数终端均具备音频播放功能。With the development of the terminal, the functions of the terminal are becoming more and more abundant. For example, most terminals have an audio playback function.
相关技术中,用户可以直接通过终端播放音频,也可以为终端连接外接设备进行音频播放,比如,通过与终端建立蓝牙连接的无线耳机播放音频,其中,终端与无线耳机建立蓝牙连接的过程中,需要手动打开蓝牙连接界面,并在蓝牙连接界面上选择待连接的耳机设备。In related technologies, the user can play audio directly through the terminal, or connect the terminal to an external device for audio playback, for example, play audio through a wireless headset that establishes a Bluetooth connection with the terminal, wherein, during the process of establishing a Bluetooth connection between the terminal and the wireless headset, You need to manually open the Bluetooth connection interface, and select the headset device to be connected on the Bluetooth connection interface.
显然,整个蓝牙连接的建立过程需要经过一系列的界面交互过程,操作过程比较繁琐。Obviously, the establishment process of the entire Bluetooth connection needs to go through a series of interface interaction processes, and the operation process is relatively cumbersome.
发明内容Contents of the invention
本申请实施例提供了一种音频共享方法、装置、终端、音频设备及存储介质。所述技术方案如下:Embodiments of the present application provide an audio sharing method, device, terminal, audio equipment, and storage medium. Described technical scheme is as follows:
一方面,本申请实施例提供了音频共享方法,所述方法应用于第一终端,所述第一终端设置有第一无线通讯组件和第二无线通讯组件,所述方法包括:On the one hand, an embodiment of the present application provides an audio sharing method, the method is applied to a first terminal, the first terminal is provided with a first wireless communication component and a second wireless communication component, and the method includes:
在运行有第一音频对应多媒体播放进程的情况下,通过所述第一无线通讯组件识别位于第一范围内的第一音频设备;In the case of running a multimedia playback process corresponding to the first audio, identify the first audio device located within the first range through the first wireless communication component;
通过第二无线通讯组件与所述第一音频设备建立数据通讯连接;establishing a data communication connection with the first audio device through a second wireless communication component;
通过所述第二无线通讯组件向所述第一音频设备发送所述第一音频对应的目标音频数据,所述第一音频设备用于根据所述目标音频数据执行音频播放操作。The target audio data corresponding to the first audio is sent to the first audio device through the second wireless communication component, and the first audio device is configured to perform an audio playback operation according to the target audio data.
另一方面,本申请实施例提供了音频共享方法,所述方法应用于音频设备,所述音频设备设置有第一无线通讯组件和第二无线通讯组件,所述方法包括:On the other hand, an embodiment of the present application provides an audio sharing method, the method is applied to an audio device, the audio device is provided with a first wireless communication component and a second wireless communication component, and the method includes:
通过所述第一无线通讯组件向第一终端发送定位信号,所述第一终端用于基于所述定位信号识别所述音频设备是否位于目标范围内,所述第一终端中运行有第一音频对应的多媒体播放进程;Send a positioning signal to the first terminal through the first wireless communication component, the first terminal is used to identify whether the audio device is within the target range based on the positioning signal, and the first terminal runs a first audio The corresponding multimedia playback process;
在通过所述第二无线通讯组件接收到所述第一终端发送的数据通讯连接请求的情况下,与所述第一终端建立数据通讯连接,所述数据通讯连接请求是所述第一终端在识别到所述音频设备位于所述目标范围内时向所述音频设备发送的;When the second wireless communication component receives a data communication connection request sent by the first terminal, establish a data communication connection with the first terminal, and the data communication connection request is issued by the first terminal sent to the audio device when it is identified that the audio device is within the target range;
通过所述第二无线通讯组件接收所述第一终端发送的目标音频数据,并根据所述目标音频数据播放所述第一音频。receiving the target audio data sent by the first terminal through the second wireless communication component, and playing the first audio according to the target audio data.
另一方面,本申请实施例提供了一种音频共享装置,所述装置应用于第一终端,所述第一终端设置有第一无线通讯组件和第二无线通讯组件,所述装置包括:On the other hand, an embodiment of the present application provides an audio sharing device, the device is applied to a first terminal, the first terminal is provided with a first wireless communication component and a second wireless communication component, and the device includes:
识别模块,用于在运行有第一音频对应多媒体播放进程的情况下,通过所述第一无线通讯组件识别位于第一范围内的第一音频设备;An identification module, configured to identify the first audio device located within the first range through the first wireless communication component when the multimedia playback process corresponding to the first audio is running;
连接建立模块,用于通过第二无线通讯组件与所述第一音频设备建立蓝牙连接;A connection establishment module, configured to establish a Bluetooth connection with the first audio device through the second wireless communication component;
发送模块,用于通过第二无线通讯组件向所述第一音频设备发送所述第一音频对应的目标音频数据,所述第一音频设备用于根据所述目标音频数据执行音频播放操作。A sending module, configured to send target audio data corresponding to the first audio to the first audio device through a second wireless communication component, and the first audio device is configured to perform an audio playback operation according to the target audio data.
另一方面,本申请实施例提供了音频共享装置,所述装置应用于音频设备,所述音频设备设置有第一无线通讯组件和第二无线通讯组件,所述装置包括:On the other hand, an embodiment of the present application provides an audio sharing device, the device is applied to an audio device, the audio device is provided with a first wireless communication component and a second wireless communication component, and the device includes:
发送模块,用于通过所述第一无线通讯组件向第一终端发送定位信号,所述第一终端用于基于所述定位信号识别所述音频设备是否位于目标范围内,所述第一终端中运行有第一音频对应的多媒体播放进程;A sending module, configured to send a positioning signal to a first terminal through the first wireless communication component, and the first terminal is used to identify whether the audio device is located within a target range based on the positioning signal, and in the first terminal running a multimedia playback process corresponding to the first audio;
连接建立模块,用于在通过第二无线通讯组件接收到所述第一终端发送的数据通讯请求的情况下,与所述第一终端建立数据通讯连接,所述数据通讯连接请求是所述第一终端在识别到所述音频设备位于所述目标范围内时向所述音频设备发送的;A connection establishing module, configured to establish a data communication connection with the first terminal when a data communication request sent by the first terminal is received through the second wireless communication component, the data communication connection request being the first terminal sent by a terminal to the audio device when it recognizes that the audio device is within the target range;
接收模块,用于通过所述第二无线通讯组件接收所述第一终端发送的目标音频数据,并根据所述目标音频数据播放所述第一音频。The receiving module is configured to receive the target audio data sent by the first terminal through the second wireless communication component, and play the first audio according to the target audio data.
另一方面,本申请实施例提供了一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一段程序,所述至少一段程序由所述处理器加载并执行以实现如上述方面所述的音频共享方法。On the other hand, an embodiment of the present application provides a terminal, the terminal includes a processor and a memory, at least one program is stored in the memory, and the at least one program is loaded and executed by the processor to implement the above-mentioned The audio sharing method described in the aspect.
另一方面,本申请实施例提供了一种音频设备,所述音频设备包括处理器和存储器,所述存储器中存 储有至少一段程序,所述至少一段程序由所述处理器加载并执行以实现如上述方面所述的音频共享方法。On the other hand, an embodiment of the present application provides an audio device, the audio device includes a processor and a memory, at least one program is stored in the memory, and the at least one program is loaded and executed by the processor to realize The audio sharing method as described in the above aspect.
另一方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一段程序,所述至少一段程序由处理器加载并执行以实现如上述方面所述的音频共享方法。On the other hand, an embodiment of the present application provides a computer-readable storage medium, where at least one program is stored in the computer-readable storage medium, and the at least one program is loaded and executed by a processor to implement the above-mentioned audio sharing method.
另一方面,本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面的各种可选实现方式中提供的音频共享方法。On the other hand, an embodiment of the present application provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the audio sharing method provided in various optional implementation manners of the above aspect.
附图说明Description of drawings
图1示出了本申请一个示例性实施例的实施环境的示意图;FIG. 1 shows a schematic diagram of an implementation environment of an exemplary embodiment of the present application;
图2示出了本申请一个示例性实施例提供的音频共享方法的流程图;FIG. 2 shows a flowchart of an audio sharing method provided by an exemplary embodiment of the present application;
图3示出了本申请另一个示例性实施例提供的音频共享方法的流程图;FIG. 3 shows a flowchart of an audio sharing method provided by another exemplary embodiment of the present application;
图4示出了本申请一个示例性实施例示出的音频共享过程的界面示意图;FIG. 4 shows a schematic interface diagram of an audio sharing process shown in an exemplary embodiment of the present application;
图5示出了本申请另一个示例性实施例提供的音频共享方法的流程图;FIG. 5 shows a flowchart of an audio sharing method provided by another exemplary embodiment of the present application;
图6示出了本申请一个示例性实施例示出的图标重合动画的示意图;Fig. 6 shows a schematic diagram of icon overlapping animation shown in an exemplary embodiment of the present application;
图7示出了本申请另一个示例性实施例提供的音频共享方法的流程图;FIG. 7 shows a flowchart of an audio sharing method provided by another exemplary embodiment of the present application;
图8示出了本申请一个示例性实施例示出的共享提示界面的示意图;Fig. 8 shows a schematic diagram of a sharing prompt interface shown in an exemplary embodiment of the present application;
图9示出了本申请一个示例性实施例示出的完整音频共享方法的流程图;FIG. 9 shows a flowchart of a complete audio sharing method shown in an exemplary embodiment of the present application;
图10示出了本申请一个实施例提供的音频共享装置的结构框图;FIG. 10 shows a structural block diagram of an audio sharing device provided by an embodiment of the present application;
图11示出了本申请另一个实施例提供的音频共享装置的结构框图;Fig. 11 shows a structural block diagram of an audio sharing device provided by another embodiment of the present application;
图12示出了本申请一个示例性实施例提供的终端设备的结构方框图;Fig. 12 shows a structural block diagram of a terminal device provided by an exemplary embodiment of the present application;
图13示出了本申请一个示例性实施例提供的音频设备的结构方框图。Fig. 13 shows a structural block diagram of an audio device provided by an exemplary embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。The "plurality" mentioned herein means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship.
图1示出了本申请一个示例性实施例的实施环境的示意图,该实施环境中包括第一音频设备110、第二音频设备120和第一终端130。FIG. 1 shows a schematic diagram of an implementation environment of an exemplary embodiment of the present application. The implementation environment includes a first audio device 110 , a second audio device 120 and a first terminal 130 .
第一终端130是运行有音频播放应用程序的终端,其可以是智能手机、平板电脑、智能手表、智能音箱等便携式电子设备。本实施例中,第一终端130设置有第一无线通讯组件和第二无线通讯组件,其中,第一无线通讯组件用于精准定位,示意性的,第一无线通讯组件可以是UWB组件、蓝牙组件,或其他可以实现室内精准定位的无线通讯组件;第二无线通讯组件用于与其他终端设备或音频设备建立数据通讯连接,示意性的,第二无线通讯组件可以是蓝牙组件、近场通讯(Near Field Communication,NFC)组件、WiFi组件、红外组件等。以第一无线通讯组件是UWB组件,第二无线通讯组件是蓝牙组件为例,第一终端130可以通过该UWB组件识别位于目标范围内的音频设备;可选的,当第一终端130识别到第一音频设备110位于目标范围内时,可以与第一音频设备110建立蓝牙连接,并向第一音频设备110发送目标音频数据,即控制第一音频设备110播放目标音频。可选的,本实施例中,第一终端130可以与至少一个音频设备建立蓝牙连接,也就是说,在第一终端130与第二音频设备120建立有蓝牙连接的基础上,第一终端130还可以与第一音频设备110建立蓝牙连接。The first terminal 130 is a terminal running an audio playback application program, which may be a portable electronic device such as a smart phone, a tablet computer, a smart watch, or a smart speaker. In this embodiment, the first terminal 130 is provided with a first wireless communication component and a second wireless communication component, wherein the first wireless communication component is used for precise positioning. Schematically, the first wireless communication component may be a UWB component, a Bluetooth components, or other wireless communication components that can achieve precise indoor positioning; the second wireless communication component is used to establish a data communication connection with other terminal equipment or audio equipment. Schematically, the second wireless communication component can be a Bluetooth component, a near field communication (Near Field Communication, NFC) components, WiFi components, infrared components, etc. Taking the first wireless communication component as a UWB component and the second wireless communication component as a Bluetooth component as an example, the first terminal 130 can identify an audio device within the target range through the UWB component; optionally, when the first terminal 130 recognizes When the first audio device 110 is within the target range, a Bluetooth connection can be established with the first audio device 110, and the target audio data can be sent to the first audio device 110, that is, the first audio device 110 can be controlled to play the target audio. Optionally, in this embodiment, the first terminal 130 may establish a Bluetooth connection with at least one audio device, that is, on the basis of establishing a Bluetooth connection between the first terminal 130 and the second audio device 120, the first terminal 130 A Bluetooth connection may also be established with the first audio device 110 .
第一音频设备110是具有音频播放功能的设备,其可以是蓝牙耳机、智能音箱等设备。本实施例中,第一音频设备110中设置有第一无线通讯组件和第二无线通讯组件,其中,第一无线通讯组件用于精准定位,示意性的,第一无线通讯组件可以是UWB组件、蓝牙组件,或其他可以实现精准定位的无线通讯组件;第二无线通讯组件用于与其他终端设备建立数据通讯连接,示意性的,第二无线通讯组件可以是蓝牙组件、NFC组件、WiFi组件、红外组件等。以第一无线通讯组件是UWB组件,第二无线通讯组件是蓝牙组件为例,第一音频设备110可以通过UWB组件广播定位信号,使得第一终端130可以基于该定位信号识别第一音频设备110是否位于目标范围内;可选的,当第一终端130识别到第一音频设备110位于目标范围内时,自动与第一音频设备110建立蓝牙连接,进而使得第一音频设备110可以接收第一终端130发送的目标音频数据。可选的,第一音频设备110可以与至少一个终端建立蓝牙连接,也就是说,当第一音频设备110与第二终端建立有蓝牙连接的基础上,第一音频设备110还可以与第一终端130建立蓝牙连接。The first audio device 110 is a device with an audio playback function, which may be a Bluetooth headset, a smart speaker, and the like. In this embodiment, the first audio device 110 is provided with a first wireless communication component and a second wireless communication component, wherein the first wireless communication component is used for precise positioning. Schematically, the first wireless communication component may be a UWB component , Bluetooth components, or other wireless communication components that can achieve precise positioning; the second wireless communication component is used to establish a data communication connection with other terminal devices. Schematically, the second wireless communication component can be a Bluetooth component, an NFC component, or a WiFi component , infrared components, etc. Taking the first wireless communication component as a UWB component and the second wireless communication component as a Bluetooth component as an example, the first audio device 110 can broadcast a positioning signal through the UWB component, so that the first terminal 130 can identify the first audio device 110 based on the positioning signal Whether it is within the target range; Optionally, when the first terminal 130 recognizes that the first audio device 110 is within the target range, it automatically establishes a Bluetooth connection with the first audio device 110, so that the first audio device 110 can receive the first The target audio data sent by the terminal 130. Optionally, the first audio device 110 can establish a Bluetooth connection with at least one terminal, that is, when the first audio device 110 establishes a Bluetooth connection with the second terminal, the first audio device 110 can also establish a Bluetooth connection with the first The terminal 130 establishes a Bluetooth connection.
第二音频设备120是具有音频播放功能的设备,其可以是蓝牙耳机、智能音箱等设备。本实施例中,第一终端130在与第一音频设备110建立数据通讯连接之前,已经与第二音频设备120建立有数据通讯连 接,也即第一终端130通过第二音频设备120播放目标音频;可选的,第一音频设备110中也可以设置有第一无线通讯组件和第二无线通讯组件,对应的,第一终端130在识别到第二音频设备120位于目标范围内时,自动与第二音频设备120建立数据通讯连接。The second audio device 120 is a device with an audio playback function, which may be a Bluetooth headset, a smart speaker, and the like. In this embodiment, the first terminal 130 has established a data communication connection with the second audio device 120 before establishing a data communication connection with the first audio device 110, that is, the first terminal 130 plays the target audio through the second audio device 120 Optionally, the first audio device 110 may also be provided with a first wireless communication component and a second wireless communication component. Correspondingly, when the first terminal 130 recognizes that the second audio device 120 is within the target range, it automatically communicates with the The second audio device 120 establishes a data communication connection.
可选的,第一音频设备110和第二音频设备120可以是相同类型的音频设备,比如,第一音频设备110和第二音频设备120均是无线蓝牙耳机;也可以是不同类型的音频设备,比如,第一音频设备110是无线蓝牙耳机,第二音频设备120是蓝牙音箱。Optionally, the first audio device 110 and the second audio device 120 can be the same type of audio device, for example, the first audio device 110 and the second audio device 120 are both wireless bluetooth earphones; they can also be different types of audio devices For example, the first audio device 110 is a wireless Bluetooth headset, and the second audio device 120 is a Bluetooth speaker.
请参考图2,其示出了本申请一个示例性实施例提供的音频共享方法的流程图,本申请实施例以该方法应用于图1所示的实施环境为例进行说明,该方法包括:Please refer to FIG. 2, which shows a flow chart of an audio sharing method provided by an exemplary embodiment of the present application. The embodiment of the present application takes the application of the method in the implementation environment shown in FIG. 1 as an example, and the method includes:
步骤201,第一音频设备通过第一无线通讯组件向第一终端发送定位信号。Step 201, a first audio device sends a positioning signal to a first terminal through a first wireless communication component.
其中,第一无线通讯组件可以是UWB组件,也可以是蓝牙组件,或其他可以实现精准定位的组件,示意性的,本实施例以第一音频设备中设置有UWB组件为例,当第一音频设备中设置有UWB组件时,使得可以通过UWB组件定位技术实时定位出音频设备的位置信息。其中,超宽带(Ultra Wide Band,UWB)技术是一种无线载波通信技术,它不采用正弦载波,而是利用纳秒级的非正弦波窄脉冲传输数据,因此其所占的频谱范围很宽,且数据传输速率可以达到几百兆比特每秒以上。在该应用场景中,UWB技术具有系统复杂度低,发射信号功率谱密度低,对信道衰落不敏感,截获能力低,定位精度高等优点,尤其适用于室内等密集多径场所的高速无线接入,因此,为音频设备设置UWB组件实现对音频设备的定位,可以以较低的功耗实现室内等密集多径场所的高精度定位。Wherein, the first wireless communication component may be a UWB component, a Bluetooth component, or other components that can achieve precise positioning. When the UWB component is set in the audio device, the location information of the audio device can be located in real time through the UWB component positioning technology. Among them, Ultra Wide Band (UWB) technology is a wireless carrier communication technology. It does not use sinusoidal carrier, but uses nanosecond-level non-sinusoidal narrow pulse to transmit data, so it occupies a wide spectrum range. , and the data transmission rate can reach hundreds of megabits per second. In this application scenario, UWB technology has the advantages of low system complexity, low power spectral density of transmitted signals, insensitivity to channel fading, low interception capability, and high positioning accuracy. It is especially suitable for high-speed wireless access in dense multipath places such as indoors. , Therefore, setting UWB components for audio equipment to realize positioning of audio equipment can realize high-precision positioning in dense multipath places such as indoors with low power consumption.
可选的,第一无线通讯组件可以设置在音频设备内部,即第一音频设备内部设置有第一无线通讯组件,使得可以通过第一无线通讯组件实现对第一音频设备的定位。Optionally, the first wireless communication component may be arranged inside the audio device, that is, the first audio device is provided with the first wireless communication component, so that the positioning of the first audio device can be realized through the first wireless communication component.
可选的,第一无线通讯组件也可以独立于第一音频设备设置,第一无线通讯组件与第一音频设备可分离,也就是说,当第一音频设备安装或佩戴有第一无线通讯组件时,可以通过第一无线通讯组件实现音频设备定位,当第一音频设备未携带第一无线通讯组件时,无法实现音频设备UWB定位;在该应用场景下,第一无线通讯组件可以封装为第一音频设备的设备配件,比如,第一无线通讯组件可以是设备挂饰、标签等设备配件。Optionally, the first wireless communication component can also be set independently from the first audio device, and the first wireless communication component can be separated from the first audio device, that is, when the first audio device is installed or worn with the first wireless communication component In this case, the positioning of the audio device can be realized through the first wireless communication component. When the first audio device does not carry the first wireless communication component, the UWB positioning of the audio device cannot be realized; in this application scenario, the first wireless communication component can be packaged as the second A device accessory of an audio device, for example, the first wireless communication component may be a device accessory such as a device pendant or a label.
可选的,若第一无线通讯组件独立于音频设备设置,在通过第一无线通讯组件实现定位之前,第一音频设备需要与第一无线通讯组件建立数据通讯连接,示意性的,该数据通讯连接可以是蓝牙连接、WiFi连接、红外连接等。Optionally, if the first wireless communication component is set independently of the audio device, before realizing positioning through the first wireless communication component, the first audio device needs to establish a data communication connection with the first wireless communication component. Schematically, the data communication The connection may be a Bluetooth connection, a WiFi connection, an infrared connection, or the like.
本实施例中所需要实现的应用场景为:当用户需要向其他音频设备共享终端中正在播放的音频时,可以手持终端靠近音频设备,当确定音频设备位于目标范围内时,即可与音频设备建立数据连接,进而控制音频设备播放目标音频,使得无需界面交互过程即可实现将终端中的音频分享至其他音频设备播放,以提高音频分享效率。而为了实现当用户手持终端靠近音频设备即可进行后续音频共享操作,终端就需要实时获取到音频设备的位置信息,以便终端根据自身位置和音频设备的位置信息,确定终端与音频设备之间的距离,从而在距离满足距离条件时,执行后续与音频设备建立数据通讯连接以及传输音频数据的步骤。The application scenario that needs to be implemented in this embodiment is: when the user needs to share the audio being played in the terminal to other audio devices, the user can hold the terminal close to the audio device, and when the audio device is determined to be within the target range, the audio device can be connected Establish a data connection, and then control the audio device to play the target audio, so that the audio in the terminal can be shared to other audio devices for playback without the interface interaction process, so as to improve the audio sharing efficiency. In order to realize the subsequent audio sharing operation when the user holds the terminal close to the audio device, the terminal needs to obtain the location information of the audio device in real time, so that the terminal can determine the distance between the terminal and the audio device according to its own location and the location information of the audio device. distance, so that when the distance satisfies the distance condition, subsequent steps of establishing a data communication connection with the audio device and transmitting audio data are performed.
在一种可能的实施方式中,由于第一音频设备中设置有第一无线通讯组件,而第一无线通讯组件具备定位功能,即可以利用第一无线通讯组件与附近的定位基站,实时定位出第一音频设备对应的位置信息,进而第一音频设备可以通过第一无线通讯组件广播位置信息,也即将位置信息添加至第一无线通讯组件广播的定位信号中,进而使得其他终端可以基于自身设置的第一无线通讯组件接收到该定位信号,从而获取到第一音频设备对应的位置信息,进而实时计算第一音频设备与终端之间的距离。In a possible implementation manner, since the first audio device is equipped with the first wireless communication component, and the first wireless communication component has a positioning function, it can use the first wireless communication component and a nearby positioning base station to locate the location in real time. The location information corresponding to the first audio device, and then the first audio device can broadcast the location information through the first wireless communication component, that is, add the location information to the positioning signal broadcast by the first wireless communication component, so that other terminals can set based on their own The first wireless communication component receives the positioning signal, thereby obtaining the location information corresponding to the first audio device, and then calculating the distance between the first audio device and the terminal in real time.
示意性的,若第一无线通讯组件为UWB组件时,设置有UWB组件的第一音频设备实时广播UWB信号,该UWB信号中携带有第一音频设备的位置信息和设备信息,以便其他终端通过该UWB信号感知与第一音频设备之间的距离关系,从而基于该距离关系确定第一音频设备是否位于目标范围内,进而在确定出第一音频设备位于目标范围内时执行后续的音频共享操作。Schematically, if the first wireless communication component is a UWB component, the first audio device equipped with the UWB component broadcasts a UWB signal in real time, and the UWB signal carries the location information and device information of the first audio device, so that other terminals can pass through The UWB signal perceives the distance relationship with the first audio device, so as to determine whether the first audio device is within the target range based on the distance relationship, and then perform subsequent audio sharing operations when it is determined that the first audio device is within the target range .
步骤202,在运行有第一音频对应多媒体播放进程的情况下,第一终端通过第一无线通讯组件识别位于第一范围内的第一音频设备。Step 202: In the case that the multimedia playing process corresponding to the first audio is running, the first terminal identifies the first audio device within the first range through the first wireless communication component.
为了使得第一终端可以识别到周围音频设备的位置信息,对应的,第一终端中也需要设置有第一无线通讯组件,以便第一终端可以通过第一无线通讯组件接收到周围音频设备广播的定位信号,进而基于该定位信号确定出音频设备的位置信息,以确定与周围任意音频设备之间的距离是否满足共享音频的距离关系。其中,该第一无线通讯组件可以是UWB组件,也可以是蓝牙组件,或其他可以实现精准定位的通讯组件。In order to enable the first terminal to recognize the location information of the surrounding audio equipment, correspondingly, the first terminal also needs to be equipped with a first wireless communication component, so that the first terminal can receive information broadcast by the surrounding audio equipment through the first wireless communication component. The positioning signal, and then determine the location information of the audio device based on the positioning signal, so as to determine whether the distance to any surrounding audio device satisfies the distance relationship of sharing audio. Wherein, the first wireless communication component may be a UWB component, a Bluetooth component, or other communication components capable of precise positioning.
需要说明的是,本实施例中第一终端与第一音频设备之间需要通过广播和接收定位信号,实现第一终端识别第一音频设备是否位于目标范围内,因此,第一终端与第一音频设备之间需要设置相同的第一无线通讯组件,比如,若第一终端中设置的第一无线通讯组件是UWB组件,则第一音频设备中设置的第一无 线通讯组件也应该是UWB组件。It should be noted that in this embodiment, the positioning signal needs to be broadcast and received between the first terminal and the first audio device so that the first terminal can identify whether the first audio device is within the target range. Therefore, the first terminal and the first The same first wireless communication component needs to be set between audio devices, for example, if the first wireless communication component set in the first terminal is a UWB component, then the first wireless communication component set in the first audio device should also be a UWB component .
基于本实施例的音频分享场景:终端靠近音频设备(满足距离条件),即可向音频设备共享终端中播放的音频。可以看出只有当终端中播放音频时,才具有靠近分享音频的需求,因此,为了降低终端功耗,在一种可能的实施方式中,当第一终端中运行有第一音频对应的多媒体播放进程时,可以通过第一无线通讯组件接收周围音频设备广播的定位信号,并从该定位信号中获取到音频设备的位置信息,从而基于该位置信息和第一终端的自身位置信息,实时计算出第一终端与音频设备之间的距离,进而确定音频设备是否位于第一范围内(即是否满足靠近分享音频的条件),并将位于第一范围内的音频设备确定为第一音频设备。Based on the audio sharing scenario of this embodiment: the terminal is close to the audio device (satisfies the distance condition), and the audio played on the terminal can be shared with the audio device. It can be seen that only when the audio is played in the terminal, there is a need to be close to the shared audio. Therefore, in order to reduce the power consumption of the terminal, in a possible implementation, when the multimedia player corresponding to the first audio is running in the first terminal During the process, the positioning signal broadcast by the surrounding audio equipment can be received through the first wireless communication component, and the location information of the audio equipment can be obtained from the positioning signal, so as to calculate in real time based on the location information and the own location information of the first terminal. The distance between the first terminal and the audio device is used to determine whether the audio device is within the first range (that is, whether the condition for sharing audio is met), and determine the audio device within the first range as the first audio device.
其中,多媒体播放进程指音视频内容对应的播放进程,比如,多媒体播放进程可以是视频播放进程(视频所对应的音频即第一音频),也可以是录音播放进程、录像播放进程(录像所对应的音频即第一音频)、音乐播放进程、电子书播放进程等,本申请实施例对多媒体播放进程不构成限定。Wherein, the multimedia playback process refers to the playback process corresponding to the audio and video content. For example, the multimedia playback process can be a video playback process (the audio corresponding to the video is the first audio), or a recording playback process, or a video playback process (the video corresponds to the first audio). The audio (that is, the first audio), the music playing process, the e-book playing process, etc., the embodiment of the present application does not limit the multimedia playing process.
示意性的,对于获取第一终端对应终端位置信息的方式,与获取第一音频设备对应位置信息的方式类似,也是通过第一无线通讯组件和周围的定位基站实现的,比如,若第一无线通讯组件是UWB组件,则可以基于UWB定位原理获取到第一终端的位置信息。且通过UWB组件定位技术可以准确定位出第一终端的当前位置信息,并以较低的功耗实现室内等密集多径场所的高精度定位。Schematically, the method of obtaining the location information corresponding to the first terminal is similar to the method of obtaining the location information corresponding to the first audio device, and it is also realized by the first wireless communication component and the surrounding positioning base stations. For example, if the first wireless If the communication component is a UWB component, the position information of the first terminal can be acquired based on the UWB positioning principle. Moreover, the current position information of the first terminal can be accurately located through the UWB component positioning technology, and high-precision positioning in dense multi-path places such as indoors can be realized with low power consumption.
可选的,第一无线通讯组件可以设置在终端内部,即终端内部设置第一无线通讯组件,使得可以通过第一无线通讯组件实现终端定位,以及识别位于目标范围内的音频设备。Optionally, the first wireless communication component can be set inside the terminal, that is, the first wireless communication component is set inside the terminal, so that terminal positioning can be realized through the first wireless communication component, and audio devices located within the target range can be identified.
可选的,第一无线通讯组件也可以独立于终端设置,第一无线通讯组件与终端可分离,也就是说,当终端安装或佩戴有第一无线通讯组件时,可以通过第一无线通讯组件实现终端定位,以及识别目标范围内的目标音频设备,当终端未携带第一无线通讯组件时,终端无法实现定位操作,也就无法通过第一无线通讯组件识别音频设备的位置;在该应用场景下,第一无线通讯组件可以封装为终端配件,比如,第一无线通讯组件可以是终端后盖手机壳、终端保护套、手机挂饰、标签等终端配件。Optionally, the first wireless communication component can also be set independently of the terminal, and the first wireless communication component can be separated from the terminal, that is, when the terminal is installed or worn with the first wireless communication component, the first wireless communication component can Realize terminal positioning and identify the target audio device within the target range. When the terminal does not carry the first wireless communication component, the terminal cannot perform positioning operations, and it cannot identify the position of the audio device through the first wireless communication component; in this application scenario Next, the first wireless communication component can be packaged as a terminal accessory. For example, the first wireless communication component can be a terminal accessory such as a terminal back cover, a mobile phone case, a terminal protective case, a mobile phone pendant, and a label.
可选的,若第一无线通讯组件独立于终端设置,在通过第一无线通讯组件实现定位之前,终端需要与第一无线通讯组件建立数据通讯连接,以便终端可以获取到第一无线通讯组件接收到的定位信号,从而实时计算终端与音频设备之间的距离。Optionally, if the first wireless communication component is set independently from the terminal, the terminal needs to establish a data communication connection with the first wireless communication component before realizing positioning through the first wireless communication component, so that the terminal can obtain the information received by the first wireless communication component. The received positioning signal is used to calculate the distance between the terminal and the audio device in real time.
在一种可能的实施方式中,以第一无线通讯组件是UWB组件为例,设置有UWB组件的第一终端可以接收其他音频设备通过UWB组件广播的UWB信号,并根据该UWB信号确定音频设备的位置信息,进而基于该位置信息和第一终端的终端位置信息,确定音频设备与第一终端之间的距离,从而将距离指示位于第一范围内的音频设备确定为第一音频设备,该第一音频设备即后续需要执行音频共享的音频设备。In a possible implementation, taking the first wireless communication component as an example of a UWB component, the first terminal equipped with the UWB component can receive UWB signals broadcast by other audio devices through the UWB component, and determine the audio device according to the UWB signal. location information, and then based on the location information and the terminal location information of the first terminal, determine the distance between the audio device and the first terminal, so that the audio device whose distance indication is within the first range is determined as the first audio device, the The first audio device is the audio device that needs to perform audio sharing subsequently.
其中,第一范围可以是以第一终端为圆心,预设距离为半径的球形立体区域,即目标范围指示距离第一终端为预设距离的范围;或第一范围也可以是以第一终端为圆心,预设距离为半径的扇形区域;本实施例对第一范围的具体形状不构成限定。示意性的,预设距离可以是20cm,即当第一终端识别到音频设备与第一终端之间的距离达到20cm时,将该音频设备确定为目标音频设备。Among them, the first range can be a spherical three-dimensional area with the first terminal as the center and the preset distance as the radius, that is, the target range indicates the range of the preset distance from the first terminal; or the first range can also be based on the first terminal is the center of a circle, and the preset distance is a fan-shaped area with a radius; this embodiment does not limit the specific shape of the first range. Schematically, the preset distance may be 20 cm, that is, when the first terminal recognizes that the distance between the audio device and the first terminal reaches 20 cm, the audio device is determined as the target audio device.
可选的,第一终端识别出的位于第一范围内的第一音频设备可以是一个,也可以是两个或两个以上,本实施例对识别出的第一音频设备的数量不构成限定。可选的,当第一终端识别到至少两个音频设备位于第一范围内,可以自动与至少两个音频设备建立数据通讯连接;或由用户手动确定与哪一个音频设备建立数据通讯连接。Optionally, the number of first audio devices within the first range identified by the first terminal may be one, or two or more, and this embodiment does not limit the number of identified first audio devices . Optionally, when the first terminal recognizes that at least two audio devices are within the first range, it may automatically establish a data communication connection with the at least two audio devices; or the user may manually determine which audio device to establish a data communication connection with.
可选的,在其他可能的实施方式中,对于第一终端识别位于第一范围内的音频设备的方式,若第一无线通信组件为UWB组件的情况下,第一终端也可以基于UWB测距原理,确定第一终端与音频设备之间的距离,进而判断音频设备是否位于第一终端的第一范围内,具体可以采用的UWB测距原理包括:信号到达差测距(Phase-Difference-of-Arrival,PDOA)、单边双向测距(Single Sided Two Way Ranging,SS-TWR)、双边双向测距(Double Side Two Way Ranging,DS-TWR)、PDOA+TWR等,本实施例对第一终端具体使用的UWB测距原理不构成限定。Optionally, in other possible implementation manners, for the first terminal to identify the audio device within the first range, if the first wireless communication component is a UWB component, the first terminal may also measure distance based on UWB The principle is to determine the distance between the first terminal and the audio device, and then determine whether the audio device is within the first range of the first terminal. The specific UWB ranging principles that can be used include: signal arrival difference ranging (Phase-Difference-of -Arrival, PDOA), Single Sided Two Way Ranging (Single Sided Two Way Ranging, SS-TWR), Double Side Two Way Ranging (Double Side Two Way Ranging, DS-TWR), PDOA+TWR, etc. The UWB ranging principle specifically used by the terminal does not constitute a limitation.
以UWB测距原理为SS-TWR为例,确定音频设备距离第一终端之间的距离过程可以为:第一终端通过UWB组件向音频设备发送测距请求信号,音频设备在接收到测距请求信号后,向第一终端反馈测距响应信号,对应终端基于接收到的测距响应信号,确定第一终端与音频设备之间的距离。Taking the UWB ranging principle as SS-TWR as an example, the process of determining the distance between the audio device and the first terminal can be as follows: the first terminal sends a ranging request signal to the audio device through the UWB component, and the audio device receives the ranging request After receiving the signal, the ranging response signal is fed back to the first terminal, and the corresponding terminal determines the distance between the first terminal and the audio device based on the received ranging response signal.
可选的,若第一终端采用UWB测距原理识别位于第一范围内的音频设备,则音频设备在通过UWB组件广播UWB信号(定位信号)时,无需在UWB信号中添加位置信息,仅需要添加音频设备的设备标识即可。Optionally, if the first terminal uses the UWB ranging principle to identify the audio device within the first range, when the audio device broadcasts the UWB signal (positioning signal) through the UWB component, it does not need to add location information to the UWB signal, only needs to Just add the device ID of the audio device.
步骤203,第一终端通过第二无线通讯组件与第一音频设备建立数据通讯连接。Step 203, the first terminal establishes a data communication connection with the first audio device through the second wireless communication component.
为了实现靠近即可共享音频数据的效果,而音频数据共享还依赖于数据通道的建立,因此,在一种可能的实施方式中,当第一终端识别到第一音频设备位于第一范围内时,即满足音频共享的距离条件时,立 即与第一音频设备建立数据通讯连接,为后续音频数据的传输建立数据传输通道。In order to achieve the effect that audio data can be shared by close proximity, and audio data sharing also depends on the establishment of a data channel, therefore, in a possible implementation manner, when the first terminal recognizes that the first audio device is within the first range , that is, when the distance condition for audio sharing is met, immediately establish a data communication connection with the first audio device, and establish a data transmission channel for subsequent audio data transmission.
可选的,第一无线通讯组件可以与第二无线通讯组件相同,比如,第一无线通讯组件和第二无线通讯组件均为UWB组件,则既可以通过UWB组件之间的UWB通讯识别音频设备是否位于第一范围内,也可以通过UWB组件传输音频数据;第一无线通讯组件可以与第二无线通讯组件不同,比如,第一无线通讯组件为UWB组件,而第二无线通讯组件为蓝牙组件,则第一终端通过UWB组件识别音频设备是否位于第一范围内,进而通过蓝牙组件传输音频数据。Optionally, the first wireless communication component can be the same as the second wireless communication component, for example, the first wireless communication component and the second wireless communication component are both UWB components, then the audio device can be identified through the UWB communication between the UWB components Whether it is within the first range, audio data can also be transmitted through the UWB component; the first wireless communication component can be different from the second wireless communication component, for example, the first wireless communication component is a UWB component, and the second wireless communication component is a Bluetooth component , the first terminal identifies whether the audio device is within the first range through the UWB component, and then transmits the audio data through the Bluetooth component.
为了避免定位操作对第一终端与第一音频设备之间音频数据传输的影响,将终端定位功能和数据通讯功能分开执行,即第一终端和第一音频设备中均设置有第二无线通讯组件,使得第一终端可以通过第二无线通讯组件与第一音频设备建立数据通讯连接。其中,第二无线通讯组件可以是蓝牙组件、WiFi组件、红外组件等,对应第一终端可以与目标音频设备建立蓝牙连接、WiFi连接或红外连接。In order to avoid the impact of the positioning operation on the audio data transmission between the first terminal and the first audio device, the terminal positioning function and the data communication function are performed separately, that is, the first terminal and the first audio device are both equipped with a second wireless communication component , so that the first terminal can establish a data communication connection with the first audio device through the second wireless communication component. Wherein, the second wireless communication component may be a Bluetooth component, a WiFi component, an infrared component, etc., corresponding to which the first terminal may establish a Bluetooth connection, a WiFi connection or an infrared connection with the target audio device.
步骤204,在通过第二无线通讯组件接收到第一终端发送的数据通讯连接请求的情况下,第一音频设备与第一终端建立数据通讯连接。Step 204, in the case of receiving a data communication connection request sent by the first terminal through the second wireless communication component, the first audio device establishes a data communication connection with the first terminal.
其中,数据通讯连接请求是第一终端在识别到第一音频设备位于目标范围内时向第一音频设备发送的。Wherein, the data communication connection request is sent to the first audio device when the first terminal recognizes that the first audio device is within the target range.
在一种可能的实施方式中,当第一终端中运行有多媒体播放进程,且识别到第一音频设备位于目标范围(第一范围)内,即第一音频设备满足音频共享的距离条件时,第一终端即向第一音频设备发送数据通讯连接请求,以请求与第一音频设备建立数据通讯连接,从而为后续音频共享做准备。In a possible implementation manner, when a multimedia playback process is running in the first terminal and it is recognized that the first audio device is within the target range (first range), that is, when the first audio device meets the distance condition for audio sharing, The first terminal sends a data communication connection request to the first audio device, so as to request to establish a data communication connection with the first audio device, so as to prepare for subsequent audio sharing.
对应的,第一音频设备中设置有第二无线通讯组件,使得第一音频设备可以通过第二无线通讯组件接收到第一终端发送的数据通讯连接请求,若第一音频设备同意该数据通讯连接请求,则第一音频设备与第一终端建立数据通讯连接,后续第一终端可以通过数据通讯连接通道向第一音频设备发送目标音频数据。Correspondingly, the first audio device is provided with a second wireless communication component, so that the first audio device can receive the data communication connection request sent by the first terminal through the second wireless communication component. If the first audio device agrees to the data communication connection request, the first audio device establishes a data communication connection with the first terminal, and then the first terminal can send target audio data to the first audio device through the data communication connection channel.
可选的,若第一音频设备在接收到数据通讯连接请求后,未同意,对应的,第一终端与第一音频设备也就无法建立数据通讯连接,进而无法执行后续的音频共享操作。Optionally, if the first audio device does not agree after receiving the data communication connection request, correspondingly, the first terminal and the first audio device cannot establish a data communication connection, and thus cannot perform subsequent audio sharing operations.
步骤205,第一终端通过第二无线通讯组件向第一音频设备发送第一音频对应的目标音频数据。Step 205, the first terminal sends target audio data corresponding to the first audio to the first audio device through the second wireless communication component.
在一种可能的实施方式中,当第一终端与第一音频设备建立数据通讯连接之后,可以立即通过第二无线通讯组件向第一音频设备发送目标音频数据,以便第一音频设备根据该目标音频数据执行音频播放操作。In a possible implementation manner, after the first terminal establishes a data communication connection with the first audio device, it may immediately send target audio data to the first audio device through the second wireless communication component, so that the first audio device Audio data performs audio playback operations.
可选的,第一音频设备中第一音频的播放进度与第一终端中第一音频的播放进度相同,也就是说,第一终端向第一音频设备发送的是当前播放进度对应的音频数据流。Optionally, the playback progress of the first audio in the first audio device is the same as the playback progress of the first audio in the first terminal, that is, the first terminal sends the audio data corresponding to the current playback progress to the first audio device flow.
步骤206,第一音频设备通过第二无线通讯组件接收第一终端发送的目标音频数据,并根据目标音频数据播放第一音频。Step 206, the first audio device receives the target audio data sent by the first terminal through the second wireless communication component, and plays the first audio according to the target audio data.
在一种可能的实施方式中,当第一音频设备和第一终端之间连接数据通讯连接之后,第一终端可以通过第二无线通讯组件向第一音频设备发送目标音频数据,对应的,第一音频设备也可以通过第二无线通讯组件接收目标音频数据,即实现将第一音频由第一终端共享至第一音频设备的过程。In a possible implementation manner, after the data communication connection is established between the first audio device and the first terminal, the first terminal may send target audio data to the first audio device through the second wireless communication component, correspondingly, the first An audio device can also receive target audio data through the second wireless communication component, that is, realize the process of sharing the first audio from the first terminal to the first audio device.
可选的,若第一音频设备在与第一终端建立数据通讯连接之前,与第二终端建立有数据通讯连接,且第二终端通过第一音频设备播放有第二音频;当第一音频设备接收到第一终端发送的目标音频数据后,可以直接停止播放第二音频,进而根据目标音频数据播放第一音频。Optionally, if the first audio device establishes a data communication connection with the second terminal before establishing a data communication connection with the first terminal, and the second terminal plays the second audio through the first audio device; when the first audio device After receiving the target audio data sent by the first terminal, the playing of the second audio can be stopped directly, and the first audio can be played according to the target audio data.
综上所述,本申请实施例中,音频设备通过第一无线通讯组件广播定位信号,使得终端在运行有音频对应的多媒体播放进程时,可以通过设置的第一无线通讯组件接收该定位信号,并根据该定位信号实时定位音频设备的位置,从而在精确识别出位于目标范围内的音频设备时,自动与该音频设备建立数据通讯连接,并向音频设备共享目标音频。通过第一无线通讯组件实现终端与音频设备之间距离的实时判断与计算,进而基于精确距离执行数据通讯连接的建立以及音频共享任务,实现终端靠近音频设备即可向音频设备共享音频的目的,整个音频共享过程中无需用户手动在界面上进行分享操作,提高了音频分享的效率。To sum up, in the embodiment of the present application, the audio device broadcasts the positioning signal through the first wireless communication component, so that the terminal can receive the positioning signal through the set first wireless communication component when running a multimedia playback process corresponding to the audio. And according to the positioning signal, the position of the audio device is located in real time, so that when the audio device within the target range is accurately identified, a data communication connection is automatically established with the audio device, and the target audio is shared with the audio device. The real-time judgment and calculation of the distance between the terminal and the audio device is realized through the first wireless communication component, and then the establishment of the data communication connection and the audio sharing task are performed based on the precise distance, so that the terminal can share the audio with the audio device when the terminal is close to the audio device. During the entire audio sharing process, the user does not need to manually perform sharing operations on the interface, which improves the efficiency of audio sharing.
可选的,通过第一无线通讯组件识别位于第一范围内的第一音频设备,包括:Optionally, identifying the first audio device within the first range through the first wireless communication component includes:
在识别到位于第二范围内的第一音频设备的情况下,在当前用户界面中显示第一音频设备对应的第一设备图标,第二范围大于第一范围;When the first audio device within the second range is identified, displaying a first device icon corresponding to the first audio device in the current user interface, the second range being greater than the first range;
在第一音频设备位于第一范围内的情况下,将第一设备图标设置为第二设备图标,第二设备图标的图标样式不同于第一设备图标的图标样式。When the first audio device is located within the first range, the first device icon is set as the second device icon, and the icon style of the second device icon is different from the icon style of the first device icon.
可选的,第一终端连接有第二音频设备,当前用户界面中显示有第二音频设备对应的第三设备图标;Optionally, the first terminal is connected to a second audio device, and the current user interface displays a third device icon corresponding to the second audio device;
在识别到位于第二范围内的第一音频设备的情况下,在当前用户界面中显示第一音频设备对应的第一设备图标之后,方法还包括:When the first audio device within the second range is identified, after displaying the first device icon corresponding to the first audio device in the current user interface, the method further includes:
在第一音频设备位于第二范围和第一范围之间的情况下,在当前用户界面中显示图标重合动画,图标重合动画中第一设备图标和第三设备图标之间的相对移动趋势由第一音频设备和第一终端之间的距离变 化趋势确定;When the first audio device is located between the second range and the first range, an icon overlapping animation is displayed in the current user interface, and the relative movement trend between the first device icon and the third device icon in the icon overlapping animation is determined by the second Determination of a distance variation trend between an audio device and the first terminal;
在第一音频设备位于第一范围内的情况下,将第一设备图标和第三设备图标设置为第四设备图标,第四设备图标的图标样式不同于第一设备图标和第三设备图标。When the first audio device is located within the first range, the first device icon and the third device icon are set as a fourth device icon, and the icon style of the fourth device icon is different from that of the first device icon and the third device icon.
可选的,第一无线通讯组件是UWB组件,第二无线通讯组件是蓝牙组件;Optionally, the first wireless communication component is a UWB component, and the second wireless communication component is a Bluetooth component;
通过第二无线通讯组件与第一音频设备建立数据通讯连接,包括:Establishing a data communication connection with the first audio device through the second wireless communication component, including:
基于第一音频设备发送的目标UWB信号,确定第一音频设备对应的目标设备标识;Determine the target device identifier corresponding to the first audio device based on the target UWB signal sent by the first audio device;
基于目标设备标识,从接收到的至少一个蓝牙信号中确定出第一音频设备广播的目标蓝牙信号;Determining a target Bluetooth signal broadcast by the first audio device from at least one received Bluetooth signal based on the target device identifier;
根据目标蓝牙信号,确定第一音频设备对应的目标蓝牙地址;Determine the target Bluetooth address corresponding to the first audio device according to the target Bluetooth signal;
基于目标蓝牙地址与第一音频设备建立蓝牙连接。A Bluetooth connection is established with the first audio device based on the target Bluetooth address.
可选的,通过第二无线通讯组件与第一音频设备建立数据通讯连接,包括:Optionally, establishing a data communication connection with the first audio device through the second wireless communication component includes:
在目标设备标识位于目标白名单中的情况下,通过第二无线通讯组件与第一音频设备建立数据通讯连接,目标白名单中包含具备音频共享权限的至少一个音频设备的设备标识。When the target device ID is in the target white list, a data communication connection is established with the first audio device through the second wireless communication component, and the target white list includes the device ID of at least one audio device with audio sharing authority.
可选的,第一音频设备中播放有第二音频,且第二音频是第二终端通过第一音频设备播放的;Optionally, the second audio is played in the first audio device, and the second audio is played by the second terminal through the first audio device;
通过第二无线通讯组件向第一音频设备发送第一音频对应的目标音频数据,包括:Sending target audio data corresponding to the first audio to the first audio device through the second wireless communication component, including:
在与第一音频设备建立数据通讯连接的情况下,向第一音频设备发送音频共享请求,音频共享请求用于请求第一音频设备播放第一音频;In the case of establishing a data communication connection with the first audio device, an audio sharing request is sent to the first audio device, and the audio sharing request is used to request the first audio device to play the first audio;
在接收到第一音频设备反馈的确认共享请求的情况下,通过第二无线通讯组件向第一音频设备发送目标音频数据。In the case of receiving the confirmation sharing request fed back by the first audio device, the target audio data is sent to the first audio device through the second wireless communication component.
可选的,确认共享请求由对第一音频设备的预设手势操作触发,和/或,确认共享请求由第二终端通过第一音频设备发送。Optionally, confirming that the sharing request is triggered by a preset gesture operation on the first audio device, and/or confirming that the sharing request is sent by the second terminal through the first audio device.
可选的,音频设备中播放有第二音频;Optionally, there is a second audio played in the audio device;
通过第二无线通讯组件接收第一终端发送的目标音频数据,并根据目标音频数据播放第一音频之前,方法还包括:Before receiving the target audio data sent by the first terminal through the second wireless communication component, and playing the first audio according to the target audio data, the method also includes:
在与第一终端建立数据通讯连接的情况下,接收第一终端发送的音频共享请求,音频共享请求用于请求第一音频设备播放第一音频;In the case of establishing a data communication connection with the first terminal, receiving an audio sharing request sent by the first terminal, where the audio sharing request is used to request the first audio device to play the first audio;
通过第二无线通讯组件接收第一终端发送的目标音频数据,并根据目标音频数据播放第一音频,包括:Receiving the target audio data sent by the first terminal through the second wireless communication component, and playing the first audio according to the target audio data, including:
响应于接收到对音频共享请求的共享确认操作,向第一终端发送确认共享请求;In response to receiving a sharing confirmation operation on the audio sharing request, sending a confirmation sharing request to the first terminal;
通过第二无线通讯组件接收第一终端发送的目标音频数据;receiving the target audio data sent by the first terminal through the second wireless communication component;
停止播放第二音频,并根据目标音频数据播放第一音频。Stop playing the second audio, and play the first audio according to the target audio data.
可选的,响应于接收到对音频共享请求的共享确认操作,向第一终端发送确认共享请求,包括:Optionally, in response to receiving a sharing confirmation operation on the audio sharing request, sending a confirmation sharing request to the first terminal includes:
响应于接收到对音频设备的预设手势操作,向第一终端发送确认共享请求,第一终端用于在接收到确认共享请求后向音频设备发送目标音频数据。In response to receiving a preset gesture operation on the audio device, a confirmation sharing request is sent to the first terminal, and the first terminal is configured to send the target audio data to the audio device after receiving the confirmation sharing request.
可选的,第二音频是第二终端通过音频设备播放的;Optionally, the second audio is played by the second terminal through an audio device;
响应于接收到对音频共享请求的共享确认操作,向第一终端发送确认共享请求,包括:In response to receiving a sharing confirmation operation on the audio sharing request, sending a confirmation sharing request to the first terminal, including:
在接收到第一终端发送的音频共享请求的情况下,向第二终端发送音频共享请求,第二终端用于基于音频共享请求显示共享提示界面;When the audio sharing request sent by the first terminal is received, the audio sharing request is sent to the second terminal, and the second terminal is used to display a sharing prompt interface based on the audio sharing request;
在接收到第二终端发送的确认共享请求的情况下,向第一终端发送确认共享请求,确认共享请求是第二终端在接收到对共享提示界面的确认操作后向音频设备发送的。When receiving the confirmation sharing request sent by the second terminal, the confirmation sharing request is sent to the first terminal, and the confirmation sharing request is sent to the audio device by the second terminal after receiving the confirmation operation on the sharing prompt interface.
可选的,第一无线通讯组件是UWB组件,第二无线通讯组件是蓝牙组件;Optionally, the first wireless communication component is a UWB component, and the second wireless communication component is a Bluetooth component;
通过第一无线通讯组件向第一终端发送定位信号,包括:Sending a positioning signal to the first terminal through the first wireless communication component includes:
获取音频设备对应的设备标识和当前位置信息;Obtain the device identification and current location information corresponding to the audio device;
将设备标识和当前位置信息添加在UWB信号中;Add device identification and current location information to the UWB signal;
通过UWB组件向第一终端发送UWB信号,第一终端用于基于当前位置信息识别音频设备是否位于目标范围内,基于设备标识确定音频设备广播的目标蓝牙信号,并基于目标蓝牙信号中包含的蓝牙地址与音频设备建立蓝牙连接。Send a UWB signal to the first terminal through the UWB component, and the first terminal is used to identify whether the audio device is within the target range based on the current location information, determine the target Bluetooth signal broadcast by the audio device based on the device identification, and determine the target Bluetooth signal based on the target Bluetooth signal. address to establish a Bluetooth connection with the audio device.
请参考图3,其示出了本申请另一个示例性实施例提供的音频共享方法的流程图,本申请实施例以该方法应用于图1所示的实施环境为例进行说明,该方法包括:Please refer to FIG. 3 , which shows a flowchart of an audio sharing method provided by another exemplary embodiment of the present application. The embodiment of the present application takes the application of the method in the implementation environment shown in FIG. 1 as an example for illustration. The method includes :
步骤301,第一音频设备通过第一无线通讯组件向第一终端发送定位信号。Step 301, a first audio device sends a positioning signal to a first terminal through a first wireless communication component.
为了使得第一终端可以基于定位信号识别第一音频设备的位置信息和设备信息,在一种可能的实施方式中,需要将第一音频设备对应的设备标识和当前位置信息添加至定位信号中,使得可以将第一音频设备的当前位置信息和设备标识传输至第一终端。In order for the first terminal to identify the location information and device information of the first audio device based on the positioning signal, in a possible implementation manner, it is necessary to add the device identification and current location information corresponding to the first audio device to the positioning signal, This makes it possible to transmit the current location information and the device identifier of the first audio device to the first terminal.
在一个示例性的例子中,第一音频设备发送定位信号的过程可以包括以下步骤:In an exemplary example, the process for the first audio device to send the positioning signal may include the following steps:
一、获取音频设备对应的设备标识和当前位置信息。1. Obtain the device identification and current location information corresponding to the audio device.
示意性的,设备标识可以是音频设备对应的设备名称、设备机器码等唯一标识音频设备的信息;当前位置信息可以是音频设备所在的空间位置坐标,该当前位置信息由UWB定位基站对音频设备定位得到。测量音频设备的当前位置信息可以采用UWB定位原理中的飞行时间测距法(Time of Flight,ToF)、到达时间差测距法(Time Difference of Arrival,TDoA)等。Schematically, the device identifier can be information that uniquely identifies the audio device such as the device name corresponding to the audio device, the device machine code, etc.; the current location information can be the spatial position coordinates where the audio device is located, and the current location information is determined by the UWB positioning base station for the audio device get positioned. To measure the current location information of the audio device, you can use the time of flight ranging method (Time of Flight, ToF) and the time difference of arrival ranging method (Time Difference of Arrival, TDoA) in the UWB positioning principle.
二、将设备标识和当前位置信息添加在UWB信号中。2. Add the device identification and current location information to the UWB signal.
本实施例以第一无线通讯组件是UWB组件,第二无线通讯组件是蓝牙组件为例对终端向音频设备共享音频的过程进行示例性说明。In this embodiment, taking the first wireless communication component as a UWB component and the second wireless communication component as a Bluetooth component as an example, the process of sharing audio from a terminal to an audio device is exemplarily described.
若第一无线通讯组件是UWB组件,则UWB组件广播的定位信号即UWB信号,也就是说,当第一音频设备获取到设备标识和当前位置信息后,为了使得第一终端可以通过UWB信号识别到音频设备所在位置,以及根据设备标识识别需要与哪一个音频设备建立蓝牙连接,在一种可能的实施方式中,第一音频设备将设备标识和当前位置信息添加在UWB信号中。If the first wireless communication component is a UWB component, the positioning signal broadcast by the UWB component is a UWB signal, that is, after the first audio device obtains the device identification and current location information, in order to enable the first terminal to be identified by the UWB signal To the location of the audio device, and identify which audio device to establish a Bluetooth connection with according to the device identification, in a possible implementation manner, the first audio device adds the device identification and current location information to the UWB signal.
三、通过UWB组件向第一终端发送UWB信号。3. Send the UWB signal to the first terminal through the UWB component.
对应的,第一音频设备通过UWB组件向第一终端发送包含当前位置信息和设备标识的UWB信号,以便第一终端基于当前位置信息识别第一音频设备是否位于第一范围内,基于设备标识确定第一音频设备广播的目标蓝牙信号,并基于目标蓝牙信号中包含的蓝牙地址与第一音频设备建立蓝牙连接。Correspondingly, the first audio device sends a UWB signal including current location information and device identification to the first terminal through the UWB component, so that the first terminal can identify whether the first audio device is within the first range based on the current location information, and determine based on the device identification The first audio device broadcasts the target Bluetooth signal, and establishes a Bluetooth connection with the first audio device based on the Bluetooth address contained in the target Bluetooth signal.
步骤302,在运行有第一音频对应多媒体播放进程,且识别到位于第二范围内的第一音频设备的情况下,第一终端在当前用户界面中显示第一音频设备对应的第一设备图标,第二范围大于第一范围。Step 302, in the case that the multimedia playback process corresponding to the first audio is running and the first audio device within the second range is identified, the first terminal displays the first device icon corresponding to the first audio device in the current user interface , the second range is larger than the first range.
在一种可能的实施方式中,设置有第二范围,第二范围大于第一范围,当第一音频设备处于该第二范围内时,表示第一终端可以精确识别到第一音频设备,进而唤醒终端的音频共享进程;当第一终端未发现第二范围内有音频设备时,处于音频共享未唤醒状态,当第一终端发现第二范围内有音频设备时,处于音频共享唤醒状态。也就是说,在终端中运行有第一音频对应的多媒体播放进程时,若识别到第二范围内存在第一音频设备,即使第一音频设备并未位于第一范围内,可以先进入音频共享唤醒状态,为后续音频共享做准备,同时可以在当前用户界面中显示第一音频设备对应的第一设备图标,以提醒用户可以向第一音频设备进行音频共享。In a possible implementation manner, a second range is set, and the second range is greater than the first range. When the first audio device is within the second range, it means that the first terminal can accurately identify the first audio device, and then Wake up the audio sharing process of the terminal; when the first terminal does not find that there is an audio device within the second range, it is in the audio sharing non-awakening state; when the first terminal finds that there is an audio device within the second range, it is in the audio sharing awakening state. That is to say, when the multimedia playback process corresponding to the first audio is running in the terminal, if it is recognized that the first audio device exists in the second range, even if the first audio device is not located in the first range, you can first enter the audio sharing The wake-up state prepares for subsequent audio sharing, and at the same time, the first device icon corresponding to the first audio device can be displayed in the current user interface to remind the user that audio sharing can be performed with the first audio device.
其中,若第一音频在前台播放时,当前用户界面是第一音频对应的多媒体播放界面,则可以直接将第一设备图标显示在多媒体播放界面中;若第一音频在后台播放时,当前用户界面中并未显示多媒体播放界面,则可以在当前用户界面的任意位置处展示第一设备图标。Wherein, if the first audio is played in the foreground, the current user interface is the multimedia playback interface corresponding to the first audio, then the first device icon can be directly displayed in the multimedia playback interface; if the first audio is played in the background, the current user interface If the multimedia playback interface is not displayed in the interface, the first device icon may be displayed at any position of the current user interface.
示意性的,以多媒体播放进程为音乐播放进程为例,当音乐后台播放时,一般会在通知栏中显示有音乐播放任务,对应可以在通知栏中的音乐播放任务中显示该第一设备图标;可选的,也可以在当前用户界面中创建多媒体任务播放浮窗,以便在浮窗中显示识别到的第一设备图标。Schematically, taking the multimedia playback process as an example of a music playback process, when the music is playing in the background, a music playback task will generally be displayed in the notification bar, correspondingly, the first device icon can be displayed in the music playback task in the notification bar ; Optionally, a multimedia task playing floating window may also be created in the current user interface, so that the identified first device icon is displayed in the floating window.
示意性的,第二范围可以是以第一终端为圆形,预设距离为半径的球形区域,或预设距离为半径的扇形区域。且第二范围对应的预设距离大于第一范围对应的预设距离,比如,第二范围是距离第一终端50cm的区域,第一范围是距离第一终端20cm的区域。Schematically, the second range may be a spherical area with a preset distance as a radius, or a fan-shaped area with a preset distance as a radius, where the first terminal is a circle. And the preset distance corresponding to the second range is greater than the preset distance corresponding to the first range, for example, the second range is an area 50 cm away from the first terminal, and the first range is an area 20 cm away from the first terminal.
可选的,第一设备图标可以基于音频设备的种类进行设置,比如,若第一音频设备是无线蓝牙耳机,对应的第一设备图标可以是耳机图标。Optionally, the first device icon may be set based on the type of audio device. For example, if the first audio device is a wireless Bluetooth headset, the corresponding first device icon may be a headset icon.
如图4所示,其示出了本申请一个示例性实施例示出的音频共享过程的界面示意图。当第一终端410靠近音频设备420达到临界值X 1时(表示第一终端410识别音频设备420位于第二范围内),第一终端410对应的音频播放界面411中显示有音频设备420对应的第一设备图标412。 As shown in FIG. 4 , it shows a schematic interface of an audio sharing process shown in an exemplary embodiment of the present application. When the first terminal 410 is close to the audio device 420 and reaches the critical value X1 (indicating that the first terminal 410 recognizes that the audio device 420 is within the second range), the audio playback interface 411 corresponding to the first terminal 410 displays the corresponding audio device 420. First device icon 412 .
步骤303,在第一音频设备位于第一范围内的情况下,第一终端将第一设备图标设置为第二设备图标,第二设备图标的图标样式不同于第一设备图标的图标样式。Step 303, when the first audio device is within the first range, the first terminal sets the first device icon as the second device icon, and the icon style of the second device icon is different from the icon style of the first device icon.
当第一终端在识别到第一音频设备位于第二范围内时,通过在音频播放界面显示第一设备图标,以提醒用户识别到音频设备,若用户需要进一步实现音频共享,则可以握持第一终端继续靠近第一音频设备,直至第一音频设备位于第一范围内,此时为了进一步提醒用户满足音频共享条件,可以在识别到第一音频设备位于第一范围内时,更改第一设备图标的图标样式,即将第一设备图标设置为第二设备图标,以便通过图标样式的更改提醒用户正在进行音频共享。When the first terminal recognizes that the first audio device is within the second range, the first device icon is displayed on the audio playback interface to remind the user that the audio device has been recognized. If the user needs to further implement audio sharing, the user can hold the second A terminal continues to approach the first audio device until the first audio device is within the first range. At this time, in order to further remind the user to meet the audio sharing conditions, the first device may be changed when it is recognized that the first audio device is within the first range. The icon style of the icon, that is, setting the first device icon to the second device icon, so that the user can be reminded that the audio sharing is in progress through the change of the icon style.
示意性的,第一设备图标和第二设备图标对应图标样式的差异可以是图标颜色差异、图标大小差异等,本实施例对第一设备图标和第二设备图标之间的差异不构成限定。Schematically, the difference in icon style corresponding to the first device icon and the second device icon may be a difference in icon color, a difference in icon size, etc. This embodiment does not limit the difference between the first device icon and the second device icon.
如图4所示,当第一终端410靠近音频设备420达到临界值X 2时(表示第一终端410识别音频设备420位于第一范围内),第一音频设备420对应的第一设备图标由第一设备图标412变为第二设备图标413。 As shown in FIG. 4, when the first terminal 410 approaches the audio device 420 and reaches the critical value X2 (indicating that the first terminal 410 recognizes that the audio device 420 is within the first range), the first device icon corresponding to the first audio device 420 is represented by The first device icon 412 changes to a second device icon 413 .
可选的,若用户并不需要向第一音频设备共享第一音频,则可以在第一终端中显示有第一设备标识时,握持第一终端远离第一音频设备,以避免由于误触操作而出现不在用户期望下的音频共享操作。Optionally, if the user does not need to share the first audio with the first audio device, then when the first device logo is displayed on the first terminal, the user can hold the first terminal away from the first audio device to avoid operation and an audio sharing operation that is not expected by the user.
可选的,当用户握持第一终端远离第一音频设备后,且第一终端识别到第一音频设备位于第二范围之外,则停止在当前用户界面显示第一设备图标。Optionally, when the user holds the first terminal away from the first audio device, and the first terminal recognizes that the first audio device is outside the second range, it stops displaying the first device icon on the current user interface.
步骤304,第一终端通过第二无线通讯组件与第一音频设备建立数据通讯连接。Step 304, the first terminal establishes a data communication connection with the first audio device through the second wireless communication component.
当第一终端识别到第一音频设备位于第一范围内时,表示需要将正在播放的音频共享至第一音频设备,则第一终端立即通过第二无线通讯组件与第一音频设备建立数据通信连接,以便后续执行音频数据共享操作通过第二无线通讯组件向第一音频设备共享音频数据。When the first terminal recognizes that the first audio device is within the first range, it means that the audio being played needs to be shared with the first audio device, and the first terminal immediately establishes data communication with the first audio device through the second wireless communication component To connect, so as to perform an audio data sharing operation to share audio data with the first audio device through the second wireless communication component.
以第二无线通讯组件是蓝牙组件为例,在第一终端与第一音频设备建立蓝牙连接的过程中,第一终端需要获取到第一音频设备对应的蓝牙连接地址,使得可以根据蓝牙连接地址向第一音频设备发送蓝牙连接请求,一般场景下,第一音频设备在处于蓝牙开启状态后,会实时向周围广播蓝牙信号,该蓝牙信号中包含有第一音频设备对应的蓝牙连接地址;因此,第一终端可以根据第一音频设备广播的蓝牙信号获取到第一音频设备的蓝牙地址,而第一终端可能同时接收到多个蓝牙信号,就需要从多个蓝牙信号中确定出第一音频设备广播的蓝牙信号。在一个示例性的例子中,第一终端与第一音频设备建立蓝牙连接的过程可以包括以下步骤:Taking the second wireless communication component as an example of a Bluetooth component, in the process of establishing a Bluetooth connection between the first terminal and the first audio device, the first terminal needs to obtain the Bluetooth connection address corresponding to the first audio device, so that the Bluetooth connection address can be Send a Bluetooth connection request to the first audio device. In general scenarios, after the first audio device is in the Bluetooth-on state, it will broadcast a Bluetooth signal to the surroundings in real time. The Bluetooth signal contains the Bluetooth connection address corresponding to the first audio device; therefore , the first terminal can obtain the Bluetooth address of the first audio device according to the Bluetooth signal broadcast by the first audio device, and the first terminal may receive multiple Bluetooth signals at the same time, it is necessary to determine the first audio from multiple Bluetooth signals The Bluetooth signal broadcast by the device. In an illustrative example, the process of establishing a Bluetooth connection between the first terminal and the first audio device may include the following steps:
一、基于第一音频设备发送的目标UWB信号,确定第一音频设备对应的目标设备标识。1. Based on the target UWB signal sent by the first audio device, determine the target device identifier corresponding to the first audio device.
在第一终端与第一音频设备建立蓝牙连接的过程中,首先需要获取到第一音频设备对应的蓝牙地址,而第一音频设备的蓝牙地址包含在音频设备广播的蓝牙信号中,为了获取到第一音频设备对应的蓝牙地址,在一种可能的实施方式中,可以基于第一音频设备对应的目标设备标识,区分不同音频设备广播的蓝牙信号,从中确定出的第一音频设备广播的目标蓝牙信号,进而从目标蓝牙信号中获取第一音频设备对应的蓝牙地址。In the process of establishing a Bluetooth connection between the first terminal and the first audio device, it is first necessary to obtain the Bluetooth address corresponding to the first audio device, and the Bluetooth address of the first audio device is included in the Bluetooth signal broadcast by the audio device. The Bluetooth address corresponding to the first audio device, in a possible implementation manner, can distinguish the Bluetooth signals broadcast by different audio devices based on the target device identifier corresponding to the first audio device, and determine the target broadcast by the first audio device therefrom Bluetooth signal, and then obtain the Bluetooth address corresponding to the first audio device from the target Bluetooth signal.
由于第一音频设备在广播UWB信号时,即在UWB信号中添加有音频设备对应的设备标识,因此,当终端确定出需要与第一音频设备建立蓝牙连接时,可以首先获取到第一音频设备对应的目标UWB信号,从该目标UWB信号中确定出第一音频设备对应的目标设备标识,以便后续可以根据该目标设备标识识别第一音频设备广播的目标蓝牙信号。Since the first audio device broadcasts the UWB signal, that is, the device identifier corresponding to the audio device is added to the UWB signal, when the terminal determines that it needs to establish a Bluetooth connection with the first audio device, it can first obtain the first audio device For the corresponding target UWB signal, determine the target device identifier corresponding to the first audio device from the target UWB signal, so that the target Bluetooth signal broadcast by the first audio device can be subsequently identified according to the target device identifier.
二、基于目标设备标识,从接收到的至少一个蓝牙信号中确定出第一音频设备广播的目标蓝牙信号。2. Determine the target Bluetooth signal broadcast by the first audio device from at least one received Bluetooth signal based on the target device identifier.
当第一终端的蓝牙功能开启后,可以接收到周围各个蓝牙设备广播的蓝牙信号,为了从中确定出第一音频设备广播的目标蓝牙信号,以便与第一音频设备建立蓝牙连接,在一种可能的实施方式中,可以基于第一音频设备的目标设备标识,从接收到的至少一个蓝牙信号中确定出与该目标设备标识匹配的目标蓝牙信号,该目标蓝牙信号即第一音频设备广播的蓝牙信号。When the bluetooth function of the first terminal is turned on, it can receive bluetooth signals broadcast by various bluetooth devices around, in order to determine the target bluetooth signal broadcast by the first audio device, so as to establish a bluetooth connection with the first audio device, in a possibility In an embodiment, based on the target device identifier of the first audio device, a target Bluetooth signal that matches the target device identifier can be determined from at least one received Bluetooth signal, and the target Bluetooth signal is the Bluetooth signal broadcast by the first audio device. Signal.
三、根据目标蓝牙信号,确定第一音频设备对应的目标蓝牙地址。3. Determine the target Bluetooth address corresponding to the first audio device according to the target Bluetooth signal.
其中,目标蓝牙信号中包含有第一音频设备对应的目标蓝牙地址,当终端确定出第一音频设备对应的目标蓝牙信号后,即可以从目标蓝牙信号中获取到第一音频设备对应的目标蓝牙地址,进而基于该目标蓝牙地址向第一音频设备发送蓝牙连接请求,以请求与第一音频设备建立蓝牙连接。Wherein, the target Bluetooth signal contains the target Bluetooth address corresponding to the first audio device. After the terminal determines the target Bluetooth signal corresponding to the first audio device, it can obtain the target Bluetooth address corresponding to the first audio device from the target Bluetooth signal. address, and then send a Bluetooth connection request to the first audio device based on the target Bluetooth address, so as to request to establish a Bluetooth connection with the first audio device.
四、基于目标蓝牙地址与第一音频设备建立蓝牙连接。4. Establish a Bluetooth connection with the first audio device based on the target Bluetooth address.
当第一终端获取到第一音频设备对应的目标蓝牙地址后,可以基于该目标蓝牙地址向第一音频设备发送蓝牙连接请求,以便在第一音频设备同意该蓝牙连接请求后,与第一音频设备建立蓝牙连接;并在建立蓝牙连接后,通过蓝牙连接通道向目标音频设备发送目标音频数据,从而通过第一音频设备播放第一音频。After the first terminal acquires the target Bluetooth address corresponding to the first audio device, it can send a Bluetooth connection request to the first audio device based on the target Bluetooth address, so that after the first audio device agrees to the Bluetooth connection request, it can communicate with the first audio device. The device establishes a Bluetooth connection; and after the Bluetooth connection is established, the target audio data is sent to the target audio device through the Bluetooth connection channel, so that the first audio is played through the first audio device.
由于本实施例中的音频共享方法无需用户进行界面交互,为了避免误操作而导致终端信息泄露,在一种可能的实施方式中,当第一终端确定运行有第一音频对应的多媒体播放进程,且识别到第一音频设备满足音频共享的距离条件时,首先需要判断第一音频设备对应的目标设备标识是否位于目标白名单中,若目标设备标识位于目标白名单中,表示第一音频设备是具备音频共享权限的音频设备,可以与第一音频设备建立数据通讯连接,并进行后续音频共享操作;反之,若目标白名单中不包含该目标设备标识,表示第一音频设备不具备音频共享权限,停止进行后续音频共享操作,也就无需与第一音频设备建立数据通讯连接。Since the audio sharing method in this embodiment does not require the user to interact with the interface, in order to avoid terminal information leakage caused by misoperation, in a possible implementation manner, when the first terminal determines that there is a multimedia playback process corresponding to the first audio, And when it is recognized that the first audio device satisfies the distance condition for audio sharing, it is first necessary to determine whether the target device identifier corresponding to the first audio device is in the target whitelist. If the target device identifier is in the target whitelist, it means that the first audio device is An audio device with audio sharing permission can establish a data communication connection with the first audio device and perform subsequent audio sharing operations; on the contrary, if the target device identification is not included in the target whitelist, it means that the first audio device does not have audio sharing permission , the subsequent audio sharing operation is stopped, and there is no need to establish a data communication connection with the first audio device.
其中,目标白名单中设置有具备音频共享权限的至少一个音频设备的设备标识,具备音频共享权限的音频设备可以是与第一终端建立过数据通讯连接的设备,或与第一终端进行过音频分享的设备,或登录有相同用户账号的设备,本实施例对此不构成限定。Wherein, the device identification of at least one audio device with audio sharing permission is set in the target white list, and the audio device with audio sharing permission can be a device that has established a data communication connection with the first terminal, or has conducted audio with the first terminal. Shared devices, or devices logged in with the same user account, are not limited in this embodiment.
步骤305,在通过第二无线通讯组件接收到第一终端发送的数据通讯连接请求的情况下,第一音频设备与第一终端建立数据通讯连接。Step 305, in the case of receiving a data communication connection request sent by the first terminal through the second wireless communication component, the first audio device establishes a data communication connection with the first terminal.
示意性的,若第二无线通讯组件是蓝牙组件,第一终端在确定第一音频设备满足音频共享条件时(距离条件),可以通过第二无线通讯组件向第一音频设备发送蓝牙连接请求,对应的,第一音频设备可以通过蓝牙组件接收第一终端发送的蓝牙连接请求,若第一音频设备同意该蓝牙连接请求,则可以与第一终端建立蓝牙连接。Schematically, if the second wireless communication component is a Bluetooth component, when the first terminal determines that the first audio device meets the audio sharing condition (distance condition), it can send a Bluetooth connection request to the first audio device through the second wireless communication component, Correspondingly, the first audio device can receive the Bluetooth connection request sent by the first terminal through the Bluetooth component, and if the first audio device agrees to the Bluetooth connection request, it can establish a Bluetooth connection with the first terminal.
步骤306,第一终端通过第二无线通讯组件向第一音频设备发送第一音频对应的目标音频数据。Step 306, the first terminal sends target audio data corresponding to the first audio to the first audio device through the second wireless communication component.
当第一终端与第一音频设备建立数据通讯连接后,第一终端就可以通过第二无线通讯组件向第一音频设备发送目标音频数据,完成第一终端向第一音频设备共享音频的过程。After the first terminal establishes a data communication connection with the first audio device, the first terminal can send target audio data to the first audio device through the second wireless communication component, completing the process of the first terminal sharing audio with the first audio device.
可选的,由于第一终端与第一音频设备建立有数据通讯连接,通过该数据通讯连接不仅可以传输目标音频数据,还可以通过该数据通讯连接实现对第一音频设备的控制操作,比如,可以在第一终端的用户界面上显示第一音频设备的操作任务栏,或控制界面,该操作任务栏(或控制界面)中包含第一音频设备对应的至少一个操作控件,当用户点击操作控件中的目标操作控件时,可以向第一音频设备发送该目标操作控件对应的操作指令,使得第一音频设备执行相关操作。Optionally, since the first terminal establishes a data communication connection with the first audio device, not only the target audio data can be transmitted through the data communication connection, but also the control operation of the first audio device can be realized through the data communication connection, for example, An operation task bar or a control interface of the first audio device may be displayed on the user interface of the first terminal, and the operation task bar (or control interface) includes at least one operation control corresponding to the first audio device. When the user clicks on the operation control When a target in the control is operated, an operation instruction corresponding to the target operation control may be sent to the first audio device, so that the first audio device performs a related operation.
示意性的,若第一音频设备为无线蓝牙耳机,对应的,目标操作控件可以是声音响度操作控件,当用户点击该目标操作控件后,可以调节第一音频设备播放第一音频的声音响度;可选的,目标操作控件也可以是播放控件,通过该播放控制控制第一音频设备停止或继续播放第一音频。Schematically, if the first audio device is a wireless Bluetooth headset, correspondingly, the target operation control may be a sound loudness operation control, and when the user clicks on the target operation control, the sound loudness of the first audio device played by the first audio device may be adjusted; Optionally, the target operation control may also be a playback control, through which the first audio device is controlled to stop or continue playing the first audio.
如图4所示,当第一终端410与第一音频设备420传输目标音频数据后,可以在音频播放界面411中显示第一音频设备420对应的操作任务栏414,该操作任务栏414中包含有音量操作控件,用户可以通过对音量操作控件的触发操作,调节第一音频设备420的音频播放音量。As shown in Figure 4, after the first terminal 410 and the first audio device 420 transmit the target audio data, the operation task bar 414 corresponding to the first audio device 420 can be displayed in the audio playback interface 411, and the operation task bar 414 includes There is a volume operation control, and the user can adjust the audio playback volume of the first audio device 420 by triggering the volume operation control.
步骤307,第一音频设备通过第二无线通讯组件接收第一终端发送的目标音频数据,并根据目标音频数据播放第一音频。Step 307, the first audio device receives the target audio data sent by the first terminal through the second wireless communication component, and plays the first audio according to the target audio data.
步骤305至步骤307的实施方式可以参考上文实施例,本实施例在此不做赘述。For implementation manners of steps 305 to 307, reference may be made to the foregoing embodiments, and details are not described herein in this embodiment.
本实施例中,音频设备通过在UWB信号中携带设备标识和位置信息,使得第一终端可以基于位置信息识别音频设备是否位于第一范围和第二范围内,并基于该设备标识与音频设备建立蓝牙连接;此外,为了保证终端信息的安全性,通过在建立蓝牙连接之前,校验第一音频设备对应的目标设备标识是否位于目标白名单中,以避免向不安全的音频设备共享音频信息而导致终端信息的泄露,从而提高音频共享过程的安全性。In this embodiment, the audio device carries the device identification and location information in the UWB signal, so that the first terminal can identify whether the audio device is located within the first range and the second range based on the location information, and establish a connection with the audio device based on the device identification. Bluetooth connection; In addition, in order to ensure the security of terminal information, before establishing the Bluetooth connection, check whether the target device identification corresponding to the first audio device is in the target white list, so as to avoid sharing audio information with unsafe audio devices. This leads to the leakage of terminal information, thereby improving the security of the audio sharing process.
在一种可能的应用场景下,第一音频是第一终端通过第二音频设备播放的,也就是说,在第一终端向第一音频设备共享目标音频之前,第一终端已与第二音频设备建立有数据通讯连接,且第一音频是通过第二音频设备播放的。对应的,在第一终端靠近第一音频设备的过程中,可以在音频播放界面中显示第一设备图标(第一音频设备)与第三设备图标(第二音频设备)之间的图标重合动画。In a possible application scenario, the first audio is played by the first terminal through the second audio device, that is, before the first terminal shares the target audio with the first audio device, the first terminal has shared the target audio with the second audio device The device establishes a data communication connection, and the first audio is played through the second audio device. Correspondingly, when the first terminal is close to the first audio device, an icon overlap animation between the first device icon (first audio device) and the third device icon (second audio device) may be displayed on the audio playback interface .
在图3的基础上,如图5所示,步骤303可以被替换为步骤501和步骤502。On the basis of FIG. 3 , as shown in FIG. 5 , step 303 may be replaced by step 501 and step 502 .
步骤501,在第一音频设备位于第二范围和第一范围之间的情况下,第一终端在当前用户界面中显示图标重合动画。Step 501 , in the case that the first audio device is located between the second range and the first range, the first terminal displays icon overlap animation in the current user interface.
其中,图标重合动画中第一设备图标和第三设备图标之间的相对移动趋势,由第一音频设备和第一终端之间的距离变化趋势确定。也就是说,当第一音频设备向第一终端靠近时,第一设备图标向第三设备图标相对靠近,当第一音频设备远离第一终端时,第一设备图标与第三设备图标相对远离。Wherein, the relative movement trend between the first device icon and the third device icon in the icon overlapping animation is determined by the distance change trend between the first audio device and the first terminal. That is to say, when the first audio device is close to the first terminal, the icon of the first device is relatively close to the icon of the third device; when the first audio device is far away from the first terminal, the icon of the first device is relatively far away from the icon of the third device .
为了使得用户可以动态感知第一终端与第一音频设备之间的距离变化趋势,在一种可能的实施方式中,当第一音频设备位于第二范围和第一范围之间时,第一终端在当前用户界面中显示图标重合动画,通过第一设备图标和第三设备图标之间的相对移动趋势,提醒用户当前第一终端和第一音频设备之间的距离变化情况,以便用户可以基于该图标重合动画调整第一音频设备和第一终端之间的距离。In order to enable the user to dynamically perceive the trend of the distance between the first terminal and the first audio device, in a possible implementation manner, when the first audio device is located between the second range and the first range, the first terminal Display icon overlap animation in the current user interface, and remind the user of the current distance change between the first terminal and the first audio device through the relative movement trend between the first device icon and the third device icon, so that the user can based on this The icon overlap animation adjusts the distance between the first audio device and the first terminal.
可选的,若第一音频在前台播放时,当前用户界面是第一音频对应的多媒体播放界面,则可以直接在多媒体播放界面中显示图标重合动画;若第一音频在后台播放时,当前用户界面中并未显示多媒体播放界面,则可以在当前用户界面的任意位置处展示图标重合动画,示意性的,以多媒体播放进程为音乐播放进程为例,当音乐后台播放时,一般会在通知栏中显示有音乐播放任务,对应可以在通知栏中的音乐播放任务中显示该图标重合动画;可选的,也可以在当前用户界面中创建多媒体任务播放浮窗,以便在浮窗中显示该图标重合动画。Optionally, if the first audio is played in the foreground, the current user interface is the multimedia playback interface corresponding to the first audio, then the icon overlap animation can be directly displayed in the multimedia playback interface; if the first audio is played in the background, the current user interface If the multimedia playback interface is not displayed in the interface, icon overlap animation can be displayed at any position of the current user interface. Schematically, take the multimedia playback process as the music playback process as an example. There is a music playback task displayed in , and correspondingly, the overlapping animation of the icon can be displayed in the music playback task in the notification bar; optionally, a floating window for multimedia task playback can also be created in the current user interface, so that the icon can be displayed in the floating window Coincident animation.
如图6所示,其示出了本申请一个示例性实施例示出的图标重合动画的示意图。当第一终端610靠近音频设备620达到临界值X 1时(表示第一终端610识别音频设备620位于第二范围内),第一终端610对应的音频播放界面611中显示有音频设备620对应的第一设备图标612,以及第二音频设备对应的第三设备图标613。当第一终端610向第一音频设备620靠近的过程中(X 1~X 2),第一设备图标612向第三设备图标613靠近,直至当第一终端610靠近第一音频设备620达到临界值X 2,第一设备图标612和第三设备图标613重合,显示第四设备图标614。 As shown in FIG. 6 , it shows a schematic diagram of icon overlapping animation shown in an exemplary embodiment of the present application. When the first terminal 610 is close to the audio device 620 and reaches the critical value X1 (indicating that the first terminal 610 recognizes that the audio device 620 is within the second range), the audio playback interface 611 corresponding to the first terminal 610 displays the corresponding audio device 620. The first device icon 612, and the third device icon 613 corresponding to the second audio device. When the first terminal 610 approaches the first audio device 620 (X 1 ~ X 2 ), the first device icon 612 approaches the third device icon 613 until the first terminal 610 approaches the first audio device 620 and reaches a critical For a value of X 2 , the first device icon 612 and the third device icon 613 overlap, and a fourth device icon 614 is displayed.
步骤502,在第一音频设备位于第一范围内的情况下,第一终端将第一设备图标和第三设备图标设置为第四设备图标,第四设备图标的图标样式不同于第一设备图标和第三设备图标。Step 502, when the first audio device is within the first range, the first terminal sets the first device icon and the third device icon as a fourth device icon, and the icon style of the fourth device icon is different from that of the first device icon and third device icons.
为了提醒用户第一音频设备已位于第一范围内,可以进行音频共享,在一种可能的实施方式中,当第一设备位于第一范围内时,取消显示第一设备图标和第三设备图标,显示第四设备图标,该第四设备图标的图标样式不同于第一设备图标和第三设备图标。In order to remind the user that the first audio device is within the first range, audio sharing can be performed. In a possible implementation manner, when the first device is within the first range, cancel the display of the first device icon and the third device icon , to display the fourth device icon, the icon style of the fourth device icon is different from that of the first device icon and the third device icon.
示意性的,第四设备图标和第二设备图标或第三设备图标对应图标样式的差异可以是图标颜色差异、图标大小差异等。Schematically, the difference in icon style between the fourth device icon and the second device icon or the third device icon may be a difference in icon color, a difference in icon size, and the like.
本实施例中,通过将第一音频设备和第一终端之间的距离变化趋势,以图标重合动画的形式显示在音频播放界面中,更直观地体现出第一音频设备和第一终端之间的距离变化趋势,使得用户可以基于该重合动画所体现的距离变化趋势移动第一终端。In this embodiment, by displaying the change trend of the distance between the first audio device and the first terminal in the audio playback interface in the form of icon overlap animation, it can more intuitively reflect the distance between the first audio device and the first terminal. The distance change trend of the distance, so that the user can move the first terminal based on the distance change trend reflected in the overlapping animation.
在一种可能的应用场景下,第一音频设备在接收第一终端的音频共享之前,可能正在播放第二终端中的第二音频,为了使得持有第二终端的用户也可以及时知晓第一音频设备需要执行音频共享任务,在一种可能的实施方式中,当第一终端与第一音频设备建立数据通讯连接后,可以首先通过第二无线通讯组件向第一音频设备发送音频共享请求,以便持有第二终端和第一音频设备的用户可以手动确认是否需要接收第一终端共享的音频。In a possible application scenario, the first audio device may be playing the second audio in the second terminal before receiving the audio sharing from the first terminal, so that the user holding the second terminal can also know the first audio in time. The audio device needs to perform an audio sharing task. In a possible implementation manner, after the first terminal establishes a data communication connection with the first audio device, it may first send an audio sharing request to the first audio device through the second wireless communication component, So that the user holding the second terminal and the first audio device can manually confirm whether to receive the audio shared by the first terminal.
请参考图7,其示出了本申请另一个示例性实施例提供的音频共享方法的流程图,本申请实施例以该方法应用于图1所示的实施环境为例进行说明,该方法包括:Please refer to FIG. 7 , which shows a flow chart of an audio sharing method provided by another exemplary embodiment of the present application. The embodiment of the present application takes the application of the method in the implementation environment shown in FIG. 1 as an example for illustration. The method includes :
步骤701,第一音频设备通过第一无线通讯组件向第一终端发送定位信号。Step 701, the first audio device sends a positioning signal to the first terminal through the first wireless communication component.
步骤702,在运行有第一音频对应多媒体播放进程的情况下,第一终端通过第一无线通讯组件识别位于第一范围内的第一音频设备。Step 702: In the case that the multimedia playing process corresponding to the first audio is running, the first terminal identifies the first audio device within the first range through the first wireless communication component.
步骤703,第一终端通过第二无线通讯组件与第一音频设备建立数据通讯连接。Step 703, the first terminal establishes a data communication connection with the first audio device through the second wireless communication component.
步骤701至步骤703的实施方式可以参考上文实施例,本实施例在此不做赘述。For implementation manners of steps 701 to 703, reference may be made to the foregoing embodiments, and details are not described herein in this embodiment.
步骤704,在与第一音频设备建立数据通讯连接的情况下,第一终端向第一音频设备发送音频共享请求。Step 704: In the case of establishing a data communication connection with the first audio device, the first terminal sends an audio sharing request to the first audio device.
在第一音频设备中播放有第二音频,且第二音频是第二终端通过第一音频设备播放的情况下,为了避免直接停止播放第二音频对第二终端音频播放进程的影响,在一种可能的实施方式中,当第一终端与第一音频设备建立数据通讯连接后,可以先向第一音频设备发送音频共享请求,以请求第一音频设备播放第一音频,以便第一音频设备在接收到该音频共享请求后,可以将该音频共享请求发送至第二终端,以及时提醒持有第二终端的用户,第一终端存在需要向第一音频设备共享音频的需求。In the case that the second audio is played in the first audio device, and the second audio is played by the second terminal through the first audio device, in order to avoid directly stopping the second audio from affecting the audio playback process of the second terminal, in a In a possible implementation manner, after the first terminal establishes a data communication connection with the first audio device, it may first send an audio sharing request to the first audio device to request the first audio device to play the first audio, so that the first audio device After receiving the audio sharing request, the audio sharing request can be sent to the second terminal, so as to promptly remind the user holding the second terminal that the first terminal needs to share audio with the first audio device.
步骤705,在与第一终端建立数据通讯连接的情况下,第一音频设备接收第一终端发送的音频共享请求。Step 705, in the case of establishing a data communication connection with the first terminal, the first audio device receives an audio sharing request sent by the first terminal.
对应的,当第一音频设备与第一终端建立数据通讯连接之后,可以通过第一终端与第一音频设备之间的数据通讯连接通道,接收第一终端发送的音频共享请求。Correspondingly, after the first audio device establishes a data communication connection with the first terminal, the audio sharing request sent by the first terminal may be received through the data communication connection channel between the first terminal and the first audio device.
步骤706,响应于接收到对音频共享请求的共享确认操作,第一音频设备向第一终端发送确认共享请求。Step 706: In response to receiving a sharing confirmation operation on the audio sharing request, the first audio device sends a confirmation sharing request to the first terminal.
其中,共享确认操作可以是对第一音频设备的预设手势操作,该预设手势操作可以是对目标音频设备的手势双击操作,或手势单击操作,或对目标实体按键的按压操作,或对目标虚拟按键的按压操作,本实施例对预设手势操作不构成限定。Wherein, the sharing confirmation operation may be a preset gesture operation on the first audio device, and the preset gesture operation may be a gesture double-click operation on the target audio device, or a gesture single-click operation, or a press operation on the target physical button, or For the pressing operation of the target virtual key, this embodiment does not limit the preset gesture operation.
在一种可能的实施方式中,当持有第二终端或第一音频设备的用户允许第一终端向第一音频设备共享音频时,可以通过对第一音频设备进行预设手势操作,对应的,当第一音频设备接收到该预设手势操作时,可以向第一终端反馈共享确认请求,以便第一终端在接收到该共享确认请求后,向第一音频设备传输目标音频数据。In a possible implementation manner, when the user holding the second terminal or the first audio device allows the first terminal to share audio with the first audio device, by performing a preset gesture operation on the first audio device, the corresponding , when the first audio device receives the preset gesture operation, it may feed back a sharing confirmation request to the first terminal, so that the first terminal transmits the target audio data to the first audio device after receiving the sharing confirmation request.
可选的,在其他可能的实施方式中,用户也可以通过在第二终端对应的终端界面中进行手动确认操作,以便第二终端在接收到该共享确认操作时,通过第一音频设备向第一终端反馈确认共享请求。Optionally, in other possible implementation manners, the user may also perform a manual confirmation operation on the terminal interface corresponding to the second terminal, so that when the second terminal receives the sharing confirmation operation, it sends a message to the second terminal through the first audio device. A terminal feeds back and confirms the sharing request.
在一个示例性的例子中,步骤706还可以包括以下步骤:In an exemplary example, step 706 may also include the following steps:
一、在接收到第一终端发送的音频共享请求的情况下,向第二终端发送音频共享请求,第二终端用于基于音频共享请求显示共享提示界面。1. When receiving the audio sharing request sent by the first terminal, send the audio sharing request to the second terminal, and the second terminal is used to display a sharing prompt interface based on the audio sharing request.
本实施例中,该音频共享请求中可以包含第一终端对应的终端设备标识,以便提醒用户该音频共享请求的来源方。示意性的,该终端设备标识可以是终端名称,或终端机器码,或其他唯一标识第一终端的标识。In this embodiment, the audio sharing request may include a terminal device identifier corresponding to the first terminal, so as to remind the user of the source of the audio sharing request. Schematically, the terminal device identifier may be a terminal name, or a terminal machine code, or another identifier that uniquely identifies the first terminal.
为了进一步提高音频共享时机的准确性,避免音频共享操作对其他用户正常使用音频设备的影响,在一种可能的实施方式中,在第二终端控制第一音频设备播放第二音频的情况下,第一音频设备接收到第一终端发送的音频共享请求,首先将音频共享请求发送至第二终端,以便第二终端在接收到该音频共享请求时,可以显示共享提示界面,通过该共享提示界面提示用户存在其他终端需要通过第一音频设备播放音频,以及由用户手动确认是否允许第一终端向第一音频设备共享第一音频。In order to further improve the accuracy of the timing of audio sharing and avoid the impact of the audio sharing operation on the normal use of audio devices by other users, in a possible implementation manner, when the second terminal controls the first audio device to play the second audio, The first audio device receives the audio sharing request sent by the first terminal, and first sends the audio sharing request to the second terminal, so that when the second terminal receives the audio sharing request, it can display a sharing prompt interface, and through the sharing prompt interface The user is prompted that there are other terminals that need to play audio through the first audio device, and the user manually confirms whether to allow the first terminal to share the first audio with the first audio device.
示意性的,该共享提示界面中可以显示第一终端对应的设备名称。Schematically, the device name corresponding to the first terminal may be displayed on the sharing prompt interface.
如图8所示,当第二终端810接收到第一终端通过第一音频设备发送的音频共享请求后,显示共享提 示界面811,该共享提示界面811中显示有第一终端对应的设备名称812、接受共享控件814和拒绝共享控件813。As shown in Figure 8, when the second terminal 810 receives the audio sharing request sent by the first terminal through the first audio device, it displays a sharing prompt interface 811, and the sharing prompt interface 811 displays a device name 812 corresponding to the first terminal , accept share control 814 and reject share control 813 .
二、在接收到第二终端发送的确认共享请求的情况下,向第一终端发送确认共享请求,确认共享请求是第二终端在接收到对共享提示界面的确认操作后向音频设备发送的。2. When receiving the confirmation sharing request sent by the second terminal, send the confirmation sharing request to the first terminal, and the confirmation sharing request is sent to the audio device by the second terminal after receiving the confirmation operation on the sharing prompt interface.
其中,确认共享请求是第二终端在接收到对共享提示界面的确认操作后向第一音频设备发送的。Wherein, the confirmation sharing request is sent by the second terminal to the first audio device after receiving the confirmation operation on the sharing prompt interface.
在一种可能的实施方式中,若持有第二终端的用户同意第一音频设备接受第一终端共享的音频,可以点击共享提示界面中的接受共享控件,对应的,第二终端接收到对该接受共享控件的触发操作,向第一音频设备发送确认共享请求;对应的,当第一音频设备在接收到该确认共享请求后,可以将确认共享请求发送至第一终端,以便第一终端在接收到该确认共享请求后,向第一音频设备发送目标音频数据;反之,若持有第二终端的用户不同意第一音频设备播放第一音频,可以点击共享提示界面中的拒绝共享控件,对应第二终端可以接收到对音频共享请求的拒绝操作,通过第一音频设备向第一终端反馈拒绝共享请求,对应第一终端停止向第一音频设备共享音频数据。In a possible implementation manner, if the user holding the second terminal agrees that the first audio device accepts the audio shared by the first terminal, he can click the accept sharing control in the sharing prompt interface, and correspondingly, the second terminal receives the audio shared by the first terminal. The trigger operation of accepting the sharing control sends a confirmation sharing request to the first audio device; correspondingly, after the first audio device receives the confirmation sharing request, it can send the confirmation sharing request to the first terminal, so that the first terminal After receiving the confirmation sharing request, send the target audio data to the first audio device; on the contrary, if the user holding the second terminal does not agree to the first audio device playing the first audio, he can click the reject sharing control in the sharing prompt interface , corresponding to the fact that the second terminal may receive a rejection operation on the audio sharing request, and feed back the rejection of the sharing request to the first terminal through the first audio device, corresponding to the fact that the first terminal stops sharing audio data with the first audio device.
如图8所示,若用户同意第一音频设备接受第一终端共享的音频,可以点击共享提示界面811中的接收共享控件814,对应第二终端通过第一音频设备向第一终端反馈确认共享请求;若用户拒绝第一音频设备接受第一终端共享的音频,可以点击共享提示界面811中的拒绝共享控件813,对应第二终端通过第一音频设备向第一终端反馈拒绝共享请求。As shown in Figure 8, if the user agrees that the first audio device accepts the audio shared by the first terminal, the user can click the receive sharing control 814 in the sharing prompt interface 811, and the corresponding second terminal will send feedback to the first terminal through the first audio device to confirm sharing. Request: If the user refuses the first audio device to accept the audio shared by the first terminal, he can click the reject sharing control 813 in the sharing prompt interface 811, and the corresponding second terminal will feed back the rejection of the sharing request to the first terminal through the first audio device.
步骤707,在接收到第一音频设备反馈的确认共享请求的情况下,第一终端通过第二无线通讯组件向第一音频设备发送目标音频数据。Step 707: In the case of receiving the confirmation sharing request fed back by the first audio device, the first terminal sends the target audio data to the first audio device through the second wireless communication component.
其中,确认共享请求可以由对第一音频设备的预设手势操作触发,即通过第一音频设备进行确认共享操作。也可以由第二终端通过第一音频设备发送,即通过在第二终端中进行确认共享操作,并通过第一音频设备向第一终端反馈确认共享请求。Wherein, the confirmation sharing request may be triggered by a preset gesture operation on the first audio device, that is, the confirmation sharing operation is performed through the first audio device. It may also be sent by the second terminal through the first audio device, that is, by confirming the sharing operation in the second terminal, and feeding back the confirmation sharing request to the first terminal through the first audio device.
可选的,当确认共享请求由对第一音频设备的预设手势操作触发后,第一音频设备在向第一终端反馈确认共享请求的同时,也可以向第二终端反馈确认共享请求,对应的第二终端可以切换显示等待共享界面,以等待第一终端通过第一音频设备共享第一音频。Optionally, when the confirmation sharing request is triggered by a preset gesture operation on the first audio device, the first audio device may also feed back the confirmation sharing request to the second terminal while feeding back the confirmation sharing request to the first terminal, corresponding The second terminal can switch to display the waiting sharing interface, so as to wait for the first terminal to share the first audio through the first audio device.
在一种可能的实施方式中,当第一终端接收到第一音频设备反馈的确认共享请求后,表示允许第一终端将第一音频共享至第一音频设备中播放,进而第一终端可以通过第二无线通讯组件向第一音频设备发送目标音频数据。In a possible implementation manner, when the first terminal receives the confirmation sharing request fed back by the first audio device, it indicates that the first terminal is allowed to share the first audio to the first audio device for playback, and then the first terminal can pass The second wireless communication component sends target audio data to the first audio device.
可选的,若第一终端未接收到第一音频设备反馈的确认共享请求,或接收到第一音频设备反馈的拒绝共享请求,表示不允许第一终端将第一音频共享至第一音频设备中播放,终端即停止向第一音频设备发送目标音频数据。Optionally, if the first terminal does not receive a confirmation sharing request fed back by the first audio device, or receives a rejection sharing request fed back by the first audio device, it means that the first terminal is not allowed to share the first audio to the first audio device During playback, the terminal stops sending the target audio data to the first audio device.
可选的,第一终端也可以通过第一音频设备向第二终端发送第一音频对应的音频信息,由第二终端在接收到音频信息后,当第二终端接收到音频信息后,控制第一音频设备播放第一音频。Optionally, the first terminal may also send audio information corresponding to the first audio to the second terminal through the first audio device, and the second terminal controls the second terminal after receiving the audio information. An audio device plays the first audio.
可选的,第一终端通过第一音频设备向第二终端发送的音频信息还可以包括当前播放进度,则第二终端在接收到音频信息后,可以根据当前播放进度,控制第一音频设备播放第一音频,从而实现第一音频在第一音频设备与第一终端中的同步播放。Optionally, the audio information sent by the first terminal to the second terminal through the first audio device may also include the current playback progress, then the second terminal may control the first audio device to play the audio according to the current playback progress after receiving the audio information. The first audio, so as to realize the synchronous playback of the first audio on the first audio device and the first terminal.
步骤708,第一音频设备通过第二无线通讯组件接收第一终端发送的目标音频数据。Step 708, the first audio device receives the target audio data sent by the first terminal through the second wireless communication component.
对应第一音频设备通过第二无线通讯组件接收第一终端发送的目标音频数据。The corresponding first audio device receives the target audio data sent by the first terminal through the second wireless communication component.
步骤709,第一音频设备停止播放第二音频,并根据目标音频数据播放第一音频。Step 709, the first audio device stops playing the second audio, and plays the first audio according to the target audio data.
当第一音频设备接收到第一终端共享的目标音频数据时,由于该目标音频数据是第一终端在接收到确认共享请求之后发送的(即经过第二终端持有者的同意后共享的),对应的,第一音频设备可以立即停止播放第二音频,并根据目标音频数据播放第一音频。When the first audio device receives the target audio data shared by the first terminal, since the target audio data is sent by the first terminal after receiving the confirmation sharing request (that is, shared after the consent of the second terminal holder) , correspondingly, the first audio device may immediately stop playing the second audio, and play the first audio according to the target audio data.
本实施例中,通过对第一音频设备的预设手势操作,或在第二终端所显示的共享提示界面中进行共享确认操作,使得在第一音频设备中播放有第二音频的场景下,可以在第一音频设备或第二终端的持有者的确认下再进行音频共享操作,使得音频共享过程是用户预期下的行为操作,从而保证后续音频共享过程的成功率。In this embodiment, by performing a preset gesture operation on the first audio device, or performing a sharing confirmation operation on the sharing prompt interface displayed on the second terminal, in the scene where the second audio is played on the first audio device, The audio sharing operation can be performed under the confirmation of the holder of the first audio device or the second terminal, so that the audio sharing process is a behavior operation expected by the user, thereby ensuring the success rate of the subsequent audio sharing process.
请参考图9,其示出了本申请一个示例性实施例示出的完整音频共享方法的流程图,本实施例中,以目标音频设备是无线耳机为例进行示例性说明,该方法包括:Please refer to FIG. 9, which shows a flow chart of a complete audio sharing method shown in an exemplary embodiment of the present application. In this embodiment, the target audio device is a wireless headset as an example for illustration. The method includes:
步骤901,第一终端识别到X 1范围内出现无线耳机。 Step 901, the first terminal recognizes that a wireless headset appears within the range of X1 .
其中,第一终端通过UWB组件识别X 1范围内是否存在无线耳机。 Wherein, the first terminal identifies whether there is a wireless headset within the range of X1 through the UWB component.
步骤902,第一终端是否正在播放第一音频。Step 902, whether the first terminal is playing the first audio.
若终端正在播放第一音频,则进入步骤903,继续判断无线耳机与第一终端之间的距离,否则,进入步骤907,结束音频共享进程。If the terminal is playing the first audio, go to step 903 and continue to judge the distance between the wireless earphone and the first terminal; otherwise, go to step 907 and end the audio sharing process.
步骤903,在X 1~X 2区间内,第一终端展示新耳机图标,并随距离变化展示耳机重合动效。 Step 903 , within the interval X 1 -X 2 , the first terminal displays a new earphone icon, and displays the overlapping motion effect of the earphones as the distance changes.
耳机重合动效用于展示第一终端与无线耳机之间的距离变化情况。The earphone overlap motion effect is used to show the change of the distance between the first terminal and the wireless earphone.
步骤904,第一终端后台实时计算距离数据。Step 904, the background of the first terminal calculates the distance data in real time.
当无线耳机与第一终端之间的距离位于X 1~X 2之间时,第一终端后台会实时计算无线耳机与第一终端之间的距离。 When the distance between the wireless earphone and the first terminal is between X 1 and X 2 , the background of the first terminal will calculate the distance between the wireless earphone and the first terminal in real time.
步骤905,X2时,第一终端立即向新耳机传输音频,并在音频任务中展示新耳机操控能力。Step 905, at X2, the first terminal immediately transmits audio to the new earphone, and demonstrates the ability to control the new earphone in the audio task.
当第一终端识别到与新耳机之间的距离小于等于X2时,第一终端与新耳机建立蓝牙连接,并在蓝牙连接建立成功后,向其传输音频数据。When the first terminal recognizes that the distance to the new headset is less than or equal to X2, the first terminal establishes a Bluetooth connection with the new headset, and transmits audio data to the new headset after the Bluetooth connection is successfully established.
步骤906,第一终端后台与新耳机配对并建立蓝牙连接,传输音频数据和操控指令。Step 906, the background of the first terminal is paired with the new earphone and establishes a bluetooth connection, and transmits audio data and control instructions.
当第一终端确定出无线耳机与第一终端之间的距离为X2时,第一终端后台执行与新耳机的快速配对和建立蓝牙通道,以实现蓝牙连接与蓝牙传输工作。When the first terminal determines that the distance between the wireless headset and the first terminal is X2, the first terminal performs fast pairing with the new headset and establishes a Bluetooth channel in the background to realize Bluetooth connection and Bluetooth transmission.
步骤907,结束。Step 907, end.
需要说明的是,上述各个实施例中,以第一音频设备为执行主体的步骤可以单独实现成为音频设备侧的音频共享方法,以第一终端为执行主体的步骤可以单独实现成为第一终端侧的音频共享方法,本实施例在此不再赘述。It should be noted that, in each of the above-mentioned embodiments, the steps with the first audio device as the execution subject can be independently implemented as an audio sharing method on the audio device side, and the steps with the first terminal as the execution subject can be independently implemented as the first terminal side The audio sharing method of this embodiment will not be repeated here.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
请参考图10,其示出了本申请一个实施例提供的音频共享装置的结构框图。该装置具有实现上述方法实施例中由第一终端侧执行的功能。如图10所示,该装置可以包括:Please refer to FIG. 10 , which shows a structural block diagram of an audio sharing device provided by an embodiment of the present application. The apparatus is capable of realizing the functions performed by the first terminal side in the foregoing method embodiments. As shown in Figure 10, the device may include:
识别模块1001,用于在运行有第一音频对应多媒体播放进程的情况下,通过所述第一无线通讯组件识别位于第一范围内的第一音频设备;An identification module 1001, configured to identify the first audio device located within the first range through the first wireless communication component when the multimedia playing process corresponding to the first audio is running;
连接建立模块1002,用于通过第二无线通讯组件与所述第一音频设备建立数据通讯连接;A connection establishing module 1002, configured to establish a data communication connection with the first audio device through a second wireless communication component;
发送模块1003,用于通过所述第二无线通讯组件向所述第一音频设备发送所述第一音频对应的目标音频数据,所述第一音频设备用于根据所述目标音频数据执行音频播放操作。A sending module 1003, configured to send target audio data corresponding to the first audio to the first audio device through the second wireless communication component, and the first audio device is used to perform audio playback according to the target audio data operate.
可选的,所述识别模块1001,还用于:Optionally, the identification module 1001 is also used for:
在识别到位于第二范围内的所述第一音频设备的情况下,在当前用户界面中显示所述第一音频设备对应的第一设备图标,所述第二范围大于所述第一范围;When the first audio device located within a second range is identified, displaying a first device icon corresponding to the first audio device in the current user interface, the second range being larger than the first range;
在所述第一音频设备位于所述第一范围内的情况下,将所述第一设备图标设置为第二设备图标,所述第二设备图标的图标样式不同于所述第一设备图标的图标样式。When the first audio device is located within the first range, the first device icon is set as a second device icon, and the icon style of the second device icon is different from that of the first device icon. icon style.
可选的,所述第一终端连接有第二音频设备,所述当前用户界面中显示有所述第二音频设备对应的第三设备图标;Optionally, a second audio device is connected to the first terminal, and a third device icon corresponding to the second audio device is displayed in the current user interface;
所述装置还包括:The device also includes:
显示模块,用于在所述第一音频设备位于所述第二范围和所述第一范围之间的情况下,在所述当前用户界面中显示图标重合动画,所述图标重合动画中第一设备图标和所述第三设备图标之间的相对移动趋势由所述第一音频设备和所述第一终端之间的距离变化趋势确定;A display module, configured to display an icon overlap animation in the current user interface when the first audio device is located between the second range and the first range, and the icon overlap animation in the first The relative movement trend between the device icon and the third device icon is determined by the distance change trend between the first audio device and the first terminal;
所述显示模块,还用于在所述第一音频设备位于所述第一范围内的情况下,将所述第一设备图标和所述第三设备图标设置为第四设备图标,所述第四设备图标的图标样式不同于所述第一设备图标和所述第三设备图标。The display module is further configured to set the first device icon and the third device icon as a fourth device icon when the first audio device is within the first range, and the first The icon style of the four-device icon is different from that of the first device icon and the third device icon.
可选的,所述第一无线通讯组件是UWB组件,所述第二无线通讯组件是蓝牙组件;Optionally, the first wireless communication component is a UWB component, and the second wireless communication component is a Bluetooth component;
所述连接建立模块1002,还用于:The connection establishment module 1002 is further configured to:
基于所述第一音频设备发送的目标UWB信号,确定所述第一音频设备对应的目标设备标识;Determine a target device identifier corresponding to the first audio device based on the target UWB signal sent by the first audio device;
基于所述目标设备标识,从接收到的至少一个蓝牙信号中确定出所述第一音频设备广播的目标蓝牙信号;determining a target Bluetooth signal broadcast by the first audio device from at least one received Bluetooth signal based on the target device identifier;
根据所述目标蓝牙信号,确定所述第一音频设备对应的目标蓝牙地址;determining a target Bluetooth address corresponding to the first audio device according to the target Bluetooth signal;
基于所述目标蓝牙地址与所述第一音频设备建立蓝牙连接。Establishing a Bluetooth connection with the first audio device based on the target Bluetooth address.
可选的,所述连接建立模块1002,还用于:Optionally, the connection establishment module 1002 is further configured to:
在所述目标设备标识位于目标白名单中的情况下,通过所述第二无线通讯组件与所述第一音频设备建立数据通讯连接,所述目标白名单中包含具备音频共享权限的至少一个音频设备的设备标识。When the target device identifier is in the target white list, establish a data communication connection with the first audio device through the second wireless communication component, and the target white list includes at least one audio device with audio sharing authority The device ID of the device.
可选的,所述第一音频设备中播放有第二音频,且第二音频是第二终端通过所述第一音频设备播放的;Optionally, a second audio is played in the first audio device, and the second audio is played by the second terminal through the first audio device;
所述发送模块1003,还用于:The sending module 1003 is also used for:
在与所述第一音频设备建立数据通讯连接的情况下,向所述第一音频设备发送音频共享请求,所述音频共享请求用于请求所述第一音频设备播放所述第一音频;In the case of establishing a data communication connection with the first audio device, sending an audio sharing request to the first audio device, where the audio sharing request is used to request the first audio device to play the first audio;
在接收到所述第一音频设备反馈的确认共享请求的情况下,通过所述第二无线通讯组件向所述第一音频设备发送所述目标音频数据。In a case of receiving a confirmation sharing request fed back by the first audio device, sending the target audio data to the first audio device through the second wireless communication component.
可选的,所述确认共享请求由对所述第一音频设备的预设手势操作触发,和/或,所述确认共享请求由所述第二终端通过所述第一音频设备发送的。Optionally, the confirmation sharing request is triggered by a preset gesture operation on the first audio device, and/or, the confirmation sharing request is sent by the second terminal through the first audio device.
综上所述,本申请实施例中,音频设备通过第一无线通讯组件广播定位信号,使得终端在运行有音频对应的多媒体播放进程时,可以通过设置的第一无线通讯组件接收该定位信号,并根据该定位信号实时定位音频设备的位置,从而在精确识别出位于目标范围内的音频设备时,自动与该音频设备建立数据通讯连接,并向音频设备共享目标音频。通过第一无线通讯组件实现终端与音频设备之间距离的实时判断与计算,进而基于精确距离执行数据通讯连接的建立以及音频共享任务,实现终端靠近音频设备即可向音频设备共享音频的目的,整个音频共享过程中无需用户手动在界面上进行分享操作,提高了音频分享的效率。To sum up, in the embodiment of the present application, the audio device broadcasts the positioning signal through the first wireless communication component, so that the terminal can receive the positioning signal through the set first wireless communication component when running a multimedia playback process corresponding to the audio. And according to the positioning signal, the location of the audio device is located in real time, so that when the audio device within the target range is accurately identified, a data communication connection is automatically established with the audio device, and the target audio is shared with the audio device. The real-time judgment and calculation of the distance between the terminal and the audio device is realized through the first wireless communication component, and then the establishment of the data communication connection and the audio sharing task are performed based on the precise distance, so that the terminal can share the audio with the audio device when the terminal is close to the audio device. During the entire audio sharing process, the user does not need to manually perform sharing operations on the interface, which improves the efficiency of audio sharing.
请参考图11,其示出了本申请另一个实施例提供的音频共享装置的结构框图。该装置具有实现上述方法实施例中由音频设备侧执行的功能。如图11所示,该装置可以包括:Please refer to FIG. 11 , which shows a structural block diagram of an audio sharing device provided by another embodiment of the present application. The apparatus is capable of implementing the functions performed by the audio device side in the above method embodiments. As shown in Figure 11, the device may include:
发送模块1101,用于通过所述第一无线通讯组件向第一终端发送定位信号,所述第一终端用于基于所述定位信号识别所述音频设备是否位于目标范围内,所述第一终端中运行有第一音频对应的多媒体播放进程;The sending module 1101 is configured to send a positioning signal to a first terminal through the first wireless communication component, and the first terminal is used to identify whether the audio device is located within a target range based on the positioning signal, and the first terminal running a multimedia playback process corresponding to the first audio;
连接建立模块1102,用于在通过所述第二无线通讯组件接收到所述第一终端发送的数据通讯连接请求的情况下,与所述第一终端建立数据通讯连接,所述数据通讯连接请求是所述第一终端在识别到所述音频设备位于所述目标范围内时向所述音频设备发送的;A connection establishment module 1102, configured to establish a data communication connection with the first terminal when receiving a data communication connection request sent by the first terminal through the second wireless communication component, and the data communication connection request is sent to the audio device when the first terminal recognizes that the audio device is within the target range;
接收模块1103,用于通过第二无线通讯组件接收所述第一终端发送的目标音频数据,并根据所述目标音频数据播放所述第一音频。The receiving module 1103 is configured to receive the target audio data sent by the first terminal through the second wireless communication component, and play the first audio according to the target audio data.
可选的,所述音频设备中播放有第二音频;Optionally, a second audio is played in the audio device;
所述装置还包括:The device also includes:
所述接收模块,还用于在与所述第一终端建立数据通讯连接的情况下,接收所述第一终端发送的音频共享请求,所述音频共享请求用于请求所述第一音频设备播放所述第一音频;The receiving module is further configured to receive an audio sharing request sent by the first terminal when a data communication connection is established with the first terminal, and the audio sharing request is used to request the first audio device to play said first audio;
所述接收模块1103,还用于:The receiving module 1103 is further configured to:
响应于接收到对所述音频共享请求的共享确认操作,向所述第一终端发送确认共享请求;In response to receiving a sharing confirmation operation on the audio sharing request, sending a confirmation sharing request to the first terminal;
通过第二无线通讯组件接收所述第一终端发送的所述目标音频数据;receiving the target audio data sent by the first terminal through a second wireless communication component;
停止播放所述第二音频,并根据所述目标音频数据播放所述第一音频。Stop playing the second audio, and play the first audio according to the target audio data.
可选的,所述接收模块1103,还用于:Optionally, the receiving module 1103 is further configured to:
响应于接收到对所述音频设备的预设手势操作,向所述第一终端发送确认共享请求,所述第一终端用于在接收到所述确认共享请求后向所述音频设备发送所述目标音频数据。In response to receiving a preset gesture operation on the audio device, sending a confirmation sharing request to the first terminal, where the first terminal is configured to send the audio device the audio device after receiving the confirmation sharing request. Target audio data.
可选的,所述第二音频是第二终端通过所述音频设备播放的;Optionally, the second audio is played by the second terminal through the audio device;
所述接收模块1103,还用于:The receiving module 1103 is further configured to:
在接收到所述第一终端发送的所述音频共享请求的情况下,向所述第二终端发送所述音频共享请求,所述第二终端用于基于所述音频共享请求显示共享提示界面;When receiving the audio sharing request sent by the first terminal, sending the audio sharing request to the second terminal, where the second terminal is configured to display a sharing prompt interface based on the audio sharing request;
在接收到所述第二终端发送的所述确认共享请求的情况下,向所述第一终端发送所述确认共享请求,所述确认共享请求是所述第二终端在接收到对所述共享提示界面的确认操作后向所述音频设备发送的。When the confirmation sharing request sent by the second terminal is received, the confirmation sharing request is sent to the first terminal, and the confirmation sharing request is received by the second terminal after receiving the confirmation sharing request. It is sent to the audio device after the confirmation operation on the prompt interface.
可选的,所述第一无线通讯组件是UWB组件,所述第二无线通讯组件是蓝牙组件;Optionally, the first wireless communication component is a UWB component, and the second wireless communication component is a Bluetooth component;
所述发送模块1101,还用于:The sending module 1101 is further configured to:
获取所述音频设备对应的设备标识和当前位置信息;Obtain the device identification and current location information corresponding to the audio device;
将所述设备标识和所述当前位置信息添加在UWB信号中;adding the device identification and the current location information to the UWB signal;
通过所述UWB组件向所述第一终端发送所述UWB信号,所述第一终端用于基于所述当前位置信息识别所述音频设备是否位于所述目标范围内,基于所述设备标识确定所述音频设备广播的目标蓝牙信号,并基于所述目标蓝牙信号中包含的蓝牙地址与所述音频设备建立蓝牙连接。Send the UWB signal to the first terminal through the UWB component, the first terminal is used to identify whether the audio device is located within the target range based on the current location information, and determine the audio device based on the device identifier. The target Bluetooth signal broadcast by the audio device, and establish a Bluetooth connection with the audio device based on the Bluetooth address contained in the target Bluetooth signal.
综上所述,本申请实施例中,音频设备通过第一无线通讯组件广播定位信号,使得终端在运行有音频对应的多媒体播放进程时,可以通过设置的第一无线通讯组件接收该定位信号,并根据该定位信号实时定位音频设备的位置,从而在精确识别出位于目标范围内的音频设备时,自动与该音频设备建立数据通讯连接,并向音频设备共享目标音频。通过第一无线通讯组件实现终端与音频设备之间距离的实时判断与计算,进而基于精确距离执行数据通讯连接的建立以及音频共享任务实现终端靠近音频设备即可向音频设备共享音频的目的,整个音频共享过程中无需用户手动在界面上进行分享操作,提高了音频分享的效率。To sum up, in the embodiment of the present application, the audio device broadcasts the positioning signal through the first wireless communication component, so that the terminal can receive the positioning signal through the set first wireless communication component when running a multimedia playback process corresponding to the audio. And according to the positioning signal, the location of the audio device is located in real time, so that when the audio device within the target range is accurately identified, a data communication connection is automatically established with the audio device, and the target audio is shared with the audio device. The real-time judgment and calculation of the distance between the terminal and the audio device is realized through the first wireless communication component, and then the establishment of the data communication connection and the audio sharing task are performed based on the precise distance to realize the purpose of sharing the audio with the audio device when the terminal is close to the audio device. During the audio sharing process, the user does not need to manually perform the sharing operation on the interface, which improves the efficiency of audio sharing.
需要说明的是:上述实施例提供的装置在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的 功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the device provided by the above-mentioned embodiment realizes its function, the division of the above-mentioned functional modules is used as an example for illustration. The internal structure of the system is divided into different functional modules to complete all or part of the functions described above. In addition, the device and the method embodiment provided by the above embodiment belong to the same idea, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.
在一种可能的应用场景中,第一无线通讯组件可以封装为终端的内部天线组件,该第一无线通讯组件通过内部电路板与终端设备电性相连,则对应的终端设备可以通过该第一无线通讯组件接收音频设备广播的定位信号。In a possible application scenario, the first wireless communication component can be packaged as an internal antenna component of the terminal, and the first wireless communication component is electrically connected to the terminal device through an internal circuit board, and the corresponding terminal device can pass through the first The wireless communication component receives the positioning signal broadcast by the audio device.
请参考图12,其示出了本申请一个示例性实施例提供的终端设备1200的结构方框图。本申请中的终端设备1200可以包括一个或多个如下部件:处理器1210、存储器1220、第一无线通讯组件1230和第二无线通讯组件1240,其中,处理器1210分别与存储器1220、第一无线通讯组件1230以及第二无线通讯组件1240电性相连。Please refer to FIG. 12 , which shows a structural block diagram of a terminal device 1200 provided by an exemplary embodiment of the present application. The terminal device 1200 in this application may include one or more of the following components: a processor 1210, a memory 1220, a first wireless communication component 1230, and a second wireless communication component 1240, wherein the processor 1210 communicates with the memory 1220, the first wireless The communication component 1230 and the second wireless communication component 1240 are electrically connected.
处理器1210可以包括一个或者多个处理核心。处理器1210利用各种接口和线路连接整个终端设备1200内的各个部分,通过运行或执行存储在存储器1220内的指令、程序、代码集或指令集,以及调用存储在存储器1220内的数据,执行终端设备1200的各种功能和处理数据。可选地,处理器1210可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1210可集成CPU、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责触摸显示屏所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1210中,单独通过一块通信芯片进行实现。Processor 1210 may include one or more processing cores. The processor 1210 uses various interfaces and lines to connect various parts of the entire terminal device 1200, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 1220, and calls data stored in the memory 1220 to execute Various functions and processing data of the terminal device 1200. Optionally, the processor 1210 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware. The processor 1210 may integrate one or a combination of a CPU, a Graphics Processing Unit (GPU), a modem, and the like. Among them, the CPU mainly processes the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing the content that needs to be displayed on the touch screen; the modem is used for processing wireless communication. It can be understood that the above modem may also not be integrated into the processor 1210, but implemented by a communication chip alone.
存储器1220可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器1220包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1220可用于存储指令、程序、代码、代码集或指令集。存储器1220可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等,该操作系统可以是安卓(Android)系统(包括基于Android系统深度开发的系统)、苹果公司开发的IOS系统(包括基于IOS系统深度开发的系统)或其它系统。存储数据区还可以存储终端设备1200在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 1220 may include a random access memory (Random Access Memory, RAM), and may also include a read-only memory (Read-Only Memory, ROM). Optionally, the memory 1220 includes a non-transitory computer-readable storage medium. The memory 1220 may be used to store instructions, programs, codes, sets of codes or sets of instructions. The memory 1220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , the instruction etc. that are used to realize above-mentioned each method embodiment, this operating system can be Andrews (Android) system (comprising the system based on the depth development of Android system), the IOS system developed by Apple Inc. (comprising the system based on the depth development of IOS system) or other systems. The storage data area can also store data created by the terminal device 1200 during use (such as phonebook, audio and video data, chat record data) and the like.
本实施例中,终端1200还包括有第一无线通讯组件1230和第二无线通讯组件1240;其中,第一无线通讯组件1230用于精准定位,示意性的,第一无线通讯组件1230可以是UWB组件、蓝牙组件,或其他可以实现室内精准定位的无线通讯组件;第二无线通讯组件1240用于与其他终端设备或音频设备建立数据通讯连接,示意性的,第二无线通讯组件1240可以是蓝牙组件、NFC组件、WiFi组件、红外组件等。In this embodiment, the terminal 1200 also includes a first wireless communication component 1230 and a second wireless communication component 1240; wherein, the first wireless communication component 1230 is used for precise positioning. Schematically, the first wireless communication component 1230 may be a UWB components, bluetooth components, or other wireless communication components that can achieve precise indoor positioning; the second wireless communication component 1240 is used to establish a data communication connection with other terminal equipment or audio equipment. Schematically, the second wireless communication component 1240 can be a bluetooth components, NFC components, WiFi components, infrared components, etc.
本申请实施例中,存储器1220中存储有至少一条指令,该至少一条指令用于被处理器1210执行以执行如上述实施例中所示的音频共享方法。In this embodiment of the present application, at least one instruction is stored in the memory 1220, and the at least one instruction is used to be executed by the processor 1210 to execute the audio sharing method as shown in the above-mentioned embodiments.
可选的,终端设备1200还可以包括触摸显示屏,其可以为电容式触摸显示屏,该电容式触摸显示屏用于接收用户使用手指、触摸笔等任何适合的物体在其上或附近的触摸操作,以及显示各个应用程序的用户界面。触摸显示屏通常设置在终端设备1200的前面板。触摸显示屏可被设计成为全面屏、曲面屏或异型屏。触摸显示屏还可被设计成为全面屏与曲面屏的结合,异型屏与曲面屏的结合,本申请实施例对此不加以限定。Optionally, the terminal device 1200 may also include a touch display screen, which may be a capacitive touch display screen, and the capacitive touch screen screen is used to receive a user's touch on or near it using any suitable object such as a finger or a touch pen. operation, and display the user interface of each application. The touch screen is usually set on the front panel of the terminal device 1200 . Touch screens can be designed as full screens, curved screens or special-shaped screens. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in this embodiment of the present application.
可选的,当UWB组件独立于终端设置时,终端1200可以不包含UWB组件。Optionally, when the UWB component is configured independently of the terminal, the terminal 1200 may not include the UWB component.
除此之外,本领域技术人员可以理解,上述附图所示出的终端设备1200的结构并不构成对终端设备1200的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端设备1200中还包括射频电路、拍摄组件、传感器(不包括温度传感器)、音频电路、无线保真(Wireless Fidelity,WiFi)组件、电源、蓝牙组件等部件,在此不再赘述。In addition, those skilled in the art can understand that the structure of the terminal device 1200 shown in the above drawings does not constitute a limitation on the terminal device 1200, and the terminal may include more or less components than those shown in the figure, or combine certain components, or a different arrangement of components. For example, the terminal device 1200 also includes components such as a radio frequency circuit, a photographing component, a sensor (excluding a temperature sensor), an audio circuit, a wireless fidelity (Wireless Fidelity, WiFi) component, a power supply, and a Bluetooth component, which will not be repeated here.
请参考图13,其示出了本申请一个示例性实施例提供的音频设备1300的结构方框图。本申请中的音频设备1300可以包括一个或多个如下部件:存储器1301、处理器1302、第一无线通讯组件1303以及第二无线通讯组件1304。Please refer to FIG. 13 , which shows a structural block diagram of an audio device 1300 provided by an exemplary embodiment of the present application. The audio device 1300 in this application may include one or more of the following components: a memory 1301 , a processor 1302 , a first wireless communication component 1303 and a second wireless communication component 1304 .
存储器1301可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。可选地,该存储器1301包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1301可用于存储指令、程序、代码、代码集或指令集。存储器1301可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现至少一个功能的指令(比如播放功能)、用于实现上述各个方法实施例的指令等。The memory 1301 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory). Optionally, the memory 1301 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium). The memory 1301 may be used to store instructions, programs, codes, sets of codes or sets of instructions. The memory 1301 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing at least one function (such as a playback function), instructions for implementing the above-mentioned various method embodiments, and the like.
处理器1302利用各种接口和线路连接整个音频设备1300内的各个部分,通过运行或执行存储在存储器1301内的指令、程序、代码集或指令集,以及调用存储在存储器1301内的数据,执行音频设备1300 的各种功能和处理数据。可选的,处理器1302可以采用DSP、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1302可集成调制解调器。其中,调制解调器用于处理无线通信。The processor 1302 uses various interfaces and lines to connect various parts of the entire audio device 1300, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 1301, and calls data stored in the memory 1301 to execute Various functions of the audio device 1300 and process data. Optionally, the processor 1302 may be implemented in at least one hardware form among DSP, Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). Processor 1302 may integrate a modem. Among them, the modem is used to handle wireless communication.
可选的,音频设备1300还可以包括有第一无线通讯组件1303和第二无线通讯组件1304,其中,第一无线通讯组件1303用于精准定位,示意性的,第一无线通讯组件1303可以是UWB组件、蓝牙组件,或其他可以实现精准定位的无线通讯组件;第二无线通讯组件1304用于与其他终端设备建立数据通讯连接,示意性的,第二无线通讯组件1304可以是蓝牙组件、NFC组件、WiFi组件、红外组件等。Optionally, the audio device 1300 may also include a first wireless communication component 1303 and a second wireless communication component 1304, wherein the first wireless communication component 1303 is used for precise positioning. Schematically, the first wireless communication component 1303 may be UWB components, Bluetooth components, or other wireless communication components that can achieve precise positioning; the second wireless communication component 1304 is used to establish a data communication connection with other terminal devices. Schematically, the second wireless communication component 1304 can be a Bluetooth component, NFC components, WiFi components, infrared components, etc.
本实施例中,音频设备1300中还包括有扬声器,通过该扬声器播放目标音频。In this embodiment, the audio device 1300 further includes a speaker, and the target audio is played through the speaker.
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有至少一条指令,所述至少一条指令由处理器加载并执行以实现如上各个实施例所述的音频共享方法。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the audio sharing method described in each of the above embodiments .
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。音频设备或终端设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得音频设备或终端设备执行上述方面的各种可选实现方式中提供的音频共享方法。According to an aspect of the present application there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the audio device or the terminal device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the audio device or the terminal device executes the audio sharing method provided in various optional implementation manners of the above aspects.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读存储介质中或者作为计算机可读存储介质上的一个或多个指令或代码进行传输。计算机可读存储介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in the foregoing one or more examples, the functions described in the embodiments of the present application may be implemented by hardware, software, firmware or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable storage medium. Computer-readable storage media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within range.

Claims (23)

  1. 一种音频共享方法,所述方法应用于第一终端,所述第一终端设置有第一无线通讯组件和第二无线通讯组件,所述方法包括:An audio sharing method, the method is applied to a first terminal, and the first terminal is provided with a first wireless communication component and a second wireless communication component, the method comprising:
    在运行有第一音频对应多媒体播放进程的情况下,通过所述第一无线通讯组件识别位于第一范围内的第一音频设备;In the case of running a multimedia playback process corresponding to the first audio, identify the first audio device located within the first range through the first wireless communication component;
    通过所述第二无线通讯组件与所述第一音频设备建立数据通讯连接;establishing a data communication connection with the first audio device through the second wireless communication component;
    通过所述第二无线通讯组件向所述第一音频设备发送所述第一音频对应的目标音频数据,所述第一音频设备用于根据所述目标音频数据执行音频播放操作。The target audio data corresponding to the first audio is sent to the first audio device through the second wireless communication component, and the first audio device is configured to perform an audio playback operation according to the target audio data.
  2. 根据权利要求1所述的方法,其中,所述通过所述第一无线通讯组件识别位于第一范围内的第一音频设备,包括:The method according to claim 1, wherein said identifying a first audio device located within a first range through said first wireless communication component comprises:
    在识别到位于第二范围内的所述第一音频设备的情况下,在当前用户界面中显示所述第一音频设备对应的第一设备图标,所述第二范围大于所述第一范围;When the first audio device located within a second range is identified, displaying a first device icon corresponding to the first audio device in the current user interface, the second range being larger than the first range;
    在所述第一音频设备位于所述第一范围内的情况下,将所述第一设备图标设置为第二设备图标,所述第二设备图标的图标样式不同于所述第一设备图标的图标样式。When the first audio device is located within the first range, the first device icon is set as a second device icon, and the icon style of the second device icon is different from that of the first device icon. icon style.
  3. 根据权利要求2所述的方法,其中,所述第一终端连接有第二音频设备,所述当前用户界面中显示有所述第二音频设备对应的第三设备图标;The method according to claim 2, wherein a second audio device is connected to the first terminal, and a third device icon corresponding to the second audio device is displayed in the current user interface;
    所述在识别到位于第二范围内的所述第一音频设备的情况下,在当前用户界面中显示所述第一音频设备对应的第一设备图标之后,所述方法还包括:In the case of identifying the first audio device within the second range, after displaying the first device icon corresponding to the first audio device in the current user interface, the method further includes:
    在所述第一音频设备位于所述第二范围和所述第一范围之间的情况下,在所述当前用户界面中显示图标重合动画,所述图标重合动画中第一设备图标和所述第三设备图标之间的相对移动趋势由所述第一音频设备和所述第一终端之间的距离变化趋势确定;When the first audio device is located between the second range and the first range, an icon overlapping animation is displayed in the current user interface, and in the icon overlapping animation, the first device icon and the The relative movement trend between the third device icons is determined by the distance change trend between the first audio device and the first terminal;
    在所述第一音频设备位于所述第一范围内的情况下,将所述第一设备图标和所述第三设备图标设置为第四设备图标,所述第四设备图标的图标样式不同于所述第一设备图标和所述第三设备图标。When the first audio device is located within the first range, the first device icon and the third device icon are set as a fourth device icon, and the icon style of the fourth device icon is different from The first device icon and the third device icon.
  4. 根据权利要求1至3任一所述的方法,其中,所述第一无线通讯组件是UWB组件,所述第二无线通讯组件是蓝牙组件;The method according to any one of claims 1 to 3, wherein the first wireless communication component is a UWB component, and the second wireless communication component is a Bluetooth component;
    所述通过所述第二无线通讯组件与所述第一音频设备建立数据通讯连接,包括:The establishment of a data communication connection with the first audio device through the second wireless communication component includes:
    基于所述第一音频设备发送的目标UWB信号,确定所述第一音频设备对应的目标设备标识;Determine a target device identifier corresponding to the first audio device based on the target UWB signal sent by the first audio device;
    基于所述目标设备标识,从接收到的至少一个蓝牙信号中确定出所述第一音频设备广播的目标蓝牙信号;determining a target Bluetooth signal broadcast by the first audio device from at least one received Bluetooth signal based on the target device identifier;
    根据所述目标蓝牙信号,确定所述第一音频设备对应的目标蓝牙地址;determining a target Bluetooth address corresponding to the first audio device according to the target Bluetooth signal;
    基于所述目标蓝牙地址与所述第一音频设备建立蓝牙连接。Establishing a Bluetooth connection with the first audio device based on the target Bluetooth address.
  5. 根据权利要求4所述的方法,其中,所述通过所述第二无线通讯组件与所述第一音频设备建立数据通讯连接,包括:The method according to claim 4, wherein said establishing a data communication connection with said first audio device through said second wireless communication component comprises:
    在所述目标设备标识位于目标白名单中的情况下,通过所述第二无线通讯组件与所述第一音频设备建立数据通讯连接,所述目标白名单中包含具备音频共享权限的至少一个音频设备的设备标识。When the target device identifier is in the target white list, establish a data communication connection with the first audio device through the second wireless communication component, and the target white list includes at least one audio device with audio sharing authority The device ID of the device.
  6. 根据权利要求1至3任一所述的方法,其中,所述第一音频设备中播放有第二音频,且第二音频是第二终端通过所述第一音频设备播放的;The method according to any one of claims 1 to 3, wherein a second audio is played in the first audio device, and the second audio is played by the second terminal through the first audio device;
    所述通过所述第二无线通讯组件向所述第一音频设备发送所述第一音频对应的目标音频数据,包括:The sending the target audio data corresponding to the first audio to the first audio device through the second wireless communication component includes:
    在与所述第一音频设备建立数据通讯连接的情况下,向所述第一音频设备发送音频共享请求,所述音频共享请求用于请求所述第一音频设备播放所述第一音频;In the case of establishing a data communication connection with the first audio device, sending an audio sharing request to the first audio device, where the audio sharing request is used to request the first audio device to play the first audio;
    在接收到所述第一音频设备反馈的确认共享请求的情况下,通过所述第二无线通讯组件向所述第一音频设备发送所述目标音频数据。In a case of receiving a confirmation sharing request fed back by the first audio device, sending the target audio data to the first audio device through the second wireless communication component.
  7. 根据权利要求6所述的方法,其中,所述确认共享请求由对所述第一音频设备的预设手势操作触发,和/或,所述确认共享请求由所述第二终端通过所述第一音频设备发送。The method according to claim 6, wherein the confirmation sharing request is triggered by a preset gesture operation on the first audio device, and/or the confirmation sharing request is triggered by the second terminal through the second audio device. An audio device sends.
  8. 一种音频共享方法,所述方法应用于音频设备,所述音频设备设置有第一无线通讯组件和第二无线通讯组件,所述方法包括:An audio sharing method, the method is applied to an audio device, the audio device is provided with a first wireless communication component and a second wireless communication component, and the method includes:
    通过所述第一无线通讯组件向第一终端发送定位信号,所述第一终端用于基于所述定位信号识别所述音频设备是否位于目标范围内,所述第一终端中运行有第一音频对应的多媒体播放进程;Send a positioning signal to the first terminal through the first wireless communication component, the first terminal is used to identify whether the audio device is within the target range based on the positioning signal, and the first terminal runs a first audio The corresponding multimedia playback process;
    在通过所述第二无线通讯组件接收到所述第一终端发送的数据通讯连接请求的情况下,与所述第一终端建立数据通讯连接,所述数据通讯连接请求是所述第一终端在识别到所述音频设备位于所述目标范围内 时向所述音频设备发送的;When the second wireless communication component receives a data communication connection request sent by the first terminal, establish a data communication connection with the first terminal, and the data communication connection request is issued by the first terminal sent to the audio device when it is identified that the audio device is within the target range;
    通过所述第二无线通讯组件接收所述第一终端发送的目标音频数据,并根据所述目标音频数据播放所述第一音频。receiving the target audio data sent by the first terminal through the second wireless communication component, and playing the first audio according to the target audio data.
  9. 根据权利要求8所述的方法,其中,所述音频设备中播放有第二音频;The method according to claim 8, wherein a second audio is played in the audio device;
    所述通过所述第二无线通讯组件接收所述第一终端发送的目标音频数据,并根据所述目标音频数据播放所述第一音频之前,所述方法还包括:Before receiving the target audio data sent by the first terminal through the second wireless communication component, and playing the first audio according to the target audio data, the method further includes:
    在与所述第一终端建立数据通讯连接的情况下,接收所述第一终端发送的音频共享请求,所述音频共享请求用于请求所述第一音频设备播放所述第一音频;When establishing a data communication connection with the first terminal, receiving an audio sharing request sent by the first terminal, where the audio sharing request is used to request the first audio device to play the first audio;
    所述通过所述第二无线通讯组件接收所述第一终端发送的目标音频数据,并根据所述目标音频数据播放所述第一音频,包括:The receiving the target audio data sent by the first terminal through the second wireless communication component, and playing the first audio according to the target audio data includes:
    响应于接收到对所述音频共享请求的共享确认操作,向所述第一终端发送确认共享请求;In response to receiving a sharing confirmation operation on the audio sharing request, sending a confirmation sharing request to the first terminal;
    通过所述第二无线通讯组件接收所述第一终端发送的所述目标音频数据;receiving the target audio data sent by the first terminal through the second wireless communication component;
    停止播放所述第二音频,并根据所述目标音频数据播放所述第一音频。Stop playing the second audio, and play the first audio according to the target audio data.
  10. 根据权利要求9所述的方法,其中,所述响应于接收到对所述音频共享请求的共享确认操作,向所述第一终端发送确认共享请求,包括:The method according to claim 9, wherein, in response to receiving a sharing confirmation operation on the audio sharing request, sending a confirmation sharing request to the first terminal comprises:
    响应于接收到对所述音频设备的预设手势操作,向所述第一终端发送确认共享请求,所述第一终端用于在接收到所述确认共享请求后向所述音频设备发送所述目标音频数据。In response to receiving a preset gesture operation on the audio device, sending a confirmation sharing request to the first terminal, where the first terminal is configured to send the audio device the audio device after receiving the confirmation sharing request. Target audio data.
  11. 根据权利要求9所述的方法,其中,所述第二音频是第二终端通过所述音频设备播放的;The method according to claim 9, wherein the second audio is played by the second terminal through the audio device;
    所述响应于接收到对所述音频共享请求的共享确认操作,向所述第一终端发送确认共享请求,包括:The sending a confirmation sharing request to the first terminal in response to receiving a sharing confirmation operation on the audio sharing request includes:
    在接收到所述第一终端发送的所述音频共享请求的情况下,向所述第二终端发送所述音频共享请求,所述第二终端用于基于所述音频共享请求显示共享提示界面;When receiving the audio sharing request sent by the first terminal, sending the audio sharing request to the second terminal, where the second terminal is configured to display a sharing prompt interface based on the audio sharing request;
    在接收到所述第二终端发送的所述确认共享请求的情况下,向所述第一终端发送所述确认共享请求,所述确认共享请求是所述第二终端在接收到对所述共享提示界面的确认操作后向所述音频设备发送的。When the confirmation sharing request sent by the second terminal is received, the confirmation sharing request is sent to the first terminal, and the confirmation sharing request is received by the second terminal after receiving the confirmation sharing request. It is sent to the audio device after the confirmation operation on the prompt interface.
  12. 根据权利要求8或11任一所述的方法,其中,所述第一无线通讯组件是UWB组件,所述第二无线通讯组件是蓝牙组件;The method according to any one of claims 8 or 11, wherein the first wireless communication component is a UWB component, and the second wireless communication component is a Bluetooth component;
    所述通过所述第一无线通讯组件向第一终端发送定位信号,包括:The sending a positioning signal to the first terminal through the first wireless communication component includes:
    获取所述音频设备对应的设备标识和当前位置信息;Obtain the device identification and current location information corresponding to the audio device;
    将所述设备标识和所述当前位置信息添加在UWB信号中;adding the device identification and the current location information to the UWB signal;
    通过所述UWB组件向所述第一终端发送所述UWB信号,所述第一终端用于基于所述当前位置信息识别所述音频设备是否位于所述目标范围内,基于所述设备标识确定所述音频设备广播的目标蓝牙信号,并基于所述目标蓝牙信号中包含的蓝牙地址与所述音频设备建立蓝牙连接。Send the UWB signal to the first terminal through the UWB component, the first terminal is used to identify whether the audio device is located within the target range based on the current location information, and determine the audio device based on the device identifier. The target Bluetooth signal broadcast by the audio device, and establish a Bluetooth connection with the audio device based on the Bluetooth address contained in the target Bluetooth signal.
  13. 一种音频共享装置,所述装置应用于第一终端,所述第一终端设置有第一无线通讯组件和第二无线通讯组件,所述装置包括:An audio sharing device, the device is applied to a first terminal, the first terminal is provided with a first wireless communication component and a second wireless communication component, and the device includes:
    识别模块,用于在运行有第一音频对应多媒体播放进程的情况下,通过所述第一无线通讯组件识别位于第一范围内的第一音频设备;An identification module, configured to identify the first audio device located within the first range through the first wireless communication component when the multimedia playback process corresponding to the first audio is running;
    连接建立模块,用于通过所述第二无线通讯组件与所述第一音频设备建立数据通讯连接;A connection establishment module, configured to establish a data communication connection with the first audio device through the second wireless communication component;
    发送模块,用于通过所述第二无线通讯组件向所述第一音频设备发送所述第一音频对应的目标音频数据,所述第一音频设备用于根据所述目标音频数据执行音频播放操作。A sending module, configured to send target audio data corresponding to the first audio to the first audio device through the second wireless communication component, and the first audio device is used to perform an audio playback operation according to the target audio data .
  14. 根据权利要求13所述的装置,其中,所述识别模块,还用于:The device according to claim 13, wherein the identification module is further used for:
    在识别到位于第二范围内的所述第一音频设备的情况下,在当前用户界面中显示所述第一音频设备对应的第一设备图标,所述第二范围大于所述第一范围;When the first audio device located within a second range is identified, displaying a first device icon corresponding to the first audio device in the current user interface, the second range being larger than the first range;
    在所述第一音频设备位于所述第一范围内的情况下,将所述第一设备图标设置为第二设备图标,所述第二设备图标的图标样式不同于所述第一设备图标的图标样式。When the first audio device is located within the first range, the first device icon is set as a second device icon, and the icon style of the second device icon is different from that of the first device icon. icon style.
  15. 根据权利要求14所述的装置,其中,所述第一终端连接有第二音频设备,所述当前用户界面中显示有所述第二音频设备对应的第三设备图标;The device according to claim 14, wherein a second audio device is connected to the first terminal, and a third device icon corresponding to the second audio device is displayed in the current user interface;
    所述装置还包括:The device also includes:
    显示模块,用于在所述第一音频设备位于所述第二范围和所述第一范围之间的情况下,在所述当前用户界面中显示图标重合动画,所述图标重合动画中第一设备图标和所述第三设备图标之间的相对移动趋势由所述第一音频设备和所述第一终端之间的距离变化趋势确定;A display module, configured to display an icon overlapping animation in the current user interface when the first audio device is located between the second range and the first range, where the icon overlapping animation is the first A relative movement trend between the device icon and the third device icon is determined by a distance change trend between the first audio device and the first terminal;
    所述显示模块,还用于在所述第一音频设备位于所述第一范围内的情况下,将所述第一设备图标和所述第三设备图标设置为第四设备图标,所述第四设备图标的图标样式不同于所述第一设备图标和所述第三设备图标。The display module is further configured to set the first device icon and the third device icon as a fourth device icon when the first audio device is within the first range, and the first The icon style of the four-device icon is different from that of the first device icon and the third device icon.
  16. 根据权利要求13至15任一所述的装置,其中,所述第一无线通讯组件是UWB组件,所述第二无线通讯组件是蓝牙组件;The device according to any one of claims 13 to 15, wherein the first wireless communication component is a UWB component, and the second wireless communication component is a Bluetooth component;
    所述连接建立模块,还用于:The connection establishment module is also used for:
    基于所述第一音频设备发送的目标UWB信号,确定所述第一音频设备对应的目标设备标识;Determine a target device identifier corresponding to the first audio device based on the target UWB signal sent by the first audio device;
    基于所述目标设备标识,从接收到的至少一个蓝牙信号中确定出所述第一音频设备广播的目标蓝牙信号;determining a target Bluetooth signal broadcast by the first audio device from at least one received Bluetooth signal based on the target device identifier;
    根据所述目标蓝牙信号,确定所述第一音频设备对应的目标蓝牙地址;determining a target Bluetooth address corresponding to the first audio device according to the target Bluetooth signal;
    基于所述目标蓝牙地址与所述第一音频设备建立蓝牙连接。Establishing a Bluetooth connection with the first audio device based on the target Bluetooth address.
  17. 根据权利要求16所述的装置,其中,所述连接建立模块,还用于:The device according to claim 16, wherein the connection establishment module is further configured to:
    在所述目标设备标识位于目标白名单中的情况下,通过所述第二无线通讯组件与所述第一音频设备建立数据通讯连接,所述目标白名单中包含具备音频共享权限的至少一个音频设备的设备标识。When the target device identifier is in the target white list, establish a data communication connection with the first audio device through the second wireless communication component, and the target white list includes at least one audio device with audio sharing authority The device ID of the device.
  18. 根据权利要求13至15任一所述的装置,其中,所述第一音频设备中播放有第二音频,且第二音频是第二终端通过所述第一音频设备播放的;The device according to any one of claims 13 to 15, wherein the first audio device plays second audio, and the second audio is played by the second terminal through the first audio device;
    所述发送模块,还用于:The sending module is also used for:
    在与所述第一音频设备建立数据通讯连接的情况下,向所述第一音频设备发送音频共享请求,所述音频共享请求用于请求所述第一音频设备播放所述第一音频;In the case of establishing a data communication connection with the first audio device, sending an audio sharing request to the first audio device, where the audio sharing request is used to request the first audio device to play the first audio;
    在接收到所述第一音频设备反馈的确认共享请求的情况下,通过所述第二无线通讯组件向所述第一音频设备发送所述目标音频数据。In a case of receiving a confirmation sharing request fed back by the first audio device, sending the target audio data to the first audio device through the second wireless communication component.
  19. 一种音频共享装置,所述装置应用于音频设备,所述音频设备设置有第一无线通讯组件和第二无线通讯组件,所述装置包括:An audio sharing device, the device is applied to audio equipment, the audio equipment is provided with a first wireless communication component and a second wireless communication component, the device includes:
    发送模块,用于通过所述第一无线通讯组件向第一终端发送定位信号,所述第一终端用于基于所述定位信号识别所述音频设备是否位于目标范围内,所述第一终端中运行有第一音频对应的多媒体播放进程;A sending module, configured to send a positioning signal to a first terminal through the first wireless communication component, and the first terminal is used to identify whether the audio device is located within a target range based on the positioning signal, and in the first terminal running a multimedia playback process corresponding to the first audio;
    连接建立模块,用于在通过所述第二无线通讯组件接收到所述第一终端发送的数据通讯连接请求的情况下,与所述第一终端建立数据通讯连接,所述数据通讯连接请求是所述第一终端在识别到所述音频设备位于所述目标范围内时向所述音频设备发送的;A connection establishment module, configured to establish a data communication connection with the first terminal when receiving a data communication connection request sent by the first terminal through the second wireless communication component, and the data communication connection request is sent to the audio device when the first terminal recognizes that the audio device is within the target range;
    接收模块,用于通过所述第二无线通讯组件接收所述第一终端发送的目标音频数据,并根据所述目标音频数据播放所述第一音频。The receiving module is configured to receive the target audio data sent by the first terminal through the second wireless communication component, and play the first audio according to the target audio data.
  20. 一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一段程序,所述至少一段程序由所述处理器加载并执行以实现如权利要求1或7任一所述的音频共享方法。A terminal, the terminal includes a processor and a memory, at least one program is stored in the memory, and the at least one program is loaded and executed by the processor to realize the audio as claimed in any one of claims 1 or 7 Share method.
  21. 一种音频设备,所述音频设备包括处理器和存储器,所述存储器中存储有至少一段程序,所述至少一段程序由所述处理器加载并执行以实现如权利要求8至12任一所述的音频共享方法。An audio device, the audio device includes a processor and a memory, at least one program is stored in the memory, and the at least one program is loaded and executed by the processor to implement any one of claims 8 to 12 audio sharing method.
  22. 一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一段程序,所述至少一段程序由处理器加载并执行以实现如权利要求1至7任一所述的音频共享方法,或,权利要求8至12任一所述的音频共享方法。A computer-readable storage medium, at least one program is stored in the computer-readable storage medium, and the at least one program is loaded and executed by a processor to implement the audio sharing method according to any one of claims 1 to 7, Or, the audio sharing method described in any one of claims 8 to 12.
  23. 一种计算机程序产品,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中,处理器从所述计算机可读存储介质读取并执行所述计算机指令,以实现如权利要求1至7任一所述的音频共享方法,或,权利要求8至12任一所述的音频共享方法。A computer program product, the computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium, and a processor reads and executes the computer instructions from the computer-readable storage medium to implement the following: The audio sharing method described in any one of claims 1 to 7, or the audio sharing method described in any one of claims 8 to 12.
PCT/CN2022/089181 2021-05-27 2022-04-26 Audio sharing method and apparatus, terminal, audio device and storage medium WO2022247558A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110585748.2 2021-05-27
CN202110585748.2A CN115412848A (en) 2021-05-27 2021-05-27 Audio sharing method, device, terminal, audio equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022247558A1 true WO2022247558A1 (en) 2022-12-01

Family

ID=84154797

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/089181 WO2022247558A1 (en) 2021-05-27 2022-04-26 Audio sharing method and apparatus, terminal, audio device and storage medium

Country Status (2)

Country Link
CN (1) CN115412848A (en)
WO (1) WO2022247558A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016751A (en) * 2022-12-26 2023-04-25 Oppo广东移动通信有限公司 Device display method, broadcast method, device, electronic device and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080153556A1 (en) * 2005-03-18 2008-06-26 Openbrain Technologies Co., Ltd. Wireless Ear-Phone and Portable Terminal Using the Same
US20130090931A1 (en) * 2011-07-05 2013-04-11 Georgia Tech Research Corporation Multimodal communication system
US20140285312A1 (en) * 2013-03-19 2014-09-25 Nokia Corporation Audio Mixing Based Upon Playing Device Location
CN105530566A (en) * 2014-12-11 2016-04-27 三星电子株式会社 Sound output device, sound output system and control method thereof
CN106357883A (en) * 2016-08-24 2017-01-25 北京小米移动软件有限公司 Audio playing method and device thereof as well as playing system
CN107666538A (en) * 2017-09-30 2018-02-06 努比亚技术有限公司 A kind of connection method and terminal
CN108370386A (en) * 2015-12-14 2018-08-03 三星电子株式会社 Electronic equipment and the method for operating it
CN108810865A (en) * 2018-09-02 2018-11-13 上海悦骑智能科技有限公司 The method that no ability to communicate bluetooth equipment is connected with communication apparatus
CN111447602A (en) * 2020-06-17 2020-07-24 成都极米科技股份有限公司 Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium
CN111464957A (en) * 2020-03-31 2020-07-28 Oppo(重庆)智能科技有限公司 Bluetooth audio transmission method and device, electronic equipment and storage medium
CN112312366A (en) * 2019-07-26 2021-02-02 华为技术有限公司 Method, electronic equipment and system for realizing functions through NFC (near field communication) tag

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080153556A1 (en) * 2005-03-18 2008-06-26 Openbrain Technologies Co., Ltd. Wireless Ear-Phone and Portable Terminal Using the Same
US20130090931A1 (en) * 2011-07-05 2013-04-11 Georgia Tech Research Corporation Multimodal communication system
US20140285312A1 (en) * 2013-03-19 2014-09-25 Nokia Corporation Audio Mixing Based Upon Playing Device Location
CN105530566A (en) * 2014-12-11 2016-04-27 三星电子株式会社 Sound output device, sound output system and control method thereof
CN108370386A (en) * 2015-12-14 2018-08-03 三星电子株式会社 Electronic equipment and the method for operating it
CN106357883A (en) * 2016-08-24 2017-01-25 北京小米移动软件有限公司 Audio playing method and device thereof as well as playing system
CN107666538A (en) * 2017-09-30 2018-02-06 努比亚技术有限公司 A kind of connection method and terminal
CN108810865A (en) * 2018-09-02 2018-11-13 上海悦骑智能科技有限公司 The method that no ability to communicate bluetooth equipment is connected with communication apparatus
CN112312366A (en) * 2019-07-26 2021-02-02 华为技术有限公司 Method, electronic equipment and system for realizing functions through NFC (near field communication) tag
CN111464957A (en) * 2020-03-31 2020-07-28 Oppo(重庆)智能科技有限公司 Bluetooth audio transmission method and device, electronic equipment and storage medium
CN111447602A (en) * 2020-06-17 2020-07-24 成都极米科技股份有限公司 Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016751A (en) * 2022-12-26 2023-04-25 Oppo广东移动通信有限公司 Device display method, broadcast method, device, electronic device and storage medium

Also Published As

Publication number Publication date
CN115412848A (en) 2022-11-29

Similar Documents

Publication Publication Date Title
US10834237B2 (en) Method, apparatus, and storage medium for controlling cooperation of multiple intelligent devices with social application platform
US11425767B2 (en) Controlling electronic devices based on wireless ranging
CN110622123B (en) Display method and device
US11307733B2 (en) Always on display method and electronic device
US11204684B2 (en) Sticker presentation method and apparatus and computer-readable storage medium
TWI442081B (en) Method and handheld communication apparatus for transfering task among multiple apparatuses
CN109683847A (en) A kind of volume adjusting method and terminal
EP2988199A1 (en) Clicking control method and terminal
US20210263567A1 (en) Control Method for Terminal, Terminal, Intelligent Wearable Device, and System
WO2023284418A1 (en) Positioning method and apparatus, and electronic device and computer-readable storage medium
WO2019001188A1 (en) Data processing method, terminal and base station
WO2024055494A1 (en) Call method and apparatus based on bluetooth earphone, and storage medium
WO2022247558A1 (en) Audio sharing method and apparatus, terminal, audio device and storage medium
WO2022262723A1 (en) Signal strength display method and signal strength display apparatus
WO2018176702A1 (en) Method for detecting wireless signal, and terminal device
CN114201738B (en) Unlocking method and electronic equipment
WO2021052333A1 (en) Message reply method, device, and mobile terminal
WO2015024393A1 (en) Method, apparatus, and terminal for sending sms message
CN114095542B (en) Display control method and electronic equipment
CN108984075B (en) Display mode switching method and device and terminal
CN110427124B (en) Projection device, wearable equipment and detection control method
WO2021114478A1 (en) Ranging method and apparatus thereof, storage medium, and terminal device
KR20160011419A (en) A mobile device, a method for controlling the mobile device, and a control system having the mobile device
WO2022100314A1 (en) Iot device control method, apparatus, control system, and terminal device
WO2022247561A1 (en) Audio sharing method and apparatus, terminal, audio device, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22810291

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022810291

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022810291

Country of ref document: EP

Effective date: 20231120

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22810291

Country of ref document: EP

Kind code of ref document: A1