CN111586662A - Sharing method and audio output device - Google Patents

Sharing method and audio output device Download PDF

Info

Publication number
CN111586662A
CN111586662A CN202010443624.6A CN202010443624A CN111586662A CN 111586662 A CN111586662 A CN 111586662A CN 202010443624 A CN202010443624 A CN 202010443624A CN 111586662 A CN111586662 A CN 111586662A
Authority
CN
China
Prior art keywords
output device
audio output
audio
electronic device
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010443624.6A
Other languages
Chinese (zh)
Inventor
唐珊珊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010443624.6A priority Critical patent/CN111586662A/en
Publication of CN111586662A publication Critical patent/CN111586662A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a sharing method and audio output equipment, and belongs to the technical field of communication. The problem that audio files are complicated to share is solved. The method comprises the following steps: detecting that the first audio output device and the second audio output device are in physical contact, and establishing communication connection with the second audio output device; receiving a second audio output device to establish a communication connection; receiving target audio data sent by second audio output equipment; acquiring a first audio file according to the target audio data; and outputting first prompt information or outputting a first audio file, wherein the first prompt information prompts that the first audio file is successfully shared.

Description

Sharing method and audio output device
Technical Field
The present application belongs to the field of communication technologies, and in particular, relates to a sharing method and an audio output device.
Background
With the development of communication technology, the way in which users use electronic devices to obtain data is more and more varied.
Generally, files shared by other users can be acquired by using the electronic device, for example, the user 1 can share audio files to the electronic device 2 of the user 2 by using the electronic device 1. Firstly, the electronic equipment 1 and the electronic equipment 2 carry out identity authentication and establish Bluetooth connection; then, the user 1 selects an audio file to be shared in the electronic device 1, and sends the audio file selected by the user 1 to the electronic device of the user 2.
However, in the above sharing manner for obtaining the file, the operation steps required by the user are many, which results in that the operation of sharing the audio file by the electronic device is not convenient enough.
Disclosure of Invention
The embodiment of the application aims to provide a sharing method and audio output equipment, and the problem that the operation of sharing audio files by electronic equipment is not convenient enough can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a sharing method, where the method includes: detecting that the first audio output device and the second audio output device are in physical contact, and establishing communication connection with the second audio output device; receiving target audio data sent by second audio output equipment; acquiring a first audio file according to the target audio data; and outputting first prompt information or outputting a first audio file, wherein the first prompt information prompts that the first audio file is successfully shared.
In a second aspect, an embodiment of the present application provides a first audio output device, where the first audio apparatus includes: the device comprises an establishing module, a receiving module, an obtaining module and an output module; the establishing module is used for detecting that the first audio output equipment and the second audio output equipment are in physical contact and establishing communication connection with the second audio output equipment; the receiving module is used for receiving target audio data sent by second audio output equipment; the acquisition module is used for outputting first prompt information or outputting the first audio file received by the receiving module, and the first prompt information prompts that the first audio file is successfully shared.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or an instruction stored on the memory and executable on the processor, and when executed by the processor, the program or the instruction implements the steps of the sharing method according to the first aspect.
In a fourth aspect, the present embodiments provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the sharing method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the sharing method according to the first aspect.
In the embodiment of the application, first, the first audio output device detects that the first audio output device and the second audio output device are in physical contact, and establishes communication connection with the second audio output device; and then, the second audio output device sends the target audio data to the first audio output device, and the first audio output device can acquire the first audio file according to the target audio data after receiving the target audio data because the target audio data is part or all of the data in the first audio file shared by the second audio output device. Finally, after the first audio output device acquires the first audio file, the first audio output device may output the first prompt information or output the first audio file. Compared with the audio file sharing mode in the related technology, according to the sharing method in the embodiment of the application, the first audio output device can be in physical contact with the second audio output device without identity authentication pairing, communication connection can be established quickly, then the first audio file shared by the second audio output device is acquired quickly according to partial data of the first audio file sent by the second audio output device, and therefore the audio file sharing speed is higher, the steps are concise, and the operation is easier.
Drawings
Fig. 1 is an interaction flow diagram of a sharing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a sharing system according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an earphone according to an embodiment of the present application;
fig. 4 is a second schematic diagram of a sharing system according to an embodiment of the present application;
FIG. 5 is a schematic view of a connection system provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of a possible structure of a first audio output device according to an embodiment of the present disclosure;
fig. 7 is a hardware schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The sharing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is an interaction flow diagram of a sharing method provided in an embodiment of the present application, and as shown in fig. 1, the sharing method may include the following steps S101 to S106:
s101, the first audio output device detects that the first audio output device is in physical contact with the second audio output device, and the first audio output device is in communication connection with the second audio output device.
S102, the second audio output device detects that the second audio output device is in physical contact with the first audio output device, and the second audio output device is in communication connection with the first audio output device.
It is understood that in the embodiment of the present application, the two audio output devices trigger the fast establishment of the communication connection through physical contact.
For example, two devices that can be magnetically connected can be triggered to establish a communication connection after the two devices are attracted together; for example, after chip contact of two devices each provided with a contact communication chip, the two devices may be triggered to establish a communication connection.
It should be noted that, in the embodiment of the present application, the execution order of S101 and S102 is not described in advance.
For example, in the embodiment of the present application, the first audio output device and the second audio output device may be both a bluetooth headset, a mobile phone, a bluetooth speaker, a smart watch, and the like; for example, the bluetooth headset 1 and the bluetooth headset 2 are in physical contact, the smart watch 1 and the smart watch 2 are in physical contact, the mobile phone 1 and the mobile phone 2 are in physical contact, and the like. The first audio output device can be any one of a Bluetooth headset, a mobile phone, a Bluetooth sound box and a smart watch, and the second audio output device can also be any one of the devices except the first audio output device. For example, the bluetooth headset of user 1 is in physical contact with the handset of user 2.
S103, the second audio output device acquires the target audio data and sends the target audio data to the first audio output device.
It should be noted that, in the embodiment of the present application, the target audio data sent by the second audio output device to the first audio output device may be audio data stored (including temporarily stored) in the second audio apparatus.
For example, the target audio data may be a segment of audio data in an audio file currently being played by the second audio output device, or may be all audio data of the audio file currently being played by the second audio output device.
S104, the first audio output device receives the target audio data sent by the second audio output device.
Optionally, in a case that the first audio output device receives target audio data sent by the second audio output device, the first audio output device may be outputting audio, or may not output audio, or may pause outputting audio when receiving the target audio data sent by the second audio output device is started, which is not specifically limited in this embodiment of the application.
For example, in a case where the first audio output device and the second audio output device establish a communication connection through physical contact, if the first audio output device does not output audio and the second audio output device is outputting audio, the second audio output device outputting audio may be defined as an audio output device sharing an audio file, and the first audio output device not outputting audio may be defined as an audio output device receiving the shared audio file.
It should be noted that, in this embodiment of the application, the second audio output device shares an audio file with the first audio output device is taken as an example for description, and in practical applications, both the first audio output device and the second audio output device may be used as a device for sharing an audio file, and may also be used as a device for receiving a shared audio file.
S105, the first audio output device obtains a first audio file according to the target audio data.
For example, if the first audio output device has a function of directly acquiring the first audio file, the first audio output device may perform song recognition according to the target audio data to acquire the first audio file, and if the first audio output device does not have the function of directly acquiring the first audio file, the first audio output device may acquire the first audio file from an apparatus connected to the first audio output device.
S106, the first audio output device outputs first prompt information or first audio files.
Wherein the first prompt information prompts that the first audio file is successfully shared.
It can be understood that after the first audio output device acquires the first audio file, the first audio output device may play the first audio file, or may output a prompt tone to prompt the user that the first audio file has been searched.
For example, after one bluetooth headset receives a piece of a song shared by another bluetooth headset, the whole song is acquired according to the music piece, and then the song can be directly played.
According to the sharing method provided by the embodiment of the application, firstly, a first audio output device detects that the first audio output device is in physical contact with a second audio output device, and communication connection is established between the first audio output device and the second audio output device; and then, the second audio output device sends the target audio data to the first audio output device, and the first audio output device can acquire the first audio file according to the target audio data after receiving the target audio data because the target audio data is part or all of the data in the first audio file shared by the second audio output device. Finally, after the first audio output device acquires the first audio file, the first audio output device may output the first prompt information or output the first audio file. Compared with the audio file sharing mode in the related technology, according to the sharing method in the embodiment of the application, the first audio output device can be in physical contact with the second audio output device without identity authentication pairing, communication connection can be established quickly, then the first audio file shared by the second audio output device is acquired quickly according to partial data of the first audio file sent by the second audio output device, and therefore the audio file sharing speed is higher, the steps are concise, and the operation is easier.
Optionally, the first audio output device detects that the first audio output device and the second audio output device are in physical contact, and establishes a communication connection with the second audio output device; the first audio output device receives target audio data sent by the second audio output device; the first audio output equipment acquires a first audio file according to the target audio data; the first audio output device outputs the first prompt information or outputs the first audio file.
It can be understood that, in the sharing method provided by the application, the first audio output device may establish a communication connection quickly by making physical contact with the second audio output device, and then the first audio output device may receive target audio data sent by the second audio output device based on the communication connection, search a corresponding first audio file according to the target audio data, and then play the first audio file or play a prompt tone to prompt that the audio file has been successfully shared.
Optionally, the second audio output device detects that the second audio output device is in physical contact with the first audio output device, and establishes a communication connection with the first audio output device; the second audio output device acquires the target audio data and sends the target audio data to the first audio output device.
It can be understood that in the sharing method provided by the application, before sharing, the connection can be quickly established without manually selecting the device identification authentication, in the sharing process, the user does not need to select the audio file, and after the two audio output devices are in physical contact, the target data can be quickly sent to the shared audio output device through the established connection.
In one possible example, the first audio output device may determine whether to perform subsequent search and play (or cue) of audio files based on the audio output state of the first audio output device after receiving the target audio data.
Alternatively, in this embodiment of the present application, the above S105 may be performed by the following S105 a:
s105a, in the case that the first audio output device does not output audio, the first audio output device acquires the first audio file according to the target audio data.
For example, the first audio output device may determine whether the first audio output device is outputting audio after receiving the target audio data, and if the first audio output device is outputting audio, the first audio output device may pause outputting audio and then start to perform subsequent searching and playing (or prompting) of the first audio file according to the target audio file; if the first audio output device does not output audio, the first audio output device may directly obtain the first audio file according to the target audio data.
Based on the scheme, after the first audio output device receives the target audio data, the audio output state of the first audio output device can be judged first, and under the condition that the first audio output device does not output audio, the first audio file is obtained according to the target audio data. The influence on the playing of the audio originally output by the first audio output device can be reduced when the audio file is shared.
In one possible example, a sharing rule for sharing audio files via an audio output device may be agreed to: the audio output state of the shared audio output device is no audio output.
Alternatively, in this embodiment of the present application, the above S104 may be performed by the following S104a 1:
s104a1, the first audio output device receives the target audio data sent by the second audio output device when the first audio output device does not output audio.
The target audio data in S104a1 may be part of the audio data in the audio file being output by the second audio output device.
It can be understood that in this scheme, the rule that the audio output devices share the audio file may be agreed that the audio output device that is outputting the audio may share the audio file that is playing to the audio output device that is not outputting the audio.
Based on the scheme, under the condition that the files are shared through the audio output devices, the second audio output device can send the target audio file to the first audio output device which does not output the audio under the condition that the second audio output device outputs the audio, so that a user who listens to the audio by using the second audio output device can share the listened audio to the first audio output device by using the second audio output device according to requirements in the process of listening to the audio, and the mode of sharing the audio file is simple and convenient.
Optionally, in this embodiment of the application, a first location of the first audio output device and a second location of the second audio output device are both provided with a contact communication chip (IC), and the first location and the second location are in physical contact.
Further, S101 described above may be executed by S101 a:
s101a, the first audio output device detects that the first position of the first audio output device is physically contacted with the second position of the second audio output device, and the first audio output device is in communication connection with the second audio output device.
Specifically, the contact communication chip at the first position of the first audio output device and the contact communication chip at the second position of the second audio output device are in physical contact, and the first audio output device and the second audio output device establish a communication connection.
As shown in fig. 2, a contact communication chip 21a is provided on the earphone 21 (i.e., the first audio output device), and a contact communication chip 22a is provided on the earphone 22 (i.e., the second audio output device). Furthermore, if the contact communication chip 21a on the earphone 21 and the contact communication chip 22a on the earphone 22 are in contact, the earphone 21 and the earphone 22 can quickly establish a communication connection for data transmission.
Based on the scheme, the audio output device can be in contact with the contact type communication chip to quickly establish connection without identity authentication, so that a user can share audio files more conveniently under the condition that the distance is short.
In one example, in a case where a first position of a first audio output device and a second position of a second audio output device are physically contacted, and audio data is not output by the first audio output device and audio data is being output by the second audio output device, the second audio output device synchronously transmits the audio data being output in the second audio output device to the first audio output device.
For example, the second audio output device may convert the stored target audio data into an electrical signal, and then transmit the electrical signal to the first audio output device through the contact communication chip, and the first audio output device may receive the electrical signal transmitted by the second audio output device through the contact communication chip, and then may convert the electrical signal into data in an audio format.
Optionally, in this embodiment of the application, a sharing key may be further disposed on the audio output device, and a user may determine which of the first audio output device and the second audio output device is a device for receiving a shared audio file and which is a device for sharing an audio file through the sharing key.
For example, after two audio output devices are connected by physical contact, if a user presses a sharing key of which audio output device, which audio output device is a device for sharing a file.
Fig. 3 is a schematic structural diagram of an earphone according to an embodiment of the present application, and as shown in fig. 3, a contact communication chip 31a and a sharing button 31b are provided on the earphone, if a user shares an audio file through the earphone, the user may press the sharing button 31b to first start a sharing function, and then receive audio data sent by other audio output devices through the contact communication chip 31a, or send audio data to other audio output devices.
After the user starts the sharing function of the audio output device through the sharing button, if the second audio output device receives an operation of pressing the sharing button by the user, the second audio output device sends the target audio data to the first audio output device.
Based on the scheme, the user can not only start the earphone sharing function through the sharing key on the audio output equipment, but also determine which audio output equipment is the audio output equipment sharing the audio file through the sharing key.
Optionally, in this embodiment of the application, the first audio output device is wirelessly connected to the first electronic device, and the second audio output device is wirelessly connected to the second electronic device.
It is understood that the first electronic device may be an electronic device having a function of recognizing songs, such as a mobile phone, a notebook, a smart phone, or a smart watch, and the second electronic device may be an electronic device having a function of playing audio files.
For convenience of description, the following examples illustrate the first electronic device and the second electronic device as mobile phones.
Fig. 4 is a schematic diagram of a sharing system according to an embodiment of the present application. Among them, the cellular phone 41 (i.e., the first electronic device) and the earphone 43 (i.e., the first audio output device) perform bluetooth communication by establishing a bluetooth connection, the cellular phone 42 (i.e., the second electronic device) and the earphone 44 (i.e., the second audio output device) perform bluetooth communication by establishing a bluetooth connection, and the earphone 43 (i.e., the first audio output device) and the earphone 44 (i.e., the second audio output device) perform contact communication by physically connecting a contact communication chip.
It is to be appreciated that prior to sharing, each audio output device (e.g., bluetooth headset) has established a wireless connection (e.g., bluetooth connection) with a corresponding electronic device (e.g., cell phone).
Furthermore, in the sharing method provided in the embodiment of the present application, the step S105 or the step S105a1 may be specifically executed through the steps S105a to S105 e:
s105, the first audio output device sends the target audio data to the first electronic device 105 a.
It can be understood that, if the first audio output device and the first electronic device are connected through bluetooth, the first audio output device may send the target audio data to the first electronic device through bluetooth transmission.
Illustratively, the first audio output device transmits the target audio data of the digital signal to the first electronic device.
S105, 105b, the first electronic device receives the target audio data sent by the first audio output device.
S105, 105c, the first electronic device obtains a first audio file according to the target audio data.
For example, after receiving the target audio data of the digital signal, the first electronic device may convert the target audio data of the digital signal into a spectrogram, then invoke a song listening and song recognition function in the first electronic device, perform song comparison and recognition in a network, and then search for and acquire a first audio file corresponding to the target audio data.
S105, 105d, the first electronic device sends the first audio file to the first audio device.
S105, 105e, the first audio output device receives the first audio file sent by the first electronic device.
The first audio file is an audio file acquired by the first electronic device according to the target audio data.
In one example. After the song identification is successful, the first electronic device may send a first instruction to the first audio output device instructing the first audio output device to turn off the sharing function of the first audio output device. For example instructing the headset to turn off the headset sharing function.
In another example, the first audio output device may also start playing the first audio file and close the sharing function of the first audio output device after receiving that the first electronic device starts to send the first audio file.
Based on the scheme, if the first audio output device does not have the function of identifying the audio file according to the target audio data, the first audio output device may send the target audio data to the first electronic device connected to the first audio output device after receiving the target audio data, the first electronic device may determine which audio file the target audio data is data in by performing audio file identification on the target audio data after receiving the target audio data, so as to determine the first audio file, the first electronic device may start playing the first audio file after acquiring the first audio file and send the first audio file to the first audio output device, the first audio output device outputs the first audio file, for example, when the user uses a bluetooth headset, the user may share the audio file through physical contact of the bluetooth headset, and then, the shared audio file is identified through the mobile phone and is played, and the file sharing mode is simple and quick.
Optionally, in this embodiment of the present application, a contact communication chip is disposed at a third location of the first electronic device.
The third location may be located at any position of the first electronic device, which is not specifically limited in this embodiment of the application.
The third position may be located on the back of the first electronic device or located on the side of the first electronic device.
Fig. 5 is a schematic diagram of a connection system provided in an embodiment of the present application, where the connection system includes a headset and an electronic device. A contact communication chip 52 is disposed on the frame of the electronic device. The earphone is provided with a contact communication chip 51, and a user can control the contact communication chip 51 of the earphone and the contact communication chip 52 of the electronic device to be in physical contact. After the contact communication chip of the electronic device and the headset is contacted, the electronic device and the headset can be quickly connected.
Furthermore, before the above S101, the sharing method provided in the embodiment of the present application may further include the following steps of S105a (or S105b) and S106:
s105a, the first audio output device detects that the first location of the first audio output device is physically in contact with the third location of the first electronic device, and sends a device identifier of the first audio output device to the first electronic device.
Or the first electronic device detects that the third position of the first electronic device is physically connected with the first position of the first audio output device, and the first electronic device sends the identifier of the first electronic device to the first audio output device.
S105, 105b, the first audio output device receives the identification of the first electronic device sent by the first electronic device.
S106, the first audio output device establishes wireless connection between the first audio output device and the first electronic device.
Illustratively, the wireless connection may be a bluetooth connection.
It should be noted that, when the bluetooth connection is established, the first audio output device and the first electronic device may carry the acquired device identifier of the connection object in the transmitted broadcast data packet, when the bluetooth connection is established, the paired requirements need to be met between the devices, matching of the device identifiers also needs to be performed, and after the device identifiers are successfully matched, the bluetooth connection may be established.
For example, if a contact communication chip is disposed at a specific location of a mobile phone (i.e., an electronic device), and the mobile phone and a contact communication chip of an earphone are in contact with each other, the mobile phone (or the earphone) may send a device identifier stored in the chip to the earphone (or the mobile phone).
Based on the scheme, the first audio output device can be quickly connected with the first electronic device through the contact communication chip in a Bluetooth mode. In the method for establishing the bluetooth connection, a user may quickly establish the bluetooth connection between the electronic device and the first audio output device through physical contact without establishing the bluetooth connection by the user according to a manner in the related art and requiring the user to perform a matching process, so that steps of user operation are simplified, and the bluetooth connection is established more quickly.
It should be noted that, in the sharing method provided in the embodiment of the present application, the execution main body may be an audio output device, or a control module in the audio output device for executing the loading sharing method. In the embodiment of the present application, a method for executing load sharing by a first audio output device is taken as an example to describe the sharing method provided in the embodiment of the present application.
Fig. 6 is a schematic diagram of a possible structure of a first audio output device provided in the present application, and as shown in fig. 6, the first audio output device 600 includes: the device comprises an establishing module 601, a first receiving module 602, an obtaining module 603 and an output module 604; the establishing module 601 is configured to detect that the first audio output device and the second audio output device are in physical contact, and establish a communication connection with the second audio output device; a first receiving module 602, configured to receive target audio data sent by a second audio output device; the obtaining module 603 is configured to obtain a first audio file according to the target audio data, and the outputting module 604 is configured to output first prompt information or output the first audio file received by the first receiving module 602, where the first prompt information prompts that the first audio file is successfully shared.
It is understood that, first, the first audio output device detects that the first audio output device and the second audio output device are in physical contact, and establishes a communication connection with the second audio output device; and then, the second audio output device sends the target audio data to the first audio output device, and the first audio output device can acquire the first audio file according to the target audio data after receiving the target audio data because the target audio data is part or all of the data in the first audio file shared by the second audio output device. Finally, after the first audio output device acquires the first audio file, the first audio output device may output the first prompt information or output the first audio file. Compared with the audio file sharing mode in the related technology, according to the sharing method in the embodiment of the application, the first audio output device can be in physical contact with the second audio output device without identity authentication pairing, communication connection can be established quickly, then the first audio file shared by the second audio output device is acquired quickly according to partial data of the first audio file sent by the second audio output device, and therefore the audio file sharing speed is higher, the steps are concise, and the operation is easier.
Optionally, the first audio output device is wirelessly connected with the first electronic device, and the second audio output device is wirelessly connected with the second electronic device; the acquisition module comprises: the device comprises a first sending module and a second receiving module; the first sending module is used for sending target audio data to the first electronic equipment; the second receiving module is used for receiving a first audio file sent by the first electronic device, wherein the first audio file is an audio file acquired by the first electronic device according to the target audio data.
It can be understood that, if the first audio output device does not have the function of identifying an audio file according to the target audio data, the first audio output device may send the target audio data to a first electronic device connected to the first audio output device after receiving the target audio data, the first electronic device may determine which audio file the target audio data is in by performing audio file identification on the target audio data after receiving the target audio data, so as to determine the first audio file, the first electronic device may start playing the first audio file after acquiring the first audio file and send the first audio file to the first audio output device, the first audio output device outputs the first audio file, for example, when a user uses a bluetooth headset, the user may share the audio file through physical contact of the bluetooth headset, and then, the shared audio file is identified through the mobile phone and is played, and the file sharing mode is simple and quick.
Optionally, a first position of the first audio output device and a second position of the second audio output device are both provided with a contact communication chip; the establishing module is specifically configured to: and detecting that the first position of the first audio output device is physically contacted with the second position of the second audio output device, and establishing communication connection with the second audio output device.
It can be understood that the audio output device can be contacted with the contact type communication chip to quickly establish connection without identity authentication, so that the user can more conveniently share audio files under the condition of close distance.
Optionally, a contact communication chip is disposed at a third position of the first electronic device; the first audio output device further includes: a second sending module or a third receiving module; the first sending module is used for detecting that the first position of the first audio output device is physically contacted with the third position of the first electronic device before detecting that the first audio output device is physically contacted with the second audio output device, and sending the device identification of the first audio output device to the first electronic device; the third receiving module is used for receiving the equipment identifier of the first electronic equipment, which is sent by the first electronic equipment, before the first audio output equipment and the second audio output equipment are detected to be in physical contact; the establishing module is further used for establishing wireless connection between the first audio output device and the first electronic device.
It can be understood that the first audio output device can quickly establish a bluetooth connection with the first electronic device through the contact communication chip. Under the condition that a plurality of audio output devices exist around the first electronic device, the Bluetooth connection can be quickly established through physical contact, the process that the user establishes the Bluetooth connection according to the mode in the related technology and the user needs to match is not needed, the steps of user operation are simplified, and the Bluetooth connection is established more quickly.
Optionally, the obtaining module is specifically configured to: under the condition that the first audio output device does not output audio, acquiring a first audio file according to the target audio data; wherein the target audio data is a portion of audio data in an audio file being output by the second audio output device.
It can be understood that in the case of sharing files through the audio output devices, the second audio output device can send the target audio file to the first audio output device that does not output audio in the case that the second audio output device is outputting audio, so that a user listening to audio using the second audio output device can share the listened audio to the first audio output device by using the second audio output device as required in the process of listening to audio, and the way of sharing audio files is simple and convenient.
The first audio output device in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a bluetooth headset, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The first audio output device in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The first audio output device provided in the embodiment of the present application can implement each process implemented by the first audio output device in the method embodiments of fig. 1 to fig. 5, and for avoiding repetition, details are not repeated here.
Optionally, an electronic device is further provided in this embodiment of the present application, and includes a processor, a memory, and a program or an instruction stored in the memory and capable of being executed on the processor, where the program or the instruction is executed by the processor to implement each process of the sharing method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
The following description will take the first audio output device as an example of an electronic device.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The radio frequency unit 1001 is configured to detect that the electronic device is in physical contact with a second audio output device, and establish a communication connection with the second audio output device; the radio frequency unit 1001 is further configured to receive target audio data sent by the second audio output device; the network module 1002 is configured to obtain a first audio file according to target audio data; the audio output unit 1003 is configured to output first prompt information or output a first audio file, where the first prompt information prompts that the first audio file is successfully shared.
According to the electronic equipment provided by the embodiment of the application, firstly, the electronic equipment detects that the electronic equipment is in physical contact with the second audio output equipment, and establishes communication connection with the second audio output equipment; and then, the second audio output device sends the target audio data to the electronic device, and the electronic device can acquire the first audio file according to the target audio data after receiving the target audio data because the target audio data is part or all of the data in the first audio file shared by the second audio output device. Finally, after the electronic device acquires the first audio file, the electronic device may output the first prompt information or output the first audio file. Compared with the audio file sharing mode in the related art, according to the sharing method in the embodiment of the application, the electronic device can be in physical contact with the second audio output device without identity authentication pairing, communication connection can be quickly established, and then the first audio file shared by the second audio output device is quickly acquired according to partial data of the first audio file sent by the second audio output device, so that the audio file sharing speed is higher, the steps are concise, and the operation is easier.
Optionally, a first position of the electronic device is provided with a contact communication chip, a second position of the second audio output device is provided with a contact communication chip, and the first position and the second position are in physical contact.
It can be understood that the electronic device can be in contact with the second audio output device through the contact communication chip to quickly establish connection without identity authentication, so that the user can more conveniently share the audio file under the condition that the distance is short.
Optionally, the radio frequency unit 1001 is configured to receive target audio data sent by the second audio output device when the electronic device does not output audio; wherein the target audio data is a portion of audio data in an audio file being output by the second audio output device.
It can be understood that in the case of sharing files through the audio output device, the second audio output device may send the target audio file to the electronic device that does not output audio in the case that the second audio output device is outputting audio, so that a user listening to audio using the second audio output device may share the listened audio to the electronic device with the second audio output device as required in the process of listening to audio, and the way of sharing audio files is simple and convenient.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the sharing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the sharing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (11)

1. A sharing method applied to a first audio output device, the method comprising:
detecting that the first audio output device and the second audio output device are in physical contact, and establishing communication connection with the second audio output device;
receiving target audio data sent by the second audio output device;
acquiring a first audio file according to the target audio data;
and outputting first prompt information or outputting the first audio file, wherein the first prompt information prompts that the first audio file is successfully shared.
2. The method of claim 1, wherein the first audio output device is wirelessly connected to a first electronic device and the second audio output device is wirelessly connected to a second electronic device;
the acquiring a first audio file according to the target audio data includes:
transmitting the target audio data to the first electronic device;
and receiving the first audio file sent by the first electronic device, wherein the first audio file is an audio file acquired by the first electronic device according to the target audio data.
3. The method of claim 1 or 2, wherein the first location of the first audio output device and the second location of the second audio output device are each provided with a contact communication chip;
the detecting that the first audio output device and the second audio output device are in physical contact and establishing a communication connection with the second audio output device comprises:
and detecting that the first position of the first audio output device is physically contacted with the second position of the second audio output device, and establishing communication connection with the second audio output device.
4. The method of claim 3, wherein a third location of the first electronic device is provided with a contact communication chip;
prior to the detecting that the first audio output device and the second audio output device are in physical contact, the method further comprises:
detecting that the first position of the first audio output device is physically contacted with the third position of the first electronic device, and sending a device identification of the first audio output device to the first electronic device; or receiving a device identifier of the first electronic device sent by the first electronic device;
establishing a wireless connection between the first audio output device and the first electronic device.
5. The method of claim 1, wherein the retrieving a first audio file from the target audio data comprises:
under the condition that the first audio output device does not output audio, acquiring a first audio file according to the target audio data;
wherein the target audio data is a portion of audio data in an audio file being output by the second audio output device.
6. A first audio output device, the first audio output device comprising: the device comprises an establishing module, a first receiving module, an obtaining module and an output module;
the establishing module is used for detecting that the first audio output device and the second audio output device are in physical contact and establishing communication connection with the second audio output device;
the first receiving module is configured to receive target audio data sent by the second audio output device;
the output module is configured to output first prompt information or output the first audio file received by the first receiving module, where the first prompt information prompts that the first audio file is successfully shared.
7. The first audio output device of claim 6, wherein the first audio output device is wirelessly connected to a first electronic device and the second audio output device is wirelessly connected to a second electronic device; the acquisition module includes: the device comprises a first sending module and a second receiving module;
the first sending module is configured to send the target audio data to the first electronic device;
the second receiving module is configured to receive the first audio file sent by the first electronic device, where the first audio file is an audio file acquired by the first electronic device according to the target audio data.
8. The first audio output device according to claim 6 or 7, wherein the first position of the first audio output device and the second position of the second audio output device are each provided with a contact communication chip; the establishing module is specifically configured to:
and detecting that the first position of the first audio output device and the second position of the second audio output device are physically contacted, and establishing communication connection with the second audio output device.
9. The first audio output device of claim 8, wherein a third location of the first electronic device is provided with a contact communication chip; the first audio output device further comprises: a second sending module or a third receiving module;
the first sending module is configured to, before detecting that the first audio output device and the second audio output device are in physical contact, detect that a first location of the first audio output device and a third location of the first electronic device are in physical contact, and send a device identifier of the first audio output device to the first electronic device;
the third receiving module is configured to receive the device identifier of the first electronic device sent by the first electronic device before detecting that the first audio output device and the second audio output device are in physical contact;
the establishing module is further configured to establish a wireless connection between the first audio output device and the first electronic device.
10. The first audio output device of claim 6, wherein the obtaining module is specifically configured to:
under the condition that the first audio output device does not output audio, acquiring a first audio file according to the target audio data;
wherein the target audio data is a portion of audio data in an audio file being output by the second audio output device.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the sharing method according to any one of claims 1-5.
CN202010443624.6A 2020-05-22 2020-05-22 Sharing method and audio output device Pending CN111586662A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010443624.6A CN111586662A (en) 2020-05-22 2020-05-22 Sharing method and audio output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010443624.6A CN111586662A (en) 2020-05-22 2020-05-22 Sharing method and audio output device

Publications (1)

Publication Number Publication Date
CN111586662A true CN111586662A (en) 2020-08-25

Family

ID=72115762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010443624.6A Pending CN111586662A (en) 2020-05-22 2020-05-22 Sharing method and audio output device

Country Status (1)

Country Link
CN (1) CN111586662A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738908A (en) * 2020-12-25 2021-04-30 维沃移动通信有限公司 Electronic equipment connection method and device and electronic equipment
CN112867175A (en) * 2021-02-23 2021-05-28 Oppo广东移动通信有限公司 Device connection method, device, electronic device and storage medium
WO2022088957A1 (en) * 2020-10-28 2022-05-05 华为技术有限公司 Communication method, electronic device, and system
CN115412835A (en) * 2021-05-27 2022-11-29 Oppo广东移动通信有限公司 Audio sharing method, device, terminal, audio equipment and storage medium
CN112738908B (en) * 2020-12-25 2024-05-28 维沃移动通信有限公司 Electronic equipment connection method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023866A (en) * 2011-08-25 2013-04-03 罗技欧洲公司 Easy sharing of wireless audio signals
CN103391118A (en) * 2013-07-23 2013-11-13 广东欧珀移动通信有限公司 Bluetooth headset and audio sharing method by virtue of Bluetooth headsets
CN103823655A (en) * 2014-02-24 2014-05-28 联想(北京)有限公司 Audio output method, electronic equipment and first audio output device
CN205005252U (en) * 2015-10-19 2016-01-27 深圳先进技术研究院 Earphone is shared to human near field communication music
CN106507184A (en) * 2016-10-21 2017-03-15 乐视控股(北京)有限公司 Media file shares terminal, receiving terminal, transmission method and electronic equipment
US20170111738A1 (en) * 2015-10-16 2017-04-20 Ekko Audio, LLC Audio system having multiple personal wireless audio receivers
CN110290441A (en) * 2019-06-28 2019-09-27 歌尔股份有限公司 A kind of wireless headset control method, device and wireless headset and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023866A (en) * 2011-08-25 2013-04-03 罗技欧洲公司 Easy sharing of wireless audio signals
CN103391118A (en) * 2013-07-23 2013-11-13 广东欧珀移动通信有限公司 Bluetooth headset and audio sharing method by virtue of Bluetooth headsets
CN103823655A (en) * 2014-02-24 2014-05-28 联想(北京)有限公司 Audio output method, electronic equipment and first audio output device
US20170111738A1 (en) * 2015-10-16 2017-04-20 Ekko Audio, LLC Audio system having multiple personal wireless audio receivers
CN205005252U (en) * 2015-10-19 2016-01-27 深圳先进技术研究院 Earphone is shared to human near field communication music
CN106507184A (en) * 2016-10-21 2017-03-15 乐视控股(北京)有限公司 Media file shares terminal, receiving terminal, transmission method and electronic equipment
CN110290441A (en) * 2019-06-28 2019-09-27 歌尔股份有限公司 A kind of wireless headset control method, device and wireless headset and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022088957A1 (en) * 2020-10-28 2022-05-05 华为技术有限公司 Communication method, electronic device, and system
CN112738908A (en) * 2020-12-25 2021-04-30 维沃移动通信有限公司 Electronic equipment connection method and device and electronic equipment
CN112738908B (en) * 2020-12-25 2024-05-28 维沃移动通信有限公司 Electronic equipment connection method and device and electronic equipment
CN112867175A (en) * 2021-02-23 2021-05-28 Oppo广东移动通信有限公司 Device connection method, device, electronic device and storage medium
CN115412835A (en) * 2021-05-27 2022-11-29 Oppo广东移动通信有限公司 Audio sharing method, device, terminal, audio equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111107667B (en) Bluetooth headset pairing method and device and readable storage medium
CN111586662A (en) Sharing method and audio output device
CN110413250B (en) Voice interaction method, device and system
CN104461725A (en) Application process starting control method and device
US10104213B2 (en) Information processing device
WO2021114952A1 (en) Data processing method, terminal device, bluetooth device, and storage medium
US8290544B2 (en) Method and device for activating a media player based on type of coupled speaker
CN105373464A (en) Charging warning method and device of wearable equipment
CN104853406A (en) Service set identifier SSID providing method, acquiring method and device
CN105163366A (en) Wireless network connection method and device
CN104798031A (en) Handsfree device with continuous keyword recognition
KR20100052287A (en) Control method of portable device connected external device and system thereof
CN109032491B (en) Data processing method and device and mobile terminal
CN104320774A (en) Updating method, device and facility
CN105430185A (en) Method, apparatus and device for information reminding
CN113055864A (en) Bluetooth connection method, device, storage medium and electronic equipment
CN106453838B (en) Volume adjusting method and device
CN105635460A (en) Control method for information outputting, mobile terminal, and wearable equipment
CN111615090A (en) Interaction method and device between Bluetooth devices, storage medium and electronic device
JP2012039282A (en) Electronic apparatus, information display program for the same, and information display method for the same
KR101737638B1 (en) Device and method for transmitting data in wireless terminal
US11770693B2 (en) Electronic device for setting address information and method for operating same
CN111556406B (en) Audio processing method, audio processing device and earphone
CN104298508A (en) Method and device for executing operation
CN114265662B (en) Information recommendation method, electronic device and readable storage medium

Legal Events

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