CN107959903A - Audio output switching method, feedback earphone wearing state method, apparatus and earphone - Google Patents
Audio output switching method, feedback earphone wearing state method, apparatus and earphone Download PDFInfo
- Publication number
- CN107959903A CN107959903A CN201610906804.7A CN201610906804A CN107959903A CN 107959903 A CN107959903 A CN 107959903A CN 201610906804 A CN201610906804 A CN 201610906804A CN 107959903 A CN107959903 A CN 107959903A
- Authority
- CN
- China
- Prior art keywords
- earphone
- audio
- terminal
- information
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2201/00—Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
- H04R2201/10—Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2430/00—Signal processing covered by H04R, not provided for in its groups
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
本发明提供一种音频输出切换方法、反馈耳机佩戴状态方法、装置及耳机,用以解决现有技术中音频输出模式切换操作较为复杂,不便于用户实现的问题。其中,音频输出切换方法包括:接收耳机的佩戴状态信息,根据接收到的耳机佩戴状态信息确定耳机当前是否被用户佩戴;检测耳机的音频输出信息,根据检测到的音频输出信息确定终端当前播放音频所使用的音频输出通道是否为耳机;如果耳机当前未被用户佩戴,且检测到耳机有音频输出信息时,则将终端当前播放的音频使用除耳机之外的其他音频输出通道进行输出,该方案实现了音频播放模式的自动切换,方便了用户的使用。
The present invention provides an audio output switching method, a method for feeding back the earphone wearing status, a device, and an earphone to solve the problem in the prior art that the audio output mode switching operation is relatively complicated and inconvenient for users to implement. Wherein, the audio output switching method includes: receiving the wearing state information of the earphone, determining whether the earphone is currently worn by the user according to the received earphone wearing state information; detecting the audio output information of the earphone, and determining the terminal currently playing audio according to the detected audio output information; Whether the audio output channel used is earphones; if the earphones are not currently worn by the user and it is detected that the earphones have audio output information, the audio currently played by the terminal will be output using other audio output channels other than the earphones. The automatic switching of the audio playback mode is realized, which is convenient for users to use.
Description
技术领域technical field
本发明涉及音频处理领域,特别是涉及一种音频输出切换方法、反馈耳机佩戴状态方法、装置及耳机。The invention relates to the field of audio processing, in particular to an audio output switching method, a method and device for feeding back the wearing state of an earphone, and an earphone.
背景技术Background technique
随着终端手机的普及,越来越多的用户使用手机作为看视频、听音乐、听广播、通话的媒介工具,但是目前在使用耳机的某些场景下,音频的输出通路的切换非常不人性化,导致用户使用耳机时的种种不方便,例如,在用户插入耳机观看视频或收听广播时,时间久了或者用户所处环境发生了变化,当用户把耳机从耳朵取出后,用户会期望声音能直接从终端的喇叭中播出,这时则需要用户动手把耳机从中终端拔出,即需要用户手动开启外放,为用户的使用带来了不便。又例如,在用户驾驶车辆的过程中,手机连接有线耳机或者蓝牙耳机进行通话,用户在通话结束后或者通话过程中想要切换到免提,则需要用户摘掉耳机后,再打开免提的操作,同样为用户带来了不便。可见,如何改进音频输出通道的智能切换,提高终端用户使用体验,成为亟待解决的问题。With the popularization of terminal mobile phones, more and more users use mobile phones as media tools for watching videos, listening to music, listening to radio, and calling. However, in some scenarios where headphones are used, the switching of audio output channels is very inhumane. For example, when the user plugs in the earphone to watch video or listen to the radio, after a long time or the user's environment changes, when the user takes the earphone out of the ear, the user will expect the sound It can be broadcast directly from the speaker of the terminal. At this time, the user needs to manually pull out the earphone from the terminal, that is, the user needs to manually turn on the external speaker, which brings inconvenience to the user. For another example, when the user is driving a vehicle, the mobile phone is connected to a wired headset or a Bluetooth headset to make a call. If the user wants to switch to the hands-free after the call is over or during the call, the user needs to take off the headset and then turn on the hands-free function. Operation also brings inconvenience to users. It can be seen that how to improve the intelligent switching of audio output channels and improve the user experience of end users has become an urgent problem to be solved.
目前,现有技术中可以通过耳机的插拔切换语音通道,例如,用户在终端中插入耳机打电话或听音乐,将耳机从手机拨出后,自动切换到手机通话。或,用户通过耳机通话的过程中,手动触摸功能按键,将通话方式切换为免提,而目前大部分终端不支持插入耳机的情况下,将音频播放切换为外放。然而,手动切换音频通道无法满足用户在多种场景下音频切换场景,在用户驾驶车辆的过程中,用户通过蓝牙耳机/普通耳机进行通话,在通话完成后,用户如果需要将音频切换为正常手机模式或者免提模式,都需要手动拔掉耳机或者手动关闭蓝牙连接,对于驾车中的用户,非常的危险。而且用户通过耳机听到音频,将耳塞从耳朵拔出后,音频依然从耳机发出,必须手动将耳机和终端的连接断开后,音频才能从终端的外放设备传出,操作步骤非常繁琐,导致用户体验较差。At present, in the prior art, the voice channel can be switched by plugging and unplugging the earphone. For example, the user inserts the earphone into the terminal to make a call or listen to music, and after the earphone is dialed out from the mobile phone, it is automatically switched to the mobile phone call. Or, during a call through the earphone, the user manually touches the function button to switch the call mode to hands-free. However, most terminals currently do not support the insertion of earphones, and switch the audio playback to external playback. However, manual switching of audio channels cannot satisfy the user in various scenarios of audio switching scenarios. When the user is driving the vehicle, the user makes a call through the Bluetooth headset/ordinary headset. After the call is completed, if the user needs to switch the audio to the normal mobile phone Mode or hands-free mode, you need to manually unplug the headset or manually turn off the Bluetooth connection, which is very dangerous for users who are driving. Moreover, the user hears the audio through the earphone. After pulling out the earplug from the ear, the audio is still sent from the earphone. The audio can only be transmitted from the external device of the terminal after the connection between the earphone and the terminal must be manually disconnected. The operation steps are very cumbersome. resulting in poor user experience.
发明内容Contents of the invention
本发明提供一种音频输出切换方法、反馈耳机佩戴状态方法、装置及耳机,用以解决现有技术中音频输出模式切换的操作较为复杂,不便于用户使用的问题。The present invention provides an audio output switching method, a method for feeding back the earphone wearing state, a device, and an earphone to solve the problem in the prior art that the operation of audio output mode switching is relatively complicated and not convenient for users to use.
根据本发明提供了一种音频输出的切换方法,包括:接收耳机的佩戴状态信息,根据接收到的耳机的佩戴状态信息确定耳机当前是否被用户佩戴;检测耳机的音频输出信息,根据检测到的音频输出信息确定终端当前播放音频所使用的音频输出通道是否为耳机;如果耳机当前未被用户佩戴,且检测到耳机有音频输出信息时,则将终端当前播放的音频使用除耳机之外的其他音频输出通道进行输出。According to the present invention, an audio output switching method is provided, including: receiving the wearing state information of the earphone, determining whether the earphone is currently worn by the user according to the received wearing state information of the earphone; detecting the audio output information of the earphone, and according to the detected The audio output information determines whether the audio output channel currently used by the terminal to play audio is a headset; if the headset is not currently worn by the user and it is detected that the headset has audio output information, the audio currently played by the terminal will be used other than the headset. Audio output channel for output.
其中,接收耳机的佩戴状态信息,包括:接收在耳机上预设的压力触点的压力信息。Wherein, receiving the wearing state information of the earphone includes: receiving pressure information of a preset pressure contact on the earphone.
其中,根据接收到的耳机的佩戴状态信息确定耳机当前是否被用户佩戴,包括:当在第一预设时间内接收到至少三个在耳机上预设的压力触点有压力信息时,则确定耳机被用户佩戴,否则确定耳机未被用户佩戴。Wherein, determining whether the earphone is currently worn by the user according to the received wearing state information of the earphone includes: when receiving at least three preset pressure contact information on the earphone within the first preset time, then determining The earphone is worn by the user, otherwise it is determined that the earphone is not worn by the user.
其中,根据接收到的耳机的佩戴状态信息确定耳机当前是否被用户佩戴,包括:根据接收到耳机的音频电信号确定耳机当前是否被用户佩戴,其中,音频电信号携带有在耳机上预设的压力触点的压力信息;如果音频电信号在预设电压值范围内,则确定音频电信号为耳机的佩戴状态信息。Wherein, determining whether the earphone is currently worn by the user according to the received wearing state information of the earphone includes: determining whether the earphone is currently worn by the user according to the received audio electrical signal of the earphone, wherein the audio electrical signal carries the preset information on the earphone. The pressure information of the pressure contact; if the audio electrical signal is within the preset voltage range, it is determined that the audio electrical signal is the wearing state information of the earphone.
其中,将终端当前播放的音频使用除耳机之外的其他音频输出通道进行输出,包括:将终端当前播放的音频切换至终端的听筒进行输出;如果在将终端当前播放的音频切换至终端的听筒进行输出之后的第二预设时间段内未检测到用户将终端移动至用户耳朵处,则将终端当前播放的音频切换至终端的外放扬声器进行播放。Among them, the audio currently played by the terminal is output using other audio output channels except the earphone, including: switching the audio currently played by the terminal to the earpiece of the terminal for output; if the audio currently played by the terminal is switched to the earpiece of the terminal If it is not detected that the user moves the terminal to the user's ear within the second preset time period after the output, the audio currently played by the terminal is switched to the external speaker of the terminal for playback.
进一步的,上述音频输出的切换方法还包括:在将终端当前播放的音频使用除耳机之外的其他音频输出通道进行输出之后,通过文字和/或语音发出提示消息,以提示用户当前进行的音频输出通道的切换。Further, the above audio output switching method further includes: after outputting the audio currently played by the terminal using other audio output channels except the earphone, sending a prompt message through text and/or voice to remind the user of the current audio output. Switching of output channels.
本发明提供了一种反馈耳机佩戴状态的方法,包括:检测耳机的佩戴状态信息;将检测到的耳机的佩戴状态信息发送至终端,以使终端根据佩戴状态信息确定耳机的佩戴状态。The invention provides a method for feeding back the wearing state of an earphone, comprising: detecting the wearing state information of the earphone; sending the detected wearing state information of the earphone to a terminal, so that the terminal determines the wearing state of the earphone according to the wearing state information.
其中,检测耳机的佩戴状态信息包括:检测预设在耳机上的压力触点的压力信息。Wherein, detecting the wearing state information of the earphone includes: detecting pressure information of a pressure contact preset on the earphone.
其中,将检测到的耳机的佩戴状态信息发送至终端,包括:当将检测到至少三个在耳机上预设的压力触点有压力信息时,将压力信息在第一预设时间内发送至终端。Wherein, sending the detected wearing state information of the earphone to the terminal includes: when at least three preset pressure contacts on the earphone are detected to have pressure information, sending the pressure information to the terminal within the first preset time terminal.
其中,将检测到的耳机的佩戴状态信息发送至终端,包括:将电压值在预设电压值范围内的音频电信号发送至终端,其中,音频电信号携带有在耳机上预设的压力触点的压力信息。Wherein, sending the detected wearing state information of the earphones to the terminal includes: sending an audio electrical signal with a voltage value within a preset voltage range to the terminal, wherein the audio electrical signal carries a preset pressure touch signal on the earphone. point pressure information.
本发明提供了一种音频输出的切换装置,包括:接收模块,用于接收耳机的佩戴状态信息,根据接收到的耳机的佩戴状态信息确定耳机当前是否被用户佩戴;第一检测模块,用于检测耳机的音频输出信息,根据检测到的音频输出信息确定终端当前播放音频所使用的音频输出通道是否为耳机;切换模块,用于如果耳机当前未被用户佩戴,且检测到耳机有音频输出信息时,则将终端当前播放的音频使用除耳机之外的其他音频输出通道进行输出。The present invention provides an audio output switching device, comprising: a receiving module, configured to receive wearing state information of the earphone, and determine whether the earphone is currently worn by the user according to the received wearing state information of the earphone; a first detection module, configured to Detect the audio output information of the earphone, and determine whether the audio output channel currently used by the terminal to play audio is an earphone according to the detected audio output information; the switching module is used to detect that the earphone has audio output information if the earphone is not currently worn by the user , the audio currently played by the terminal is output using other audio output channels except the earphone.
其中,接收模块具体用于:接收在耳机上预设的压力触点的压力信息。Wherein, the receiving module is specifically configured to: receive pressure information of a preset pressure contact on the earphone.
其中,接收模块具体用于:当在第一预设时间内接收到至少三个在耳机上预设的压力触点有压力信息时,则确定耳机被用户佩戴,否则确定耳机未被用户佩戴。Wherein, the receiving module is specifically used for: when receiving pressure information of at least three preset pressure contacts on the earphone within the first preset time, then determine that the earphone is worn by the user; otherwise, determine that the earphone is not worn by the user.
其中,第一检测模块,包括:第一确定单元,用于根据接收到耳机的音频电信号确定耳机当前是否被用户佩戴,其中,音频电信号携带有在耳机上预设的压力触点的压力信息;第二确定单元,用于如果音频电信号在预设电压值范围内,则确定音频电信号为耳机的佩戴状态信息。Wherein, the first detection module includes: a first determining unit, configured to determine whether the earphone is currently worn by the user according to the received audio electrical signal of the earphone, wherein the audio electrical signal carries the pressure of the preset pressure contact on the earphone Information; a second determining unit, configured to determine that the audio electrical signal is the wearing state information of the earphone if the audio electrical signal is within a preset voltage value range.
其中,切换模块,包括:第一切换单元,用于将终端当前播放的音频切换至终端的听筒进行输出;第二切换单元,如果在将终端当前播放的音频切换至终端的听筒进行输出之后的第二预设时间段内未检测到用户将终端移动至用户耳朵处,则将终端当前播放的音频切换至终端的外放扬声器进行播放。Wherein, the switching module includes: a first switching unit, configured to switch the audio currently played by the terminal to the earpiece of the terminal for output; a second switching unit, if the audio currently played by the terminal is switched to the earpiece of the terminal for output If it is not detected that the user moves the terminal to the user's ear within the second preset time period, the audio currently played by the terminal is switched to the external speaker of the terminal for playback.
进一步的,上述音频输出的切换装置还包括:提示模块,用于在将终端当前播放的音频使用除耳机之外的其他音频输出通道进行输出之后,通过文字和/或语音发出提示消息,以提示用户当前进行的音频输出通道的切换。Further, the above audio output switching device further includes: a prompt module, configured to issue a prompt message through text and/or voice after the audio currently played by the terminal is output using an audio output channel other than the earphone to prompt The switching of the audio output channel currently performed by the user.
本发明提供了一种反馈耳机佩戴状态的装置,包括:第二检测模块,用于检测耳机的佩戴状态信息;第一发送模块,用于将检测到的耳机的佩戴状态信息发送至终端,以使终端根据佩戴状态信息确定耳机的佩戴状态。The present invention provides a device for feeding back the wearing state of an earphone, comprising: a second detection module for detecting the wearing state information of the earphone; a first sending module for sending the detected wearing state information of the earphone to a terminal for The terminal determines the wearing state of the earphone according to the wearing state information.
其中,第二检测模块具体用于:检测预设在耳机上的压力触点的压力信息。Wherein, the second detection module is specifically configured to: detect the pressure information of the pressure contact preset on the earphone.
其中,第一发送模块具体用于:当将检测到至少三个在耳机上预设的压力触点有压力信息时,将压力信息在第一预设时间内发送至终端。Wherein, the first sending module is specifically configured to: send the pressure information to the terminal within the first preset time when at least three preset pressure contacts on the earphone are detected to have pressure information.
其中,第一发送模块具体用于:将电压值在预设电压值范围内的音频电信号发送至终端,其中,音频电信号携带有在耳机上预设的压力触点的压力信息。Wherein, the first sending module is specifically configured to: send an audio electrical signal whose voltage value is within a preset voltage range to the terminal, wherein the audio electrical signal carries pressure information of a preset pressure contact on the earphone.
本发明还提供了一种耳机,包括:压力触点,压力触点设置于耳机被用户佩戴时与用户耳朵的接触处,压力触点上设置压力传感器,压力传感器用于检测压力触点受到的压力信号;第二发送模块,用于将压力传感器检测到的压力信号转换为第一音频电信号后发送至终端。The present invention also provides an earphone, comprising: a pressure contact, the pressure contact is arranged at the contact point between the earphone and the user's ear when the earphone is worn by the user, and a pressure sensor is arranged on the pressure contact, and the pressure sensor is used to detect the force received by the pressure contact. The pressure signal; the second sending module, configured to convert the pressure signal detected by the pressure sensor into a first audio electrical signal and send it to the terminal.
其中,耳机的麦克风输入信号线支持由麦克风接收到的语音信号转换得到的第二音频电信号的电压,以及由第一音频电信号的电压,第一音频点信号的电压值大于第二音频电信号的电压值。Wherein, the microphone input signal line of the headset supports the voltage of the second audio electrical signal converted from the voice signal received by the microphone, and the voltage of the first audio electrical signal, and the voltage value of the first audio point signal is greater than that of the second audio electrical signal. The voltage value of the signal.
其中,耳机至少包括五个压力触点。Wherein, the earphone includes at least five pressure contacts.
本实施例提供的方案根据耳机发送的耳机佩戴状态信息确定耳机当前是否被用户佩戴,从而确定是否切换终端当前的音频输出通道,实现了音频播放模式的自动切换,方便了用户使用。The solution provided in this embodiment determines whether the headset is currently worn by the user according to the headset wearing status information sent by the headset, thereby determining whether to switch the current audio output channel of the terminal, realizing automatic switching of the audio playback mode, and convenient for the user.
附图说明Description of drawings
图1是本发明第一实施例中提供的音频输出切换方法的流程图;Fig. 1 is a flow chart of the audio output switching method provided in the first embodiment of the present invention;
图2是本发明第二实施例中提供的反馈耳机佩戴状态方法的流程图;Fig. 2 is a flow chart of the method for feeding back the earphone wearing state provided in the second embodiment of the present invention;
图3是本发明第三实施例中涉及到的耳机与用户耳朵接触部分的示意图;Fig. 3 is a schematic diagram of the contact part between the earphone and the user's ear involved in the third embodiment of the present invention;
图4是本发明第四实施例中音频输出切换装置的结构框图;FIG. 4 is a structural block diagram of an audio output switching device in a fourth embodiment of the present invention;
图5是本发明第五实施例中提供的反馈耳机佩戴状态装置的结构框图。Fig. 5 is a structural block diagram of a device for feeding back the wearing state of an earphone provided in a fifth embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
第一实施例first embodiment
本实施例提供了一种音频输出的切换方法,该方法可以由终端来执行,该终端通过与其建立连接的耳机进行交互来实现自动对音频输入的模式进行切换,其中,此处所述的连接包括物理连接以及通信连接(例如,蓝牙),图1是该方法的流程图,如图1所示,该方法包括如下步骤:This embodiment provides a method for switching audio output, which can be executed by a terminal, and the terminal can automatically switch the audio input mode by interacting with the earphone that establishes a connection with it, wherein the connection described here Including physical connection and communication connection (for example, bluetooth), Fig. 1 is the flowchart of this method, as shown in Fig. 1, this method comprises the following steps:
步骤101:接收耳机的佩戴状态信息,根据接收到的耳机佩戴状态信息确定耳机当前是否被用户佩戴Step 101: Receive the wearing status information of the headset, and determine whether the headset is currently worn by the user according to the received wearing status information of the headset
接收耳机的佩戴状态信息具体可以包括:接收在耳机上预设的压力触点的压力信息。Receiving the wearing state information of the earphone may specifically include: receiving pressure information of a preset pressure contact on the earphone.
本实施例所涉及的耳机优选的可以包括五个压力触点,该压力触点可以设置于耳机被佩戴时与用户耳朵接触之处,该压力触点用于检测其受到的压力,基于此,本实施例中的耳机佩戴状态信息包括:耳机的各压力触点是否检测到压力,在该步骤101中,检测耳机的佩戴状态信息具体检测在第一预设时间段内接收到的五个压力触点是否检测到的压力信息,该第一预设时间段为一个周期,该一个周内检测到的五个压力触点信号为一组,对检测信号的处理即为对这个五个压力触点信号进行处理。优选的,可以设置该五个触点中,如果触点检测到压力,则信号值为1,如果未检测到压力,则信号值为0。The earphone involved in this embodiment preferably includes five pressure contacts, which can be arranged at the place where the earphone is in contact with the user's ear when the earphone is worn. The pressure contacts are used to detect the pressure it receives. Based on this, The earphone wearing state information in this embodiment includes: whether each pressure contact of the earphone detects pressure. Whether the contact detects the pressure information, the first preset time period is a cycle, and the five pressure contact signals detected within one week form a group, and the processing of the detection signal is the five pressure contact signals. point signal processing. Preferably, among the five contacts, if the contact detects pressure, the signal value is 1, and if no pressure is detected, the signal value is 0.
在本实施例中,首先可以将耳机佩戴状态信息转换为第一音频电信号,在通过耳机麦克风输入信号线来将该第一音频电信号发送至终端,同时,本实施不限于使用有线的方式来传输该第一音频电信号,具体地,还可以使用无线传输的方式将该第一音频电信号发送至终端,但是对于采用有线的方式来传输该第一音频电信号的情况,在用户使用耳机进行语音通话时,麦克风输入信号线中有由语音转换而来的第二音频电信号,故,需要对第一音频电信号以及第二音频电信号进行区分。在本实施例中,通过将第一音频电信号的电压设置为大于第二音频电信号的电压的预设电压范围内,这样既可以实现对二者的区分,基于此,接收耳机发送的耳机佩戴状态信息具体可以包括:在通过耳机的麦克风输入信号线接收到预设电压值范围内的音频电信号时,确定该预设电压值范围内的音频电信号为耳机佩戴状态信息。In this embodiment, firstly, the earphone wearing state information can be converted into the first audio electrical signal, and the first audio electrical signal is sent to the terminal through the earphone microphone input signal line. At the same time, this implementation is not limited to the wired method To transmit the first audio electrical signal, specifically, the first audio electrical signal can also be sent to the terminal in a wireless transmission manner, but for the case of using a wired method to transmit the first audio electrical signal, when the user uses When the earphone makes a voice call, the microphone input signal line has a second audio electrical signal converted from voice, so it is necessary to distinguish the first audio electrical signal from the second audio electrical signal. In this embodiment, by setting the voltage of the first audio electrical signal within a preset voltage range greater than the voltage of the second audio electrical signal, the distinction between the two can be realized. Based on this, the earphones sent by the earphones The wearing state information may specifically include: when an audio electrical signal within a preset voltage range is received through the microphone input signal line of the earphone, determining that the audio electrical signal within the preset voltage range is the earphone wearing state information.
步骤102:检测耳机的音频输出信息,根据检测到的音频输出信息确定终端当前播放音频所使用的音频输出通道是否为耳机;Step 102: Detect the audio output information of the earphone, and determine whether the audio output channel currently used by the terminal to play audio is an earphone according to the detected audio output information;
根据耳机佩戴状态信息确定耳机当前是否被用户佩戴具体可以包括:Determining whether the headset is currently worn by the user according to the headset wearing state information may specifically include:
当根据耳机佩戴状态信息确定在第一预设时间段内耳机的触点中至少有三个触点检测到压力,则确定耳机被用户佩戴,否则确定耳机未被用户佩戴。When it is determined according to the earphone wearing state information that pressure is detected on at least three of the contacts of the earphone within the first preset time period, it is determined that the earphone is worn by the user; otherwise, it is determined that the earphone is not worn by the user.
或根据接收到耳机的音频电信号确定耳机当前是否被用户佩戴,其中,音频电信号携带有在所耳机上预设的压力触点的压力信息;如果音频电信号在预设电压值范围内,则确定音频电信号为耳机的佩戴状态信息。Or determine whether the earphone is currently worn by the user according to the received audio electrical signal of the earphone, wherein the audio electrical signal carries the pressure information of the preset pressure contact on the earphone; if the audio electrical signal is within the preset voltage value range, Then it is determined that the audio electrical signal is the wearing state information of the earphone.
对于终端来说,可以通过确定其各个音频输出通道是否有音频电信号来确定当前播放音频所使用的音频输出通道,也可以通过现有的其他方式进行检测,本实施例对此不再赘述。For the terminal, the audio output channel currently used for audio playback can be determined by determining whether each audio output channel has an audio electrical signal, or it can be detected by other existing methods, which will not be described in this embodiment.
步骤103:如果所述耳机当前未被用户佩戴,且检测到所述耳机有音频输出信息时,则将所述终端当前播放的音频使用除耳机之外的其他音频输出通道进行输出。Step 103: If the earphone is not currently worn by the user and it is detected that the earphone has audio output information, output the audio currently played by the terminal using other audio output channels except the earphone.
在本实施例中,将终端当前播放的音频使用除耳机之外的其他音频输出通道进行输出具体可以包括:将终端当前播放的音频切换至终端的听筒进行输出;如果在将终端当前播放的音频切换至终端的听筒进行输出之后的第二预设时间段内未检测到用户将终端移动至用户耳朵处,则将终端当前播放的音频切换至终端的外放扬声器进行播放。例如,通话过程中,如果已经判定用户将耳塞拔出,语音通道暂时切换至手机麦克,如果在定义的时间内,通过传感器检测到用户没有将手机贴脸通话,语音通道会再次切换到免提状态。In this embodiment, outputting the audio currently played by the terminal using an audio output channel other than the earphone may specifically include: switching the audio currently played by the terminal to the earpiece of the terminal for output; If it is not detected that the user moves the terminal to the user's ear within a second preset time period after switching to the earpiece of the terminal for output, the audio currently played by the terminal is switched to the external speaker of the terminal for playback. For example, during a call, if it is determined that the user has pulled out the earbuds, the voice channel is temporarily switched to the microphone of the mobile phone. If the sensor detects that the user does not put the mobile phone on the face for a call within the defined time, the voice channel will be switched to hands-free again. state.
进一步的,为了进一步提升用户的体验,在对当前音频输出通道进行切换后,还可以通过终端提示用户当前音频输出模式进行切换,以及切换的具体情况,例如,当前音频输出模式由耳机输出模式切换为扬声器输出模式,基于此,本实施例提供的方法还包括:在将终端当前播放的音频使用除耳机之外的其他音频输出通道进行输出之后,通过文字和/或语音发出提示消息,以提示用户当前进行的音频输出通道的切换,例如:“耳塞从耳朵拔出,音频切换正常模式,请知晓”,用户也可以根据习惯,自行进行设置选择。Further, in order to further improve the user experience, after switching the current audio output channel, the terminal can also prompt the user to switch the current audio output mode and the specific circumstances of the switch, for example, the current audio output mode is switched from the headphone output mode It is the speaker output mode. Based on this, the method provided by this embodiment further includes: after outputting the audio currently played by the terminal using other audio output channels except the earphone, sending a prompt message through text and/or voice to prompt The user is currently switching the audio output channel, for example: "Pull out the earplugs from the ear, the audio will switch to the normal mode, please know", the user can also make their own settings and choices according to their habits.
本实施例提供的方案,根据耳机发送的耳机佩戴状态信息确定耳机当前是否被用户佩戴,从而确定是否切换终端当前的音频输出通道,使得终端可以根据耳机被佩戴的情况自动切换终端的音频输出通道,使得终端的音频播放更加智能化。The solution provided in this embodiment determines whether the headset is currently worn by the user according to the headset wearing status information sent by the headset, so as to determine whether to switch the current audio output channel of the terminal, so that the terminal can automatically switch the audio output channel of the terminal according to the condition that the headset is worn , making the audio playback of the terminal more intelligent.
第二实施例second embodiment
本实施例提供了一种反馈耳机佩戴状态的方法,该方法可以由耳机来实现,图2是该方法的流程图,如图2所示,该方法具体可以包括如下处理:This embodiment provides a method for feeding back the wearing state of the earphone. The method can be implemented by the earphone. FIG. 2 is a flow chart of the method. As shown in FIG. 2 , the method can specifically include the following processing:
步骤201:检测耳机的佩戴状态信息;Step 201: Detect the wearing state information of the earphone;
其中,检测所述耳机的佩戴状态信息具体可以包括:检测预设在耳机上的压力触点的压力信息。在本实施例中,耳机可以包括五个压力触点,该五个压力触点可以通过设置于其上的压力传感器来感知压力,在用户佩戴耳机时,与耳机上的压力触点接触,从而产生压力信号,耳机佩戴状态信息包括:耳机的各压力触点是否检测到压力。Wherein, detecting the wearing state information of the earphone may specifically include: detecting pressure information of a pressure contact preset on the earphone. In this embodiment, the earphone may include five pressure contacts, and the five pressure contacts may sense pressure through the pressure sensor provided thereon, and when the user wears the earphone, they will be in contact with the pressure contacts on the earphone, thereby A pressure signal is generated, and the wearing state information of the earphone includes: whether pressure is detected by each pressure contact of the earphone.
步骤202:将检测到的耳机的佩戴状态信息发送至终端,以使终端根据佩戴状态信息确定耳机的佩戴状态。在本实施例中,将检测到的耳机的佩戴状态信息发送至终端,具体可以包括如下处理:当将检测到至少三个在耳机上预设的压力触点有压力信息时,将压力信息在第一预设时间内发送至终端,或将电压值在预设电压值范围内的音频电信号发送至终端,其中,音频电信号携带有在耳机上预设的压力触点的压力信息。Step 202: Send the detected wearing state information of the earphone to the terminal, so that the terminal determines the wearing state of the earphone according to the wearing state information. In this embodiment, sending the detected wearing status information of the earphones to the terminal may specifically include the following processing: when at least three pressure contacts preset on the earphones have pressure information, send the pressure information to the terminal. Sending to the terminal within a first preset time, or sending an audio electrical signal with a voltage within a preset voltage range to the terminal, wherein the audio electrical signal carries pressure information of a preset pressure contact on the earphone.
其中,将检测到的耳机的佩戴状态信息发送至终端,包括:Wherein, the wearing status information of the detected earphones is sent to the terminal, including:
将电压值在预设电压值范围内的音频电信号发送至终端,其中,音频电信号携带有在耳机上预设的压力触点的压力信息。An audio electrical signal whose voltage value is within a preset voltage range is sent to the terminal, wherein the audio electrical signal carries pressure information of a preset pressure contact on the earphone.
其中,将检测到的耳机的佩戴状态信息发送至终端具体可以包括:将压力信息转换为音频电信号后通过耳机的麦克风输入信号线将音频电信号发送至终端,音频电信号的电压值在预设电压值范围内。Wherein, sending the detected wearing state information of the earphone to the terminal may specifically include: converting the pressure information into an audio electrical signal and then sending the audio electrical signal to the terminal through the microphone input signal line of the earphone, and the voltage value of the audio electrical signal is within a predetermined range. within the voltage range.
在本实施例中,首先可以将耳机佩戴状态信息转换为第一音频电信号,在通过耳机麦克风输入信号线来将该第一音频电信号发送至终端,但在用户使用耳机进行语音通话时,麦克风输入信号线中有由语音转换而来的第二音频电信号,故,需要对第一音频电信号以及第二音频电信号进行区分。在本实施例中,通过将第一音频电信号的电压设置为大于第二音频电信号的电压的预设电压范围内,这样既可以实现对二者的区分。In this embodiment, firstly, the earphone wearing state information can be converted into the first audio electrical signal, and the first audio electrical signal is sent to the terminal through the earphone microphone input signal line, but when the user uses the earphone to make a voice call, There is a second audio electrical signal converted from voice in the microphone input signal line, so it is necessary to distinguish the first audio electrical signal from the second audio electrical signal. In this embodiment, by setting the voltage of the first audio electrical signal within a preset voltage range greater than the voltage of the second audio electrical signal, the distinction between the two can be achieved.
本实施例提供的反馈耳机佩戴状态的方法,能够检测到用户佩戴状态,并将用户佩戴状态发送至终端,使得终端根据耳机发送的耳机佩戴状态信息确定耳机当前是否被用户佩戴,从而确定是否切换终端当前的音频输出通道,使得终端可以根据耳机被佩戴的情况自动切换终端的音频输出通道,使得终端的音频播放更加智能化。The method for feeding back the wearing state of the earphone provided in this embodiment can detect the wearing state of the user, and send the wearing state of the user to the terminal, so that the terminal can determine whether the earphone is currently worn by the user according to the earphone wearing state information sent by the earphone, so as to determine whether to switch The current audio output channel of the terminal enables the terminal to automatically switch the audio output channel of the terminal according to the situation when the earphone is worn, making the audio playback of the terminal more intelligent.
第三实施例third embodiment
本实施例提供了一种耳机,该耳机可以是耳塞或耳麦,该耳机至少可以包括五个压力触点,该压力触点设置于耳机被用户佩戴时与用户耳朵的接触处,例如,可以是耳机与耳道接触的圆圈部分均匀分布了五个类似触摸屏的触点,如图3所示,该五个压力触点均匀的设置于耳机发生孔的外围处,耳机的各个压力触点上可以设置压力传感器,也可以是压感电容等压力感应元件,压力传感器用于检测压力触点受到的压力信号;该耳机还具有第二发送模块,该第二发送模块用于将压力传感器检测到的压力信号转换为第一音频电信号后发送至终端。This embodiment provides a kind of earphone, and this earphone can be earplug or earphone, and this earphone can comprise at least five pressure contacts, and this pressure contact is arranged on the contact place of user's ear when earphone is worn by user, for example, can be The circle part where the earphone is in contact with the ear canal is evenly distributed with five contacts similar to the touch screen. As shown in Figure 3, the five pressure contacts are evenly arranged on the periphery of the earphone hole, and each pressure contact of the earphone can be A pressure sensor is set, which can also be a pressure sensing element such as a piezocapacitance, and the pressure sensor is used to detect the pressure signal received by the pressure contact; the earphone also has a second sending module, which is used to transmit the pressure signal detected by the pressure sensor The pressure signal is converted into the first audio electrical signal and then sent to the terminal.
优选的,本实施例中的耳机的麦克风输入信号线支持由麦克风接收到的语音信号转换得到的第二音频电信号的电压,以及由第一音频电信号的电压,第一音频点信号的电压值大于第二音频电信号的电压值,优选的,可以通过对现有耳机的麦克风输入信号线进行改造,使其支持更大的电压范围。Preferably, the microphone input signal line of the headset in this embodiment supports the voltage of the second audio electrical signal converted from the voice signal received by the microphone, and the voltage of the first audio electrical signal, the voltage of the first audio point signal The value is greater than the voltage value of the second audio electrical signal. Preferably, the microphone input signal line of the existing earphone can be modified to support a larger voltage range.
本实施例提供的耳机从功能上进行划分可以包括以下组成部分:Functionally, the headset provided in this embodiment may include the following components:
耳机触点感应模块:当耳机插入终端后或蓝牙耳机与手机建立连接后,耳机上的5个触点通电,该5个触点类似于手机触摸屏的触点,在耳机和手机连接后通电,如果触点没有受到挤压,触点默认的信号为“0”,当触点受压感后,触点主动反馈的信号为“1”。手机耳塞部分均匀分布了5个触点,为了方便区分触点,将5个触点添加ID(标识)标签,所以触点信号的格式可以为,1,0,该信号表示,ID为1的触点的信号若为0,则表示该触点此时没有检测到压力。耳机触点感应模块周期性(即上述第一预设时间段)(本文根据用户的使用习惯,将收集周期定义为0.5S)的从触点获取当前触点状态信息,发送到感应数据传输模块。Headphone contact sensing module: When the headset is inserted into the terminal or the Bluetooth headset is connected to the mobile phone, the 5 contacts on the headset are powered on. The 5 contacts are similar to the contacts on the touch screen of the mobile phone. If the contact is not squeezed, the default signal of the contact is "0", and when the contact is pressed, the active feedback signal of the contact is "1". There are 5 contacts evenly distributed in the earplug part of the mobile phone. In order to facilitate the identification of the contacts, ID (identification) labels are added to the 5 contacts, so the format of the contact signal can be, 1, 0. This signal indicates that the ID is 1. If the signal of the contact is 0, it means that the contact does not detect pressure at this time. The headphone contact sensing module periodically (that is, the above-mentioned first preset time period) (according to the user's usage habits, the collection period is defined as 0.5S) obtains the current contact status information from the contact and sends it to the sensing data transmission module .
耳机接口有四个信号线,分别是左声道、右声道、接地和麦克风。接口中各信号的方向是固定的,左声道和右声道用于驱动耳机,所以对于手机就是输出;麦克风用于采集语音信号,所以对于手机其方向为输入,话筒(麦克风)把机械振动转换成电信号,模拟音频技术以模拟电压的幅度表示声音强弱。相对于手机,耳机孔接口提供了两个输出通道和一个输入通道,可以满足手机和硬件外设的双向通信的要求,There are four signal lines in the headphone jack, which are left channel, right channel, ground and microphone. The direction of each signal in the interface is fixed, the left channel and the right channel are used to drive the earphone, so it is the output for the mobile phone; the microphone is used to collect the voice signal, so the direction is the input for the mobile phone, and the microphone (microphone) converts the mechanical vibration Converted to an electrical signal, analog audio technology uses the magnitude of an analog voltage to indicate the strength of a sound. Compared with mobile phones, the headphone jack interface provides two output channels and one input channel, which can meet the requirements of two-way communication between mobile phones and hardware peripherals.
该模块采集到的触点信号属于电信号,将电信号转化模拟为音频电信号(固定电压值)输入到麦克风输入连接线。The contact signal collected by the module is an electrical signal, and the electrical signal is converted into an audio electrical signal (fixed voltage value) and input to the microphone input connection line.
需要说明的是,当用户在听音频或者观看视频的时候,麦克风是不工作的,麦克电信号输入通道可以方便使用。如果当前用户处于通话过程中,麦克电信号输入通道有音频电信号在传输。故本实施例中使用的电信号叠加方式,将耳塞是否插入耳机的值传递给终端,将麦克音频电信号的传输线进行改造,增大传输线的电压范围。例如,普通耳机的电压范围:0-1.8V,本实施例的耳机传输线的电压范围增大为0-4V。耳塞触点的发生压感时,模拟音频电信号的电压维持在2V。It should be noted that when the user is listening to audio or watching video, the microphone does not work, and the microphone electrical signal input channel can be conveniently used. If the current user is in the process of talking, audio and electrical signals are being transmitted in the microphone electrical signal input channel. Therefore, the electrical signal superposition method used in this embodiment transmits the value of whether the earplug is inserted into the earphone to the terminal, and modifies the transmission line of the microphone audio electrical signal to increase the voltage range of the transmission line. For example, the voltage range of an ordinary earphone is 0-1.8V, and the voltage range of the earphone transmission line in this embodiment is increased to 0-4V. When pressure sensing occurs on the earplug contacts, the voltage of the analog audio signal is maintained at 2V.
如果用户使用耳机通话,麦克传输线的电压变化0-1.8之间,如果用户耳塞插入耳朵,电压的变化2-3.8之间,基于此,终端在还原语音时需要将采集到的音频电信号做缩小处理,防止音频发生异常。If the user uses a headset to talk, the voltage of the microphone transmission line changes between 0-1.8, and if the user inserts earplugs into the ear, the voltage changes between 2-3.8. Based on this, the terminal needs to reduce the collected audio electrical signal when restoring the voice Handle to prevent audio exceptions.
如果周期内采集到的5组音频电信号均小于2,则可以认为用户已经将耳塞拔出,会发起音频通路的切换。If the 5 sets of audio electrical signals collected in the period are all less than 2, it can be considered that the user has pulled out the earplugs, and an audio channel switching will be initiated.
感应数据传输模块,该模块的主要作用是从耳机触点感应模块(麦克输入电信号)周期性的接收5个触点的音频电信号转化为手机端软件可以识别的XML(json)格式。发送给感应数据处理模块,数据传输的XML格式如下:Sensing data transmission module, the main function of this module is to periodically receive audio electrical signals of 5 contacts from the earphone contact sensing module (microphone input electrical signal) and convert them into XML (json) format that can be recognized by mobile phone software. Sent to the induction data processing module, the XML format of the data transmission is as follows:
[info][info]
<ID>1</ID>//触点标识<ID>1</ID>//contact identification
<signal>0<signal>//当前状态<signal>0<signal>//current status
<ID>2<ID><ID>2<ID>
<signal>1<signal>//当前状态<signal>1<signal>//Current status
……
[/info][/info]
基于本实施例提供的耳机所具有的以上各组成部分,本实施例中所涉及的终端内具体可以设置以下组成部分,以与耳机的上述组成部分进行配合,实现本发明所提供的音频输出通道的切换。本实施例所涉及到的终端具体可以具有如下组成部分:Based on the above components of the earphone provided in this embodiment, the following components can be set in the terminal involved in this embodiment to cooperate with the above components of the earphone to realize the audio output channel provided by the present invention switch. The terminal involved in this embodiment may specifically have the following components:
感应数据处理模块:该模块主要是对从感应数据传输模块(该模块设置于耳机中,以下将在第三实施例中对该模块进行说明)获得的耳机触点的数据(即耳机触点感测到的压力信息)进行计算处理,每一次获得XML格式的数据,该模块会解析XML的数据进行计算,计算的核心是读取5个触点同一时间的signal信号值(其中,该5个触点中,如果触点检测到压力,则signal信号值为1,如果未检测到压力,则signal信号值为0),进行简单的加运算,如果5个signal信号数据叠加的值sigsum>=3,则认为该时间点耳机是插入用户耳朵的,虽然耳塞部分有5个触点,但是由于用户的使用习惯不同,如果要求5个触点都是signal1,判断的准确性可能下降。故,当sigsum>=3时,将定义的耳塞是否插入bool类型insert值置为true。以5组数据为一周期(即上述第一预设时间段内),当计算的5组数据中,insert值有4个true,则认为当前用户的耳塞是插入耳朵的,传递给音频通道切换模块的insertdata为1,如果insert值累计小于4个true。传递给音频通道切换模块的insertdata为0。Induction data processing module: this module is mainly for the data of the earphone contact obtained from the inductive data transmission module (this module is arranged in the earphone, which will be described in the third embodiment below) (that is, the earphone contact sensor The measured pressure information) is calculated and processed. Every time the data in XML format is obtained, the module will analyze the XML data for calculation. The core of the calculation is to read the signal signal values of 5 contacts at the same time (among them, the 5 In the contact, if the contact detects pressure, the signal signal value is 1, if no pressure is detected, the signal signal value is 0), and a simple addition operation is performed, if the superimposed value of 5 signal signal data sigsum>= 3. It is considered that the earphone is inserted into the user's ear at this time point. Although the earplug part has 5 contacts, due to the user's different usage habits, if all 5 contacts are required to be signal1, the accuracy of the judgment may decrease. Therefore, when sigsum>=3, the bool type insert value of whether the defined earplug is inserted is set to true. Taking 5 sets of data as a cycle (that is, within the first preset time period mentioned above), when there are 4 true insert values in the calculated 5 sets of data, it is considered that the current user's earplugs are inserted into the ear and passed to the audio channel switch The insertdata of the module is 1, if the cumulative insert value is less than 4 true. The insertdata passed to the audio channel switching module is 0.
当前音频通路数据采集模块,该模块主要负责读取当前的音频通道audioway,耳机通道为1,手机正常通道为0。The current audio channel data acquisition module, this module is mainly responsible for reading the current audio channel audioway, the earphone channel is 1, and the normal channel of the mobile phone is 0.
音频通道切换模块,音频通道是否进行切换的条件就是对比audioway和insertdata的值,例如,Audioway为1并且接收到insertdata为1,继续保持当前的音频通道。Audioway为0并且接收到insertdata为1,进行音频切换。In the audio channel switching module, the condition for switching the audio channel is to compare the values of audioway and insertdata. For example, if the audioway is 1 and the received insertdata is 1, the current audio channel will continue to be maintained. Audioway is 0 and received insertdata is 1, audio switching is performed.
本实施例提供的耳机,能够检测到用户佩戴状态,并将用户佩戴状态发送至终端,使得终端根据耳机发送的耳机佩戴状态信息确定耳机当前是否被用户佩戴,从而确定是否切换终端当前的音频输出通道,使得终端可以根据耳机被佩戴的情况自动切换终端的音频输出通道,使得终端的音频播放更加智能化。The earphone provided in this embodiment can detect the wearing state of the user, and send the wearing state of the user to the terminal, so that the terminal can determine whether the earphone is currently worn by the user according to the earphone wearing state information sent by the earphone, so as to determine whether to switch the current audio output of the terminal channel, so that the terminal can automatically switch the audio output channel of the terminal according to the situation of wearing the earphone, making the audio playback of the terminal more intelligent.
第四实施例Fourth embodiment
本实施例提供了一种音频输出的切换装置,该装置可以设置于终端中,该装置用于实现上述第一实施例提供的音频输出的切换方法,图4是该装置的结构框图,如图4所示,该装置40具体可以包括如下组成部分:This embodiment provides an audio output switching device, which can be installed in a terminal. The device is used to implement the audio output switching method provided in the first embodiment above. FIG. 4 is a structural block diagram of the device, as shown in FIG. 4, the device 40 may specifically include the following components:
接收模块41,用于接收耳机的佩戴状态信息,根据接收到的耳机佩戴状态信息确定所述耳机当前是否被用户佩戴;The receiving module 41 is configured to receive wearing state information of the earphone, and determine whether the earphone is currently worn by the user according to the received wearing state information of the earphone;
第一检测模块42,用于检测所述耳机的音频输出信息,根据检测到的音频输出信息确定终端当前播放音频所使用的音频输出通道是否为耳机;The first detection module 42 is configured to detect the audio output information of the earphone, and determine whether the audio output channel currently used by the terminal to play audio is an earphone according to the detected audio output information;
切换模块43,用于如果所述耳机当前未被用户佩戴,且检测到所述耳机有音频输出信息时,则将所述终端当前播放的音频使用除耳机之外的其他音频输出通道进行输出。The switching module 43 is configured to output the audio currently played by the terminal using other audio output channels except the earphone if the earphone is not currently worn by the user and it is detected that the earphone has audio output information.
其中,上述第一检测模块41具体用于:接收在所述耳机上预设的压力触点的压力信息。Wherein, the above-mentioned first detection module 41 is specifically configured to: receive pressure information of a preset pressure contact on the earphone.
优选的,本实施例提供的耳机包括五个压力触点。Preferably, the earphone provided by this embodiment includes five pressure contacts.
其中,耳机佩戴状态信息包括:耳机的压力触点是否检测到压力;第一确定模块42具体用于:当在第一预设时间内接收到的耳机佩戴状态信息中耳机的触点至少有三个触点检测到压力时,则确定耳机被用户佩戴,否则确定耳机未被用户佩戴。Wherein, the earphone wearing state information includes: whether the pressure contact of the earphone detects pressure; When the contact detects pressure, it is determined that the earphone is worn by the user, otherwise it is determined that the earphone is not worn by the user.
或,上述第一确定模块42具体可以包括:Or, the above-mentioned first determination module 42 may specifically include:
第一确定单元,用于根据接收到耳机的音频电信号确定耳机当前是否被用户佩戴,其中,音频电信号携带有在耳机上预设的压力触点的压力信息;第二确定单元,用于如果音频电信号在预设电压值范围内,则确定音频电信号为耳机的佩戴状态信息,否则确定耳机未被用户佩戴。The first determining unit is configured to determine whether the earphone is currently worn by the user according to the received audio electrical signal of the earphone, wherein the audio electrical signal carries the pressure information of the preset pressure contact on the earphone; the second determining unit is configured to If the audio electrical signal is within the preset voltage value range, it is determined that the audio electrical signal is the wearing status information of the earphone, otherwise it is determined that the earphone is not worn by the user.
其中,上述切换模块具体可以包括:第一切换单元,用于将终端当前播放的音频切换至终端的听筒进行输出;第二切换单元,如果在将终端当前播放的音频切换至终端的听筒进行输出之后的第二预设时间段内未检测到用户将终端移动至用户耳朵处,则将终端当前播放的音频切换至终端的外放扬声器进行播放。Wherein, the above switching module may specifically include: a first switching unit for switching the audio currently played by the terminal to the earpiece of the terminal for output; a second switching unit for switching the audio currently played by the terminal to the earpiece of the terminal for output If it is not detected within the second preset time period that the user moves the terminal to the user's ear, the audio currently played by the terminal is switched to the external speaker of the terminal for playback.
进一步的,上述装置40还可以包括:提示模块,用于在将所述终端当前播放的音频使用除耳机之外的其他音频输出通道进行输出之后,通过文字和/或语音发出提示消息,以提示用户当前进行的音频输出通道的切换。Further, the above-mentioned device 40 may also include: a prompt module, configured to issue a prompt message through text and/or voice after the audio currently played by the terminal is output using an audio output channel other than the earphone to prompt The switching of the audio output channel currently performed by the user.
本实施例提供的装置,终端根据耳机发送的耳机佩戴状态信息确定耳机当前是否被用户佩戴,从而确定是否切换终端当前的音频输出通道,使得终端可以根据耳机被佩戴的情况自动切换终端的音频输出通道,使得终端的音频播放更加智能化。In the device provided in this embodiment, the terminal determines whether the headset is currently worn by the user according to the headset wearing status information sent by the headset, so as to determine whether to switch the current audio output channel of the terminal, so that the terminal can automatically switch the audio output of the terminal according to the condition that the headset is worn channel, making the audio playback of the terminal more intelligent.
第五实施例fifth embodiment
本实施例提供了一种反馈耳机佩戴状态的装置,该装置用于实现上述第二实施例中提供的反馈耳机状态的方法,图5为该装置的结构框图,如图5所示,该装置50可以包括如下组成部分:This embodiment provides a device for feeding back the wearing state of the earphone, which is used to implement the method for feeding back the state of the earphone provided in the second embodiment above. FIG. 5 is a structural block diagram of the device. As shown in FIG. 5 , the device 50 can include the following components:
第二检测模块51,用于检测耳机的佩戴状态信息;The second detection module 51 is used to detect the wearing state information of the earphone;
第一发送模块52,用于将检测到的耳机的佩戴状态信息发送至终端,以使终端根据耳机的佩戴状态信息确定耳机的佩戴状态。The first sending module 52 is configured to send the detected wearing state information of the earphone to the terminal, so that the terminal determines the wearing state of the earphone according to the wearing state information of the earphone.
优选的,本实施例提供的耳机至少包括五个压力触点,耳机佩戴状态信息包括:耳机的各压力触点是否检测到压力。Preferably, the earphone provided in this embodiment includes at least five pressure contacts, and the wearing state information of the earphone includes: whether each pressure contact of the earphone detects pressure.
其中,上述第二检测模块51具体可以用于:检测预设在耳机上的压力触点的压力信息。Wherein, the above-mentioned second detection module 51 can specifically be used for: detecting the pressure information of the pressure contact preset on the earphone.
其中,上述第一发送模块52具体用于:当将检测到至少三个在耳机上预设的压力触点有压力信息时,将压力信息在第一预设时间内发送至终端。Wherein, the above-mentioned first sending module 52 is specifically configured to: send the pressure information to the terminal within the first preset time when at least three preset pressure contacts on the earphone are detected to have pressure information.
其中,上述第一发送模块具体可以用于:将电压值在预设电压值范围内的音频电信号发送至终端,其中,音频电信号携带有在耳机上预设的压力触点的压力信息。其中,上述第一发送模块52具体可以用于:将压力信息转换为音频电信号后通过耳机的麦克风输入信号线将音频电信号发送至终端,音频电信号的电压值在预设电压值范围内。Wherein, the above-mentioned first sending module may be specifically configured to: send an audio electrical signal whose voltage value is within a preset voltage range to the terminal, wherein the audio electrical signal carries pressure information of a preset pressure contact on the earphone. Among them, the above-mentioned first sending module 52 can be specifically used to: convert the pressure information into an audio electrical signal and then send the audio electrical signal to the terminal through the microphone input signal line of the earphone, and the voltage value of the audio electrical signal is within the preset voltage value range .
本实施例提供的方案,根据耳机发送的耳机佩戴状态信息确定耳机当前是否被用户佩戴,从而确定是否切换终端当前的音频输出通道,实现了音频播放模式的自动切换,方便了用户使用。The solution provided in this embodiment determines whether the headset is currently worn by the user according to the headset wearing status information sent by the headset, thereby determining whether to switch the current audio output channel of the terminal, realizing automatic switching of the audio playback mode, and convenient for the user.
尽管为示例目的,已经公开了本发明的优选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本发明的范围应当不限于上述实施例。Although preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, and therefore, the scope of the present invention should not be limited to the above-described embodiments.
Claims (23)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610906804.7A CN107959903A (en) | 2016-10-18 | 2016-10-18 | Audio output switching method, feedback earphone wearing state method, apparatus and earphone |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610906804.7A CN107959903A (en) | 2016-10-18 | 2016-10-18 | Audio output switching method, feedback earphone wearing state method, apparatus and earphone |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107959903A true CN107959903A (en) | 2018-04-24 |
Family
ID=61954502
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610906804.7A Pending CN107959903A (en) | 2016-10-18 | 2016-10-18 | Audio output switching method, feedback earphone wearing state method, apparatus and earphone |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107959903A (en) |
Cited By (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106572417A (en) * | 2016-10-27 | 2017-04-19 | 腾讯科技(深圳)有限公司 | Sound effect control method and sound effect control device |
| CN109151697A (en) * | 2018-07-26 | 2019-01-04 | Oppo广东移动通信有限公司 | Microphone plugging detection method and related products |
| CN109982208A (en) * | 2019-03-22 | 2019-07-05 | 维沃移动通信有限公司 | A kind of control method and terminal device |
| CN110691294A (en) * | 2019-09-29 | 2020-01-14 | 歌尔科技有限公司 | Audio control method, charging box and wireless earphone device |
| WO2020034544A1 (en) * | 2018-08-16 | 2020-02-20 | 歌尔股份有限公司 | Earphone wearing status detection method and device and earphone |
| CN111148283A (en) * | 2018-11-01 | 2020-05-12 | 本田技研工业株式会社 | Portable terminal and computer-readable storage medium |
| WO2020107290A1 (en) * | 2018-11-28 | 2020-06-04 | 深圳市欢太科技有限公司 | Audio output control method and apparatus, computer readable storage medium, and electronic device |
| CN111526248A (en) * | 2020-04-16 | 2020-08-11 | 维沃移动通信有限公司 | Audio output mode switching method and electronic device |
| CN112235673A (en) * | 2019-07-15 | 2021-01-15 | Oppo广东移动通信有限公司 | Earphone with in-ear detection function and in-ear detection method thereof |
| CN112468644A (en) * | 2020-12-21 | 2021-03-09 | 深圳市爱都科技有限公司 | Smart watch and communication method of smart watch |
| CN112616106A (en) * | 2020-11-24 | 2021-04-06 | 广东思派康电子科技有限公司 | Automatic switching method of earphone conversation audio, computer readable storage medium and electronic system |
| CN112771889A (en) * | 2018-10-27 | 2021-05-07 | 深圳市欢太科技有限公司 | Audio channel replacing method and related equipment |
| CN113038325A (en) * | 2018-09-25 | 2021-06-25 | 深圳市汇顶科技股份有限公司 | Earphone and method for realizing wearing detection and touch operation |
| TWI740277B (en) * | 2019-11-19 | 2021-09-21 | 美律實業股份有限公司 | Earphone device |
| CN114554342A (en) * | 2022-02-10 | 2022-05-27 | 深圳市冠旭电子股份有限公司 | Earphone running state adjusting method and device, electronic equipment and storage medium |
| CN116132870A (en) * | 2023-02-10 | 2023-05-16 | 歌尔股份有限公司 | Dynamic mode switching method and device, earphone device and readable storage medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101790125A (en) * | 2008-11-24 | 2010-07-28 | 苹果公司 | Detecting the repositioning of an earphone using a microphone and associated action |
| CN203181183U (en) * | 2013-04-09 | 2013-09-04 | 北京兴科迪科技有限公司 | Earphone intelligently switching between headset mode and loudspeaker mode, and vehicle equipped with the earphone |
| CN103974158A (en) * | 2013-02-04 | 2014-08-06 | 联想(北京)有限公司 | Audio output device |
| CN104122982A (en) * | 2013-04-26 | 2014-10-29 | 联想(北京)有限公司 | Switching control method and electronic equipment |
| CN105474663A (en) * | 2013-08-13 | 2016-04-06 | 索尼公司 | Headphone-type acoustic device and method for controlling same |
-
2016
- 2016-10-18 CN CN201610906804.7A patent/CN107959903A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101790125A (en) * | 2008-11-24 | 2010-07-28 | 苹果公司 | Detecting the repositioning of an earphone using a microphone and associated action |
| CN103974158A (en) * | 2013-02-04 | 2014-08-06 | 联想(北京)有限公司 | Audio output device |
| CN203181183U (en) * | 2013-04-09 | 2013-09-04 | 北京兴科迪科技有限公司 | Earphone intelligently switching between headset mode and loudspeaker mode, and vehicle equipped with the earphone |
| CN104122982A (en) * | 2013-04-26 | 2014-10-29 | 联想(北京)有限公司 | Switching control method and electronic equipment |
| CN105474663A (en) * | 2013-08-13 | 2016-04-06 | 索尼公司 | Headphone-type acoustic device and method for controlling same |
Cited By (28)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106572417A (en) * | 2016-10-27 | 2017-04-19 | 腾讯科技(深圳)有限公司 | Sound effect control method and sound effect control device |
| CN106572417B (en) * | 2016-10-27 | 2019-11-05 | 腾讯科技(深圳)有限公司 | Sound effect control method and apparatus |
| CN109151697A (en) * | 2018-07-26 | 2019-01-04 | Oppo广东移动通信有限公司 | Microphone plugging detection method and related products |
| US11425519B2 (en) | 2018-07-26 | 2022-08-23 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method for detecting blocking of microphone and related products |
| WO2020019858A1 (en) * | 2018-07-26 | 2020-01-30 | Oppo广东移动通信有限公司 | Microphone hole clogging detection method and related products |
| CN109151697B (en) * | 2018-07-26 | 2020-03-27 | Oppo广东移动通信有限公司 | Microphone plugging detection method and related products |
| US11470416B2 (en) | 2018-08-16 | 2022-10-11 | Goertek, Inc. | Method and device for detecting earphone wearing status, and earphone |
| WO2020034544A1 (en) * | 2018-08-16 | 2020-02-20 | 歌尔股份有限公司 | Earphone wearing status detection method and device and earphone |
| US11412319B2 (en) | 2018-09-25 | 2022-08-09 | Shenzhen GOODIX Technology Co., Ltd. | Earbud and method for implementing wearing detection and touch operation |
| CN113038325B (en) * | 2018-09-25 | 2023-01-24 | 深圳市汇顶科技股份有限公司 | Earphone and method for realizing wearing detection and touch operation |
| CN113038325A (en) * | 2018-09-25 | 2021-06-25 | 深圳市汇顶科技股份有限公司 | Earphone and method for realizing wearing detection and touch operation |
| CN112771889A (en) * | 2018-10-27 | 2021-05-07 | 深圳市欢太科技有限公司 | Audio channel replacing method and related equipment |
| CN111148283B (en) * | 2018-11-01 | 2023-03-31 | 本田技研工业株式会社 | Portable terminal and computer-readable storage medium |
| CN111148283A (en) * | 2018-11-01 | 2020-05-12 | 本田技研工业株式会社 | Portable terminal and computer-readable storage medium |
| WO2020107290A1 (en) * | 2018-11-28 | 2020-06-04 | 深圳市欢太科技有限公司 | Audio output control method and apparatus, computer readable storage medium, and electronic device |
| CN109982208A (en) * | 2019-03-22 | 2019-07-05 | 维沃移动通信有限公司 | A kind of control method and terminal device |
| CN112235673B (en) * | 2019-07-15 | 2022-06-07 | Oppo广东移动通信有限公司 | Earphone with in-ear detection function and in-ear detection method thereof |
| CN112235673A (en) * | 2019-07-15 | 2021-01-15 | Oppo广东移动通信有限公司 | Earphone with in-ear detection function and in-ear detection method thereof |
| CN110691294A (en) * | 2019-09-29 | 2020-01-14 | 歌尔科技有限公司 | Audio control method, charging box and wireless earphone device |
| TWI740277B (en) * | 2019-11-19 | 2021-09-21 | 美律實業股份有限公司 | Earphone device |
| WO2021208893A1 (en) * | 2020-04-16 | 2021-10-21 | 维沃移动通信有限公司 | Audio output mode switching method and electronic device |
| CN111526248B (en) * | 2020-04-16 | 2021-08-24 | 维沃移动通信有限公司 | Audio output mode switching method and electronic device |
| CN111526248A (en) * | 2020-04-16 | 2020-08-11 | 维沃移动通信有限公司 | Audio output mode switching method and electronic device |
| CN112616106A (en) * | 2020-11-24 | 2021-04-06 | 广东思派康电子科技有限公司 | Automatic switching method of earphone conversation audio, computer readable storage medium and electronic system |
| CN112616106B (en) * | 2020-11-24 | 2022-11-18 | 广东思派康电子科技有限公司 | Automatic switching method of earphone conversation audio, computer readable storage medium and electronic system |
| CN112468644A (en) * | 2020-12-21 | 2021-03-09 | 深圳市爱都科技有限公司 | Smart watch and communication method of smart watch |
| CN114554342A (en) * | 2022-02-10 | 2022-05-27 | 深圳市冠旭电子股份有限公司 | Earphone running state adjusting method and device, electronic equipment and storage medium |
| CN116132870A (en) * | 2023-02-10 | 2023-05-16 | 歌尔股份有限公司 | Dynamic mode switching method and device, earphone device and readable storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107959903A (en) | Audio output switching method, feedback earphone wearing state method, apparatus and earphone | |
| CN110691294B (en) | Audio control method, charging box and wireless earphone device | |
| EP2190213B1 (en) | Detecting the repositioning of an earphone using a microphone and associated action | |
| US10630826B2 (en) | Information processing device | |
| CN103118191B (en) | Using control method and mobile terminal for iPhone wire control earphone | |
| US20060045304A1 (en) | Smart earphone systems devices and methods | |
| JP3116881U (en) | Bluetooth module sound source input / output device | |
| CN105491469A (en) | Method and system for controlling audio output mode based on wearing earphone state | |
| US20190327551A1 (en) | Wireless headphone system | |
| CN104661158A (en) | Stereophone, terminal and audio signal processing method of stereophone and terminal | |
| CN101938546A (en) | Earphone microphone detection method based on mobile phone and mobile phone | |
| WO2018201944A1 (en) | Apparatus control method and device | |
| CN109076273A (en) | Bluetooth microphone | |
| CN105554664A (en) | Headset based sound processing method and apparatus, and headset | |
| CN110913297B (en) | Composite earphone | |
| CN103813228A (en) | Earphones and activation method thereof | |
| CN208863048U (en) | A kind of wireless playing equipment and wear-type wireless headphone system | |
| WO2018201943A1 (en) | Device control method, device and system | |
| CN104254027A (en) | A method and system for using earphones compatible with round hole interface and USB interface | |
| CN103369419A (en) | Corded audio device | |
| CN105933816A (en) | Wireless headset, playing method and device of wireless headset, headset data line and playing equipment | |
| JP2002009918A (en) | Transmitter / receiver and receiver | |
| CN105657598B (en) | A kind of earphone control device suitable for user terminal | |
| CN205195931U (en) | Headset | |
| CN103856865A (en) | Electronic device integrating earphone and loudspeaker |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180424 |