[go: up one dir, main page]

CN106303830A - Volume adjustment method and device - Google Patents

Volume adjustment method and device Download PDF

Info

Publication number
CN106303830A
CN106303830A CN201610817647.2A CN201610817647A CN106303830A CN 106303830 A CN106303830 A CN 106303830A CN 201610817647 A CN201610817647 A CN 201610817647A CN 106303830 A CN106303830 A CN 106303830A
Authority
CN
China
Prior art keywords
volume
earphone
smart machine
smart device
button
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610817647.2A
Other languages
Chinese (zh)
Inventor
颜嘉甫
胡鹏龙
熊达蔚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610817647.2A priority Critical patent/CN106303830A/en
Publication of CN106303830A publication Critical patent/CN106303830A/en
Pending legal-status Critical Current

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
    • 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
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

本公开是关于一种音量调节方法及装置,属于音频技术领域。所述方法包括:在智能设备的音量保持为预设音量的情况下,播放所述智能设备提供的音频信号;检测用户对耳机上音量调节按键的点击操作,所述音量调节按键至少包括音量增大按键和音量减小按键;基于检测到的点击操作,对所述耳机的模拟增益进行调节,以调节所述耳机的音量。本公开提供了一种调节耳机本身音量的方法,摆脱了只能调节智能设备音量的限制,提升了灵活性。

The disclosure relates to a volume adjustment method and device, and belongs to the field of audio technology. The method includes: playing the audio signal provided by the smart device when the volume of the smart device is kept at a preset volume; detecting the user's click operation on the volume adjustment button on the earphone, and the volume adjustment button includes at least a volume increase button; a large button and a volume down button; based on the detected click operation, the analog gain of the earphone is adjusted to adjust the volume of the earphone. The present disclosure provides a method for adjusting the volume of the earphone itself, which gets rid of the limitation that only the volume of the smart device can be adjusted, and improves flexibility.

Description

音量调节方法及装置Volume adjustment method and device

技术领域technical field

本公开是关于音频技术领域,具体来说是关于一种音量调节方法及装置。The present disclosure relates to the field of audio technology, in particular to a volume adjustment method and device.

背景技术Background technique

随着电子设备的快速发展,耳机已经成为用户日常生活中不可或缺的一部分,可以广泛用于手机、个人电脑等智能设备。且随着多种类型耳机的出现,用户对耳机的功能需求也越来越高。With the rapid development of electronic devices, earphones have become an indispensable part of users' daily life and can be widely used in smart devices such as mobile phones and personal computers. And with the emergence of various types of earphones, users have higher and higher functional requirements for earphones.

调节音量是耳机的一项重要功能,通常情况下耳机会配置音量调节按键,如音量增大按键和音量减小按键,用户在使用耳机收听智能设备播放的音频信号时,如果需要调节音量则点击相应的音量调节按键,耳机检测到用户的点击操作后,会向该智能设备发送与该音频调节按键对应的音量调节信号,智能设备接收到该音量调节信号时,调节该智能设备的音量。Adjusting the volume is an important function of the headset. Usually, the headset is equipped with volume adjustment buttons, such as the volume up button and the volume down button. When the user uses the headset to listen to the audio signal played by the smart device, if the user needs to adjust the volume, click For the corresponding volume adjustment button, after the earphone detects the user's click operation, it will send a volume adjustment signal corresponding to the audio adjustment button to the smart device. When the smart device receives the volume adjustment signal, it will adjust the volume of the smart device.

发明内容Contents of the invention

为了解决相关技术中存在的问题,本公开提供了一种音量调节方法及装置。所述技术方案如下:In order to solve the problems existing in related technologies, the present disclosure provides a volume adjustment method and device. Described technical scheme is as follows:

根据本公开实施例的第一方面,提供了一种音量调节方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, there is provided a volume adjustment method, the method comprising:

在智能设备的音量保持为预设音量的情况下,播放所述智能设备提供的音频信号;When the volume of the smart device remains at a preset volume, play the audio signal provided by the smart device;

检测用户对耳机上音量调节按键的点击操作,所述音量调节按键至少包括音量增大按键和音量减小按键;Detecting the user's click operation on the volume adjustment button on the earphone, the volume adjustment button at least including a volume up button and a volume down button;

基于检测到的点击操作,对所述耳机的模拟增益进行调节,以调节所述耳机的音量。Based on the detected click operation, the analog gain of the earphone is adjusted to adjust the volume of the earphone.

在一种可能实现的方式中,所述基于检测到的点击操作,对所述耳机的模拟增益进行调节,包括:In a possible implementation manner, the adjusting the analog gain of the earphone based on the detected click operation includes:

如果检测到对所述音量增大按键的点击操作,则增大所述模拟增益;If a click operation on the volume up button is detected, increasing the analog gain;

如果检测到对所述音量减小按键的点击操作,则减小所述模拟增益。If a click operation on the volume down key is detected, the analog gain is decreased.

在另一种可能实现的方式中,所述增大所述模拟增益,包括:将所述模拟增益增大预设步进值;In another possible implementation manner, the increasing the analog gain includes: increasing the analog gain by a preset step value;

所述减小所述模拟增益,包括:将所述模拟增益减小所述预设步进值。The reducing the analog gain includes: reducing the analog gain by the preset step value.

根据本公开实施例的第二方面,提供了一种音量调节方法,所述方法包括:According to a second aspect of an embodiment of the present disclosure, there is provided a volume adjustment method, the method comprising:

确定配置的指定类型接口中插入耳机;Confirm that the earphone is inserted into the specified interface of the configuration;

将智能设备的音量调节为预设音量,以使在所述智能设备的音量保持为所述预设音量的情况下,所述耳机根据检测到的操作调节所述耳机的音量。Adjusting the volume of the smart device to a preset volume, so that when the volume of the smart device remains at the preset volume, the earphone adjusts the volume of the earphone according to the detected operation.

在一种可能实现的方式中,所述预设音量为所述智能设备的最大音量。In a possible implementation manner, the preset volume is a maximum volume of the smart device.

在另一种可能实现的方式中,所述将智能设备的音量调节为预设音量,包括:In another possible implementation manner, the adjusting the volume of the smart device to a preset volume includes:

对所述智能设备的增益进行调节,以使调节所述增益之后所述智能设备的音量为所述最大音量。The gain of the smart device is adjusted, so that the volume of the smart device is the maximum volume after the gain is adjusted.

在另一种可能实现的方式中,所述方法还包括:In another possible implementation manner, the method further includes:

获取所述耳机的设备标识;Obtain the device identifier of the headset;

判断所述设备标识的类型是否为预设类型,所述预设类型是指所述智能设备匹配的耳机类型;Judging whether the type of the device identification is a preset type, the preset type refers to the earphone type matched by the smart device;

当确定所述设备标识的类型为所述预设类型时,将所述智能设备的音量调节为所述预设音量。When it is determined that the type identified by the device is the preset type, adjusting the volume of the smart device to the preset volume.

在另一种可能实现的方式中,所述指定类型接口为Type-C接口。In another possible implementation manner, the specified type interface is a Type-C interface.

根据本公开实施例的第三方面,提供了一种音量调节装置,所述装置包括:According to a third aspect of an embodiment of the present disclosure, there is provided a volume adjustment device, the device comprising:

播放模块,用于在智能设备的音量保持为预设音量的情况下,播放所述智能设备提供的音频信号;A playback module, configured to play the audio signal provided by the smart device when the volume of the smart device is kept at a preset volume;

检测模块,用于检测用户对耳机上音量调节按键的点击操作,所述音量调节按键至少包括音量增大按键和音量减小按键;The detection module is used to detect the user's click operation on the volume adjustment button on the earphone, and the volume adjustment button includes at least a volume up button and a volume down button;

调节模块,用于基于检测到的点击操作,对所述耳机的模拟增益进行调节,以调节所述耳机的音量。An adjustment module, configured to adjust the analog gain of the earphone based on the detected click operation, so as to adjust the volume of the earphone.

在一种可能实现的方式中,所述调节模块,还用于如果检测到对所述音量增大按键的点击操作,则增大所述模拟增益;In a possible implementation manner, the adjustment module is further configured to increase the analog gain if a click operation on the volume increase button is detected;

所述调节模块,还用于如果检测到对所述音量减小按键的点击操作,则减小所述模拟增益。The adjustment module is further configured to decrease the analog gain if a click operation on the volume down button is detected.

在另一种可能实现的方式中,所述调节模块,还用于如果检测到对所述音量增大按键的点击操作,则将所述模拟增益增大预设步进值;In another possible implementation manner, the adjustment module is further configured to increase the analog gain by a preset step value if a click operation on the volume up button is detected;

所述调节模块,还用于如果检测到对所述音量减小按键的点击操作,则将所述模拟增益减小所述预设步进值。The adjustment module is further configured to decrease the analog gain by the preset step value if a click operation on the volume down button is detected.

根据本公开实施例的第四方面,提供了一种音量调节装置,所述装置包括:According to a fourth aspect of an embodiment of the present disclosure, there is provided a volume adjustment device, the device comprising:

确定模块,用于确定配置的指定类型接口中插入耳机;A determination module, configured to determine the earphones inserted into the specified interface of the configuration;

音量调节模块,用于将智能设备的音量调节为预设音量,以使在所述智能设备的音量保持为所述预设音量的情况下,所述耳机根据用户的操作调节所述耳机的音量。A volume adjustment module, configured to adjust the volume of the smart device to a preset volume, so that when the volume of the smart device remains at the preset volume, the earphone adjusts the volume of the earphone according to the user's operation .

在一种可能实现的方式中,所述预设音量为所述智能设备的最大音量。In a possible implementation manner, the preset volume is a maximum volume of the smart device.

在另一种可能实现的方式中,所述音量调节模块,还用于对所述智能设备的增益进行调节,以使调节所述增益之后所述智能设备的音量为所述智能设备的最大音量。In another possible implementation manner, the volume adjustment module is further configured to adjust the gain of the smart device, so that the volume of the smart device is the maximum volume of the smart device after the gain is adjusted .

在另一种可能实现的方式中,所述装置还包括:In another possible implementation manner, the device further includes:

获取模块,用于获取所述耳机的设备标识;An acquisition module, configured to acquire the device identifier of the earphone;

判断模块,用于判断所述设备标识的类型是否为预设类型,所述预设类型是指所述智能设备匹配的耳机类型;A judging module, configured to judge whether the type of the device identification is a preset type, and the preset type refers to the earphone type matched by the smart device;

所述音量调节模块,用于当确定所述设备标识的类型为所述预设类型时,将所述智能设备的音量调节为所述预设音量。The volume adjustment module is configured to adjust the volume of the smart device to the preset volume when it is determined that the type identified by the device is the preset type.

在另一种可能实现的方式中,所述指定类型接口为Type-C接口。In another possible implementation manner, the specified type interface is a Type-C interface.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

本实施例提供的方法和装置,通过当确定耳机插入至具有指定类型接口的智能设备时,将该智能设备的音量调节为预设音量并保持不变,在播放智能设备提供的音频信号的过程中,检测用户对耳机上音量调节按键的点击操作,根据检测到的点击操作,对所述耳机的模拟增益进行调节,以调节所述耳机的音量。提供了一种调节耳机本身音量的方法,摆脱了只能调节智能设备音量的限制,提升了灵活性。The method and device provided in this embodiment adjust the volume of the smart device to the preset volume and keep it unchanged when it is determined that the earphone is plugged into the smart device with the specified type of interface, during the process of playing the audio signal provided by the smart device In the method, the click operation of the volume adjustment button on the earphone by the user is detected, and the analog gain of the earphone is adjusted according to the detected click operation, so as to adjust the volume of the earphone. Provides a method to adjust the volume of the earphone itself, getting rid of the limitation of only adjusting the volume of smart devices, and improving flexibility.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的一种音量调节方法的流程图;Fig. 1 is a flow chart of a volume adjustment method shown according to an exemplary embodiment;

图2是根据一示例性实施例示出的一种音量调节方法的流程图;Fig. 2 is a flow chart showing a volume adjustment method according to an exemplary embodiment;

图3是根据一示例性实施例示出的一种音量调节方法的流程图;Fig. 3 is a flow chart of a volume adjustment method according to an exemplary embodiment;

图4是根据一示例性实施例示出的一种音量调节装置的框图;Fig. 4 is a block diagram of a volume adjustment device according to an exemplary embodiment;

图5是根据一示例性实施例示出的一种音量调节装置的框图;Fig. 5 is a block diagram of a volume adjustment device according to an exemplary embodiment;

图6是根据一示例性实施例示出的一种音量调节装置的框图;Fig. 6 is a block diagram of a volume adjustment device according to an exemplary embodiment;

图7是根据一示例性实施例示出的一种音量调节装置的框图。Fig. 7 is a block diagram of a volume adjustment device according to an exemplary embodiment.

具体实施方式detailed description

为使本公开的目的、技术方案和优点更加清楚明白,下面结合实施方式和附图,对本公开做进一步详细说明。在此,本公开的示意性实施方式及其说明用于解释本公开,但并不作为对本公开的限定。In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the present disclosure will be described in further detail below in conjunction with the implementation manners and accompanying drawings. Here, the exemplary embodiments of the present disclosure and their descriptions are used to explain the present disclosure, but not to limit the present disclosure.

本公开实施例提供一种音量调节方法及装置,以下结合附图对本公开进行详细说明。Embodiments of the present disclosure provide a volume adjustment method and device, and the present disclosure will be described in detail below with reference to the accompanying drawings.

图1是根据一示例性实施例示出的一种音量调节方法的流程图,如图1所示,该音量调节方法用于耳机中,包括以下步骤:Fig. 1 is a flowchart of a volume adjustment method according to an exemplary embodiment. As shown in Fig. 1, the volume adjustment method is used in earphones and includes the following steps:

在步骤101中,在智能设备的音量保持为预设音量的情况下,播放该智能设备提供的音频信号。In step 101, when the volume of the smart device is kept at a preset volume, an audio signal provided by the smart device is played.

在步骤102中,检测用户对耳机上音量调节按键的点击操作,该音量调节按键至少包括音量增大按键和音量减小按键。In step 102, a user's click operation on the volume adjustment button on the earphone is detected, and the volume adjustment button includes at least a volume up button and a volume down button.

在步骤103中,基于检测到的点击操作,对该耳机的模拟增益进行调节,以调节该耳机的音量。In step 103, based on the detected click operation, the analog gain of the earphone is adjusted to adjust the volume of the earphone.

相关技术中,用户在使用耳机收听智能设备播放的音频信号时,如果需要调节音量则点击相应的音量调节按键,耳机检测到用户的点击操作后,会向该智能设备发送与该音频调节按键对应的音量调节信号,智能设备接收到该音量调节信号时,调节该智能设备的音量。该耳机音量调节的过程中只能对该智能设备的音量进行调节,而不能调节耳机本身的音量。而本实施例中在使用耳机收听智能设备播放的音频信号时,固定智能设备的音量不变,而调节耳机本身的音量。In the related technology, when the user uses the earphone to listen to the audio signal played by the smart device, if he needs to adjust the volume, he clicks the corresponding volume adjustment button. The volume adjustment signal of the smart device, when the smart device receives the volume adjustment signal, adjusts the volume of the smart device. In the process of adjusting the volume of the earphone, only the volume of the smart device can be adjusted, but the volume of the earphone itself cannot be adjusted. However, in this embodiment, when the earphone is used to listen to the audio signal played by the smart device, the volume of the smart device is fixed and the volume of the earphone itself is adjusted.

本实施例提供的方法,通过在播放智能设备提供的音频信号的过程中,检测用户对耳机上音量调节按键的点击操作,根据检测到的点击操作,对该耳机的模拟增益进行调节,以调节该耳机的音量。提供了一种调节耳机本身音量的方法,摆脱了只能调节智能设备音量的限制,提升了灵活性。In the method provided by this embodiment, during the process of playing the audio signal provided by the smart device, the click operation of the volume adjustment button on the earphone by the user is detected, and the analog gain of the earphone is adjusted according to the detected click operation, so as to adjust The volume of the headset. Provides a method to adjust the volume of the earphone itself, getting rid of the limitation of only adjusting the volume of smart devices, and improving flexibility.

在一种可能实现的方式中,该基于检测到的点击操作,对该耳机的模拟增益进行调节,包括:In a possible implementation manner, the adjustment of the analog gain of the earphone based on the detected click operation includes:

如果检测到对该音量增大按键的点击操作,则增大该模拟增益;If a click operation of the volume increase button is detected, the analog gain is increased;

如果检测到对该音量减小按键的点击操作,则减小该模拟增益。If a click operation of the volume down key is detected, the analog gain is decreased.

在另一种可能实现的方式中,增大该模拟增益,包括:将该模拟增益增大预设步进值;In another possible implementation manner, increasing the analog gain includes: increasing the analog gain by a preset step value;

减小该模拟增益,包括:将该模拟增益减小该预设步进值。Decreasing the analog gain includes: reducing the analog gain by the preset step value.

上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be repeated here.

图2是根据一示例性实施例示出的一种音量调节方法的流程图,如图2所示,该音量调节方法用于智能设备中,包括以下步骤:Fig. 2 is a flowchart of a volume adjustment method according to an exemplary embodiment. As shown in Fig. 2, the volume adjustment method is used in a smart device and includes the following steps:

在步骤201中,确定配置的指定类型接口中插入耳机。In step 201, it is determined that an earphone is plugged into the configured interface of a specified type.

在步骤202中,将智能设备的音量调节为预设音量,以使在该智能设备的音量保持为该预设音量的情况下,该耳机根据检测到的操作调节该耳机的音量。In step 202, the volume of the smart device is adjusted to a preset volume, so that when the volume of the smart device remains at the preset volume, the earphone adjusts the volume of the earphone according to the detected operation.

本实施例提供的方法,通过当确定耳机插入至具有指定类型接口的智能设备时,将该智能设备的音量调节为预设音量并保持不变,以使在该智能设备的音量保持为该预设音量的情况下,该耳机根据检测到的操作调节该耳机的音量。以上过程通过固定智能设备的预设音量后调节耳机的音量,实现了对耳机本身音量的调节,摆脱了只能调节智能设备音量的限制,提升了灵活性。In the method provided by this embodiment, when it is determined that the earphone is plugged into a smart device with a specified type of interface, the volume of the smart device is adjusted to a preset volume and kept unchanged, so that the volume of the smart device remains at the preset volume. When the volume is set, the earphone adjusts the volume of the earphone according to the detected operation. In the above process, by fixing the preset volume of the smart device and then adjusting the volume of the earphone, the volume of the earphone itself can be adjusted, getting rid of the limitation of only adjusting the volume of the smart device, and improving flexibility.

在一种可能实现的方式中,该预设音量为该智能设备的最大音量。In a possible implementation manner, the preset volume is the maximum volume of the smart device.

在另一种可能实现的方式中,该将智能设备的音量调节为预设音量,包括:In another possible implementation manner, adjusting the volume of the smart device to a preset volume includes:

对该智能设备的增益进行调节,以使调节该增益之后该智能设备的音量为该最大音量。The gain of the smart device is adjusted, so that the volume of the smart device is the maximum volume after the gain is adjusted.

在另一种可能实现的方式中,该方法还包括:In another possible implementation manner, the method further includes:

获取该耳机的设备标识;Obtain the device identifier of the headset;

判断该设备标识的类型是否为预设类型,该预设类型是指该智能设备匹配的耳机类型;Judging whether the type identified by the device is a preset type, the preset type refers to the earphone type matched with the smart device;

当确定该设备标识的类型为该预设类型时,将该智能设备的音量调节为该预设音量。When it is determined that the type identified by the device is the preset type, the volume of the smart device is adjusted to the preset volume.

在另一种可能实现的方式中,该指定类型接口为Type-C接口。In another possible implementation manner, the specified type interface is a Type-C interface.

上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be repeated here.

图3是根据一示例性实施例示出的一种音量调节方法的流程图,如图3所示,该音量调节方法用于耳机和智能设备中,包括以下步骤:Fig. 3 is a flow chart of a volume adjustment method according to an exemplary embodiment. As shown in Fig. 3, the volume adjustment method is used in earphones and smart devices, and includes the following steps:

在步骤301中,该智能设备确定配置的指定类型接口中插入耳机。In step 301, the smart device determines that an earphone is plugged into a configured interface of a specified type.

该智能设备可以是手机、平板电脑等,本实施例中对此不做限定。该智能设备配置有指定类型接口,相应地,耳机也可以配置该指定类型接口,通过该指定类型接口与该智能设备连接,从而在耳机上播放智能设备提供的音频信号。The smart device may be a mobile phone, a tablet computer, etc., which is not limited in this embodiment. The smart device is configured with a specified type of interface. Correspondingly, the headset can also be configured with the specified type of interface, and connected to the smart device through the specified type of interface, so as to play the audio signal provided by the smart device on the headset.

实际上耳机配置有数据线,该数据线的一端为指定类型接口,耳机插入该智能设备的指定类型接口实际上是指耳机数据线一端的指定类型接口插入到该智能设备的指定类型接口中,插入之后,该耳机和该智能设备即可通过该数据线进行数据传输。In fact, the headset is equipped with a data cable, and one end of the data cable is a specified type of interface, and the earphone is inserted into the specified type of interface of the smart device. In fact, it means that the specified type of interface at one end of the headset data cable is inserted into the specified type of interface of the smart device. After plugging in, the earphone and the smart device can perform data transmission through the data cable.

该指定类型接口可以是Type-C接口或者其他类型的接口,本实施例对此也不做限定。The specified type of interface may be a Type-C interface or another type of interface, which is not limited in this embodiment.

其中,该Type-C接口是一种USB(Universal Serial Bus,通用串行总线)接口,不分正反面,两个方向均可插入,而且支持USB标准的充电、数据传输、显示输出等功能。该Type-C接口不受方向限制,占用更少的内部空间,有助于减少该智能设备的机身厚度。而且采用该Type-C接口可以将充电功能、数据传输等功能集成,那么智能设备上就无需再配置耳机专用插孔,减小了零件,节约了成本。Among them, the Type-C interface is a USB (Universal Serial Bus, universal serial bus) interface, which can be inserted in both directions regardless of the front and back, and supports charging, data transmission, display output and other functions of the USB standard. The Type-C interface is not restricted by the direction, occupies less internal space, and helps reduce the thickness of the body of the smart device. Moreover, the use of the Type-C interface can integrate charging functions, data transmission and other functions, so that there is no need to configure a special earphone jack on the smart device, reducing parts and saving costs.

且,为了与智能设备的Type-C接口相匹配,耳机也可以配置该Type-C接口,则耳机与智能设备可以通过该Type-C接口连接,从而在耳机上播放智能设备提供的音频信号。Moreover, in order to match the Type-C interface of the smart device, the earphone can also be configured with the Type-C interface, then the earphone and the smart device can be connected through the Type-C interface, so as to play the audio signal provided by the smart device on the earphone.

本实施例中,智能设备在运行过程中,通过该指定类型接口发送ping命令,等待任一设备插入该指定类型接口。其中,该ping命令是指用于检测连接状态的命令,发送ping命令的操作过程实际上是向目标发送一个数据包,并且等待目标的回应。In this embodiment, during operation, the smart device sends a ping command through the interface of the specified type, and waits for any device to be inserted into the interface of the specified type. Wherein, the ping command refers to a command for detecting the connection state, and the operation process of sending the ping command is actually to send a data packet to the target and wait for a response from the target.

当任一耳机插入该指定类型接口时,会接收到智能设备的ping命令,并向智能设备发送响应ping命令,该响应ping命令用于表示耳机已经与该智能设备连接。当智能设备接收到响应ping命令时,即可确定在指定类型接口中已插入耳机。此时,如果智能设备需要播放音频信号时,不会直接通过扬声器播放,而是将该音频信号发送给耳机,由耳机进行播放。When any earphone is plugged into the interface of the specified type, it will receive a ping command from the smart device, and send a response ping command to the smart device, and the response ping command is used to indicate that the earphone has been connected to the smart device. When the smart device receives a response to the ping command, it can be determined that the earphone has been inserted into the interface of the specified type. At this time, if the smart device needs to play the audio signal, it will not play it directly through the speaker, but send the audio signal to the earphone, and the earphone will play it.

如果智能设备未接收到任一耳机返回的响应ping命令,表示该指定类型接口中还未插入耳机,则该智能设备继续发送ping命令。If the smart device does not receive a response ping command returned by any earphone, indicating that no earphone has been inserted into the interface of the specified type, the smart device continues to send the ping command.

在步骤302中,该智能设备获取该耳机的设备标识,并判断该设备标识的类型是否为预设类型。In step 302, the smart device obtains the device identification of the headset, and determines whether the type of the device identification is a preset type.

其中,该设备标识用于唯一确定该耳机,可以包括耳机的供货商身份码(venderID)和产品识别码(product ID)中的至少一项,本实施例对该设备标识不做限定。Wherein, the device identifier is used to uniquely identify the headset, and may include at least one of a vendor ID (vendorID) and a product ID (product ID) of the headset, and this embodiment does not limit the device identifier.

该设备标识的类型可以表示该耳机的类型,而该预设类型是指该智能设备支持的耳机类型。因此,当该智能设备的指定类型接口中插入耳机时,通过该指定类型接口获取该耳机的设备标识,判断该设备标识的类型是否为预设类型。The type identified by the device may indicate the type of the earphone, and the preset type refers to the earphone type supported by the smart device. Therefore, when an earphone is inserted into the designated type interface of the smart device, the device identification of the earphone is acquired through the designated type interface, and it is judged whether the type of the device identification is a preset type.

其中,该智能设备可以根据该耳机的设备标识确定对应的类型,该类型可以指耳机的品牌、耳机支持的通信方式等,本实施例对此不做限定。Wherein, the smart device may determine the corresponding type according to the device identifier of the earphone, and the type may refer to the brand of the earphone, the communication mode supported by the earphone, etc., which is not limited in this embodiment.

如果该设备标识的类型是预设类型,表示该耳机与该智能设备匹配,该智能设备可以通过该耳机正常地播放音频信号。而如果该设备标识的类型不是预设类型,表示该耳机与该智能设备不匹配,该智能设备将不能通过该耳机正常地播放音频信号。此时,该智能设备可以显示提示消息,提示用户更换耳机。If the type identified by the device is a preset type, it means that the earphone matches the smart device, and the smart device can normally play audio signals through the earphone. And if the type identified by the device is not the preset type, it means that the earphone does not match the smart device, and the smart device cannot normally play audio signals through the earphone. At this time, the smart device may display a prompt message to prompt the user to replace the earphone.

例如,A品牌手机支持A品牌的耳机,而不支持其它品牌的耳机,即该预设类型为A品牌,则该A品牌手机只能应用A品牌的耳机播放音频信号,而不能应用其他品牌的耳机。For example, a mobile phone of brand A supports earphones of brand A but does not support earphones of other brands, that is, the default type is brand A, then the mobile phone of brand A can only use earphones of brand A to play audio signals, and cannot use earphones of other brands. earphone.

在步骤303中,当确定该设备标识的类型为该预设类型时,该智能设备将该智能设备的音量调节为该预设音量。In step 303, when it is determined that the type identified by the device is the preset type, the smart device adjusts the volume of the smart device to the preset volume.

该智能设备包括放大器,该放大器基于增益对该智能设备生成的音频信号进行放大,再播放放大后的音频信号,或者将放大后的音频信号发送给连接的耳机进行播放。因此,当该智能设备要调节音量时,可以调节该放大器的增益。The smart device includes an amplifier, which amplifies the audio signal generated by the smart device based on the gain, and then plays the amplified audio signal, or sends the amplified audio signal to a connected earphone for playback. Therefore, when the smart device wants to adjust the volume, the gain of the amplifier can be adjusted.

其中,该增益与该智能设备的音量呈正相关关系,也即是,该增益越大,该智能设备的音量越大,该增益越小,该智能设备的音量越小。Wherein, the gain is positively correlated with the volume of the smart device, that is, the greater the gain, the greater the volume of the smart device, and the smaller the gain, the lower the volume of the smart device.

本实施例中,为了便于通过耳机控制音量,当该智能设备确定已插入耳机且耳机的类型与该智能设备的预设类型匹配时,对该智能设备的增益进行调节,将该智能设备的音量调节为该预设音量,并保持该预设音量不变,则后续在耳机播放该智能设备的音频信号时,用户即可对耳机本身的音量进行调节。而当该耳机从该智能设备的指定类型接口拔出时,该智能设备又自动将音量还原到该耳机插入之前的音量。In this embodiment, in order to facilitate volume control through the earphone, when the smart device determines that the earphone has been inserted and the type of the earphone matches the preset type of the smart device, the gain of the smart device is adjusted, and the volume of the smart device After adjusting to the preset volume and keeping the preset volume unchanged, the user can then adjust the volume of the headset itself when the headset plays the audio signal of the smart device. And when the earphone is pulled out from the specified type interface of the smart device, the smart device automatically restores the volume to the volume before the earphone is inserted.

其中,该预设音量可以为该智能设备的最小音量与最大音量之间的任一音量,本实施例对此不做限定。Wherein, the preset volume may be any volume between the minimum volume and the maximum volume of the smart device, which is not limited in this embodiment.

事实上,当该预设音量越大时,耳机播放音频信号时播放效果越好,因此,一种可能的实现方式中,该预设音量可以为该智能设备的最大音量,也即是保持该智能设备的音量为0dB。相应地,该将智能设备的音量调节为预设音量包括:对该智能设备的增益进行调节,以使调节该增益之后该智能设备的音量为该最大音量。In fact, when the preset volume is higher, the playback effect of the audio signal is better when the earphone plays. Therefore, in a possible implementation, the preset volume can be the maximum volume of the smart device, that is, keep the The volume of the smart device is 0dB. Correspondingly, adjusting the volume of the smart device to the preset volume includes: adjusting the gain of the smart device, so that the volume of the smart device is the maximum volume after the gain is adjusted.

在步骤304中,在智能设备的音量保持为预设音量的情况下,该智能设备为该耳机提供音频信号,该耳机播放该智能设备提供的音频信号。In step 304, when the volume of the smart device remains at a preset volume, the smart device provides an audio signal to the earphone, and the earphone plays the audio signal provided by the smart device.

本实施例中,该智能设备将音量调节为该预设音量之后,当该智能设备要播放音频信号时,不会直接通过该智能设备的扬声器进行播放,而是会通过该指定类型接口,向该耳机发送该音频信号,该耳机接收该音频信号,并通过该耳机的扬声器播放音频信号。其中,该耳机的扬声器包括放大器,该放大器会基于当前的模拟增益对接收到的音频信号进行放大,再播放放大后的音频信号。In this embodiment, after the smart device adjusts the volume to the preset volume, when the smart device wants to play an audio signal, it will not play it directly through the speaker of the smart device, but will send it to The earphone sends the audio signal, the earphone receives the audio signal, and plays the audio signal through the speaker of the earphone. Wherein, the speaker of the earphone includes an amplifier, and the amplifier amplifies the received audio signal based on the current analog gain, and then plays the amplified audio signal.

通常情况下,该耳机上设置有播放按键和暂停按键等,当该耳机插入至该智能设备,用户希望通过该耳机收听该智能设备提供的音频信号时,该用户只需点击该耳机上的播放按键,即可通过该耳机上的扬声器收听到该音频信号。当该用户不希望通过该耳机收听该智能设备提供的音频信号时,该用户只需点击该耳机上的暂停按键,即可停止收听该音频信号。Usually, the earphone is provided with a play button and a pause button, etc. When the earphone is plugged into the smart device and the user wishes to listen to the audio signal provided by the smart device through the earphone, the user only needs to click the play button on the earphone Press the button, and the audio signal can be heard through the speaker on the headset. When the user does not want to listen to the audio signal provided by the smart device through the earphone, the user only needs to click the pause button on the earphone to stop listening to the audio signal.

在步骤305中,该耳机检测用户对该耳机上音量调节按键的点击操作。In step 305, the earphone detects the user's click operation on the volume adjustment button on the earphone.

在步骤306中,该耳机基于检测到的点击操作,对该耳机的模拟增益进行调节。In step 306, the earphone adjusts the analog gain of the earphone based on the detected click operation.

该耳机上除了包括播放按键和暂停按键外,还设置有音量调节按键。该音量调节按键包括音量增大按键和音量减小按键。In addition to the play button and the pause button, the headset is also provided with a volume adjustment button. The volume adjustment keys include a volume up key and a volume down key.

该用户在收听由该智能设备提供的音频信号的过程中,当该用户希望通过该耳机调节音量时,只需通过点击该耳机上的音量调节按键即可实现。而该耳机根据检测到的该用户对该音量调节按键的点击操作,通过按照预设步进值调节该耳机上的模拟增益,实现对该音量的调节过程。During the process of listening to the audio signal provided by the smart device, when the user wishes to adjust the volume through the earphone, he only needs to click the volume adjustment button on the earphone to realize it. And the earphone realizes the adjustment process of the volume by adjusting the analog gain on the earphone according to the preset step value according to the click operation of the volume adjustment button detected by the user.

其中,该预设步进值用于表示模拟增益的调节幅度,根据该预设步进值可以对模拟增益进行调节,从而调节耳机的音量,可以由该耳机预先确定或者由技术人员设定,本实施例中对此不做限定。Wherein, the preset step value is used to indicate the adjustment range of the analog gain, and the analog gain can be adjusted according to the preset step value, thereby adjusting the volume of the earphone, which can be predetermined by the earphone or set by a technician, This is not limited in this embodiment.

如果该耳机检测到对该音量增加按键的点击操作,则增大该模拟增益。例如,将该模拟增益增大预设步进值。假设该预设步进值对应的音量变化量为1dB,当前耳机的音量为-50dB,当该用户点击一次该音量增加按键后,将该模拟增益增大预设步进值,则该耳机的音量变为-49dB。If the headset detects a click operation on the volume up button, the analog gain is increased. For example, increase the analog gain by a preset step value. Suppose the volume change corresponding to the preset step value is 1dB, and the current headphone volume is -50dB. When the user clicks the volume up button once, the analog gain is increased by the preset step value, and the headphone The volume changes to -49dB.

如果该耳机检测到对该音量减小按键的点击操作,则减小该模拟增益。例如,将该模拟增益减小预设步进值,假设该预设步进值对应的音量变化量为1dB,当前耳机的音量为-40dB,当该用户点击一次该音量减小按键后,将该模拟增益减小预设步进值,则该耳机的音量变为-41dB。If the headset detects a click operation on the volume down button, the analog gain is decreased. For example, reduce the analog gain by a preset step value, assuming that the volume change corresponding to the preset step value is 1dB, and the current headphone volume is -40dB, when the user clicks the volume down button once, the The analog gain is reduced by a preset step value, and the volume of the headphone becomes -41dB.

需要注意的是,音频信号的播放效果与音频采样位数(Bits)有关,音频采样位数越高,播放效果越好。当只通过该智能设备调节音量时,播放效果与该智能设备支持的音频采样位数有关,而当通过该耳机来调节音量时,播放效果不但与该智能设备支持的音频采样位数有关,还跟该耳机支持的音频采样位数有关。而且通常情况下,耳机支持的音频采样位数要比智能设备支持的音频采样位数要高,所以通过该耳机播放的效果要比只通该智能设备播放的效果好。It should be noted that the playback effect of the audio signal is related to the audio sampling bits (Bits). The higher the audio sampling bits, the better the playback effect. When the volume is only adjusted through the smart device, the playback effect is related to the number of audio sampling bits supported by the smart device, while when the volume is adjusted through the earphone, the playback effect is not only related to the number of audio sampling bits supported by the smart device, but also It is related to the number of audio sampling bits supported by the headset. And usually, the number of audio sampling bits supported by the headset is higher than that supported by the smart device, so the playback effect through the headset is better than the playback effect only through the smart device.

例如,该智能设备支持的音频采样位数为16Bits,与该智能设备相匹配的耳机支持的音频采样位数为24Bits,由于耳机支持的音频采样位数比该智能设备支持的音频采样位数大,因此使用耳机播放音频信号时播放效果更好。For example, the audio sampling bit supported by the smart device is 16Bits, and the audio sampling bit supported by the earphone matching the smart device is 24Bits, because the audio sampling bit supported by the earphone is larger than the audio sampling bit supported by the smart device , so the audio signal plays better when played with headphones.

本实施例提供的方法,通过当确定耳机插入至具有指定类型接口的智能设备时,将该智能设备的音量调节为预设音量并保持不变,在播放智能设备提供的音频信号的过程中,检测用户对耳机上音量调节按键的点击操作,根据检测到的点击操作,对耳机的模拟增益进行调节,以调节耳机的音量。本实施例提供了一种调节耳机本身音量的方法,摆脱了只能调节智能设备音量的限制,提升了灵活性。In the method provided by this embodiment, when it is determined that the earphone is plugged into a smart device with a specified type of interface, the volume of the smart device is adjusted to a preset volume and remains unchanged, during the process of playing the audio signal provided by the smart device, Detect the user's click operation on the volume adjustment button on the earphone, and adjust the analog gain of the earphone according to the detected click operation, so as to adjust the volume of the earphone. This embodiment provides a method for adjusting the volume of the earphone itself, which gets rid of the limitation that only the volume of the smart device can be adjusted, and improves flexibility.

图4是根据一示例性实施例示出的一种音量调节装置的框图。参见图4,该装置包括播放模块401、检测模块402和调节模块403。Fig. 4 is a block diagram of a volume adjustment device according to an exemplary embodiment. Referring to FIG. 4 , the device includes a playback module 401 , a detection module 402 and an adjustment module 403 .

该播放模块401,被配置为用于在智能设备的音量保持为预设音量的情况下,播放该智能设备提供的音频信号;The playing module 401 is configured to play the audio signal provided by the smart device when the volume of the smart device remains at a preset volume;

该检测模块402,被配置为用于检测用户对耳机上音量调节按键的点击操作,该音量调节按键至少包括音量增大按键和音量减小按键;The detection module 402 is configured to detect the user's click operation on the volume adjustment button on the earphone, and the volume adjustment button includes at least a volume up button and a volume down button;

该调节模块403,被配置为用于基于检测到的点击操作,对该耳机的模拟增益进行调节,以调节该耳机的音量。The adjustment module 403 is configured to adjust the analog gain of the earphone based on the detected click operation, so as to adjust the volume of the earphone.

本实施例提供的装置,通过在播放智能设备提供的音频信号的过程中,检测用户对耳机上音量调节按键的点击操作,根据检测到的点击操作,对该耳机的模拟增益进行调节,以调节该耳机的音量。提供了一种调节耳机本身音量的方法,摆脱了只能调节智能设备音量的限制,提升了灵活性。The device provided in this embodiment detects the user's click operation on the volume adjustment button on the earphone during the process of playing the audio signal provided by the smart device, and adjusts the analog gain of the earphone according to the detected click operation to adjust The volume of the headset. Provides a method to adjust the volume of the earphone itself, getting rid of the limitation of only adjusting the volume of smart devices, and improving flexibility.

在一种可能实现的方式中,该调节模块403还被配置为用于如果检测到对该音量增大按键的点击操作,则增大该模拟增益;In a possible implementation manner, the adjustment module 403 is further configured to increase the analog gain if a click operation on the volume increase button is detected;

该调节模块403还被配置为用于如果检测到对该音量减小按键的点击操作,则减小该模拟增益。The adjustment module 403 is further configured to decrease the analog gain if a click operation on the volume down key is detected.

在另一种可能实现的方式中,该调节模块403还被配置为用于如果检测到对该音量增大按键的点击操作,则将该模拟增益增大预设步进值;In another possible implementation manner, the adjustment module 403 is further configured to increase the analog gain by a preset step value if a click operation on the volume up button is detected;

该调节模块403还被配置为用于如果检测到对该音量减小按键的点击操作,则将该模拟增益减小该预设步进值。The adjustment module 403 is further configured to decrease the analog gain by the preset step value if a click operation on the volume down button is detected.

上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be repeated here.

图5是根据一示例性实施例示出的一种音量调节装置的框图。参见图4,该装置包括确定模块501和音量调节模块502。Fig. 5 is a block diagram of a volume adjustment device according to an exemplary embodiment. Referring to FIG. 4 , the device includes a determination module 501 and a volume adjustment module 502 .

确定模块501,被配置为用于确定配置的指定类型接口中插入耳机;The determining module 501 is configured to insert an earphone into a specified type of interface for determining the configuration;

音量调节模块502,被配置为用于将智能设备的音量调节为预设音量,以使在该智能设备的音量保持为该预设音量的情况下,该耳机根据用户的操作调节该耳机的音量。The volume adjustment module 502 is configured to adjust the volume of the smart device to a preset volume, so that when the volume of the smart device remains at the preset volume, the earphone adjusts the volume of the earphone according to the user's operation .

本实施例提供的装置,通过当确定耳机插入至具有指定类型接口的智能设备时,将智能设备的音量调节为预设音量并保持不变,以使在该智能设备的音量保持为该预设音量的情况下,该耳机根据检测到的操作调节该耳机的音量。以上过程通过固定智能设备的预设音量后调节耳机的音量,实现了对耳机本身音量的调节,摆脱了只能调节智能设备音量的限制,提升了灵活性。The device provided in this embodiment adjusts the volume of the smart device to a preset volume and keeps it constant when it is determined that the earphone is plugged into a smart device with a specified type of interface, so that the volume of the smart device remains at the preset In the case of volume, the earphone adjusts the volume of the earphone according to the detected operation. In the above process, by fixing the preset volume of the smart device and then adjusting the volume of the earphone, the volume of the earphone itself can be adjusted, getting rid of the limitation of only adjusting the volume of the smart device, and improving flexibility.

在一种可能实现的方式中,该预设音量为该智能设备的最大音量。In a possible implementation manner, the preset volume is the maximum volume of the smart device.

在另一种可能实现的方式中,该音量调节模块502,还用于对该智能设备的增益进行调节,以使调节该增益之后该智能设备的音量为该智能设备的最大音量。In another possible implementation manner, the volume adjustment module 502 is further configured to adjust the gain of the smart device, so that the volume of the smart device is the maximum volume of the smart device after the gain is adjusted.

参见图6,在另一种可能实现的方式中,该装置还包括获取模块503和判断模块504。Referring to FIG. 6 , in another possible implementation manner, the device further includes an acquiring module 503 and a judging module 504 .

获取模块503被配置为用于获取该耳机的设备标识;The obtaining module 503 is configured to obtain the device identification of the headset;

判断模块504被配置为用于判断该设备标识的类型是否为预设类型,该预设类型是指该智能设备匹配的耳机类型;The judging module 504 is configured to judge whether the type identified by the device is a preset type, and the preset type refers to the earphone type matched with the smart device;

该音量调节模块502还被配置为用于当确定该设备标识的类型为该预设类型时,将该智能设备的音量调节为该预设音量。The volume adjustment module 502 is further configured to adjust the volume of the smart device to the preset volume when it is determined that the type identified by the device is the preset type.

在另一种可能实现的方式中,该指定类型接口为Type-C接口。In another possible implementation manner, the specified type interface is a Type-C interface.

上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All the above optional technical solutions may be combined in any way to form optional embodiments of the present disclosure, which will not be repeated here.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

需要说明的是:上述实施例提供的音量调节装置在调节音量时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将耳机和智能设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的音量调节装置与音量调节方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the volume adjustment device provided by the above-mentioned embodiment adjusts the volume, it only uses the division of the above-mentioned functional modules for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. The internal structures of the headset and the smart device are divided into different functional modules to complete all or part of the functions described above. In addition, the volume adjustment device provided by the above embodiment and the volume adjustment method embodiment belong to the same idea, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.

图7是根据一示例性实施例示出的一种音量调节装置700的框图。例如,装置700可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 7 is a block diagram of a volume adjusting device 700 according to an exemplary embodiment. For example, the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图7,装置700可以包括以下一个或多个组件:处理组件702,存储器704,电源组件706,多媒体组件708,音频组件710,输入/输出(I/O)的接口712,传感器组件714,以及通信组件716。7, device 700 may include one or more of the following components: processing component 702, memory 704, power supply component 706, multimedia component 708, audio component 710, input/output (I/O) interface 712, sensor component 714, and communication component 716 .

处理组件702通常控制装置700的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件702可以包括一个或多个处理器720来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件702可以包括一个或多个模块,便于处理组件702和其他组件之间的交互。例如,处理组件702可以包括多媒体模块,以方便多媒体组件708和处理组件702之间的交互。The processing component 702 generally controls the overall operations of the device 700, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 702 may include one or more modules that facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702 .

存储器704被配置为存储各种类型的数据以支持在装置700的操作。这些数据的示例包括用于在装置700上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 704 is configured to store various types of data to support operations at the device 700 . Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and the like. The memory 704 can be realized by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件706为装置700的各种组件提供电力。电源组件706可以包括电源管理系统,一个或多个电源,及其他与为装置700生成、管理和分配电力相关联的组件。The power supply component 706 provides power to various components of the device 700 . Power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 700 .

多媒体组件708包括在该装置700和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。该触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与该触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件708包括一个前置摄像头和/或后置摄像头。当装置700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 708 includes a front camera and/or a rear camera. When the device 700 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件710被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器704或经由通信组件716发送。在一些实施例中,音频组件710还包括一个扬声器,用于输出音频信号。The audio component 710 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (MIC) configured to receive external audio signals when the device 700 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 704 or sent via communication component 716 . In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

I/O接口712为处理组件702和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 712 provides an interface between the processing component 702 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件714包括一个或多个传感器,用于为装置700提供各个方面的状态评估。例如,传感器组件714可以检测到装置700的打开/关闭状态,组件的相对定位,例如该组件为装置700的显示器和小键盘,传感器组件714还可以检测装置700或装置700一个组件的位置改变,用户与装置700接触的存在或不存在,装置700方位或加速/减速和装置700的温度变化。传感器组件714可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件714还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件714还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for device 700 . For example, the sensor component 714 can detect the open/closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, the sensor component 714 can also detect a change in the position of the device 700 or a component of the device 700, Presence or absence of user contact with device 700 , device 700 orientation or acceleration/deceleration and temperature changes of device 700 . Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件716被配置为便于装置700和其他设备之间有线或无线方式的通信。装置700可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,该通信组件716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The device 700 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 700 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器704,上述指令可由装置700的处理器720执行以完成上述方法。例如,该非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 704 including instructions, which can be executed by the processor 720 of the device 700 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

一种非临时性计算机可读存储介质,当该存储介质中的指令由耳机的处理器执行时,使得耳机能够执行一种音量调节方法,该方法包括上述方法实施例中耳机执行的步骤。A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the headset, the headset can execute a volume adjustment method, and the method includes the steps performed by the headset in the above method embodiments.

另一种非临时性计算机可读存储介质,当该存储介质中的指令由智能设备的处理器执行时,使得智能设备能够执行一种音量调节方法,该方法包括上述方法实施例中智能设备执行的步骤。Another non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of the smart device, the smart device can execute a volume adjustment method, and the method includes performing the volume adjustment method by the smart device in the above method embodiment. A step of.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

1. a volume adjusting method, it is characterised in that described method includes:
In the case of the volume of smart machine remains default volume, play the audio signal that described smart machine provides;
Detection user to the clicking operation of volume adjusting button on earphone, described volume adjusting button at least include volume increase by Key and volume-down keys;
Based on the clicking operation detected, the analog gain of described earphone is adjusted, to regulate the volume of described earphone.
Method the most according to claim 1, it is characterised in that described based on the clicking operation detected, to described earphone Analog gain be adjusted, including:
If be detected that described volume to be increased the clicking operation of button, then increase described analog gain;
If be detected that the clicking operation to described volume-down keys, then reduce described analog gain.
Method the most according to claim 2, it is characterised in that
The described analog gain of described increase, including: described analog gain is increased and presets step value;
The described analog gain of described reduction, including: described analog gain is reduced described default step value.
4. a volume adjusting method, it is characterised in that described method includes:
Determine insertion earphone in the specified type interface of configuration;
By the volume adjusting of smart machine for presetting volume, so that the volume at described smart machine remains described default volume In the case of, described earphone regulates the volume of described earphone according to the operation detected.
Method the most according to claim 4, it is characterised in that described default volume is the maximum sound of described smart machine Amount.
Method the most according to claim 4, it is characterised in that described is default volume by the volume adjusting of smart machine, Including:
Gain to described smart machine is adjusted, so that the volume of described smart machine is described after regulating described gain Max volume.
Method the most according to claim 4, it is characterised in that described method also includes:
Obtain the device identification of described earphone;
Whether the type judging described device identification is preset kind, and described preset kind refers to the ear that described smart machine mates Machine type;
When the type determining described device identification is described preset kind, it is described pre-by the volume adjusting of described smart machine If volume.
Method the most according to claim 4, it is characterised in that described specified type interface is Type-C interface.
9. a volume adjustment device, it is characterised in that described device includes:
Playing module, in the case of the volume of smart machine remains default volume, playing described smart machine provides Audio signal;
Detection module, for detecting user to the clicking operation of volume adjusting button on earphone, described volume adjusting button is at least Button and volume-down keys is increased including volume;
Adjustment module, for based on the clicking operation detected, is adjusted the analog gain of described earphone, described with regulation The volume of earphone.
Device the most according to claim 9, it is characterised in that described adjustment module, is additionally operable to if be detected that to described Volume increases the clicking operation of button, then increase described analog gain;
Described adjustment module, is additionally operable to if be detected that clicking operation to described volume-down keys, then reduce described simulation Gain.
11. devices according to claim 10, it is characterised in that described adjustment module, are additionally operable to if be detected that to institute State volume and increase the clicking operation of button, then described analog gain is increased and preset step value;
Described adjustment module, is additionally operable to if be detected that clicking operation to described volume-down keys, then described simulation be increased Benefit reduces described default step value.
12. 1 kinds of volume adjustment devices, it is characterised in that described device includes:
Determine module, in the specified type interface determining configuration, insert earphone;
Volume adjusting module, is used for the volume adjusting of smart machine as presetting volume, so that in the volume of described smart machine In the case of remaining described default volume, described earphone regulates the volume of described earphone according to the operation of user.
13. devices according to claim 12, it is characterised in that described default volume is the maximum sound of described smart machine Amount.
14. devices according to claim 12, it is characterised in that described volume adjusting module, are additionally operable to described intelligence The gain of equipment is adjusted, so that the volume of described smart machine is the maximum of described smart machine after regulating described gain Volume.
15. devices according to claim 12, it is characterised in that described device also includes:
Acquisition module, for obtaining the device identification of described earphone;
Whether judge module, be preset kind for judging the type of described device identification, and described preset kind refers to described intelligence The headset type of energy equipment coupling;
Described volume adjusting module, for when the type determining described device identification is described preset kind, by described intelligence The volume adjusting of equipment is described default volume.
16. devices according to claim 12, it is characterised in that described specified type interface is Type-C interface.
17. 1 kinds of volume adjustment devices, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
In the case of the volume of smart machine remains default volume, play the audio signal that described smart machine provides;
Detection user to the clicking operation of volume adjusting button on earphone, described volume adjusting button at least include volume increase by Key and volume-down keys;
Based on the clicking operation detected, the analog gain of described earphone is adjusted, to regulate the volume of described earphone.
18. 1 kinds of volume adjustment devices, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Determine insertion earphone in the specified type interface of configuration;
By the volume adjusting of smart machine for presetting volume, so that the volume at described smart machine remains described default volume In the case of, described earphone regulates the volume of described earphone according to the operation detected.
CN201610817647.2A 2016-09-12 2016-09-12 Volume adjustment method and device Pending CN106303830A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610817647.2A CN106303830A (en) 2016-09-12 2016-09-12 Volume adjustment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610817647.2A CN106303830A (en) 2016-09-12 2016-09-12 Volume adjustment method and device

Publications (1)

Publication Number Publication Date
CN106303830A true CN106303830A (en) 2017-01-04

Family

ID=57710119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610817647.2A Pending CN106303830A (en) 2016-09-12 2016-09-12 Volume adjustment method and device

Country Status (1)

Country Link
CN (1) CN106303830A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301206A (en) * 2021-05-25 2021-08-24 昆腾微电子股份有限公司 Audio adjusting method and device, electronic equipment and readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2591910Y (en) * 2002-11-22 2003-12-10 林伟生 Adjustable volume earphone
US20070098202A1 (en) * 2005-10-27 2007-05-03 Steven Viranyi Variable output earphone system
CN101018043A (en) * 2006-02-07 2007-08-15 环达电脑(上海)有限公司 Method for automatic detection of volume adjusting during sound switching
CN201639749U (en) * 2010-03-29 2010-11-17 广州市立伟电子有限公司 Earphone with adjustable and controllable vibration effect
CN101964932A (en) * 2010-10-22 2011-02-02 张沈平 Sound source equipment and control method
CN102325216A (en) * 2011-06-29 2012-01-18 惠州Tcl移动通信有限公司 Mobile communication equipment and volume control method thereof
CN202444601U (en) * 2012-02-21 2012-09-19 陈悦 Earphone capable of respectively controlling volume
CN102915751A (en) * 2012-09-26 2013-02-06 广东欧珀移动通信有限公司 A method for automatically adjusting volume and its terminal equipment
CN204741542U (en) * 2015-06-09 2015-11-04 东莞市伟旺达电子有限公司 A kind of headphone wire controller with mechanical control adjustment
US20160261948A1 (en) * 2008-08-18 2016-09-08 Voyetra Turtle Beach, Inc. Gaming headset with programmable audio paths

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2591910Y (en) * 2002-11-22 2003-12-10 林伟生 Adjustable volume earphone
US20070098202A1 (en) * 2005-10-27 2007-05-03 Steven Viranyi Variable output earphone system
CN101018043A (en) * 2006-02-07 2007-08-15 环达电脑(上海)有限公司 Method for automatic detection of volume adjusting during sound switching
US20160261948A1 (en) * 2008-08-18 2016-09-08 Voyetra Turtle Beach, Inc. Gaming headset with programmable audio paths
CN201639749U (en) * 2010-03-29 2010-11-17 广州市立伟电子有限公司 Earphone with adjustable and controllable vibration effect
CN101964932A (en) * 2010-10-22 2011-02-02 张沈平 Sound source equipment and control method
CN102325216A (en) * 2011-06-29 2012-01-18 惠州Tcl移动通信有限公司 Mobile communication equipment and volume control method thereof
CN202444601U (en) * 2012-02-21 2012-09-19 陈悦 Earphone capable of respectively controlling volume
CN102915751A (en) * 2012-09-26 2013-02-06 广东欧珀移动通信有限公司 A method for automatically adjusting volume and its terminal equipment
CN204741542U (en) * 2015-06-09 2015-11-04 东莞市伟旺达电子有限公司 A kind of headphone wire controller with mechanical control adjustment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301206A (en) * 2021-05-25 2021-08-24 昆腾微电子股份有限公司 Audio adjusting method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
EP3163748B1 (en) Method, device and terminal for adjusting volume
CN106454644B (en) Audio playing method and device
CN106453838B (en) Volume adjustment method and device
CN107493500B (en) Multimedia resource playback method and device
CN106161781A (en) Method for regulation of sound volume and device
CN106331338A (en) Volume adjustment method and device
CN108549529A (en) Control the method and device of audio output
CN106445453A (en) Method and device for switching audio output paths
CN108845787A (en) Method, apparatus, terminal and the storage medium that audio is adjusted
CN105653236A (en) Sound volume control method and device and mobile terminal
CN106792307A (en) Wireless headset and earphone adjusting method
CN105407368A (en) Multimedia playing method, device and system
CN106941635B (en) Speaker connection method and device
CN104935729A (en) Audio output method and device
CN114513571A (en) Device connection method and device, electronic device and readable storage medium
CN105979465A (en) Method and device for determining maximum output power value of earphone equipment
WO2018058331A1 (en) Method and apparatus for controlling volume
CN112243142B (en) A method, device and storage medium for processing audio data
CN114257673B (en) Speaker adjusting method and device, electronic equipment and storage medium
CN114416015A (en) Audio adjustment method, device, electronic device and readable storage medium
CN113365188B (en) Speaker control method, speaker control device and storage medium
CN106325805A (en) Audio playing method and audio playing device
CN115412632A (en) Audio data processing method, device, terminal and storage medium
CN108600503A (en) The control method and device of voice communication
CN107124512A (en) The switching method and apparatus of audio-frequency play mode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20170104