CN116032402A - Broadcast audio playing method and device, electronic equipment and storage medium - Google Patents

Broadcast audio playing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116032402A
CN116032402A CN202211511381.0A CN202211511381A CN116032402A CN 116032402 A CN116032402 A CN 116032402A CN 202211511381 A CN202211511381 A CN 202211511381A CN 116032402 A CN116032402 A CN 116032402A
Authority
CN
China
Prior art keywords
broadcast
touch operation
information
broadcasting
broadcast audio
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
CN202211511381.0A
Other languages
Chinese (zh)
Inventor
杜冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202211511381.0A priority Critical patent/CN116032402A/en
Publication of CN116032402A publication Critical patent/CN116032402A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application discloses a broadcast audio playing method, a device, electronic equipment and a storage medium, which are applied to the technical field of audio application, wherein the broadcast audio playing method is applied to a wireless earphone and comprises the following steps: scanning the current environment to obtain broadcast synchronous information of at least one broadcast audio source in the current environment; performing voice broadcasting according to each piece of broadcasting synchronous information, and acquiring a touch operation instruction aiming at each piece of broadcasting synchronous information; determining a target broadcast audio source according to the touch operation instruction, and synchronizing with the target broadcast audio source; and receiving the digital audio stream of the target broadcast audio source and playing the sound signal corresponding to the digital audio stream. The method and the device solve the technical problem that in the prior art, the playing mode for realizing the Auracast broadcast audio is too complicated, so that the convenience of Auracast broadcast audio playing is low.

Description

Broadcast audio playing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of audio applications, and in particular, to a broadcast audio playing method, apparatus, electronic device, and storage medium.
Background
The audiocast is a Bluetooth LE Audio (Low Energy Audio) broadcast specification recently published by the Bluetooth SIG (Bluetooth Special Interest Group). Auracast enables an unlimited number of Auracast receiving devices, such as TWS (True Wireless Stereo, real Wireless stereo) headphones, hearing aids, and Bluetooth audio devices such as wireless speakers, to simultaneously receive audio broadcasts from Auracast transmitting devices such as smartphones, computers or televisions.
Existing Auracast typically requires a user interface provided by means of an auxiliary device with a display screen (e.g. a cell phone, a smart watch, a tablet computer, etc.), so that the user can select the corresponding broadcast for joining. Namely, the playing mode for realizing the Auracast broadcast audio in the prior art is too complicated, so that the convenience of playing the Auracast broadcast audio is low.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The main objective of the present application is to provide a broadcast audio playing method, an electronic device and a computer readable storage medium, which aim to solve the technical problem that in the prior art, the playing mode of realizing the Auracast broadcast audio is too complicated, resulting in low convenience of playing the Auracast broadcast audio.
In order to achieve the above object, the present application provides a broadcast audio playing method, which is applied to a wireless earphone, and the broadcast audio playing method includes:
scanning the current environment to obtain broadcast synchronous information of at least one broadcast audio source in the current environment;
performing voice broadcasting according to each piece of broadcasting synchronous information, and acquiring a touch operation instruction aiming at each piece of broadcasting synchronous information;
determining a target broadcast audio source according to the touch operation instruction, and synchronizing with the target broadcast audio source;
and receiving the digital audio stream of the target broadcast audio source and playing the sound signal corresponding to the digital audio stream.
Optionally, the broadcasting of the broadcast audio source includes extended broadcasting, periodic broadcasting, and isochronous broadcasting;
the step of scanning the current environment to obtain the broadcast synchronization information of at least one broadcast audio source in the current environment comprises the following steps:
receiving a first protocol data unit of the extended broadcast on a main broadcast channel of the extended broadcast, and acquiring first synchronization information of the periodic broadcast from an auxiliary broadcast data unit pointed by the first protocol data unit;
synchronizing with the periodical broadcast according to the first synchronization information, receiving a second protocol data unit of the periodical broadcast, and acquiring broadcast isochronous stream information of the isochronous broadcast from the second protocol data unit;
And taking the broadcast isochronous stream information as broadcast synchronous information of a broadcast audio source.
Optionally, the step of performing voice broadcasting according to each piece of broadcast synchronization information and acquiring a touch operation instruction for each piece of broadcast synchronization information includes:
performing voice broadcasting on each piece of broadcasting synchronous information according to a preset ordering mode;
touch operation information aiming at broadcasting synchronous information broadcasted at present is collected, and a touch operation instruction corresponding to the touch operation information is determined.
Optionally, the step of determining the target broadcast audio source according to the touch operation instruction includes:
if the touch operation instruction is a switching instruction, switching the broadcasting synchronous information currently broadcasted, and executing the steps: acquiring touch operation information aiming at broadcasting synchronous information broadcasted currently, and determining a touch operation instruction corresponding to the touch operation information;
and if the touch operation instruction is a selection instruction, taking the broadcast audio source corresponding to the broadcast synchronization information which is currently broadcast as a target broadcast audio source.
Optionally, the touch operation instruction includes a selection instruction and a switching instruction, and the switching instruction includes a first switching instruction and a second switching instruction;
The step of determining the touch operation instruction corresponding to the touch operation information comprises the following steps:
when the touch operation information is characterized as a click, judging the touch operation instruction as a selection instruction;
when the touch operation information is characterized as double-click, judging that the touch operation instruction is a first switching instruction;
when the touch operation information is characterized as three strokes, judging that the touch operation instruction is a second switching instruction;
if the touch operation instruction is a switching instruction, the step of switching the currently broadcasted broadcast synchronization information includes:
if the touch operation instruction is a first switching instruction, taking the next broadcast synchronization information in the broadcast synchronization information as the broadcast synchronization information which is currently broadcast;
and if the touch operation instruction is a second switching instruction, taking the last broadcast synchronous information in the broadcast synchronous information as the broadcast synchronous information which is currently broadcast.
Optionally, the step of playing the sound signal corresponding to the digital audio stream includes:
performing preset audio restoration processing on the digital audio stream to obtain a sound signal corresponding to the digital audio stream;
and playing the sound signal through an audio output unit of the wireless earphone.
Optionally, after the step of receiving the digital audio stream of the target broadcast audio source, the broadcast audio playing method further includes:
judging whether the digital audio stream is encrypted data or not;
if the digital audio stream is encrypted data, collecting a voice signal input by a user voice, and identifying the voice signal to obtain a broadcast code corresponding to the voice signal;
decrypting the digital audio stream based on the broadcast code, and taking the decrypted digital audio stream as a new digital audio stream.
The application also provides a broadcast audio playing device, which is applied to a wireless earphone, and comprises:
the scanning module is used for scanning the current environment to obtain the broadcast synchronization information of at least one broadcast audio source in the current environment;
the broadcasting module is used for carrying out voice broadcasting according to each piece of broadcasting synchronous information and acquiring a touch operation instruction aiming at each piece of broadcasting synchronous information;
the synchronization module is used for determining a target broadcast audio source according to the touch operation instruction and synchronizing the target broadcast audio source with the target broadcast audio source;
and the playing module is used for receiving the digital audio stream of the target broadcast audio source and playing the sound signal corresponding to the digital audio stream.
The application also provides an electronic device, the electronic device comprising: the program of the broadcast audio playing method may implement the steps of the broadcast audio playing method as described above when executed by the processor.
The present application also provides a computer-readable storage medium having stored thereon a program for implementing a broadcast audio playing method, which when executed by a processor implements the steps of the broadcast audio playing method as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of a broadcast audio playing method as described above.
The application provides a broadcast audio playing method, a device, electronic equipment and a storage medium, which are applied to wireless headphones, wherein the broadcast audio playing method comprises the following steps: scanning the current environment to obtain the broadcast synchronization information of at least one broadcast audio source which is broadcasting in the current environment. And performing voice broadcasting according to each piece of broadcasting synchronous information, so that a user determines related information of a broadcasting audio source which is broadcasting. And further acquiring a touch operation instruction of broadcasting synchronous information which is broadcasted by a user. And determining a target broadcast audio source (namely, a broadcast audio source which the user expects to listen to) according to the touch operation instruction, and synchronizing with the target broadcast audio source. And further receiving the digital audio stream of the target broadcast audio source and playing the sound signal corresponding to the digital audio stream. Therefore, on the premise of not using auxiliary equipment with a display screen, the playing of the Auracast broadcast can be realized by using a wireless earphone, the playing requirement of the Auracast broadcast is reduced, and the convenience of playing the Auracast broadcast audio is improved. The method solves the technical problem that the playing mode of the Auracast broadcast audio is too complicated, so that the convenience of the Auracast broadcast audio is low in the prior art.
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 embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art 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 of a first embodiment of a broadcast audio playing method according to the present application;
FIG. 2 is a schematic diagram of a scenario in which a broadcast audio source according to the present application is broadcast;
fig. 3 is a flowchart of a second embodiment of a broadcast audio playing method according to the present application;
fig. 4 is a schematic structural diagram of a broadcast audio playing device according to the present application;
fig. 5 is a schematic device structure diagram of a hardware operating environment related to a broadcast audio playing method in an embodiment of the present application.
The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments.
Detailed Description
In order to make the above objects, features and advantages of the present application more comprehensible, the following description will make the technical solutions of the embodiments of the present application clear and complete with reference to the accompanying drawings of the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, based on the embodiments herein, which are within the scope of the protection of the present application, will be within the purview of one of ordinary skill in the art without the exercise of inventive faculty.
Example 1
An embodiment of the present application provides a broadcast audio playing method, in a first embodiment of the broadcast audio playing method of the present application, referring to fig. 1, the broadcast audio playing method is applied to a wireless earphone, and the broadcast audio playing method includes:
step S10, scanning the current environment to obtain broadcast synchronous information of at least one broadcast audio source in the current environment;
step S20, voice broadcasting is carried out according to each piece of broadcasting synchronous information, and touch operation instructions aiming at each piece of broadcasting synchronous information are obtained;
step S30, determining a target broadcast audio source according to the touch operation instruction, and synchronizing with the target broadcast audio source;
Step S40, receiving the digital audio stream of the target broadcast audio source and playing the sound signal corresponding to the digital audio stream.
In this embodiment, it should be noted that the broadcast audio playing method is applied to a wireless earphone, and the wireless earphone may be a wireless headset, an in-ear TWS earphone, a half-in-ear TWS earphone, or the like. It will be appreciated that the wireless headset is typically not provided with a display screen.
In addition, it should be noted that the broadcast audio source is an audio transmitting device that broadcasts to the outside based on the Auracast technology, such as a computer, a smart phone, a television, and the like. The broadcast synchronization information may include information of a broadcast name, broadcast content, broadcast configuration, transmission parameters, etc. of the broadcast audio source.
Illustratively, steps S10 through S40 include: and scanning the current environment through the Bluetooth module of the wireless earphone to obtain the broadcast synchronization information of at least one broadcast audio source in the current environment. Therefore, the information such as the broadcast name, broadcast content, broadcast configuration, transmission parameters and the like of each broadcast audio source in the current environment can be determined. The preset triggering operation can be to double-click a pairing key of the earphone box after opening a box cover of the earphone box, so that the scanning of the current environment is triggered, or the pairing key of the earphone box is pressed for a long time, and the preset triggering operation can be set according to specific requirements. Then, the text content of each piece of broadcast synchronization information can be converted into voice content according to a preset ordering mode (such as the order of signal intensity, the arrangement order of first letters of broadcast names and the like), and voice broadcasting is performed according to the order of the preset ordering mode, so that a user can listen to the broadcast synchronization information corresponding to each broadcast audio source. For example, after broadcasting one broadcast synchronization information in the order of the preset ordering manner, a touch operation instruction of the user for the broadcast synchronization information currently broadcasted may be obtained. When the touch operation instruction is a switching instruction, the currently broadcasted broadcast synchronization information may be switched, for example, to the next broadcast synchronization information or the last broadcast synchronization information in the broadcast synchronization information. And further, under the condition that the touch operation instruction is a selection instruction, taking the broadcast audio source corresponding to the broadcast synchronization information which is currently broadcast as a target broadcast audio source, so as to determine the target broadcast audio source which the user expects to listen to. Thus, the target broadcast audio source can be synchronized according to the information such as broadcast configuration, transmission parameters and the like in the broadcast synchronization information of the target broadcast audio source. Thus, after synchronizing with the target broadcast audio source, the digital audio stream of the target broadcast audio source is received, and a sound signal corresponding to the digital audio stream is played.
In another embodiment, the steps S10 to S40 include: and scanning the current environment through the Bluetooth module of the wireless earphone to obtain the broadcast synchronization information of at least one broadcast audio source in the current environment. Therefore, the information such as the broadcast name, broadcast content, broadcast configuration, transmission parameters and the like of the broadcast audio source in the current environment can be determined. Then, the text content of each broadcast synchronous information can be converted into voice content to be broadcasted one by one, so that a user can hear the broadcast synchronous information corresponding to each broadcast audio source. For example, the broadcast name and the broadcast content in the broadcast synchronization information of each broadcast audio source may be sequentially voice-broadcasted at preset interval durations (such as 2s, 3s, etc.). And then the user can perform touch operation on the broadcasting synchronous information currently being subjected to voice broadcasting, so that the wireless earphone acquires a touch operation instruction on the broadcasting synchronous information. And further, under the condition that the touch operation instruction is a selection instruction, taking the broadcast audio source corresponding to the broadcast synchronous information which is currently in voice broadcasting as a target broadcast audio source, thereby determining the target broadcast audio source which the user expects to listen to. Thus, the target broadcast audio source can be synchronized according to the information such as broadcast configuration, transmission parameters and the like in the broadcast synchronization information of the target broadcast audio source. Thus, after synchronizing with the target broadcast audio source, the digital audio stream of the target broadcast audio source is received, and a sound signal corresponding to the digital audio stream is played.
Wherein, the broadcasting of the broadcast audio source includes extended broadcasting, periodic broadcasting and isochronous broadcasting, and the step of scanning the current environment to obtain the broadcasting synchronization information of at least one broadcast audio source in the current environment in step S10 includes:
step S11, receiving a first protocol data unit of the extension broadcast on a main broadcast channel of the extension broadcast, and acquiring first synchronization information of the periodic broadcast from an auxiliary broadcast data unit pointed by the first protocol data unit;
step S12, synchronizing with the periodical broadcast according to the first synchronization information, receiving a second protocol data unit of the periodical broadcast, and acquiring broadcast isochronous stream information of the isochronous broadcast from the second protocol data unit;
and step S13, taking the broadcasting isochronous stream information as broadcasting synchronous information of a broadcasting audio source.
Referring to fig. 2, fig. 2 is a schematic view of a scenario in which a broadcast audio source according to the present application broadcasts. The broadcasting of the broadcast audio source includes extended broadcasting, periodic broadcasting, and isochronous broadcasting. The Access Address (Access Address) of each broadcast of the extension broadcast, the periodic broadcast, and the isochronous broadcast is different. The first protocol data unit D1 on the primary broadcast channel of the extended broadcast points to the subsidiary broadcast data unit D2, the subsidiary broadcast data unit D2 points to the periodic broadcast, and then points to the isochronous broadcast from the second protocol data unit D3 of the periodic broadcast, and the isochronous broadcast includes an isochronous broadcast stream D4, which is understood to be the digital audio stream.
Thus, illustratively, steps S11 through S12 include: the first protocol data unit of the extended broadcast may be received on the main broadcast channel of the extended broadcast using a main broadcast access address corresponding to the main broadcast channel specified in the bluetooth core specification. Wherein the first protocol data unit comprises information of time, frequency, etc. of a subsidiary broadcast channel of said extended broadcast directed to said subsidiary broadcast channel. And further acquiring the periodically broadcasted first synchronization information from the first protocol data unit directed to an ancillary broadcast data unit on an ancillary broadcast channel. Wherein the first synchronization information includes information of time, hopping map, access address, and the like of the periodic broadcast, which points to the periodic broadcast. And further, according to the first synchronization information, synchronizing with the periodic broadcast, receiving a second protocol data unit of the periodic broadcast, wherein the second protocol data unit comprises time of isochronous broadcast, a frequency hopping map, an access address and other BIG (Broadcast Isochronous Group, broadcast isochronous stream group) information. And acquiring broadcast isochronous stream information of the isochronous broadcast from the second protocol data unit. Wherein the broadcast isochronous stream information includes broadcast name of broadcast audio source, broadcast content, broadcast configuration, transmission parameters and other broadcast isochronous stream related information. And taking the broadcast isochronous stream information as broadcast synchronous information of a broadcast audio source.
The step S20 of performing voice broadcasting according to each piece of broadcast synchronization information and acquiring a touch operation instruction for each piece of broadcast synchronization information includes:
step S21, carrying out voice broadcasting on each piece of broadcasting synchronous information according to a preset ordering mode;
step S22, acquiring touch operation information aiming at broadcasting synchronous information broadcasted currently, and determining a touch operation instruction corresponding to the touch operation information.
Illustratively, steps S21 through S22 include: and carrying out voice broadcasting on each piece of broadcasting synchronous information according to a preset ordering mode. The preset sorting mode can be a sorting mode such as a signal strength sequence, a broadcast name initial letter sequence and the like of the broadcast audio source. And then, acquiring touch operation information of a user aiming at the broadcasting synchronous information currently broadcasted through a touch monitoring unit (such as a capacitive sensor, a pressure sensor and the like) of the wireless earphone. The touch operation information may characterize a user operation action. For example, it may be determined whether the user operation action represented by the touch operation information is a single click, a double click or a triple click by the number of clicks within a preset duration threshold (e.g., 1s, 2s, etc.) in the touch operation information. And then according to the user operation action represented by the touch operation information, inquiring a mapping table of preset user operation actions and touch operation instructions, and determining the touch operation instruction corresponding to the touch operation information.
Wherein, in step S30, the step of determining the target broadcast audio source according to the touch operation instruction includes:
step S31, if the touch operation instruction is a switching instruction, switching the currently broadcasted broadcast synchronization information, and executing the steps: acquiring touch operation information aiming at broadcasting synchronous information broadcasted currently, and determining a touch operation instruction corresponding to the touch operation information;
step S32, if the touch operation instruction is a selection instruction, taking the broadcast audio source corresponding to the broadcast synchronization information currently broadcast as a target broadcast audio source.
In this embodiment, it should be noted that the touch operation instruction may include a switching instruction and a selection instruction, where the switching instruction is used to switch the broadcast synchronization information that is currently broadcast. The selection instruction is used for determining a broadcast audio source corresponding to the broadcast synchronization information currently broadcast as a target broadcast audio source.
Illustratively, steps S31 through S32 include: after the broadcast synchronization information is subjected to voice broadcasting, a corresponding touch operation instruction can be determined through touch operation information aiming at the broadcast synchronization information which is currently broadcasted. If the touch operation instruction is a switching instruction, switching the broadcasting synchronous information currently broadcasted, and executing the steps: touch operation information aiming at broadcasting synchronous information broadcasted at present is collected, and a touch operation instruction corresponding to the touch operation information is determined. If the touch operation instruction is a selection instruction, which indicates that the user expects to listen to the broadcast audio source corresponding to the broadcast synchronization information which is currently broadcast, the broadcast audio source corresponding to the broadcast synchronization information which is currently broadcast is taken as the target broadcast audio source.
The touch operation instruction comprises a selection instruction and a switching instruction, and the switching instruction comprises a first switching instruction and a second switching instruction; the step of determining the touch operation instruction corresponding to the touch operation information in the step S22 includes:
step S221, when the touch operation information is characterized as a single click, judging the touch operation instruction as a selection instruction;
step S222, when the touch operation information is characterized as double-click, judging that the touch operation instruction is a first switching instruction;
step S223, when the touch operation information is characterized as three-click, judging the touch operation instruction as a second switching instruction;
if the touch operation instruction is a switching instruction, the step of switching the currently broadcasted broadcast synchronization information includes:
step S311, if the touch operation instruction is a first switching instruction, taking the next broadcast synchronization information in the broadcast synchronization information as the broadcast synchronization information currently broadcasted;
in step S312, if the touch operation instruction is the second switching instruction, the last broadcast synchronization information in the broadcast synchronization information is used as the currently broadcasted broadcast synchronization information.
In this embodiment, it should be noted that, a mapping table of preset user operation actions and touch operation instructions is that a touch operation instruction corresponding to a click in the user operation actions is a selection instruction; the touch operation instruction corresponding to double-click in the user operation action is a first switching instruction; and the touch operation instruction corresponding to the three strokes in the user operation action is a second switching instruction.
Illustratively, steps S221 through S223 include: when the user operation action represented by the touch operation information is a click, judging that the touch operation instruction is a selection instruction; when the user operation action represented by the touch operation information is double-click, judging that the touch operation instruction is a first switching instruction; and when the user operation action represented by the touch operation information is three-click, judging that the touch operation instruction is a second switching instruction.
Illustratively, steps S311 through S321 include: and if the touch operation instruction is a first switching instruction, taking the next broadcast synchronization information in the broadcast synchronization information as the broadcast synchronization information which is currently broadcast. The next broadcast synchronization information is broadcast synchronization information of the broadcast synchronization information which is arranged at the next bit after the broadcast synchronization information which is currently broadcast in each broadcast synchronization information in a preset ordering mode. And if the touch operation instruction is a second switching instruction, taking the last broadcast synchronous information in the broadcast synchronous information as the broadcast synchronous information which is currently broadcast. The last broadcast synchronization information is broadcast synchronization information which is arranged in front of the broadcast synchronization information currently broadcast in each broadcast synchronization information in a preset ordering mode.
The step S40 of playing the sound signal corresponding to the digital audio stream includes:
step S41, carrying out preset audio restoration processing on the digital audio stream to obtain a sound signal corresponding to the digital audio stream;
step S42, playing the sound signal through the audio output unit of the wireless earphone.
In this embodiment, it should be noted that the preset audio restoration process may include a demodulation process, a decoding process, a D/AC (digital/analog) conversion process, an audio amplification process, and other processing operations to restore the digital audio stream of the digital signal to a sound signal. Of course, the preset audio restoration process may further include modification audio processing operations such as gain adjustment, noise reduction, and the like.
Illustratively, steps S41 through S42 include: after receiving the digital audio stream of the target broadcast audio source, performing preset audio restoration processing such as demodulation processing, decoding processing, D/AC conversion processing, audio amplification processing and the like on the digital audio stream, so that a sound signal corresponding to the digital audio stream can be obtained, and then the sound signal is played through an audio output unit of the wireless earphone.
The embodiment of the application provides a broadcast audio playing method, which is applied to a wireless earphone and comprises the following steps: scanning the current environment to obtain the broadcast synchronization information of at least one broadcast audio source which is broadcasting in the current environment. And performing voice broadcasting according to each piece of broadcasting synchronous information, so that a user determines related information of a broadcasting audio source which is broadcasting. And further acquiring a touch operation instruction of broadcasting synchronous information which is broadcasted by a user. And determining a target broadcast audio source (namely, a broadcast audio source which the user expects to listen to) according to the touch operation instruction, and synchronizing with the target broadcast audio source. And further receiving the digital audio stream of the target broadcast audio source and playing the sound signal corresponding to the digital audio stream. Therefore, on the premise of not using auxiliary equipment with a display screen, the playing of the Auracast broadcast can be realized by using a wireless earphone, the playing requirement of the Auracast broadcast is reduced, and the convenience of playing the Auracast broadcast audio is improved. The method solves the technical problem that the playing mode of the Auracast broadcast audio is too complicated, so that the convenience of the Auracast broadcast audio is low in the prior art.
Example two
Further, referring to fig. 3, in another embodiment of the present application, the same or similar content as the first embodiment may be referred to the description above, and will not be repeated herein. In step S40, after the step of receiving the digital audio stream of the target broadcast audio source, the broadcast audio playing method further includes:
step A10, judging whether the digital audio stream is encrypted data;
step A20, if the digital audio stream is encrypted data, collecting a voice signal input by a user voice, and identifying the voice signal to obtain a broadcast code corresponding to the voice signal;
and step A30, decrypting the digital audio stream based on the broadcast code, and taking the decrypted digital audio stream as a new digital audio stream.
In this embodiment, it should be noted that the target broadcast audio source may be only opened to the formulated personnel, so that the target broadcast audio source may encrypt the peer-to-peer broadcast stream (i.e., the digital audio stream) when broadcasting. The broadcast code is for decrypting an encrypted digital audio stream.
Illustratively, steps a 10-a 30 include: after the step of receiving the digital audio stream of the target broadcast audio source, it is determined whether the digital audio stream is encrypted data. And if the digital audio stream is encrypted data, collecting a voice signal input by a user voice, identifying the voice signal, converting the voice signal into characters, and obtaining a broadcast code corresponding to the voice signal. The digital audio stream may then be decrypted based on the broadcast code and the decrypted digital audio stream may be used as a new digital audio stream. And further, performing preset audio restoration processing on the digital audio stream to obtain a sound signal corresponding to the digital audio stream, and then playing the sound signal through an audio output unit of the wireless earphone. If the digital audio stream is not the encrypted data, the digital audio stream can be directly subjected to preset audio restoration processing to obtain a sound signal corresponding to the digital audio stream, and then the sound signal is played through an audio output unit of the wireless earphone.
In this embodiment, under the condition that the digital audio stream is encrypted data, by collecting a voice signal input by a user voice, identifying the voice signal, converting the voice signal into text, and obtaining a broadcast code corresponding to the voice signal, further, decrypting the digital audio stream based on the broadcast code, and using the decrypted digital audio stream as a new digital audio stream, thereby playing a sound signal corresponding to the digital audio stream, and therefore, decryption and playing of the encrypted digital audio stream can be achieved simply through a wireless earphone without using auxiliary equipment with a display screen, and convenience of playing Auracast broadcast audio is improved.
Example III
In addition, referring to fig. 4, an embodiment of the present application further provides a broadcast audio playing device, which is applied to a wireless earphone, and the broadcast audio playing device includes:
the scanning module 10 is used for scanning the current environment to obtain broadcast synchronous information of at least one broadcast audio source in the current environment;
the broadcasting module 20 is configured to perform voice broadcasting according to each piece of broadcast synchronization information, and obtain a touch operation instruction for each piece of broadcast synchronization information;
The synchronization module 30 is configured to determine a target broadcast audio source according to the touch operation instruction, and synchronize with the target broadcast audio source;
and the playing module 40 is configured to receive the digital audio stream of the target broadcast audio source and play a sound signal corresponding to the digital audio stream.
Optionally, the broadcasting of the broadcast audio source includes extended broadcasting, periodic broadcasting, and isochronous broadcasting;
the scanning module 10 is further configured to:
receiving a first protocol data unit of the extended broadcast on a main broadcast channel of the extended broadcast, and acquiring first synchronization information of the periodic broadcast from an auxiliary broadcast data unit pointed by the first protocol data unit;
synchronizing with the periodical broadcast according to the first synchronization information, receiving a second protocol data unit of the periodical broadcast, and acquiring broadcast isochronous stream information of the isochronous broadcast from the second protocol data unit;
and taking the broadcast isochronous stream information as broadcast synchronous information of a broadcast audio source.
Optionally, the broadcasting module 20 is further configured to:
performing voice broadcasting on each piece of broadcasting synchronous information according to a preset ordering mode;
Touch operation information aiming at broadcasting synchronous information broadcasted at present is collected, and a touch operation instruction corresponding to the touch operation information is determined.
Optionally, the synchronization module 30 is further configured to:
if the touch operation instruction is a switching instruction, switching the broadcasting synchronous information currently broadcasted, and executing the steps: acquiring touch operation information aiming at broadcasting synchronous information broadcasted currently, and determining a touch operation instruction corresponding to the touch operation information;
and if the touch operation instruction is a selection instruction, taking the broadcast audio source corresponding to the broadcast synchronization information which is currently broadcast as a target broadcast audio source.
Optionally, the broadcasting module 20 is further configured to:
when the touch operation information is characterized as a click, judging the touch operation instruction as a selection instruction;
when the touch operation information is characterized as double-click, judging that the touch operation instruction is a first switching instruction;
when the touch operation information is characterized as three strokes, judging that the touch operation instruction is a second switching instruction;
if the touch operation instruction is a first switching instruction, taking the next broadcast synchronization information in the broadcast synchronization information as the broadcast synchronization information which is currently broadcast;
And if the touch operation instruction is a second switching instruction, taking the last broadcast synchronous information in the broadcast synchronous information as the broadcast synchronous information which is currently broadcast.
Optionally, the playing module 40 is further configured to:
performing preset audio restoration processing on the digital audio stream to obtain a sound signal corresponding to the digital audio stream;
and playing the sound signal through an audio output unit of the wireless earphone.
Optionally, the broadcast audio playing device further includes a decryption module, and the decryption module is configured to:
judging whether the digital audio stream is encrypted data or not;
if the digital audio stream is encrypted data, collecting a voice signal input by a user voice, and identifying the voice signal to obtain a broadcast code corresponding to the voice signal;
decrypting the digital audio stream based on the broadcast code, and taking the decrypted digital audio stream as a new digital audio stream.
The broadcast audio playing device provided by the application adopts the broadcast audio playing method in the first embodiment or the second embodiment, and solves the technical problem that the playing mode for realizing the Auracast broadcast audio is too complicated, so that the convenience of playing the Auracast broadcast audio is low in the prior art. Compared with the prior art, the beneficial effects of the broadcast audio playing device provided by the embodiment of the present application are the same as those of the broadcast audio playing method provided by the above embodiment, and other technical features of the broadcast audio playing device are the same as those disclosed by the method of the above embodiment, which are not described herein.
Example IV
The embodiment of the application provides electronic equipment, the electronic equipment includes: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the broadcast audio playing method in the first embodiment.
Referring now to fig. 5, a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 5, the electronic device may include a processing means (e.g., a central processing unit, a graphic processor, etc.) that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage means into a Random Access Memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM and RAM are connected to each other via a bus. An input/output (I/O) interface is also connected to the bus.
In general, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices including, for example, liquid Crystal Displays (LCDs), speakers, vibrators, etc.; storage devices including, for example, magnetic tape, hard disk, etc.; a communication device. The communication means may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While electronic devices having various systems are shown in the figures, it should be understood that not all of the illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from ROM. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by a processing device.
The electronic device provided by the application adopts the broadcast audio playing method in the first embodiment or the second embodiment, so that the technical problem of low listening tone quality of a user due to the wearing error of the earphone is solved. Compared with the prior art, the electronic device provided in the embodiment of the present application has the same beneficial effects as the broadcast audio playing method provided in the first embodiment, and other technical features in the electronic device are the same as the features disclosed in the method in the first embodiment, which are not described in detail herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the description of the above embodiments, particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes or substitutions are covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Example five
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for performing the method of broadcast audio playback in the above-described embodiment one.
The computer readable storage medium provided by the embodiments of the present application may be, for example, a USB flash disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof
And (5) combining. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more 5 wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this embodiment, the computer-readable storage medium may be any medium that can contain or store the program
A tangible medium of program that can be used by or in connection with an instruction execution system, or device 0. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The above-described computer-readable storage medium may be contained in an electronic device; or may exist alone without being assembled into an electronic device.
The computer-readable storage medium described above carries one or more programs that, when executed by an electronic device, cause the electronic device to: scanning the current environment to obtain broadcast synchronous information of at least one broadcast audio source in the current environment; performing voice broadcasting according to each piece of broadcasting synchronous information, and acquiring a touch operation instruction aiming at each piece of broadcasting synchronous information; according to the touch
An operation instruction, determining a target broadcast audio source and synchronizing with the target broadcast audio source; and receiving 0 the digital audio stream of the target broadcast audio source, and playing the sound signal corresponding to the digital audio stream.
Computer program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java,
Smalltalk, C++, and also includes conventional procedural programming languages, such as the "C" language or the like
Is a programming language of (a). The program code may execute entirely on the user's computer, partly on the user's 5 computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures 0 illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented in software or hardware. Wherein the name of the module does not constitute a limitation of the unit itself in some cases.
The computer readable storage medium stores computer readable program instructions for executing the broadcast audio playing method, and solves the technical problem of low listening sound quality of users due to wearing errors of headphones. Compared with the prior art, the beneficial effects of the computer readable storage medium provided in the embodiment of the present application are the same as those of the broadcast audio playing method provided in the first embodiment or the second embodiment, and are not described herein.
Example six
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of a broadcast audio playing method as described above.
The computer program product solves the technical problem that the listening tone quality of a user is low due to the fact that the earphone is worn by mistake. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiment of the present application are the same as those of the broadcast audio playing method provided in the first embodiment or the second embodiment, and are not described herein.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims.

Claims (10)

1. A broadcast audio playing method, applied to a wireless earphone, comprising:
scanning the current environment to obtain broadcast synchronous information of at least one broadcast audio source in the current environment;
performing voice broadcasting according to each piece of broadcasting synchronous information, and acquiring a touch operation instruction aiming at each piece of broadcasting synchronous information;
determining a target broadcast audio source according to the touch operation instruction, and synchronizing with the target broadcast audio source;
and receiving the digital audio stream of the target broadcast audio source and playing the sound signal corresponding to the digital audio stream.
2. The broadcast audio playback method of claim 1, wherein the broadcasting of the broadcast audio source includes extended broadcasting, periodic broadcasting, and isochronous broadcasting;
the step of scanning the current environment to obtain the broadcast synchronization information of at least one broadcast audio source in the current environment comprises the following steps:
receiving a first protocol data unit of the extended broadcast on a main broadcast channel of the extended broadcast, and acquiring first synchronization information of the periodic broadcast from an auxiliary broadcast data unit pointed by the first protocol data unit;
Synchronizing with the periodical broadcast according to the first synchronization information, receiving a second protocol data unit of the periodical broadcast, and acquiring broadcast isochronous stream information of the isochronous broadcast from the second protocol data unit;
and taking the broadcast isochronous stream information as broadcast synchronous information of a broadcast audio source.
3. The broadcast audio playing method as claimed in claim 1, wherein the step of performing voice broadcasting according to each of the broadcast synchronization information and acquiring a touch operation instruction for each of the broadcast synchronization information comprises:
performing voice broadcasting on each piece of broadcasting synchronous information according to a preset ordering mode;
touch operation information aiming at broadcasting synchronous information broadcasted at present is collected, and a touch operation instruction corresponding to the touch operation information is determined.
4. The broadcast audio playback method of claim 3, wherein the step of determining a target broadcast audio source based on the touch operation instruction comprises:
if the touch operation instruction is a switching instruction, switching the broadcasting synchronous information currently broadcasted, and executing the steps: acquiring touch operation information aiming at broadcasting synchronous information broadcasted currently, and determining a touch operation instruction corresponding to the touch operation information;
And if the touch operation instruction is a selection instruction, taking the broadcast audio source corresponding to the broadcast synchronization information which is currently broadcast as a target broadcast audio source.
5. The broadcast audio playback method of claim 4, wherein the touch operation instruction includes a selection instruction and a switch instruction, the switch instruction including a first switch instruction and a second switch instruction;
the step of determining the touch operation instruction corresponding to the touch operation information comprises the following steps:
when the touch operation information is characterized as a click, judging the touch operation instruction as a selection instruction;
when the touch operation information is characterized as double-click, judging that the touch operation instruction is a first switching instruction;
when the touch operation information is characterized as three strokes, judging that the touch operation instruction is a second switching instruction;
if the touch operation instruction is a switching instruction, the step of switching the currently broadcasted broadcast synchronization information includes:
if the touch operation instruction is a first switching instruction, taking the next broadcast synchronization information in the broadcast synchronization information as the broadcast synchronization information which is currently broadcast;
and if the touch operation instruction is a second switching instruction, taking the last broadcast synchronous information in the broadcast synchronous information as the broadcast synchronous information which is currently broadcast.
6. The broadcast audio playback method of claim 1, wherein the step of playing back the sound signal corresponding to the digital audio stream comprises:
performing preset audio restoration processing on the digital audio stream to obtain a sound signal corresponding to the digital audio stream;
and playing the sound signal through an audio output unit of the wireless earphone.
7. The broadcast audio playback method of any one of claims 1 to 6, wherein after the step of receiving the digital audio stream of the target broadcast audio source, the broadcast audio playback method further comprises:
judging whether the digital audio stream is encrypted data or not;
if the digital audio stream is encrypted data, collecting a voice signal input by a user voice, and identifying the voice signal to obtain a broadcast code corresponding to the voice signal;
decrypting the digital audio stream based on the broadcast code, and taking the decrypted digital audio stream as a new digital audio stream.
8. A broadcast audio playback apparatus, for use with a wireless headset, the broadcast audio playback apparatus comprising:
the scanning module is used for scanning the current environment to obtain the broadcast synchronization information of at least one broadcast audio source in the current environment;
The broadcasting module is used for carrying out voice broadcasting according to each piece of broadcasting synchronous information and acquiring a touch operation instruction aiming at each piece of broadcasting synchronous information;
the synchronization module is used for determining a target broadcast audio source according to the touch operation instruction and synchronizing the target broadcast audio source with the target broadcast audio source;
and the playing module is used for receiving the digital audio stream of the target broadcast audio source and playing the sound signal corresponding to the digital audio stream.
9. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the broadcast audio playback method of any one of claims 1 to 7.
10. A computer-readable storage medium, wherein a program for realizing a broadcast audio playing method is stored thereon, the program for realizing a broadcast audio playing method being executed by a processor to realize the steps of the broadcast audio playing method according to any one of claims 1 to 7.
CN202211511381.0A 2022-11-29 2022-11-29 Broadcast audio playing method and device, electronic equipment and storage medium Pending CN116032402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211511381.0A CN116032402A (en) 2022-11-29 2022-11-29 Broadcast audio playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211511381.0A CN116032402A (en) 2022-11-29 2022-11-29 Broadcast audio playing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116032402A true CN116032402A (en) 2023-04-28

Family

ID=86074953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211511381.0A Pending CN116032402A (en) 2022-11-29 2022-11-29 Broadcast audio playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116032402A (en)

Similar Documents

Publication Publication Date Title
CN103295610B (en) A kind of method of audio plays and device
KR101800889B1 (en) Device and method for playing music
JP5458894B2 (en) Device control apparatus, device control method and program
RU2607994C2 (en) Information sharing device, information sharing method, information sharing program and terminal device
CN108319443B (en) audio output method, mobile terminal and audio playing device
KR100728019B1 (en) Method for wireless transmitting audio signals and appararus thereof
CN111615090B (en) Interaction method and device between Bluetooth devices, storage medium and electronic device
JP2023520570A (en) Volume automatic adjustment method, device, medium and equipment
KR20110037680A (en) Apparatus and method for outputting multi chanel audio of portable device
CN112416289B (en) Audio synchronization method, device, equipment and storage medium
JP2014082722A (en) Electronic device, control method of electronic device, and program of electronic device
CN116032402A (en) Broadcast audio playing method and device, electronic equipment and storage medium
WO2023284436A1 (en) Audio processing method, live broadcast device, and live broadcast system
CN115715008A (en) Earphone positioning method, system, electronic equipment and computer readable storage medium
CN115134708A (en) Earphone mode switching method and device, electronic equipment and readable storage medium
CN113542785B (en) Switching method for input and output of audio applied to live broadcast and live broadcast equipment
JP5073591B2 (en) Audio output device, system, and method
KR20080045395A (en) Portable terminal having tv monitoring function and method for tv monitoring function in portable terminal
KR100735429B1 (en) Method and system for playing a digital multimedia broadcasting using a personal computer
CN111988721A (en) Sound amplification method, device, system, medium and equipment
CN113709652B (en) Audio play control method and electronic equipment
KR20120065770A (en) Device and method for performing menu in wireless terminal
JP2008244921A (en) Display control system, display device, program, and display control method
CN115033201A (en) Audio recording method, device, system, equipment and storage medium
CN118055520A (en) Wireless earphone identification method and device and earphone

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