Movatterモバイル変換


[0]ホーム

URL:


CN115002734B - Audio sharing method, device, system and readable storage medium - Google Patents

Audio sharing method, device, system and readable storage medium
Download PDF

Info

Publication number
CN115002734B
CN115002734BCN202210476106.3ACN202210476106ACN115002734BCN 115002734 BCN115002734 BCN 115002734BCN 202210476106 ACN202210476106 ACN 202210476106ACN 115002734 BCN115002734 BCN 115002734B
Authority
CN
China
Prior art keywords
earphone
pair
audio
terminal
broadcast
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.)
Active
Application number
CN202210476106.3A
Other languages
Chinese (zh)
Other versions
CN115002734A (en
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.)
Bestechnic Shanghai Co Ltd
Original Assignee
Bestechnic Shanghai 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 Bestechnic Shanghai Co LtdfiledCriticalBestechnic Shanghai Co Ltd
Priority to CN202210476106.3ApriorityCriticalpatent/CN115002734B/en
Publication of CN115002734ApublicationCriticalpatent/CN115002734A/en
Application grantedgrantedCritical
Publication of CN115002734BpublicationCriticalpatent/CN115002734B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请提出了一种音频分享方法、装置、系统及可读存储介质,所述方法包括:建立耳机盒与第一耳机对的私有链接和监听连接;根据监听连接,通过第一耳机对监听耳机盒与第一终端之间的连接信息,以使第一耳机对进入音频播放状态;耳机盒在接收音频分享请求后,将广播信息发送至第二耳机对,以使得第二耳机对根据所述广播信息进行广播数据的接收,并且同步为第一耳机对的音频播放状态;其中,广播信息通过耳机盒根据私有链接同步至第一耳机对。本申请能够通过现有蓝牙技术即可实现用户使用蓝牙音乐分享功能,克服现有技术需要支持LE Audio技术的手机才能实现蓝牙音乐分享功能的缺陷。

The present application proposes an audio sharing method, device, system and readable storage medium, the method comprising: establishing a private link and monitoring connection between an earphone box and a first earphone pair; according to the monitoring connection, monitoring the connection information between the earphone box and the first terminal through the first earphone pair, so that the first earphone pair enters the audio playing state; after receiving the audio sharing request, the earphone box sends the broadcast information to the second earphone pair, so that the second earphone pair receives the broadcast data according to the broadcast information, and synchronizes to the audio playing state of the first earphone pair; wherein the broadcast information is synchronized to the first earphone pair through the earphone box according to the private link. The present application can enable users to use the Bluetooth music sharing function through the existing Bluetooth technology, overcoming the defect that the existing technology requires a mobile phone that supports LE Audio technology to realize the Bluetooth music sharing function.

Description

Audio sharing method, device and system and readable storage medium
Technical Field
The application relates to the technical field of audio communication, in particular to an audio sharing method, an audio sharing device, an audio sharing system and a readable storage medium.
Background
The LE Audio (Low Energy Audio) technology, as a new generation technology of bluetooth Audio, brings new Audio experience functions including enhancing Audio performance, adding Audio sharing functions and hearing aid support, where the Audio sharing functions enable users to share their own music to other users. For example, the user a wants to share the music of the mobile phone to the earphone user B, the user B only needs to scan the audio broadcast information of the mobile phone of the user a with the mobile phone of the user B, then selects the audio broadcast of the user a at the mobile phone end and transmits the audio broadcast to the earphone of the user B, if the audio content of the user a is encrypted, the user a needs to share BoardCast _code (broadcast key) to the mobile phone of the user B, and the mobile phone of the user B is synchronized to the earphone to decrypt the broadcast content, thereby completing the audio sharing function.
However, in the process of designing and implementing the present application, the inventor finds that at least the following problems exist, because LE Audio is an Audio technology which is just started to be popularized in recent years, but the existing mobile phones on the market do not support the technology basically, so that users need to use the mobile phones supporting the LE Audio technology to experience the Audio sharing function, high cost of replacing the mobile phones is brought, the user experience of the Audio sharing function of the LE Audio technology is not facilitated, on the other hand, because the Audio sharing function is unidirectional, when the users need to switch between a music sharing mode and a listening mode, the prior art needs to stop broadcasting before establishing a classical connection, or disconnect the classical connection to reestablish broadcasting, so that additional time is required to be added to establish the connection, and user experience is reduced.
The foregoing description is provided for general background information and does not necessarily constitute prior art.
Disclosure of Invention
In order to solve the technical problems, the application provides an Audio sharing method, an Audio sharing device, an Audio sharing system and a readable storage medium, which can realize the function of sharing Bluetooth music by a user through the existing Bluetooth technology and overcome the defect that the Bluetooth music sharing function can be realized only by a mobile phone supporting the LE Audio technology in the prior art.
In order to solve the above technical problems, a first aspect of the present application provides an audio sharing method, which includes:
Establishing a private link between the earphone box and a first earphone pair, and establishing a monitoring connection between the first earphone pair and the earphone box;
according to the monitoring connection, the connection information between the earphone box and the first terminal is monitored through the first earphone pair, so that the first earphone pair enters an audio playing state;
after receiving an audio sharing request initiated by a first terminal, the earphone box sends the broadcast information to a second earphone pair, so that the second earphone pair receives broadcast data according to the broadcast information and synchronizes to an audio playing state of the first earphone pair, wherein the broadcast information is synchronized to the first earphone pair through the earphone box according to the private link.
Optionally, after the broadcast information is synchronized to the first earphone pair by the earphone box according to the private link, the method further comprises:
Receiving audio data sent by the first terminal through the earphone box, and successively decoding and encoding the audio data;
And audio playing is carried out on the audio data which is monitored according to the broadcast information and subjected to decoding and encoding processing by the earphone box through the first earphone.
Optionally, before the earphone box receives the audio sharing request, the method further comprises:
and encrypting the broadcast information through the first terminal to generate encrypted broadcast information.
Optionally, after the second terminal scans the audio sharing broadcast source of the first terminal, the broadcast information is sent to a second earphone pair, which specifically includes:
if the broadcast information is encrypted broadcast information, the broadcast key is sent to a second earphone pair through the second terminal, so that the second earphone pair decrypts the broadcast information according to the broadcast key;
and after the second terminal scans the audio sharing broadcast source of the first terminal, receiving broadcast information through the second earphone and decrypting the broadcast information.
Optionally, after the broadcasting key is sent to a second earphone pair by the second terminal so that the second earphone pair decrypts the broadcasting information according to the broadcasting key, the method further includes:
Writing a broadcast information source into the second earphone pair through the second terminal so that when the second earphone scans the audio sharing broadcast source, synchronous broadcasting is started according to the decrypted broadcast information;
And after receiving a broadcast key request initiated by the second earphone pair through the second terminal, writing the broadcast key into the second earphone pair so that the second earphone pair decrypts the broadcast information according to the broadcast key.
Optionally, after the completing the audio sharing, the method further comprises:
When a request for switching to a monitoring mode is received, closing a private link between the earphone box and a first earphone pair, and judging a master earphone and a slave earphone in the first earphone pair;
Establishing a Bluetooth connection between the master earphone and the first terminal, and establishing a monitoring connection between the slave earphone and the first terminal;
And completing audio monitoring and audio transmission of the first terminal according to the Bluetooth connection and the monitoring connection through the first earphone pair.
Optionally, after the audio listening and audio transmission to the first terminal are completed according to the bluetooth connection and listening connection through the first pair of headphones, the method further includes:
When receiving a request for switching to audio sharing, closing Bluetooth connection between the master earphone and the first terminal, and closing monitoring connection between the slave earphone and the first terminal;
reestablishing a private link between the earphone box and a first earphone pair, and establishing a listening connection between the first earphone pair and the earphone box;
According to the monitoring connection, the connection information between the earphone box and the first terminal is monitored through the first earphone pair, so that the first earphone pair enters an audio playing state;
after receiving the audio sharing request, the earphone box scans an audio sharing broadcast source of the first terminal at a second terminal and then sends the broadcast information to a second earphone pair so that the second earphone pair receives broadcast data according to the broadcast information and synchronizes to an audio playing state of the first earphone pair to complete audio sharing, wherein the broadcast information is synchronized to the first earphone pair according to the private link through the earphone box.
Accordingly, a second aspect of the present application provides an audio sharing apparatus, including:
the connection establishment module is used for establishing a private link between the earphone box and a first earphone pair and establishing monitoring connection between the first earphone pair and the earphone box;
the audio playing module is used for monitoring the connection information between the earphone box and the first terminal through the first earphone pair according to the monitoring connection so as to enable the first earphone pair to enter an audio playing state;
The audio sharing module is used for sending the broadcast information to a second earphone pair after the earphone box receives an audio sharing request initiated by the first terminal, so that the second earphone pair receives broadcast data according to the broadcast information and synchronizes the broadcast data to an audio playing state of the first earphone pair, wherein the broadcast information is synchronized to the first earphone pair through the earphone box according to the private link.
The third aspect of the present application further provides an audio sharing system, which includes an earphone box and a first earphone pair, wherein the earphone box is configured to establish a private link with the first earphone pair, after receiving an audio sharing request, send the broadcast information to the second earphone pair after a second terminal scans an audio sharing broadcast source of the first terminal, so that the second earphone pair receives broadcast data according to the broadcast information, synchronizes to an audio playing state of the first earphone pair, and completes audio sharing, the broadcast information is synchronized to the first earphone pair according to the private link through the earphone box, and the first earphone pair is configured to establish a listening connection with the earphone box, and then enter the audio playing state after listening to connection information between the earphone box and the first terminal according to the listening connection.
The fourth aspect of the present application also proposes a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any of the above-mentioned audio sharing methods when executing the computer program.
A fifth aspect of the present application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the audio sharing method described above.
The embodiment of the invention has the following beneficial effects:
The audio sharing method, device and system and the readable storage medium comprise the steps of establishing private links between an earphone box and a first earphone pair, establishing monitoring connection between the first earphone pair and the earphone box, enabling the first earphone pair to enter an audio playing state by monitoring connection information between the earphone box and a first terminal through the first earphone pair according to the monitoring connection, and sending broadcast information to a second earphone pair after the earphone box receives an audio sharing request initiated by the first terminal, so that the second earphone pair receives broadcast data according to the broadcast information and synchronizes to the audio playing state of the first earphone pair, wherein the broadcast information is synchronized to the first earphone pair through the earphone box according to the private links. According to the Audio sharing method, classical connection is established through the earphone box and the earphone pair, meanwhile, the earphone pair is established to monitor connection between the earphone box and the terminal, after music is played by the terminal, decoding and encoding processing are carried out on Audio data through the earphone box as an intermediate station, broadcasting information is synchronized to the earphone pair to be played, when a current user needs to use an Audio sharing function, other users can synchronize to a broadcasting channel of a sharing user to share the Audio after only scanning an Audio sharing broadcasting source of the current user terminal through the terminal, and therefore the user can use the Bluetooth music sharing function through the existing Bluetooth technology, the defect that the Bluetooth music sharing function can be achieved through a mobile phone supporting the LE Audio technology in the prior art is overcome.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart illustrating a first implementation of an audio sharing method according to an embodiment of the present application;
Fig. 2 is a flowchart illustrating a second implementation of an audio sharing method according to an embodiment of the present application;
Fig. 3 is a flowchart illustrating a third implementation of an audio sharing method according to an embodiment of the present application;
Fig. 4 is a flowchart illustrating a fourth implementation of an audio sharing method according to an embodiment of the present application;
Fig. 5 is a flowchart illustrating a fifth implementation of an audio sharing method according to an embodiment of the present application;
Fig. 6 is a flowchart illustrating a sixth implementation of an audio sharing method according to an embodiment of the present application;
Fig. 7 is a flowchart of a seventh implementation of an audio sharing method according to an embodiment of the present application;
Fig. 8 is a schematic structural diagram of an audio sharing device according to an embodiment of the present application;
Fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments. Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
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, the element(s) defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other like elements in different embodiments of the application having the same meaning as may be defined by the same meaning as they are explained in this particular embodiment or by further reference to the context of this particular embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The term "if" as used herein may be interpreted as "at..once" or "when..once" or "in response to a determination", depending on the context. Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes," and/or "including" specify the presence of stated features, steps, operations, elements, components, items, categories, and/or groups, but do not preclude the presence, presence or addition of one or more other features, steps, operations, elements, components, items, categories, and/or groups. The terms "or", "and/or", "including at least one of", and the like, as used herein, may be construed as inclusive, or mean any one or any combination. For example, "including at least one of" A, B, C "means" any of A, B, C, A and B, A and C, B and C, A and B and C ", and as yet another example," A, B or C "or" A, B and/or C "means" any of A, B, C, A and B, A and C, B and C, A and B and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are in some way inherently mutually exclusive.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily occurring in sequence, but may be performed alternately or alternately with other steps or at least a portion of the other steps or stages.
The words "if", as used herein, may be interpreted as "at" or "when" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should be noted that, in this document, step numbers such as S10 and S20 are adopted, and the purpose of the present application is to more clearly and briefly describe the corresponding content, and not to constitute a substantial limitation on the sequence, and those skilled in the art may execute S20 first and then execute S10 when implementing the present application, which is within the scope of protection of the present application.
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In the following description, suffixes such as "module", "part" or "unit" for representing elements are used only for facilitating the description of the present application, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
Firstly, the application scenario provided by the application, such as providing an Audio sharing method, device, system and readable storage medium, can realize that a user can use a Bluetooth music sharing function through the existing Bluetooth technology, and overcomes the defect that the existing technology can realize the Bluetooth music sharing function only by a mobile phone supporting LE Audio technology.
Referring to fig. 1, fig. 1 is a flowchart illustrating a first implementation of an audio sharing method according to an embodiment of the present application. The method comprises the following steps:
s10, establishing a private link between the earphone box and the first earphone pair, and establishing monitoring connection between the first earphone pair and the earphone box.
Specifically, for step S10, a private link, such as a classical connection, such as a bluetooth connection, between the earphone box and the first earphone pair is first established through the earphone box, and at the same time, a listening connection between the first earphone pair and the earphone box is established, so that the first earphone pair listens to the connection between the earphone box and the first terminal according to the listening connection, at this time, the left earphone and the right earphone in the first earphone pair are not in a master-slave relationship, and the connection between the earphone box and the first terminal is simultaneously listened through the left earphone and the right earphone, instead of only the connection between the terminal and the earphone in the prior art.
S20, according to the monitoring connection, the connection information between the earphone box and the first terminal is monitored through the first earphone pair, so that the first earphone pair enters an audio playing state.
Specifically, for step S20, after the first terminal plays the music, the first terminal decodes the music data through the earphone box, encodes the decoded music data, then synchronizes the broadcast information as the broadcast source (intermediate station) to the first earphone pair, monitors the connection information between the earphone box and the first terminal according to the monitoring connection, monitors the broadcast audio, and plays the audio at the same time, and at the moment, the first earphone pair enters an audio playing state. Wherein the broadcast information includes, but is not limited to, information such as broadcast address type, broadcast address, and broadcast ID.
S30, after receiving an audio sharing request initiated by the first terminal, the earphone box sends broadcast information to the second earphone pair, so that the second earphone pair receives broadcast data according to the broadcast information and synchronizes to an audio playing state of the first earphone pair, wherein the broadcast information is synchronized to the first earphone pair through the earphone box according to private links.
Specifically, for step S30, after receiving the audio sharing request initiated by the first terminal, the earphone box scans the audio sharing broadcast source of the first terminal through the second terminal to obtain corresponding broadcast information, and sends the broadcast information to the second earphone pair to be shared in response to the audio sharing request information, so that the second earphone pair receives the broadcast data broadcast by the first terminal according to the received broadcast information, thereby synchronizing to the audio playing state of the first earphone pair, completing the synchronous audio playing of the first earphone pair and the second earphone pair, and completing the audio sharing. Wherein the broadcast information is synchronized to the first headset pair by the headset box according to the private link with the first headset pair. It should be noted that, in this embodiment, the first terminal and the first earphone pair are in an exclusive pairing relationship, that is, the first earphone pair is a pairing earphone of the first terminal, and similarly, the second terminal and the second earphone pair are in an exclusive pairing relationship, that is, the second earphone pair is a pairing earphone of the second terminal.
In the prior art, a user a wants to share music of a mobile phone a to an earphone of a user B for simultaneous playing, and needs to support the LE Audio technology by both mobile phones, but most mobile phones do not support the LE Audio technology at present, so that high cost of mobile phone replacement is brought, and the user experience of the Audio sharing function of the LE Audio technology is not facilitated. In this embodiment, the private link and the listening connection between the earphone box and the earphone pair are established through the earphone box as the intermediate station, after the terminal plays the music, the terminal decodes and encodes the Audio data, and synchronizes the broadcast information to the earphone pair for playing, when the current user needs to use the Audio sharing function, other users can synchronize to the broadcast channel of the sharing user for Audio sharing only by scanning the Audio sharing broadcast source of the current user terminal through the terminal of the user, thereby realizing the function of using bluetooth music by the existing bluetooth technology and overcoming the defect that the mobile phone supporting the LE Audio technology in the prior art can realize the function of sharing bluetooth music.
Optionally, in some embodiments, as shown in fig. 2, after the broadcast information is synchronized to the first earphone pair by the earphone box according to the private link, the method may specifically further include:
s21, receiving audio data sent by the first terminal through the earphone box, and successively decoding and encoding the audio data;
S22, audio data which are subjected to decoding and encoding processing by the earphone box and monitored according to the broadcast information are subjected to audio playing through the first earphone.
In a specific embodiment, in step S20, after the first earphone pair monitors connection information between the earphone box and the first terminal according to the monitoring connection pair, the earphone box synchronizes broadcast information to the first earphone pair according to a private link with the first earphone pair, and the first earphone pair starts to monitor broadcast audio, and simultaneously, after the first terminal plays music, the earphone box firstly decodes audio data (for example, streaming media data in an A2DP format) sent by the first terminal, and then encodes the audio data after the decoding process is completed, for example, the audio data is encoded into an LC3/LC3+ format, after the encoding is completed, the first earphone pair monitors the audio data after the encoding of the earphone box is completed according to the broadcast information obtained by synchronization, and at this time, the first earphone pair enters an audio playing state.
Optionally, in some embodiments, before the earphone box receives the audio sharing request, the method specifically may further include:
and encrypting the broadcast information through the first terminal to generate encrypted broadcast information.
Specifically, before the audio sharing request is received by the earphone box in step S30, the audio sharing method further includes encrypting the broadcast information by the first terminal, so as to generate encrypted broadcast information, where the encryption modes include, but are not limited to, digital passwords, two-dimensional code encryption, and the like. By encrypting the broadcast information, the security and privacy of audio sharing can be improved, and the leakage of audio data is avoided.
Correspondingly, after the current broadcast information is encrypted broadcast information, as shown in fig. 3, in step S30, after the second terminal scans the audio sharing broadcast source of the first terminal, the broadcast information is sent to the second earphone pair, which may specifically include:
s31, if the broadcast information is encrypted broadcast information, sending the broadcast key to a second earphone pair through a second terminal so that the second earphone pair decrypts the broadcast information according to the broadcast key;
S32, after the second terminal scans the audio sharing broadcast source of the first terminal, the second terminal receives the broadcast information through the second earphone and decrypts the broadcast information.
In a specific embodiment, after a user initiates a request for encrypting a broadcast, the broadcast information is encrypted through a first earphone, when an audio sharing request initiated by a second terminal is received after the encryption is completed, whether a broadcast key input by the second terminal is correct or not is judged firstly through the second earphone pair, after the input broadcast key is judged to be correct, the broadcast information sent by the first terminal is decrypted according to the broadcast key, an audio sharing broadcast source of the first terminal is scanned by the second terminal and then is synchronized to a paired second earphone pair, the audio sharing broadcast source is also a broadcast channel between the first terminal and an earphone box, and the audio sharing is completed by receiving broadcast data according to the decrypted broadcast information through the second earphone pair and playing audio.
Optionally, in some embodiments, as shown in fig. 3, after step S31, the method specifically may further include:
S311, writing the broadcast information source into a second earphone pair through a second terminal so that synchronous broadcasting starts according to the decrypted broadcast information when the second earphone scans the audio sharing broadcast source;
s312, after receiving a broadcast key request initiated by the second earphone pair through the second terminal, writing the broadcast key into the second earphone pair so that the second earphone pair decrypts the broadcast information according to the broadcast key.
Specifically, in step S31, after the second terminal sends the broadcast information to the second earphone pair, the second terminal writes the decrypted broadcast information source to the second earphone pair, so that the second earphone pair starts to synchronize the broadcast information according to the decrypted broadcast information, after the broadcast information source is written, the second terminal receives a broadcast key request initiated by the second earphone pair, writes the broadcast key to the second earphone pair, so that the second earphone pair can decrypt the broadcast information according to the written broadcast key, can scan the designated broadcast source through the second earphone pair, starts to synchronize broadcast according to the decrypted broadcast information, and receives the broadcast data.
Optionally, in some embodiments, as shown in fig. 4, after step S40, the method specifically may further include:
s41, closing a private link between the earphone box and the first earphone pair after receiving a request for switching to a monitoring mode, and judging a master earphone and a slave earphone in the first earphone pair;
s42, establishing Bluetooth connection between the master earphone and the first terminal, and establishing monitoring connection between the slave earphone and the first terminal;
s43, completing audio monitoring and audio transmission of the first terminal according to the Bluetooth connection and the monitoring connection through the first earphone pair.
In a specific embodiment, after the audio sharing is completed in step S40, the method for switching the audio sharing mode to the listening mode is further provided in this embodiment, for example, when the first terminal has an incoming call, the first terminal needs to switch to the listening mode while the current audio sharing mode is closed, first, the private link between the earphone box and the first earphone pair is closed, the master ear and the slave ear of the current first earphone pair are determined, the data sending function of the master ear is opened, meanwhile, the data transmission channel between the earphone box and the first terminal is closed, the master-slave switching is completed, then bluetooth connection between the master ear and the first terminal is established, meanwhile, the listening connection between the slave ear and the first terminal is established, after the first terminal is switched to the listening mode, audio transmission is performed to the first terminal according to the bluetooth connection through the master ear, and the slave ear listens audio data between the first terminal and the master ear according to the listening connection, so that seamless switching between the audio sharing mode and the listening mode is realized, and the user experience is improved.
Optionally, in some embodiments, as shown in fig. 4, after step S43, the method specifically may further include:
s44, after receiving the request for switching to audio sharing, closing Bluetooth connection between the master earphone and the first terminal, and closing monitoring connection between the slave earphone and the first terminal;
S45, reestablishing private links of the earphone box and the first earphone pair, and establishing monitoring connection between the first earphone pair and the earphone box;
s46, monitoring connection information between the earphone box and the first terminal according to the monitoring connection through the first earphone pair, and enabling the first earphone pair to enter an audio playing state according to the connection information between the earphone box and the first terminal through the first earphone pair;
S47, after receiving the audio sharing request, the earphone box scans an audio sharing broadcast source of the first terminal at the second terminal and then sends broadcast information to the second earphone pair, so that the second earphone pair receives broadcast data according to the broadcast information and synchronizes to an audio playing state of the first earphone pair to complete audio sharing, wherein the broadcast information is synchronized to the first earphone pair through the earphone box according to private links.
Correspondingly, this embodiment also provides a method for seamlessly switching the listening mode to the audio sharing mode, for example, when the call of the first terminal is ended, the audio sharing mode needs to be switched immediately, the bluetooth connection between the master earphone in the first earphone pair and the first terminal is closed first, the listening connection between the slave earphone in the first earphone pair and the first terminal is closed, the master-slave switching of the first earphone pair is completed, the audio sharing mode is switched to, the private link and the listening connection between the earphone box and the first earphone pair are reestablished, after the audio sharing mode is switched, the audio data of the music played by the first terminal are obtained again through the earphone box, the music data are decoded again through the earphone box, the decoding process is performed, then the earphone box is used as a broadcasting source (intermediate station) to synchronize the broadcasting information to the first earphone pair, the first earphone pair monitors the audio playing according to the connection information between the listening connection earphone box and the first terminal, and at the moment, and the first earphone pair enters an audio playing state. The second terminal sends the broadcast information to the shared second earphone pair according to the obtained broadcast information, so that the second earphone pair receives the broadcast data broadcast by the first terminal according to the received broadcast information again, the broadcast information is synchronized to the audio playing state of the first earphone pair, the synchronous audio playing of the first earphone pair and the second earphone pair is completed again, the audio sharing is continued, the seamless switching between the monitoring mode and the audio sharing mode is realized, the time consumption for establishing connection is reduced, and the user experience is improved.
As shown in fig. 5, the embodiment of the present application further provides a fifth implementation manner of the audio sharing method, when audio sharing is required, after a broadcast source is written into a left ear and a right ear in the second earphone pair through a mobile phone terminal, the left ear and the right ear begin scanning and synchronously broadcast according to broadcast information, and begin receiving broadcast data.
As shown in fig. 6, the embodiment of the present application further provides a sixth implementation manner of the audio sharing method, firstly, a mobile phone and an earphone box are connected by classical bluetooth, private links are respectively established between the earphone box and a left ear and a right ear of a first earphone pair, listening connections between the left ear and the earphone box and between the right ear and the earphone box are respectively established through the earphone box, first audio data is sent to the earphone box through the mobile phone, wherein the first audio data may be A2DP data, A2DP (Advanced Audio Distribution Profile) is a bluetooth audio transmission model protocol, the first audio data is decoded and encoded through the earphone box as a transfer station, and then is sent to the left ear and the right ear after being encoded into second audio data, the second audio data may be BIS data, and BIS is a bluetooth earphone authentication protocol. Under the condition of incoming call, the audio sharing is required to be closed, namely the broadcasting source function is stopped, the main ear and the sub ear of the current left ear and right ear are decided, the data transmission function is opened, meanwhile, the data transmission connection between the earphone box and the mobile phone is closed, broadcasting is stopped, the master-slave switching is initiated, and after the master-slave switching is completed, the seamless switching of the broadcasting sharing mode and the monitoring mode is realized.
As shown in fig. 7, the embodiment of the present application further provides a seventh implementation manner of the audio sharing method, which establishes a private link between the earphone box and the left ear and the right ear, establishes a classical bluetooth connection between the mobile phone and the left ear (master ear), establishes a listening connection between the mobile phone and the earphone box, and establishes a listening connection between the earphone box and the right ear (slave ear). When the music sharing function is needed to be used, the main ear data transmission function in the left ear and the right ear is needed to be turned off, the data transmission connection between the mobile phone and the earphone box is turned on, the box is used as a broadcast stream to start broadcasting, master-slave switching is initiated, bluetooth connection between the mobile phone and the earphone box is established, monitoring connection between the mobile phone and the left ear is established, the first audio data sent by the mobile phone is decoded and then encoded through the earphone box as a transfer station, the second audio data is encoded and sent to the left ear and the right ear, and the monitoring mode is switched to the audio sharing mode.
It can be seen that the audio sharing method provided by the embodiment of the application includes the steps of establishing a private link between an earphone box and a first earphone pair, establishing monitoring connection between the first earphone pair and the earphone box, monitoring connection information between the earphone box and a first terminal through the first earphone pair according to the monitoring connection so that the first earphone pair enters an audio playing state, sending broadcast information to a second earphone pair after receiving an audio sharing request by the earphone box so that the second earphone pair receives broadcast data according to the broadcast information, synchronizing the second earphone pair to the audio playing state of the first earphone pair, and completing audio sharing, wherein the broadcast information is synchronized to the first earphone pair through the earphone box according to the private link. According to the Audio sharing method, classical connection is established through the earphone box and the earphone pair, meanwhile, the earphone pair is established to monitor connection between the earphone box and the terminal, after music is played by the terminal, decoding and encoding processing are carried out on Audio data through the earphone box as an intermediate station, broadcasting information is synchronized to the earphone pair to be played, when a current user needs to use an Audio sharing function, other users can synchronize to a broadcasting channel of a sharing user to share the Audio after only scanning an Audio sharing broadcasting source of the current user terminal through the terminal, and therefore the user can use the Bluetooth music sharing function through the existing Bluetooth technology, the defect that the Bluetooth music sharing function can be achieved through a mobile phone supporting the LE Audio technology in the prior art is overcome.
Accordingly, referring to fig. 5, fig. 5 is a schematic structural diagram of the audio sharing device according to the embodiment of the present application, which may specifically include a connection establishment module 100, an audio playing module 200, and an audio sharing module 300.
The connection establishment module 100 is configured to establish a private link between the earphone box and the first earphone pair, and establish a listening connection between the first earphone pair and the earphone box.
Specifically, for the connection establishment module 100, a private link, such as a classical connection, such as a bluetooth connection, between the earphone box and the first earphone pair is first established through the earphone box, and at the same time, a listening connection between the first earphone pair and the earphone box is established, so that the first earphone pair listens to the connection between the earphone box and the first terminal according to the listening connection, and at this time, the left earphone and the right earphone in the first earphone pair are in a master-slave relationship, and simultaneously listen to the connection between the earphone box and the first terminal through the left earphone and the right earphone.
The audio playing module 200 is configured to monitor, according to the monitoring connection, connection information between the earphone box and the first terminal through the first earphone pair, so that the first earphone pair enters an audio playing state.
Specifically, for the audio playing module 200, after the first terminal plays the music, the first terminal decodes the music data through the earphone box, encodes the decoded music data, then synchronizes the broadcast information as the broadcast source (intermediate station) to the first earphone pair, monitors the connection information between the earphone box and the first terminal according to the monitoring connection, monitors the broadcast audio and simultaneously plays the audio, and at this time, the first earphone pair enters the audio playing state.
The audio sharing module 300 is configured to send broadcast information to the second earphone pair after receiving an audio sharing request initiated by the first terminal, so that the second earphone pair receives broadcast data according to the broadcast information and synchronizes the broadcast data to an audio playing state of the first earphone pair, where the broadcast information is synchronized to the first earphone pair according to the private link through the earphone box.
Specifically, for the audio sharing module 300, after receiving the audio sharing request initiated by the first terminal, the earphone box scans the audio sharing broadcast source of the first terminal through the second terminal to obtain corresponding broadcast information, and sends the broadcast information to the second earphone pair to be shared through the second terminal, so that the second earphone pair receives the broadcast data broadcasted by the first terminal according to the received broadcast information, and accordingly synchronizes to the audio playing state of the first earphone pair, synchronous audio playing of the first earphone pair and the second earphone pair is completed, and audio sharing is completed. Wherein the broadcast information is synchronized to the first headset pair by the headset box according to the private link with the first headset pair.
Optionally, in some embodiments, the audio sharing device may specifically further include a mode switching module, configured to close a private link between the earphone box and the first earphone pair and determine a master earphone and a slave earphone in the first earphone pair after receiving a request for switching to the listening mode, establish a bluetooth connection between the master earphone and the first terminal, and establish a listening connection between the slave earphone and the first terminal, and complete audio listening and audio transmission to the first terminal through the first earphone pair according to the bluetooth connection and the listening connection.
Optionally, in some embodiments, the audio sharing device may specifically further include a broadcast encryption module, configured to encrypt the broadcast information through the first terminal, and generate encrypted broadcast information.
In summary, in the audio sharing device provided by the embodiment of the application, the private link between the earphone box and the first earphone pair is first established through the connection establishment module 100, and the listening connection between the first earphone pair and the earphone box is established, then the audio playing module 200 listens the connection information between the earphone box and the first terminal through the first earphone pair according to the listening connection, so that the first earphone pair enters an audio playing state, and finally the audio sharing module 300 scans the audio sharing broadcast source of the first terminal through the earphone box after receiving the audio sharing request, and then sends the broadcast information to the second earphone pair, so that the second earphone pair receives broadcast data according to the broadcast information and synchronizes to the audio playing state of the first earphone pair, thereby completing audio sharing. In the embodiment, firstly, classical connection is established through the earphone box and the earphone pair, meanwhile, the earphone pair establishes monitoring connection to monitor the connection between the earphone box and the terminal, after the terminal plays music, the earphone box is used as an intermediate station to decode and encode Audio data, and broadcast information is synchronized to the earphone pair to play, when a current user needs to use an Audio sharing function, other users can synchronize to a broadcasting channel of a sharing user to share the Audio only by scanning an Audio sharing broadcasting source of the current user terminal through the terminal of the other users, so that the user can use the Bluetooth music sharing function through the existing Bluetooth technology, and the defect that the Bluetooth music sharing function can be realized only by a mobile phone which needs to support the LE Audio technology in the prior art is overcome; in addition, the application can realize the seamless switching between the Audio sharing mode and the monitoring mode without adding extra time consumption when the connection is established, thereby greatly improving the user experience.
The embodiment of the application also provides an audio sharing system, which comprises an earphone box and a first earphone pair, wherein the earphone box is used for establishing a private link with the first earphone pair, after receiving an audio sharing request, a second terminal scans an audio sharing broadcast source of the first terminal and then sends broadcast information to the second earphone pair, so that the second earphone pair receives broadcast data according to the broadcast information and synchronizes to an audio playing state of the first earphone pair to complete audio sharing, the broadcast information is synchronized to the first earphone pair according to the private link through the earphone box, the first earphone pair is used for establishing a monitoring connection with the earphone box, and the connection information between the earphone box and the first terminal is monitored according to the monitoring connection and then enters the audio playing state.
The embodiment of the application also provides a computer device, which can be a server, and the structure schematic diagram of the computer device is shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer equipment is used for storing data such as an audio sharing method and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection.
The computer program is executed by a processor to implement an audio sharing method. The audio sharing method comprises the steps of establishing a private link between an earphone box and a first earphone pair, establishing monitoring connection between the first earphone pair and the earphone box, monitoring connection information between the earphone box and a first terminal through the first earphone pair according to the monitoring connection so that the first earphone pair enters an audio playing state, after receiving an audio sharing request, sending broadcast information to a second earphone pair after the second terminal scans an audio sharing broadcast source of the first terminal, so that the second earphone pair receives broadcast data according to the broadcast information, synchronizes to the audio playing state of the first earphone pair, and completes audio sharing, wherein the broadcast information is synchronized to the first earphone pair through the earphone box according to the private link.
The embodiment of the application also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the method for realizing audio sharing comprises the steps of establishing a private link between an earphone box and a first earphone pair, establishing monitoring connection between the first earphone pair and the earphone box, monitoring connection information between the earphone box and a first terminal through the first earphone pair according to the monitoring connection so as to enable the first earphone pair to enter an audio playing state, after receiving an audio sharing request, the earphone box scans an audio sharing broadcast source of the first terminal through a second terminal and then sends broadcast information to the second earphone pair so as to enable the second earphone pair to receive broadcast data according to the broadcast information, synchronize to the audio playing state of the first earphone pair and complete audio sharing, and the broadcast information is synchronized to the first earphone pair through the earphone box according to the private link.
According to the Audio sharing method, classical connection is established through the earphone box and the earphone pair, meanwhile, the earphone pair is established to monitor connection between the earphone box and the terminal, after music is played by the terminal, decoding and encoding processing are carried out on Audio data through the earphone box serving as an intermediate station, broadcasting information is synchronized to the earphone pair to be played, when a current user needs to use an Audio sharing function, other users can synchronize to a broadcasting channel of a sharing user to share the Audio only by scanning an Audio sharing broadcasting source of the current user terminal through the terminal of the user, and therefore the user can use the Bluetooth music sharing function through the existing Bluetooth technology, the defect that a mobile phone supporting the LE Audio technology in the prior art can achieve the Bluetooth music sharing function is overcome. .
It can be understood that the above scenario is merely an example, and does not constitute a limitation on the application scenario of the technical solution provided by the embodiment of the present application, and the technical solution of the present application may also be applied to other scenarios. For example, as one of ordinary skill in the art can know, with the evolution of the system architecture and the appearance of new service scenarios, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
In the present application, the same or similar term concept, technical solution and/or application scenario description will be generally described in detail only when first appearing and then repeatedly appearing, and for brevity, the description will not be repeated generally, and in understanding the present application technical solution and the like, reference may be made to the previous related detailed description thereof for the same or similar term concept, technical solution and/or application scenario description and the like which are not described in detail later.
In the present application, the descriptions of the embodiments are emphasized, and the details or descriptions of the other embodiments may be referred to.
The technical features of the technical scheme of the application can be arbitrarily combined, and all possible combinations of the technical features in the above embodiment are not described for the sake of brevity, however, as long as there is no contradiction between the combinations of the technical features, the application shall be considered as the scope of the description of the application.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. Usable media may be magnetic media (e.g., floppy disks, storage disks, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state storage disk Solid STATE DISK (SSD)), etc.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

9. The audio sharing system is characterized by comprising an earphone box and a first earphone pair, wherein the earphone box is used for establishing a private link with the first earphone pair, after receiving an audio sharing request, a second terminal scans an audio sharing broadcast source of the first terminal to obtain corresponding broadcast information, the broadcast information is sent to the second earphone pair in response to the audio sharing request information, so that the second earphone pair receives broadcast data according to the broadcast information and synchronizes to an audio playing state of the first earphone pair to complete audio sharing, the broadcast information is synchronized to the first earphone pair according to the private link through the earphone box, the first earphone pair is used for establishing a monitoring connection with the earphone box, and the first earphone pair enters the audio playing state after monitoring connection information between the earphone box and the first terminal according to the monitoring connection.
CN202210476106.3A2022-04-292022-04-29 Audio sharing method, device, system and readable storage mediumActiveCN115002734B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210476106.3ACN115002734B (en)2022-04-292022-04-29 Audio sharing method, device, system and readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210476106.3ACN115002734B (en)2022-04-292022-04-29 Audio sharing method, device, system and readable storage medium

Publications (2)

Publication NumberPublication Date
CN115002734A CN115002734A (en)2022-09-02
CN115002734Btrue CN115002734B (en)2024-12-24

Family

ID=83025413

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210476106.3AActiveCN115002734B (en)2022-04-292022-04-29 Audio sharing method, device, system and readable storage medium

Country Status (1)

CountryLink
CN (1)CN115002734B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115175065B (en)*2022-09-062023-01-17荣耀终端有限公司 Broadcasting method, TWS earphone and storage medium
CN115665671B (en)*2022-09-162025-08-26Oppo广东移动通信有限公司 Audio data sharing method, device, electronic device and storage medium
CN116017312A (en)*2022-12-022023-04-25联想(北京)有限公司 A data processing method and electronic device
WO2025041534A1 (en)*2023-08-232025-02-27ソニーグループ株式会社Communication device and communication method

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111447600A (en)*2020-03-312020-07-24歌尔科技有限公司Audio sharing method for wireless earphone, terminal device and storage medium
CN113225693A (en)*2019-04-182021-08-06华为技术有限公司Bluetooth connection method, equipment and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US9913079B2 (en)*2015-06-052018-03-06Apple Inc.Cloud-based proximity pairing and switching for peer-to-peer devices
CN113645573B (en)*2021-07-222023-06-09深圳市冠旭电子股份有限公司 Earphone configuration data sharing method, earphone and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113225693A (en)*2019-04-182021-08-06华为技术有限公司Bluetooth connection method, equipment and system
CN111447600A (en)*2020-03-312020-07-24歌尔科技有限公司Audio sharing method for wireless earphone, terminal device and storage medium

Also Published As

Publication numberPublication date
CN115002734A (en)2022-09-02

Similar Documents

PublicationPublication DateTitle
CN115002734B (en) Audio sharing method, device, system and readable storage medium
US7983615B2 (en)Configuring and connecting to a media wireless network
EP3127280B1 (en)Apparatus and method for the offset rendering of multimedia contents
EP3591896B1 (en)Negotiation of security procedure for a data session
US20150135240A1 (en)Video display terminal, video transmission terminal, video communication system, video display method, video transmission method, and computer-readable recording medium recording program
US20170099274A1 (en)Call encryption systems and methods
CN104768153B (en)Send, receive the method and its wifi terminals of network configuration information
WO2015074445A1 (en)Multipath wireless displaying method and device
CN113225722A (en)Data transmission method, system, chip, electronic device and storage medium
CN104125071B (en) Communication method, system and communication terminal
KR101624904B1 (en)Apparatus and method for playing the multisound channel content using dlna in portable communication system
JP2014502461A (en) Method and apparatus for sending and receiving secure and non-secure data
CN103582165B (en)Connection method for building up, equipment and system, data transmission method, equipment and system
WO2016203877A1 (en)Communication device, communication method, program, and communication system
CN115001682A (en)Audio sharing method and device
US11140480B2 (en)Indirect sourced cognitive loudspeaker system
US7400730B2 (en)Cryptographic communication method in communication system
CN104427381A (en)Play method and device
JP4943071B2 (en) Wireless communication method
CN115086491A (en)Video color ring playing method, transmission method, device and communication equipment
CN112118610B (en)Network distribution method and system for wireless intelligent equipment
WO2017054525A1 (en)Call encryption method and device
CN115589461A (en) Audio and video call system and audio and video call method
CN119729423A (en)Bluetooth device configuration method and device, electronic device and storage medium
JP2010124422A (en)Wireless communication device and method of authentication in wireless communication device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp