[go: up one dir, main page]

CN106101408A - A kind of mobile terminal and method for regulation of sound volume thereof - Google Patents

A kind of mobile terminal and method for regulation of sound volume thereof Download PDF

Info

Publication number
CN106101408A
CN106101408A CN201610403499.XA CN201610403499A CN106101408A CN 106101408 A CN106101408 A CN 106101408A CN 201610403499 A CN201610403499 A CN 201610403499A CN 106101408 A CN106101408 A CN 106101408A
Authority
CN
China
Prior art keywords
volume
mobile terminal
resistance value
speaker
earphone
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
CN201610403499.XA
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.)
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 CN201610403499.XA priority Critical patent/CN106101408A/en
Publication of CN106101408A publication Critical patent/CN106101408A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

本发明提供一种移动终端及其音量调整方法,该移动终端包括音频播放器件,所述音频播放器件为受话器、耳机或扬声器,该音量调整方法包括:采集所述音频播放器件输入端和输出端的音频信号;根据所述音频播放器件输入端和输出端的音频信号对应的电压值,确定所述音频播放器件的阻抗值;根据所述音频播放器件的阻抗值,调整所述移动终端的音量。本发明中,通过测量音频播放器件的阻抗值,可以识别出移动终端所处的环境,从而根据需要自动调整移动终端的音量,不需要用户手动调整,提高了用户体验。

The present invention provides a mobile terminal and a volume adjustment method thereof. The mobile terminal includes an audio playback device, and the audio playback device is a receiver, an earphone or a loudspeaker. The volume adjustment method includes: collecting the audio from the input end and the output end of the audio playback device Audio signal; determine the impedance value of the audio playback device according to the voltage values corresponding to the audio signals at the input and output ends of the audio playback device; adjust the volume of the mobile terminal according to the impedance value of the audio playback device. In the present invention, by measuring the impedance value of the audio playback device, the environment in which the mobile terminal is located can be identified, thereby automatically adjusting the volume of the mobile terminal as required without manual adjustment by the user, thereby improving user experience.

Description

一种移动终端及其音量调整方法A mobile terminal and its volume adjustment method

技术领域technical field

本发明涉及终端技术领域,尤其涉及一种移动终端及其音量调整方法。The present invention relates to the technical field of terminals, in particular to a mobile terminal and a volume adjustment method thereof.

背景技术Background technique

在手机通话时,可以通过受话器、耳机或扬声器(喇叭)三种音频播放器件播放音频,其中,采用受话器播放音频时手机为手持模式,采用耳机播放音频时手机为耳机模式,采用扬声器播放音频时手机为外放模式。When the mobile phone is talking, the audio can be played through three audio playback devices: receiver, earphone or loudspeaker (speaker). Wherein, the mobile phone is in the handheld mode when the receiver is used to play the audio, and the mobile phone is in the earphone mode when the earphone is used to play the audio. The phone is in external mode.

使用手持模式通话时,在较为安静的环境下,音量合适,但一旦进入噪声较大的环境,例如公共交通场所,人群密集场所等,就难以听清音频信号,用户必须手动调大音量,当用户从噪声较大的环境进入安静环境时,音量又显得过大,还需要手动降低音量。使用耳机模式通话时,当耳机佩戴良好时,音量合适,当耳机未佩戴良好,出现音量泄露时,也会出现听不清音频信号的问题。使用扬声器通话时,当扬声器正常工作时,音量合适,当扬声器被堵住时,同样会出现听不清音频信号的问题。When talking in handheld mode, the volume is appropriate in a relatively quiet environment, but once you enter a noisy environment, such as public transportation places, crowded places, etc., it is difficult to hear the audio signal, and the user must manually increase the volume. When the user enters a quiet environment from a noisy environment, the volume is too loud, and the volume needs to be manually lowered. When using the headset mode to talk, when the headset is worn well, the volume is appropriate. When the headset is not worn well and the volume leaks, the audio signal may not be heard clearly. When using the speaker to talk, when the speaker is working normally, the volume is appropriate. When the speaker is blocked, the audio signal cannot be heard clearly.

出现上述情况时,均需要用户手动调节手机的音量,目前手机的设计中,音量键都在侧面,操作不是很方便,手动调节的操作势必会影响正常通话,使用体验不好。When the above situation occurs, the user needs to manually adjust the volume of the mobile phone. In the current design of the mobile phone, the volume keys are all on the side, which is not very convenient to operate. The manual adjustment operation will inevitably affect the normal call, and the user experience is not good.

发明内容Contents of the invention

有鉴于此,本发明提供一种移动终端及其音量调整方法,用于解决现有的移动终端难以根据使用情况的变化自动调整音量的问题。In view of this, the present invention provides a mobile terminal and a volume adjustment method thereof, which are used to solve the problem that it is difficult for existing mobile terminals to automatically adjust the volume according to changes in use conditions.

为解决上述技术问题,一方面,本发明提供一种移动终端的音量调整方法,所述移动终端包括音频播放器件,所述音频播放器件为受话器、耳机或扬声器,所述方法包括:In order to solve the above technical problem, on the one hand, the present invention provides a volume adjustment method of a mobile terminal, the mobile terminal includes an audio playback device, and the audio playback device is a receiver, earphone or speaker, and the method includes:

采集所述音频播放器件输入端和输出端的音频信号;collecting audio signals at the input and output ends of the audio playback device;

根据所述音频播放器件输入端和输出端的音频信号对应的电压值,确定所述音频播放器件的阻抗值;Determine the impedance value of the audio playback device according to the voltage values corresponding to the audio signals at the input end and the output end of the audio playback device;

根据所述音频播放器件的阻抗值,调整所述移动终端的音量。Adjusting the volume of the mobile terminal according to the impedance value of the audio playback device.

另一方面,本发明还提供一种移动终端,包括音频播放器件,所述音频播放器件为受话器、耳机或扬声器,还包括:On the other hand, the present invention also provides a mobile terminal, including an audio playback device, the audio playback device is a receiver, earphone or speaker, and also includes:

采集模块,用于采集所述音频播放器件输入端和输出端的音频信号;A collection module, configured to collect audio signals at the input and output ends of the audio playback device;

阻抗值测量模块,用于根据所述音频播放器件输入端和输出端的音频信号对应的电压值,确定所述音频播放器件的阻抗值;Impedance value measurement module, used to determine the impedance value of the audio playback device according to the voltage value corresponding to the audio signal at the input end and the output end of the audio playback device;

调整模块,用于根据所述音频播放器件的阻抗值,调整所述移动终端的音量。An adjustment module, configured to adjust the volume of the mobile terminal according to the impedance value of the audio playback device.

本发明的上述技术方案的有益效果如下:The beneficial effects of above-mentioned technical scheme of the present invention are as follows:

通过测量音频播放器件的阻抗值,可以识别出移动终端所处的环境,从而根据需要自动调整移动终端的音量,不需要用户手动调整,提高了用户体验。By measuring the impedance value of the audio playback device, the environment in which the mobile terminal is located can be identified, thereby automatically adjusting the volume of the mobile terminal according to needs, without manual adjustment by the user, and improving user experience.

附图说明Description of drawings

图1-图3为本发明实施例的移动终端所处的手持模式示意图;1-3 are schematic diagrams of the handheld mode of the mobile terminal according to the embodiment of the present invention;

图4-图6为本发明实施例的移动终端处于不同的手持模式时受话器与耳朵之间的腔体的示意图;4-6 are schematic diagrams of the cavity between the receiver and the ear when the mobile terminal is in different handheld modes according to an embodiment of the present invention;

图7为本发明一测试实验中移动终端的受话器的腔体测试结果示意图;FIG. 7 is a schematic diagram of a cavity test result of a receiver of a mobile terminal in a test experiment of the present invention;

附图8为本发明一实施例的移动终端所处的手持模式与音量的对比关系示意图;Accompanying drawing 8 is a schematic diagram of the comparative relationship between the handheld mode and the volume of the mobile terminal in an embodiment of the present invention;

图9为本发明实施例一的移动终端的音量调整方法的流程示意图;FIG. 9 is a schematic flowchart of a volume adjustment method of a mobile terminal according to Embodiment 1 of the present invention;

图10为本发明一实施例的用于测量音频播放器件的阻抗值的电路结构示意图;10 is a schematic diagram of a circuit structure for measuring the impedance value of an audio playback device according to an embodiment of the present invention;

图11为本发明实施例二的移动终端的音量调整方法的流程示意图;11 is a schematic flowchart of a volume adjustment method for a mobile terminal according to Embodiment 2 of the present invention;

图12为本发明实施例三的移动终端的音量调整方法的流程示意图;12 is a schematic flowchart of a volume adjustment method for a mobile terminal according to Embodiment 3 of the present invention;

图13为本发明实施例四的移动终端的音量调整方法的流程示意图;13 is a schematic flowchart of a volume adjustment method for a mobile terminal according to Embodiment 4 of the present invention;

图14为本发明实施例五的移动终端的音量调整方法的流程示意图;14 is a schematic flowchart of a volume adjustment method for a mobile terminal according to Embodiment 5 of the present invention;

图15为本发明实施例六的移动终端的结构示意图;FIG. 15 is a schematic structural diagram of a mobile terminal according to Embodiment 6 of the present invention;

图16为本发明实施例六的移动终端的结构示意图。FIG. 16 is a schematic structural diagram of a mobile terminal according to Embodiment 6 of the present invention.

具体实施方式detailed description

在对本发明实施例的移动终端及其音量调整方法进行说明之前,首先对本发明实施例所采用的原理进行简单介绍。Before describing the mobile terminal and the method for adjusting the volume thereof according to the embodiments of the present invention, the principles adopted in the embodiments of the present invention will be briefly introduced first.

首先需要说明的是,移动终端的音频播放器件例如受话器、耳机和扬声器的阻抗值均是可变的,其根据输入的电信号的频率以及温度等条件的不同,阻抗值会发生变化。First of all, it should be noted that the impedance value of the audio playback device of the mobile terminal such as receiver, earphone and speaker is variable, and the impedance value will change according to the frequency and temperature of the input electrical signal.

以采用受话器播放音频为例,对本发明实施例所采用的原理进行简单介绍。Taking audio playing through a receiver as an example, the principle adopted in the embodiment of the present invention is briefly introduced.

当采用受话器播放音频时(例如在通话时),移动终端通常处于手持模式,即将移动终端靠近用户的耳机使用,请参考图1-图3,根据移动终端与用户耳朵的密封状态不同,移动终端所处的手持模式可以分为以下几种:手持大角度模式(图1)、手持小角度模式(图2)和紧贴模式(图3)。一般正常通话时,是以手持大角度模式和手持小角度模式为主,当觉得声音特别小时,用户会采用紧贴模式进行通话。When the receiver is used to play audio (for example, during a call), the mobile terminal is usually in the handheld mode, that is, the mobile terminal is used close to the user's earphone. Please refer to Figure 1-3. The hand-held modes can be divided into the following types: hand-held large-angle mode (Figure 1), hand-held small-angle mode (Figure 2) and clinging mode (Figure 3). Generally, during normal calls, the hand-held large-angle mode and the hand-held small-angle mode are mainly used. When the sound is particularly low, the user will use the close mode to make a call.

当然,移动终端所处的手持模式还可以为其他的划分方法,例如仅包括两种模式,或者划分的更加精细,包括多于三种的模式。以下实施例中,均已划分成上述三种手持模式为例进行说明。Of course, the handheld mode of the mobile terminal can also be divided into other methods, such as only including two modes, or more finely divided, including more than three modes. In the following embodiments, the above-mentioned three hand-held modes have been divided into examples for illustration.

请参考图4,在移动终端所处的手持模式为紧贴模式时,移动终端与耳朵密封良好,受话器前腔空间小且相对密封。Please refer to FIG. 4 , when the hand-held mode of the mobile terminal is the close-fitting mode, the mobile terminal and the ear are well sealed, and the front cavity of the receiver has a small space and is relatively sealed.

请参考图5,在移动终端所处的手持模式为手持小角度模式时,移动终端与耳朵间有微泄露,受话器前腔空间较小。Please refer to FIG. 5 , when the hand-held mode of the mobile terminal is the hand-held small-angle mode, there is a slight leak between the mobile terminal and the ear, and the space in the front cavity of the receiver is small.

请参考图6,在移动终端所处的手持模式为手持小角度模式时,移动终端与耳朵间有较大泄露,受话器前腔空间与外界连通。Please refer to FIG. 6 , when the hand-held mode of the mobile terminal is the hand-held small-angle mode, there is a large leakage between the mobile terminal and the ear, and the space in the front cavity of the receiver communicates with the outside world.

为了对比上述三种模式的不同,采用腔体测试系统对上述三种模式下,受话器前腔的谐振频率点与受话器的阻抗值的关系进行了测试,根据测试结果得知,不同模式下,在同一谐振频率范围内,受话器的阻抗值不同。In order to compare the differences between the above three modes, the cavity test system was used to test the relationship between the resonant frequency point of the front cavity of the receiver and the impedance value of the receiver under the above three modes. According to the test results, it is known that under different modes, in In the same resonant frequency range, the impedance value of the receiver is different.

请参考图7,图7为本发明一测试实验中移动终端的受话器的腔体测试结果示意图,该实验测试了移动终端处于手持大角度模式和紧贴模式时,受话器前腔的谐振频率点与受话器的阻抗值的关系,图7中,横坐标为受话器腔体的谐振频率点,单位为HZ(赫兹),纵坐标为受话器的阻抗值,单位为Ohm(欧姆)。从图7中可以看出,在同一谐振频率范围内,在不同模式下,受话器的阻抗值不同。Please refer to FIG. 7. FIG. 7 is a schematic diagram of the cavity test results of the receiver of the mobile terminal in a test experiment of the present invention. This experiment tested the resonance frequency point of the front cavity of the receiver and the receiver when the mobile terminal was in the hand-held large-angle mode and the close-fitting mode. In Fig. 7, the abscissa is the resonant frequency point of the receiver cavity, and the unit is HZ (Hertz), and the ordinate is the impedance value of the receiver, and the unit is Ohm (ohm). It can be seen from Figure 7 that within the same resonant frequency range, the impedance values of the receiver are different in different modes.

从上述实验结果可以看出,受话器的阻抗值是与移动终端所处的手持模式相关的,因而,可以通过测量受话器当前的阻抗值,来确定移动终端所处的手持模式,从而判定是否需要调整移动终端的音量,例如,当用户使用手持大角度模式时,说明用户能够听清楚音频,此时可以采用普通音量(例如为最大音量的50%),当用户使用手持小角度模式时,说明音频并不太清楚,此时可以增大移动终端的音量(例如将音量调整为最大音量的75%),当用户使用紧贴模式时,说明音频很不清楚,此时可以进一步增大移动终端的音量(例如将音量设置为最大音量)。请参看附图8,附图8示出了本发明一实施例的移动终端所处的手持模式与音量的对比关系。From the above experimental results, it can be seen that the impedance value of the receiver is related to the handheld mode of the mobile terminal. Therefore, the handheld mode of the mobile terminal can be determined by measuring the current impedance value of the receiver, so as to determine whether it needs to be adjusted. The volume of the mobile terminal, for example, when the user uses the handheld high-angle mode, it means that the user can hear the audio clearly. At this time, the normal volume (for example, 50% of the maximum volume) can be used; when the user uses the handheld small-angle mode, it means that the audio It is not very clear. At this time, you can increase the volume of the mobile terminal (for example, adjust the volume to 75% of the maximum volume). Volume (e.g. set the volume to maximum volume). Please refer to FIG. 8 . FIG. 8 shows a contrastive relationship between the handheld mode of the mobile terminal and the volume according to an embodiment of the present invention.

在具体使用时,用户可以根据实际情况切换手持模式,而移动终端只需通过测量受话器的阻抗值,识别出移动终端对应的手持模式,然后进行音量的切换即可。In specific use, the user can switch the handheld mode according to the actual situation, and the mobile terminal only needs to measure the impedance value of the receiver to identify the corresponding handheld mode of the mobile terminal, and then switch the volume.

上述调整音量的原理同样适用于耳机模式,当耳机佩戴良好时,耳机与耳朵腔室处于相对密封状态,当耳机佩戴出现音量泄露时,耳机与耳朵腔室之间不再密封,此时,耳机的阻抗值会发生变化,通过测量耳机的阻抗值,可以识别出耳机是否佩戴良好,从而进行音量的切换。The above principle of adjusting the volume is also applicable to the earphone mode. When the earphone is worn well, the earphone and the ear chamber are relatively sealed. When the earphone is worn and the volume leaks, the seal between the earphone and the ear chamber is no longer. The impedance value of the earphone will change. By measuring the impedance value of the earphone, it can be identified whether the earphone is worn well, so as to switch the volume.

上述调整音量的原理也适用于外放模式,当扬声器正常工作时,扬声器腔室与外界连通,当扬声器腔室被堵住时,此时,扬声器的阻抗值会发生变化,通过测量扬声器的阻抗值,识别出扬声器是否被堵住,从而进行音量的切换。The above principle of adjusting the volume is also applicable to the loudspeaker mode. When the speaker is working normally, the speaker chamber is connected to the outside world. When the speaker chamber is blocked, the impedance value of the speaker will change at this time. By measuring the impedance of the speaker Value, to identify whether the speaker is blocked, so as to switch the volume.

以下本发明的具体实施例均是基于上述原理得到。The following specific embodiments of the present invention are obtained based on the above principles.

下面将结合附图和实施例,对本发明的具体实施方式作进一步详细描述。以下实施例用于说明本发明,但不用来限制本发明的范围。The specific implementation manner of the present invention will be further described in detail below with reference to the drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

请参考图9,图9为本发明实施例一的移动终端的音量调整方法的流程示意图,该移动终端包括音频播放设备,所述音频播放器件为受话器、耳机或扬声器该音量调整方法包括:Please refer to FIG. 9. FIG. 9 is a schematic flowchart of a volume adjustment method for a mobile terminal according to Embodiment 1 of the present invention. The mobile terminal includes an audio playback device, and the audio playback device is a receiver, earphone or speaker. The volume adjustment method includes:

步骤S101:采集音频播放器件输入端和输出端的音频信号;Step S101: collecting audio signals at the input and output ends of the audio playback device;

步骤S102:根据所述音频播放器件输入端和输出端的音频信号对应的电压值,确定所述音频播放器件的阻抗值;Step S102: Determine the impedance value of the audio playback device according to the voltage values corresponding to the audio signals at the input end and the output end of the audio playback device;

步骤S103:根据所述音频播放器件的阻抗值,调整所述移动终端的音量。Step S103: Adjust the volume of the mobile terminal according to the impedance value of the audio playback device.

本发明实施例中,通过测量音频播放器件的阻抗值,可以识别出移动终端所处的环境,从而根据需要自动调整移动终端的音量,不需要用户手动调整,提高了用户体验。In the embodiment of the present invention, by measuring the impedance value of the audio playback device, the environment in which the mobile terminal is located can be identified, so that the volume of the mobile terminal can be automatically adjusted as required without manual adjustment by the user, which improves user experience.

在本发明的一优选实施例中,所述根据所述音频播放器件输入端和输出端的音频信号对应的电压值,确定所述音频播放器件的阻抗值的步骤可以包括:In a preferred embodiment of the present invention, the step of determining the impedance value of the audio playback device may include:

步骤S1021:从采集的所述音频播放器件输入端和输出端的音频信号中,过滤出预设频率范围内的音频信号;例如,过滤出400HZ的音频信号;Step S1021: Filter out audio signals within a preset frequency range from the collected audio signals at the input and output ends of the audio playback device; for example, filter out 400HZ audio signals;

步骤S1022:获取所述预设频率范围内的音频信号对应的电压值;Step S1022: Obtain the voltage value corresponding to the audio signal within the preset frequency range;

步骤S1023:根据所述电压值,计算所述音频播放器件的阻抗值。Step S1023: Calculate the impedance value of the audio playback device according to the voltage value.

也就是说,在采集音频播放器件输入端和输出端的音频信号时,并非对所有频率的音频信号均进行处理,而是只获取预定频率范围内的音频信号的电压值,从而方便进行比较。That is to say, when collecting the audio signals at the input and output ends of the audio playback device, instead of processing the audio signals at all frequencies, only the voltage values of the audio signals within a predetermined frequency range are obtained, so as to facilitate comparison.

请参考图10,图10为本发明一实施例的用于测量音频播放器件的阻抗值的电路结构示意图,该电路结构包括阻抗值测量模块、带通滤波器、电阻和音频播放器件,其中,阻抗值测量模块包括两个引脚GPIO1和GPIO2,分别于音频播放器件的输入端和输出端连接,音频播放器件与电阻串联。通过带通滤波器过滤所述音频播放器件输入端和输出端的音频信号,得到预设频率范围内(例如350-450HZ)的音频信号,阻抗值测量模块通过GPIO1和GPIO2获取带通滤波器过滤后的所述音频播放器件输入端和输出端的音频信号,将音频信号进行数模转换,转换成电压值,并根据得到的电压值,计算音频播放器件的阻抗值。Please refer to FIG. 10. FIG. 10 is a schematic diagram of a circuit structure for measuring the impedance value of an audio playback device according to an embodiment of the present invention. The circuit structure includes an impedance value measurement module, a bandpass filter, a resistor, and an audio playback device, wherein, The impedance measurement module includes two pins GPIO1 and GPIO2, which are respectively connected to the input end and the output end of the audio playback device, and the audio playback device is connected in series with the resistor. Filter the audio signal at the input and output ends of the audio playback device through a band-pass filter to obtain an audio signal within a preset frequency range (for example, 350-450HZ), and the impedance value measurement module obtains the band-pass filter through GPIO1 and GPIO2 after filtering The audio signal at the input end and the output end of the audio playback device is converted into a voltage value by digital-to-analog conversion, and the impedance value of the audio playback device is calculated according to the obtained voltage value.

阻抗值测量模块可根据如下公式计算所述音频播放器件的阻抗值:The impedance value measurement module can calculate the impedance value of the audio playback device according to the following formula:

RR == VV 11 // 22 // [[ (( VV 11 -- VV 22 )) // rr ]] -- rr

其中,R为所述音频播放器件的阻抗值,V1为所述音频播放器件一端的电压值(GPIO1获取的电压值),V2为所述音频播放器件另一端的电压值(GPIO2获取的电压值),r为与所述音频播放器件串联的电阻的电阻值。Wherein, R is the impedance value of the audio playback device, V1 is the voltage value of one end of the audio playback device (the voltage value obtained by GPIO1), and V2 is the voltage value of the other end of the audio playback device (the voltage value obtained by GPIO2 ), r is the resistance value of the resistor connected in series with the audio playback device.

下面分别针对音频播放器件为受话器、耳机和扬声器时,对应的音量调整方法进行详细说明。The following describes in detail the corresponding volume adjustment methods when the audio playback devices are receivers, earphones, and speakers.

请参考图11,图11为本发明实施例二的移动终端的音量调整方法的流程示意图,本实施例中音频播放器件为受话器,该音量调整方法包括:Please refer to FIG. 11. FIG. 11 is a schematic flowchart of a volume adjustment method for a mobile terminal according to Embodiment 2 of the present invention. In this embodiment, the audio playback device is a receiver. The volume adjustment method includes:

步骤S201:采集所述受话器输入端和输出端的音频信号;Step S201: collecting audio signals at the input and output ends of the receiver;

步骤S202:根据所述受话器输入端和输出端的音频信号对应的电压值,确定所述受话器的阻抗值;Step S202: Determine the impedance value of the receiver according to the voltage values corresponding to the audio signals at the input terminal and the output terminal of the receiver;

步骤S203:根据所述受话器的阻抗值,确定所述移动终端所处的手持模式,所述移动终端所处的手持模式用于表征所述移动终端与用户之间的距离;Step S203: Determine the handheld mode of the mobile terminal according to the impedance value of the receiver, and the handheld mode of the mobile terminal is used to represent the distance between the mobile terminal and the user;

步骤S204:根据所述移动终端所处的手持模式,调整所述移动终端的音量。其中,所述移动终端所处的手持模式表征所述移动终端与用户之间的距离越大时,所述移动终端需要调整到的音量越小,所述移动终端所处的手持模式表征所述移动终端与用户之间的距离越小时,所述移动终端需要调整到的音量越大。Step S204: Adjust the volume of the mobile terminal according to the handheld mode of the mobile terminal. Wherein, the handheld mode of the mobile terminal indicates that the greater the distance between the mobile terminal and the user, the lower the volume that the mobile terminal needs to adjust to, and the handheld mode of the mobile terminal indicates that the The smaller the distance between the mobile terminal and the user, the greater the volume to which the mobile terminal needs to adjust.

本发明实施例中,当采用受话器播放音频时,通过测量受话器的阻抗值,可以得到移动终端所处的手持模式,根据移动终端所处的手持模式,自动调整移动终端的音量,从用户可以根据实际情况切换手持模式,而移动终端只需通过测量受话器的阻抗值,识别出对应的模式,然后进行音量的切换即可,实现方式简单,且能够根据不同环境进行音量的切换,提高了用户体验。In the embodiment of the present invention, when the receiver is used to play audio, the handheld mode of the mobile terminal can be obtained by measuring the impedance value of the receiver, and the volume of the mobile terminal can be automatically adjusted according to the handheld mode of the mobile terminal. The actual situation switches the handheld mode, and the mobile terminal only needs to measure the impedance value of the receiver, identify the corresponding mode, and then switch the volume. The implementation method is simple, and the volume can be switched according to different environments, which improves the user experience. .

请参考图12,图12为本发明实施例三的移动终端的音量调整方法的流程示意图,本实施例中音频播放器件为受话器,该音量调整方法包括:Please refer to FIG. 12. FIG. 12 is a schematic flowchart of a volume adjustment method for a mobile terminal according to Embodiment 3 of the present invention. In this embodiment, the audio playback device is a receiver. The volume adjustment method includes:

步骤S301:采集所述受话器输入端和输出端的音频信号;Step S301: collecting audio signals at the input and output ends of the receiver;

步骤S302:根据所述受话器输入端和输出端的音频信号对应的电压值,确定所述受话器的阻抗值;Step S302: Determine the impedance value of the receiver according to the voltage values corresponding to the audio signals at the input end and the output end of the receiver;

步骤S303:当所述受话器的阻抗值大于第一电阻值时,判定所述移动终端处于手持大角度模式,保持当前的音量不变;Step S303: When the impedance value of the receiver is greater than the first resistance value, it is determined that the mobile terminal is in the handheld large-angle mode, and the current volume remains unchanged;

步骤S304:当所述受话器的阻抗值位于第一电阻值和第二电阻值之间时,判定所述移动终端处于手持小角度模式,将当前的音量增加至第一音量;Step S304: When the impedance value of the receiver is between the first resistance value and the second resistance value, it is determined that the mobile terminal is in the hand-held small angle mode, and the current volume is increased to the first volume;

步骤S305:当所述受话器的阻抗值小于第二电阻值时,判定所述移动终端处于紧贴模式,将当前的音量增加至第二音量,所述第二音量大于第一音量,所述第一电阻值大于第二电阻值。Step S305: When the impedance value of the receiver is less than the second resistance value, it is determined that the mobile terminal is in the sticking mode, and the current volume is increased to a second volume, the second volume is greater than the first volume, and the second volume is greater than the first volume. The first resistance value is greater than the second resistance value.

本发明实施例中,将移动终端的手持模式划分为三种模式,根据测量的受话器的不同阻抗值范围,确定移动终端所处的手持模式,从而调整移动终端的音量。例如,当用户采用手持大角度模式时,说明当前音量足以满足听清的要求,因而可以不必调整音量,当用户从安静环境进入嘈杂环境时,当前音量可能难以满足听清的要求,因而用户可将移动终端切换为手持小角度模式或者紧贴模式,此时,通过测量受话器的阻抗值的变化,可增大移动终端的音量,使得音量可满足用户要求。In the embodiment of the present invention, the handheld mode of the mobile terminal is divided into three modes, and the handheld mode of the mobile terminal is determined according to different impedance value ranges of the measured receiver, thereby adjusting the volume of the mobile terminal. For example, when the user adopts the handheld large-angle mode, it means that the current volume is sufficient to meet the requirements of hearing clearly, so there is no need to adjust the volume; when the user enters a noisy environment from a quiet environment, the current volume may not meet the requirements of hearing clearly, so the user can Switch the mobile terminal to the hand-held small-angle mode or close-fitting mode. At this time, by measuring the change of the impedance value of the receiver, the volume of the mobile terminal can be increased so that the volume can meet the user's requirements.

上述实施例中,不同结构的受话器,在相同的手持模式和腔体谐振频率点下,对应的阻抗值也可能不同,因而,需要提前测试出手持大角度模式、手持小角度模式和紧贴模式对应的阻抗值,将对应的关系预先存储在移动终端中,再进行后续的模式判断。或者,也可以通过软件预设,让用户使用三种模式后系统自动测量得出对应的关系,并存储。In the above embodiments, receivers with different structures may have different corresponding impedance values at the same handheld mode and cavity resonance frequency point. Therefore, it is necessary to test the handheld large-angle mode, handheld small-angle mode and close-fitting mode in advance. For the corresponding impedance value, the corresponding relationship is pre-stored in the mobile terminal, and then the subsequent mode judgment is performed. Alternatively, software presets can be used to allow users to use the three modes and the system will automatically measure the corresponding relationship and store it.

请参考图13,图13为本发明实施例四的移动终端的音量调整方法的流程示意图,本实施例中音频播放器件为耳机,该音量调整方法包括:Please refer to FIG. 13. FIG. 13 is a schematic flowchart of a volume adjustment method for a mobile terminal according to Embodiment 4 of the present invention. In this embodiment, the audio playback device is an earphone. The volume adjustment method includes:

步骤S401:采集所述耳机输入端和输出端的音频信号;Step S401: collecting the audio signals of the earphone input terminal and output terminal;

步骤S402:根据所述耳机输入端和输出端的音频信号对应的电压值,确定所述耳机的阻抗值;Step S402: Determine the impedance value of the earphone according to the voltage values corresponding to the audio signals at the input end and the output end of the earphone;

步骤S403:根据所述耳机的阻抗值,确定所述耳机的音量是否产生泄露;Step S403: According to the impedance value of the earphone, determine whether the volume of the earphone leaks;

具体的,可以将耳机的阻抗值与一预定值进行比较,当耳机的阻抗值小于预定值时,判定耳机未产生泄露,当耳机的阻抗值不小于预定值时,判定耳机产生泄露。Specifically, the impedance value of the earphone can be compared with a predetermined value. When the impedance value of the earphone is less than the predetermined value, it is determined that the earphone has no leakage. When the impedance value of the earphone is not less than the predetermined value, it is determined that the earphone has leaked.

步骤S404:当所述耳机的音量产生泄露时,增大所述移动终端的音量。Step S404: When the volume of the earphone leaks, increase the volume of the mobile terminal.

步骤S405:当所述耳机的音量未产生泄露时,保持所述移动终端的音量不变。Step S405: When the volume of the earphone does not leak, keep the volume of the mobile terminal unchanged.

本发明实施例中,当采用耳机播放音频时,通过测量耳机的阻抗值,可以得到耳机的音量是否产生泄露,即耳机是否佩戴良好,当耳机的音量产生泄露时,自动增大移动终端的音量,以满足用户的需求。In the embodiment of the present invention, when the earphone is used to play audio, by measuring the impedance value of the earphone, it can be obtained whether the volume of the earphone leaks, that is, whether the earphone is worn well, and when the volume of the earphone leaks, the volume of the mobile terminal is automatically increased , to meet the needs of users.

在本发明的另一实施例中,当确定耳机的音量产生泄露,增大所述移动终端的音量之后,还可以继续采集所述耳机输入端和输出端的音频信号,根据所述耳机输入端和输出端的音频信号对应的电压值,确定所述耳机的阻抗值,根据所述耳机的阻抗值,确定所述耳机的音量是否产生泄露;当所述耳机的音量仍产生泄露时,保持增大后的所述移动终端的音量不变。当所述耳机的音量不再产生泄露时,降低述移动终端的音量。In another embodiment of the present invention, when it is determined that the volume of the earphones is leaking and the volume of the mobile terminal is increased, the audio signals at the input and output ends of the earphones may continue to be collected. The voltage value corresponding to the audio signal at the output end determines the impedance value of the earphone, and determines whether the volume of the earphone leaks according to the impedance value of the earphone; when the volume of the earphone still leaks, keep increasing The volume of the mobile terminal remains unchanged. When the volume of the earphone no longer leaks, the volume of the mobile terminal is decreased.

本发明实施例中,通过测量耳机的阻抗值,可以得到耳机的音量是否产生泄露,即耳机是否佩戴良好,当耳机的音量产生泄露时,自动增大移动终端的音量,当后续检测到耳机的音量不再产生泄露时,说明用户已将耳机重新佩戴良好,可自动降低移动终端的音量,以提高用户体验。In the embodiment of the present invention, by measuring the impedance value of the earphone, it can be obtained whether the volume of the earphone leaks, that is, whether the earphone is worn well. When the volume of the earphone leaks, the volume of the mobile terminal is automatically increased. When the volume no longer leaks, it means that the user has put on the earphone well again, and the volume of the mobile terminal can be automatically reduced to improve user experience.

请参考图14,图14为本发明实施例五的移动终端的音量调整方法的流程示意图,本实施例中音频播放器件为扬声器,该音量调整方法包括:Please refer to FIG. 14. FIG. 14 is a schematic flowchart of a volume adjustment method for a mobile terminal according to Embodiment 5 of the present invention. In this embodiment, the audio playback device is a speaker. The volume adjustment method includes:

步骤S501:采集所述扬声器输入端和输出端的音频信号;Step S501: collecting audio signals at the input end and the output end of the loudspeaker;

步骤S502:根据所述扬声器输入端和输出端的音频信号对应的电压值,确定所述扬声器的阻抗值;Step S502: Determine the impedance value of the speaker according to the voltage values corresponding to the audio signals at the input end and the output end of the speaker;

步骤S503:根据所述扬声器的阻抗值,判断所述扬声器是否被堵住;Step S503: According to the impedance value of the speaker, determine whether the speaker is blocked;

具体的,可以将扬声器的阻抗值与一预定值进行比较,当扬声器的阻抗值小于预定值时,判定扬声器被堵住,当扬声器的阻抗值不小于预定值时,判定耳机未被堵住。Specifically, the impedance value of the speaker can be compared with a predetermined value. When the impedance value of the speaker is less than the predetermined value, it is determined that the speaker is blocked. When the impedance value of the speaker is not less than the predetermined value, it is determined that the earphone is not blocked.

步骤S504:当所述扬声器被堵住时,增大所述移动终端的音量。Step S504: When the speaker is blocked, increase the volume of the mobile terminal.

步骤S506:当所述扬声器未被堵住时,保持所述移动终端的音量不变。Step S506: When the speaker is not blocked, keep the volume of the mobile terminal unchanged.

本发明实施例中,当采用扬声器播放音频时,通过测量扬声器的阻抗值,可以得到扬声器是否被堵住,当扬声器被堵住时,自动增大移动终端的音量,以满足用户的需求。In the embodiment of the present invention, when the speaker is used to play audio, by measuring the impedance value of the speaker, it can be obtained whether the speaker is blocked, and when the speaker is blocked, the volume of the mobile terminal is automatically increased to meet the user's needs.

在本发明的另一实施例中,当判断所述扬声器被堵住,增大所述移动终端的音量之后,还可以继续采集所述扬声器输入端和输出端的音频信号,根据所述扬声器输入端和输出端的音频信号对应的电压值,确定所述扬声器的阻抗值,根据所述扬声器的阻抗值,判断所述扬声器是否被堵住,当所述扬声器仍被堵住时,保持增大后的所述移动终端的音量不变,当所述扬声器不再被堵住时,降低所述移动终端的音量。In another embodiment of the present invention, when it is judged that the speaker is blocked and the volume of the mobile terminal is increased, the audio signals at the input and output ends of the speaker may be continuously collected. The voltage value corresponding to the audio signal at the output end determines the impedance value of the speaker, and judges whether the speaker is blocked according to the impedance value of the speaker. When the speaker is still blocked, keep the increased The volume of the mobile terminal remains unchanged, and when the speaker is no longer blocked, the volume of the mobile terminal is decreased.

本发明实施例中,通过测量扬声器的阻抗值,可以得到扬声器是否被堵住,当扬声器被堵住时,自动增大移动终端的音量,当后续检测到扬声器不再被堵住时,可自动降低移动终端的音量,以提高用户体验。In the embodiment of the present invention, by measuring the impedance value of the speaker, it can be obtained whether the speaker is blocked. When the speaker is blocked, the volume of the mobile terminal will be automatically increased. When it is detected that the speaker is no longer blocked, it will be automatically Reduce the volume of the mobile terminal to improve user experience.

在本发明的另一实施例中,当判断出所述扬声器被堵住时,还可以对用户进行提示,以使得用户可以进行对应的处理,进一步提高了用户的体验。In another embodiment of the present invention, when it is determined that the speaker is blocked, a prompt may also be given to the user, so that the user can perform corresponding processing, which further improves user experience.

优选地,可以通过开启移动终端摄像头的闪光灯对用户进行提示。Preferably, the user may be prompted by turning on the flash light of the camera of the mobile terminal.

上述各实施例中,移动终端可以为手机,或者是其他能够播放音频信号的电子设备,当移动终端为手机时,上述的音量调整方法可应用于手机通话时,或者应用于即时信息通信软件的通信时,例如,通过微信聊天时。In the above-mentioned embodiments, the mobile terminal can be a mobile phone, or other electronic equipment capable of playing audio signals. When the mobile terminal is a mobile phone, the above-mentioned volume adjustment method can be applied to a mobile phone call, or to instant messaging software. When communicating, for example, when chatting via WeChat.

当上述音量调整方法应用于手机通话时,在建立通话后,可以先自动设置一个默认音量,然后根据测量到的音频播放器件的阻抗值,进行音量的调整,当然,也可以不采用默认音量,而是采用移动终端上一次调整后的音量作为初始音量。When the above volume adjustment method is applied to a mobile phone call, after the call is established, a default volume can be automatically set first, and then the volume can be adjusted according to the measured impedance value of the audio playback device. Of course, the default volume can also not be used. Instead, the last adjusted volume of the mobile terminal is used as the initial volume.

请参考图15,图15为本发明实施例六的移动终端的结构示意图,该移动终端包括音频播放器件,所述音频播放器件为受话器、耳机或扬声器,还包括:Please refer to FIG. 15. FIG. 15 is a schematic structural diagram of a mobile terminal according to Embodiment 6 of the present invention. The mobile terminal includes an audio playback device, and the audio playback device is a receiver, earphone or speaker, and further includes:

采集模块,用于采集所述音频播放器件输入端和输出端的音频信号;A collection module, configured to collect audio signals at the input and output ends of the audio playback device;

阻抗值测量模块,用于根据所述音频播放器件输入端和输出端的音频信号对应的电压值,确定所述音频播放器件的阻抗值;Impedance value measurement module, used to determine the impedance value of the audio playback device according to the voltage value corresponding to the audio signal at the input end and the output end of the audio playback device;

调整模块,用于根据所述音频播放器件的阻抗值,调整所述移动终端的音量。An adjustment module, configured to adjust the volume of the mobile terminal according to the impedance value of the audio playback device.

本发明实施例中,通过测量用于播放音频信号的音频播放器件的阻抗值,可以得出移动终端所处的状态,从而根据移动终端所处的状态,自动调整移动终端的音量,不需要用户手动调整音量,提高了用户体验。In the embodiment of the present invention, by measuring the impedance value of the audio playback device used to play the audio signal, the state of the mobile terminal can be obtained, so that the volume of the mobile terminal can be automatically adjusted according to the state of the mobile terminal, without the need for the user to Manual volume adjustment improves user experience.

在本发明的一优选实施例中,所述阻抗值测量模块包括:In a preferred embodiment of the present invention, the impedance measurement module includes:

带通滤波器,用于从采集的所述音频播放器件输入端和输出端的音频信号中,过滤出预设频率范围内的音频信号;A band-pass filter, configured to filter out audio signals within a preset frequency range from the collected audio signals at the input and output ends of the audio playback device;

电压值获取单元,用于获取所述预设频率范围内的音频信号对应的电压值;a voltage value acquisition unit, configured to acquire a voltage value corresponding to an audio signal within the preset frequency range;

计算单元,用于根据所述电压值,计算所述音频播放器件的阻抗值。The calculation unit is used to calculate the impedance value of the audio playback device according to the voltage value.

具体的,所述计算单元根据如下公式计算所述音频播放器件的阻抗值:Specifically, the calculation unit calculates the impedance value of the audio playback device according to the following formula:

RR == VV 11 // 22 // [[ (( VV 11 -- VV 22 )) // rr ]] -- rr

其中,R为所述音频播放器件的阻抗值,V1为所述音频播放器件一端的电压值,V2为所述音频播放器件另一端的电压值,r为与所述音频播放器件串联的电阻的电阻值。Wherein, R is the impedance value of described audio playback device, V1 is the voltage value of one end of described audio playback device, V2 is the voltage value of the other end of described audio playback device, r is the resistance of the resistance connected in series with described audio playback device resistance.

当所述音频播放器件为受话器时,所述调整模块包括:When the audio playback device is a receiver, the adjustment module includes:

第一调整单元,用于根据所述受话器的阻抗值,确定所述移动终端所处的手持模式,根据所述移动终端所处的手持模式,调整所述移动终端的音量,所述移动终端所处的手持模式用于表征所述移动终端与用户之间的距离。The first adjustment unit is configured to determine the handheld mode of the mobile terminal according to the impedance value of the receiver, adjust the volume of the mobile terminal according to the handheld mode of the mobile terminal, and the mobile terminal is in the handheld mode. The handheld mode at is used to represent the distance between the mobile terminal and the user.

在本发明的一优选实施例中,所述手持模式包括:手持大角度模式、手持小角度模式和紧贴模式,In a preferred embodiment of the present invention, the hand-held modes include: hand-held large-angle mode, hand-held small-angle mode and clinging mode,

所述第一调整单元具体用于当所述受话器的阻抗值大于第一电阻值时,判定所述移动终端处于手持大角度模式,保持当前的音量不变;当所述受话器的阻抗值位于第一电阻值和第二电阻值之间时,判定所述移动终端处于手持小角度模式,将当前的音量增加至第一音量;当所述受话器的阻抗值小于第二电阻值时,判定所述移动终端处于紧贴模式,将当前的音量增加至第二音量,所述第二音量大于第一音量,所述第一电阻值大于第二电阻值。The first adjustment unit is specifically used to determine that the mobile terminal is in the handheld large-angle mode when the impedance value of the receiver is greater than the first resistance value, and keep the current volume unchanged; when the impedance value of the receiver is at the first resistance value When the resistance value is between the first resistance value and the second resistance value, it is determined that the mobile terminal is in the hand-held small angle mode, and the current volume is increased to the first volume; when the impedance value of the receiver is less than the second resistance value, it is determined that the The mobile terminal is in the sticking mode, and the current volume is increased to a second volume, the second volume is greater than the first volume, and the first resistance value is greater than the second resistance value.

当所述音频播放器件为耳机时,所述调整模块包括:When the audio playback device is an earphone, the adjustment module includes:

音量泄露确定单元,用于根据所述耳机的阻抗值,确定所述耳机的音量是否产生泄露;a volume leakage determining unit, configured to determine whether the volume of the earphone leaks according to the impedance value of the earphone;

第二调整单元,用于当所述耳机的音量产生泄露时,增大所述移动终端的音量。The second adjusting unit is configured to increase the volume of the mobile terminal when the volume of the earphone leaks.

优选地,所述调整模块还包括:Preferably, the adjustment module also includes:

第一控制单元,用于控制所述采集模块继续采集所述耳机输入端和输出端的音频信号,以及控制所述阻抗值测量模块根据所述耳机输入端和输出端的音频信号对应的电压值,确定所述耳机的阻抗值;以及控制所述音量泄露确定单元根据所述耳机的阻抗值,确定所述耳机的音量是否产生泄露;The first control unit is used to control the collection module to continue to collect the audio signals of the earphone input end and output end, and control the impedance value measurement module to determine according to the voltage value corresponding to the audio signal of the earphone input end and output end the impedance value of the earphone; and controlling the volume leakage determination unit to determine whether the volume of the earphone leaks according to the impedance value of the earphone;

第三调整单元,用于当所述耳机的音量不再泄露时,降低所述移动终端的音量。The third adjustment unit is configured to reduce the volume of the mobile terminal when the volume of the earphone no longer leaks.

当播放音频信号的音频播放器件为扬声器时,所述调整模块包括:When the audio playback device that plays the audio signal is a loudspeaker, the adjustment module includes:

判断单元,用于根据所述扬声器的阻抗值,判断所述扬声器是否被堵住;a judging unit, configured to judge whether the speaker is blocked according to the impedance value of the speaker;

第四调整单元,用于当所述扬声器被堵住时,增大所述移动终端的音量。The fourth adjustment unit is configured to increase the volume of the mobile terminal when the speaker is blocked.

优选地,所述调整模块还包括:Preferably, the adjustment module also includes:

第二控制单元,用于控制所述采集模块继续采集所述扬声器输入端和输出端的音频信号,以及控制所述阻抗值测量模块根据所述扬声器输入端和输出端的音频信号对应的电压值,确定所述扬声器的阻抗值;以及控制所述判断单元根据所述扬声器的阻抗值,确定所述扬声器的音量是否产生泄露;The second control unit is used to control the collection module to continue to collect the audio signals at the input end and the output end of the speaker, and control the impedance measurement module to determine according to the voltage values corresponding to the audio signals at the input end and the output end of the speaker the impedance value of the speaker; and controlling the judging unit to determine whether the volume of the speaker leaks according to the impedance value of the speaker;

第五调整单元,用于当所述扬声器不再被堵住时,降低所述移动终端的音量。The fifth adjustment unit is configured to reduce the volume of the mobile terminal when the speaker is no longer blocked.

优选地,所述移动终端还包括:Preferably, the mobile terminal further includes:

提示模块,用于当所述扬声器被堵住时,对用户进行提示。The prompting module is used for prompting the user when the speaker is blocked.

优选地,所述提示模块用于当所述扬声器被堵住时,开启移动终端摄像头的闪光灯对用户进行提示。Preferably, the prompting module is used to prompt the user by turning on the flash light of the camera of the mobile terminal when the speaker is blocked.

请参考图16,图16为本发明实施例七的移动终端的结构示意图,所述移动终端包括:CPU(中央处理器),CODEC(编译码器)平台,ADC(数模转换器)采样模块和受话器,其中,CPU控制平台CODEC平台输出音频信号至受话器,由受话器正常播放音频。而,ADC采样模块用于采集所述受话器输入端和输出端的音频信号,并进行数模转换后发送给CPU,由CPU根据所述音频播放器件输入端和输出端的音频信号对应的电压值,确定所述音频播放器件的阻抗值,根据所述音频播放器件的阻抗值,调整所述移动终端的音量。具体的,CPU控制平台CODEC平台输出音量增益。Please refer to FIG. 16. FIG. 16 is a schematic structural diagram of a mobile terminal according to Embodiment 7 of the present invention. The mobile terminal includes: a CPU (central processing unit), a CODEC (codec) platform, and an ADC (digital-to-analog converter) sampling module and a receiver, wherein the CPU controls the platform CODEC platform to output audio signals to the receiver, and the receiver plays the audio normally. And, ADC sampling module is used for collecting the audio signal of described receiver input end and output end, and sends to CPU after carrying out digital-to-analog conversion, by CPU according to the voltage value corresponding to the audio signal of described audio playback device input end and output end, determine The impedance value of the audio playback device is used to adjust the volume of the mobile terminal according to the impedance value of the audio playback device. Specifically, the CPU controls the output volume gain of the platform CODEC platform.

本发明实施例中,ADC采样模块执行上述实施例中的CPU执行上述实施例中采集模块执行的功能,而CPU执行上述实施例中的阻抗值测量模块和调整模块执行的功能。In the embodiment of the present invention, the ADC sampling module performs the functions performed by the CPU in the above embodiments, and the CPU performs the functions performed by the impedance measurement module and the adjustment module in the above embodiments.

其中,当CODEC平台自带的ADC模块时,上述ADC采样模块可以采用CODEC平台自带的ADC模块实现,从而不增加硬件成本。当然,也可以通过新增独立的ADC采用模块实现。Wherein, when the CODEC platform comes with an ADC module, the above-mentioned ADC sampling module can be realized by using the ADC module that comes with the CODEC platform, so as not to increase the hardware cost. Of course, it can also be implemented by adding an independent ADC module.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (22)

1. a method for regulation of sound volume for mobile terminal, described mobile terminal includes audio player part, described audio player Part is receiver, earphone or speaker, it is characterised in that described method includes:
Gather described audio player part input and the audio signal of outfan;
According to the magnitude of voltage that described audio player part input is corresponding with the audio signal of outfan, determine that described audio frequency is play The resistance value of device;
According to the resistance value of described audio player part, adjust the volume of described mobile terminal.
The method for regulation of sound volume of mobile terminal the most according to claim 1, it is characterised in that described broadcast according to described audio frequency Put the magnitude of voltage that device input is corresponding with the audio signal of outfan, determine the step of the resistance value of described audio player part Including:
From the audio signal of described collection, filter out the audio signal in the range of predeterminated frequency;
Obtain the magnitude of voltage that the audio signal in the range of described predeterminated frequency is corresponding;
According to described magnitude of voltage, calculate the resistance value of described audio player part.
The method for regulation of sound volume of mobile terminal the most according to claim 2, it is characterised in that calculate institute according to equation below State the resistance value of audio player part:
R = V 1 / 2 / [ ( V 1 - V 2 ) / r ] - r
Wherein, R is the resistance value of described audio player part, and V1 is the magnitude of voltage of described audio player part one end, and V2 is institute Stating the magnitude of voltage of the audio player part other end, r is the resistance value of the resistance connected with described audio player part.
The method for regulation of sound volume of mobile terminal the most according to claim 1, it is characterised in that when described audio player part During for receiver, the described resistance value according to described audio player part, the step of the volume adjusting described mobile terminal includes:
According to the resistance value of described receiver, determine the hand-held mode residing for described mobile terminal, residing for described mobile terminal Hand-held mode is for characterizing the distance between described mobile terminal and user;
According to the hand-held mode residing for described mobile terminal, adjust the volume of described mobile terminal.
The method for regulation of sound volume of mobile terminal the most according to claim 4, it is characterised in that described hand-held mode includes: Hand-held wide-angle pattern, hand-held low-angle pattern and be close to pattern;The described resistance value according to described audio player part, adjusts The step of the volume of described mobile terminal includes:
When the resistance value of described receiver is more than the first resistance value, it is determined that described mobile terminal is in hand-held wide-angle pattern, The volume keeping current is constant;
When the resistance value of described receiver is between the first resistance value and the second resistance value, it is determined that described mobile terminal is in Hand-held low-angle pattern, increases to the first volume by current volume;
When the resistance value of described receiver is less than the second resistance value, it is determined that described mobile terminal is in is close to pattern, will be current Volume increase to the second volume, described second volume be more than the first volume, described first resistance value be more than the second resistance value.
The method for regulation of sound volume of mobile terminal the most according to claim 1, it is characterised in that when described audio player part During for earphone, the described resistance value according to described audio player part, the step of the volume adjusting described mobile terminal includes:
According to the resistance value of described earphone, determine whether the volume of described earphone produces leakage;
When the volume of described earphone produces and reveals, increase the volume of described mobile terminal.
The method for regulation of sound volume of mobile terminal the most according to claim 6, it is characterised in that described increase is described mobile whole After the step of the volume of end, also include:
Continue to gather described earphone input and the audio signal of outfan;
According to the magnitude of voltage that described earphone input is corresponding with the audio signal of outfan, determine the resistance value of described earphone;
According to the resistance value of described earphone, determine whether the volume of described earphone produces leakage;
When the volume of described earphone is no longer revealed, reduce the volume of described mobile terminal.
The method for regulation of sound volume of mobile terminal the most according to claim 1, it is characterised in that when the sound of playing audio signal When frequency broadcasting device is speaker, the described resistance value according to described audio player part, adjust the volume of described mobile terminal Step include:
Resistance value according to described speaker, it is judged that whether described speaker is plugged;
When described speaker is plugged, increase the volume of described mobile terminal.
The method for regulation of sound volume of mobile terminal the most according to claim 8, it is characterised in that described increase is described mobile whole After the step of the volume of end, also include:
Continue to gather described loudspeaker input terminal and the audio signal of outfan;
According to the magnitude of voltage that described loudspeaker input terminal is corresponding with the audio signal of outfan, determine the impedance of described speaker Value;
Resistance value according to described speaker, it is judged that whether described speaker is plugged;
When described speaker is no longer plugged, reduce the volume of described mobile terminal.
The method for regulation of sound volume of mobile terminal the most according to claim 8, it is characterised in that also include:
When described speaker is plugged, user is pointed out.
The method for regulation of sound volume of 11. mobile terminals according to claim 10, it is characterised in that when described speaker is blocked When living, user is pointed out by the flash lamp opening described mobile terminal camera.
12. 1 kinds of mobile terminals, including audio player part, described audio player part is receiver, earphone or speaker, its It is characterised by, also includes:
Acquisition module, for gathering described audio player part input and the audio signal of outfan;
Impedance value measurement module, for the voltage corresponding with the audio signal of outfan according to described audio player part input Value, determines the resistance value of described audio player part;
Adjusting module, for the resistance value according to described audio player part, adjusts the volume of described mobile terminal.
13. mobile terminals according to claim 12, it is characterised in that described impedance value measurement module includes:
Band filter, for the audio signal from the described audio player part input gathered and outfan, filters out Audio signal in the range of predeterminated frequency;
Magnitude of voltage acquiring unit, for obtaining the magnitude of voltage that the audio signal in the range of described predeterminated frequency is corresponding;
Computing unit, for according to described magnitude of voltage, calculates the resistance value of described audio player part.
14. mobile terminals according to claim 13, it is characterised in that described computing unit calculates institute according to equation below State the resistance value of audio player part:
R = V 1 / 2 / [ ( V 1 - V 2 ) / r ] - r
Wherein, R is the resistance value of described audio player part, and V1 is the magnitude of voltage of described audio player part one end, and V2 is institute Stating the magnitude of voltage of the audio player part other end, r is the resistance value of the resistance connected with described audio player part.
15. mobile terminals according to claim 12, it is characterised in that when described audio player part is receiver, Described adjusting module includes:
First adjustment unit, for the resistance value according to described receiver, determines the hand-held mode residing for described mobile terminal, root According to the hand-held mode residing for described mobile terminal, adjust the volume of described mobile terminal, the hand-held mould residing for described mobile terminal Formula is for characterizing the distance between described mobile terminal and user.
16. mobile terminals according to claim 15, it is characterised in that described hand-held mode includes: hand-held wide-angle mould Formula, hand-held low-angle pattern and be close to pattern,
Described first adjustment unit is specifically for when the resistance value of described receiver is more than the first resistance value, it is determined that described movement Terminal is in hand-held wide-angle pattern, and the volume keeping current is constant;When the resistance value of described receiver is positioned at the first resistance value And second between resistance value time, it is determined that described mobile terminal is in hand-held low-angle pattern, and current volume is increased to first Volume;When the resistance value of described receiver is less than the second resistance value, it is determined that described mobile terminal is in is close to pattern, will be current Volume increase to the second volume, described second volume be more than the first volume, described first resistance value be more than the second resistance value.
17. mobile terminals according to claim 12, it is characterised in that when described audio player part is earphone, institute State adjusting module to include:
Volume is revealed and is determined unit, for the resistance value according to described earphone, determines whether the volume of described earphone produces leakage;
Second adjustment unit, for when the volume of described earphone produces and reveals, increasing the volume of described mobile terminal.
18. mobile terminals according to claim 17, it is characterised in that described adjusting module also includes:
First control unit, continues to gather the audio frequency letter of described earphone input and outfan for controlling described acquisition module Number, and control described impedance value measurement module according to the described earphone input voltage corresponding with the audio signal of outfan Value, determines the resistance value of described earphone;And control described volume reveal determine the unit resistance value according to described earphone, determine Whether the volume of described earphone produces leakage;
3rd adjustment unit, when the volume of described earphone is no longer revealed, reduces the volume of described mobile terminal.
19. mobile terminals according to claim 12, it is characterised in that when the audio player part of playing audio signal is During speaker, described adjusting module includes:
Judging unit, for the resistance value according to described speaker, it is judged that whether described speaker is plugged;
4th adjustment unit, for when described speaker is plugged, increases the volume of described mobile terminal.
20. mobile terminals according to claim 19, it is characterised in that described adjusting module also includes:
Second control unit, continues to gather the audio frequency letter of described loudspeaker input terminal and outfan for controlling described acquisition module Number, and control described impedance value measurement module according to the described loudspeaker input terminal voltage corresponding with the audio signal of outfan Value, determines the resistance value of described speaker;And control the described judging unit resistance value according to described speaker, determine described Whether the volume of speaker produces leakage;
5th adjustment unit, for when described speaker is no longer plugged, reduces the volume of described mobile terminal.
21. mobile terminals according to claim 19, it is characterised in that also include:
Reminding module, for when described speaker is plugged, points out user.
The method for regulation of sound volume of 22. mobile terminals according to claim 21, it is characterised in that described reminding module is used for When described speaker is plugged, user is pointed out by the flash lamp opening described mobile terminal camera.
CN201610403499.XA 2016-06-08 2016-06-08 A kind of mobile terminal and method for regulation of sound volume thereof Pending CN106101408A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610403499.XA CN106101408A (en) 2016-06-08 2016-06-08 A kind of mobile terminal and method for regulation of sound volume thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610403499.XA CN106101408A (en) 2016-06-08 2016-06-08 A kind of mobile terminal and method for regulation of sound volume thereof

Publications (1)

Publication Number Publication Date
CN106101408A true CN106101408A (en) 2016-11-09

Family

ID=57228963

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610403499.XA Pending CN106101408A (en) 2016-06-08 2016-06-08 A kind of mobile terminal and method for regulation of sound volume thereof

Country Status (1)

Country Link
CN (1) CN106101408A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107436751A (en) * 2017-08-18 2017-12-05 广东欧珀移动通信有限公司 Volume adjustment method, device, terminal equipment and storage medium
CN107484081A (en) * 2017-07-27 2017-12-15 努比亚技术有限公司 A kind of method of adjustment of audio signal, device, terminal and computer-readable recording medium
CN107506169A (en) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 Volume adjustment method, device, terminal equipment and storage medium
CN108063999A (en) * 2017-11-14 2018-05-22 维沃移动通信有限公司 A kind of dust-proof network detecting method, mobile terminal
WO2019033435A1 (en) * 2017-08-18 2019-02-21 广东欧珀移动通信有限公司 Sound volume adjustment method and apparatus, mobile terminal, and storage medium
CN110418232A (en) * 2019-07-10 2019-11-05 Oppo广东移动通信有限公司 Volume adjusting method and device and computer readable storage medium
CN111930335A (en) * 2020-07-28 2020-11-13 Oppo广东移动通信有限公司 Sound adjusting method and device, computer readable medium and terminal equipment
CN112804607A (en) * 2020-12-24 2021-05-14 歌尔光学科技有限公司 Tone quality adjusting method and device and tone quality adjustable earphone
CN117061949A (en) * 2023-10-08 2023-11-14 荣耀终端有限公司 Headphone volume adjustment method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1523218A1 (en) * 2003-10-10 2005-04-13 Sony Ericsson Mobile Communications AB Method of controlling a loudspeaker system and device incorporating such control
CN101449594A (en) * 2006-03-24 2009-06-03 索尼爱立信移动通讯股份有限公司 Adaptive speaker equalization
CN102461206A (en) * 2009-06-17 2012-05-16 索尼爱立信移动通讯有限公司 Portable communication device and a method of processing signals therein
CN102202252B (en) * 2011-05-06 2014-09-24 广州励丰文化科技股份有限公司 Intelligent management system of active loudspeakers
CN104515659A (en) * 2014-12-08 2015-04-15 歌尔声学股份有限公司 Quality factor-based device and method for detecting loudspeaker module sealing
CN104683926A (en) * 2013-07-07 2015-06-03 Dsp集团有限公司 Speech intelligibility detection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1523218A1 (en) * 2003-10-10 2005-04-13 Sony Ericsson Mobile Communications AB Method of controlling a loudspeaker system and device incorporating such control
CN101449594A (en) * 2006-03-24 2009-06-03 索尼爱立信移动通讯股份有限公司 Adaptive speaker equalization
CN102461206A (en) * 2009-06-17 2012-05-16 索尼爱立信移动通讯有限公司 Portable communication device and a method of processing signals therein
CN102202252B (en) * 2011-05-06 2014-09-24 广州励丰文化科技股份有限公司 Intelligent management system of active loudspeakers
CN104683926A (en) * 2013-07-07 2015-06-03 Dsp集团有限公司 Speech intelligibility detection
CN104515659A (en) * 2014-12-08 2015-04-15 歌尔声学股份有限公司 Quality factor-based device and method for detecting loudspeaker module sealing

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107484081A (en) * 2017-07-27 2017-12-15 努比亚技术有限公司 A kind of method of adjustment of audio signal, device, terminal and computer-readable recording medium
CN110731087A (en) * 2017-08-18 2020-01-24 Oppo广东移动通信有限公司 Volume adjustment method, device, mobile terminal and storage medium
CN107506169A (en) * 2017-08-18 2017-12-22 广东欧珀移动通信有限公司 Volume adjustment method, device, terminal equipment and storage medium
CN107436751A (en) * 2017-08-18 2017-12-05 广东欧珀移动通信有限公司 Volume adjustment method, device, terminal equipment and storage medium
WO2019033435A1 (en) * 2017-08-18 2019-02-21 广东欧珀移动通信有限公司 Sound volume adjustment method and apparatus, mobile terminal, and storage medium
CN110731087B (en) * 2017-08-18 2023-11-10 Oppo广东移动通信有限公司 Volume adjusting method and device, mobile terminal and storage medium
CN108063999A (en) * 2017-11-14 2018-05-22 维沃移动通信有限公司 A kind of dust-proof network detecting method, mobile terminal
WO2021004334A1 (en) * 2019-07-10 2021-01-14 Oppo广东移动通信有限公司 Volume adjustment method and device and computer-readable storage medium
CN110418232B (en) * 2019-07-10 2021-09-24 Oppo广东移动通信有限公司 Method and device for volume adjustment, and computer-readable storage medium
CN110418232A (en) * 2019-07-10 2019-11-05 Oppo广东移动通信有限公司 Volume adjusting method and device and computer readable storage medium
CN111930335A (en) * 2020-07-28 2020-11-13 Oppo广东移动通信有限公司 Sound adjusting method and device, computer readable medium and terminal equipment
CN112804607A (en) * 2020-12-24 2021-05-14 歌尔光学科技有限公司 Tone quality adjusting method and device and tone quality adjustable earphone
CN117061949A (en) * 2023-10-08 2023-11-14 荣耀终端有限公司 Headphone volume adjustment method and electronic equipment
CN117061949B (en) * 2023-10-08 2024-04-12 荣耀终端有限公司 Earphone volume adjusting method and electronic equipment

Similar Documents

Publication Publication Date Title
CN106101408A (en) A kind of mobile terminal and method for regulation of sound volume thereof
CN104468930B (en) A kind of playback loudness method of adjustment and device
US11470413B2 (en) Acoustic detection of in-ear headphone fit
US10091590B2 (en) Hearing aid detection
CN104521247B (en) Hearing aid and noise resisting method and device for Bluetooth headset
JP3727431B2 (en) Transmitter, telephone using it
CN103428326A (en) Method and device for adjusting and processing ring tone
CN111885458B (en) Audio playing method, earphone and computer readable storage medium
CA2766196C (en) Apparatus, method and computer program for controlling an acoustic signal
US12219315B2 (en) Acoustic detection of in-ear headphone fit
CN110913062B (en) Audio control method, device, terminal and readable storage medium
EP3038255B1 (en) An intelligent volume control interface
US9686608B2 (en) Sensor
CN104427441B (en) integrated audio signal processing circuit, audio system and method for reducing crosstalk noise
WO2014169757A1 (en) Method and terminal for adaptively adjusting frequency response
US8179235B2 (en) Tactile interface for mobile devices
CN115474927A (en) Hearing detection method and device, electronic equipment and storage medium
CN106961509A (en) Call parameter processing method, device and electronic equipment
CN111063363A (en) Voice acquisition method, audio equipment and device with storage function
US20240251197A1 (en) Sound Signal Processing Method and Headset Device
KR101045965B1 (en) Eco phenomenon cancellation technology of ear microphone using differential signal of speaker
KR101135382B1 (en) Method and apparatus for controlling sound signal for communication terminal
KR20110089020A (en) Control method of voice output through a wireless headset of a portable terminal and a portable terminal implementing the method
CN113824838A (en) Sound production control method and device, electronic equipment and storage medium
KR101127325B1 (en) Method and communication terminal for detecting the status of a telephone receiver

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

Application publication date: 20161109

RJ01 Rejection of invention patent application after publication