CN111782176A - Method for simultaneously using wired earphone and Bluetooth earphone and electronic equipment - Google Patents

Method for simultaneously using wired earphone and Bluetooth earphone and electronic equipment Download PDF

Info

Publication number
CN111782176A
CN111782176A CN202010631812.1A CN202010631812A CN111782176A CN 111782176 A CN111782176 A CN 111782176A CN 202010631812 A CN202010631812 A CN 202010631812A CN 111782176 A CN111782176 A CN 111782176A
Authority
CN
China
Prior art keywords
audio
source signal
audio source
wired
headset
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
CN202010631812.1A
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.)
Shenzhen Neoway Technology Co Ltd
Original Assignee
Shenzhen Neoway 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 Shenzhen Neoway Technology Co Ltd filed Critical Shenzhen Neoway Technology Co Ltd
Priority to CN202010631812.1A priority Critical patent/CN111782176A/en
Publication of CN111782176A publication Critical patent/CN111782176A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Abstract

The invention relates to the technical field of audio processing, and discloses a method for simultaneously using a wired earphone and a Bluetooth earphone and electronic equipment. The method comprises the steps of obtaining audio source signals, classifying the audio source signals, and selecting corresponding audio routing strategies according to different audio source signal types, wherein the audio routing strategies comprise a single-channel audio equipment strategy and a double-channel audio equipment strategy. When the playing scene of the audio source signal type needs a certain specific audio device for playing, selecting a single-channel audio device strategy; and when the playing scene of the audio source signal type requires multiple audio devices to play simultaneously, selecting a two-way audio device strategy. And controlling the corresponding audio equipment to play the audio source signal according to the selected audio routing strategy. The method for simultaneously using the wired earphone and the Bluetooth earphone can support the simultaneous playing of two audio devices, and improve the tone quality experience of listening to music or watching videos by two people.

Description

Method for simultaneously using wired earphone and Bluetooth earphone and electronic equipment
Technical Field
The present invention relates to the field of audio processing technologies, and in particular, to a method and an electronic device for simultaneously using a wired headset and a bluetooth headset.
Background
Mobile devices with Android systems, such as mobile phones and tablet computers, have been increasingly popular, and more users use the mobile devices to play music or watch videos. Sometimes, when a lover or a friend needs to listen to music or watch videos together in the occasions of riding a bus or sitting on a plane and the like, in order to improve the visual and audio experience, one person wears one pair of earphones, which is the best choice. Because current Android equipment when carrying out audio output, only can have audio equipment of the same kind to export, if used the bluetooth headset to connect, just can not use wired earphone to connect. If want to use two pairs of earphones to connect Android equipment simultaneously, then need use external audio frequency plug distributor, this has not only increased the cost, has still restricted to use two pairs of wired earphones to connect Android equipment when needing to use two pairs of earphones.
Disclosure of Invention
Therefore, it is necessary to provide a method and an electronic device for simultaneously using a wired headset and a bluetooth headset to solve the problem that only one channel of audio device can output audio when the current Android device outputs audio.
A method for using a wired headset and a Bluetooth headset simultaneously includes acquiring an audio source signal; classifying the audio source signals to obtain audio source signal types; selecting an audio routing policy according to the audio source signal type; the audio routing strategy comprises a single-channel audio equipment strategy and a double-channel audio equipment strategy; and selecting corresponding audio equipment to play the audio source signal according to the audio routing strategy.
The method for simultaneously using the wired earphone and the Bluetooth earphone acquires the audio source signals and then classifies the audio source information. Selecting a corresponding audio routing policy according to different audio source signal types, the audio routing policy comprising a one-way audio device policy and a two-way audio device policy. When the playing scene of the audio source signal type of the audio source signal is that a certain specific audio device is needed to play, selecting a single-channel audio device strategy; and when the playing scene of the audio source signal type of the audio source signal needs to be played by multiple audio devices at the same time, selecting a two-way audio device strategy. And controlling the corresponding audio equipment to play the audio source signal according to the selected audio routing strategy. The method for simultaneously using the wired earphone and the Bluetooth earphone can select the most appropriate audio equipment playing strategy according to different types of audio source signals, can support simultaneous playing of two audio equipment, and improves the experience of listening to music or watching videos of two people; meanwhile, the audio plug distributor does not need to be additionally used, so that the cost of the two earphones when used simultaneously can be reduced.
In one embodiment, the audio source signal types include music audio signals, video audio signals, voice call audio signals, and video call audio signals.
In one embodiment, selecting an audio routing policy based on the audio source signal type comprises selecting the two-way audio device policy when the audio source signal type is a music audio signal or a video audio signal; and when the audio source signal type is a voice call audio signal or a video call audio signal, selecting the one-way audio device strategy.
In one embodiment, selecting the corresponding audio device to play the audio source signal according to the two-way audio device policy comprises detecting whether an electronic device is connected with a bluetooth headset or/and a wired headset; if the detection electronic equipment is not connected with the Bluetooth headset and the wired headset, selecting a loudspeaker to play the audio source signal; if the detection electronic equipment is only connected with the Bluetooth headset or the wired headset, selecting the Bluetooth headset or the wired headset to play the audio source signal; and if the detection electronic equipment is connected with the Bluetooth earphone and the wired earphone, selecting the Bluetooth earphone and the wired earphone to play the audio source signal simultaneously.
In one embodiment, selecting the bluetooth headset to play the audio source signal includes converting the audio source signal to a first format file conforming to a bluetooth communication protocol; and decoding the first format file into a first audio signal and transmitting the first audio signal to the Bluetooth headset so as to play the first audio signal.
In one embodiment, selecting the wired headphones to play the audio source signal includes converting the audio source signal to a second format file that conforms to a wired audio device communication protocol; and decoding the second format file into a second audio signal and transmitting the second audio signal to the wired earphone so as to play the second audio signal.
In one embodiment, selecting the corresponding audio device to play the audio source signal according to the one-way audio device policy comprises detecting whether an electronic device is connected with a bluetooth headset or/and a wired headset; if the detection electronic equipment is not connected with the Bluetooth headset and the wired headset, selecting a loudspeaker to play the audio source signal; if the detection electronic equipment is only connected with the Bluetooth headset or the wired headset, selecting the Bluetooth headset or the wired headset to play the audio source signal; and if the detection electronic equipment is connected with the Bluetooth headset and the wired headset, a preset strategy selects one of the Bluetooth headset and the wired headset to play the audio source signal.
An electronic device comprising an audio receiving module for acquiring the audio source signal; the analysis processing module is connected with the audio receiving module and used for classifying the audio source signals and selecting an audio routing strategy according to the types of the audio source signals; the audio routing strategy comprises a single-channel audio equipment strategy and a double-channel audio equipment strategy; and the control module is connected with the analysis processing module and used for controlling the corresponding audio equipment to play the audio source signal according to the audio routing strategy.
In one embodiment, the electronic device further includes a detection module, connected to the analysis processing module, for detecting whether the electronic device is connected to a bluetooth headset or/and a wired headset.
In one embodiment, the electronic device further comprises a data conversion module, connected to the control module, for converting the audio source signal into a first format file conforming to a bluetooth communication protocol or/and a second format file conforming to a wired audio device communication protocol.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the conventional technologies of the present application, the drawings used in the descriptions of the embodiments or the conventional technologies will be briefly introduced below, it is obvious that the drawings in the following descriptions are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a method for using a wired headset and a Bluetooth headset simultaneously according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for selecting an audio routing strategy according to the type of audio source signal, according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method of two-way audio device strategy according to one embodiment of the invention;
FIG. 4 is a flowchart of a method for selecting the Bluetooth headset to play the audio source signal according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for selecting the wired headphones to play the audio source signal according to an embodiment of the invention;
FIG. 6 is a flowchart of a method for one-way audio device policy according to one embodiment of the present invention;
FIG. 7 is a block diagram of an electronic device according to an embodiment of the invention;
fig. 8 is a block diagram of an electronic device according to another embodiment of the present invention.
Detailed Description
To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Embodiments of the present application are set forth in the accompanying drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It is to be understood that "connection" in the following embodiments is to be understood as "electrical connection", "communication connection", and the like if the connected circuits, modules, units, and the like have communication of electrical signals or data with each other.
As used herein, the singular forms "a", "an" and "the" may include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises/comprising," "includes" or "including," etc., specify the presence of stated features, integers, steps, operations, components, parts, or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, components, parts, or combinations thereof.
Fig. 1 is a flowchart illustrating a method for simultaneously using a wired headset and a bluetooth headset according to an embodiment of the present invention, wherein the method for simultaneously using a wired headset and a bluetooth headset includes the following steps S100 to S400.
S100: an audio source signal is acquired.
S200: the audio source signals are classified to obtain an audio source signal type.
S300: selecting an audio routing strategy according to the classification of the audio source signals; the audio routing strategies comprise a single-channel audio equipment strategy and a double-channel audio equipment strategy.
S400: and controlling the corresponding audio equipment to play the audio source signal according to the audio routing strategy.
The method for simultaneously using the wired earphone and the Bluetooth earphone firstly classifies the audio source information after the audio source signals are acquired, and then selects the corresponding audio routing strategy according to different types of the audio source information. The audio routing strategies comprise a single-channel audio equipment strategy and a double-channel audio equipment strategy. When the playing scene applicable to the audio source signal is played by using a certain specific audio device, selecting a single-channel audio device strategy; and when the playing scene suitable for the audio source signal needs to be played by multiple audio devices at the same time, selecting a two-way audio device strategy. And controlling the corresponding audio equipment to play the audio source signal according to the selected audio routing strategy. The method for simultaneously using the wired earphone and the Bluetooth earphone can select the most appropriate audio equipment playing strategy according to different types of audio source signals, can support simultaneous playing of two audio equipment, and improves the tone quality experience of two persons listening to music or watching videos; meanwhile, the audio plug distributor is not required to be additionally used for connecting the earphones, so that the cost of using the two earphones at the same time can be reduced.
In one embodiment, the audio source signal types include music audio signals, video audio signals, voice call audio signals, and video call audio signals. In electronic devices, audio source signals are of various types, and different types of audio source signals also require different audio devices to be selected according to different application scenarios when being played. For example, when a user is using an electronic device, it is often desirable to share with a peer when listening to music or watching a video; when a call is made or a voice is answered, the content is often private, and the user wants to listen to the content alone. Therefore, it is necessary to classify the audio source signals and determine the type of the audio source signals in order to make the corresponding optimal audio device playback selection. Of course, the type of the audio source signal is not limited to the four audio signals, and may be other types of audio signals.
Fig. 2 is a flowchart of a method for selecting an audio routing policy according to the audio source signal type according to an embodiment of the present invention, where the audio source signal type selection audio routing policy includes the following steps S310 to S320.
S310: selecting the two-way audio device strategy when the audio source signal type is a music audio signal or a video audio signal.
S320: and when the audio source signal type is a voice call audio signal or a video call audio signal, selecting the one-way audio device strategy.
When a user uses electronic equipment, when the type of the audio source signal is a music audio signal or a video audio signal, the user often wants to share audio content with a companion, and the audio content can be influenced by sharing one earphone with the companion. When the type of the audio source signal is a voice call audio signal or a video call audio signal, since the content of the audio source signal is often private information, an electronic device needs to be connected to a pair of earphones, and a single-channel audio device strategy is selected to play the audio source signal by using a pair of earphones in the subsequent processing steps.
In one embodiment, the audio source signal type further comprises a ring tone audio signal. At this time, because the ring tone is used as a reminder when the electronic device is used, when the audio source signal type is a ring tone audio signal, the audio source signal is not played through an external earphone, so that the situation that the user misses the prompting ring tone because the user does not wear the earphone temporarily when the earphone is connected to the electronic device is avoided. At this time, a loudspeaker directly controlling the electronic device is selected to play the audio source signal.
Fig. 3 is a flowchart of a method of a two-way audio device strategy according to an embodiment of the present invention, where in an embodiment, the selecting a corresponding audio device to play the audio source signal according to the two-way audio device strategy includes the following steps S311 to S314.
S311: whether the electronic equipment is connected with a Bluetooth headset or/and a wired headset is detected.
S312: and if the detection electronic equipment is not connected with the Bluetooth earphone and the wired earphone, selecting a loudspeaker to play the audio source signal.
S313: and if the detection electronic equipment is only connected with the Bluetooth headset or the wired headset, selecting the Bluetooth headset or the wired headset to play the audio source signal.
S314: and if the detection electronic equipment is connected with the Bluetooth earphone and the wired earphone, selecting the Bluetooth earphone and the wired earphone to play the audio source signal simultaneously.
And after the two-way audio equipment strategy is selected to be used according to the type of the audio source signal, detecting the earphone connection condition of the electronic equipment. The open source program of the Android system comprises related standard interfaces for detecting the connection state of the earphone, whether the current electronic equipment is connected with the wired earphone or/and the Bluetooth earphone can be detected by using the interfaces, and corresponding playing equipment is controlled to play the audio source signal according to the detection result. The upper layer software of the Android system can select corresponding audio playing equipment such as a loudspeaker, a wired earphone, a Bluetooth earphone and the like according to different audio type settings. And when the Bluetooth headset or/and the wired headset are/is not connected with the electronic equipment, controlling a loudspeaker of the electronic equipment to play the audio source signal. When detecting that only the Bluetooth headset is connected with the electronic equipment, controlling the Bluetooth headset to play the audio source signal; likewise, when it is detected that only the wired headset is connected to the electronic device, the wired headset is controlled to play the audio source signal. And when detecting that the Bluetooth headset and the wired headset are both connected with the electronic equipment, controlling the Bluetooth headset and the wired headset to play the audio source signal simultaneously.
Fig. 4 is a flowchart of a method for selecting the bluetooth headset to play the audio source signal according to an embodiment of the present invention, wherein the selecting the bluetooth headset to play the audio source signal includes the following steps S410 to S420.
S410: the audio source signal is converted into a first format file conforming to a bluetooth communication protocol.
S420: and decoding the first format file into a first audio signal and transmitting the first audio signal to the Bluetooth headset so as to play the first audio signal.
And when the audio source signal is judged to need to be played by using the Bluetooth headset, converting the audio source signal in the electronic equipment into an audio data file, and caching the audio data file. And converting and coding the cached audio data file into a first format file conforming to a Bluetooth communication protocol through data conversion. And decoding the first format file to obtain a first audio signal, and transmitting the first audio signal to the Bluetooth headset through a Bluetooth communication module. And after receiving the first audio signal, the Bluetooth headset plays the first audio signal.
Fig. 5 is a flowchart illustrating a method for selecting the wired earphone to play the audio source signal according to an embodiment of the present invention, wherein the selecting the wired earphone to play the audio source signal includes steps S430 to S440.
S430: the audio source signal is converted to a second format file that conforms to a wired audio device communication protocol.
S440: and decoding the second format file into a second audio signal and transmitting the second audio signal to the wired earphone so as to play the second audio signal.
And when the wired earphone is judged to be needed to play the audio source signal, converting the audio source signal in the electronic equipment into an audio data file, and caching the audio data file. And converting and coding the cached audio data file into a second format file conforming to the communication protocol of the wired audio equipment through data conversion. And decoding the second format file to obtain a second audio signal, and transmitting the second audio signal to the wired earphone through a wired earphone connecting interface. And after receiving the second audio signal, the wired earphone plays the second audio signal.
In one embodiment, when it is determined that the audio source signal needs to be played by using the bluetooth headset and the wired headset at the same time, the audio source signal in the electronic device is converted into an audio data file, and the audio data file is cached. And respectively coding the cached audio data files into a first format file conforming to a Bluetooth communication protocol and a second format file conforming to a wired audio device communication protocol through data conversion. And respectively decoding the first format file and the second format file to obtain a first audio signal and a second audio signal, and simultaneously transmitting the first audio signal to the Bluetooth headset through a Bluetooth communication module and transmitting the second audio signal to the wired headset through a wired headset connecting interface. And the Bluetooth headset and the wired headset play the first audio signal and the second audio signal simultaneously after receiving the first audio signal and the second audio signal respectively.
Fig. 6 is a flowchart of a method of a one-way audio device policy according to an embodiment of the present invention, where in one embodiment, the selecting a corresponding audio device to play the audio source signal according to the one-way audio device policy includes the following steps S321 to S324.
S321: whether the electronic equipment is connected with a Bluetooth headset or/and a wired headset is detected.
S322: and if the detection electronic equipment is not connected with the Bluetooth earphone and the wired earphone, selecting a loudspeaker to play the audio source signal.
S323: and if the detection electronic equipment is only connected with the Bluetooth headset or the wired headset, selecting the Bluetooth headset or the wired headset to play the audio source signal.
S324: and if the detection electronic equipment is connected with the Bluetooth headset and the wired headset, a preset strategy selects one of the Bluetooth headset and the wired headset to play the audio source signal.
After the single-channel audio device strategy is selected to be used according to the audio source signal type, the earphone connection condition of the electronic device is detected. The open source program of the Android system comprises related standard interfaces for detecting the connection state of the earphone, whether the current electronic equipment is connected with the wired earphone or/and the Bluetooth earphone can be detected by using the interfaces, and corresponding playing equipment is controlled to play the audio source signal according to the detection result. The upper layer software of the Android system can select corresponding audio playing equipment such as a loudspeaker, a wired earphone, a Bluetooth earphone and the like according to different audio type settings. And when the Bluetooth headset or/and the wired headset are/is not connected with the electronic equipment, controlling a loudspeaker of the electronic equipment to play the audio source signal. When detecting that only the Bluetooth headset is connected with the electronic equipment, controlling the Bluetooth headset to play the audio source signal; and when detecting that only the wired earphone is connected with the electronic equipment, controlling the wired earphone to play the audio source signal. And when detecting that the Bluetooth headset and the wired headset are both connected with the electronic equipment, selecting one of the Bluetooth headset and the wired headset according to a preset strategy to play the audio source signal. The preset strategy can be correspondingly modified according to application requirements. For example, the preset policy may be that, when it is detected that the bluetooth headset and the wired headset are both connected to the electronic device, power consumption of the bluetooth headset or the wired headset is compared, and one of the two playing devices which is relatively power-saving is selected to play the audio source signal.
It should be understood that although the various steps in the flowcharts of fig. 1-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-6 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
Fig. 7 is a block diagram of an electronic device according to an embodiment of the present invention, where in an embodiment, the electronic device includes an audio receiving module 100, an analysis processing module 200, and a control module 300. The audio receiving module 100 is configured to acquire the audio source signal. The analysis processing module 200 is connected to the audio receiving module 100, and configured to classify the audio source signals and select an audio routing policy according to the type of the audio source signals; the audio routing strategies comprise a single-channel audio equipment strategy and a double-channel audio equipment strategy. The control module 300 is connected to the analysis processing module 200, and configured to control a corresponding audio device to play the audio source signal according to the audio routing policy.
The electronic device provided by the invention acquires the audio source signal through the audio receiving module 100, classifies the audio source information by using the analysis processing module 200 after acquiring the audio source signal, and selects a corresponding audio routing strategy according to different types of the audio source information. The audio routing strategies comprise a single-channel audio equipment strategy and a double-channel audio equipment strategy. When the playing scene applicable to the audio source signal is played by using a certain specific audio device, selecting a single-channel audio device strategy; and when the playing scene suitable for the audio source signal needs to be played by multiple audio devices at the same time, selecting a two-way audio device strategy. Finally, the control module 300 is utilized to control the corresponding audio device to play the audio source signal according to the selected audio routing policy. The electronic equipment provided by the invention can select the most appropriate audio equipment playing strategy according to different types of audio source signals, can support the simultaneous playing of two audio equipment, and improves the experience of listening to music or watching videos by two people; meanwhile, the audio plug distributor does not need to be additionally used, so that the cost of the two earphones when used simultaneously can be reduced.
Fig. 8 is a block diagram of an electronic device according to another embodiment of the present invention, wherein in one embodiment, the electronic device further includes a detection module 400. The detection module 400 is connected to the analysis processing module 200, and is configured to detect whether the electronic device is connected to a bluetooth headset or/and a wired headset. After selecting the corresponding audio routing policy according to the different types of the audio source information, the detection module 400 needs to be used to detect the earphone connection condition of the electronic device, and determine whether the bluetooth earphone or/and the wired earphone is connected to the electronic device. The open source program of the Android system comprises related standard interfaces for detecting the connection state of the earphone, whether the current electronic equipment is connected with the wired earphone or/and the Bluetooth earphone can be detected by using the interfaces, and corresponding playing equipment is controlled to play the audio source signal according to the detection result.
In one embodiment, the electronic device further comprises a data conversion module 500. The data conversion module 500 is connected to the control module 300, and is configured to convert the audio source signal into a first format file conforming to a bluetooth communication protocol or/and a second format file conforming to a wired audio device communication protocol. When the control module 300 controls the corresponding audio device to play the audio source signal according to the selected audio routing policy, the data conversion module 500 is required to convert the audio source signal received by the electronic device into an audio data file and buffer the audio data file. And respectively coding the cached audio data files into a first format file conforming to a Bluetooth communication protocol or/and a second format file conforming to a wired audio device communication protocol through data conversion. And decoding the first format file or/and the second format file respectively to obtain a first audio signal or/and a second audio signal, and transmitting the first audio signal to the Bluetooth headset through a Bluetooth communication module or/and transmitting the second audio signal to the wired headset through a wired headset connection interface. After receiving the first audio signal, the Bluetooth headset plays the first audio signal; and after receiving the second audio signal, the wired earphone plays the second audio signal.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of using a wired headset and a bluetooth headset simultaneously, comprising:
acquiring an audio source signal;
classifying the audio source signals to obtain audio source signal types;
selecting an audio routing policy according to the audio source signal type; the audio routing strategy comprises a single-channel audio equipment strategy and a double-channel audio equipment strategy;
and controlling the corresponding audio equipment to play the audio source signal according to the audio routing strategy.
2. The method of claim 1, wherein the audio source signal types comprise music audio signals, video audio signals, voice call audio signals, and video call audio signals.
3. The method of claim 2, wherein selecting an audio routing policy based on the audio source signal type comprises:
when the audio source signal type is a music audio signal or a video audio signal, selecting the two-way audio device strategy;
and when the audio source signal type is a voice call audio signal or a video call audio signal, selecting the one-way audio device strategy.
4. The method of claim 3, wherein selecting the corresponding audio device to play the audio source signal according to the two-way audio device policy comprises:
detecting whether the electronic equipment is connected with a Bluetooth headset or/and a wired headset;
if the detection electronic equipment is not connected with the Bluetooth headset and the wired headset, selecting a loudspeaker to play the audio source signal;
if the detection electronic equipment is only connected with the Bluetooth headset or the wired headset, selecting the Bluetooth headset or the wired headset to play the audio source signal;
and if the detection electronic equipment is connected with the Bluetooth earphone and the wired earphone, selecting the Bluetooth earphone and the wired earphone to play the audio source signal simultaneously.
5. The method of claim 4, wherein selecting the Bluetooth headset to play the audio source signal comprises:
converting the audio source signal into a first format file conforming to a Bluetooth communication protocol;
and decoding the first format file into a first audio signal and transmitting the first audio signal to the Bluetooth headset so as to play the first audio signal.
6. The method of claim 4, wherein selecting the wired headset to play the audio source signal comprises:
converting the audio source signal into a second format file conforming to a wired audio device communication protocol;
and decoding the second format file into a second audio signal and transmitting the second audio signal to the wired earphone so as to play the second audio signal.
7. The method of claim 3, wherein selecting the corresponding audio device to play the audio source signal according to the one-way audio device policy comprises:
detecting whether the electronic equipment is connected with a Bluetooth headset or/and a wired headset;
if the detection electronic equipment is not connected with the Bluetooth headset and the wired headset, selecting a loudspeaker to play the audio source signal;
if the detection electronic equipment is only connected with the Bluetooth headset or the wired headset, selecting the Bluetooth headset or the wired headset to play the audio source signal;
and if the detection electronic equipment is connected with the Bluetooth headset and the wired headset, a preset strategy selects one of the Bluetooth headset and the wired headset to play the audio source signal.
8. An electronic device, comprising:
the audio receiving module is used for acquiring the audio source signal;
the analysis processing module is connected with the audio receiving module and used for classifying the audio source signals and selecting an audio routing strategy according to the types of the audio source signals; the audio routing strategy comprises a single-channel audio equipment strategy and a double-channel audio equipment strategy;
and the control module is connected with the analysis processing module and used for controlling the corresponding audio equipment to play the audio source signal according to the audio routing strategy.
9. The electronic device of claim 8, further comprising:
and the detection module is connected with the analysis processing module and is used for detecting whether the electronic equipment is connected with a Bluetooth headset or/and a wired headset.
10. The electronic device of claim 8, further comprising:
and the data conversion module is connected with the control module and is used for converting the audio source signals into a first format file conforming to a Bluetooth communication protocol or/and a second format file conforming to a wired audio device communication protocol.
CN202010631812.1A 2020-07-03 2020-07-03 Method for simultaneously using wired earphone and Bluetooth earphone and electronic equipment Pending CN111782176A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010631812.1A CN111782176A (en) 2020-07-03 2020-07-03 Method for simultaneously using wired earphone and Bluetooth earphone and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010631812.1A CN111782176A (en) 2020-07-03 2020-07-03 Method for simultaneously using wired earphone and Bluetooth earphone and electronic equipment

Publications (1)

Publication Number Publication Date
CN111782176A true CN111782176A (en) 2020-10-16

Family

ID=72758595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010631812.1A Pending CN111782176A (en) 2020-07-03 2020-07-03 Method for simultaneously using wired earphone and Bluetooth earphone and electronic equipment

Country Status (1)

Country Link
CN (1) CN111782176A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422915A (en) * 2021-12-17 2022-04-29 珠海格力电器股份有限公司 Audio playing control method and device, electronic equipment and storage medium
CN116347413A (en) * 2023-04-06 2023-06-27 深圳市亚昱科技有限公司 Audio transmission device and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741978A (en) * 2008-11-14 2010-06-16 索尼爱立信移动通信日本株式会社 Portable terminal, audio output control method, and audio output control program
CN103677728A (en) * 2013-12-11 2014-03-26 上海斐讯数据通信技术有限公司 Electronic device and audio information sharing method
US20140341415A1 (en) * 2012-12-13 2014-11-20 Michael Zachary Camello Internal-External Speaker Headphones that Transform Into a Portable Sound System
CN105208511A (en) * 2015-08-28 2015-12-30 深圳市冠旭电子有限公司 Intelligent Bluetooth earphone-based music sharing method, system and intelligent Bluetooth earphone
CN108063874A (en) * 2017-12-26 2018-05-22 上海展扬通信技术有限公司 A kind of information processing method, device, terminal and computer readable storage medium
CN109857364A (en) * 2019-01-28 2019-06-07 Oppo广东移动通信有限公司 Audio frequency playing method and device, storage medium, communication terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741978A (en) * 2008-11-14 2010-06-16 索尼爱立信移动通信日本株式会社 Portable terminal, audio output control method, and audio output control program
US20140341415A1 (en) * 2012-12-13 2014-11-20 Michael Zachary Camello Internal-External Speaker Headphones that Transform Into a Portable Sound System
CN103677728A (en) * 2013-12-11 2014-03-26 上海斐讯数据通信技术有限公司 Electronic device and audio information sharing method
CN105208511A (en) * 2015-08-28 2015-12-30 深圳市冠旭电子有限公司 Intelligent Bluetooth earphone-based music sharing method, system and intelligent Bluetooth earphone
CN108063874A (en) * 2017-12-26 2018-05-22 上海展扬通信技术有限公司 A kind of information processing method, device, terminal and computer readable storage medium
CN109857364A (en) * 2019-01-28 2019-06-07 Oppo广东移动通信有限公司 Audio frequency playing method and device, storage medium, communication terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422915A (en) * 2021-12-17 2022-04-29 珠海格力电器股份有限公司 Audio playing control method and device, electronic equipment and storage medium
CN116347413A (en) * 2023-04-06 2023-06-27 深圳市亚昱科技有限公司 Audio transmission device and method

Similar Documents

Publication Publication Date Title
CN109445740B (en) Audio playing method and device, electronic equipment and storage medium
CN110049428B (en) Method, playing device and system for realizing multi-channel surround sound playing
CN107749299B (en) Multi-audio output method and device
EP1443737A1 (en) Headset comprising a wireless communication device communicating with at least two remote devices
CN113330761B (en) Method for occupying equipment and electronic equipment
EP2437473B1 (en) Control apparatus and control method
US10425758B2 (en) Apparatus and method for reproducing multi-sound channel contents using DLNA in mobile terminal
US20170195817A1 (en) Simultaneous Binaural Presentation of Multiple Audio Streams
CN111782176A (en) Method for simultaneously using wired earphone and Bluetooth earphone and electronic equipment
US20100075650A1 (en) Method of changing status of instant message software
US9602945B2 (en) Apparatus, method, and program for information processing
CN113411703B (en) Audio playing method, earphone box, wireless earphone and earphone suite
CN115022766B (en) Audio data playing method and equipment
CN109298846B (en) Audio transmission method and device, electronic equipment and storage medium
US10206031B2 (en) Switching to a second audio interface between a computer apparatus and an audio apparatus
CN111556406B (en) Audio processing method, audio processing device and earphone
CN114501401A (en) Audio transmission method and device, electronic equipment and readable storage medium
CN112423197A (en) Method and device for realizing multipath Bluetooth audio output
JP3144831U (en) Wireless audio system with stereo output
WO2021049683A1 (en) Digital radio system based on mobile terminal
US10051367B2 (en) Portable speaker
CN114666763B (en) Vehicle-mounted wireless earphone system, control method and vehicle-mounted wireless system
KR20090012947A (en) System and method for music broadcasting using zigbee communication module
CN117909082A (en) Method for occupying equipment and electronic equipment
JP2016118610A (en) Reproduction device with radio lan function, and co-listening 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