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 PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 139
- 238000004891 communication Methods 0.000 claims abstract description 332
- 230000008569 process Effects 0.000 claims abstract description 61
- 238000012790 confirmation Methods 0.000 claims description 71
- 230000004044 response Effects 0.000 claims description 13
- 230000008859 change Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 9
- 230000033001 locomotion Effects 0.000 claims description 8
- 230000001960 triggered effect Effects 0.000 claims description 6
- 230000006870 function Effects 0.000 description 22
- 238000010586 diagram Methods 0.000 description 14
- 238000005516 engineering process Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000013459 approach Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 5
- 238000007667 floating Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000005562 fading Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001681 protective effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/021—Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/20—Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
- H04W4/21—Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel for social networking applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-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
Description
Claims (23)
- 一种音频共享方法,所述方法应用于第一终端,所述第一终端设置有第一无线通讯组件和第二无线通讯组件,所述方法包括: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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 一种音频共享方法,所述方法应用于音频设备,所述音频设备设置有第一无线通讯组件和第二无线通讯组件,所述方法包括: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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 一种音频共享装置,所述装置应用于第一终端,所述第一终端设置有第一无线通讯组件和第二无线通讯组件,所述装置包括: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 .
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 一种音频共享装置,所述装置应用于音频设备,所述音频设备设置有第一无线通讯组件和第二无线通讯组件,所述装置包括: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.
- 一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一段程序,所述至少一段程序由所述处理器加载并执行以实现如权利要求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.
- 一种音频设备,所述音频设备包括处理器和存储器,所述存储器中存储有至少一段程序,所述至少一段程序由所述处理器加载并执行以实现如权利要求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.
- 一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一段程序,所述至少一段程序由处理器加载并执行以实现如权利要求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.
- 一种计算机程序产品,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中,处理器从所述计算机可读存储介质读取并执行所述计算机指令,以实现如权利要求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.
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)
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)
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 |
-
2021
- 2021-05-27 CN CN202110585748.2A patent/CN115412848A/en active Pending
-
2022
- 2022-04-26 WO PCT/CN2022/089181 patent/WO2022247558A1/en active Application Filing
Patent Citations (11)
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)
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 |