CN112771889A - Audio channel replacing method and related equipment - Google Patents

Audio channel replacing method and related equipment Download PDF

Info

Publication number
CN112771889A
CN112771889A CN201880098189.9A CN201880098189A CN112771889A CN 112771889 A CN112771889 A CN 112771889A CN 201880098189 A CN201880098189 A CN 201880098189A CN 112771889 A CN112771889 A CN 112771889A
Authority
CN
China
Prior art keywords
earphone
mobile terminal
audio output
audio
channel
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
CN201880098189.9A
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 Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai 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 Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN112771889A publication Critical patent/CN112771889A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses an audio channel replacement method and related equipment, which are applied to a mobile terminal, wherein the mobile terminal is in communication connection with a first earphone of a wireless earphone, the first earphone is in communication connection with a second earphone of the wireless earphone, and the method comprises the following steps: setting the audio output channel and the audio input channel as a wireless earphone; when the first earphone and the second earphone are determined to be both in a non-wearing state, replacing the audio output channel with an audio output device of the mobile terminal; and when the audio output channel is switched to the audio output device of the mobile terminal, replacing the audio input channel with the audio input device of the mobile terminal. By adopting the embodiment of the application, the user can be ensured to listen to the audio in time after taking off the earphone, and the accuracy of audio output is improved.

Description

Audio channel replacing method and related equipment Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to an audio channel replacing method and a related device.
Background
With the expanding application of wireless technology, the number of wireless devices supporting wireless communication connection is increasing, such as wireless earphones, wireless speakers, and the like. A mobile terminal (e.g., a smart phone, a tablet computer, etc.) may be communicatively coupled to a wireless device and then perform certain functions, such as outputting audio, etc., via the wireless device.
Disclosure of Invention
The embodiment of the application provides an audio channel replacement method and related equipment, so that a user can be guaranteed to listen to audio in time after taking off an earphone, and accuracy of audio output is improved.
In a first aspect, an embodiment of the present application provides an audio channel replacing method, which is applied to a mobile terminal, where the mobile terminal is in communication connection with a first earphone of a wireless earphone, and the first earphone is in communication connection with a second earphone of the wireless earphone, and the method includes:
setting an audio output channel and an audio input channel as the wireless headset;
when the first earphone and the second earphone are determined to be both in a non-wearing state, replacing the audio output channel with an audio output device of the mobile terminal;
and when the audio output channel is switched to the audio output device of the mobile terminal, replacing the audio input channel with the audio input device of the mobile terminal.
In a second aspect, an embodiment of the present application provides an audio channel replacing apparatus, which is applied to a mobile terminal, where the mobile terminal is in communication connection with a first earphone of a wireless earphone, and the first earphone is in communication connection with a second earphone of the wireless earphone, and the apparatus includes:
a processing unit for setting an audio output channel and an audio input channel as the wireless headset; when the first earphone and the second earphone are determined to be both in a non-wearing state, replacing the audio output channel with an audio output device of the mobile terminal; and when the audio output channel is switched to the audio output device of the mobile terminal, replacing the audio input channel with the audio input device of the mobile terminal.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in the method according to the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps described in the method according to the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps described in the method according to the first aspect of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the application, the mobile terminal sets the audio output channel and the audio input channel as the wireless earphones first, and when it is determined that the first earphones and the second earphones of the wireless earphones are both in the non-wearing state, the audio output channel is directly replaced by the audio output device of the mobile terminal, and the audio input channel is replaced by the audio input device of the mobile terminal, so that it can be ensured that a user can listen to audio in time after taking off the earphones, and accuracy of audio output is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description 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. 1A is a schematic diagram of a program runtime space of a smart phone;
FIG. 1B is a system architecture diagram of an android system;
fig. 2A is a schematic flowchart of an audio channel replacing method according to an embodiment of the present disclosure;
fig. 2B is a schematic diagram of an example of a location of an infrared proximity sensor according to an embodiment of the present application;
fig. 2C is a schematic diagram of an example of a location of a pressure proximity sensor according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of another audio channel changing method disclosed in the embodiment of the present application;
fig. 4 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application;
fig. 5 is a block diagram illustrating functional units of an audio channel replacing apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
As shown in fig. 1A, a current mobile terminal such as a smart phone is generally provided with a program running space, where the program running space includes a user space and an operating system space, where the user space runs one or more application programs, and the one or more application programs are third-party application programs installed on the mobile terminal.
The mobile terminal can specifically run an Android system, a mobile operating system iOS developed by apple Inc., and the like, and the mobile terminal is not limited herein. As shown in fig. 1B, for example, the mobile terminal runs an Android system, the corresponding user space includes an Application layer (Applications) in the Android system, and the operating system space may include an Application Framework layer (Application Framework) in the Android system, a system Runtime library layer (including system Runtime Libraries and Android Runtime runtimes), and a Linux Kernel layer (Linux Kernel). The application layer comprises various application programs which are directly interacted with the user or service programs which are written by Java language and run in the background. For example, programs that implement common basic functions on smartphones, such as Short Messaging Service (SMS) SMS, phone dialing, picture viewer, calendar, games, maps, World Wide Web (Web) browser, and other applications developed by developers. The application framework layer provides a series of class libraries required by Android application development, can be used for reusing components, and can also realize personalized extension through inheritance. And the system operation library layer is a support of an application program framework and provides services for each component in the Android system. The system operation library layer is composed of a system class library and Android operation. The Android runtime comprises two parts, namely a core library and a Dalvik virtual machine. The Linux kernel layer is used for realizing core functions such as hardware device driving, process and memory management, a network protocol stack, power management, wireless communication and the like.
Mobile terminals may include a variety of handheld devices, vehicle-mounted devices, wearable devices (e.g., smartwatches, smartbands, pedometers, etc.), computing devices or other processing devices communicatively connected to wireless modems, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), and so forth having wireless communication capabilities. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal.
The following describes embodiments of the present application in detail.
Referring to fig. 2A, fig. 2A is a schematic flowchart of an audio channel changing method provided in an embodiment of the present application, and is applied to a mobile terminal, where the mobile terminal is in communication connection with a first earphone of a wireless earphone, and the first earphone is in communication connection with a second earphone of the wireless earphone, and the audio channel changing method includes:
step 201: the mobile terminal sets the audio output channel and the audio input channel as the wireless headset.
Further, when the mobile terminal establishes a communication connection with the first earphone, step 201 is executed; and/or after the mobile terminal establishes a communication connection with the first earphone, if an application running in the foreground of the mobile terminal is a target application, executing step 201, where the target application is an application that requires audio input or audio output, such as a call application, an instant messaging application, an audio playing application, a video playing application, a shopping application, a news application, and the like; and/or performing step 201 when the first earphone and/or the second earphone is determined to be in a wearing state.
Step 202: and when the first earphone and the second earphone are determined to be both in a non-wearing state, the mobile terminal changes the audio output channel into an audio output device of the mobile terminal.
The audio output device of the mobile terminal includes, for example, a receiver, a speaker, a microphone, and the like.
Step 203: and when the audio output channel is switched to the audio output device of the mobile terminal, the mobile terminal replaces the audio input channel with the audio input device of the mobile terminal.
Examples of the audio input device of the mobile terminal include a handset, a speaker, and a microphone.
Further, the audio channel changing method is suitable for a call scene, a multimedia playing scene, a recording scene, an instant messaging chat scene capable of sending voice or playing voice and the like.
It should be noted that, the first earphone has audio output and audio input functions, and the second earphone also has audio output and audio input functions; alternatively, the first earpiece has only an audio output and the second earpiece has both audio output and audio input functionality; alternatively, the first earpiece has both audio output and audio input functionality, while the second earpiece has only audio output.
It can be seen that, in the embodiment of the application, mobile terminal sets up audio output channel and audio input channel into wireless earphone earlier, when confirming that first earphone and second earphone all are in the non-wearing state, directly change audio output channel for mobile terminal's audio output device to and change audio input channel for mobile terminal's audio input device, can guarantee like this that the user in time listens the audio frequency after taking off the earphone, promote audio output's accuracy, and then promote user experience.
In an implementation manner of the present application, the determining that the first earphone and the second earphone are both in a non-wearing state includes:
after receiving a first signaling and a second signaling from the first earphone, determining that the first earphone and the second earphone are both in a non-wearing state, wherein the first signaling is used for informing that the first earphone is in the non-wearing state, the second signaling is used for informing that the second earphone is in the non-wearing state, the first signaling is sent when the first earphone detects that the first earphone is in the non-wearing state, and the second signaling is forwarded through the first earphone when the second earphone detects that the second earphone is in the non-wearing state.
The first signaling and the second signaling may be sent at the same time or different times, which is not limited herein.
It can be seen that, in the embodiment of the application, the mobile terminal is informed of the earphone being in the non-wearing state through the signaling, the process is simple, and the convenience of the mobile terminal in determining the wearing state of the earphone is improved.
In an implementation manner of the present application, the first earphone and the second earphone each include an infrared proximity sensor, and when the infrared proximity sensor of the first earphone is in a distant state, the first earphone detects that the first earphone is in a non-wearing state; the second headset detects that the second headset is in a non-worn state when the infrared proximity sensor of the second headset is in a distant state.
Further, the infrared proximity sensor is arranged on the shell of the earphone, when the earphone is worn, the infrared proximity sensor is shielded, so that the infrared proximity sensor is in a proximity state, and when the earphone is not worn, the infrared proximity sensor is not shielded, so that the infrared proximity sensor is in a far-away state.
Specifically, the operating principle of the infrared proximity sensor is to determine whether the infrared proximity sensor is in a proximity state or in a distant state by the time of emitting infrared light and the time of receiving the reflected infrared light. In this embodiment of the application, as shown in fig. 2B, because the infrared proximity sensor is disposed on the housing of the headset, when the headset is worn by a user, the infrared proximity sensor is covered, and thus, a time difference between the time when the infrared proximity sensor emits infrared light and the time when the infrared light is received is close to 0, at this time, the infrared proximity sensor is considered to be in a close state, when the headset is not worn by the user, the infrared proximity sensor is not covered, and thus, a time difference between the time when the infrared proximity sensor emits infrared light and the time when the infrared light is received is far greater than 0, and at this time, the infrared proximity sensor is considered to be in a far.
It can be seen that, in this application embodiment, confirm through infrared proximity sensor whether the earphone is in wearing the state, it is simple convenient, promote the convenience that wearing the state detected.
In an implementation manner of the present application, each of the first earphone and the second earphone includes a plurality of pressure sensors, and when pressure values detected by the plurality of pressure sensors of the first earphone are all 0, the first earphone detects that the first earphone is in a non-wearing state; and when the pressure values detected by the pressure sensors of the second earphone are all 0, the second earphone detects that the second earphone is in a non-wearing state.
Further, the plurality of pressure sensors are arranged below the target surface of the earphone, when the earphone is worn, the target surface is in contact with the skin, so that the pressure values detected by at least two pressure sensors in the plurality of pressure sensors are not 0, and when the earphone is worn, the target surface is not in contact with the skin, so that the pressure values detected by the plurality of pressure sensors are all 0.
Further, the first earphone detects that the first earphone is in a wearing state when at least two detected pressure values in the plurality of pressure sensors of the first earphone are not 0; when there are at least two detected pressure values of the plurality of pressure sensors of the second headphone that are not 0, the second headphone detects that the second headphone is in a wearing state.
Further, the pressure values detected by at least two pressure sensors of the plurality of pressure sensors being different from 0 comprises at least one of: the pressure values detected by the at least two pressure sensors are both greater than or equal to a first threshold value, and the sum of the pressure values detected by the at least two pressure sensors is greater than or equal to a second threshold value.
The first threshold and the second threshold may be user-defined or earphone-defined, and are not limited herein. The location of the plurality of pressure sensors in the headset is shown in fig. 2C.
Specifically, the user wearing the earphone may prefer to put on the ear, and some users prefer to put in the ear, so that the situations detected by the pressure sensors may be as follows: 1. some pressure sensors do not detect a value; 2. some pressure sensors detect a small value; 3. the plurality of pressure sensors each detect a value; 4. the plurality of pressure sensors each detect a value greater than a single value. Therefore, whether the earphone is in a wearing state can be judged according to the conditions detected by the pressure sensors.
It can be seen that, in the embodiment of the application, whether the earphone is worn or not is determined by the plurality of pressure sensors together, so that the detection accuracy of the wearing state is improved.
In an implementation manner of the present application, before the mobile terminal changes the audio output channel to an audio output device of the mobile terminal, the method further includes: the mobile terminal determines that the first earphone is disconnected from the communication connection with the mobile terminal.
Further, the disconnection of the first earphone from the communication with the mobile terminal may be actively triggered by the first earphone (for example, triggered when the first earphone and the second earphone are both in a non-wearing state), or triggered by a user through a button of the first earphone (for example, pressing a power button of the first earphone).
Further, the communication connection between the first earphone and the mobile terminal is, for example: a call voice connection, a handsfree protocol (HFP) connection, a bluetooth Audio Distribution Profile (A2 DP) connection, etc.
It can be seen that, in the embodiment of the application, when the first earphone and the second earphone are both in the non-wearing state and the first earphone is disconnected from the communication with the mobile terminal, the switching of the audio channels is performed, so as to further improve the accuracy of audio output.
In an implementation manner of the present application, before the mobile terminal changes the audio output channel to an audio output device of the mobile terminal, the method further includes: and the mobile terminal receives specific signaling from the first earphone, wherein the specific signaling is used for indicating to replace the audio channel.
Further, the specific signaling may be triggered actively by the first headset (e.g., triggered when the first headset and the second headset are both not worn), or triggered by a user through a key of the first headset (e.g., pressing a power key of the first headset).
It can be seen that, in the embodiment of the present application, when the first earphone and the second earphone are both in the non-wearing state and receive the specific signaling, the switching of the audio channels is performed, so as to further improve the accuracy of audio output.
In an implementation manner of the present application, after the mobile terminal changes the audio output channel to an audio output device of the mobile terminal, the method further includes:
the mobile terminal adjusts the output volume of the audio output device of the mobile terminal to a first volume.
The first volume is determined based on the current geographic position, specifically based on a first mapping relation and the current geographic position, and the first mapping relation is a mapping relation between the volume of the audio output channel under the mobile terminal and the geographic position.
It can be seen that, in the embodiment of the application, after the audio output channel is switched, the output volume is reasonably adjusted, so that the audio listening effect is improved.
In an implementation manner of the present application, after step 203, the first earphone has audio output and audio input functions, and the second earphone has audio output functions, the method further includes:
when the first earphone is determined to be in a wearing state or the first earphone and the second earphone are in the wearing state, the mobile terminal replaces the audio output channel and the audio input channel with the wireless earphone;
and when the second earphone is determined to be in a wearing state, the mobile terminal changes the audio output channel into the wireless earphone.
In an implementation manner of the present application, after step 203, the first earphone and the second earphone each have an audio output and an audio input function, and the method further includes:
and when the first earphone and/or the second earphone is/are determined to be in a wearing state, the mobile terminal replaces the audio output channel and the audio input channel with the wireless earphone.
In an implementation manner of the present application, after step 203, the first earphone has an audio output function, the second earphone has an audio output and audio input function, and the method further includes:
when the second earphone is determined to be in a wearing state, or the first earphone and the second earphone are in a wearing state, the mobile terminal replaces the audio output channel and the audio input channel with the wireless earphone;
and when the first earphone is determined to be in a wearing state, the mobile terminal changes the audio output channel into the wireless earphone.
It can be seen that, in the embodiment of the application, when the wearing state of the earphone is changed, the mobile terminal switches the audio channels in time based on the wearing state of the earphone, so that the accuracy of audio output is improved, and further the user experience is improved.
Further, the determining that the first headset and/or the second headset are both in a wearing state includes:
when receiving a third signaling and/or a third signaling from the first earphone, determining that the first earphone and/or the second earphone are both in a wearing state, wherein the third signaling is used for informing that the first earphone is in the wearing state, the fourth signaling is used for informing that the second earphone is in the wearing state, the third signaling is sent when the first earphone detects that the first earphone is in the wearing state, and the fourth signaling is forwarded through the first earphone when the second earphone detects that the second earphone is in the wearing state.
The third signaling and the fourth signaling may be sent at the same time or different times, which is not limited herein.
It can be seen that, in the embodiment of the application, the mobile terminal is informed of the wearing state of the earphone through the signaling, the process is simple, and the convenience of the mobile terminal in determining the wearing state of the earphone is improved.
In an implementation manner of the present application, after the mobile terminal changes the audio output channel to the wireless headset, the method further includes:
and the mobile terminal adjusts the output volume of the wireless earphone to a second volume.
The second volume is determined based on the current geographic location, and specifically based on a second mapping relationship and the current geographic location, where the second mapping relationship is a mapping relationship between the volume and the geographic location of the audio output channel under the wireless headset.
It can be seen that, in the embodiment of the application, after the audio output channel is switched, the output volume is reasonably adjusted, so that the audio listening effect is improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of an audio channel changing method provided in an embodiment of the present application, and is applied to a mobile terminal, where the mobile terminal is in communication connection with a first earphone of a wireless earphone, the first earphone is in communication connection with a second earphone of the wireless earphone, the first earphone has audio output and audio input functions, and the second earphone has an audio output function, where as shown in the figure, the audio channel changing method includes:
step 301: the mobile terminal sets the audio output channel and the audio input channel as the wireless earphone.
Step 302: the mobile terminal receives a first signaling and a second signaling from the first earphone, the first signaling is used for informing that the first earphone is in a non-wearing state, the second signaling is used for informing that the second earphone is in a non-wearing state, the first signaling is sent when the first earphone detects that the first earphone is in the non-wearing state, and the second signaling is forwarded through the first earphone when the second earphone detects that the second earphone is in the non-wearing state.
Step 303: and when the first earphone and the second earphone are determined to be both in a non-wearing state, the mobile terminal changes the audio output channel into an audio output device of the mobile terminal.
Step 304: and when the audio output channel is switched to the audio output device of the mobile terminal, the mobile terminal replaces the audio input channel with the audio input device of the mobile terminal.
Step 305: and when the first earphone is determined to be in a wearing state, or the first earphone and the second earphone are in a wearing state, the mobile terminal replaces the audio output channel and the audio input channel with the wireless earphone.
It should be noted that, for the specific implementation process of the present embodiment, reference may be made to the specific implementation process described in the above method embodiment, and a description thereof is omitted here.
In accordance with the embodiments shown in fig. 2A and fig. 3, please refer to fig. 4, and fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application, the mobile terminal is communicatively connected to a first earphone of a wireless headset, the first earphone is communicatively connected to a second earphone of the wireless headset, as shown, the electronic device includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for performing the following steps:
setting an audio output channel and an audio input channel as the wireless headset;
when the first earphone and the second earphone are determined to be both in a non-wearing state, replacing the audio output channel with an audio output device of the mobile terminal;
and when the audio output channel is switched to the audio output device of the mobile terminal, replacing the audio input channel with the audio input device of the mobile terminal.
In an implementation manner of the present application, the determining that the first earphone and the second earphone are both in a non-wearing state includes:
after receiving a first signaling and a second signaling from the first earphone, determining that the first earphone and the second earphone are both in a non-wearing state, wherein the first signaling is used for informing that the first earphone is in the non-wearing state, the second signaling is used for informing that the second earphone is in the non-wearing state, the first signaling is sent when the first earphone detects that the first earphone is in the non-wearing state, and the second signaling is forwarded through the first earphone when the second earphone detects that the second earphone is in the non-wearing state.
In an implementation manner of the present application, the first earphone and the second earphone each include an infrared proximity sensor, and when the infrared proximity sensor of the first earphone is in a distant state, the first earphone detects that the first earphone is in a non-wearing state; the second headset detects that the second headset is in a non-worn state when the infrared proximity sensor of the second headset is in a distant state.
In an implementation manner of the present application, each of the first earphone and the second earphone includes a plurality of pressure sensors, and when pressure values detected by the plurality of pressure sensors of the first earphone are all 0, the first earphone detects that the first earphone is in a non-wearing state; and when the pressure values detected by the pressure sensors of the second earphone are all 0, the second earphone detects that the second earphone is in a non-wearing state.
In one implementation of the present application, before replacing the audio output channel with an audio output device of the mobile terminal, the program includes instructions for performing the following steps:
determining that the first earphone is disconnected from the communication connection with the mobile terminal.
In one implementation of the present application, before replacing the audio output channel with an audio output device of the mobile terminal, the program includes instructions for performing the following steps:
receiving specific signaling from the first headset, the specific signaling indicating to replace an audio channel.
In one implementation of the present application, the first earpiece has audio output and audio input capabilities, the second earpiece has audio output capabilities, and after replacing the audio input channel with an audio input device of the mobile terminal, the program includes instructions for:
replacing the audio output channel and the audio input channel with the wireless headset when the first headset is determined to be in a wearing state or the first headset and the second headset are in a wearing state;
and under the condition that the second earphone is determined to be in a wearing state, replacing the audio output channel with the wireless earphone.
It should be noted that, for the specific implementation process of the present embodiment, reference may be made to the specific implementation process described in the above method embodiment, and a description thereof is omitted here.
The above embodiments mainly introduce the scheme of the embodiments of the present application from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
The following is an embodiment of the apparatus of the present application, which is used to execute the method implemented by the embodiment of the method of the present application. Referring to fig. 5, fig. 5 is a diagram of an audio channel replacing device applied to a mobile terminal, where the mobile terminal is communicatively connected to a first earphone of a wireless earphone, and the first earphone is communicatively connected to a second earphone of the wireless earphone, and the audio channel replacing device includes:
a processing unit 501, configured to set an audio output channel and an audio input channel as the wireless headset; when the first earphone and the second earphone are determined to be both in a non-wearing state, replacing the audio output channel with an audio output device of the mobile terminal; and when the audio output channel is switched to the audio output device of the mobile terminal, replacing the audio input channel with the audio input device of the mobile terminal.
The audio channel replacing apparatus further includes a communication unit 502 and a storage unit 503, the processing unit 501 may be a processor, the communication unit 502 may be a communication interface, and the storage unit 503 may be a memory.
In an implementation manner of the present application, the determining that the first earphone and the second earphone are both in a non-wearing state includes: after receiving a first signaling and a second signaling from the first headset through the communication unit 502, determining that the first headset and the second headset are both in a non-wearing state, where the first signaling is used to inform that the first headset is in the non-wearing state, the second signaling is used to inform that the second headset is in the non-wearing state, the first signaling is sent when the first headset detects that the first headset is in the non-wearing state, and the second signaling is forwarded through the first headset when the second headset detects that the second headset is in the non-wearing state.
In an implementation manner of the present application, the first earphone and the second earphone each include an infrared proximity sensor, and when the infrared proximity sensor of the first earphone is in a distant state, the first earphone detects that the first earphone is in a non-wearing state; the second headset detects that the second headset is in a non-worn state when the infrared proximity sensor of the second headset is in a distant state.
In an implementation manner of the present application, each of the first earphone and the second earphone includes a plurality of pressure sensors, and when pressure values detected by the plurality of pressure sensors of the first earphone are all 0, the first earphone detects that the first earphone is in a non-wearing state; and when the pressure values detected by the pressure sensors of the second earphone are all 0, the second earphone detects that the second earphone is in a non-wearing state.
In an implementation manner of the present application, before the processing unit 501 changes the audio output channel to the audio output device of the mobile terminal, the processing unit 501 is further configured to determine that the first earphone is disconnected from the communication connection with the mobile terminal.
In an implementation manner of the present application, before the processing unit 501 changes the audio output channel to the audio output device of the mobile terminal, the processing unit 501 is further configured to receive a specific signaling from the first earphone through the communication unit 502, where the specific signaling is used to instruct to change the audio channel.
In an implementation manner of the present application, the first earphone has audio output and audio input functions, the second earphone has audio output functions, and after the processing unit 501 changes the audio input channel to the audio input device of the mobile terminal, the processing unit 501 is further configured to change the audio output channel and the audio input channel to the wireless earphone when it is determined that the first earphone is in a wearing state or the first earphone and the second earphone are in a wearing state; and under the condition that the second earphone is determined to be in a wearing state, replacing the audio output channel with the wireless earphone.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

  1. An audio channel changing method applied to a mobile terminal, wherein the mobile terminal is in communication connection with a first earphone of a wireless earphone, and the first earphone is in communication connection with a second earphone of the wireless earphone, the method comprising:
    setting an audio output channel and an audio input channel as the wireless headset;
    when the first earphone and the second earphone are determined to be both in a non-wearing state, replacing the audio output channel with an audio output device of the mobile terminal;
    and when the audio output channel is switched to the audio output device of the mobile terminal, replacing the audio input channel with the audio input device of the mobile terminal.
  2. The method of claim 1, wherein the determining that the first headset and the second headset are both in a non-worn state comprises:
    after receiving a first signaling and a second signaling from the first earphone, determining that the first earphone and the second earphone are both in a non-wearing state, wherein the first signaling is used for informing that the first earphone is in the non-wearing state, the second signaling is used for informing that the second earphone is in the non-wearing state, the first signaling is sent when the first earphone detects that the first earphone is in the non-wearing state, and the second signaling is forwarded through the first earphone when the second earphone detects that the second earphone is in the non-wearing state.
  3. The method of claim 2, wherein the first and second earpieces each include an infrared proximity sensor, the first earpiece detecting that the first earpiece is in a non-worn state with the infrared proximity sensor of the first earpiece in a distant state; the second headset detects that the second headset is in a non-worn state when the infrared proximity sensor of the second headset is in a distant state.
  4. The method of claim 2, wherein the first earphone and the second earphone each comprise a plurality of pressure sensors, and the first earphone detects that the first earphone is in a non-worn state when the plurality of pressure sensors of the first earphone detect pressure values of 0; and when the pressure values detected by the pressure sensors of the second earphone are all 0, the second earphone detects that the second earphone is in a non-wearing state.
  5. The method according to any of claims 1-4, wherein prior to replacing the audio output channel with an audio output device of the mobile terminal, the method further comprises: determining that the first earphone is disconnected from the communication connection with the mobile terminal.
  6. The method according to any of claims 1-4, wherein prior to replacing the audio output channel with an audio output device of the mobile terminal, the method further comprises: receiving specific signaling from the first headset, the specific signaling indicating to replace an audio channel.
  7. The method according to any of claims 1-6, wherein the first earpiece has audio output and audio input capabilities, wherein the second earpiece has audio output capabilities, and wherein after the audio input channel is exchanged for an audio input device of the mobile terminal, the method further comprises:
    replacing the audio output channel and the audio input channel with the wireless headset when the first headset is determined to be in a wearing state or the first headset and the second headset are in a wearing state;
    and under the condition that the second earphone is determined to be in a wearing state, replacing the audio output channel with the wireless earphone.
  8. An audio channel changing apparatus applied to a mobile terminal, wherein the mobile terminal is in communication connection with a first earphone of a wireless earphone, and the first earphone is in communication connection with a second earphone of the wireless earphone, the apparatus comprising:
    a processing unit for setting an audio output channel and an audio input channel as the wireless headset; when the first earphone and the second earphone are determined to be both in a non-wearing state, replacing the audio output channel with an audio output device of the mobile terminal; and when the audio output channel is switched to the audio output device of the mobile terminal, replacing the audio input channel with the audio input device of the mobile terminal.
  9. A mobile terminal comprising a processor, memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the method of any of claims 1-7.
  10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN201880098189.9A 2018-10-27 2018-10-27 Audio channel replacing method and related equipment Pending CN112771889A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/112240 WO2020082387A1 (en) 2018-10-27 2018-10-27 Method for changing audio channel, and related device

Publications (1)

Publication Number Publication Date
CN112771889A true CN112771889A (en) 2021-05-07

Family

ID=70332142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880098189.9A Pending CN112771889A (en) 2018-10-27 2018-10-27 Audio channel replacing method and related equipment

Country Status (2)

Country Link
CN (1) CN112771889A (en)
WO (1) WO2020082387A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12075220B2 (en) 2020-06-22 2024-08-27 Apple Inc. Smart routing for audio output devices
CN114077414A (en) * 2020-08-14 2022-02-22 Oppo广东移动通信有限公司 Audio playing control method and device, electronic equipment and storage medium
CN113242493A (en) * 2021-03-31 2021-08-10 联想(北京)有限公司 Processing method and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065832A (en) * 2014-07-17 2014-09-24 广东欧珀移动通信有限公司 Method and device for preventing mobile terminals from missing calls
CN104113794A (en) * 2013-04-22 2014-10-22 联想(北京)有限公司 Information processing method, information processing system and headset
CN105072242A (en) * 2015-07-30 2015-11-18 广东欧珀移动通信有限公司 Method for voice prompt and mobile terminal
CN105491469A (en) * 2014-09-15 2016-04-13 Tcl集团股份有限公司 Method and system for controlling audio output mode based on wearing earphone state
CN106453791A (en) * 2016-10-27 2017-02-22 宇龙计算机通信科技(深圳)有限公司 A sound signal output method and apparatus and an earphone state detection method and apparatus
CN106528041A (en) * 2016-11-07 2017-03-22 广东欧珀移动通信有限公司 Voice output mode switching method and device, and terminal
CN107302638A (en) * 2017-08-18 2017-10-27 广东欧珀移动通信有限公司 A kind of volume adjusting method, device, storage medium and mobile terminal
CN107819958A (en) * 2017-11-30 2018-03-20 河南浩德科技有限公司 Method for regulation of sound volume, device, mobile terminal and computer-readable storage medium
WO2018058899A1 (en) * 2016-09-28 2018-04-05 珠海格力电器股份有限公司 Sound volume adjusting method and apparatus of intelligent terminal
CN107959903A (en) * 2016-10-18 2018-04-24 中兴通讯股份有限公司 Audio output switching method, feedback earphone wearing state method, apparatus and earphone
CN108702567A (en) * 2017-11-27 2018-10-23 深圳市汇顶科技股份有限公司 Earphone, test earphone wearing state method and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566604B (en) * 2017-07-12 2020-04-07 广东小天才科技有限公司 Message reminding control method and user terminal

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113794A (en) * 2013-04-22 2014-10-22 联想(北京)有限公司 Information processing method, information processing system and headset
CN104065832A (en) * 2014-07-17 2014-09-24 广东欧珀移动通信有限公司 Method and device for preventing mobile terminals from missing calls
CN105491469A (en) * 2014-09-15 2016-04-13 Tcl集团股份有限公司 Method and system for controlling audio output mode based on wearing earphone state
CN105072242A (en) * 2015-07-30 2015-11-18 广东欧珀移动通信有限公司 Method for voice prompt and mobile terminal
WO2018058899A1 (en) * 2016-09-28 2018-04-05 珠海格力电器股份有限公司 Sound volume adjusting method and apparatus of intelligent terminal
CN107959903A (en) * 2016-10-18 2018-04-24 中兴通讯股份有限公司 Audio output switching method, feedback earphone wearing state method, apparatus and earphone
CN106453791A (en) * 2016-10-27 2017-02-22 宇龙计算机通信科技(深圳)有限公司 A sound signal output method and apparatus and an earphone state detection method and apparatus
CN106528041A (en) * 2016-11-07 2017-03-22 广东欧珀移动通信有限公司 Voice output mode switching method and device, and terminal
CN107302638A (en) * 2017-08-18 2017-10-27 广东欧珀移动通信有限公司 A kind of volume adjusting method, device, storage medium and mobile terminal
CN108702567A (en) * 2017-11-27 2018-10-23 深圳市汇顶科技股份有限公司 Earphone, test earphone wearing state method and electronic equipment
CN107819958A (en) * 2017-11-30 2018-03-20 河南浩德科技有限公司 Method for regulation of sound volume, device, mobile terminal and computer-readable storage medium

Also Published As

Publication number Publication date
WO2020082387A1 (en) 2020-04-30

Similar Documents

Publication Publication Date Title
EP3591987B1 (en) Method for controlling earphone switching, earphone, and earphone system
CN109040887B (en) Master-slave earphone switching control method and related product
CN109104684B (en) Microphone hole blockage detection method and related product
CN109445740B (en) Audio playing method and device, electronic equipment and storage medium
US11102697B2 (en) Method for controlling earphone switching and earphone
CN109040446B (en) Call processing method and related product
JP5798943B2 (en) Mobile terminal, earphone identification program, and earphone identification method
EP2645737A2 (en) Apparatus and method for interfacing earphone
US20120009906A1 (en) System and method for resuming media
CN113411793A (en) Bluetooth communication method and terminal
CN108777827B (en) Wireless earphone, volume adjusting method and related product
CN103414982A (en) Method and device for offering voice
CN109107158B (en) Sound effect processing method and device, electronic equipment and computer readable storage medium
CN112771889A (en) Audio channel replacing method and related equipment
EP3098721B1 (en) Communication method and terminal
CN110147557A (en) The charging box and storage medium of a kind of interpretation method, system and wireless headset
US11507340B2 (en) Audio output method, electronic device, and storage medium
CN106060708A (en) Terminal and method of playing audio
CN109508168B (en) Multi-channel volume adjusting method and related device
CN111277697B (en) Audio processing method and device, storage medium and electronic equipment
CN112806023B (en) Control method of wireless earphone and related product
CN106657621B (en) Self-adaptive adjusting device and method for sound signal
CN104780260A (en) Method for controlling volume of mobile terminal and mobile terminal
CN106603830A (en) Alarm prompting device and method for terminal equipment
CN108377298B (en) Method and device for switching answering mode, mobile terminal and computer readable storage medium

Legal Events

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