CN115967928A - Earphone audio playing method, device, equipment and storage medium - Google Patents

Earphone audio playing method, device, equipment and storage medium Download PDF

Info

Publication number
CN115967928A
CN115967928A CN202111192721.3A CN202111192721A CN115967928A CN 115967928 A CN115967928 A CN 115967928A CN 202111192721 A CN202111192721 A CN 202111192721A CN 115967928 A CN115967928 A CN 115967928A
Authority
CN
China
Prior art keywords
audio
earphone
equipment
host
playing
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
CN202111192721.3A
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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN202111192721.3A priority Critical patent/CN115967928A/en
Publication of CN115967928A publication Critical patent/CN115967928A/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

Abstract

The embodiment of the invention discloses an earphone audio playing method, an earphone audio playing device, earphone audio playing equipment and a storage medium, wherein the method comprises the following steps: when the earphone device is detected to be taken out of the host device or the earphone device is disconnected from the host device in a charging mode, establishing Bluetooth communication connection between the host device and the earphone device; and when detecting that the earphone equipment meets the audio playing condition, controlling the host equipment to transmit audio information to the earphone equipment through the Bluetooth communication connection for audio playing of the earphone equipment based on the audio information. According to the scheme, the audio playing mechanism of the earphone is optimized, the audio playing efficiency is improved, and the user experience is better.

Description

Earphone audio playing method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the field of earphone audio playing, in particular to an earphone audio playing method, an earphone audio playing device, earphone audio playing equipment and a storage medium.
Background
Along with the development of hardware equipment and computer technology, the intelligent headset popularity is higher and higher, and especially the wireless headset that the convenience is high is widely used. The user can use the intelligent earphone to realize music playing and playing, voice communication and the like.
In the prior art, when the earphone performs an audio playing function, after the earphone is usually connected with an intelligent device such as a smart phone, a tablet personal computer or a notebook computer through bluetooth, a signal sent by the intelligent device is received and processed and then played, and when the intelligent earphone is insufficient in electric quantity or a user does not use the earphone, the earphone is stored in a charging box with a charging function to be charged. The earphone audio playing mode is poor in convenience and needs to be improved.
Disclosure of Invention
The embodiment of the invention provides an earphone audio playing method, an earphone audio playing device, equipment and a storage medium, solves the problems of complicated operation steps and poor convenience when an earphone plays audio in the prior art, optimizes an earphone audio playing mechanism, improves audio playing efficiency and has better user experience.
In a first aspect, an embodiment of the present invention provides an earphone audio playing method, where the method includes:
when detecting that the earphone device is taken out of the host device or the earphone device is disconnected from the host device in charging, establishing Bluetooth communication connection between the host device and the earphone device;
and when detecting that the earphone equipment meets the audio playing condition, controlling the host equipment to transmit audio information to the earphone equipment through the Bluetooth communication connection for audio playing of the earphone equipment based on the audio information.
In a second aspect, an embodiment of the present invention further provides an earphone audio playing apparatus, where the apparatus includes:
the earphone device comprises a connection establishing module, a connection establishing module and a control module, wherein the connection establishing module is used for establishing Bluetooth communication connection between the host device and the earphone device when the earphone device is detected to be taken out of the host device or the earphone device is disconnected from the host device in charging;
and the information transmission module is used for controlling the host equipment to transmit audio information to the earphone equipment through the Bluetooth communication connection when the earphone equipment is detected to meet audio playing conditions, and the earphone equipment is used for playing audio based on the audio information.
In a third aspect, an embodiment of the present invention further provides a headset audio playing device, including a headset device and a host device, where the host device includes,
a communication module for communicating with the earphone device and other devices; one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the earphone audio playing method according to the embodiment of the invention.
In a fourth aspect, the present invention further provides a storage medium storing computer-executable instructions, which when executed by a computer processor, are configured to perform the headphone audio playing method according to the present invention.
In the embodiment of the invention, when the earphone device is taken out of the host device or the earphone device is disconnected from the host device in a charging manner, the Bluetooth communication connection between the host device and the earphone device is established, and when the earphone device is detected to meet the audio playing condition, the host device is directly controlled to transmit the audio information to the earphone device through the Bluetooth communication connection for the earphone device to play the audio based on the audio information.
Drawings
Fig. 1 is a flowchart of an audio playing method for an earphone according to an embodiment of the present invention;
fig. 2 is a flowchart of another audio playing method for a headset according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a process of determining a current audio play mode of a host device according to an embodiment of the present invention;
fig. 4 is another flowchart for determining a current audio play mode of a host device according to an embodiment of the present invention;
fig. 5 is a block diagram of an audio playing apparatus of an earphone according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an earphone audio playing device according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and embodiments. It is to be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad invention. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/", and generally means that the former and latter related objects are in an "or" relationship.
Fig. 1 is a flowchart of an audio playing method for an earphone according to an embodiment of the present invention, where this embodiment is applicable to an earphone for audio playing, and the method may be implemented by a host device storing the earphone, and specifically includes the following steps:
step S101, when the earphone device is detected to be taken out of the host device, establishing Bluetooth communication connection between the host device and the earphone device.
The earphone device is a device which is worn on the ear by a user and used for playing audio, such as a Bluetooth earphone. The host device is a device for storing the earphone device, such as an earphone case. The host device has a charging function, that is, when the earphone device is put into the host device, the host device can charge the earphone device. In one embodiment, the host device has a communication module, a processor and a main circuit board integrated therein to realize the communication with the earphone device and the sending, receiving and processing functions of the audio information.
When the earphone device is detected to be taken out of the host device, the Bluetooth communication connection between the host device and the earphone device is established. Optionally, the earphone device is placed into the host device in a magnetic attraction manner, and when the earphone device is taken out, the host device establishes bluetooth communication connection with the earphone device after detecting corresponding magnetic field changes. Optionally, the host device is integrated with an infrared distance sensor, and when the earphone device is changed from the state of being stored in the host device to the state of being taken out from the host device, and a distance value detected by the infrared distance sensor of the host device changes, a bluetooth communication connection with the earphone device is established. Optionally, a pressure sensor is integrated in the host device, and the pressure sensor is configured to detect whether the earphone device is stored in the host device, when the earphone device is stored in the host device, for example, a pressure value detected by the pressure sensor is a, and when the earphone device is taken out from the host device, a pressure value detected by the pressure sensor is 0, that is, when the earphone device is changed from a state of being stored in the host device to a state of being taken out from the host device, a pressure parameter value detected by the pressure sensor of the host device changes, and a bluetooth communication connection with the earphone device is established.
In one embodiment, the host device of the present solution integrates a bluetooth module, and is different from the existing earphone box for storing the earphone device in that when the existing earphone device is taken out from the earphone box, the earphone device establishes a bluetooth connection with a device such as a smart phone, a tablet computer, or a notebook computer, and the present solution is that the earphone device establishes a bluetooth connection with the host device.
In another embodiment, the trigger condition for establishing the bluetooth communication connection between the host device and the headset device may be: a disconnection of the headset device from the host device charging is detected. Optionally, the earphone device is accommodated in the host device in a magnetic attraction manner, and the host device can charge the earphone device. When the earphone device is in a charging state, the Bluetooth communication connection for detecting whether the charging connection between the earphone device and the host device is disconnected or not is started to trigger the Bluetooth communication connection between the earphone device and the host device, and when the charging connection between the earphone device and the host device is detected, the Bluetooth communication connection between the earphone device and the host device is established.
And S102, when the earphone device is detected to meet the audio playing condition, controlling the host device to transmit audio information to the earphone device through the Bluetooth communication connection, and enabling the earphone device to play audio based on the audio information.
The audio playing condition refers to a condition for triggering audio playing, namely when the audio playing condition is detected to be met, the host equipment is controlled to transmit audio information to the earphone equipment through Bluetooth communication connection. Optionally, the audio playing condition may be that the host device detects an audio playing signal sent by the headset device, and controls the host device to transmit audio information to the headset device through the bluetooth communication connection. Wherein the audio playing signal is emitted by the earphone device. In one embodiment, the earphone device is integrated with a sensor device, and the audio playing signal is sent out when the earphone device is detected to be in a wearing state. Specifically, the sensor may be an infrared distance sensor, a pressure sensor, an illumination sensor, or the like, and sends out a frequency playing signal when the infrared distance sensor detects that the earphone device is attached to the ear; when the pressure sensor detects that the pressure value is not 0, a frequency playing signal is sent out; and when the light intensity value detected by the light sensor is smaller than the preset threshold value, a frequency playing signal is sent out.
In another embodiment, the earphone device satisfying the audio playing condition may be when the host device detects that a preset button is pressed. Specifically, the host device is integrated with a button control device, and when the button is detected to be pressed, the earphone device is correspondingly judged to meet the audio playing condition.
In another embodiment, when the earphone device satisfies the audio playing condition, the host device detects a preset type of audio information, and determines that the earphone device satisfies the audio playing condition. In this embodiment, the host device is integrated with a communication card, which may implement receiving of a telephone signal based on a mobile network, that is, has a telephone function, and when the incoming call audio information is detected, it is determined that the current headset device meets an audio playing condition, and the host device is controlled to transmit the incoming call audio information to the headset device through a bluetooth communication connection for playing. Optionally, the precondition for determining that the headphone device meets the playing condition based on the preset type of audio information may be that the headphone device is detected to be in a wearing state.
The earphone device plays the audio information to provide audio for a user to listen to after receiving the audio information sent by the host device.
According to the scheme, when the earphone device is detected to be taken out of the host device, the Bluetooth communication connection between the earphone device and the host device is directly established, when the earphone device is detected to meet the audio playing condition, the host device is controlled to transmit audio information to the earphone device through the Bluetooth communication connection to play audio, the introduction of extra intelligent equipment is not needed, the host device storing the earphone device is used for providing an audio playing function, the use of extra audio playing equipment is released, and the user can conveniently and quickly receive the audio information anytime and anywhere.
Fig. 2 is a flowchart of another audio playing method for an earphone according to an embodiment of the present invention, and shows a specific method for playing audio. As shown in fig. 2, the technical solution is as follows:
step S201, when the earphone device is detected to be taken out of the host device, establishing Bluetooth communication connection between the host device and the earphone device.
Step S202, when the earphone device is detected to meet the audio playing condition, the current audio playing mode of the host device is determined, and corresponding audio information is determined according to the audio playing mode.
In one embodiment, when it is determined that the earphone device satisfies the audio playing condition and is ready to play audio, a current audio playing mode of the host device is further determined, and corresponding audio information is determined based on the audio playing mode. The host device can have multiple audio playing modes, and each playing mode corresponds to different audio information. Specifically, as shown in fig. 3, fig. 3 is a flowchart for determining a current audio playing mode of a host device according to an embodiment of the present invention, where the flowchart includes:
step S2021, determining whether the host device triggers a call event, if yes, executing step S2022, otherwise executing step S2023.
The call event refers to an event that the host device makes a phone call with other devices such as a smart phone and a smart watch through a network. In this embodiment, when determining the current audio playing mode of the host device, it is first determined whether the host device triggers a call event, and if so, it is determined that the host device is in the mobile communication mode, and the subsequent step S2022 is executed. If not, the host device is determined to be in the WIFI play mode, and the subsequent step S2023 is executed.
The triggering of the call event includes receiving a call request sent by another device, which may be a telephone service provided by an operator. In this embodiment, the host device is integrated with a SIM communication card to implement telephone services in mobile network communications.
Step S2022, determining that the host device is in a mobile communication mode, and determining audio data received by the mobile communication module in the host device as audio playing information.
When the host equipment is determined to be in the mobile communication mode, the audio data received by the mobile communication module in the host equipment is determined to be audio playing information, for example, the received telephone voice transmitted by the equipment at the other end forwarded by the base station is determined to be audio playing information.
Step S2023, determining that the host device is in a WIFI play mode, and determining audio data received by the WIFI network module in the host device as audio play information.
In one embodiment, the host device is integrated with a WIFI network module, and may receive audio data transmitted through a WIFI network, for example, receive audio data transmitted by a router connected to the host device through a wireless network. When it is determined that the current host equipment does not trigger the call event, it is determined that the current audio playing mode of the host equipment does not have the WIFI playing mode, and at the moment, the audio data received through the WIFI network module is determined as audio playing information so as to transmit the audio playing information to the earphone equipment.
And S203, controlling the host device to transmit audio information to the earphone device through the Bluetooth communication connection, so that the earphone device can play audio based on the audio information.
Therefore, after the earphone device establishes Bluetooth connection communication with the host device, multiple audio playing modes can be provided during audio playing. Different audio playing modes can be intelligently determined according to the set control logic, and the intelligent degree of the earphone audio playing method is higher. The host equipment provides various different audio playing modes, so that the audio playing of the earphone equipment is automatically realized, the user experience is optimized, and a convenient audio playing function is provided for a user.
Fig. 4 is another flowchart of determining a current audio playing mode of a host device according to an embodiment of the present invention, which shows a specific method for determining the current audio playing mode. As shown in fig. 4, the technical solution is as follows:
step S301, when the earphone device is detected to be taken out of the host device, establishing Bluetooth communication connection between the host device and the earphone device.
Step S302, when it is detected that the earphone device meets the audio playing condition, determining the current network connection condition of the host device, if the network connection is optional, determining that the host device is in a network playing mode, otherwise, determining that the host device is in a local playing mode.
In one embodiment, the audio playing modes of the host device include a network playing mode and a local playing mode, and the determination of the playing modes can be intelligently performed. Specifically, when it is detected that the earphone device meets the audio playing condition, the current network connection status of the host device is determined, and if the network connection is optional, the current host device is determined to be in the network playing mode. Alternatively, the host device may search through a wireless network to determine whether there is a scanned accessible wireless network, and if the accessible wireless network is an automatically connectable network that has already been connected, determine that the audio play mode of the current host device is the network play mode. And if the accessible wireless network is not scanned or cannot be accessed, determining that the audio playing mode of the current host equipment is the local playing mode.
In another embodiment, the current network connection status of the host device is determined, and if the host device is already in a networking state, the audio playing mode of the current host device is determined to be the network playing mode; if the host equipment is in an unconnected state, scanning of wireless network signals is further started, if network connection is optional, wireless network connection is automatically carried out, if connection is successful, the audio playing mode of the current host equipment is determined to be a network playing mode, and if not, the audio playing mode of the current host equipment is determined to be a local playing mode.
Step S303, determining corresponding audio information according to the audio playing mode.
Wherein, different audio playing modes correspond to different audio information acquisition modes. In one embodiment, if it is determined that the current host device is in the network play mode, the audio data is automatically acquired through the wireless network, and the acquired audio data is determined as the audio information. And if the current host equipment is determined to be in the local play mode, acquiring the audio data locally stored by the host equipment, and determining the locally stored audio data as the audio information.
And step S304, controlling the host device to transmit audio information to the earphone device through the Bluetooth communication connection, and enabling the earphone device to play audio based on the audio information.
Therefore, after the earphone device establishes the Bluetooth connection communication with the host device, when audio playing is carried out, according to different network connection conditions, corresponding multiple audio playing modes exist. Different audio playing modes can be intelligently determined according to the set control logic, and the intelligent degree of the earphone audio playing method is higher. The host equipment provides various different audio playing modes, so that the audio playing of the earphone equipment is automatically realized, the user experience is optimized, and a convenient audio playing function is provided for a user.
On the basis of the above technical scheme, when the host device is set to the WIFI play mode, before controlling the host device to transmit audio information to the earphone device through the bluetooth communication connection, the method further includes: controlling the host device to access a WIFI network; and determining corresponding audio information according to the detected audio playing control instruction for the host equipment. In one embodiment, the user may set the play mode of the host device, and if the play mode is set to the WIFI play mode, the host device automatically accesses the WIFI network. Optionally, the host device is integrated with a display screen, after the host device accesses the WIFI network, the audio content capable of being played is automatically acquired through the WIFI network, the audio content capable of being played is displayed through the display screen, a user can click the corresponding audio content to be played to generate an audio playing control instruction, when the host device detects the audio playing control instruction, the corresponding audio information is determined, that is, the audio content to be played, which is clicked by the user, is determined, and the audio content is subsequently transmitted to the earphone device through the bluetooth connection to be played. According to the scheme, the audio information is acquired in a host device networking mode and is transmitted to the earphone device to be played, terminal devices such as a smart phone do not need to be used, and the problem that the existing earphone audio playing operation is complex is solved.
Fig. 5 is a block diagram of a structure of an audio playing apparatus for a headset according to an embodiment of the present invention, where the apparatus is configured to execute the audio playing method for a headset according to the embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 5, the apparatus specifically includes: a connection establishing module 101 and an information transfer module 10, wherein,
a connection establishing module 101, configured to establish a bluetooth communication connection between a host device and an earphone device when it is detected that the earphone device is taken out of the host device or the earphone device is disconnected from the host device;
an information transmission module 102, configured to, when it is detected that the headset device meets an audio playing condition, control the host device to transmit audio information to the headset device through the bluetooth communication connection, so that the headset device plays audio based on the audio information.
According to the scheme, when the earphone device is detected to be taken out of the host device or the earphone device is charged and disconnected with the host device, bluetooth communication connection between the host device and the earphone device is established, when the earphone device is detected to meet audio playing conditions, the host device is directly controlled to transmit audio information to the earphone device through the Bluetooth communication connection, the earphone device is used for playing audio based on the audio information, the earphone device and other additional intelligent devices such as a smart phone and a tablet computer are not needed to be connected for playing audio in the scheme, the audio playing of the earphone device can be directly achieved through the host device storing the earphone, the operation of a user is reduced, the host device is reasonably utilized, an earphone audio playing mechanism is optimized, the audio playing efficiency is improved, and the user experience is better.
In one possible embodiment, the apparatus further comprises a play mode determining module 103, configured to determine a current audio play mode of the host device before the controlling the host device transmits audio information to the headset device via the bluetooth communication connection; and determining corresponding audio information according to the audio playing mode.
In a possible embodiment, the play mode determining module 103 is specifically configured to:
determining whether the host equipment triggers a call event, and if so, determining that the host equipment is in a mobile communication mode; and if not, determining that the host equipment is in a WIFI playing mode.
In a possible embodiment, the play mode determining module 103 is specifically configured to:
if the host equipment is in a mobile communication mode, determining audio data received by a mobile communication module in the host equipment as audio playing information;
and if the host equipment is in a WIFI playing mode, determining the audio data received by the WIFI network module in the host equipment as audio playing information.
Therefore, after the earphone device establishes Bluetooth connection communication with the host device, multiple audio playing modes can be provided during audio playing. Different audio playing modes can be intelligently determined according to the set control logic, and the intelligent degree of the earphone audio playing method is higher. The host equipment provides various different audio playing modes, so that the audio playing of the earphone equipment is automatically realized, the user experience is optimized, and a convenient audio playing function is provided for a user.
In a possible embodiment, the play mode determining module 103 is specifically configured to:
determining a current network connection status of the host device;
and if the network connection is optional, determining that the host equipment is in a network play mode, otherwise, determining that the host equipment is in a local play mode.
In one possible embodiment, the apparatus further comprises an information determining module 104 for:
and when the host equipment is in a local play mode, acquiring the audio data locally stored by the host equipment, and determining the locally stored audio data as audio information.
Therefore, in the scheme, after the Bluetooth connection communication is established between the earphone equipment and the host equipment, when audio playing is carried out, corresponding multiple audio playing modes exist according to different network connection conditions. Different audio playing modes can be intelligently determined according to the set control logic, and the intelligent degree of the earphone audio playing method is higher. The host equipment provides various different audio playing modes, so that the audio playing of the earphone equipment is automatically realized, the user experience is optimized, and a convenient audio playing function is provided for a user.
In a possible embodiment, the connection establishing module 102 is further configured to:
when the host device is set to a mobile communication mode, controlling the host device to access a mobile network before the controlling the host device transmits audio information to the earphone device through the Bluetooth communication connection;
and receiving audio information according to the detected call control instruction of the host equipment.
According to the scheme, the audio information is acquired in a host device networking mode and is transmitted to the earphone device to be played, terminal devices such as smart phones do not need to be used, and the problem that the existing earphone audio playing operation is complex is solved.
Fig. 6 is a schematic structural diagram of an earphone audio playing device according to an embodiment of the present invention, as shown in fig. 6, the device includes a processor 201, a memory 202, an instruction receiving device 203, and a communication device 204; the number of the processors 201 in the device may be one or more, and one processor 201 is taken as an example in fig. 6; the processor 201, the memory 202, the instruction receiving means 203 and the communication means 204 in the device may be connected by a bus or other means, for example, in fig. 6. The memory 202 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the audio playing method of the headphones in the embodiment of the present invention. The processor 201 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 202, i.e. implementing the above-mentioned headphone audio playing method. The instruction receiving device 203 may be configured to receive an instruction input by a user, the instruction receiving device 203 may be a touch display screen, and may also be a button panel, and the communication device 204 includes a bluetooth module in communication connection with the headset device, and a mobile network module and/or a WIFI network module in communication with another device or a base station via an access network.
Fig. 7 is a schematic diagram of an audio playing device with earphones according to an embodiment of the present invention. The headphone audio playing device 301 serves as a host device for storing the headphone device 302. As can be seen from the figure, the earphone device 302 adopts an oval design mode to be stored in the host device in a magnetic-type manner, the processor, the memory, the communication module and the mainboard are integrated in the host device, and the design mode of the earphone device ensures that the space inside the host device can be enough for hardware layout. This earphone audio playback equipment, when detecting that earphone equipment takes out from host computer equipment, directly establish earphone equipment and host computer equipment's bluetooth communication connection, in order when detecting that earphone equipment satisfies the audio playback condition, control host computer equipment carries out the audio playback through bluetooth communication connection transmission audio information to earphone equipment, need not the introduction of extra smart machine, the host computer equipment who uses to deposit earphone equipment provides the audio playback function, the use of extra audio playback equipment has been got rid of, be convenient for the user quick, anytime and anywhere receive audio information.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for headphone audio playback, the method comprising:
when detecting that the earphone device is taken out of the host device or the earphone device is disconnected from the host device in charging, establishing Bluetooth communication connection between the host device and the earphone device;
and when detecting that the earphone equipment meets the audio playing condition, controlling the host equipment to transmit audio information to the earphone equipment through the Bluetooth communication connection for audio playing of the earphone equipment based on the audio information.
It should be noted that, in the embodiment of the above earphone audio playing device, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
It should be noted that the foregoing is only a preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will appreciate that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, adaptations, and substitutions are possible, without departing from the scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments may be included without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.

Claims (10)

1. The earphone audio playing method is characterized by comprising the following steps:
when the earphone device is detected to be taken out of the host device or the earphone device is disconnected from the host device in a charging mode, establishing Bluetooth communication connection between the host device and the earphone device;
and when detecting that the earphone equipment meets the audio playing condition, controlling the host equipment to transmit audio information to the earphone equipment through the Bluetooth communication connection for audio playing of the earphone equipment based on the audio information.
2. The headset audio playback method of claim 1, prior to the controlling the host device to transmit audio information to the headset device over the bluetooth communication connection, comprising:
determining a current audio play mode of the host device;
and determining corresponding audio information according to the audio playing mode.
3. The method for playing audio through a headset according to claim 2, wherein the determining the current audio playing mode of the host device comprises:
determining whether the host equipment triggers a call event, and if so, determining that the host equipment is in a mobile communication mode; and if not, determining that the host equipment is in a WIFI playing mode.
4. The method for playing the audio of the headphones as recited in claim 3, wherein the determining the corresponding audio information according to the audio playing mode comprises:
if the host equipment is in a mobile communication mode, determining audio data received by a mobile communication module in the host equipment as audio playing information;
and if the host equipment is in a WIFI playing mode, determining the audio data received by the WIFI network module in the host equipment as audio playing information.
5. The method for playing audio through a headset according to claim 2, wherein the determining the current audio playing mode of the host device comprises:
determining a current network connection status of the host device;
if the network connection is optional, determining that the host equipment is in a network playing mode, otherwise, determining that the host equipment is in a local playing mode, and when the host equipment is in the local playing mode, determining corresponding audio information according to the audio playing mode, wherein the determining comprises:
and acquiring the audio data locally stored by the host equipment, and determining the locally stored audio data as audio information.
6. The method for playing audio from a headset of claim 1, wherein when the host device is set to the mobile communication mode, before the controlling the host device to transmit audio information to the headset device via the bluetooth communication connection, further comprising:
controlling the host device to access a mobile network;
and receiving audio information according to the detected call control instruction of the host equipment.
7. A headset audio playing method according to claim 1 or 3, further comprising, before the controlling the host device to transmit audio information to the headset device via the bluetooth communication connection when the host device is set to the WIFI playing mode:
controlling the host device to access a WIFI network;
and determining corresponding audio information according to the detected audio playing control instruction for the host equipment.
8. An audio playback device for a headphone, comprising:
the earphone device comprises a connection establishing module, a connection establishing module and a control module, wherein the connection establishing module is used for establishing Bluetooth communication connection between the host device and the earphone device when the earphone device is detected to be taken out of the host device or the earphone device is disconnected from the host device in charging;
and the information transmission module is used for controlling the host equipment to transmit audio information to the earphone equipment through the Bluetooth communication connection when the earphone equipment is detected to meet audio playing conditions, and the earphone equipment is used for playing audio based on the audio information.
9. The earphone audio playing device comprises earphone equipment and host equipment, wherein the host equipment comprises a communication module, a processing module and a control module, wherein the communication module is used for communicating with the earphone equipment and other equipment; one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the headphone audio playback method as recited in any of claims 1-7.
10. A storage medium storing computer executable instructions for performing the headphone audio playback method as claimed in any one of claims 1-7 when executed by a computer processor.
CN202111192721.3A 2021-10-13 2021-10-13 Earphone audio playing method, device, equipment and storage medium Pending CN115967928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111192721.3A CN115967928A (en) 2021-10-13 2021-10-13 Earphone audio playing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111192721.3A CN115967928A (en) 2021-10-13 2021-10-13 Earphone audio playing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115967928A true CN115967928A (en) 2023-04-14

Family

ID=87353506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111192721.3A Pending CN115967928A (en) 2021-10-13 2021-10-13 Earphone audio playing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115967928A (en)

Similar Documents

Publication Publication Date Title
CA2740581C (en) System and method for resuming media
US10630826B2 (en) Information processing device
CN110572803A (en) Bluetooth switching method and Bluetooth device
CN107770759B (en) Bluetooth voice link establishing method and device, storage medium and mobile terminal
CN107835033A (en) Control method, device, terminal device and the storage medium of antenna tuning switch
US11425520B2 (en) Method for detecting blocking of microphone and related products
CN113660650B (en) Method and related device for device reconnection
CN115190197B (en) Bluetooth headset-based communication method and device and storage medium
CN113395685A (en) Bluetooth communication system and wireless communication system
CN112230877A (en) Voice operation method and device, storage medium and electronic equipment
CN108600887B (en) Touch control method based on wireless earphone and related product
CN110072013B (en) Terminal control method and device
CN109788114B (en) Call processing method and terminal
CN111586662A (en) Sharing method and audio output device
CN108834013B (en) Wearable equipment electric quantity balancing method and related product
CN110944313B (en) Bluetooth connection method, device, storage medium and terminal
CN112689172A (en) Program playing method and device, set top box and storage medium
CN110289919B (en) Signal guarantee processing method, device, equipment and storage medium
CN105933816A (en) Wireless headset, playing method and device of wireless headset, headset data line and playing equipment
CN115967928A (en) Earphone audio playing method, device, equipment and storage medium
CN116074793A (en) Bluetooth pairing method, device, system and storage medium
CN114265662B (en) Information recommendation method, electronic device and readable storage medium
CN112469014A (en) Method and electronic equipment for configuring Bluetooth connection parameters
CN111182141B (en) Method, device and storage medium for acquiring state of terminal device
CN116074986B (en) Bluetooth connection method, device and system

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