[go: up one dir, main page]

CN113411702B - Sound channel configuration method and electronic equipment - Google Patents

Sound channel configuration method and electronic equipment Download PDF

Info

Publication number
CN113411702B
CN113411702B CN202010180920.1A CN202010180920A CN113411702B CN 113411702 B CN113411702 B CN 113411702B CN 202010180920 A CN202010180920 A CN 202010180920A CN 113411702 B CN113411702 B CN 113411702B
Authority
CN
China
Prior art keywords
signal
earphone
channel audio
audio signal
preset
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.)
Active
Application number
CN202010180920.1A
Other languages
Chinese (zh)
Other versions
CN113411702A (en
Inventor
温林涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010180920.1A priority Critical patent/CN113411702B/en
Publication of CN113411702A publication Critical patent/CN113411702A/en
Application granted granted Critical
Publication of CN113411702B publication Critical patent/CN113411702B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/01Input selection or mixing for amplifiers or loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2499/00Aspects covered by H04R or H04S not otherwise provided for in their subgroups
    • H04R2499/10General applications
    • H04R2499/11Transducers incorporated or for use in hand-held devices, e.g. mobile phones, PDA's, camera's

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Headphones And Earphones (AREA)

Abstract

本发明提供一种声道配置方法及电子设备,其中,所述声道配置方法应用于电子设备,包括:获取设置于耳机上的红外传感器的第一信号和角度检测传感器的第二信号;根据所述第一信号和所述第二信号判断所述耳机的佩戴位置是否与预设位置匹配;在所述佩戴位置与预设位置不匹配的情况下,为所述耳机的左耳机配置右声道音频信号,和/或,为所述耳机的右耳机配置左声道音频信号。本发明提供的技术方案解决了现有的电子设备不能识别耳机是否戴反的情况,造成用户听感体验较差的问题。

The present invention provides a channel configuration method and an electronic device, wherein the channel configuration method is applied to the electronic device, comprising: obtaining a first signal from an infrared sensor and a second signal from an angle detection sensor provided on an earphone; judging whether the wearing position of the earphone matches a preset position according to the first signal and the second signal; and configuring a right channel audio signal for the left earphone of the earphone and/or configuring a left channel audio signal for the right earphone of the earphone when the wearing position does not match the preset position. The technical solution provided by the present invention solves the problem that the existing electronic device cannot identify whether the earphone is worn upside down, resulting in a poor user listening experience.

Description

一种声道配置方法及电子设备A sound channel configuration method and electronic device

技术领域Technical Field

本发明涉及通信技术领域,尤其涉及一种声道配置方法及电子设备。The present invention relates to the field of communication technology, and in particular to a sound channel configuration method and electronic equipment.

背景技术Background technique

随着无线通讯技术日新月异的发展和市场的逐渐扩大,音频的无线传输技术,例如蓝牙传输技术,在无线通讯中的应用也越来越广泛。目前,电子设备通常会将音频文件解码为左右声道音频信息后再打包发送给耳机端,进而左耳机从中提取左声道音频信息,右耳机从中提取右声道音频信息,经过放大之后再播放出来。但是,用户可能会发生耳机戴反的情况,电子设备并不能识别耳机发生戴反的情况,导致左声道音频信息传输到了左耳机,右声道音频信息传输到了右耳机,给用户造成不好的听感体验。With the rapid development of wireless communication technology and the gradual expansion of the market, wireless audio transmission technology, such as Bluetooth transmission technology, is being used more and more widely in wireless communications. At present, electronic devices usually decode audio files into left and right channel audio information and then package them and send them to the earphone end. Then the left earphone extracts the left channel audio information and the right earphone extracts the right channel audio information, which are then amplified and played back. However, users may wear their earphones upside down, and electronic devices cannot recognize that the earphones are worn upside down, resulting in the left channel audio information being transmitted to the left earphone and the right channel audio information being transmitted to the right earphone, causing a bad listening experience for users.

发明内容Summary of the invention

本发明实施例提供一种声道配置方法及电子设备,以解决现有的电子设备不能识别耳机发生戴反的情况,造成用户听感体验较差的问题。The embodiments of the present invention provide a channel configuration method and an electronic device to solve the problem that the existing electronic devices cannot recognize that the earphones are worn upside down, resulting in a poor listening experience for the user.

为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved as follows:

第一方面,本发明实施例提供了一种声道配置方法,应用于电子设备,包括:In a first aspect, an embodiment of the present invention provides a channel configuration method, which is applied to an electronic device, including:

获取设置于耳机上的红外传感器的第一信号和角度检测传感器的第二信号;Acquire a first signal from an infrared sensor disposed on the headset and a second signal from an angle detection sensor;

根据所述第一信号和所述第二信号判断所述耳机的佩戴位置是否与预设位置匹配;determining whether the wearing position of the headset matches a preset position according to the first signal and the second signal;

在所述佩戴位置与预设位置不匹配的情况下,为所述耳机的左耳机配置右声道音频信号,和/或,为所述耳机的右耳机配置左声道音频信号。In a case where the wearing position does not match the preset position, a right channel audio signal is configured for the left earphone of the earphone, and/or a left channel audio signal is configured for the right earphone of the earphone.

第二方面,本发明实施例还提供了一种电子设备,包括:In a second aspect, an embodiment of the present invention further provides an electronic device, including:

获取模块,用于获取设置于耳机上的红外传感器的第一信号和角度检测传感器的第二信号;An acquisition module, used for acquiring a first signal from an infrared sensor provided on the headset and a second signal from an angle detection sensor;

判断模块,用于根据所述第一信号和所述第二信号判断所述耳机的佩戴位置是否与预设位置匹配;A judging module, configured to judge whether the wearing position of the headset matches a preset position according to the first signal and the second signal;

配置模块,用于在所述佩戴位置与预设位置不匹配的情况下,为所述耳机的左耳机配置右声道音频信号,和/或,为所述耳机的右耳机配置左声道音频信号。The configuration module is used to configure a right channel audio signal for the left earphone of the earphone when the wearing position does not match the preset position, and/or configure a left channel audio signal for the right earphone of the earphone.

第三方面,本发明实施例还提供了一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第一方面中所述的声道配置方法的步骤。In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the channel configuration method described in the first aspect are implemented.

第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如第一方面中所述的声道配置方法的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the channel configuration method described in the first aspect are implemented.

本发明实施例中,电子设备通过获取设置于耳机上的红外传感器的第一信号和角度检测传感器的第二信号,以根据所述第一信号和所述第二信号判断所述耳机的佩戴位置是否与预设位置匹配;并在所述佩戴位置与预设位置不匹配的情况下,为所述耳机的左耳机配置右声道音频信号,和/或,为所述耳机的右耳机配置左声道音频信号。这样,电子设备能够识别左右耳机是否戴反,并且,即使在耳机戴反的情况下,也无需用户进行更换,左耳听到的仍然是左声道音频,右耳听到的仍然是右声道音频,确保了用户的听感体验,也简化了用户操作。In an embodiment of the present invention, the electronic device obtains a first signal from an infrared sensor and a second signal from an angle detection sensor provided on the earphone, and determines whether the wearing position of the earphone matches the preset position according to the first signal and the second signal; and when the wearing position does not match the preset position, configures a right channel audio signal for the left earphone of the earphone, and/or configures a left channel audio signal for the right earphone of the earphone. In this way, the electronic device can identify whether the left and right earphones are worn reversely, and even when the earphones are worn reversely, the user does not need to replace them, the left ear still hears the left channel audio, and the right ear still hears the right channel audio, which ensures the user's listening experience and simplifies the user's operation.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

图1是本发明实施例提供的一种声道配置方法的流程图;FIG1 is a flow chart of a channel configuration method provided by an embodiment of the present invention;

图2是耳机佩戴于用户耳朵的场景示意图;FIG2 is a schematic diagram of a scenario in which an earphone is worn on a user's ear;

图3是本发明实施例提供的一种电子设备的结构图;FIG3 is a structural diagram of an electronic device provided by an embodiment of the present invention;

图4是本发明实施例提供的另一种电子设备的结构图。FIG. 4 is a structural diagram of another electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

请参见图1,图1是本发明实施例提供的一种声道配置方法的流程图,如图1所示,所述声道配置方法包括以下步骤:Please refer to FIG. 1, which is a flow chart of a channel configuration method provided by an embodiment of the present invention. As shown in FIG. 1, the channel configuration method includes the following steps:

步骤101、获取设置于耳机上的红外传感器的第一信号和角度检测传感器的第二信号。Step 101: Acquire a first signal from an infrared sensor disposed on the earphone and a second signal from an angle detection sensor.

本发明实施例所提供的声道配置方法应用于电子设备,所述电子设备可以是耳机,或者也可以是能够与耳机实现连接的音频播放设备,如手机、平板电脑、笔记本计算机、可穿戴设备等。The channel configuration method provided in the embodiment of the present invention is applied to an electronic device, which may be a headset, or an audio playback device that can be connected to the headset, such as a mobile phone, a tablet computer, a notebook computer, a wearable device, etc.

作为一种具体的实施方式,本发明实施例将以所述电子设备为手机进行说明,所述手机与耳机无线连接,例如可以是蓝牙连接。其中,所述红外传感器和所述角度检测传感器设置于所述左耳机,和/或,所述红外传感器和所述角度检测传感器设置于所述右耳机。也就是说,所述红外传感器和角度检测传感器可以是都设置在左耳机,或者也可以是都设置在右耳机,当然,也可以是左耳机和右耳机都设置有红外传感器和角度检测传感器。As a specific implementation, the embodiment of the present invention will be described with the electronic device being a mobile phone, and the mobile phone is wirelessly connected to the earphone, for example, it can be a Bluetooth connection. Among them, the infrared sensor and the angle detection sensor are arranged on the left earphone, and/or, the infrared sensor and the angle detection sensor are arranged on the right earphone. That is to say, the infrared sensor and the angle detection sensor can be both arranged on the left earphone, or both arranged on the right earphone. Of course, both the left earphone and the right earphone can be provided with the infrared sensor and the angle detection sensor.

本发明实施例中,在手机与耳机建立无线连接的情况下,手机获取设置于耳机上的红外传感器的第一信号和角度检测传感器的第二信号。例如,手机可以是周期性地检测红外传感器的第一信号和角度检测传感器的第二信号。其中,所述红外传感器和角度检测传感器的工作原理可以是参照相关技术,本实施例对此不做赘述。In the embodiment of the present invention, when the mobile phone establishes a wireless connection with the headset, the mobile phone obtains the first signal of the infrared sensor and the second signal of the angle detection sensor provided on the headset. For example, the mobile phone may periodically detect the first signal of the infrared sensor and the second signal of the angle detection sensor. The working principle of the infrared sensor and the angle detection sensor may refer to the relevant technology, which is not described in detail in this embodiment.

步骤102、根据所述第一信号和所述第二信号判断所述耳机的佩戴位置是否与预设位置匹配。Step 102: Determine whether the wearing position of the headset matches a preset position according to the first signal and the second signal.

其中,所述预设位置是指所述耳机的左耳机佩戴于用户的左耳,所述耳机的右耳机佩戴于用户的右耳。也就是说,手机根据获取到的红外传感器的第一信号和角度检测传感器的第二信号,判断耳机的左耳机是否佩戴于用户的左耳,右耳机是否佩戴于用户的右耳。The preset position refers to that the left earphone of the headset is worn on the left ear of the user, and the right earphone of the headset is worn on the right ear of the user. In other words, the mobile phone determines whether the left earphone of the headset is worn on the left ear of the user, and whether the right earphone is worn on the right ear of the user according to the first signal of the infrared sensor and the second signal of the angle detection sensor obtained.

可选的,所述步骤102具体可以包括:Optionally, step 102 may specifically include:

若在预设时长内接收到所述第一信号,所述第二信号指示所述耳机的朝向与预设方向相同的情况下,则判定所述佩戴位置与预设位置匹配;If the first signal is received within a preset time period, and the second signal indicates that the orientation of the headset is the same as the preset direction, then it is determined that the wearing position matches the preset position;

若在所述预设时长内未接收到所述第一信号,所述第二信号指示所述耳机的朝向与所述预设方向相同的情况下,则判定所述佩戴位置与所述预设位置不匹配;If the first signal is not received within the preset time period, and the second signal indicates that the orientation of the headset is the same as the preset direction, it is determined that the wearing position does not match the preset position;

若在所述预设时长内接收到所述第一信号,所述第二信号指示所述耳机的朝向与所述预设方向相反的情况下,则判定所述佩戴位置与所述预设位置不匹配;If the first signal is received within the preset time period, and the second signal indicates that the orientation of the headset is opposite to the preset direction, it is determined that the wearing position does not match the preset position;

若在所述预设时长内未接收到所述第一信号,所述第二信号指示所述耳机的朝向与所述预设方向相反的情况下,则判定所述佩戴位置与所述预设位置匹配。If the first signal is not received within the preset time period, and the second signal indicates that the orientation of the headset is opposite to the preset direction, it is determined that the wearing position matches the preset position.

本发明实施例中,所述红外传感器和角度检测传感器均设置在耳机上,当耳机佩戴于用户耳朵上时,因耳机佩戴位置的不同,红外传感器发射的信号有可能会被耳朵反射,当然也可能不会被耳朵反射。可以理解地,人的耳朵是非对称的,耳朵包括耳屏、对耳屏、耳轮等构造;耳机佩戴于耳朵后,耳机的一部分是外露的,可以是在外露的部分上安装红外传感器。例如,假设所述耳机的左耳机上设置有红外传感器,当所述左耳机佩戴于用户左耳时,红外传感器是外露的,那么红外传感器发射的信号不会被耳朵反射;请参照图2,若左耳机20佩戴于用户右耳10时,红外传感器21不是处于外露的状态,此时红外传感器21发射的信号会先触碰到耳朵10(例如耳朵的耳轮)再被反射出去。这样,手机可以通过接收到红外传感器的信号的时间,来判断左耳机是佩戴于左耳还是右耳。In the embodiment of the present invention, the infrared sensor and the angle detection sensor are both arranged on the earphone. When the earphone is worn on the ear of the user, the signal emitted by the infrared sensor may be reflected by the ear due to the different wearing positions of the earphone, or may not be reflected by the ear. It can be understood that the human ear is asymmetrical, and the ear includes structures such as the tragus, the antitragus, and the helix. After the earphone is worn on the ear, a part of the earphone is exposed, and the infrared sensor may be installed on the exposed part. For example, assuming that an infrared sensor is arranged on the left earphone of the earphone, when the left earphone is worn on the left ear of the user, the infrared sensor is exposed, and the signal emitted by the infrared sensor will not be reflected by the ear; please refer to Figure 2, if the left earphone 20 is worn on the right ear 10 of the user, the infrared sensor 21 is not in an exposed state, and the signal emitted by the infrared sensor 21 will first touch the ear 10 (for example, the helix of the ear) and then be reflected. In this way, the mobile phone can judge whether the left earphone is worn on the left ear or the right ear by the time when the signal from the infrared sensor is received.

可以理解的,设置于耳机上的角度检测传感器能够用于检测耳机的角度。例如,所述角度检测传感器设置于左耳机,当左耳机佩戴于用户的左耳时,角度检测传感器检测到的角度与左耳机佩戴于用户右耳时检测到的角度肯定是不同的。这样,手机可以通过接收到角度检测传感器检测到的角度来判断耳机的朝向。可选的,所述角度检测传感器可以是重力传感器、加速度传感器、角度传感器等。It is understandable that the angle detection sensor provided on the earphone can be used to detect the angle of the earphone. For example, the angle detection sensor is provided on the left earphone. When the left earphone is worn on the left ear of the user, the angle detected by the angle detection sensor is definitely different from the angle detected when the left earphone is worn on the right ear of the user. In this way, the mobile phone can determine the orientation of the earphone by receiving the angle detected by the angle detection sensor. Optionally, the angle detection sensor can be a gravity sensor, an acceleration sensor, an angle sensor, etc.

以下,将以所述红外传感器和角度检测传感器设置于左耳机,所述红外传感器传输的第一信号未被耳朵反射而到达手机的时长为预设时长;所述左耳机佩戴于用户左耳,角度检测传感器检测到的角度(以左耳机顶点和左耳机中心的连线延伸方向与重力方向之间的角度为例)小于90度时,左耳机顶部的朝向(朝向上方)为预设方向,对上述四种判断耳机佩戴位置的实施方式进行具体说明。In the following, the infrared sensor and the angle detection sensor are set on the left earphone, and the time it takes for the first signal transmitted by the infrared sensor to reach the mobile phone without being reflected by the ear is a preset time; the left earphone is worn on the user's left ear, and when the angle detected by the angle detection sensor (taking the angle between the extension direction of the line connecting the left earphone vertex and the center of the left earphone and the direction of gravity as an example) is less than 90 degrees, the direction of the top of the left earphone (towards upward) is the preset direction, and the above four implementation methods for determining the wearing position of the earphone are specifically described.

在上述第一种实施方式中,若手机在预设时长内接收到红外传感器的第一信号,且接收到的角度检测传感器的第二信号指示左耳机的朝向与预设方向相同时,说明此时红外传感器传输的第一信号未经耳朵反射,所述左耳机的顶部朝向上方,则判定左耳机的佩戴位置与预设位置匹配,也就是左耳机佩戴于用户的左耳上。In the first embodiment mentioned above, if the mobile phone receives the first signal of the infrared sensor within the preset time length, and the received second signal of the angle detection sensor indicates that the direction of the left earphone is the same as the preset direction, it means that the first signal transmitted by the infrared sensor at this time has not been reflected by the ear, and the top of the left earphone is facing upward, then it is determined that the wearing position of the left earphone matches the preset position, that is, the left earphone is worn on the user's left ear.

在上述第二种实施方式中,若手机在所述预设时长内未接收到红外传感器传输的第一信号,所述第二信号指示左耳机的朝向与所述预设方向相同,说明此时红外传感器传输的第一信号是经耳朵反射后传输到手机的,但左耳机的顶部朝向上方;则可以判定出左耳机是佩戴于用户的右耳上。In the above-mentioned second embodiment, if the mobile phone does not receive the first signal transmitted by the infrared sensor within the preset time period, the second signal indicates that the direction of the left earphone is the same as the preset direction, which means that the first signal transmitted by the infrared sensor is transmitted to the mobile phone after reflection from the ear, but the top of the left earphone is facing upwards; it can be determined that the left earphone is worn on the user's right ear.

在上述第三种实施方式中,若手机在所述预设时长内接收到红外传感器传输的第一信号,但接收到的角度检测传感器的第二信号指示所述耳机的朝向与所述预设方向相反,说明此时红外传感器传输的第一信号未经耳朵反射,但是左耳机的顶部朝下,则可以判定左耳机是佩戴于用户的右耳上。In the above-mentioned third embodiment, if the mobile phone receives the first signal transmitted by the infrared sensor within the preset time period, but the second signal received from the angle detection sensor indicates that the orientation of the earphone is opposite to the preset direction, it means that the first signal transmitted by the infrared sensor is not reflected by the ear, but the top of the left earphone is facing downward, then it can be determined that the left earphone is worn on the user's right ear.

在上述第四种实施方式中,若手机在所述预设时长内未接收到红外传感器传输的第一信号,且接收到的角度检测传感器的第二信号指示所述耳机的朝向与所述预设方向相反,说明此时红外传感器传输的第一信号是经耳朵反射后传输到手机的,但是左耳机的顶部朝下,则判定此时左耳机是佩戴于用户的左耳上。In the above-mentioned fourth embodiment, if the mobile phone does not receive the first signal transmitted by the infrared sensor within the preset time period, and the received second signal from the angle detection sensor indicates that the orientation of the earphone is opposite to the preset direction, it means that the first signal transmitted by the infrared sensor is transmitted to the mobile phone after reflection through the ear, but the top of the left earphone is facing downward, then it is determined that the left earphone is worn on the user's left ear at this time.

这样,通过设置于耳机上的红外传感器传输的第一信号及角度检测传感器传输的第二信号,也就能够判定出耳机当前的佩戴位置是否与预设位置匹配。需要说明的是,上述实施方式是以左耳机为例进行的说明,但右耳机同样可以适用上述的实施方式,在此不做赘述。In this way, through the first signal transmitted by the infrared sensor arranged on the earphone and the second signal transmitted by the angle detection sensor, it is possible to determine whether the current wearing position of the earphone matches the preset position. It should be noted that the above implementation is described with the left earphone as an example, but the right earphone can also be applied to the above implementation, which will not be described in detail here.

可选的,当手机检测到耳机的佩戴位置与预设位置不匹配时,可以是向所述耳机输出提示信息,例如可以是语音信息,以提示用户耳机的佩戴位置不正确,提醒用户更换左右耳机的佩戴位置,保障用户的听感体验。Optionally, when the mobile phone detects that the wearing position of the earphone does not match the preset position, it can output a prompt message to the earphone, such as a voice message, to prompt the user that the wearing position of the earphone is incorrect, and remind the user to change the wearing position of the left and right earphones to ensure the user's listening experience.

步骤103、在所述佩戴位置与预设位置不匹配的情况下,为所述耳机的左耳机配置右声道音频信号,和/或,为所述耳机的右耳机配置左声道音频信号。Step 103: When the wearing position does not match the preset position, configure a right channel audio signal for the left earphone of the earphone, and/or configure a left channel audio signal for the right earphone of the earphone.

可以理解地,所述耳机的佩戴位置与预设位置不匹配,可以是指左耳机佩戴于用户的右耳上,和/或右耳机佩戴于用户的左耳上。在这种情况下,如果继续向左耳机传输左声道音频信号,向右耳机传输右声道音频信号,则会影响用户的听感体验。It is understandable that the wearing position of the earphone does not match the preset position, which may mean that the left earphone is worn on the user's right ear and/or the right earphone is worn on the user's left ear. In this case, if the left channel audio signal continues to be transmitted to the left earphone and the right channel audio signal is transmitted to the right earphone, the user's listening experience will be affected.

本发明实施例中,若耳机的佩戴位置与预设位置不匹配,则为耳机的左耳机配置右声道音频信号,和/或,为右耳机配置左声道音频信号。这样,即使用户将左右耳机的佩戴反了,无需用户进行更换,左耳听到的仍然是左声道音频,右耳听到的仍然是右声道音频,确保了用户的听感体验,也简化了用户操作,更方便用户使用耳机。In the embodiment of the present invention, if the wearing position of the earphone does not match the preset position, the right channel audio signal is configured for the left earphone of the earphone, and/or the left channel audio signal is configured for the right earphone. In this way, even if the user wears the left and right earphones in reverse, the user does not need to change them, and the left ear still hears the left channel audio, and the right ear still hears the right channel audio, which ensures the user's listening experience, simplifies the user's operation, and makes it more convenient for the user to use the earphone.

在一种可选的实施方式中,所述电子设备为音频传输装置,所述步骤103可以包括:In an optional implementation, the electronic device is an audio transmission device, and step 103 may include:

在所述佩戴位置与预设位置不匹配的情况下,获取左声道音频信号和右声道音频信号;When the wearing position does not match the preset position, obtaining a left channel audio signal and a right channel audio signal;

将所述左声道音频信号和/或所述右声道音频信号按第一编码序列进行编码;Encoding the left channel audio signal and/or the right channel audio signal according to a first coding sequence;

其中,在所述佩戴位置与预设位置匹配的情况下,所述左声道音频信号和所述右声道音频信号按第二编码序列编码;所述第一编码序列中的左声道音频信号与所述第二编码序列中的右声道音频信号对应,所述第一编码序列中的右声道音频信号与所述第二编码序列中的左声道音频信号对应。Among them, when the wearing position matches the preset position, the left channel audio signal and the right channel audio signal are encoded according to a second coding sequence; the left channel audio signal in the first coding sequence corresponds to the right channel audio signal in the second coding sequence, and the right channel audio signal in the first coding sequence corresponds to the left channel audio signal in the second coding sequence.

可以理解地,所述第一编码序列中的左声道音频信号和右声道音频信号,与所述第二编码序列中的左声道音频信号和右声道音频信号正好是相反的。It can be understood that the left channel audio signal and the right channel audio signal in the first coding sequence are exactly opposite to the left channel audio signal and the right channel audio signal in the second coding sequence.

例如,以所述音频传输设备为手机为例,手机在向耳机传输音频信号时,会将音频信号解码为左声道音频信号和右声道音频信号后,再按照一定的编码规则进行编码;在第一编码序列中,左声道音频信号和右声道音频信号可以是按照左、右、左、右、左、右……的顺序进行编码,则在第二编码序列中,左声道音频信号和右声道音频信号按照右、左、右、左、右、左……的顺序进行编码。这样,在左右耳机的佩戴位置与预设位置不匹配的情况下,手机能够更换左右声道音频信号的编码顺序,进而以为左耳机配置右声道音频信号,为右耳机配置左声道音频信号,以确保用户的听感体验。For example, taking the audio transmission device as a mobile phone, when the mobile phone transmits an audio signal to the earphone, it will decode the audio signal into a left channel audio signal and a right channel audio signal, and then encode it according to a certain encoding rule; in the first encoding sequence, the left channel audio signal and the right channel audio signal can be encoded in the order of left, right, left, right, left, right..., then in the second encoding sequence, the left channel audio signal and the right channel audio signal are encoded in the order of right, left, right, left, right, left... In this way, when the wearing position of the left and right earphones does not match the preset position, the mobile phone can change the encoding order of the left and right channel audio signals, and then configure the right channel audio signal for the left earphone and the left channel audio signal for the right earphone to ensure the user's listening experience.

需要说明的是,所述音频传输方法也可以是应用于耳机,在耳机检测到左耳机和/或右耳机的佩戴位置与预设位置不匹配时,则耳机在接收到音频传输装置传输的左声道音频信号和右声道音频信号后,为左耳机配置右声道音频信号,为右耳机配置左声道音频信号。例如,所述耳机的左耳机作为主耳机,接收音频传输装置传输的音频信号,则左耳机将其中的左声道音频信号发送给右耳机。It should be noted that the audio transmission method can also be applied to headphones. When the headphones detect that the wearing position of the left headphone and/or the right headphone does not match the preset position, the headphones configure the right channel audio signal for the left headphone and the left channel audio signal for the right headphone after receiving the left channel audio signal and the right channel audio signal transmitted by the audio transmission device. For example, the left headphone of the headphones serves as the main headphone and receives the audio signal transmitted by the audio transmission device, and the left headphone sends the left channel audio signal therein to the right headphone.

本发明实施例中,电子设备通过获取设置于耳机上的红外传感器的第一信号和角度检测传感器的第二信号,以根据所述第一信号和所述第二信号判断所述耳机的佩戴位置是否与预设位置匹配;并在所述佩戴位置与预设位置不匹配的情况下,为所述耳机的左耳机配置右声道音频信号,和/或,为所述耳机的右耳机配置左声道音频信号。这样,即使在耳机佩戴位置不对的情况下,也无需用户进行更换,左耳听到的仍然是左声道音频,右耳听到的仍然是右声道音频,确保了用户的听感体验,也简化了用户操作。In an embodiment of the present invention, the electronic device obtains a first signal from an infrared sensor and a second signal from an angle detection sensor disposed on the earphone, and determines whether the wearing position of the earphone matches the preset position according to the first signal and the second signal; and when the wearing position does not match the preset position, the left earphone of the earphone is configured with a right channel audio signal, and/or the right earphone of the earphone is configured with a left channel audio signal. In this way, even if the earphone is worn in the wrong position, the user does not need to change it, and the left ear still hears the left channel audio, and the right ear still hears the right channel audio, which ensures the user's listening experience and simplifies the user's operation.

请参见图3,图3是本发明实施例提供的一种电子设备的结构图,如图3所示,所述电子设备300包括:Please refer to FIG. 3 , which is a structural diagram of an electronic device provided by an embodiment of the present invention. As shown in FIG. 3 , the electronic device 300 includes:

获取模块301,用于获取设置于耳机上的红外传感器的第一信号和角度检测传感器的第二信号;An acquisition module 301 is used to acquire a first signal from an infrared sensor and a second signal from an angle detection sensor provided on the headset;

判断模块302,用于根据所述第一信号和所述第二信号判断所述耳机的佩戴位置是否与预设位置匹配;A judging module 302, configured to judge whether the wearing position of the headset matches a preset position according to the first signal and the second signal;

配置模块303,用于在所述佩戴位置与预设位置不匹配的情况下,为所述耳机的左耳机配置右声道音频信号,和/或,为所述耳机的右耳机配置左声道音频信号。The configuration module 303 is used to configure a right channel audio signal for the left earphone of the earphone and/or configure a left channel audio signal for the right earphone of the earphone when the wearing position does not match the preset position.

可选的,所述判断模块302还用于:Optionally, the judging module 302 is further configured to:

若在预设时长内接收到所述第一信号,所述第二信号指示所述耳机的朝向与预设方向相同的情况下,则判定所述佩戴位置与预设位置匹配;If the first signal is received within a preset time period, and the second signal indicates that the orientation of the headset is the same as the preset direction, then it is determined that the wearing position matches the preset position;

若在所述预设时长内未接收到所述第一信号,所述第二信号指示所述耳机的朝向与所述预设方向相同的情况下,则判定所述佩戴位置与所述预设位置不匹配;If the first signal is not received within the preset time period, and the second signal indicates that the orientation of the headset is the same as the preset direction, it is determined that the wearing position does not match the preset position;

若在所述预设时长内接收到所述第一信号,所述第二信号指示所述耳机的朝向与所述预设方向相反的情况下,则判定所述佩戴位置与所述预设位置不匹配;If the first signal is received within the preset time period, and the second signal indicates that the orientation of the headset is opposite to the preset direction, it is determined that the wearing position does not match the preset position;

若在所述预设时长内未接收到所述第一信号,所述第二信号指示所述耳机的朝向与所述预设方向相反的情况下,则判定所述佩戴位置与所述预设位置匹配。If the first signal is not received within the preset time period, and the second signal indicates that the orientation of the headset is opposite to the preset direction, it is determined that the wearing position matches the preset position.

可选的,所述电子设备300为耳机,所述红外传感器和所述角度检测传感器设置于所述左耳机,和/或,所述红外传感器和所述角度检测传感器设置于所述右耳机。Optionally, the electronic device 300 is an earphone, and the infrared sensor and the angle detection sensor are arranged in the left earphone, and/or the infrared sensor and the angle detection sensor are arranged in the right earphone.

可选的,所述电子设备300为音频传输装置,所述配置模块303还用于:Optionally, the electronic device 300 is an audio transmission device, and the configuration module 303 is further used to:

在所述佩戴位置与预设位置不匹配的情况下,获取左声道音频信号和右声道音频信号;When the wearing position does not match the preset position, obtaining a left channel audio signal and a right channel audio signal;

将所述左声道音频信号和/或所述右声道音频信号按第一编码序列进行编码;Encoding the left channel audio signal and/or the right channel audio signal according to a first coding sequence;

其中,在所述佩戴位置与预设位置匹配的情况下,所述左声道音频信号和所述右声道音频信号按第二编码序列编码;Wherein, when the wearing position matches the preset position, the left channel audio signal and the right channel audio signal are encoded according to a second encoding sequence;

所述第一编码序列中的左声道音频信号与所述第二编码序列中的右声道音频信号对应,所述第一编码序列中的右声道音频信号与所述第二编码序列中的左声道音频信号对应。The left channel audio signal in the first coding sequence corresponds to the right channel audio signal in the second coding sequence, and the right channel audio signal in the first coding sequence corresponds to the left channel audio signal in the second coding sequence.

可选的,所述角度检测传感器为重力传感器、加速度传感器和角度传感器中的任意一种。Optionally, the angle detection sensor is any one of a gravity sensor, an acceleration sensor and an angle sensor.

需要说明的是,电子设备300能够实现图1所述的声道配置方法实施例的各个过程,并能达到相同的技术效果,为避免重复,这里不再赘述。It should be noted that the electronic device 300 can implement each process of the channel configuration method embodiment described in FIG. 1 and can achieve the same technical effect. To avoid repetition, it will not be described again here.

本发明实施例中,电子设备300通过获取设置于耳机上的红外传感器的第一信号和角度检测传感器的第二信号,以根据所述第一信号和所述第二信号判断所述耳机的佩戴位置是否与预设位置匹配;并在所述佩戴位置与预设位置不匹配的情况下,为所述耳机的左耳机配置右声道音频信号,和/或,为所述耳机的右耳机配置左声道音频信号。这样,电子设备300能够识别左右耳机是否戴反,并且,即使在耳机佩戴位置不对的情况下,也无需用户进行更换,左耳听到的仍然是左声道音频,右耳听到的仍然是右声道音频,确保了用户的听感体验,也简化了用户操作。In the embodiment of the present invention, the electronic device 300 obtains a first signal from an infrared sensor and a second signal from an angle detection sensor provided on the earphone, and determines whether the wearing position of the earphone matches the preset position according to the first signal and the second signal; and when the wearing position does not match the preset position, configures a right channel audio signal for the left earphone of the earphone, and/or configures a left channel audio signal for the right earphone of the earphone. In this way, the electronic device 300 can identify whether the left and right earphones are worn reversely, and even when the earphones are worn in the wrong position, the user does not need to replace them, the left ear still hears the left channel audio, and the right ear still hears the right channel audio, which ensures the user's listening experience and simplifies the user's operation.

请参照图4,图4为实现本发明实施例的另一种电子设备的结构图,电子设备400能够实现图1所述的声道配置方法实施例的各个过程,并能达到相同的技术效果。如图4所示,电子设备400包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、处理器410、以及电源411等部件。本领域技术人员可以理解,图4中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。Please refer to FIG. 4, which is a structural diagram of another electronic device implementing an embodiment of the present invention. The electronic device 400 can implement each process of the channel configuration method embodiment described in FIG. 1, and can achieve the same technical effect. As shown in FIG. 4, the electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410, and a power supply 411. It can be understood by those skilled in the art that the electronic device structure shown in FIG. 4 does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently. In an embodiment of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.

其中,处理器410,用于:The processor 410 is used for:

获取设置于耳机上的红外传感器的第一信号和角度检测传感器的第二信号;Acquire a first signal from an infrared sensor disposed on the headset and a second signal from an angle detection sensor;

根据所述第一信号和所述第二信号判断所述耳机的佩戴位置是否与预设位置匹配;determining whether the wearing position of the headset matches a preset position according to the first signal and the second signal;

在所述佩戴位置与预设位置不匹配的情况下,为所述耳机的左耳机配置右声道音频信号,和/或,为所述耳机的右耳机配置左声道音频信号。In a case where the wearing position does not match the preset position, a right channel audio signal is configured for the left earphone of the earphone, and/or a left channel audio signal is configured for the right earphone of the earphone.

可选的,处理器410,还用于:Optionally, the processor 410 is further configured to:

若在预设时长内接收到所述第一信号,所述第二信号指示所述耳机的朝向与预设方向相同的情况下,则判定所述佩戴位置与预设位置匹配;If the first signal is received within a preset time period, and the second signal indicates that the orientation of the headset is the same as the preset direction, then it is determined that the wearing position matches the preset position;

若在所述预设时长内未接收到所述第一信号,所述第二信号指示所述耳机的朝向与所述预设方向相同的情况下,则判定所述佩戴位置与所述预设位置不匹配;If the first signal is not received within the preset time period, and the second signal indicates that the orientation of the headset is the same as the preset direction, it is determined that the wearing position does not match the preset position;

若在所述预设时长内接收到所述第一信号,所述第二信号指示所述耳机的朝向与所述预设方向相反的情况下,则判定所述佩戴位置与所述预设位置不匹配;If the first signal is received within the preset time period, and the second signal indicates that the orientation of the headset is opposite to the preset direction, it is determined that the wearing position does not match the preset position;

若在所述预设时长内未接收到所述第一信号,所述第二信号指示所述耳机的朝向与所述预设方向相反的情况下,则判定所述佩戴位置与所述预设位置匹配。If the first signal is not received within the preset time period, and the second signal indicates that the orientation of the headset is opposite to the preset direction, it is determined that the wearing position matches the preset position.

可选的,电子设备400为耳机,所述红外传感器和所述角度检测传感器设置于所述左耳机,和/或,所述红外传感器和所述角度检测传感器设置于所述右耳机。Optionally, the electronic device 400 is an earphone, and the infrared sensor and the angle detection sensor are arranged in the left earphone, and/or the infrared sensor and the angle detection sensor are arranged in the right earphone.

可选的,电子设备400为音频传输装置,处理器410,还用于:Optionally, the electronic device 400 is an audio transmission device, and the processor 410 is further configured to:

在所述佩戴位置与预设位置不匹配的情况下,获取左声道音频信号和右声道音频信号;When the wearing position does not match the preset position, obtaining a left channel audio signal and a right channel audio signal;

将所述左声道音频信号和/或所述右声道音频信号按第一编码序列进行编码;Encoding the left channel audio signal and/or the right channel audio signal according to a first coding sequence;

其中,在所述佩戴位置与预设位置匹配的情况下,所述左声道音频信号和所述右声道音频信号按第二编码序列编码;Wherein, when the wearing position matches the preset position, the left channel audio signal and the right channel audio signal are encoded according to a second encoding sequence;

所述第一编码序列中的左声道音频信号与所述第二编码序列中的右声道音频信号对应,所述第一编码序列中的右声道音频信号与所述第二编码序列中的左声道音频信号对应。The left channel audio signal in the first coding sequence corresponds to the right channel audio signal in the second coding sequence, and the right channel audio signal in the first coding sequence corresponds to the left channel audio signal in the second coding sequence.

可选的,所述角度检测传感器为重力传感器、加速度传感器和角度传感器中的任意一种。Optionally, the angle detection sensor is any one of a gravity sensor, an acceleration sensor and an angle sensor.

本发明实施例中,电子设备400通过获取设置于耳机上的红外传感器的第一信号和角度检测传感器的第二信号,以根据所述第一信号和所述第二信号判断所述耳机的佩戴位置是否与预设位置匹配;并在所述佩戴位置与预设位置不匹配的情况下,为所述耳机的左耳机配置右声道音频信号,和/或,为所述耳机的右耳机配置左声道音频信号。这样,电子设备400能够识别左右耳机是否戴反,并且,即使在耳机佩戴位置不对的情况下,也无需用户进行更换,左耳听到的仍然是左声道音频,右耳听到的仍然是右声道音频,确保了用户的听感体验,也简化了用户操作。In an embodiment of the present invention, the electronic device 400 obtains a first signal from an infrared sensor and a second signal from an angle detection sensor disposed on the earphone, and determines whether the wearing position of the earphone matches a preset position according to the first signal and the second signal; and when the wearing position does not match the preset position, configures a right channel audio signal for the left earphone of the earphone, and/or configures a left channel audio signal for the right earphone of the earphone. In this way, the electronic device 400 can identify whether the left and right earphones are worn reversely, and even when the earphones are worn in the wrong position, the user does not need to replace them, the left ear still hears the left channel audio, and the right ear still hears the right channel audio, which ensures the user's listening experience and simplifies user operation.

应理解的是,本发明实施例中,射频单元401可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器410处理;另外,将上行的数据发送给基站。通常,射频单元401包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元401还可以通过无线通信系统与网络和其他设备通信。It should be understood that in the embodiment of the present invention, the radio frequency unit 401 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 410 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 401 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.

电子设备400通过网络模块402为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device 400 provides the user with wireless broadband Internet access through the network module 402, such as helping the user to send and receive emails, browse web pages, and access streaming media.

音频输出单元403可以将射频单元401或网络模块402接收的或者在存储器409中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元403还可以提供与电子设备400执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元403包括扬声器、蜂鸣器以及受话器等。The audio output unit 403 can convert the audio data received by the RF unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output it as sound. Moreover, the audio output unit 403 can also provide audio output related to a specific function performed by the electronic device 400 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, etc.

输入单元404用于接收音频或视频信号。输入单元404可以包括图形处理器(Graphics Processing Unit,GPU)4041和麦克风4042,图形处理器4041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图像或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元406上。经图形处理器4041处理后的图像帧可以存储在存储器409(或其它计算机可读存储介质)中或者经由射频单元401或网络模块402进行发送。麦克风4042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元401发送到移动通信基站的格式输出。The input unit 404 is used to receive audio or video signals. The input unit 404 may include a graphics processor (GPU) 4041 and a microphone 4042, and the graphics processor 4041 processes the image data of a static image or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 406. The image frame processed by the graphics processor 4041 can be stored in the memory 409 (or other computer-readable storage medium) or sent via the radio frequency unit 401 or the network module 402. The microphone 4042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode.

电子设备400还包括至少一种传感器405,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板4061的亮度,接近传感器可在电子设备400移动到耳边时,关闭显示面板4061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器405还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 4061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 4061 and/or the backlight when the electronic device 400 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 405 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.

显示单元406用于显示由用户输入的信息或提供给用户的信息。显示单元406可包括显示面板4061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板4061。The display unit 406 is used to display information input by the user or information provided to the user. The display unit 406 may include a display panel 4061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

用户输入单元407可用于接收输入的数字或字符信息,以及产生与电子设备400的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元407包括触控面板4071以及其他输入设备4072。触控面板4071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板4071上或在触控面板4071附近的操作)。触控面板4071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器410,接收处理器410发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板4071。除了触控面板4071,用户输入单元407还可以包括其他输入设备4072。具体地,其他输入设备4072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 407 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the electronic device 400. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. The touch panel 4071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 4071 or near the touch panel 4071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 4071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact point coordinates, and then sends it to the processor 410, receives the command sent by the processor 410 and executes it. In addition, the touch panel 4071 can be implemented in various types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 4071, the user input unit 407 may also include other input devices 4072. Specifically, other input devices 4072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail here.

进一步的,触控面板4071可覆盖在显示面板4061上,当触控面板4071检测到在其上或附近的触摸操作后,传送给处理器410以确定触摸事件的类型,随后处理器410根据触摸事件的类型在显示面板4061上提供相应的视觉输出。虽然在图4中,触控面板4071与显示面板4061是作为两个独立的部件来实现电子设备400的输入和输出功能,但是在某些实施例中,可以将触控面板4071与显示面板4061集成而实现电子设备400的输入和输出功能,具体此处不做限定。Further, the touch panel 4071 may be covered on the display panel 4061. When the touch panel 4071 detects a touch operation on or near it, it is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in FIG. 4 , the touch panel 4071 and the display panel 4061 are used as two independent components to implement the input and output functions of the electronic device 400, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device 400, which is not limited to the specifics herein.

接口单元408为外部装置与电子设备400连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元408可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备400内的一个或多个元件或者可以用于在电子设备400和外部装置之间传输数据。The interface unit 408 is an interface for connecting an external device to the electronic device 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input/output (I/O) port, a video I/O port, a headphone port, etc. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 400 or may be used to transmit data between the electronic device 400 and an external device.

存储器409可用于存储软件程序以及各种数据。存储器409可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器409可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 409 can be used to store software programs and various data. The memory 409 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 409 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

处理器410是电子设备400的控制中心,利用各种接口和线路连接整个电子设备400的各个部分,通过运行或执行存储在存储器409内的软件程序和/或模块,以及调用存储在存储器409内的数据,执行电子设备400的各种功能和处理数据,从而对电子设备400进行整体监控。处理器410可包括一个或多个处理单元;优选的,处理器410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器410中。The processor 410 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device 400. By running or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, it executes various functions of the electronic device 400 and processes data, thereby monitoring the electronic device 400 as a whole. The processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 410.

电子设备400还可以包括给各个部件供电的电源411(比如电池),优选的,电源411可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 400 may also include a power supply 411 (such as a battery) for supplying power to each component. Preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

另外,电子设备400包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 400 includes some functional modules not shown, which will not be described in detail here.

可选的,本发明实施例还提供一种电子设备,包括处理器,存储器,存储在存储器上并可在所述处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述声道配置方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention further provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned channel configuration method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述声道配置方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned channel configuration method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (8)

1. A channel configuration method applied to an electronic device, comprising:
acquiring a first signal of an infrared sensor and a second signal of an angle detection sensor which are arranged on the earphone;
judging whether the wearing position of the earphone is matched with a preset position according to the first signal and the second signal;
configuring a right channel audio signal for a left earphone of the earphone and/or configuring a left channel audio signal for a right earphone of the earphone when the wearing position is not matched with a preset position;
The judging whether the wearing position is matched with a preset position according to the first signal and the second signal comprises the following steps:
if the first signal is received within the preset time period and the second signal indicates that the direction of the earphone is the same as the preset direction, judging that the wearing position is matched with the preset position;
If the first signal is not received within the preset time period and the second signal indicates that the direction of the earphone is the same as the preset direction, the wearing position is not matched with the preset position;
if the first signal is received within the preset time period and the second signal indicates that the direction of the earphone is opposite to the preset direction, judging that the wearing position is not matched with the preset position;
And if the first signal is not received within the preset time period and the second signal indicates that the direction of the earphone is opposite to the preset direction, judging that the wearing position is matched with the preset position.
2. The method according to claim 1, wherein the electronic device is an audio transmission device, and wherein configuring the right channel audio signal for the left earpiece of the earpiece and/or configuring the left channel audio signal for the right earpiece of the earpiece if the wearing position does not match a preset position comprises:
acquiring a left channel audio signal and a right channel audio signal under the condition that the wearing position is not matched with a preset position;
encoding the left channel audio signal and/or the right channel audio signal in a first encoding sequence;
Wherein, the left channel audio signal and the right channel audio signal are encoded according to a second encoding sequence when the wearing position is matched with a preset position;
The left channel audio signal in the first coding sequence corresponds to the right channel audio signal in the second coding sequence, and the right channel audio signal in the first coding sequence corresponds to the left channel audio signal in the second coding sequence.
3. The method of claim 1, wherein the angle detection sensor is any one of a gravity sensor, an acceleration sensor, and an angle sensor.
4. An electronic device, comprising:
The acquisition module is used for acquiring a first signal of an infrared sensor and a second signal of an angle detection sensor which are arranged on the earphone;
The judging module is used for judging whether the wearing position of the earphone is matched with a preset position according to the first signal and the second signal;
The configuration module is used for configuring a right channel audio signal for the left earphone of the earphone and/or configuring a left channel audio signal for the right earphone of the earphone under the condition that the wearing position is not matched with the preset position;
The judging module is further used for:
if the first signal is received within the preset time period and the second signal indicates that the direction of the earphone is the same as the preset direction, judging that the wearing position is matched with the preset position;
If the first signal is not received within the preset time period and the second signal indicates that the direction of the earphone is the same as the preset direction, the wearing position is not matched with the preset position;
if the first signal is received within the preset time period and the second signal indicates that the direction of the earphone is opposite to the preset direction, judging that the wearing position is not matched with the preset position;
And if the first signal is not received within the preset time period and the second signal indicates that the direction of the earphone is opposite to the preset direction, judging that the wearing position is matched with the preset position.
5. The electronic device of claim 4, wherein the electronic device is an audio transmission device, and wherein the configuration module is further configured to:
acquiring a left channel audio signal and a right channel audio signal under the condition that the wearing position is not matched with a preset position;
encoding the left channel audio signal and/or the right channel audio signal in a first encoding sequence;
Wherein, the left channel audio signal and the right channel audio signal are encoded according to a second encoding sequence when the wearing position is matched with a preset position;
The left channel audio signal in the first coding sequence corresponds to the right channel audio signal in the second coding sequence, and the right channel audio signal in the first coding sequence corresponds to the left channel audio signal in the second coding sequence.
6. The electronic device of claim 4, wherein the angle detection sensor is any one of a gravity sensor, an acceleration sensor, and an angle sensor.
7. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the channel configuration method of any of claims 1-3.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the channel configuration method according to any one of claims 1-3.
CN202010180920.1A 2020-03-16 2020-03-16 Sound channel configuration method and electronic equipment Active CN113411702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010180920.1A CN113411702B (en) 2020-03-16 2020-03-16 Sound channel configuration method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010180920.1A CN113411702B (en) 2020-03-16 2020-03-16 Sound channel configuration method and electronic equipment

Publications (2)

Publication Number Publication Date
CN113411702A CN113411702A (en) 2021-09-17
CN113411702B true CN113411702B (en) 2024-05-14

Family

ID=77676353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010180920.1A Active CN113411702B (en) 2020-03-16 2020-03-16 Sound channel configuration method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113411702B (en)

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026082A (en) * 2009-09-21 2011-04-20 联想(北京)有限公司 Track self-adaptive method and device for sound producing device
EP2498510A1 (en) * 2011-03-11 2012-09-12 Research In Motion Limited Synthetic stereo on a mono headset with motion sensing
WO2012153784A1 (en) * 2011-05-10 2012-11-15 独立行政法人科学技術振興機構 Stereo headphone device
CN104202697A (en) * 2014-09-18 2014-12-10 苏州大学 Adaptive automatic left sound track and right sound track switching stereo headphone
CN104540057A (en) * 2014-12-19 2015-04-22 深圳市禹欣鑫电子有限公司 Infrared earphones for the old
JP2015186072A (en) * 2014-03-25 2015-10-22 オンキヨー株式会社 Audio signal output device
CN105101016A (en) * 2015-08-07 2015-11-25 深圳市金立通信设备有限公司 Earphone sound channel switching method and terminal
CN105228041A (en) * 2015-09-24 2016-01-06 联想(北京)有限公司 A kind of information processing method and audio output device
CN105898666A (en) * 2016-06-23 2016-08-24 乐视控股(北京)有限公司 Channel data matching method and channel data matching device
CN105959854A (en) * 2016-06-22 2016-09-21 惠州Tcl移动通信有限公司 Method and system for realizing normal output of left sound and right sound based on headset
CN205827179U (en) * 2016-07-05 2016-12-21 南京信息工程大学 A kind of multi-functional volume Preceding stage control device
CN106358127A (en) * 2016-09-30 2017-01-25 维沃移动通信有限公司 Left and right sound channel switching method and mobile terminal
CN106454588A (en) * 2016-09-30 2017-02-22 维沃移动通信有限公司 Earphone and earphone channel switching method
CN106445457A (en) * 2016-09-29 2017-02-22 宇龙计算机通信科技(深圳)有限公司 Headphone sound channel switching method and device
CN107801113A (en) * 2017-10-09 2018-03-13 维沃移动通信有限公司 A kind of method, wireless headset and mobile terminal for controlling wireless headset sound channel
CN108737917A (en) * 2017-04-18 2018-11-02 南宁富桂精密工业有限公司 Earphone wearing state is detected and sound channel switching method, system and earphone
CN108810706A (en) * 2018-07-12 2018-11-13 中新工程技术研究院有限公司 A kind of control method, device, computer equipment and the storage medium of earphone sound channel
CN108886653A (en) * 2016-04-20 2018-11-23 华为技术有限公司 A kind of earphone sound channel control method, relevant device and system
CN109195058A (en) * 2018-11-29 2019-01-11 努比亚技术有限公司 Switching method, device, terminal and the storage medium of earphone sound channel
US10362399B1 (en) * 2017-09-22 2019-07-23 Apple Inc. Detection of headphone orientation
WO2019196101A1 (en) * 2018-04-13 2019-10-17 万魔声学科技有限公司 Method and apparatus for switching working mode of earphone, and audio circuit, earphone and earphone system
CN110536196A (en) * 2018-05-24 2019-12-03 群光电子股份有限公司 Symmetrical Headphone device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008103827A (en) * 2006-10-17 2008-05-01 Sharp Corp Wireless headphones
CN102316394B (en) * 2010-06-30 2014-09-03 索尼爱立信移动通讯有限公司 Bluetooth equipment and audio playing method using same
US9326058B2 (en) * 2012-09-26 2016-04-26 Sony Corporation Control method of mobile terminal apparatus
US10623871B2 (en) * 2016-05-27 2020-04-14 Sonova Ag Hearing assistance system with automatic side detection

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026082A (en) * 2009-09-21 2011-04-20 联想(北京)有限公司 Track self-adaptive method and device for sound producing device
EP2498510A1 (en) * 2011-03-11 2012-09-12 Research In Motion Limited Synthetic stereo on a mono headset with motion sensing
WO2012153784A1 (en) * 2011-05-10 2012-11-15 独立行政法人科学技術振興機構 Stereo headphone device
JP2015186072A (en) * 2014-03-25 2015-10-22 オンキヨー株式会社 Audio signal output device
CN104202697A (en) * 2014-09-18 2014-12-10 苏州大学 Adaptive automatic left sound track and right sound track switching stereo headphone
CN104540057A (en) * 2014-12-19 2015-04-22 深圳市禹欣鑫电子有限公司 Infrared earphones for the old
CN105101016A (en) * 2015-08-07 2015-11-25 深圳市金立通信设备有限公司 Earphone sound channel switching method and terminal
CN105228041A (en) * 2015-09-24 2016-01-06 联想(北京)有限公司 A kind of information processing method and audio output device
CN108886653A (en) * 2016-04-20 2018-11-23 华为技术有限公司 A kind of earphone sound channel control method, relevant device and system
CN105959854A (en) * 2016-06-22 2016-09-21 惠州Tcl移动通信有限公司 Method and system for realizing normal output of left sound and right sound based on headset
CN105898666A (en) * 2016-06-23 2016-08-24 乐视控股(北京)有限公司 Channel data matching method and channel data matching device
CN205827179U (en) * 2016-07-05 2016-12-21 南京信息工程大学 A kind of multi-functional volume Preceding stage control device
CN106445457A (en) * 2016-09-29 2017-02-22 宇龙计算机通信科技(深圳)有限公司 Headphone sound channel switching method and device
CN106454588A (en) * 2016-09-30 2017-02-22 维沃移动通信有限公司 Earphone and earphone channel switching method
CN106358127A (en) * 2016-09-30 2017-01-25 维沃移动通信有限公司 Left and right sound channel switching method and mobile terminal
CN108737917A (en) * 2017-04-18 2018-11-02 南宁富桂精密工业有限公司 Earphone wearing state is detected and sound channel switching method, system and earphone
US10362399B1 (en) * 2017-09-22 2019-07-23 Apple Inc. Detection of headphone orientation
CN107801113A (en) * 2017-10-09 2018-03-13 维沃移动通信有限公司 A kind of method, wireless headset and mobile terminal for controlling wireless headset sound channel
WO2019196101A1 (en) * 2018-04-13 2019-10-17 万魔声学科技有限公司 Method and apparatus for switching working mode of earphone, and audio circuit, earphone and earphone system
CN110536196A (en) * 2018-05-24 2019-12-03 群光电子股份有限公司 Symmetrical Headphone device
CN108810706A (en) * 2018-07-12 2018-11-13 中新工程技术研究院有限公司 A kind of control method, device, computer equipment and the storage medium of earphone sound channel
CN109195058A (en) * 2018-11-29 2019-01-11 努比亚技术有限公司 Switching method, device, terminal and the storage medium of earphone sound channel

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一款基于单片机自动调音的BDS耳机控制系统设计;倪婷婷;倪菁;姜云耀;邱胜海;;物联网技术(第08期);全文 *
一种简易红外通信装置的设计;吴春梅;崔海瑛;赵大伟;王馨玉;;科技风(第06期);全文 *

Also Published As

Publication number Publication date
CN113411702A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
US12197816B2 (en) Prompting method and mobile terminal
CN108684029B (en) A Bluetooth pairing connection method and system, Bluetooth device and terminal
CN110730260B (en) Electronic device control method and electronic device
CN107770760B (en) A kind of method and mobile terminal of the type identifying bluetooth equipment
CN108886653B (en) An earphone channel control method, related equipment and system
US20230254395A1 (en) Electronic Device and Control Method Thereof
CN111093137B (en) A volume control method, device and computer-readable storage medium
CN108521520A (en) A call processing method and mobile terminal
CN107911445A (en) A kind of information push method, mobile terminal and storage medium
CN108848267B (en) Audio playback method and mobile terminal
CN108196815B (en) Method for adjusting call sound and mobile terminal
WO2021147718A1 (en) Audio transmission method and electronic device
CN108683980B (en) A kind of audio signal transmission method and mobile terminal
WO2020173396A1 (en) Mobile terminal and sound output control method
CN109150221A (en) A kind of wearable device master-slave switching method and Related product
CN111443815A (en) A vibration reminder method and electronic device
WO2021238844A1 (en) Audio output method and electronic device
CN107911777A (en) Method, device and mobile terminal for processing ear return function
CN111459447A (en) A volume adjustment display method and electronic device
CN108307048B (en) Message output method and device and mobile terminal
CN108307075B (en) A kind of incoming call processing method and mobile terminal
CN111585666B (en) A power compensation method and electronic device
WO2021208893A1 (en) Audio output mode switching method and electronic device
CN108319440A (en) Audio-frequency inputting method and mobile terminal
CN109348366B (en) A method and mobile terminal for realizing volume adjustment using electrical parameters

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
GR01 Patent grant
GR01 Patent grant