WO2017185602A1 - 一种耳机模式切换方法和电子设备 - Google Patents
一种耳机模式切换方法和电子设备 Download PDFInfo
- Publication number
- WO2017185602A1 WO2017185602A1 PCT/CN2016/099904 CN2016099904W WO2017185602A1 WO 2017185602 A1 WO2017185602 A1 WO 2017185602A1 CN 2016099904 W CN2016099904 W CN 2016099904W WO 2017185602 A1 WO2017185602 A1 WO 2017185602A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- earphone
- mode
- terminal
- headset
- working
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
Definitions
- the present application relates to the field of communications, and in particular, to a headset mode switching method and an electronic device.
- the digital earphone is a earphone designed with a digital signal interface. It is similar to the design of the most common portable earphones and earphones at present. Instead of using the 3.5mm interface, the data cable interface of the mobile phone is used as the interface of the earphone.
- the digital earphone has a built-in DAC (Digital to Analog Converter) and an amplification filter. The mobile phone or other portable device only provides digital signals and power supply, and the earphone directly decodes and amplifies the signal.
- DAC Digital to Analog Converter
- digital earphones Compared with traditional earphones, digital earphones have many advantages.
- the decoding and amplifying parts of analog amplifying circuits are placed in the earphones.
- the earphone interface can provide pure digital signals directly to the earphones, which will effectively reduce the attenuation of audio in transmission. Maintaining digital signals helps reduce crosstalk, reduces distortion and noise floor, and the overall sound quality can be optimized through headphones, giving users a better sense of hearing.
- the embodiment of the present application provides a headset mode switching method and an electronic device, which are used to solve the problem that the sound quality of the conventional earphone is seriously damaged in the prior art, and the digital earphone cannot perform a call or the call is not effective.
- the embodiment of the present application provides a headset mode switching method, which is applied to a terminal, and includes:
- the terminal acquires an operating state of the audio processing unit of the terminal and an operating mode of the earphone connected to the terminal, where the working state of the audio processing unit includes a call working state and a non-call working state, and the working mode of the earphone includes a number Audio mode and analog audio mode;
- the terminal When determining that the working state of the audio processing unit does not correspond to the working mode of the earphone, the terminal sends a switching command to the earphone, so that the earphone switches the working mode of the earphone according to the switching command;
- the call working state of the audio processing unit corresponds to an analog audio mode of the earphone, and the non-call working state of the audio processing unit corresponds to a digital audio mode of the earphone.
- the method before the acquiring, by the terminal, the working state of the audio processing unit of the terminal and the working mode of the earphone connected to the terminal, the method further includes:
- the terminal determines that a working state of the audio processing unit changes, or
- the terminal monitors that the headset establishes a connection with the terminal.
- the terminal determines that the working state of the audio processing unit changes, including:
- the terminal connected to the headset establishes a call connection
- an operating state of an audio processing unit of the terminal and an operating mode of a headset connected to the terminal including:
- the terminal acquires an operation mode of the headset when establishing a call connection
- the terminal When the terminal determines that the working state of the audio processing unit does not correspond to the working mode of the earphone, the terminal sends a switching command to the earphone, including:
- the terminal When the working mode of the earphone is a digital audio mode, the terminal sends a first switching command to the earphone, where the first switching command is used to instruct the earphone to switch the working mode to the analog audio mode.
- the terminal determines that the working state of the audio processing unit changes, including:
- an operating state of an audio processing unit of the terminal and an operating mode of a headset connected to the terminal including:
- the terminal acquires an operation mode of the headset
- the terminal When the terminal determines that the working state of the audio processing unit does not correspond to the working mode of the earphone, the terminal sends a switching command to the earphone, including:
- the terminal sends a second switching command to the earphone, where the second switching command is used to instruct the earphone to switch the working mode to the digital audio mode.
- the terminal detects that the headset establishes a connection with the terminal, including:
- the terminal detects that a connection is established with the headset during a call
- an operating state of an audio processing unit of the terminal and an operating mode of a headset connected to the terminal including:
- the terminal After the terminal establishes a connection with the headset, acquiring, by the terminal, an operation mode of the headset;
- the terminal When the terminal determines that the working state of the audio processing unit does not correspond to the working mode of the earphone, the terminal sends a switching command to the earphone, including:
- the terminal When the working mode of the earphone is a digital audio mode, the terminal sends a third switching command to the earphone, where the third switching command is used to instruct the earphone to switch the working mode to the analog audio mode.
- a headset mode switching method is applied to an earphone, and the method includes:
- the headset receives a handover command sent by the terminal connected to the headset, where the handover command is sent when the terminal determines that the working state of the audio processing unit of the terminal does not correspond to the working mode of the headset, the audio
- the working status of the processing unit includes the call working status and non-call work.
- a state in which the working mode of the earphone includes a digital audio mode and an analog audio mode;
- the earphone switches an operation mode of the earphone according to the switching command
- the call working state of the audio processing unit corresponds to an analog audio mode of the earphone, and the non-call working state of the audio processing unit corresponds to a digital audio mode of the earphone.
- the headset receives a handover command sent by the terminal connected to the headset, including:
- the headset switches the working mode of the headset according to the switching command, including:
- the earphone switches the working mode of the earphone to an analog audio mode according to the first switching command.
- the headset receives a handover command sent by the terminal connected to the headset, including:
- the headset receives a second handover command sent by the terminal, where the second handover command is sent after the terminal ends the call, and obtains an operation mode of the headset as an analog audio mode;
- the headset switches the working mode of the headset according to the switching command, including:
- the earphone switches the working mode of the earphone to a digital audio mode according to the second switching command.
- the headset receives a handover command sent by the terminal connected to the headset, including:
- the headset switches the working mode of the headset according to the switching command, including:
- the earphone switches the working mode of the earphone to an analog audio mode according to the third switching command.
- a headphone mode switching device applied to a terminal comprising:
- An obtaining module configured to acquire an operating state of an audio processing unit of the terminal, and connected to the terminal Working mode of the earphone, the working state of the audio processing unit includes a call working state and a non-call working state, and the working mode of the earphone includes a digital audio mode and an analog audio mode;
- a determining module configured to determine whether an operating state of the audio processing unit corresponds to an operating mode of the earphone
- a sending module configured to send a switching command to the earphone when the working state of the audio processing unit does not correspond to the working mode of the earphone, so that the earphone switches the working of the earphone according to the switching command mode;
- the call working state of the audio processing unit corresponds to an analog audio mode of the earphone, and the non-call working state of the audio processing unit corresponds to a digital audio mode of the earphone.
- a determining module is further included for:
- the determining module is specifically configured to determine that the terminal connected to the headset is establishing a call connection
- the acquiring module is specifically configured to acquire an operating mode of the headset when establishing a call connection
- the sending module is configured to: when the working mode of the earphone is a digital audio mode, send a first switching command to the earphone, where the first switching command is used to indicate that the earphone switches the working mode to analog audio. mode.
- the determining module is specifically configured to determine that the terminal connected to the headset ends a call
- the acquiring module is specifically configured to acquire an operating mode of the headset when ending a call;
- the sending module is configured to: when the working mode of the earphone is an analog audio mode, send a second switching command to the earphone, where the second switching command is used to instruct the earphone to switch the working mode to digital audio. mode.
- the determining module is specifically configured to establish a connection with the headset during a call
- the acquiring module is specifically configured to acquire an operating mode of the headset after establishing a connection with the headset;
- the sending module is configured to: when the working mode of the earphone is a digital audio mode, send a third switching command to the earphone, where the third switching command is used to indicate that the earphone switches the working mode to analog audio. mode.
- a headphone mode switching device applied to a headset comprising:
- a receiving module configured to receive a switching command sent by the terminal connected to the earphone, where the switching command is sent when the terminal determines that the working state of the audio processing unit of the terminal does not correspond to the working mode of the earphone
- the working state of the audio processing unit includes a call working state and a non-call working state
- the working mode of the earphone includes a digital audio mode and an analog audio mode
- a switching module configured to switch an operating mode of the headset according to the switching command
- the call working state of the audio processing unit corresponds to an analog audio mode of the earphone, and the non-call working state of the audio processing unit corresponds to a digital audio mode of the earphone.
- the receiving module is configured to receive a first switching command sent by the terminal, where the first switching command is when the terminal establishes a call connection, and obtains an operating mode of the headset as digital audio. Sent after the mode;
- the switching module is specifically configured to switch the working mode of the earphone to an analog audio mode according to the first switching command.
- the receiving module is configured to receive a second switching command sent by the terminal, where the second switching command is when the terminal ends the call, and the working mode of the headset is obtained as an analog audio mode.
- the switching module is specifically configured to switch the working mode of the earphone to a digital audio mode according to the second switching command.
- the receiving module is configured to receive a third handover command sent by the terminal, where the third handover command is that the terminal detects that a connection with the headset is established during a call, and obtains the The working mode of the earphone is sent after the digital audio mode;
- the switching module is specifically configured to switch the working mode of the earphone to an analog audio mode according to the third switching command.
- a terminal comprising:
- At least one processor and,
- the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
- the working state of the audio processing unit includes a call working state and a non-call working state
- the working mode of the earphone includes a digital audio mode and Analog audio mode
- a transceiver configured to send a switching command to the earphone when the operating state of the audio processing unit does not correspond to an operating mode of the earphone, so that the earphone switches the working of the earphone according to the switching command mode;
- the call working state of the audio processing unit corresponds to an analog audio mode of the earphone, and the non-call working state of the audio processing unit corresponds to a digital audio mode of the earphone.
- At least one processor and,
- the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
- the transceiver is configured to receive a handover command sent by a terminal connected to the headset, where the handover command is when the terminal determines that an operation state of an audio processing unit of the terminal does not correspond to an operation mode of the headset
- the working state of the audio processing unit includes a call working state and a non-call working state, and the working mode of the earphone includes a digital audio mode and an analog audio mode;
- the call working state of the audio processing unit corresponds to an analog audio mode of the earphone, and the non-call working state of the audio processing unit corresponds to a digital audio mode of the earphone.
- a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform any of the above described methods for a headset mode switching method of a terminal.
- a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform any of the above to apply to a headset mode switching method of a headset.
- a computer program product comprising a computing program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to execute Any of the above is applied to the headset mode switching method of the terminal.
- a computer program product comprising a computing program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to execute Any of the above is applied to the earphone mode switching method of the earphone.
- the working state of the audio processing unit of the terminal includes a call working state and a non-call working state
- the earphone connected to the terminal supports the digital audio mode and the analog audio mode.
- the digital audio mode corresponds to a non-call working state of the audio processing unit
- the analog audio mode corresponds to a call working state of the audio processing unit. That is, when the terminal is in a non-calling state such as listening to music and watching video, the working mode of the earphone should be a digital audio mode, which ensures the quality of the sound; when the terminal is in a call working state, the analog signal is easy to implement and the existing communication
- the platform supports analog communication, so the headset's working mode needs to be analog audio mode.
- the terminal acquires the working state of the terminal and the working mode of the earphone connected to the terminal, and sends a switch to the earphone when determining that the working state of the terminal does not correspond to the working mode of the earphone. Command so that the headset switches the operating mode of the headset according to the switching command.
- the earphones in the embodiment are advantageous in that they have the advantages of a conventional earphone, and have the advantage of having a digital earphone.
- the working mode of the earphone is an analog audio mode, which ensures the quality of the user's call; when the audio processing unit is in a non-talking state, the working mode of the earphone is a digital audio mode, reducing crosstalk. Interference, reduce the distortion of the sound and the noise floor, to bring better sound quality to the user.
- Figure 1 is a waveform diagram of an analog signal
- FIG. 3 is a flowchart of a method for switching a headset mode according to an embodiment of the present disclosure
- FIG. 4 is a flowchart of a method for switching a headset mode in a specific embodiment of the present application
- FIG. 5 is a flowchart of another method for switching a headset mode in a specific embodiment of the present application.
- FIG. 6 is a schematic structural diagram of an apparatus for switching a headset mode applied to a terminal according to an embodiment of the present application
- FIG. 7 is a schematic structural diagram of an apparatus for switching a headset mode applied to an earphone according to an embodiment of the present application
- FIG. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.
- FIG. 9 is a schematic structural diagram of an earphone according to an embodiment of the present application.
- the terminal in the embodiment of the present application may be an electronic terminal that can transmit an audio signal, such as a mobile phone, a smart watch, a tablet computer, a notebook computer, or a desktop computer.
- an audio signal such as a mobile phone, a smart watch, a tablet computer, a notebook computer, or a desktop computer.
- the embodiment of the present application does not limit this, and only the mobile phone is taken as an example.
- the digital signal and the analog signal are first introduced.
- Both of these signals are electrical signals, which are constantly changing currents that pass information through changes in current or voltage values.
- the analog signal whose waveform is shown in Figure 1, is a signal that accurately replicates the original information waveform by changing the current. For example, for an audio signal, the audio loudness becomes larger, the voltage becomes larger, the frequency is increased, and the voltage change frequency is Upgrade accordingly.
- the analog signal is an accurate simulation of the original signal, it has many advantages, such as easy generation and interpretation, accurate recording, etc., but the disadvantage is that the signal itself is continuous, irregular and too complicated, and the interference is very fragile. Moreover, it is not easy to store and read in a binary computer device. In order to solve these problems, digital signals were born.
- the waveform of the digital signal is shown in Fig. 2.
- the implementation method is to use the differential method to sample the continuous signal by a certain frequency, and then use the limited coding rule to represent the sampled value, and encode the binary code composed of 0 and 1. Then, it is transmitted in the circuit by recording the square wave current of the value and the clock current of the recorded number of bits. Since this signal uses discrete binary coding, the composition rules are simple, so it is easy to store and is not susceptible to interference, but because of its limited coding mode, the description of irregular information is not accurate enough, so it can only be used in a manner similar to screen resolution. The accuracy of demand adjustments has resulted in a variety of media files of varying quality and quality. In other words, the digital signal is more resistant to interference than the analog signal, suitable for transmission and storage, but difficult to compile and interpret.
- the electrical signal is the changing current
- the acoustic signal is the vibration of the object.
- the two are converted by magnetism.
- the current forms a magnetic field
- the changing current forms a changing magnetic field, so that the magnetic object in the magnetic field is Will be forced to move due to changes in the magnetic field.
- the magnet that exists in the magnetic field formed by the electrical signal will cause the object connected to it to follow the vibration of the electrical signal, and naturally it can sound.
- the traditional 3.5mm interface earphone is that the mobile phone processes the digital audio signal of the flash memory, such as format conversion, add Dolby sound, etc., and then integrates through a separate DAC chip or Codec (COder-DECoder) in the mobile phone.
- the chip converts the digital audio signal into an analog audio signal. Because the analog audio signal processed by the conversion is weak, the analog audio signal is amplified by the amplification filter, the amplified signal is transmitted to the earphone, and the sound is heard through the earphone, and then the user can hear the sound. Therefore, the interface function of the conventional earphone is to transmit an analog signal.
- the digital audio signal is converted into an analog audio signal in a mobile phone, it is easily interfered by other signals, and the analog audio signal needs to amplify the attenuated transmission signal during transmission, and the noise is inevitably superimposed on the signal during transmission. Zoomed in at the same time. As the transmission distance increases, noise accumulates more and more, so that the transmission quality is seriously deteriorated.
- the digital headphones interface uses a digital signal interface.
- the digital earphone has its own DAC and amplification filter.
- the mobile phone only outputs and supplies digital audio signals.
- the headphones directly decode and amplify the signals.
- the interface of the digital earphone transmits the pure digital signal directly to the earphone, and then the digital audio signal is converted into an analog audio signal by the earphone and amplified, that is, transmitted through the digital signal.
- the amplitude of the digital signal is a finite number of discrete values (usually taking two amplitudes), although it is also interfered by noise during transmission, when the signal-to-noise ratio deteriorates to a certain extent,
- the decision reproduction method can be adopted at an appropriate distance, and the same digital audio signal as the original transmission end without noise interference can be generated, so that long-distance high-quality transmission can be realized, which helps to reduce crosstalk interference and reduce digital audio signal. Distortion and noise floor.
- the digital earphone is especially suitable for listening to music, watching video, etc., and can ensure the sound quality and sound effect of the sound.
- the digital headset's call is not good, and even the call cannot be made.
- the digital audio signal has a wide occupied frequency band, and a digital audio signal needs to occupy a bandwidth of 2064 kHz, and an analog voice channel only occupies a bandwidth of 4 kHz, that is, one digital audio signal. It takes up a few analog roads.
- the technical requirements of digital communication are complicated, especially the synchronization technology requires high precision. Therefore, the existing communication platform does not support the communication of digital signals, and cannot perform digital communication.
- the earphone in the embodiment of the present application is a digital earphone of the TYPE-C type interface, and uses a complete digital decoding and an operational amplifier. It is a combination of a digital audio mode and an analog audio mode, and the earphone interface itself supports analog audio output. And digital audio output.
- the analog audio mode is similar to the prior art 3.5mm interface earphone, which converts the digital audio signal into an analog audio signal in the mobile phone.
- the digital audio mode is a headphone similar to the digital signal interface of the prior art. That is to say, when the TYPE-C type interface functions as the audio output function, the amplified analog signal can be directly output; at the same time, the DAC and the amplification filter are placed in the earphone, and the TYPE-C type interface can receive the digital audio signal transmitted from the mobile phone. Convert digital audio signals to analog signals in headphones.
- the earphone is a TYPE-C type earphone.
- the headset is equipped with hardware and corresponding software that supports the analog audio mode, as well as hardware and corresponding software that supports the digital audio mode.
- the mobile phone converts the digital audio signal into an analog audio signal, and then transmits it to the earphone through the amplification filter, and the earphone is in the analog audio mode, and the hardware corresponding to the digital audio mode in the earphone is turned off by the software, and is turned on.
- the TYPE-C type interface at this time is to transmit analog signals.
- the mobile phone In the non-talk state, the mobile phone does not perform digital-to-analog conversion, and directly sends the digital audio signal to the earphone.
- the earphone is in the digital audio mode at this time, and the hardware such as the built-in DAC and the amplification filter in the TYPE-C type interface is turned on, and will receive The resulting digital audio signal is converted to an analog audio signal.
- the method of the method for switching the mode of the headset provided by the embodiment of the present application is shown in FIG. 3, and the method may include the following steps:
- the terminal acquires an working state of an audio processing unit of the terminal and an operating mode of a headset connected to the terminal.
- the working state of the audio processing unit includes a call working state and a non-call working state
- the working mode of the earphone includes a digital audio mode and an analog audio mode.
- the terminal sends a switching command to the earphone when determining that the working state of the audio processing unit does not correspond to the working mode of the earphone.
- the call working state of the audio processing unit corresponds to the analog audio mode of the earphone, and the non-call working state of the audio processing unit corresponds to the digital audio mode of the earphone.
- the earphone can switch the working mode of the earphone according to the switching command. Specifically, the operation mode of the earphone is switched from the digital audio mode to the analog audio mode, and the function of the digital earphone device corresponding to the DAC and the amplification filter in the earphone can be turned off by the software in the chip in the earphone, so that the digital audio is enabled. The signal is converted to an analog audio signal in the phone. Correspondingly, the operation mode of the earphone is switched from the analog audio mode to the digital audio mode, that is, the function of the device such as the DAC and the amplification filter in the earphone is also turned on by the software in the chip in the earphone, and the earphone directly receives the mobile phone. Digital audio signal and convert digital audio signals into analog audio signals in headphones.
- the working state of the audio processing unit of the terminal includes a call working state and a non-call working state
- the earphone connected to the terminal supports the digital audio mode and the analog audio mode.
- the digital audio mode corresponds to a non-call working state of the audio processing unit
- the analog audio mode corresponds to a call working state of the audio processing unit. That is, when the terminal is in a non-calling state such as listening to music and watching video, the working mode of the earphone should be a digital audio mode, which ensures the quality of the sound; when the terminal is in a call working state, the analog signal is easy to implement and the existing communication
- the platform supports analog communication, so the headset's working mode needs to be analog audio mode.
- the terminal acquires the working state of the terminal and the working mode of the earphone connected to the terminal, and sends a switch to the earphone when determining that the working state of the terminal does not correspond to the working mode of the earphone. Command so that the headset switches the operating mode of the headset according to the switching command.
- the earphone in the embodiment of the present application retains the advantages of the conventional earphone, and has the advantage of having a digital earphone.
- the working mode of the earphone is an analog audio mode, which ensures the quality of the user's call; when the audio processing unit is in a non-talking state, the working mode of the earphone is a digital audio mode, reducing crosstalk. Interference, reduce the distortion of the sound and the noise floor, to bring better sound quality to the user.
- the method further includes: determining, by the terminal, the working state of the audio processing unit The state changes, or the terminal monitors that the headset establishes a connection with the terminal.
- the change of the working state of the audio processing unit herein includes the audio processing unit transitioning from the non-call working state to the talking working state, and from the call working state to the non-call working state.
- the earphone in order to ensure the sound quality of the user to obtain the sound, the earphone is generally set to the digital audio mode.
- the working mode of the headset After the mobile phone is switched to the call state, in order to ensure the normal call quality, the working mode of the headset needs to be switched to the analog audio mode. After the mobile phone call ends, it is necessary to switch the working mode of the headset back to the digital audio mode.
- the mobile phone is connected to the headset during the call, it is also necessary to switch the working mode of the headset to the analog audio mode.
- the mobile phone is divided into an external mode and a headphone mode.
- the earphone interface is inserted into the mobile phone, the voltage and current of the corresponding chip on the mobile phone chip change, such as from low level to high level.
- the software in the phone is notified to identify the inserted hardware.
- the earphone identification can be performed by the ID of the TYPE-C type earphone.
- the obtained earphone ID number is compared with the ID list of the TYPE-C type earphone stored in the chip, and if it is determined that the inserted earphone is a TYPE-C type earphone, a switching command is sent to the earphone.
- the terminal determines that the working state of the audio processing unit changes, that is, the terminal connected to the earphone is establishing a call connection;
- an operating state of an audio processing unit of the terminal and an operating mode of a headset connected to the terminal including:
- the terminal acquires an operation mode of the headset when establishing a call connection
- the terminal When the terminal determines that the working state of the audio processing unit does not correspond to the working mode of the earphone, the terminal sends a switching command to the earphone, including:
- the terminal When the working mode of the earphone is a digital audio mode, the terminal sends a first switching command to the earphone, where the first switching command is used to instruct the earphone to switch the working mode to the analog audio mode.
- the mobile phone was originally in a non-call state, and the TYPE-C headset connected to it is playing music in the mobile phone.
- the headset is in the digital audio mode, or the mobile phone is in the standby state, and the TYPE-C headset is set by default.
- the mobile phone sends a call connection request to other terminals, or the mobile phone receives the call connection request sent by another terminal, and acquires the working mode of the earphone as a digital audio mode. Since the working mode of the earphone does not correspond to the working state of the audio processing unit in the mobile phone, the mobile phone sends a first switching command to the earphone. The earphone switches the working mode of the earphone to the analog audio mode according to the first switching command.
- the terminal determines that the working state of the audio processing unit changes, including:
- an operating state of an audio processing unit of the terminal and an operating mode of a headset connected to the terminal including:
- the terminal acquires an operation mode of the headset
- the terminal When the terminal determines that the working state of the audio processing unit does not correspond to the working mode of the earphone, the terminal sends a switching command to the earphone, including:
- the terminal sends a second switching command to the earphone, where the second switching command is used to instruct the earphone to switch the working mode to the digital audio mode.
- Case 2 corresponds to Case 1, specifically, the headset on the handset in the call state is in the analog audio mode.
- the working mode of the headset is obtained into an analog audio mode. Since the working mode of the earphone does not correspond to the non-call working state of the audio processing unit in the mobile phone, the mobile phone sends a second switching command to the earphone. The earphone switches the working mode of the earphone to the digital audio mode according to the second switching command.
- the terminal detects that the headset establishes a connection with the terminal, including:
- the terminal detects that a connection is established with the headset during a call
- the working mode of the headset including:
- the terminal After the terminal establishes a connection with the headset, acquiring, by the terminal, an operation mode of the headset;
- the terminal When the terminal determines that the working state of the audio processing unit does not correspond to the working mode of the earphone, the terminal sends a switching command to the earphone, including:
- the terminal When the working mode of the earphone is a digital audio mode, the terminal sends a third switching command to the earphone, where the third switching command is used to instruct the earphone to switch the working mode to the analog audio mode.
- the current mobile phone is talking to other terminals, and the mobile phone is not connected to the headset, and is in the external mode.
- the mobile phone monitors the connection with the TYPE-C type earphone, and the working mode of the TYPE-C type earphone is obtained from the earphone. Since the working mode of the earphone generally defaults to the digital audio mode, the mobile phone sends a third switching command to the earphone. According to the third switching command, the earphone switches the working mode of the earphone to the analog audio mode, so that the user can make a call.
- the headset mode switching method includes:
- the headset receives a handover command sent by the terminal connected to the headset, where the handover command is sent when the terminal determines that the working state of the audio processing unit of the terminal does not correspond to the working mode of the headset, the audio
- the working state of the processing unit includes a call working state and a non-call working state
- the working mode of the earphone includes a digital audio mode and an analog audio mode
- the earphone switches an operation mode of the earphone according to the switching command.
- the call working state of the audio processing unit corresponds to an analog audio mode of the earphone, and the non-call working state of the audio processing unit corresponds to a digital audio mode of the earphone.
- the headset receives a handover command sent by the terminal connected to the headset, including:
- the headset switches the working mode of the headset according to the switching command, including:
- the earphone switches the working mode of the earphone to an analog audio mode according to the first switching command.
- the headset receives a handover command sent by the terminal connected to the headset, including:
- the headset receives a second handover command sent by the terminal, where the second handover command is sent after the terminal ends the call, and obtains an operation mode of the headset as an analog audio mode;
- the headset switches the working mode of the headset according to the switching command, including:
- the earphone switches the working mode of the earphone to a digital audio mode according to the second switching command.
- the headset receives a handover command sent by the terminal connected to the headset, including:
- the headset switches the working mode of the headset according to the switching command, including:
- the earphone switches the working mode of the earphone to an analog audio mode according to the third switching command.
- a scenario described in a specific embodiment is that a headset is connected to the mobile phone, and the user is listening to the music stored on the mobile phone through the earphone, and the mobile phone receives a call request from another mobile phone.
- the specific process is shown in Figure 4, which can include the following steps:
- the mobile phone receives a call request.
- step S202 The mobile phone obtains the connected earphone ID number, compares the ID number of the earphone with the ID number list of the TYPE-C type earphone stored on the mobile phone chip, and determines whether the earphone is a TYPE-C type earphone, and if yes, performs the step S203, otherwise step S206 is performed.
- the mobile phone determines that the working mode of the earphone is a digital audio mode.
- the mobile phone sends a first switching command to the earphone.
- the earphone After receiving the first switching command, the earphone switches the working mode to the analog audio mode.
- the earphone plays the sound from other terminals. In this way, the user can talk to users of other terminals.
- the mobile phone confirms that the call ends.
- the mobile phone determines that the working mode of the earphone is an analog audio mode.
- the mobile phone sends a second switching command to the earphone.
- the earphone After receiving the second switching command, the earphone switches the working mode to the digital audio mode.
- the user can continue to listen to the music stored on the phone.
- the scenario described in another specific embodiment is that the headset is not connected to the mobile phone, and the user is talking with the user of the other terminal through the loudspeaker provided on the mobile phone. At this time, the user wants to make a call through the earphone, and inserts the earphone into the mobile phone. On the corresponding jack.
- Figure 5 The specific process is shown in Figure 5, which can include the following steps:
- the mobile phone determines to establish a connection with the earphone by changing a voltage on the chip.
- step S302 The mobile phone obtains the connected earphone ID number, compares the ID number of the earphone with the ID number list of the TYPE-C type earphone stored on the mobile phone chip, and determines whether the earphone is a TYPE-C type earphone, and if yes, performs the step S303. Otherwise, step S306 is performed.
- the mobile phone determines that the working mode of the earphone is a digital audio mode.
- the mobile phone sends a third switching command to the earphone.
- the earphone After receiving the third switching command, the earphone switches the working mode to the analog audio mode.
- the earphone plays the sound from other terminals. In this way, the user can talk to the users of other terminals through the headset.
- the mobile phone confirms that the call ends.
- the mobile phone determines that the working mode of the earphone is an analog audio mode.
- the mobile phone sends a second switching command to the earphone.
- the earphone After receiving the second switching command, the earphone switches the working mode to the digital audio mode.
- the embodiment of the present application further provides a headset mode switching device applied to a terminal, as shown in FIG. 6, including:
- the obtaining module 1 is configured to acquire an working state of the audio processing unit of the terminal and connect to the terminal Working mode of the earphone, the working state of the audio processing unit includes a call working state and a non-call working state, and the working mode of the earphone includes a digital audio mode and an analog audio mode;
- a determining module 2 configured to determine whether an operating state of the audio processing unit corresponds to an operating mode of the earphone
- a sending module 3 configured to send a switching command to the earphone when the operating state of the audio processing unit does not correspond to the working mode of the earphone, so that the earphone switches the earphone according to the switching command Operating mode;
- the call working state of the audio processing unit corresponds to an analog audio mode of the earphone, and the non-call working state of the audio processing unit corresponds to a digital audio mode of the earphone.
- the working state of the audio processing unit of the terminal includes a call working state and a non-call working state
- the earphone connected to the terminal supports the digital audio mode and the analog audio mode.
- the digital audio mode corresponds to a non-call working state of the audio processing unit
- the analog audio mode corresponds to a call working state of the audio processing unit. That is, when the terminal is in a non-calling state such as listening to music and watching video, the working mode of the earphone should be a digital audio mode, which ensures the quality of the sound; when the terminal is in a call working state, the analog signal is easy to implement and the existing communication
- the platform supports analog communication, so the headset's working mode needs to be analog audio mode.
- the obtaining module 1 acquires the working state of the terminal and the working mode of the earphone connected to the terminal, and when the determining module 2 determines that the working state of the terminal does not correspond to the working mode of the earphone
- the sending module 3 sends a switching command to the earphone, so that the earphone switches the working mode of the earphone according to the switching command.
- the working mode of the earphone is an analog audio mode, which ensures the quality of the user's call; when the audio processing unit is in a non-talking state, the working mode of the earphone is a digital audio mode, reducing crosstalk. Interference, reduce the distortion of the sound and the noise floor, to bring better sound quality to the user.
- the determining module 4 is further configured to:
- the determining module 4 determines that the operating state of the audio processing unit changes, including the transition from the non-call working state to the call working state, and from the call working state to the non-call working state. Specifically, in the non-talk state of the mobile phone, in order to ensure the sound quality of the user to obtain the sound, the earphone is generally set to the digital audio mode. After the determining module 4 determines that the mobile phone is in the call state, in order to ensure the normal call quality, the working mode of the earphone needs to be switched to the analog audio mode. After the mobile phone call ends, it is necessary to switch the working mode of the headset back to the digital audio mode.
- the determining module 4 detects that a connection is established with the earphone during the call, the working mode of the earphone needs to be switched to the analog audio mode.
- the mobile phone is divided into an external mode and a headphone mode.
- the earphone interface is inserted into the mobile phone, the voltage and current of the corresponding chip on the mobile phone chip change, such as from low level to high level.
- the determination module 4 will identify the inserted hardware.
- the determining module 4 can perform earphone recognition through the ID of the TYPE-C type earphone.
- the obtained earphone ID number is compared with the ID list of the TYPE-C type earphone stored in the mobile phone. If it is determined that the inserted earphone is a TYPE-C type earphone, a switching command is sent to the earphone.
- the determining module 4 is specifically configured to determine that the terminal connected to the headset is in a call connection.
- the acquiring module 1 is specifically configured to acquire an operating mode of the headset when establishing a call connection;
- the sending module 3 is configured to: when the working mode of the earphone is a digital audio mode, send a first switching command to the earphone, where the first switching command is used to indicate that the earphone switches the working mode to an analog audio mode. .
- the mobile phone was originally in a non-call state, and the TYPE-C headset connected to it is playing music in the mobile phone.
- the headset is in the digital audio mode, or the mobile phone is in the standby state, and the TYPE-C headset is set by default.
- the determining module 4 determines that the mobile phone sends a call connection request to other terminals, or after the mobile phone receives the call connection request sent by the other terminal, the acquiring module 1 acquires the working mode of the earphone as a digital audio mode. Since the working mode of the earphone does not correspond to the call working state of the audio processing unit in the mobile phone, the sending module 3 sends a first switching command to the earphone. The earphone switches the working mode of the earphone to the mode according to the first switching command. Analog audio mode.
- the determining module 4 is specifically configured to determine that the terminal connected to the headset ends the call;
- the acquiring module 1 is specifically configured to acquire an operating mode of the headset when ending a call;
- the sending module 3 is configured to: when the working mode of the earphone is an analog audio mode, send a second switching command to the earphone, where the second switching command is used to instruct the earphone to switch the working mode to the digital audio mode. .
- the headset on the handset in a call state is in analog audio mode.
- the determining module 4 determines that the mobile phone ends the call, and the acquiring module 1 acquires the working mode of the earphone into an analog audio mode. Since the working mode of the earphone does not correspond to the non-talking working state of the audio processing unit in the mobile phone, the sending module 3 sends a second switching command to the earphone. The earphone switches the working mode of the earphone to the digital audio mode according to the second switching command.
- the determining module 4 is configured to detect a connection with the headset during a call
- the acquiring module 1 is configured to acquire an operating mode of the headset after establishing a connection with the headset;
- the sending module 3 is configured to send a third switching command to the headset when the working mode of the headset is a digital audio mode, where the third switching command is used to indicate that the headset switches the working mode to the analog audio mode. .
- the current mobile phone is talking to other terminals, and the mobile phone is not connected to the headset, and is in the external mode.
- the determining module 4 detects that the connection with the TYPE-C type earphone is established, and the obtaining module 1 acquires the working mode of the TYPE-C type earphone from the earphone. Since the working mode of the earphone generally defaults to the digital audio mode, the transmitting module 3 sends a third switching command to the earphone. According to the third switching command, the earphone switches the working mode of the earphone to the analog audio mode, so that the user can make a call.
- the embodiment of the present application further provides a headphone mode switching device applied to an earphone, as shown in FIG. 7, comprising:
- the receiving module 5 is configured to receive a switching command sent by the terminal connected to the earphone, where the switching command is that the terminal determines the working state of the audio processing unit of the terminal and the working of the earphone When the mode is not corresponding, the working state of the audio processing unit includes a call working state and a non-call working state, and the working mode of the earphone includes a digital audio mode and an analog audio mode;
- the switching module 6 is configured to switch an operating mode of the headset according to the switching command
- the call working state of the audio processing unit corresponds to an analog audio mode of the earphone, and the non-call working state of the audio processing unit corresponds to a digital audio mode of the earphone.
- the switching module 6 can switch the working mode of the earphone according to the switching command received by the receiving module 5, specifically, the working mode of the earphone is switched from the digital audio mode to the analog audio mode, and the DAC and the amplification filter in the earphone are turned off by the switching module 6.
- the functions corresponding to the digital earphone device enable the digital audio signal to be converted into an analog audio signal in the mobile phone.
- the operation mode of the earphone is switched from the analog audio mode to the digital audio mode, that is, the function of the DAC and the amplification filter in the earphone is turned on by the switching module 6, and the earphone directly receives the digital audio signal transmitted from the mobile phone. And convert the digital audio signal into an analog audio signal in the earphone.
- the receiving module 5 is configured to receive a first switching command sent by the terminal, where the first switching command is when the terminal establishes a call connection, and acquires an operating mode of the earphone as a digital audio mode. After sending
- the switching module 6 is specifically configured to switch the working mode of the earphone to an analog audio mode according to the first switching command.
- the receiving module 5 is configured to receive a second switching command sent by the terminal, where the second switching command is when the terminal ends the call, and after the working mode of the headset is obtained as an analog audio mode, Sent
- the switching module 6 is specifically configured to switch the working mode of the earphone to a digital audio mode according to the second switching command.
- the receiving module 5 is configured to receive a third switching command sent by the terminal, where the third switching command is that the terminal detects that a connection is established with the headset during a call, and acquires the headset.
- the working mode is sent after the digital audio mode;
- the switching module 6 is configured to cut the working mode of the headset according to the third switching command. Switch to analog audio mode.
- terminal embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
- the embodiment of the present application provides a terminal.
- the terminal provided by the embodiment of the present application is as shown in FIG. 8.
- the terminal includes: a processor 801, a memory 802, a transceiver 803, and a bus system 804.
- the processor 801, the memory 802, and the transceiver 803 can be connected to the bus system 804 or Other ways to connect.
- the memory 802 is used as a non-volatile computer readable storage medium, and can be used for storing a non-volatile software program, a non-volatile computer-executable program, and a module, as in the processing method of the list item operation in the embodiment of the present application.
- the processor 801 performs various functions of the server by running non-volatile software programs, instructions, and modules stored in the memory 802.
- Application and data processing that is, a processing method for implementing the operation of the list item of the above method embodiment.
- the memory 802 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created by use of the processing device operated according to the list item, and the like. .
- memory 802 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
- the memory 802 can optionally include memory remotely located relative to the processor 801 that can be connected to the processing device of the list item operation over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
- Processor 801 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 801 or an instruction in a form of software.
- the processor 801 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component.
- DSP digital signal processor
- ASIC application specific integrated circuit
- FPGA field programmable gate array
- the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- the steps of the method disclosed in the embodiments of the present application may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
- the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
- the storage medium is located in the memory 802, and the processor 801 reads the information in the memory 802 and performs the following steps in conjunction with its hardware:
- the working state of the audio processing unit of the terminal includes a call working state and a non-call working state
- the working mode of the earphone includes Digital audio mode and analog audio mode
- the call working state of the audio processing unit corresponds to an analog audio mode of the earphone, and the non-call working state of the audio processing unit corresponds to a digital audio mode of the earphone.
- the processor 801 is specifically configured to:
- the processor 801 is specifically configured to:
- the processor is specifically configured to determine that the terminal connected to the headset is in a call connection
- the transceiver 803 is specifically configured to: when the working mode of the earphone is a digital audio mode, send a first switching command to the earphone, where the first switching command is used to instruct the earphone to switch the working mode to the analog mode. Audio mode.
- the processor 801 is specifically configured to:
- the transceiver 803 is specifically configured to: when the working mode of the earphone is an analog audio mode, send a second switching command to the earphone, where the second switching command is used to indicate that the earphone switches the working mode to a digital Audio mode.
- the processor 801 is specifically configured to:
- the transceiver 803 is specifically configured to: when the working mode of the earphone is a digital audio mode, send a third switching command to the earphone, where the third switching command is used to instruct the earphone to switch the working mode to the analog mode. Audio mode.
- the working state of the audio processing unit of the terminal includes a call working state and a non-call working state
- the earphone connected to the terminal supports the digital audio mode and the analog audio mode.
- the digital audio mode corresponds to a non-call working state of the audio processing unit
- the analog audio mode corresponds to a call working state of the audio processing unit. That is, when the terminal is in a non-calling state such as listening to music and watching video, the working mode of the earphone should be a digital audio mode, which ensures the quality of the sound; when the terminal is in a call working state, the analog signal is easy to implement and the existing communication
- the platform supports analog communication, so the headset's working mode needs to be analog audio mode.
- the terminal acquires the working state of the terminal and the working mode of the earphone connected to the terminal, and sends a switch to the earphone when determining that the working state of the terminal does not correspond to the working mode of the earphone. Command so that the headset switches the operating mode of the headset according to the switching command.
- the earphone in the embodiment of the present application retains the advantages of the conventional earphone, and has the advantage of having a digital earphone.
- the working mode of the earphone is an analog audio mode, which ensures the quality of the user's call; when the audio processing unit is in a non-talking state, the working mode of the earphone is a digital audio mode, reducing crosstalk. Interference, reduce the distortion of the sound and the noise floor, to bring better sound quality to the user.
- an embodiment of the present application provides an earphone.
- the earphone structure provided by the embodiment of the present application is as shown in FIG. 9.
- the earphone includes: a processor 901, a memory 902, a transceiver 903, and a bus system 904.
- the processor 901, the memory 902, and the transceiver 903 can pass through the bus system 904. Or connect in other ways.
- the memory 902 is used as a non-volatile computer readable storage medium, and can be used for storing a non-volatile software program, a non-volatile computer-executable program, and a module, as in the processing method of the list item operation in the embodiment of the present application.
- the processor 901 executes various functional applications of the server and data processing by executing non-volatile software programs, instructions, and modules stored in the memory 902, that is, a processing method for implementing the operation of the list item operations of the above method embodiments.
- the memory 902 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created by use of the processing device operated according to the list item, and the like. .
- the memory 902 can include high speed
- the random access memory may also include a non-volatile memory such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device.
- the memory 902 can optionally include memory remotely located relative to the processor 901 that can be connected to the processing device of the list item operation over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof. ;
- the processor 901 controls the operation of the device that determines the motion information of the object to be tested, and the processor 901 may also be referred to as a CPU (Central Processing Unit).
- the components of the device for determining the motion information of the object to be tested are coupled together by a bus system 904.
- the bus system 904 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus.
- various buses are labeled as bus system 904 in the figure. For ease of representation, only the schematic drawing is shown in FIG.
- the method disclosed in the foregoing embodiment of the present application may be applied to the processor 901 or implemented by the processor 901.
- the processor 901 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method may be completed by an integrated logic circuit of hardware in the processor 901 or an instruction in a form of software.
- the processor 901 described above may be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or discrete hardware. Component.
- DSP digital signal processor
- ASIC application specific integrated circuit
- FPGA field programmable gate array
- the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- the steps of the method disclosed in the embodiments of the present application may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
- the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
- the storage medium is located in the memory 902, and the processor 901 reads the information in the memory 902 and performs the following steps in conjunction with its hardware:
- a handover command sent by the terminal connected to the earphone where the handover command is sent when the terminal determines that the working state of the audio processing unit of the terminal does not correspond to the working mode of the headset,
- the working state of the audio processing unit includes a call working state and Non-call working state
- the working mode of the earphone includes a digital audio mode and an analog audio mode;
- the call working state of the audio processing unit corresponds to an analog audio mode of the earphone, and the non-call working state of the audio processing unit corresponds to a digital audio mode of the earphone.
- the transceiver 903 is specifically configured to receive a first handover command sent by the terminal, where the first handover command is when the terminal establishes a call connection, and obtains an operation mode of the headset as a number. Sent after the audio mode;
- the processor 901 is specifically configured to switch the working mode of the earphone to an analog audio mode according to the first switching command.
- the transceiver 903 is specifically configured to receive a second handover command sent by the terminal, where the second handover command is when the terminal ends the call, and obtains an operation mode of the headset as analog audio. Sent after the mode;
- the processor 901 is specifically configured to switch the working mode of the earphone to a digital audio mode according to the second switching command.
- the transceiver 903 is configured to receive a third handover command sent by the terminal, where the third handover command is that the terminal detects a connection with the headset during a call, and acquires The working mode of the earphone is sent after the digital audio mode;
- the processor 901 is specifically configured to switch the working mode of the earphone to an analog audio mode according to the third switching command.
- the working state of the audio processing unit of the terminal includes a call working state and a non-call working state
- the earphone connected to the terminal supports the digital audio mode and the analog audio mode.
- the digital audio mode corresponds to a non-call working state of the audio processing unit
- the analog audio mode corresponds to a call working state of the audio processing unit. That is, when the terminal is in a non-calling state such as listening to music and watching video, the working mode of the earphone should be a digital audio mode, which ensures the quality of the sound; when the terminal is in a call working state, the analog signal is easy to implement and the existing communication Platform support model It is intended to communicate, so the working mode of the headset needs to be in analog audio mode.
- the terminal acquires the working state of the terminal and the working mode of the earphone connected to the terminal, and sends a switch to the earphone when determining that the working state of the terminal does not correspond to the working mode of the earphone. Command so that the headset switches the operating mode of the headset according to the switching command.
- the earphone in the embodiment of the present application retains the advantages of the conventional earphone, and has the advantage of having a digital earphone.
- the working mode of the earphone is an analog audio mode, which ensures the quality of the user's call; when the audio processing unit is in a non-talking state, the working mode of the earphone is a digital audio mode, reducing crosstalk. Interference, reduce the distortion of the sound and the noise floor, to bring better sound quality to the user.
- the electronic device of the embodiment of the present application exists in various forms, including but not limited to:
- Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
- Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
- Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has mobile Internet access.
- Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
- Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
- the server consists of a processor, a hard disk, a memory, a system bus, etc.
- the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power and stability High reliability in terms of reliability, security, scalability, and manageability.
- the embodiment of the present application provides a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform any one of the applications to the terminal. Headphone mode switching method.
- Embodiments of the present application provide a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform any of the above to be applied to an earphone Headphone mode switching method.
- Embodiments of the present application provide a computer program product, including a computing program stored on a non-transitory computer readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer And causing the computer to perform any of the above-described methods for applying the headphone mode switching method of the terminal.
- Embodiments of the present application provide a computer program product, including a computing program stored on a non-transitory computer readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer And causing the computer to perform the earphone mode switching method applied to the earphone according to any one of the above.
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
本申请涉及移动通信领域,尤其涉及一种耳机模式切换方法和电子设备,包括:终端获取终端的音频处理单元的工作状态和与终端相连的耳机的工作模式,音频处理单元的工作状态包括通话工作状态和非通话工作状态,耳机的工作模式包括数字音频模式和模拟音频模式;终端在确定所述音频处理单元的工作状态与所述耳机的工作模式不对应时,向耳机发送切换命令,以使耳机根据切换命令切换所述耳机的工作模式;其中,音频处理单元的通话工作状态与耳机的模拟音频模式相对应,音频处理单元的非通话工作状态与耳机的数字音频模式相对应。本申请实施例解决了现有技术中传统耳机的音质受损严重,数字耳机无法进行通话或通话效果不佳的问题。
Description
本申请要求在2016年4月29日提交中国专利局、申请号为201610285503.7,发明名称为“一种耳机模式切换方法、终端及耳机”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及通信领域,尤其涉及一种耳机模式切换方法和电子设备。
随着电子科技的不断发展,手机一直不断的创新,从最初仅有的通话功能到如今集成各种功能的移动终端。一直以来,手机的数据传输接口、充电接口不断在变,但是手机上的耳机接口一直沿用3.5mm标准到现在。传统耳机的耳机将数字音频信号转换成模拟音频信号,通过3.5mm接口对模拟信号进行传输。传统耳机是在手机中对数字信号进行数模变换,会产生不必要的信号干扰,且传输过程中模拟信号的损失严重,容易造成音质受损。
数字耳机就是采用数字信号接口设计的耳机,类似于目前最常见的随身耳塞和耳机的设计,只是不再使用3.5mm接口,而是使用手机的数据线接口作为耳机的接口。数字耳机内置DAC(数字模拟转换器,Digital to analog converter)和放大滤波器,手机或者其他随身设备只提供数字信号和供电,由耳机直接来做解码和放大信号。
相较于传统耳机,数字耳机有着很多的优势,模拟放大电路等解码和放大部分都置于耳机当中,耳机接口可以将纯数字信号直接提供给耳机,这将有效减少音频在传输中的衰减,保持数字信号有助于减少串音干扰,减少失真和底噪,整体的音质也可以通过耳机进行优化,可以为用户带来更好的听感。
但是在手机通信方面,数字信号占用频带较宽且技术要求复杂,目前的手机平台对数字信号通话的支持不够完善,因此目前使用数字耳机无法进行
通话,或通话效果不佳。
发明内容
本申请实施例提供一种耳机模式切换方法和电子设备,用以解决现有技术中传统耳机的音质受损严重,数字耳机无法进行通话或通话效果不佳的问题。
本申请实施例提供一种耳机模式切换方法,应用于终端,包括:
终端获取所述终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式,所述音频处理单元的工作状态包括通话工作状态和非通话工作状态,所述耳机的工作模式包括数字音频模式和模拟音频模式;
所述终端在确定所述音频处理单元的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令,以使所述耳机根据所述切换命令切换所述耳机的工作模式;
其中,所述音频处理单元的通话工作状态与所述耳机的模拟音频模式相对应,所述音频处理单元的非通话工作状态与所述耳机的数字音频模式相对应。
可选的,所述终端获取所述终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式之前,还包括:
所述终端确定所述音频处理单元的工作状态发生变化,或
所述终端监测到所述耳机与所述终端建立连接。
可选的,所述终端确定所述音频处理单元的工作状态发生变化,包括:
与所述耳机连接的所述终端在建立通话连接;
所述终端获取所述终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式,包括:
所述终端在建立通话连接时,获取所述耳机的工作模式;
所述终端在确定所述音频处理单元的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令,包括:
所述终端在所述耳机的工作模式为数字音频模式时,向所述耳机发送第一切换命令,所述第一切换命令用于指示所述耳机将工作模式切换为模拟音频模式。
可选的,所述终端确定所述音频处理单元的工作状态发生变化,包括:
与所述耳机连接的所述终端结束通话;
所述终端获取所述终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式,包括:
所述终端在结束通话时,获取所述耳机的工作模式;
所述终端在确定所述音频处理单元的的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令,包括:
所述终端在所述耳机的工作模式为模拟音频模式时,向所述耳机发送第二切换命令,所述第二切换命令用于指示所述耳机将工作模式切换为数字音频模式。
可选的,所述终端监测到所述耳机与所述终端建立连接,包括:
所述终端在通话过程中监测到与所述耳机建立连接;
所述终端获取所述终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式,包括:
所述终端在与所述耳机建立连接后,获取所述耳机的工作模式;
所述终端在确定所述音频处理单元的的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令,包括:
所述终端在所述耳机的工作模式为数字音频模式时,向所述耳机发送第三切换命令,所述第三切换命令用于指示所述耳机将工作模式切换为模拟音频模式。
一种耳机模式切换方法,应用于耳机,所述方法包括:
耳机接收与所述耳机相连的终端发送的切换命令,所述切换命令为所述终端在确定所述终端的音频处理单元的工作状态与所述耳机的工作模式不对应时发送的,所述音频处理单元的工作状态包括通话工作状态和非通话工作
状态,所述耳机的工作模式包括数字音频模式和模拟音频模式;
所述耳机根据所述切换命令切换所述耳机的工作模式;
其中,所述音频处理单元的通话工作状态与所述耳机的模拟音频模式相对应,所述音频处理单元的非通话工作状态与所述耳机的数字音频模式相对应。
可选的,所述耳机接收与所述耳机相连的终端发送的切换命令,包括:
所述耳机接收所述终端发送的第一切换命令,所述第一切换命令是所述终端在建立通话连接时,且获取所述耳机的工作模式为数字音频模式后发送的;
所述耳机根据所述切换命令切换所述耳机的工作模式,包括:
所述耳机根据所述第一切换命令,将所述耳机的工作模式切换为模拟音频模式。
可选的,所述耳机接收与所述耳机相连的终端发送的切换命令,包括:
所述耳机接收所述终端发送的第二切换命令,所述第二切换命令是所述终端在结束通话时,且获取所述耳机的工作模式为模拟音频模式后发送的;
所述耳机根据所述切换命令切换所述耳机的工作模式,包括:
所述耳机根据所述第二切换命令,将所述耳机的工作模式切换为数字音频模式。
可选的,所述耳机接收与所述耳机相连的终端发送的切换命令,包括:
所述耳机接收所述终端发送的第三切换命令,所述第三切换命令是所述终端在通话过程中监测到与所述耳机建立连接,且获取所述耳机的工作模式为数字音频模式后发送的;
所述耳机根据所述切换命令切换所述耳机的工作模式,包括:
所述耳机根据所述第三切换命令,将所述耳机的工作模式切换为模拟音频模式。
一种应用于终端的耳机模式切换装置,包括:
获取模块,用于获取终端的音频处理单元的工作状态和与所述终端相连
的耳机的工作模式,所述音频处理单元的工作状态包括通话工作状态和非通话工作状态,所述耳机的工作模式包括数字音频模式和模拟音频模式;
判断模块,用于判断所述音频处理单元的工作状态与所述耳机的工作模式是否对应;
发送模块,用于在确定所述音频处理单元的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令,以使所述耳机根据所述切换命令切换所述耳机的工作模式;
其中,所述音频处理单元的通话工作状态与所述耳机的模拟音频模式相对应,所述音频处理单元的非通话工作状态与所述耳机的数字音频模式相对应。
可选的,还包括确定模块,用于:
确定所述音频处理单元的工作状态发生变化,或
监测所述耳机与所述终端建立连接。
可选的,所述确定模块,具体用于确定与所述耳机连接的所述终端在建立通话连接;
所述获取模块,具体用于在建立通话连接时,获取所述耳机的工作模式;
所述发送模块,具体用于在所述耳机的工作模式为数字音频模式时,向所述耳机发送第一切换命令,所述第一切换命令用于指示所述耳机将工作模式切换为模拟音频模式。
可选的,所述确定模块,具体用于确定与所述耳机连接的所述终端结束通话;
所述获取模块,具体用于在结束通话时,获取所述耳机的工作模式;
所述发送模块,具体用于在所述耳机的工作模式为模拟音频模式时,向所述耳机发送第二切换命令,所述第二切换命令用于指示所述耳机将工作模式切换为数字音频模式。
可选的,所述确定模块,具体用于在通话过程中监测到与所述耳机建立连接;
所述获取模块,具体用于在与所述耳机建立连接后,获取所述耳机的工作模式;
所述发送模块,具体用于在所述耳机的工作模式为数字音频模式时,向所述耳机发送第三切换命令,所述第三切换命令用于指示所述耳机将工作模式切换为模拟音频模式。
一种应用于耳机的耳机模式切换装置,包括:
接收模块,用于接收与所述耳机相连的终端发送的切换命令,所述切换命令为所述终端在确定所述终端的音频处理单元的工作状态与所述耳机的工作模式不对应时发送的,所述音频处理单元的工作状态包括通话工作状态和非通话工作状态,所述耳机的工作模式包括数字音频模式和模拟音频模式;
切换模块,用于根据所述切换命令切换所述耳机的工作模式;
其中,所述音频处理单元的通话工作状态与所述耳机的模拟音频模式相对应,所述音频处理单元的非通话工作状态与所述耳机的数字音频模式相对应。
可选的,所述接收模块,具体用于接收所述终端发送的第一切换命令,所述第一切换命令是所述终端在建立通话连接时,且获取所述耳机的工作模式为数字音频模式后发送的;
所述切换模块,具体用于根据所述第一切换命令,将所述耳机的工作模式切换为模拟音频模式。
可选的,所述接收模块,具体用于接收所述终端发送的第二切换命令,所述第二切换命令是所述终端在结束通话时,且获取所述耳机的工作模式为模拟音频模式后发送的;
所述切换模块,具体用于根据所述第二切换命令,将所述耳机的工作模式切换为数字音频模式。
可选的,所述接收模块,具体用于接收所述终端发送的第三切换命令,所述第三切换命令是所述终端在通话过程中监测到与所述耳机建立连接,且获取所述耳机的工作模式为数字音频模式后发送的;
所述切换模块,具体用于根据所述第三切换命令,将所述耳机的工作模式切换为模拟音频模式。
一种终端,其特征在于,包括:
至少一个处理器;以及,
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:
获取终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式,所述音频处理单元的工作状态包括通话工作状态和非通话工作状态,所述耳机的工作模式包括数字音频模式和模拟音频模式;
判断所述音频处理单元的工作状态与所述耳机的工作模式是否对应;
收发器,用于在确定所述音频处理单元的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令,以使所述耳机根据所述切换命令切换所述耳机的工作模式;
其中,所述音频处理单元的通话工作状态与所述耳机的模拟音频模式相对应,所述音频处理单元的非通话工作状态与所述耳机的数字音频模式相对应。
一种耳机,其特征在于,包括:
至少一个处理器;以及,
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:
根据所述切换命令切换所述耳机的工作模式;
所述收发器,用于接收与所述耳机相连的终端发送的切换命令,所述切换命令为所述终端在确定所述终端的音频处理单元的工作状态与所述耳机的工作模式不对应时发送的,所述音频处理单元的工作状态包括通话工作状态和非通话工作状态,所述耳机的工作模式包括数字音频模式和模拟音频模式;
其中,所述音频处理单元的通话工作状态与所述耳机的模拟音频模式相对应,所述音频处理单元的非通话工作状态与所述耳机的数字音频模式相对应。
一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行上述任一一项应用于终端的耳机模式切换方法。
一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行上述任一一项应用于耳机的耳机模式切换方法。
一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一一项应用于终端的耳机模式切换方法。
一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一一项应用于耳机的耳机模式切换方法。
本申请实施例中,终端的音频处理单元的工作状态包括通话工作状态和非通话工作状态,与终端相连的耳机支持数字音频模式和模拟音频模式。其中,数字音频模式对应于音频处理单元的非通话工作状态,模拟音频模式对应于音频处理单元的通话工作状态。即在终端处于听音乐、看视频等非通话工作状态时,耳机的工作模式应为数字音频模式,这样保证了声音的品质;终端处于通话工作状态时,由于模拟信号容易实现且现有的通信平台支持模拟通信,因此耳机的工作模式需为模拟音频模式。为了实现终端的工作状态与耳机的工作模式相对应,终端获取终端的工作状态以及与终端相连的耳机的工作模式,并在确定终端的工作状态与耳机的工作模式不对应时,向耳机发送切换命令,以使耳机根据该切换命令切换耳机的工作模式。这样,本申
请实施例中的耳机即保有传统耳机的优势,有具有数字耳机的优点。在终端的音频处理单元处于通话中时,耳机的工作模式为模拟音频模式,保证了用户的通话质量;在音频处理单元处于非通话工作状态时,耳机的工作模式为数字音频模式,减少串音干扰,减少声音的失真和底噪,为用户带来更好的音质。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为模拟信号的波形示意图;
图2为数字信号的波形示意图;
图3为本申请具体实施例提供的耳机模式切换的方法的流程图;
图4为本申请具体实施例中一种耳机模式切换的方法的流程图;
图5为本申请具体实施例中另一种耳机模式切换的方法的流程图;
图6为本申请实施例中一种应用于终端的耳机模式切换的装置的结构示意图;
图7为本申请实施例中一种应用于耳机的耳机模式切换的装置的结构示意图;
图8为本申请实施例中一种终端的结构示意图;
图9为本申请实施例中一种耳机的结构示意图。
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获
得的所有其他实施例,都属于本申请保护的范围。
本申请实施例中的终端可以是手机、智能手表、平板电脑、笔记本电脑或台式电脑等可以传递音频信号的电子终端,本申请实施例对此不做限制,仅以手机为例进行介绍。
为了更清楚的了解本申请实施例中的耳机工作模式,首先介绍数字信号和模拟信号。
这两种信号都属于电信号,就是不断变化的电流,通过电流或者电压值的变化来传递信息的信号。模拟信号,其波形如图1所示,是通过电流的变化来精确复制原有信息波形的信号,比如对于音频信号,就是音频响度变大,电压就相应变大,频率提升,电压变化频率就相应提升。
模拟信号因为是对原有信号的精确模拟,故而有不少优点,比如易于生成和解读,记录精确等等,但缺点就是信号本身是连续的,不规则且过于复杂,面对干扰非常脆弱,而且在二进制的计算机器件内不易存储和读取。为了解决这些问题,数字信号便就此诞生。
数字信号的波形如图2所示,其实现方式是利用微分的方式,通过对连续信号进行一定频率的采样,再用有限的编码规则表示采样到的值,编为0和1构成的二进制码,然后通过记录数值的方波电流和记录位数的时钟电流来在电路中传输。由于这种信号使用离散的二进制编码,构成规则简单,故而易于存储也不易受到干扰,但也因为其编码方式有限,对于不规则信息描述不够精确,所以只能通过类似屏幕分辨率的方式,按照需求调整精确度,也就形成了现在看到的各种质量高低不同的媒体文件。也就是说,数字信号相比模拟信号更能抗干扰,适合传输和存储,但不易编成和解读。
电信号是变化的电流,而声信号则是物体的振动,二者之间是通过磁来转化,具体就是电流会形成磁场,变化的电流就会形成变化的磁场,这样磁场内的磁性物体就会因磁场的变化受力运动。换句话说,就是存在于电信号所形成的磁场中的磁体会带动与之刚性相连的物体跟随电信号振动,自然就可以发声了。
这就是耳机和扬声器的工作原理,从这个原理中也可以清楚的知道,想要驱动耳机音响,必须通过模拟信号,因为数字信号是由人为制定的二进制编码构成,而非自然界原本存在的信号,扬声器件并不认识它们。因此,将手机中存储的音频文件播放出来,需要将数字信号转换为模拟信号。
传统的3.5mm接口的耳机,是手机将闪存的数字音频信号进行处理,如进行格式转换、加杜比音效等,然后通过手机中独立的DAC芯片或Codec(编译码器,COder-DECoder)整合芯片将数字音频信号转换成模拟音频信号。因为转换处理的模拟音频信号较弱,所以通过放大滤波器将模拟音频信号放大,将放大后的信号传到耳机,通过耳机发声,这时用户才能听到声音。因此,传统耳机的接口作用就是传输模拟信号。
由于在手机中将数字音频信号转换为模拟音频信号,容易被其它信号干扰,且模拟音频信号在传输过程中需对衰减的传输信号进行放大,信号在传输过程中不可避免地叠加上的噪声也被同时放大。随着传输距离的增加,噪声累积越来越多,以致使传输质量严重恶化。
与传统耳机相比,数字耳机的接口采用数字信号接口。数字耳机自带有DAC和放大滤波器,手机只做数字音频信号输出和供电,由耳机直接来做解码和放大信号。数字耳机的接口将纯数字信号直接传输给耳机,然后由耳机将数字音频信号转换为模拟音频信号并进行放大,即通过数字信号进行传输。在数字信号的传输过程中,由于数字信号的幅值为有限个离散值(通常取两个幅值),在传输过程中虽然也受到噪声的干扰,但当信噪比恶化到一定程度时,可以在适当的距离采用判决再生的方法,再生成没有噪声干扰的和原发送端一样的数字音频信号,所以可实现长距离高质量的传输,有助于减少串音干扰,减少数字音频信号的失真和底噪。
因此数字耳机尤其适用于听音乐、看视频等状态,能保证声音的音质和音效。但在手机通话状态中,数字耳机的通话效果不好,甚至无法进行通话。这是由于数字音频信号的占用频带较宽,传送一路数字化音频信号需占2064kHz的带宽,而一个模拟话路只占用4kHz带宽,即一路数字化音频信号
占了几个模拟话路。且数字化通信的技术要求复杂,尤其是同步技术要求精度很高,因此现有的通信平台,对于数字信号的通话不够支持,无法进行数字化通信。
本申请实施例中的耳机为TYPE-C型接口的数字化耳机所示,使用完全的数字化解码与运放,是一款数字音频模式和模拟音频模式混合使用的耳机,耳机接口自身支持模拟音频输出和数字音频输出。
其中,模拟音频模式即类似于现有技术中3.5mm接口的耳机,是在手机中将数字音频信号转换成模拟音频信号。另一方面,数字音频模式即类似于现有技术中数字信号接口的耳机。也就是说,TYPE-C型接口充当音频输出功能时,可以直接输出放大后的模拟信号;同时,耳机内放了DAC和放大滤波器,TYPE-C型接口可以接收手机传来的数字音频信号,在耳机将数字音频信号转换为模拟信号。
本申请实施例中,提供了一种耳机模式切换的方法和电子设备。其中耳机为TYPE-C型耳机。该耳机中设置有支持模拟音频模式的硬件和相应的软件,以及支持数字音频模式的硬件和相应的软件。在通话状态下,手机将数字音频信号转换为模拟音频信号,并通过放大滤波器放大后传送给耳机,耳机此时为模拟音频模式,通过软件关闭耳机中相应于数字音频模式的硬件,并打开相应于模拟音频模式的硬件,其TYPE-C型接口此时的作用就是传输模拟信号。在非通话状态下,手机不做数模转换,直接将数字音频信号发送给耳机,耳机此时为数字音频模式,其TYPE-C型接口中内置的DAC和放大滤波器等硬件打开,将接收到的数字音频信号转换为模拟音频信号。
本申请实施例提供的耳机模式切换的方法流程如图3所示,方法可以包括如下步骤:
S101、终端获取所述终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式。
其中,所述音频处理单元的工作状态包括通话工作状态和非通话工作状态,所述耳机的工作模式包括数字音频模式和模拟音频模式。
S102、所述终端在确定所述音频处理单元的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令。
其中,音频处理单元的通话工作状态与耳机的模拟音频模式相对应,音频处理单元的非通话工作状态与耳机的数字音频模式相对应。
步骤S102中,耳机可以根据切换命令切换耳机的工作模式。具体来说,包括将耳机的工作模式由数字音频模式切换为模拟音频模式,这里可通过耳机中芯片内的软件,关闭耳机中DAC和放大滤波器等相应于数字耳机器件的功能,使数字音频信号在手机中转为模拟音频信号。相应的,还包括将耳机的工作模式由模拟音频模式切换为数字音频模式,即也通过耳机中芯片内的软件,打开耳机中DAC和放大滤波器等器件的功能,耳机直接接收手机传来的数字音频信号,并在耳机中将数字音频信号转为模拟音频信号。
本申请实施例中,终端的音频处理单元的工作状态包括通话工作状态和非通话工作状态,与终端相连的耳机支持数字音频模式和模拟音频模式。其中,数字音频模式对应于音频处理单元的非通话工作状态,模拟音频模式对应于音频处理单元的通话工作状态。即在终端处于听音乐、看视频等非通话工作状态时,耳机的工作模式应为数字音频模式,这样保证了声音的品质;终端处于通话工作状态时,由于模拟信号容易实现且现有的通信平台支持模拟通信,因此耳机的工作模式需为模拟音频模式。为了实现终端的工作状态与耳机的工作模式相对应,终端获取终端的工作状态以及与终端相连的耳机的工作模式,并在确定终端的工作状态与耳机的工作模式不对应时,向耳机发送切换命令,以使耳机根据该切换命令切换耳机的工作模式。这样,本申请实施例中的耳机即保有传统耳机的优势,有具有数字耳机的优点。在终端的音频处理单元处于通话中时,耳机的工作模式为模拟音频模式,保证了用户的通话质量;在音频处理单元处于非通话工作状态时,耳机的工作模式为数字音频模式,减少串音干扰,减少声音的失真和底噪,为用户带来更好的音质。
上述步骤S101之前,还包括:所述终端确定所述音频处理单元的工作状
态发生变化,或所述终端监测到所述耳机与所述终端建立连接。
这里的音频处理单元的工作状态发生变化包括音频处理单元由非通话工作状态转为通话工作状态,以及由通话工作状态转为非通话工作状态。具体来说,手机在非通话状态中,为了保证用户获取声音的音质,耳机一般设置为数字音频模式。手机转为通话状态后,为了保证正常的通话质量,需将耳机的工作模式切换为模拟音频模式。而在手机通话结束后,又需将耳机的工作模式切换回数字音频模式。
此外,若手机在通话过程中,监测到与耳机建立了连接,也需把耳机的工作模式切换为模拟音频模式。手机分为外放模式和耳机模式,当耳机接口插入手机时,手机芯片上相应芯片的电压、电流产生变化,如从低电平变为高电平。此时,会通知手机中的软件,对插入的硬件进行识别。
本申请实施例中,可以通过TYPE-C型耳机的ID进行耳机识别。将获取的耳机ID号与芯片内存储的TYPE-C型耳机的ID列表进行对比,若确定插入的耳机为TYPE-C型耳机,则向耳机发送切换命令。
本申请实施例中,对耳机的工作模式的切换主要有三种情况,以下分别对这三种情况进行分别描述。
情况一、
所述终端确定所述音频处理单元的工作状态发生变化,包括:与所述耳机连接的所述终端在建立通话连接;
所述终端获取所述终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式,包括:
所述终端在建立通话连接时,获取所述耳机的工作模式;
所述终端在确定所述音频处理单元的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令,包括:
所述终端在所述耳机的工作模式为数字音频模式时,向所述耳机发送第一切换命令,所述第一切换命令用于指示所述耳机将工作模式切换为模拟音频模式。
具体来说,手机原先处于非通话状态,可以是与其相连的TYPE-C耳机正在播放手机中的音乐,此时耳机处于数字音频模式,或者是手机处于待机状态,TYPE-C耳机由于默认的设置也处于数字音频模式。该手机向其它终端发出通话连接请求,或该手机接到其它终端发送的通话连接请求后,获取耳机的工作模式为数字音频模式。由于耳机的工作模式与手机中音频处理单元的通话工作状态不对应,因此手机向耳机发送第一切换命令。耳机根据该第一切换命令,将耳机的工作模式切换为模拟音频模式。
情况二、
所述终端确定所述音频处理单元的工作状态发生变化,包括:
与所述耳机连接的所述终端结束通话;
所述终端获取所述终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式,包括:
所述终端在结束通话时,获取所述耳机的工作模式;
所述终端在确定所述音频处理单元的的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令,包括:
所述终端在所述耳机的工作模式为模拟音频模式时,向所述耳机发送第二切换命令,所述第二切换命令用于指示所述耳机将工作模式切换为数字音频模式。
情况二与情况一相对应,具体来说,处于通话状态中的手机上的耳机处于模拟音频模式。该手机在结束通话时,获取到耳机的工作模式为模拟音频模式。由于耳机的工作模式与手机中音频处理单元的非通话工作状态不对应,因此手机向耳机发送第二切换命令。耳机根据该第二切换命令,将耳机的工作模式切换为数字音频模式。
情况三、
所述终端监测到所述耳机与所述终端建立连接,包括:
所述终端在通话过程中监测到与所述耳机建立连接;
所述终端获取所述终端的音频处理单元的工作状态和与所述终端相连的
耳机的工作模式,包括:
所述终端在与所述耳机建立连接后,获取所述耳机的工作模式;
所述终端在确定所述音频处理单元的的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令,包括:
所述终端在所述耳机的工作模式为数字音频模式时,向所述耳机发送第三切换命令,所述第三切换命令用于指示所述耳机将工作模式切换为模拟音频模式。
具体来说,当前手机正在与其它终端进行通话,此时手机未连接耳机,为外放模式。将TYPE-C型耳机插入手机后,手机监测到与TYPE-C型耳机建立了连接,则从耳机中获取该TYPE-C型耳机的工作模式。由于耳机的工作模式一般默认为数字音频模式,因此,手机向耳机发送第三切换命令。耳机根据该第三切换命令,将耳机的工作模式切换为模拟音频模式,方便用户进行通话。
与上述终端侧的方法相应的,本申请实施例提供的耳机模式切换方法从耳机侧来说,包括:
耳机接收与所述耳机相连的终端发送的切换命令,所述切换命令为所述终端在确定所述终端的音频处理单元的工作状态与所述耳机的工作模式不对应时发送的,所述音频处理单元的工作状态包括通话工作状态和非通话工作状态,所述耳机的工作模式包括数字音频模式和模拟音频模式;
所述耳机根据所述切换命令切换所述耳机的工作模式。
其中,所述音频处理单元的通话工作状态与所述耳机的模拟音频模式相对应,所述音频处理单元的非通话工作状态与所述耳机的数字音频模式相对应。
可选的,所述耳机接收与所述耳机相连的终端发送的切换命令,包括:
所述耳机接收所述终端发送的第一切换命令,所述第一切换命令是所述终端在建立通话连接时,且获取所述耳机的工作模式为数字音频模式后发送的;
所述耳机根据所述切换命令切换所述耳机的工作模式,包括:
所述耳机根据所述第一切换命令,将所述耳机的工作模式切换为模拟音频模式。
可选的,所述耳机接收与所述耳机相连的终端发送的切换命令,包括:
所述耳机接收所述终端发送的第二切换命令,所述第二切换命令是所述终端在结束通话时,且获取所述耳机的工作模式为模拟音频模式后发送的;
所述耳机根据所述切换命令切换所述耳机的工作模式,包括:
所述耳机根据所述第二切换命令,将所述耳机的工作模式切换为数字音频模式。
可选的,所述耳机接收与所述耳机相连的终端发送的切换命令,包括:
所述耳机接收所述终端发送的第三切换命令,所述第三切换命令是所述终端在通话过程中监测到与所述耳机建立连接,且获取所述耳机的工作模式为数字音频模式后发送的;
所述耳机根据所述切换命令切换所述耳机的工作模式,包括:
所述耳机根据所述第三切换命令,将所述耳机的工作模式切换为模拟音频模式。
为了更清楚地理解本申请,下面以具体实例对上述流程进行详细描述。一种具体的实施例中所描述的场景为手机上连接有耳机,用户正在通过耳机听手机上存储的音乐,此时该手机接到其它手机发来的通话请求。具体流程如图4所示,可以包括以下几个步骤:
S201、手机接收到通话请求。
S202、手机获取连接的耳机ID号,将该耳机的ID号与手机芯片上存储的TYPE-C型耳机的ID号列表进行对比,判断该耳机是否为TYPE-C型耳机,若是,则执行步骤S203,否则执行步骤S206。
S203、手机确定耳机的工作模式为数字音频模式。
S204、手机向耳机发送第一切换命令。
S205、耳机接收到第一切换命令后,将工作模式切换为模拟音频模式。
S206、耳机播放其它终端传来的声音。这样,用户可以与其它终端的用户进行通话。
S207、手机确认通话结束。
S208、手机确定耳机的工作模式为模拟音频模式。
S209、手机向耳机发送第二切换命令。
S210、耳机接收到第二切换命令后,将工作模式切换为数字音频模式。
之后,用户可以继续听手机上存储的音乐。
另一种具体实施例中所描述的场景为手机上未连接耳机,用户正在通过手机上自带的扩音器与其它终端的用户进行通话,此时用户希望通过耳机进行通话,将耳机插入手机上相应的插孔中。具体流程如图5所示,可以包括以下几个步骤:
S301、手机通过芯片上电压的变化确定与耳机建立连接。
S302、手机获取连接的耳机ID号,将该耳机的ID号与手机芯片上存储的TYPE-C型耳机的ID号列表进行对比,判断该耳机是否为TYPE-C型耳机,若是,则执行步骤S303,否则执行步骤S306。
S303、手机确定耳机的工作模式为数字音频模式。
S304、手机向耳机发送第三切换命令。
S305、耳机接收到第三切换命令后,将工作模式切换为模拟音频模式。
S306、耳机播放其它终端传来的声音。这样,用户可以通过耳机与其它终端的用户进行通话。
S307、手机确认通话结束。
S308、手机确定耳机的工作模式为模拟音频模式。
S309、手机向耳机发送第二切换命令。
S310、耳机接收到第二切换命令后,将工作模式切换为数字音频模式。
基于相同的技术构思,本申请实施例还提供一种应用于终端的耳机模式切换装置,如图6所示,包括:
获取模块1,用于获取终端的音频处理单元的工作状态和与所述终端相连
的耳机的工作模式,所述音频处理单元的工作状态包括通话工作状态和非通话工作状态,所述耳机的工作模式包括数字音频模式和模拟音频模式;
判断模块2,用于判断所述音频处理单元的工作状态与所述耳机的工作模式是否对应;
发送模块3,用于在确定所述音频处理单元的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令,以使所述耳机根据所述切换命令切换所述耳机的工作模式;
其中,所述音频处理单元的通话工作状态与所述耳机的模拟音频模式相对应,所述音频处理单元的非通话工作状态与所述耳机的数字音频模式相对应。
本申请实施例中,终端的音频处理单元的工作状态包括通话工作状态和非通话工作状态,与终端相连的耳机支持数字音频模式和模拟音频模式,。其中,数字音频模式对应于音频处理单元的非通话工作状态,模拟音频模式对应于音频处理单元的通话工作状态。即在终端处于听音乐、看视频等非通话工作状态时,耳机的工作模式应为数字音频模式,这样保证了声音的品质;终端处于通话工作状态时,由于模拟信号容易实现且现有的通信平台支持模拟通信,因此耳机的工作模式需为模拟音频模式。为了实现终端的工作状态与耳机的工作模式相对应,获取模块1获取终端的工作状态以及与终端相连的耳机的工作模式,并在判断模块2确定终端的工作状态与耳机的工作模式不对应时,发送模块3向耳机发送切换命令,以使耳机根据该切换命令切换耳机的工作模式。这样,本申请实施例中的耳机即保有传统耳机的优势,有具有数字耳机的优点。在终端的音频处理单元处于通话中时,耳机的工作模式为模拟音频模式,保证了用户的通话质量;在音频处理单元处于非通话工作状态时,耳机的工作模式为数字音频模式,减少串音干扰,减少声音的失真和底噪,为用户带来更好的音质。
可选的,还包括确定模块4,用于:
确定所述音频处理单元的工作状态发生变化,或
监测所述耳机与所述终端建立连接。
这里确定模块4确定音频处理单元的工作状态发生变化包括音频处理单元由非通话工作状态转为通话工作状态,以及由通话工作状态转为非通话工作状态。具体来说,手机在非通话状态中,为了保证用户获取声音的音质,耳机一般设置为数字音频模式。确定模块4确定手机转为通话状态后,为了保证正常的通话质量,需将耳机的工作模式切换为模拟音频模式。而在手机通话结束后,又需将耳机的工作模式切换回数字音频模式。
此外,若手机在通话过程中,确定模块4监测到与耳机建立了连接,也需把耳机的工作模式切换为模拟音频模式。手机分为外放模式和耳机模式,当耳机接口插入手机时,手机芯片上相应芯片的电压、电流产生变化,如从低电平变为高电平。此时,确定模块4会对插入的硬件进行识别。
本申请实施例中,确定模块4可以通过TYPE-C型耳机的ID进行耳机识别。将获取的耳机ID号与手机内存储的TYPE-C型耳机的ID列表进行对比,若确定插入的耳机为TYPE-C型耳机,则向耳机发送切换命令。
可选的,确定模块4,具体用于确定与所述耳机连接的所述终端在建立通话连接。
获取模块1,具体用于在建立通话连接时,获取所述耳机的工作模式;
发送模块3,具体用于在所述耳机的工作模式为数字音频模式时,向所述耳机发送第一切换命令,所述第一切换命令用于指示所述耳机将工作模式切换为模拟音频模式。
具体来说,手机原先处于非通话状态,可以是与其相连的TYPE-C耳机正在播放手机中的音乐,此时耳机处于数字音频模式,或者是手机处于待机状态,TYPE-C耳机由于默认的设置也处于数字音频模式。确定模块4确定该手机向其它终端发出通话连接请求,或该手机接到其它终端发送的通话连接请求后,获取模块1获取耳机的工作模式为数字音频模式。由于耳机的工作模式与手机中音频处理单元的通话工作状态不对应,因此发送模块3向耳机发送第一切换命令。耳机根据该第一切换命令,将耳机的工作模式切换为模
拟音频模式。
可选的,确定模块4,具体用于确定与所述耳机连接的所述终端结束通话;
获取模块1,具体用于在结束通话时,获取所述耳机的工作模式;
发送模块3,具体用于在所述耳机的工作模式为模拟音频模式时,向所述耳机发送第二切换命令,所述第二切换命令用于指示所述耳机将工作模式切换为数字音频模式。
具体来说,处于通话状态中的手机上的耳机处于模拟音频模式。确定模块4确定该手机结束通话,获取模块1获取到耳机的工作模式为模拟音频模式。由于耳机的工作模式与手机中音频处理单元的非通话工作状态不对应,因此发送模块3向耳机发送第二切换命令。耳机根据该第二切换命令,将耳机的工作模式切换为数字音频模式。
可选的,确定模块4,具体用于在通话过程中监测到与所述耳机建立连接;
获取模块1,具体用于在与所述耳机建立连接后,获取所述耳机的工作模式;
发送模块3,具体用于在所述耳机的工作模式为数字音频模式时,向所述耳机发送第三切换命令,所述第三切换命令用于指示所述耳机将工作模式切换为模拟音频模式。
具体来说,当前手机正在与其它终端进行通话,此时手机未连接耳机,为外放模式。将TYPE-C型耳机插入手机后,确定模块4监测到与TYPE-C型耳机建立了连接,则获取模块1从耳机中获取该TYPE-C型耳机的工作模式。由于耳机的工作模式一般默认为数字音频模式,因此,发送模块3向耳机发送第三切换命令。耳机根据该第三切换命令,将耳机的工作模式切换为模拟音频模式,方便用户进行通话。
本申请实施例还提供一种应用于耳机的耳机模式切换装置,如图7所示,包括:
接收模块5,用于接收与所述耳机相连的终端发送的切换命令,所述切换命令为所述终端在确定所述终端的音频处理单元的工作状态与所述耳机的工
作模式不对应时发送的,所述音频处理单元的工作状态包括通话工作状态和非通话工作状态,所述耳机的工作模式包括数字音频模式和模拟音频模式;
切换模块6,用于根据所述切换命令切换所述耳机的工作模式;
其中,所述音频处理单元的通话工作状态与所述耳机的模拟音频模式相对应,所述音频处理单元的非通话工作状态与所述耳机的数字音频模式相对应。
切换模块6可以根据接收模块5接收到的切换命令切换耳机的工作模式,具体来说,包括将耳机的工作模式由数字音频模式切换为模拟音频模式,通过切换模块6关闭耳机中DAC和放大滤波器等相应于数字耳机器件的功能,使数字音频信号在手机中转为模拟音频信号。相应的,还包括将耳机的工作模式由模拟音频模式切换为数字音频模式,即通过切换模块6,打开耳机中DAC和放大滤波器等器件的功能,耳机直接接收手机传来的数字音频信号,并在耳机中将数字音频信号转为模拟音频信号。
可选的,接收模块5,具体用于接收所述终端发送的第一切换命令,所述第一切换命令是所述终端在建立通话连接时,且获取所述耳机的工作模式为数字音频模式后发送的;
切换模块6,具体用于根据所述第一切换命令,将所述耳机的工作模式切换为模拟音频模式。
可选的,接收模块5,具体用于接收所述终端发送的第二切换命令,所述第二切换命令是所述终端在结束通话时,且获取所述耳机的工作模式为模拟音频模式后发送的;
切换模块6,具体用于根据所述第二切换命令,将所述耳机的工作模式切换为数字音频模式。
可选的,接收模块5,具体用于接收所述终端发送的第三切换命令,所述第三切换命令是所述终端在通话过程中监测到与所述耳机建立连接,且获取所述耳机的工作模式为数字音频模式后发送的;
切换模块6,具体用于根据所述第三切换命令,将所述耳机的工作模式切
换为模拟音频模式。
以上所描述的终端实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机终端(可以是个人计算机,服务器,或者网络终端等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。
基于相同的技术构思,本申请实施例提供一种终端。本申请实施例提供的终端如图8所示,所述终端,包括:处理器801、存储器802、收发器803以及总线系统804;处理器801、存储器802、收发器803可以通过总线系统804或者其他方式连接。
存储器802作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的列表项操作的处理方法对应的程序指令/模块。处理器801通过运行存储在存储器802中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能
应用以及数据处理,即实现上述方法实施例列表项操作的处理方法。
存储器802可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据列表项操作的处理装置的使用所创建的数据等。此外,存储器802可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器802可选包括相对于处理器801远程设置的存储器,这些远程存储器可以通过网络连接至列表项操作的处理装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
上述本申请实施例揭示的方法可以应用于处理器801中,或者由处理器801实现。处理器801可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器801中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器801可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器802,处理器801读取存储器802中的信息,结合其硬件执行以下步骤:
通过收发器803获取终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式,所述音频处理单元的工作状态包括通话工作状态和非通话工作状态,所述耳机的工作模式包括数字音频模式和模拟音频模式;
判断所述音频处理单元的工作状态与所述耳机的工作模式是否对应;
通过收发器803在确定所述音频处理单元的工作状态与所述耳机的工作
模式不对应时,向所述耳机发送切换命令,以使所述耳机根据所述切换命令切换所述耳机的工作模式;
其中,所述音频处理单元的通话工作状态与所述耳机的模拟音频模式相对应,所述音频处理单元的非通话工作状态与所述耳机的数字音频模式相对应。
可选的,所述处理器801,具体用于:
确定所述音频处理单元的工作状态发生变化,或
监测所述耳机与所述终端建立连接。
可选的,所述处理器801具体用于:
所述处理器,具体用于确定与所述耳机连接的所述终端在建立通话连接;
在建立通话连接时,获取所述耳机的工作模式;
所述收发器803,具体用于在所述耳机的工作模式为数字音频模式时,向所述耳机发送第一切换命令,所述第一切换命令用于指示所述耳机将工作模式切换为模拟音频模式。
可选的,所述处理器801具体用于:
确定与所述耳机连接的所述终端结束通话;
在结束通话时,获取所述耳机的工作模式;
所述收发器803,具体用于在所述耳机的工作模式为模拟音频模式时,向所述耳机发送第二切换命令,所述第二切换命令用于指示所述耳机将工作模式切换为数字音频模式。
可选的,所述处理器801具体用于:
在通话过程中监测到与所述耳机建立连接;
在与所述耳机建立连接后,获取所述耳机的工作模式;
所述收发器803,具体用于在所述耳机的工作模式为数字音频模式时,向所述耳机发送第三切换命令,所述第三切换命令用于指示所述耳机将工作模式切换为模拟音频模式。
从上述内容可以看出:
本申请的实施例中,终端的音频处理单元的工作状态包括通话工作状态和非通话工作状态,与终端相连的耳机支持数字音频模式和模拟音频模式。其中,数字音频模式对应于音频处理单元的非通话工作状态,模拟音频模式对应于音频处理单元的通话工作状态。即在终端处于听音乐、看视频等非通话工作状态时,耳机的工作模式应为数字音频模式,这样保证了声音的品质;终端处于通话工作状态时,由于模拟信号容易实现且现有的通信平台支持模拟通信,因此耳机的工作模式需为模拟音频模式。为了实现终端的工作状态与耳机的工作模式相对应,终端获取终端的工作状态以及与终端相连的耳机的工作模式,并在确定终端的工作状态与耳机的工作模式不对应时,向耳机发送切换命令,以使耳机根据该切换命令切换耳机的工作模式。这样,本申请实施例中的耳机即保有传统耳机的优势,有具有数字耳机的优点。在终端的音频处理单元处于通话中时,耳机的工作模式为模拟音频模式,保证了用户的通话质量;在音频处理单元处于非通话工作状态时,耳机的工作模式为数字音频模式,减少串音干扰,减少声音的失真和底噪,为用户带来更好的音质。
基于相同的技术构思,本申请实施例提供一种耳机。本申请实施例提供的耳机结构如图9所示,所述耳机,包括:处理器901、存储器902、收发器903以及总线系统904,处理器901、存储器902、收发器903可以通过总线系统904或者其他方式连接。
存储器902作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的列表项操作的处理方法对应的程序指令/模块。处理器901通过运行存储在存储器902中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例列表项操作的处理方法。
存储器902可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据列表项操作的处理装置的使用所创建的数据等。此外,存储器902可以包括高速
随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器902可选包括相对于处理器901远程设置的存储器,这些远程存储器可以通过网络连接至列表项操作的处理装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。;
处理器901控制确定待测对象的运动信息的装置的操作,处理器901还可以称为CPU(Central Processing Unit,中央处理单元)。具体的应用中,确定待测对象的运动信息的装置的各个组件通过总线系统904耦合在一起,其中总线系统904除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统904。为便于表示,图9中仅是示意性画出。
上述本申请实施例揭示的方法可以应用于处理器901中,或者由处理器901实现。处理器901可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器901中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器901可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器902,处理器901读取存储器902中的信息,结合其硬件执行以下步骤:
通过收发器903接收与所述耳机相连的终端发送的切换命令,所述切换命令为所述终端在确定所述终端的音频处理单元的工作状态与所述耳机的工作模式不对应时发送的,所述音频处理单元的工作状态包括通话工作状态和
非通话工作状态,所述耳机的工作模式包括数字音频模式和模拟音频模式;
用于根据所述切换命令切换所述耳机的工作模式;
其中,所述音频处理单元的通话工作状态与所述耳机的模拟音频模式相对应,所述音频处理单元的非通话工作状态与所述耳机的数字音频模式相对应。
可选的,所述收发器903,具体用于接收所述终端发送的第一切换命令,所述第一切换命令是所述终端在建立通话连接时,且获取所述耳机的工作模式为数字音频模式后发送的;
所述处理器901,具体用于根据所述第一切换命令,将所述耳机的工作模式切换为模拟音频模式。
可选的,所述收发器903,具体用于接收所述终端发送的第二切换命令,所述第二切换命令是所述终端在结束通话时,且获取所述耳机的工作模式为模拟音频模式后发送的;
所述处理器901,具体用于根据所述第二切换命令,将所述耳机的工作模式切换为数字音频模式。
可选的,所述收发器903,具体用于接收所述终端发送的第三切换命令,所述第三切换命令是所述终端在通话过程中监测到与所述耳机建立连接,且获取所述耳机的工作模式为数字音频模式后发送的;
所述处理器901,具体用于根据所述第三切换命令,将所述耳机的工作模式切换为模拟音频模式。
从上述内容可以看出:
本申请的实施例中,终端的音频处理单元的工作状态包括通话工作状态和非通话工作状态,与终端相连的耳机支持数字音频模式和模拟音频模式。其中,数字音频模式对应于音频处理单元的非通话工作状态,模拟音频模式对应于音频处理单元的通话工作状态。即在终端处于听音乐、看视频等非通话工作状态时,耳机的工作模式应为数字音频模式,这样保证了声音的品质;终端处于通话工作状态时,由于模拟信号容易实现且现有的通信平台支持模
拟通信,因此耳机的工作模式需为模拟音频模式。为了实现终端的工作状态与耳机的工作模式相对应,终端获取终端的工作状态以及与终端相连的耳机的工作模式,并在确定终端的工作状态与耳机的工作模式不对应时,向耳机发送切换命令,以使耳机根据该切换命令切换耳机的工作模式。这样,本申请实施例中的耳机即保有传统耳机的优势,有具有数字耳机的优点。在终端的音频处理单元处于通话中时,耳机的工作模式为模拟音频模式,保证了用户的通话质量;在音频处理单元处于非通话工作状态时,耳机的工作模式为数字音频模式,减少串音干扰,减少声音的失真和底噪,为用户带来更好的音质。
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。
本申请实施例的电子设备以多种形式存在,包括但不限于:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。
(5)其他具有数据交互功能的电子装置。
本申请实施例提供了一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行任一一项应用于终端的耳机模式切换方法。
本申请实施例提供了一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行上述任一一项应用于耳机的耳机模式切换方法。
本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一一项应用于终端的耳机模式切换方法。
本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一一项应用于耳机的耳机模式切换方法。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。
Claims (24)
- 一种耳机模式切换方法,应用于终端,其特征在于,包括:终端获取所述终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式,所述音频处理单元的工作状态包括通话工作状态和非通话工作状态,所述耳机的工作模式包括数字音频模式和模拟音频模式;所述终端在确定所述音频处理单元的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令,以使所述耳机根据所述切换命令切换所述耳机的工作模式;其中,所述音频处理单元的通话工作状态与所述耳机的模拟音频模式相对应,所述音频处理单元的非通话工作状态与所述耳机的数字音频模式相对应。
- 如权利要求1所述的方法,其特征在于,所述终端获取所述终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式之前,还包括:所述终端确定所述音频处理单元的工作状态发生变化,或所述终端监测到所述耳机与所述终端建立连接。
- 如权利要求2所述的方法,其特征在于,所述终端确定所述音频处理单元的工作状态发生变化,包括:与所述耳机连接的所述终端在建立通话连接;所述终端获取所述终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式,包括:所述终端在建立通话连接时,获取所述耳机的工作模式;所述终端在确定所述音频处理单元的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令,包括:所述终端在所述耳机的工作模式为数字音频模式时,向所述耳机发送第一切换命令,所述第一切换命令用于指示所述耳机将工作模式切换为模拟音频模式。
- 如权利要求2所述的方法,其特征在于,所述终端确定所述音频处理单元的工作状态发生变化,包括:与所述耳机连接的所述终端结束通话;所述终端获取所述终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式,包括:所述终端在结束通话时,获取所述耳机的工作模式;所述终端在确定所述音频处理单元的的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令,包括:所述终端在所述耳机的工作模式为模拟音频模式时,向所述耳机发送第二切换命令,所述第二切换命令用于指示所述耳机将工作模式切换为数字音频模式。
- 如权利要求2所述的方法,其特征在于,所述终端监测到所述耳机与所述终端建立连接,包括:所述终端在通话过程中监测到与所述耳机建立连接;所述终端获取所述终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式,包括:所述终端在与所述耳机建立连接后,获取所述耳机的工作模式;所述终端在确定所述音频处理单元的的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令,包括:所述终端在所述耳机的工作模式为数字音频模式时,向所述耳机发送第三切换命令,所述第三切换命令用于指示所述耳机将工作模式切换为模拟音频模式。
- 一种耳机模式切换方法,应用于耳机,其特征在于,包括:耳机接收与所述耳机相连的终端发送的切换命令,所述切换命令为所述终端在确定所述终端的音频处理单元的工作状态与所述耳机的工作模式不对应时发送的,所述音频处理单元的工作状态包括通话工作状态和非通话工作状态,所述耳机的工作模式包括数字音频模式和模拟音频模式;所述耳机根据所述切换命令切换所述耳机的工作模式;其中,所述音频处理单元的通话工作状态与所述耳机的模拟音频模式相对应,所述音频处理单元的非通话工作状态与所述耳机的数字音频模式相对应。
- 如权利要求6所述的方法,其特征在于,所述耳机接收与所述耳机相连的终端发送的切换命令,包括:所述耳机接收所述终端发送的第一切换命令,所述第一切换命令是所述终端在建立通话连接时,且获取所述耳机的工作模式为数字音频模式后发送的;所述耳机根据所述切换命令切换所述耳机的工作模式,包括:所述耳机根据所述第一切换命令,将所述耳机的工作模式切换为模拟音频模式。
- 如权利要求6所述的方法,其特征在于,所述耳机接收与所述耳机相连的终端发送的切换命令,包括:所述耳机接收所述终端发送的第二切换命令,所述第二切换命令是所述终端在结束通话时,且获取所述耳机的工作模式为模拟音频模式后发送的;所述耳机根据所述切换命令切换所述耳机的工作模式,包括:所述耳机根据所述第二切换命令,将所述耳机的工作模式切换为数字音频模式。
- 如权利要求6所述的方法,其特征在于,所述耳机接收与所述耳机相连的终端发送的切换命令,包括:所述耳机接收所述终端发送的第三切换命令,所述第三切换命令是所述终端在通话过程中监测到与所述耳机建立连接,且获取所述耳机的工作模式为数字音频模式后发送的;所述耳机根据所述切换命令切换所述耳机的工作模式,包括:所述耳机根据所述第三切换命令,将所述耳机的工作模式切换为模拟音频模式。
- 一种应用于终端的耳机模式切换装置,其特征在于,包括:获取模块,用于获取终端的音频处理单元的工作状态和与所述终端相连的耳机的工作模式,所述音频处理单元的工作状态包括通话工作状态和非通话工作状态,所述耳机的工作模式包括数字音频模式和模拟音频模式;判断模块,用于判断所述音频处理单元的工作状态与所述耳机的工作模式是否对应;发送模块,用于在确定所述音频处理单元的工作状态与所述耳机的工作模式不对应时,向所述耳机发送切换命令,以使所述耳机根据所述切换命令切换所述耳机的工作模式;其中,所述音频处理单元的通话工作状态与所述耳机的模拟音频模式相对应,所述音频处理单元的非通话工作状态与所述耳机的数字音频模式相对应。
- 如权利要求10所述的装置,其特征在于,还包括确定模块,用于:确定所述音频处理单元的工作状态发生变化,或监测所述耳机与所述终端建立连接。
- 如权利要求11所述的装置,其特征在于,所述确定模块,具体用于确定与所述耳机连接的所述终端在建立通话连接;所述获取模块,具体用于在建立通话连接时,获取所述耳机的工作模式;所述发送模块,具体用于在所述耳机的工作模式为数字音频模式时,向所述耳机发送第一切换命令,所述第一切换命令用于指示所述耳机将工作模式切换为模拟音频模式。
- 如权利要求11所述的装置,其特征在于,所述确定模块,具体用于确定与所述耳机连接的所述终端结束通话;所述获取模块,具体用于在结束通话时,获取所述耳机的工作模式;所述发送模块,具体用于在所述耳机的工作模式为模拟音频模式时,向所述耳机发送第二切换命令,所述第二切换命令用于指示所述耳机将工作模 式切换为数字音频模式。
- 如权利要求11所述的装置,其特征在于,所述确定模块,具体用于在通话过程中监测到与所述耳机建立连接;所述获取模块,具体用于在与所述耳机建立连接后,获取所述耳机的工作模式;所述发送模块,具体用于在所述耳机的工作模式为数字音频模式时,向所述耳机发送第三切换命令,所述第三切换命令用于指示所述耳机将工作模式切换为模拟音频模式。
- 一种应用于耳机的耳机模式切换装置,其特征在于,包括:接收模块,用于接收与所述耳机相连的终端发送的切换命令,所述切换命令为所述终端在确定所述终端的音频处理单元的工作状态与所述耳机的工作模式不对应时发送的,所述音频处理单元的工作状态包括通话工作状态和非通话工作状态,所述耳机的工作模式包括数字音频模式和模拟音频模式;切换模块,用于根据所述切换命令切换所述耳机的工作模式;其中,所述音频处理单元的通话工作状态与所述耳机的模拟音频模式相对应,所述音频处理单元的非通话工作状态与所述耳机的数字音频模式相对应。
- 如权利要求15所述的装置,其特征在于,所述接收模块,具体用于接收所述终端发送的第一切换命令,所述第一切换命令是所述终端在建立通话连接时,且获取所述耳机的工作模式为数字音频模式后发送的;所述切换模块,具体用于根据所述第一切换命令,将所述耳机的工作模式切换为模拟音频模式。
- 如权利要求15所述的装置,其特征在于,所述接收模块,具体用于接收所述终端发送的第二切换命令,所述第二切换命令是所述终端在结束通话时,且获取所述耳机的工作模式为模拟音频模式后发送的;所述切换模块,具体用于根据所述第二切换命令,将所述耳机的工作模式切换为数字音频模式。
- 如权利要求15所述的装置,其特征在于,所述接收模块,具体用于接收所述终端发送的第三切换命令,所述第三切换命令是所述终端在通话过程中监测到与所述耳机建立连接,且获取所述耳机的工作模式为数字音频模式后发送的;所述切换模块,具体用于根据所述第三切换命令,将所述耳机的工作模式切换为模拟音频模式。
- 一种终端,其特征在于,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-5任一所述的方法。
- 一种耳机,其特征在于,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求6-9任一所述的方法。
- 一.种非暂态计算机可读存储介质,其特征在于,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行权利要求1~5任一所述方法。
- 一种非暂态计算机可读存储介质,其特征在于,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行权利要求6~9任一所述方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在 非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1~5任一所述方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求6~9任一所述方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610285503.7A CN105744424A (zh) | 2016-04-29 | 2016-04-29 | 一种耳机模式切换方法、终端及耳机 |
| CN201610285503.7 | 2016-04-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017185602A1 true WO2017185602A1 (zh) | 2017-11-02 |
Family
ID=56287937
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/099904 Ceased WO2017185602A1 (zh) | 2016-04-29 | 2016-09-23 | 一种耳机模式切换方法和电子设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105744424A (zh) |
| WO (1) | WO2017185602A1 (zh) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105744424A (zh) * | 2016-04-29 | 2016-07-06 | 乐视控股(北京)有限公司 | 一种耳机模式切换方法、终端及耳机 |
| CN207010908U (zh) * | 2016-07-20 | 2018-02-13 | 中兴通讯股份有限公司 | 终端及耳机 |
| CN111050240A (zh) * | 2018-10-15 | 2020-04-21 | 珠海格力电器股份有限公司 | 耳机模式切换方法及装置 |
| CN114339519B (zh) * | 2021-12-31 | 2026-03-03 | 恒玄科技(上海)股份有限公司 | 一种无线耳机的控制方法及无线耳机 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1313350A2 (en) * | 2001-11-16 | 2003-05-21 | Gateway, Inc. | Multi-mode speaker operating with digital and analog input signals |
| US20140029770A1 (en) * | 2012-07-25 | 2014-01-30 | Conexant Systems, Inc. | Hybrid analog/digital headset |
| CN204014027U (zh) * | 2014-07-30 | 2014-12-10 | 深圳市澳宏电子有限公司 | 一种带usb接口的数字音频解码通用耳机 |
| CN204350079U (zh) * | 2015-01-20 | 2015-05-20 | 上海复旦通讯股份有限公司 | 一种具有音频处理功能的gsm-r手持台 |
| CN105744424A (zh) * | 2016-04-29 | 2016-07-06 | 乐视控股(北京)有限公司 | 一种耳机模式切换方法、终端及耳机 |
| CN105933824A (zh) * | 2016-04-20 | 2016-09-07 | 乐视控股(北京)有限公司 | 终端的音频切换方法和装置 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100594152B1 (ko) * | 2004-12-28 | 2006-06-28 | 삼성전자주식회사 | 전원노이즈를 제거하는 이어폰 잭과 그 동작방법 |
| KR20070012097A (ko) * | 2005-07-22 | 2007-01-25 | 엘지전자 주식회사 | 스테레오 스피커 시스템 폰에서의 스피커패스 자체검사방법 및 이를 이용한 이동통신 단말기 |
-
2016
- 2016-04-29 CN CN201610285503.7A patent/CN105744424A/zh active Pending
- 2016-09-23 WO PCT/CN2016/099904 patent/WO2017185602A1/zh not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1313350A2 (en) * | 2001-11-16 | 2003-05-21 | Gateway, Inc. | Multi-mode speaker operating with digital and analog input signals |
| US20140029770A1 (en) * | 2012-07-25 | 2014-01-30 | Conexant Systems, Inc. | Hybrid analog/digital headset |
| CN204014027U (zh) * | 2014-07-30 | 2014-12-10 | 深圳市澳宏电子有限公司 | 一种带usb接口的数字音频解码通用耳机 |
| CN204350079U (zh) * | 2015-01-20 | 2015-05-20 | 上海复旦通讯股份有限公司 | 一种具有音频处理功能的gsm-r手持台 |
| CN105933824A (zh) * | 2016-04-20 | 2016-09-07 | 乐视控股(北京)有限公司 | 终端的音频切换方法和装置 |
| CN105744424A (zh) * | 2016-04-29 | 2016-07-06 | 乐视控股(北京)有限公司 | 一种耳机模式切换方法、终端及耳机 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105744424A (zh) | 2016-07-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107509153B (zh) | 声音播放器件的检测方法、装置、存储介质及终端 | |
| CN107562405B (zh) | 音频播放控制方法、装置及存储介质和移动终端 | |
| CN102143421B (zh) | 终端及该终端的音频处理方法 | |
| CN107371102B (zh) | 音频播放音量的控制方法、装置及存储介质和移动终端 | |
| WO2021160040A1 (zh) | 音频传输方法及电子设备 | |
| CN107633849A (zh) | 蓝牙设备音量调整方法、设备及计算机可读存储介质 | |
| CN112235692B (zh) | 音频切换电路、电子设备和音频切换方法 | |
| WO2017185602A1 (zh) | 一种耳机模式切换方法和电子设备 | |
| WO2022048020A1 (zh) | 蓝牙音箱的控制方法及系统、存储介质及移动终端 | |
| CN108076416B (zh) | 一种USBTypeC耳机的控制方法、装置和终端 | |
| CN108989918B (zh) | 一种音频处理装置和一种音频播放系统 | |
| CN100484163C (zh) | 减少移动单元内功耗的装置和方法 | |
| CN113411703B (zh) | 音频播放方法以及耳机盒、无线耳机和耳机套件 | |
| CN106941643B (zh) | 一种集合多功能的智能音响控制方法 | |
| US20130039154A1 (en) | Remote control of a portable electronic device and method therefor | |
| CN109155803B (zh) | 音频数据处理方法、终端设备和存储介质 | |
| CN107566595A (zh) | 移动终端的音量控制方法、装置及存储介质和移动终端 | |
| TWI687085B (zh) | 錄音裝置 | |
| CN111083250A (zh) | 移动终端及其降噪方法 | |
| CN106331356B (zh) | 一种音量控制方法及终端 | |
| CN108391208A (zh) | 信号切换方法、装置、终端、耳机及计算机可读存储介质 | |
| JP5940672B2 (ja) | ソース依存の無線イヤフォンの等化 | |
| EP2557763A1 (en) | Remote control of a portable electronic device and method therefor | |
| CN114866115B (zh) | 蓝牙转换设备、充电仓和音频播放系统 | |
| CN100377922C (zh) | 可共构于车用音响的控制模块 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16900111 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16900111 Country of ref document: EP Kind code of ref document: A1 |