WO2017004881A1 - Parameter adjustment method, device and computer storage medium - Google Patents

Parameter adjustment method, device and computer storage medium Download PDF

Info

Publication number
WO2017004881A1
WO2017004881A1 PCT/CN2015/089081 CN2015089081W WO2017004881A1 WO 2017004881 A1 WO2017004881 A1 WO 2017004881A1 CN 2015089081 W CN2015089081 W CN 2015089081W WO 2017004881 A1 WO2017004881 A1 WO 2017004881A1
Authority
WO
WIPO (PCT)
Prior art keywords
position detecting
detection
detecting devices
preset threshold
occluded
Prior art date
Application number
PCT/CN2015/089081
Other languages
French (fr)
Chinese (zh)
Inventor
刘冬梅
刘凤鹏
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017004881A1 publication Critical patent/WO2017004881A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer

Definitions

  • the present invention relates to a parameter management technique in the audio field, and in particular, to a parameter adjustment method, apparatus, and computer storage medium.
  • terminal devices are not only used for everyday communication, but also have many entertainment features. Whether it is communication or entertainment, high-quality audio effects can greatly enhance the user experience. Therefore, audio quality is an important criterion for measuring the effectiveness of communication and entertainment.
  • the audio parameters of the existing terminal equipment are designed by the researcher without occlusion. In real life, this constant audio parameter will greatly reduce the user experience. For example, if the audio device of the terminal device is playing music, and the terminal device is blocked by an object, the existing terminal device will continue to use the existing audio parameters, and then the audio effect of the user hearing the music will be worse. Poor user experience.
  • the embodiment of the invention is intended to provide a parameter adjustment method, device and computer storage medium, which can adjust the used audio parameters in time and improve the user experience.
  • a parameter adjustment method which is applied to a parameter adjustment device, wherein n position detection devices are sequentially disposed around a sound outlet of the parameter adjustment device, and the method includes:
  • n detection distances where the detection distance is a distance from the occlusion object detected by the n position detecting devices, where n is a positive integer;
  • the currently used audio parameters are adjusted to audio parameters corresponding to the i according to the correspondence between the number of occluded position detecting devices and the audio parameters.
  • the first position detecting device and the nth position detecting device of the n position detecting devices are respectively disposed on both sides along the length direction of the sound outlet ;
  • Determining, according to the obtained n detection distances, the number i of occluded position detecting devices from the n position detecting devices includes:
  • the first position detecting device and the i-1 position detecting device continuous with the first position detecting device detect a detection distance less than or equal to a preset threshold, or only the nth position
  • the detection device and the detection distance detected by the i-1 position detecting devices consecutive to the nth position detecting device are less than or equal to a preset threshold, and it is determined that the number of the occluded position detecting devices is i.
  • the method further includes: calculating the obtained n detections The first average of the distance;
  • the determining the preset threshold includes:
  • the preset threshold is updated with the second average.
  • the preset threshold is initially The starting value is 1mm.
  • any one of the first to fourth achievable manners, in the fifth implementation manner, before the acquiring the n detection distances, the method further includes:
  • a parameter adjustment device wherein the position adjustment device is provided with n position detecting devices in turn around the sound outlet, and the device includes:
  • An acquiring unit configured to acquire the n detection distances, where the detection distance is a distance from the occlusion object detected by the n position detecting devices, where n is a positive integer;
  • a determining unit configured to determine, according to the n detection distances obtained by the acquiring unit, the number i of occluded position detecting devices from the n position detecting devices, where i is less than or equal to the n Positive integer
  • the adjusting unit is configured to adjust the frequency parameter used by the current tone to the audio parameter corresponding to the i according to the correspondence between the number of occluded position detecting devices determined by the determining unit and the audio parameter.
  • the first position detecting device and the nth position detecting device of the n position detecting devices are respectively disposed on both sides along the length direction of the sound outlet ;
  • the determining unit is configured to: if only the first position detecting device and the i-1 position detecting device continuous with the first position detecting device detect a detection distance less than or equal to a preset threshold, or Determining the occluded position detection only if the detection distance detected by the nth position detecting device and the i-1 position detecting devices continuous with the nth position detecting device is less than or equal to a preset threshold
  • the number of devices is i.
  • the device further includes:
  • a calculating unit configured to calculate a first average value of the obtained n detecting distances
  • the determining unit is further configured to determine the preset threshold if the first average value of the obtained n detection distances is less than or equal to a preset threshold.
  • the determining unit is configured to acquire the saved maximum detection distance; save the maximum detection distance among the obtained n detection distances; calculate the saved a maximum detection distance and a second average of the maximum detection distances among the obtained n detection distances; and updating the preset threshold with the second average value.
  • the initial value of the preset threshold is 1 mm.
  • the device includes:
  • a generating unit configured to generate a correspondence between the number of the occluded position detecting devices and the audio parameters
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to perform the parameter adjustment method according to the embodiment of the invention.
  • Embodiments of the present invention provide a parameter adjustment method, apparatus, and computer storage medium, which first acquire n detection distances, and then determine the number of occluded position detection devices from n position detection devices according to n detection distances. i. Then, according to the correspondence between the number of occluded position detecting devices and the audio parameters, the currently used audio parameters are adjusted to the audio parameters corresponding to i.
  • the embodiment of the present invention no longer fixes the audio parameters, but determines the occluded position according to the detected distance from the occlusion detected by the position detecting device distributed around the sound outlet of the terminal device. The number of devices is detected to adjust the currently used audio parameters in time.
  • the audio parameters are adjusted according to the detection distance from the occlusion object, that is, the currently used audio parameters are adjusted to be more realistic according to the actual occlusion situation during audio playback.
  • the audio parameters therefore, improve the audio experience and improve the user experience.
  • FIG. 1 is a flowchart of a parameter adjustment method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a position of a distance sensor disposed around an external speaker according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another parameter adjustment method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a parameter adjustment apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another parameter adjustment apparatus according to an embodiment of the present invention.
  • the embodiment of the invention provides a parameter adjustment method, which is applied to a parameter determining device.
  • the device is provided with n position detecting devices in turn around the sound outlet, and the device can be an independent audio device or an audio device.
  • the terminal device of the device As shown in FIG. 1, the method can include:
  • Step 101 Acquire n detection distances.
  • the detection distance is a distance from the obstruction detected by the n position detecting devices, and n is a positive integer.
  • the position detecting device divides the sound emission range of the sound outlet into n sound emitting regions, and each position detecting device corresponds to one sound emitting region.
  • the position detecting device may include a distance sensor or other device capable of detecting a distance.
  • the position detecting device is a distance sensor.
  • the audio parameters may include a transmission sensitivity/frequency response, a transmission loudness evaluation value, a reception sensitivity/frequency response, a reception loudness evaluation value, a sidetone masking evaluation value, a transmission distortion, and a connection. Receive distortion, echo loss, idle channel noise, etc.
  • Step 102 Determine, according to the obtained n detection distances, the number i of occluded position detecting devices from the n position detecting devices.
  • i is a positive integer less than or equal to n.
  • step 102 specifically includes: Only the first position detecting device and the i-1 position detecting device continuous with the first position detecting device detect a detection distance less than or equal to a preset threshold, or only the nth position detecting device and the first The detected distance detected by the i-1 position detecting devices of the n position detecting devices is less than or equal to the preset threshold, and it is determined that the number of occluded position detecting devices is i.
  • the number of occluded position detecting devices indicates the number of occluded sounding regions.
  • the first position detecting device is disposed on the left side in the longitudinal direction of the sound outlet
  • the fourth position detecting device is disposed on the right side in the longitudinal direction of the sound outlet.
  • the remaining position detecting device is disposed on one side of the length of the sound outlet.
  • the number of occluded position detecting devices is 1; if only the first position detecting device And the detection distance detected by the second position detecting device is less than or equal to the preset threshold, determining that the number of occluded position detecting devices is 2; if only the fourth position detecting device and the third position detecting device detect If the detected distance is less than or equal to the preset threshold, it is determined that the number of occluded position detecting devices is 2; if only the first position detecting device, the second position detecting device, and the third position detecting device detect If the detection distance is less than or equal to the preset threshold, it is determined that the number of occluded position detecting devices is 3; if only the fourth position detecting device, the third position detecting device, and the second position detecting device detect If the detection distance is less than or equal to the preset threshold, it is determined that the number of the number of the preset threshold, it is determined that the number of the number of the preset threshold, it is determined that the number of the preset threshold, it
  • the method further includes: calculating a first average value of the obtained n detecting distances; if the first average value is less than or equal to The preset threshold is determined by a preset threshold.
  • the determining the preset threshold may include: acquiring the saved maximum detection distance; saving the largest detection distance among the obtained n detection distances; and calculating the maximum detection distance and the obtained maximum detection distance among the n detection distances. The second average of the distances; the preset threshold is updated with the second average.
  • the saved maximum detection distance is the maximum detection distance saved from the first detection period to the previous detection period; n acquired The maximum detection distance in the detection distance is the maximum detection distance saved in the current detection period.
  • Step 103 Adjust the currently used audio parameter to an audio parameter corresponding to i according to the correspondence between the number of occluded position detecting devices and the audio parameter.
  • the corresponding relationship between the position detecting device and the audio parameter is as shown in Table 1, and may include: when the two position detecting devices are occluded, that is, when the sound emitting regions corresponding to the two position detecting devices are blocked, the currently used The audio parameter is adjusted to the second audio parameter; when the three position detecting devices are occluded, that is, the sound regions corresponding to the three position detecting devices are occluded, the currently used audio parameters are adjusted to the third audio parameter; when 4 positions are The detecting device is occluded, that is, when the sound-emitting area corresponding to the 4-position detecting device is occluded, the currently used audio parameter is adjusted to the fourth audio parameter; and so on, the m position detecting devices are occluded, that is, the entire sound-emitting range When occluded, adjust the currently used audio parameters to the mth audio parameter. Here, if only one position measuring device is occluded, the currently used audio parameters are adjusted to the initial audio parameters.
  • the embodiment of the present invention no longer uses the audio parameter in a fixed manner, but determines the occlusion according to the detection distance of the distance occlusion detected by the position detecting device distributed around the sound outlet of the terminal device.
  • the position detects the number of devices, thereby adjusting the currently used audio parameters.
  • the audio parameters are adjusted according to the distance from the occlusion object, that is, the currently used audio parameters are timely adjusted to a more realistic audio parameter according to the actual occlusion of the audio during playback, thus improving Audio effects enhance the user experience.
  • the method further includes: generating a correspondence between the number of occluded position detecting devices and audio parameters; and setting an initial audio parameter.
  • the correspondence between the number of occluded position detecting devices and the audio parameters can be designed according to the position detecting device.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to perform the parameter adjustment method according to the embodiment of the invention.
  • the embodiment of the invention provides a parameter adjustment method, which is applied to a smart phone, which includes an external speaker, an earpiece, a microphone, a touch screen, an amplifying circuit, a vibration sensor, a photosensitive sensor, a processor, a camera, a battery, a distance sensor, and the like.
  • a smart phone which includes an external speaker, an earpiece, a microphone, a touch screen, an amplifying circuit, a vibration sensor, a photosensitive sensor, a processor, a camera, a battery, a distance sensor, and the like.
  • any connection manner of the audio output function of the smart phone may be referred to in the prior art, and is not described in this embodiment.
  • five distance sensors are arranged around the external speaker of the smart phone, respectively, A, B, C, D, and E, and the positions thereof are as shown in FIG. 2, and A is located on the left side along the length direction of the external speaker.
  • FIG. 3 is a flowchart of another parameter adjustment method according to an embodiment of the present invention. As shown in FIG. 3, the method includes:
  • Step 201 Before the smartphone is shipped from the factory, generate a correspondence between the number of occluded distance sensors and audio parameters, and set initial audio parameters of the external speaker.
  • the sound range of the external speaker can be divided into five sound emitting regions, and each sound emitting region corresponds to a distance sensor.
  • the positions of the five distance sensors are respectively set at different positions around the external speakers and the orientation of each distance sensor is different.
  • Each distance sensor is used to sense that the smart phone is blocked by external objects, and the distance between the obstacles is corresponding. Distance detection distance of the sensor.
  • the correspondence between the number of occluded distance sensors and the audio parameters may include: when the number of occluded distance sensors is 1, that is, only A or E is occluded, and the currently used audio parameters are adjusted.
  • Step 202 After receiving the user's playing music instruction, the smart phone plays the music through the external speaker.
  • the audio parameters currently in use at this time are the initial audio parameters.
  • Step 203 During the current detection period, each distance sensor detects a detection distance from the obstruction.
  • the sensing ranges of A, B, C, D, and E are predetermined.
  • a sufficiently large preset value is used as the detection distance of the distance sensor from the occlusion.
  • Step 204 The processor acquires a detection distance from the obstruction detected by the five distance sensors.
  • the distance sensor of the embodiment can actively transmit the detection distance of the distance from the obstruction, or the processor can actively acquire the excitation of the distance sensor from the obstruction according to the period.
  • Step 205 The processor calculates an average value of the detection distances of the obstructions detected by the five distance sensors.
  • Step 206 The processor determines whether the average value is less than a preset threshold. If yes, go to step 207; if no, go to step 215.
  • Step 207 Determine a preset threshold of the current detection period.
  • the maximum detection distance saved from the first detection period to the previous detection period is acquired; the maximum detection distance among the n detection distances in the current period is saved; and the calculation from the first detection period to the upper 1 is calculated.
  • the maximum detection distance saved in one detection period and the average value of the maximum detection distance among the n detection distances in the current period; the preset threshold is updated with the average value.
  • the initial value of the preset threshold is 1 mm.
  • Step 208 The processor determines whether each detected distance is less than or equal to a preset threshold.
  • Step 209 If the detection distance from the obstruction detected by A or E is less than or equal to a preset threshold, the processor determines that the number of occluded distance sensors is 1.
  • Step 210 If the detection distance from the obstruction detected by AB or DE is less than or equal to a preset threshold, the processor determines that the number of occluded distance sensors is 2.
  • the detection distance from the obstruction detected by AB is less than or equal to a preset threshold
  • the detection distance of the obstruction detected by the remaining CDE is greater than the preset threshold
  • the detection distance of the obstruction detected by DE is less than or equal to the preset threshold
  • the remaining ABC detects the distance obscuration.
  • the detection distance of the objects is greater than a preset threshold.
  • Step 211 If the detection distance from the obstruction detected by the ABC or the CDE is less than or equal to the preset threshold, the processor determines that the number of the occluded distance sensors is 3.
  • the detection distance from the obstruction detected by the ABC is less than or equal to the preset threshold.
  • the detection distances of the obstructions detected by the remaining DE are greater than a preset threshold; the detection of the obstruction detected by the CDE The distances are all less than or equal to the preset threshold.
  • the detected distances from the obstructions detected by the remaining ABs are greater than a preset threshold.
  • Step 212 If the detection distance from the obstruction detected by the ABCD or the BCDE is less than or equal to the preset threshold, the processor determines that the number of occluded distance sensors is 4.
  • the detection distance from the obstruction detected by the ABCD is less than or equal to the preset threshold.
  • the detection distance from the obstruction detected by E is greater than a preset threshold; the detection distance of the obstruction detected by the BCDE is It is less than or equal to the preset threshold, and correspondingly, the detection distances of the remaining A detected from the obstruction are greater than a preset threshold.
  • Step 213 If the detection distances of the obstructions detected by the five distance sensors are less than or equal to the preset threshold, the processor determines that the number of occluded sensors is 5.
  • Step 214 The processor adjusts the currently used audio parameter to an audio parameter corresponding to the number of occluded sensors according to the correspondence between the occluded distance sensor and the audio parameter.
  • Step 215 The processor adjusts the currently used audio parameter to an initial audio parameter.
  • FIG. 4 is a schematic structural diagram of a parameter adjustment device according to an embodiment of the present invention. As shown in FIG. 4, the parameter adjustment device 30 may include:
  • the acquiring unit 301 is configured to acquire the n detection distances, where the detection distance is the n
  • the position detection device detects the distance from the occlusion, respectively, and the n is a positive integer;
  • the determining unit 302 is configured to determine, according to the n detection distances acquired by the acquiring unit 301, the number i of occluded position detecting devices from the n position detecting devices, where i is less than or equal to the a positive integer of n;
  • the adjusting unit 303 is configured to adjust the currently used audio parameter to the audio parameter corresponding to the i according to the correspondence between the number of occluded position detecting devices determined by the determining unit 302 and the audio parameter.
  • the detection distance is a distance from the obstruction detected by the n position detecting devices, and n is a positive integer.
  • the position detecting device divides the sound emission range of the sound outlet into n sound emitting regions, and each position detecting device corresponds to one sound emitting region.
  • the position detecting device may include a distance sensor or other device capable of detecting a distance.
  • the position detecting device is a distance sensor.
  • the audio parameters may include a transmission sensitivity/frequency response, a transmission loudness evaluation value, a reception sensitivity/frequency response, a reception loudness evaluation value, a sidetone masking evaluation value, a transmission distortion, a reception distortion, a return loss, an idle channel noise, and the like.
  • the embodiment of the present invention no longer fixes the audio parameters, but determines the occluded position detection according to the detection distance of the distance occlusion detected by the position detecting device distributed around the sound outlet of the terminal device.
  • the number of devices to adjust the currently used audio parameters are adjusted according to the measured distance from the occluded object, that is, the currently used audio parameters are adjusted to a more realistic audio parameter according to the actual occlusion of the audio during playback, thereby improving the audio effect. , improved user experience.
  • n position detecting devices and the nth position detecting device are respectively disposed on both sides along the length direction of the sound outlet;
  • the determining unit 302 is configured to detect that the detection distance detected by only the first position detecting device and the i-1 position detecting devices continuous with the first position detecting device is less than or equal to a preset threshold, or only if the detected distance detected by the nth position detecting device and the i-1 position detecting device continuous with the nth position detecting device is less than or equal to a preset threshold
  • the number of occluded position detecting devices is i.
  • the first position detecting device is disposed on the left side in the longitudinal direction of the sound outlet
  • the fourth position detecting device is disposed on the right side in the longitudinal direction of the sound outlet.
  • the remaining position detecting device is disposed on one side of the length of the sound outlet.
  • the determining unit 302 determines that the number of the occluded position detecting devices is 1; If the detection distance detected by the one position detecting device and the second position detecting device is less than or equal to the preset threshold, the determining unit 302 determines that the number of the occluded position detecting devices is 2; if only the fourth position The detecting unit 302 determines that the detected position of the occluded position detecting device is 2; if only the first position detecting device, If the detection distance detected by the second position detecting device and the third position detecting device is less than or equal to the preset threshold, the determining unit 302 determines that the number of occluded position detecting devices is 3; if only the fourth The determining unit 302 determines the occluded bit when the detected distance detected by the position detecting device, the third position detecting device, and the second position detecting device is less than or equal to the preset threshold
  • the number of detecting devices is three; if the detecting distance detected by the four position detecting devices is less than or equal to a preset threshold, the determining unit 302 determines that the number of occluded position detecting devices is four. It is to be noted that the above-described position detecting device for judging the number of blocked position detecting devices is required to include a position detecting device for detecting the longitudinal direction of the sound outlet and a position detecting device for the width direction of the sound outlet.
  • FIG. 5 is a schematic structural diagram of another parameter adjustment apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus 30 further includes:
  • the calculating unit 304 is configured to calculate a first average value of the obtained n detection distances
  • the determining unit 302 is further configured to: if the first average value of the obtained n detection distances If it is less than or equal to the preset threshold, the preset threshold is determined.
  • the corresponding relationship between the position detecting device and the audio parameter is as shown in Table 1, and may include: when two position detecting devices are blocked, that is, when the sound emitting regions corresponding to the two position detecting devices are blocked, The currently used audio parameters are adjusted to the second audio parameter; when the three position detecting devices are occluded, that is, the sound regions corresponding to the three position detecting devices are occluded, the currently used audio parameters are adjusted to the third audio parameters; The four position detecting devices are occluded, that is, when the sound emitting area corresponding to the four position detecting device is occluded, the currently used audio parameter is adjusted to the fourth audio parameter; and so on, the m position detecting devices are occluded, that is, the whole When the sound range is occluded, the currently used audio parameters are adjusted to the mth audio parameter.
  • the currently used audio parameters are adjusted to the initial audio parameters.
  • the determining unit 302 is configured to acquire the saved maximum detection distance; save the maximum detection distance among the acquired n detection distances; calculate the saved maximum detection distance and the acquired n a second average of the maximum detected distances among the detected distances; the preset threshold is updated with the second average value.
  • the saved maximum detection distance is the maximum detection distance saved from the first detection period to the previous detection period; n acquired The maximum detection distance in the detection distance is the maximum detection distance saved in the current detection period.
  • the initial value of the preset threshold is 1 mm.
  • the device further includes:
  • the generating unit 305 is configured to generate a correspondence between the number of the occluded position detecting devices and the audio parameter;
  • the setting unit 306 is configured to set an initial audio parameter.
  • the correspondence between the number of occluded position detecting devices and the audio parameters can be designed according to the position detecting device.
  • the parameter adjustment device can be used by a mobile phone with an audio output function.
  • the terminal computer 301, the determining unit 302, the adjusting unit 303, the calculating unit 304, the generating unit 305, and the setting unit 306 are all implemented by a central processing unit (Central Processing Unit) located in the terminal. , CPU, Micro Processor Unit (MPU), Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA).
  • CPU Central Processing Unit
  • MPU Micro Processor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. Instructions are provided for implementation The steps of a function specified in a block or blocks of a flow or a flow and/or a block diagram of a flow chart.
  • the embodiment of the present invention determines the number of occluded position detecting devices according to the detection distance of the occlusion detected by the position detecting device distributed around the sound outlet of the terminal device, thereby adjusting the currently used audio parameters in time.
  • the audio parameters are adjusted according to the detection distance from the occlusion object, that is, the currently used audio parameters are adjusted to a more realistic audio parameter according to the actual occlusion situation during audio playback, and thus, the embodiment of the present invention is improved. Audio effects enhance the user experience.

Abstract

A parameter adjustment method, device and computer storage medium. The method comprises: acquiring n detection distances (101), wherein the detection distances are distances to a blocking object detected respectively by n position detecting devices, and n is a positive integer; determining, according to the n detection distances, a number i of blocked position detecting devices in the n position detecting devices (102), wherein i is a positive integer smaller than or equal to n; and adjusting, according to a corresponding relationship between the number of blocked position detecting devices and an audio parameter, a current audio parameter to be an audio parameter corresponding to i (103).

Description

一种参数调整方法、装置及计算机存储介质Parameter adjustment method, device and computer storage medium 技术领域Technical field
本发明涉及音频领域的参数管理技术,尤其涉及一种参数调整方法、装置及计算机存储介质。The present invention relates to a parameter management technique in the audio field, and in particular, to a parameter adjustment method, apparatus, and computer storage medium.
背景技术Background technique
目前,终端设备不仅仅用于日常的通讯,还附带许多娱乐功能。不论是通讯还是娱乐,优质的音频效果能够大大提高用户体验,因此,音频效果好坏是衡量通讯和娱乐效果好坏的一个重要标准。而现有终端设备的音频参数是研究人员在无遮挡情况下设计的,在实际生活中,这种不变的音频参数会大大降低用户体验。例如,假设终端设备的音频器件正在播放音乐,而此时终端设备被一物体遮挡,现有的终端设备会继续使用现有的音频参数,那么,用户听到音乐的音频效果则会变差,用户体验差。Currently, terminal devices are not only used for everyday communication, but also have many entertainment features. Whether it is communication or entertainment, high-quality audio effects can greatly enhance the user experience. Therefore, audio quality is an important criterion for measuring the effectiveness of communication and entertainment. The audio parameters of the existing terminal equipment are designed by the researcher without occlusion. In real life, this constant audio parameter will greatly reduce the user experience. For example, if the audio device of the terminal device is playing music, and the terminal device is blocked by an object, the existing terminal device will continue to use the existing audio parameters, and then the audio effect of the user hearing the music will be worse. Poor user experience.
发明内容Summary of the invention
本发明实施例期望提供一种参数调整方法、装置及计算机存储介质,能够及时调整使用的音频参数,提高用户体验。The embodiment of the invention is intended to provide a parameter adjustment method, device and computer storage medium, which can adjust the used audio parameters in time and improve the user experience.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
第一方面,提供一种参数调整方法,应用于参数调整装置,所述参数调整装置的出音口四周依次设置有n个位置检测器件,所述方法包括:In a first aspect, a parameter adjustment method is provided, which is applied to a parameter adjustment device, wherein n position detection devices are sequentially disposed around a sound outlet of the parameter adjustment device, and the method includes:
获取n个检测距离,所述检测距离是所述n个位置检测器件分别检测到的距遮挡物的距离,所述n是正整数;Obtaining n detection distances, where the detection distance is a distance from the occlusion object detected by the n position detecting devices, where n is a positive integer;
根据获得的n个检测距离,从所述n个位置检测器件中确定出被遮挡的位置检测器件的个数i,所述i是小于或等于所述n的正整数; Determining, from the n position detecting devices, the number i of occluded position detecting devices according to the obtained n detecting distances, wherein i is a positive integer smaller than or equal to the n;
根据被遮挡的位置检测器件的个数与音频参数的对应关系,将当前使用的音频参数调整为与所述i对应的音频参数。The currently used audio parameters are adjusted to audio parameters corresponding to the i according to the correspondence between the number of occluded position detecting devices and the audio parameters.
结合第一方面,在第一种可实现方式中,所述n个位置检测器件中第1个位置检测器件和第n个位置检测器件分别设置于沿所述出音口的长度方向的两侧;With reference to the first aspect, in a first implementation manner, the first position detecting device and the nth position detecting device of the n position detecting devices are respectively disposed on both sides along the length direction of the sound outlet ;
所述根据获得的n个检测距离,从所述n个位置检测器件中确定出被遮挡的位置检测器件的个数i包括:Determining, according to the obtained n detection distances, the number i of occluded position detecting devices from the n position detecting devices includes:
若只有所述第1个位置检测器件和与所述第1个位置检测器件连续的i-1个位置检测器件检测到的检测距离小于或等于预设阈值,或,只有所述第n个位置检测器件和与所述第n个位置检测器件连续的i-1个位置检测器件检测到的检测距离小于或等于预设阈值,则确定出所述被遮挡的位置检测器件的个数是i。If only the first position detecting device and the i-1 position detecting device continuous with the first position detecting device detect a detection distance less than or equal to a preset threshold, or only the nth position The detection device and the detection distance detected by the i-1 position detecting devices consecutive to the nth position detecting device are less than or equal to a preset threshold, and it is determined that the number of the occluded position detecting devices is i.
结合第一种可实现方式,在第二种可实现方式中,所述确定出所述被遮挡的位置检测器件的个数是i之前,所述方法还包括:计算所述获得的n个检测距离的第一平均值;In combination with the first implementation manner, in the second implementation manner, before the determining that the number of the occluded position detecting devices is i, the method further includes: calculating the obtained n detections The first average of the distance;
若所述获得的n个检测距离的第一平均值小于或等于预设阈值,则确定所述预设阈值。And determining the preset threshold if the first average value of the obtained n detection distances is less than or equal to a preset threshold.
结合第二种可实现方式,在第三种可实现方式中,所述确定所述预设阈值包括:In combination with the second achievable manner, in the third implementation manner, the determining the preset threshold includes:
获取已保存的最大检测距离;Get the maximum detected detection distance;
保存所述获取的n个检测距离中最大检测距离;Saving a maximum detection distance among the obtained n detection distances;
计算出已保存的最大检测距离和所述获取的n个检测距离中最大检测距离的第二平均值;Calculating a second average value of the saved maximum detection distance and the maximum detection distance among the obtained n detection distances;
用所述第二平均值更新预设阈值。The preset threshold is updated with the second average.
结合第三种可实现方式,在第四种可实现方式中,所述预设阈值的初 始值是1mm。In combination with the third achievable manner, in the fourth achievable manner, the preset threshold is initially The starting value is 1mm.
结合第一方面、第一种至第四种可实现方式的任一种,在第五种可实现方式中,在所述获取n个检测距离之前,所述方法还包括:With reference to the first aspect, any one of the first to fourth achievable manners, in the fifth implementation manner, before the acquiring the n detection distances, the method further includes:
生成所述被遮挡的位置检测器件的个数与音频参数的对应关系;Generating a correspondence between the number of the occluded position detecting devices and the audio parameters;
设置初始音频参数。Set the initial audio parameters.
第二方面,提供一种参数调整装置,所述参数调整装置的出音口四周依次设置有n个位置检测器件,所述装置包括:In a second aspect, a parameter adjustment device is provided, wherein the position adjustment device is provided with n position detecting devices in turn around the sound outlet, and the device includes:
获取单元,配置为获取所述n个检测距离,所述检测距离是所述n个位置检测器件分别检测到的距遮挡物的距离,所述n是正整数;An acquiring unit, configured to acquire the n detection distances, where the detection distance is a distance from the occlusion object detected by the n position detecting devices, where n is a positive integer;
确定单元,配置为根据所述获取单元获得的n个检测距离,从所述n个位置检测器件中确定出被遮挡的位置检测器件的个数i,所述i是小于或等于所述n的正整数;a determining unit configured to determine, according to the n detection distances obtained by the acquiring unit, the number i of occluded position detecting devices from the n position detecting devices, where i is less than or equal to the n Positive integer
调整单元,配置为根据所述确定单元确定的被遮挡的位置检测器件的个数与音频参数的对应关系,将当前音使用的频参数调整为与所述i对应的音频参数。The adjusting unit is configured to adjust the frequency parameter used by the current tone to the audio parameter corresponding to the i according to the correspondence between the number of occluded position detecting devices determined by the determining unit and the audio parameter.
结合第二方面,在第一种可实现方式中,所述n个位置检测器件中第1个位置检测器件和第n个位置检测器件分别设置于沿所述出音口的长度方向的两侧;With reference to the second aspect, in a first implementation manner, the first position detecting device and the nth position detecting device of the n position detecting devices are respectively disposed on both sides along the length direction of the sound outlet ;
所述确定单元,配置为若只有所述第1个位置检测器件和与所述第1个位置检测器件连续的i-1个位置检测器件检测到的检测距离小于或等于预设阈值,或,只有所述第n个位置检测器件和与所述第n个位置检测器件连续的i-1个位置检测器件检测到的检测距离小于或等于预设阈值,则确定出所述被遮挡的位置检测器件的个数是i。The determining unit is configured to: if only the first position detecting device and the i-1 position detecting device continuous with the first position detecting device detect a detection distance less than or equal to a preset threshold, or Determining the occluded position detection only if the detection distance detected by the nth position detecting device and the i-1 position detecting devices continuous with the nth position detecting device is less than or equal to a preset threshold The number of devices is i.
结合第一种可实现方式,在第二种可实现方式中,所述装置还包括:In conjunction with the first achievable manner, in a second implementation manner, the device further includes:
计算单元,配置为计算所述获得的n个检测距离的第一平均值; a calculating unit configured to calculate a first average value of the obtained n detecting distances;
所述确定单元,还配置为若所述获得的n个检测距离的第一平均值小于或等于预设阈值,则确定所述预设阈值。The determining unit is further configured to determine the preset threshold if the first average value of the obtained n detection distances is less than or equal to a preset threshold.
结合第二种可实现方式,在第三种可实现方式中,所述确定单元,配置为获取已保存的最大检测距离;保存所述获取的n个检测距离中最大检测距离;计算出已保存的最大检测距离和所述获取的n个检测距离中最大检测距离的第二平均值;用所述第二平均值更新预设阈值。In combination with the second achievable manner, in a third implementation manner, the determining unit is configured to acquire the saved maximum detection distance; save the maximum detection distance among the obtained n detection distances; calculate the saved a maximum detection distance and a second average of the maximum detection distances among the obtained n detection distances; and updating the preset threshold with the second average value.
结合第三种可实现方式,在第四种可实现方式中,所述预设阈值的初始值是1mm。In combination with the third achievable manner, in the fourth achievable manner, the initial value of the preset threshold is 1 mm.
结合第二方面、第一种至第四种可实现方式的任一种,在第五种可实现方式中,所述装置包括:With reference to the second aspect, any one of the first to fourth achievable manners, in a fifth implementation manner, the device includes:
生成单元,配置为生成所述被遮挡的位置检测器件的个数与音频参数的对应关系;a generating unit configured to generate a correspondence between the number of the occluded position detecting devices and the audio parameters;
设置单元,配置为设置初始音频参数。Set the unit to configure the initial audio parameters.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行本发明实施例所述的参数调整方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to perform the parameter adjustment method according to the embodiment of the invention.
本发明实施例提供了一种参数调整方法、装置及计算机存储介质,先获取n个检测距离,再根据n个检测距离,从n个位置检测器件中确定出被遮挡的位置检测器件的个数i,之后根据被遮挡的位置检测器件的个数与音频参数的对应关系,将当前使用的音频参数调整为与i对应的音频参数。相较于现有技术,本发明实施例不再固定音频参数,而是根据分布在终端设备的出音口四周的位置检测器件检测到的距遮挡物的检测距离,来确定出被遮挡的位置检测器件的个数,从而及时调整当前使用的音频参数。这样,根据距遮挡物的检测距离来调整音频参数,也就是说,根据音频播放时的实际被遮挡情况,将当前使用的音频参数调整为一个更符合实际情况 的音频参数,因此,本发明实施例改进了音频效果,提升了用户体验。Embodiments of the present invention provide a parameter adjustment method, apparatus, and computer storage medium, which first acquire n detection distances, and then determine the number of occluded position detection devices from n position detection devices according to n detection distances. i. Then, according to the correspondence between the number of occluded position detecting devices and the audio parameters, the currently used audio parameters are adjusted to the audio parameters corresponding to i. Compared with the prior art, the embodiment of the present invention no longer fixes the audio parameters, but determines the occluded position according to the detected distance from the occlusion detected by the position detecting device distributed around the sound outlet of the terminal device. The number of devices is detected to adjust the currently used audio parameters in time. In this way, the audio parameters are adjusted according to the detection distance from the occlusion object, that is, the currently used audio parameters are adjusted to be more realistic according to the actual occlusion situation during audio playback. The audio parameters, therefore, improve the audio experience and improve the user experience.
附图说明DRAWINGS
图1为本发明实施例提供的一种参数调整方法的流程图;FIG. 1 is a flowchart of a parameter adjustment method according to an embodiment of the present invention;
图2为本发明实施例提供的外置喇叭周围设置的距离传感器的位置示意图;2 is a schematic diagram of a position of a distance sensor disposed around an external speaker according to an embodiment of the present invention;
图3为本发明实施例提供的另一种参数调整方法的流程图;FIG. 3 is a flowchart of another parameter adjustment method according to an embodiment of the present invention;
图4为本发明实施例提供的一种参数调整装置的结构示意图;4 is a schematic structural diagram of a parameter adjustment apparatus according to an embodiment of the present invention;
图5为本发明实施例提供的另一种参数调整装置的结构示意图。FIG. 5 is a schematic structural diagram of another parameter adjustment apparatus according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
实施例一Embodiment 1
本发明实施例提供一种参数调整方法,应用于参数确定装置,该装置的出音口四周依次设置有n个位置检测器件,该装置可以是一个独立的音频设备,也可以是者带有音频器件的终端设备。如图1所示,该方法可以包括:The embodiment of the invention provides a parameter adjustment method, which is applied to a parameter determining device. The device is provided with n position detecting devices in turn around the sound outlet, and the device can be an independent audio device or an audio device. The terminal device of the device. As shown in FIG. 1, the method can include:
步骤101、获取n个检测距离。Step 101: Acquire n detection distances.
这里,所述检测距离是n个位置检测器件分别检测到的距遮挡物的距离,n是正整数。所述位置检测器件将出音口的出音范围划分成了n个出音区域,每个位置检测器件对应着一个出音区域。所述位置检测器件可以包括距离传感器等其它能够检测到距离的器件。作为一种实施方式,所述位置检测装置是距离传感器。Here, the detection distance is a distance from the obstruction detected by the n position detecting devices, and n is a positive integer. The position detecting device divides the sound emission range of the sound outlet into n sound emitting regions, and each position detecting device corresponds to one sound emitting region. The position detecting device may include a distance sensor or other device capable of detecting a distance. As an embodiment, the position detecting device is a distance sensor.
其中,所述音频参数可以包括发送灵敏度/频率响应、发送响度评定值、接受灵敏度/频率响应、接收响度评定值、侧音掩蔽评定值、发送失真、接 收失真、回音损耗、空闲信道噪声等。The audio parameters may include a transmission sensitivity/frequency response, a transmission loudness evaluation value, a reception sensitivity/frequency response, a reception loudness evaluation value, a sidetone masking evaluation value, a transmission distortion, and a connection. Receive distortion, echo loss, idle channel noise, etc.
步骤102、根据获得的n个检测距离,从n个位置检测器件中确定出被遮挡的位置检测器件的个数i。Step 102: Determine, according to the obtained n detection distances, the number i of occluded position detecting devices from the n position detecting devices.
这里,i是小于或等于n的正整数。Here, i is a positive integer less than or equal to n.
本实施例中,当所述n个位置检测器件中第1个位置检测器件和第n个位置检测器件分别设置于沿所述出音口的长度方向的两侧时,步骤102具体包括:若只有第1个位置检测器件和与第1个位置检测器件连续的i-1个位置检测器件检测到的检测距离小于或等于预设阈值,或,只有所述第n个位置检测器件和与第n个位置检测器件连续的i-1个位置检测器件检测到的检测距离小于或等于预设阈值,则确定出被遮挡的位置检测器件的个数是i。这里,被遮挡的位置检测器件的个数表示被遮挡的出音区域的个数。In this embodiment, when the first position detecting device and the nth position detecting device of the n position detecting devices are respectively disposed on both sides along the length direction of the sound outlet, step 102 specifically includes: Only the first position detecting device and the i-1 position detecting device continuous with the first position detecting device detect a detection distance less than or equal to a preset threshold, or only the nth position detecting device and the first The detected distance detected by the i-1 position detecting devices of the n position detecting devices is less than or equal to the preset threshold, and it is determined that the number of occluded position detecting devices is i. Here, the number of occluded position detecting devices indicates the number of occluded sounding regions.
具体的,假设出音口附近有4个位置检测器件,第1个位置检测器件设置在出音口的长度方向的左侧,第4个位置检测器件设置在出音口的长度方向的右侧,剩下的位置检测器件设置在出音口长度方向的一侧。若只有第1个位置检测器件或第4个位置检测器件检测到的检测距离小于或等于预设阈值,则确定出被遮挡的位置检测器件的个数是1;若只有第1个位置检测器件和第2个位置检测器件检测到的检测距离小于或等于预设阈值,则确定出被遮挡的位置检测器件的个数是2;若只有第4个位置检测器件和第3个位置检测器件检测到的检测距离小于或等于预设阈值,则确定出被遮挡的位置检测器件的个数是2;若只有第1个位置检测器件、第2个位置检测器件和第3个位置检测器件检测到的检测距离小于或等于预设阈值,则确定出被遮挡的位置检测器件的个数是3;若只有第4个位置检测器件、第3个位置检测器件和第2个位置检测器件检测到的检测距离小于或等于预设阈值,则确定出被遮挡的位置检测器件的个数是3;若4个位置检测器件检测到的检测距离小于或等于预设阈值,则确定出被遮挡的位置检测器 件的个数是4。值得说明的是,上述用于判断被遮挡的位置检测器件个数的位置检测器件需要同时包括出音口的长度方向排列的位置检测器件检测和出音口的宽度方向的位置检测器件。Specifically, it is assumed that there are four position detecting devices in the vicinity of the sound outlet, the first position detecting device is disposed on the left side in the longitudinal direction of the sound outlet, and the fourth position detecting device is disposed on the right side in the longitudinal direction of the sound outlet. The remaining position detecting device is disposed on one side of the length of the sound outlet. If only the detection distance detected by the first position detecting device or the fourth position detecting device is less than or equal to the preset threshold, it is determined that the number of occluded position detecting devices is 1; if only the first position detecting device And the detection distance detected by the second position detecting device is less than or equal to the preset threshold, determining that the number of occluded position detecting devices is 2; if only the fourth position detecting device and the third position detecting device detect If the detected distance is less than or equal to the preset threshold, it is determined that the number of occluded position detecting devices is 2; if only the first position detecting device, the second position detecting device, and the third position detecting device detect If the detection distance is less than or equal to the preset threshold, it is determined that the number of occluded position detecting devices is 3; if only the fourth position detecting device, the third position detecting device, and the second position detecting device detect If the detection distance is less than or equal to the preset threshold, it is determined that the number of the occluded position detecting devices is 3; if the detection distance detected by the four position detecting devices is less than or equal to the preset threshold , It is determined that the position detector is blocked The number of pieces is 4. It is to be noted that the above-described position detecting device for judging the number of blocked position detecting devices is required to include a position detecting device for detecting the longitudinal direction of the sound outlet and a position detecting device for the width direction of the sound outlet.
作为一种实施方式,所述确定出被遮挡的位置检测器件的个数是i之前,所述方法还包括:计算获得的n个检测距离的第一平均值;若第一平均值小于或等于预设阈值,则确定预设阈值。As an implementation manner, before the determining that the number of occluded position detecting devices is i, the method further includes: calculating a first average value of the obtained n detecting distances; if the first average value is less than or equal to The preset threshold is determined by a preset threshold.
具体的,所述确定预设阈值可以包括:获取已保存的最大检测距离;保存获取的n个检测距离中最大检测距离;计算出已保存的最大检测距离和获取的n个检测距离中最大检测距离的第二平均值;用第二平均值更新预设阈值。这里,由于本实施例撰写的是当前检测周期内的参数调整方法,因此,已保存的最大检测距离是从第1个检测周期到上1个检测周期内保存的最大检测距离;获取的n个检测距离中最大检测距离就是当前检测周期保存的最大检测距离。Specifically, the determining the preset threshold may include: acquiring the saved maximum detection distance; saving the largest detection distance among the obtained n detection distances; and calculating the maximum detection distance and the obtained maximum detection distance among the n detection distances. The second average of the distances; the preset threshold is updated with the second average. Here, since the present embodiment writes a parameter adjustment method in the current detection period, the saved maximum detection distance is the maximum detection distance saved from the first detection period to the previous detection period; n acquired The maximum detection distance in the detection distance is the maximum detection distance saved in the current detection period.
步骤103、根据被遮挡的位置检测器件的个数与音频参数的对应关系,将当前使用的音频参数调整为与i对应的音频参数。Step 103: Adjust the currently used audio parameter to an audio parameter corresponding to i according to the correspondence between the number of occluded position detecting devices and the audio parameter.
这里,所述位置检测器件与音频参数的对应关系如表1所示,可以包括:当2个位置检测器件被遮挡,即2个位置检测器件对应的出音区域被遮挡时,将当前使用的音频参数调整为第二音频参数;当3个位置检测器件被遮挡,即3个位置检测器件对应的出音区域被遮挡时,将当前使用的音频参数调整为第三音频参数;当4个位置检测器件被遮挡,即任4位置检测器件对应的出音区域被遮挡时,将当前使用的音频参数调整为第四音频参数;以此类推,m个位置检测器件被遮挡,即整个出音范围被遮挡时,将当前使用的音频参数调整为第m音频参数。这里,若只有一个位置测量器件被遮挡,则将当前使用的音频参数调整为初始音频参数。Here, the corresponding relationship between the position detecting device and the audio parameter is as shown in Table 1, and may include: when the two position detecting devices are occluded, that is, when the sound emitting regions corresponding to the two position detecting devices are blocked, the currently used The audio parameter is adjusted to the second audio parameter; when the three position detecting devices are occluded, that is, the sound regions corresponding to the three position detecting devices are occluded, the currently used audio parameters are adjusted to the third audio parameter; when 4 positions are The detecting device is occluded, that is, when the sound-emitting area corresponding to the 4-position detecting device is occluded, the currently used audio parameter is adjusted to the fourth audio parameter; and so on, the m position detecting devices are occluded, that is, the entire sound-emitting range When occluded, adjust the currently used audio parameters to the mth audio parameter. Here, if only one position measuring device is occluded, the currently used audio parameters are adjusted to the initial audio parameters.
Figure PCTCN2015089081-appb-000001
Figure PCTCN2015089081-appb-000001
Figure PCTCN2015089081-appb-000002
Figure PCTCN2015089081-appb-000002
表1Table 1
相较于现有技术,本发明实施例不再固定的使用音频参数,而是根据分布在终端设备的出音口四周的位置检测器件检测到的距离遮挡物的检测距离,来确定出被遮挡的位置检测器件的个数,从而调整当前使用的音频参数。这样,根据距遮挡物的距离来调整音频参数,也就是说,根据音频播放时的实际被遮挡的情况,将当前使用的音频参数及时调整为一个更符合实际情况的音频参数,因此,改进了音频效果,提高了用户体验。Compared with the prior art, the embodiment of the present invention no longer uses the audio parameter in a fixed manner, but determines the occlusion according to the detection distance of the distance occlusion detected by the position detecting device distributed around the sound outlet of the terminal device. The position detects the number of devices, thereby adjusting the currently used audio parameters. In this way, the audio parameters are adjusted according to the distance from the occlusion object, that is, the currently used audio parameters are timely adjusted to a more realistic audio parameter according to the actual occlusion of the audio during playback, thus improving Audio effects enhance the user experience.
作为一种实施方式,在步骤101之前,所述方法还包括:生成被遮挡的位置检测器件的个数与音频参数的对应关系;设置初始音频参数。这里,被遮挡的位置检测器件的个数与音频参数的对应关系可以按照位置检测器件设计。As an implementation manner, before step 101, the method further includes: generating a correspondence between the number of occluded position detecting devices and audio parameters; and setting an initial audio parameter. Here, the correspondence between the number of occluded position detecting devices and the audio parameters can be designed according to the position detecting device.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行本发明实施例所述的参数调整方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to perform the parameter adjustment method according to the embodiment of the invention.
实施例二Embodiment 2
本发明实施例提供一种参数调整方法,应用于智能手机,所述智能手机包括外置喇叭、听筒、话筒、触摸屏、放大电路、震动传感器、光敏传感器、处理器、摄像头、电池、距离传感器等等,上述器件的连接方式可参照现有技术中实现所述智能手机的音频输出功能的任何连接方式,本实施例中不再赘述。其中,所述智能手机的外置喇叭周围依次设置着5个距离传感器,分别是A、B、C、D、E,其位置如图2所示,A位于沿外置喇叭长度方向的左侧,E位于沿外置喇叭长度方向的右侧,B、C、D位于喇叭的一侧。图3为本发明实施例提供的另一种参数调整方法的流程图;如 图3所示,所述方法包括:The embodiment of the invention provides a parameter adjustment method, which is applied to a smart phone, which includes an external speaker, an earpiece, a microphone, a touch screen, an amplifying circuit, a vibration sensor, a photosensitive sensor, a processor, a camera, a battery, a distance sensor, and the like. For example, any connection manner of the audio output function of the smart phone may be referred to in the prior art, and is not described in this embodiment. Wherein, five distance sensors are arranged around the external speaker of the smart phone, respectively, A, B, C, D, and E, and the positions thereof are as shown in FIG. 2, and A is located on the left side along the length direction of the external speaker. E is located on the right side along the length of the external speaker, and B, C, and D are located on one side of the speaker. FIG. 3 is a flowchart of another parameter adjustment method according to an embodiment of the present invention; As shown in FIG. 3, the method includes:
步骤201、智能手机出厂之前,生成被遮挡的距离传感器的个数与音频参数的对应关系,设置外置喇叭的初始音频参数。Step 201: Before the smartphone is shipped from the factory, generate a correspondence between the number of occluded distance sensors and audio parameters, and set initial audio parameters of the external speaker.
本实施例将外置喇叭的出音范围可以划分成了5个出音区域,每个出音区域对应着一个距离传感器。如图2所示,5个距离传感器的位置分别设置在外置喇叭四周的不同位置且每个距离传感器的朝向不同,每个距离传感器都用来感应智能手机受外界物体遮挡后,遮挡物距相应的距离传感器的检测距离。In this embodiment, the sound range of the external speaker can be divided into five sound emitting regions, and each sound emitting region corresponds to a distance sensor. As shown in Figure 2, the positions of the five distance sensors are respectively set at different positions around the external speakers and the orientation of each distance sensor is different. Each distance sensor is used to sense that the smart phone is blocked by external objects, and the distance between the obstacles is corresponding. Distance detection distance of the sensor.
作为一种实施方式,被遮挡的距离传感器的个数与音频参数的对应关系可以包括:当被遮挡的距离传感器的个数是1,即只有A或E被遮挡,将当前使用的音频参数调整为初始音频参数;当被遮挡的距离传感器的个数是2,即只有AB或DE两个距离传感器被遮挡,即这2个距离传感器对应的出音区域被遮挡,如图所示,也就是大约外置喇叭的1/3被遮挡时,将当前使用的音频参数调整为第二音频参数;当被遮挡的距离传感器的个数是3,即只有ABC或者CED三个距离传感器被遮挡,即这3个距离传感器对应的出音区域被遮挡,也就是大约外置喇叭的1/2部分被遮挡时,将当前使用的音频参数调整为第三音频参数;当被遮挡的距离传感器的个数是4,即只有ABCD或BCDE四个距离传感器被遮挡,即这4个距离传感器对应的出音区域被遮挡,也就是说大约外置喇叭的2/3部分被遮挡时,将当前使用的音频参数调整为第四音频参数;当被遮挡的距离传感器的个数是5,即5个距离传感器被遮挡,即所有出音区域都被遮挡,也就说整个外置喇叭都被遮挡时,将音频参数调整为第五音频参数。值得说明的是,上述对应关系只是示例性说明。As an implementation manner, the correspondence between the number of occluded distance sensors and the audio parameters may include: when the number of occluded distance sensors is 1, that is, only A or E is occluded, and the currently used audio parameters are adjusted. The initial audio parameter; when the number of occluded distance sensors is 2, that is, only two AB or DE distance sensors are occluded, that is, the sound regions corresponding to the two distance sensors are occluded, as shown in the figure, that is, When about 1/3 of the external speaker is occluded, the currently used audio parameter is adjusted to the second audio parameter; when the number of occluded distance sensors is 3, that is, only three ABC or CED distance sensors are blocked, that is, The sound-emitting areas corresponding to the three distance sensors are occluded, that is, when about 1/2 of the external speakers are occluded, the currently used audio parameters are adjusted to the third audio parameters; when the number of occluded distance sensors is Yes 4, that is, only four distance sensors of ABCD or BCDE are blocked, that is, the sound-emitting areas corresponding to the four distance sensors are blocked, that is, when about 2/3 of the external speakers are blocked Adjusting the currently used audio parameters to the fourth audio parameter; when the number of occluded distance sensors is 5, that is, 5 distance sensors are blocked, that is, all the sound areas are blocked, that is, the entire external speakers are When occluded, adjust the audio parameters to the fifth audio parameter. It should be noted that the above correspondence is merely an exemplary description.
步骤202、智能手机在接收到用户的播放音乐指令之后,通过外置喇叭播放音乐。 Step 202: After receiving the user's playing music instruction, the smart phone plays the music through the external speaker.
此时当前使用的音频参数是初始音频参数。The audio parameters currently in use at this time are the initial audio parameters.
步骤203、在当前检测周期内,每个距离传感器检测距遮挡物的检测距离。Step 203: During the current detection period, each distance sensor detects a detection distance from the obstruction.
这里,A、B、C、D和E的感应范围是预定的,当任一个距离传感器感应到无遮挡时,将一个足够大的预设值作为该距离传感器距遮挡物的检测距离。Here, the sensing ranges of A, B, C, D, and E are predetermined. When any of the distance sensors senses no occlusion, a sufficiently large preset value is used as the detection distance of the distance sensor from the occlusion.
步骤204、处理器获取5个距离传感器检测到的距遮挡物的检测距离。Step 204: The processor acquires a detection distance from the obstruction detected by the five distance sensors.
这里,本实施例的距离传感器可以主动发送自身距遮挡物的检测距离,或者,处理器可以按照周期主动获取距离传感器距遮挡物的激励。Here, the distance sensor of the embodiment can actively transmit the detection distance of the distance from the obstruction, or the processor can actively acquire the excitation of the distance sensor from the obstruction according to the period.
步骤205、处理器计算5个距离传感器检测到的距遮挡物的检测距离的平均值。Step 205: The processor calculates an average value of the detection distances of the obstructions detected by the five distance sensors.
步骤206、处理器判断该平均值是否小于预设阈值。若是,则执行步骤207;若否,执行步骤215。Step 206: The processor determines whether the average value is less than a preset threshold. If yes, go to step 207; if no, go to step 215.
步骤207、确定当前检测周期的预设阈值。Step 207: Determine a preset threshold of the current detection period.
本实施例中,获取从第1个检测周期到上1个检测周期内保存的最大检测距离;保存当前周期内的n个检测距离中最大检测距离;计算出从第1个检测周期到上1个检测周期内保存的最大检测距离和当前周期内的n个检测距离中最大检测距离的平均值;用所述平均值更新预设阈值。这里,所述预设阈值的初始值是1mm。In this embodiment, the maximum detection distance saved from the first detection period to the previous detection period is acquired; the maximum detection distance among the n detection distances in the current period is saved; and the calculation from the first detection period to the upper 1 is calculated. The maximum detection distance saved in one detection period and the average value of the maximum detection distance among the n detection distances in the current period; the preset threshold is updated with the average value. Here, the initial value of the preset threshold is 1 mm.
步骤208、处理器确定每个检测距离是否小于或等于预设阈值。Step 208: The processor determines whether each detected distance is less than or equal to a preset threshold.
步骤209、若A或E检测到的距遮挡物的检测距离都小于或等于预设阈值,则处理器确定出被遮挡的距离传感器个数是1。Step 209: If the detection distance from the obstruction detected by A or E is less than or equal to a preset threshold, the processor determines that the number of occluded distance sensors is 1.
步骤210、若AB或DE检测到的距遮挡物的检测距离都小于或等于预设阈值,则处理器确定出被遮挡的距离传感器个数是2。Step 210: If the detection distance from the obstruction detected by AB or DE is less than or equal to a preset threshold, the processor determines that the number of occluded distance sensors is 2.
这里,AB检测到的距遮挡物到的检测距离都小于或等于预设阈值,相 应的,其余的CDE检测到的距遮挡物的检测距离都大于预设阈值;DE检测到的距遮挡物的检测距离都小于或等于预设阈值,相应的,其余的ABC检测到的距遮挡物的检测距离都大于预设阈值。Here, the detection distance from the obstruction detected by AB is less than or equal to a preset threshold, The detection distance of the obstruction detected by the remaining CDE is greater than the preset threshold; the detection distance of the obstruction detected by DE is less than or equal to the preset threshold, and correspondingly, the remaining ABC detects the distance obscuration. The detection distance of the objects is greater than a preset threshold.
步骤211、若ABC或CDE检测到的距遮挡物的检测距离都小于或等于预设阈值,则处理器确定出被遮挡的距离传感器个数是3。Step 211: If the detection distance from the obstruction detected by the ABC or the CDE is less than or equal to the preset threshold, the processor determines that the number of the occluded distance sensors is 3.
这里,ABC检测到的距遮挡物的检测距离都小于或等于预设阈值,相应的,其余的DE检测到的距遮挡物的检测距离都大于预设阈值;CDE检测到的距遮挡物的检测距离都小于或等于预设阈值,相应的,其余的AB检测到的距遮挡物的检测距离都大于预设阈值。Here, the detection distance from the obstruction detected by the ABC is less than or equal to the preset threshold. Correspondingly, the detection distances of the obstructions detected by the remaining DE are greater than a preset threshold; the detection of the obstruction detected by the CDE The distances are all less than or equal to the preset threshold. Correspondingly, the detected distances from the obstructions detected by the remaining ABs are greater than a preset threshold.
步骤212、若ABCD或BCDE检测到的距遮挡物的检测距离都小于或等于预设阈值,则处理器确定出被遮挡的距离传感器个数是4。Step 212: If the detection distance from the obstruction detected by the ABCD or the BCDE is less than or equal to the preset threshold, the processor determines that the number of occluded distance sensors is 4.
这里,ABCD检测到的距遮挡物的检测距离都小于或等于预设阈值,相应的,E检测到的距遮挡物的检测距离都大于预设阈值;BCDE检测到的距遮挡物的检测距离都小于或等于预设阈值,相应的,其余的A检测到的距遮挡物的检测距离都大于预设阈值。Here, the detection distance from the obstruction detected by the ABCD is less than or equal to the preset threshold. Correspondingly, the detection distance from the obstruction detected by E is greater than a preset threshold; the detection distance of the obstruction detected by the BCDE is It is less than or equal to the preset threshold, and correspondingly, the detection distances of the remaining A detected from the obstruction are greater than a preset threshold.
步骤213、若5个距离传感器检测到的距遮挡物的检测距离都小于或等于预设阈值,则处理器确定出被遮挡的传感器个数是5。Step 213: If the detection distances of the obstructions detected by the five distance sensors are less than or equal to the preset threshold, the processor determines that the number of occluded sensors is 5.
步骤214、处理器根据被遮挡的距离传感器与音频参数的对应关系,将当前使用的音频参数调整为与被遮挡的传感器的个数对应的音频参数。Step 214: The processor adjusts the currently used audio parameter to an audio parameter corresponding to the number of occluded sensors according to the correspondence between the occluded distance sensor and the audio parameter.
步骤215、处理器将当前使用的音频参数调整为初始音频参数。Step 215: The processor adjusts the currently used audio parameter to an initial audio parameter.
实施例三Embodiment 3
本发明实施例提供一种参数调整装置30,该参数调整装置30的出音口四周依次设置有n个位置检测器件,图4为本发明实施例提供的一种参数调整装置的结构示意图;如图4所示,所述参数调整装置30可以包括:The embodiment of the present invention provides a parameter adjustment device 30. The parameter adjustment device 30 is provided with n position detection devices in turn around the sound outlet. FIG. 4 is a schematic structural diagram of a parameter adjustment device according to an embodiment of the present invention; As shown in FIG. 4, the parameter adjustment device 30 may include:
获取单元301,配置为获取所述n个检测距离,所述检测距离是所述n 个位置检测器件分别检测到的距遮挡物的距离,所述n是正整数;The acquiring unit 301 is configured to acquire the n detection distances, where the detection distance is the n The position detection device detects the distance from the occlusion, respectively, and the n is a positive integer;
确定单元302,配置为根据所述获取单元301获取的n个检测距离,从所述n个位置检测器件中确定出被遮挡的位置检测器件的个数i,所述i是小于或等于所述n的正整数;The determining unit 302 is configured to determine, according to the n detection distances acquired by the acquiring unit 301, the number i of occluded position detecting devices from the n position detecting devices, where i is less than or equal to the a positive integer of n;
调整单元303,配置为根据所述确定单元302确定的被遮挡的位置检测器件的个数与音频参数的对应关系,将当前使用的音频参数调整为与所述i对应的音频参数。The adjusting unit 303 is configured to adjust the currently used audio parameter to the audio parameter corresponding to the i according to the correspondence between the number of occluded position detecting devices determined by the determining unit 302 and the audio parameter.
这里,所述检测距离是n个位置检测器件分别检测到的距遮挡物的距离,n是正整数。所述位置检测器件将出音口的出音范围划分成了n个出音区域,每个位置检测器件对应着一个出音区域。所述位置检测器件可以包括距离传感器等其它能够检测到距离的器件。作为一种实施方式,所述位置检测装置是距离传感器。Here, the detection distance is a distance from the obstruction detected by the n position detecting devices, and n is a positive integer. The position detecting device divides the sound emission range of the sound outlet into n sound emitting regions, and each position detecting device corresponds to one sound emitting region. The position detecting device may include a distance sensor or other device capable of detecting a distance. As an embodiment, the position detecting device is a distance sensor.
其中,所述音频参数可以包括发送灵敏度/频率响应、发送响度评定值、接受灵敏度/频率响应、接收响度评定值、侧音掩蔽评定值、发送失真、接收失真、回音损耗、空闲信道噪声等。The audio parameters may include a transmission sensitivity/frequency response, a transmission loudness evaluation value, a reception sensitivity/frequency response, a reception loudness evaluation value, a sidetone masking evaluation value, a transmission distortion, a reception distortion, a return loss, an idle channel noise, and the like.
相较于现有技术,本发明实施例不再固定音频参数,而是根据分布在终端设备的出音口四周的位置检测器件检测到的距离遮挡物的检测距离来确定出被遮挡的位置检测器件的个数,从而调整当前使用的音频参数。这样,根据距遮挡物的测量距离来调整音频参数,也就是根据音频播放时的实际被遮挡的情况,将当前使用的音频参数调整为一个更符合实际情况的音频参数,因此,改进了音频效果,提高了用户体验。Compared with the prior art, the embodiment of the present invention no longer fixes the audio parameters, but determines the occluded position detection according to the detection distance of the distance occlusion detected by the position detecting device distributed around the sound outlet of the terminal device. The number of devices to adjust the currently used audio parameters. In this way, the audio parameters are adjusted according to the measured distance from the occluded object, that is, the currently used audio parameters are adjusted to a more realistic audio parameter according to the actual occlusion of the audio during playback, thereby improving the audio effect. , improved user experience.
作为一种实施方式,当所述n个位置检测器件中第1个位置检测器件和第n个位置检测器件分别设置于沿所述出音口的长度方向的两侧;As an embodiment, when the n position detecting devices and the nth position detecting device are respectively disposed on both sides along the length direction of the sound outlet;
所述确定单元302,配置为若只有所述第1个位置检测器件和与所述第1个位置检测器件连续的i-1个位置检测器件检测到的检测距离小于或等于 预设阈值,或,只有所述第n个位置检测器件和与所述第n个位置检测器件连续的i-1个位置检测器件检测到的检测距离小于或等于预设阈值,则确定出所述被遮挡的位置检测器件的个数是i。The determining unit 302 is configured to detect that the detection distance detected by only the first position detecting device and the i-1 position detecting devices continuous with the first position detecting device is less than or equal to a preset threshold, or only if the detected distance detected by the nth position detecting device and the i-1 position detecting device continuous with the nth position detecting device is less than or equal to a preset threshold The number of occluded position detecting devices is i.
具体的,假设出音口附近有4个位置检测器件,第1个位置检测器件设置在出音口的长度方向的左侧,第4个位置检测器件设置在出音口的长度方向的右侧,剩下的位置检测器件设置在出音口长度方向的一侧。若只有第1个位置检测器件或第4个位置检测器件检测到的检测距离小于或等于预设阈值,则所述确定单元302确定出被遮挡的位置检测器件的个数是1;若只有第1个位置检测器件和第2个位置检测器件检测到的检测距离小于或等于预设阈值,则所述确定单元302确定出被遮挡的位置检测器件的个数是2;若只有第4个位置检测器件和第3个位置检测器件检测到的检测距离小于或等于预设阈值,则所述确定单元302确定出被遮挡的位置检测器件的个数是2;若只有第1个位置检测器件、第2个位置检测器件和第3个位置检测器件检测到的检测距离小于或等于预设阈值,则所述确定单元302确定出被遮挡的位置检测器件的个数是3;若只有第4个位置检测器件、第3个位置检测器件和第2个位置检测器件检测到的检测距离小于或等于预设阈值,则所述确定单元302确定出被遮挡的位置检测器件的个数是3;若4个位置检测器件检测到的检测距离小于或等于预设阈值,则所述确定单元302确定出被遮挡的位置检测器件的个数是4。值得说明的是,上述用于判断被遮挡的位置检测器件个数的位置检测器件需要同时包括出音口的长度方向排列的位置检测器件检测和出音口的宽度方向的位置检测器件。Specifically, it is assumed that there are four position detecting devices in the vicinity of the sound outlet, the first position detecting device is disposed on the left side in the longitudinal direction of the sound outlet, and the fourth position detecting device is disposed on the right side in the longitudinal direction of the sound outlet. The remaining position detecting device is disposed on one side of the length of the sound outlet. If only the detection distance detected by the first position detecting device or the fourth position detecting device is less than or equal to the preset threshold, the determining unit 302 determines that the number of the occluded position detecting devices is 1; If the detection distance detected by the one position detecting device and the second position detecting device is less than or equal to the preset threshold, the determining unit 302 determines that the number of the occluded position detecting devices is 2; if only the fourth position The detecting unit 302 determines that the detected position of the occluded position detecting device is 2; if only the first position detecting device, If the detection distance detected by the second position detecting device and the third position detecting device is less than or equal to the preset threshold, the determining unit 302 determines that the number of occluded position detecting devices is 3; if only the fourth The determining unit 302 determines the occluded bit when the detected distance detected by the position detecting device, the third position detecting device, and the second position detecting device is less than or equal to the preset threshold. The number of detecting devices is three; if the detecting distance detected by the four position detecting devices is less than or equal to a preset threshold, the determining unit 302 determines that the number of occluded position detecting devices is four. It is to be noted that the above-described position detecting device for judging the number of blocked position detecting devices is required to include a position detecting device for detecting the longitudinal direction of the sound outlet and a position detecting device for the width direction of the sound outlet.
作为一种实施方式,图5为本发明实施例提供的另一种参数调整装置的结构示意图;如图5所示,所述装置30还包括:As an embodiment, FIG. 5 is a schematic structural diagram of another parameter adjustment apparatus according to an embodiment of the present invention; as shown in FIG. 5, the apparatus 30 further includes:
计算单元304,配置为计算所述获得的n个检测距离的第一平均值;The calculating unit 304 is configured to calculate a first average value of the obtained n detection distances;
所述确定单元302,还配置为若所述获得的n个检测距离的第一平均值 小于或等于预设阈值,则确定所述预设阈值。The determining unit 302 is further configured to: if the first average value of the obtained n detection distances If it is less than or equal to the preset threshold, the preset threshold is determined.
本实施例中,所述位置检测器件与音频参数的对应关系如表1所示,可以包括:当2个位置检测器件被遮挡,即2个位置检测器件对应的出音区域被遮挡时,将当前使用的音频参数调整为第二音频参数;当3个位置检测器件被遮挡,即3个位置检测器件对应的出音区域被遮挡时,将当前使用的音频参数调整为第三音频参数;当4个位置检测器件被遮挡,即任4位置检测器件对应的出音区域被遮挡时,将当前使用的音频参数调整为第四音频参数;以此类推,m个位置检测器件被遮挡,即整个出音范围被遮挡时,将当前使用的音频参数调整为第m音频参数。这里,若只有一个位置测量器件被遮挡,则将当前使用的音频参数调整为初始音频参数。In this embodiment, the corresponding relationship between the position detecting device and the audio parameter is as shown in Table 1, and may include: when two position detecting devices are blocked, that is, when the sound emitting regions corresponding to the two position detecting devices are blocked, The currently used audio parameters are adjusted to the second audio parameter; when the three position detecting devices are occluded, that is, the sound regions corresponding to the three position detecting devices are occluded, the currently used audio parameters are adjusted to the third audio parameters; The four position detecting devices are occluded, that is, when the sound emitting area corresponding to the four position detecting device is occluded, the currently used audio parameter is adjusted to the fourth audio parameter; and so on, the m position detecting devices are occluded, that is, the whole When the sound range is occluded, the currently used audio parameters are adjusted to the mth audio parameter. Here, if only one position measuring device is occluded, the currently used audio parameters are adjusted to the initial audio parameters.
作为一种实施方式,所述确定单元302,配置为获取已保存的最大检测距离;保存所述获取的n个检测距离中最大检测距离;计算出已保存的最大检测距离和所述获取的n个检测距离中最大检测距离的第二平均值;用所述第二平均值更新预设阈值。这里,由于本实施例撰写的是当前检测周期内的参数调整方法,因此,已保存的最大检测距离是从第1个检测周期到上1个检测周期内保存的最大检测距离;获取的n个检测距离中最大检测距离就是当前检测周期保存的最大检测距离。As an implementation manner, the determining unit 302 is configured to acquire the saved maximum detection distance; save the maximum detection distance among the acquired n detection distances; calculate the saved maximum detection distance and the acquired n a second average of the maximum detected distances among the detected distances; the preset threshold is updated with the second average value. Here, since the present embodiment writes a parameter adjustment method in the current detection period, the saved maximum detection distance is the maximum detection distance saved from the first detection period to the previous detection period; n acquired The maximum detection distance in the detection distance is the maximum detection distance saved in the current detection period.
作为一种实施方式,所述预设阈值的初始值是1mm。As an embodiment, the initial value of the preset threshold is 1 mm.
作为一种实施方式,如图5所示,所述装置还包括:As an embodiment, as shown in FIG. 5, the device further includes:
生成单元305,配置为生成所述被遮挡的位置检测器件的个数与音频参数的对应关系;The generating unit 305 is configured to generate a correspondence between the number of the occluded position detecting devices and the audio parameter;
设置单元306,配置为设置初始音频参数。The setting unit 306 is configured to set an initial audio parameter.
这里,被遮挡的位置检测器件的个数与音频参数的对应关系可以按照位置检测器件设计。Here, the correspondence between the number of occluded position detecting devices and the audio parameters can be designed according to the position detecting device.
在实际应用中,所述参数调整装置可由具有音频输出功能的手机、平 板电脑、笔记本电脑、台式电脑等终端实现;所述获取单元301、确定单元302、调整单元303、计算单元304、生成单元305和设置单元306均可由位于终端中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In practical applications, the parameter adjustment device can be used by a mobile phone with an audio output function. The terminal computer 301, the determining unit 302, the adjusting unit 303, the calculating unit 304, the generating unit 305, and the setting unit 306 are all implemented by a central processing unit (Central Processing Unit) located in the terminal. , CPU, Micro Processor Unit (MPU), Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA).
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. Instructions are provided for implementation The steps of a function specified in a block or blocks of a flow or a flow and/or a block diagram of a flow chart.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
本发明实施例根据分布在终端设备的出音口四周的位置检测器件检测到的距遮挡物的检测距离,来确定出被遮挡的位置检测器件的个数,从而及时调整当前使用的音频参数。这样,根据距遮挡物的检测距离来调整音频参数,即根据音频播放时的实际被遮挡情况,将当前使用的音频参数调整为一个更符合实际情况的音频参数,因此,本发明实施例改进了音频效果,提升了用户体验。 The embodiment of the present invention determines the number of occluded position detecting devices according to the detection distance of the occlusion detected by the position detecting device distributed around the sound outlet of the terminal device, thereby adjusting the currently used audio parameters in time. In this way, the audio parameters are adjusted according to the detection distance from the occlusion object, that is, the currently used audio parameters are adjusted to a more realistic audio parameter according to the actual occlusion situation during audio playback, and thus, the embodiment of the present invention is improved. Audio effects enhance the user experience.

Claims (13)

  1. 一种参数调整方法,应用于参数调整装置,所述参数调整装置的出音口四周依次设置有n个位置检测器件,所述方法包括:A parameter adjustment method is applied to the parameter adjustment device, wherein the position adjustment device is provided with n position detection devices in turn around the sound outlet, the method comprising:
    获取n个检测距离,所述检测距离是所述n个位置检测器件分别检测到的距遮挡物的距离,所述n是正整数;Obtaining n detection distances, where the detection distance is a distance from the occlusion object detected by the n position detecting devices, where n is a positive integer;
    根据获得的n个检测距离,从所述n个位置检测器件中确定出被遮挡的位置检测器件的个数i,所述i是小于或等于所述n的正整数;Determining, from the n position detecting devices, the number i of occluded position detecting devices according to the obtained n detecting distances, wherein i is a positive integer smaller than or equal to the n;
    根据被遮挡的位置检测器件的个数与音频参数的对应关系,将当前使用的音频参数调整为与所述i对应的音频参数。The currently used audio parameters are adjusted to audio parameters corresponding to the i according to the correspondence between the number of occluded position detecting devices and the audio parameters.
  2. 根据权利要求1所述的方法,其中,所述n个位置检测器件中第1个位置检测器件和第n个位置检测器件分别设置于沿所述出音口的长度方向的两侧;The method according to claim 1, wherein a first position detecting device and an nth position detecting device of the n position detecting devices are respectively disposed on both sides along a length direction of the sound outlet;
    所述根据获得的n个检测距离,从所述n个位置检测器件中确定出被遮挡的位置检测器件的个数i包括:Determining, according to the obtained n detection distances, the number i of occluded position detecting devices from the n position detecting devices includes:
    若只有所述第1个位置检测器件和与所述第1个位置检测器件连续的i-1个位置检测器件检测到的检测距离小于或等于预设阈值,或,只有所述第n个位置检测器件和与所述第n个位置检测器件连续的i-1个位置检测器件检测到的检测距离小于或等于预设阈值,则确定出所述被遮挡的位置检测器件的个数是i。If only the first position detecting device and the i-1 position detecting device continuous with the first position detecting device detect a detection distance less than or equal to a preset threshold, or only the nth position The detection device and the detection distance detected by the i-1 position detecting devices consecutive to the nth position detecting device are less than or equal to a preset threshold, and it is determined that the number of the occluded position detecting devices is i.
  3. 根据权利要求2所述的方法,其中,所述确定出所述被遮挡的位置检测器件的个数是i之前,所述方法还包括:计算所述获得的n个检测距离的第一平均值;The method according to claim 2, wherein said method further comprises: calculating a first average of said obtained n detected distances before said determining that the number of said occluded position detecting means is i ;
    若所述获得的n个检测距离的第一平均值小于或等于预设阈值,则确定所述预设阈值。And determining the preset threshold if the first average value of the obtained n detection distances is less than or equal to a preset threshold.
  4. 根据权利要求3所述的方法,其中,所述确定所述预设阈值包括: The method of claim 3, wherein the determining the preset threshold comprises:
    获取已保存的最大检测距离;Get the maximum detected detection distance;
    保存所述获取的n个检测距离中最大检测距离;Saving a maximum detection distance among the obtained n detection distances;
    计算出已保存的最大检测距离和所述获取的n个检测距离中最大检测距离的第二平均值;Calculating a second average value of the saved maximum detection distance and the maximum detection distance among the obtained n detection distances;
    用所述第二平均值更新预设阈值。The preset threshold is updated with the second average.
  5. 根据权利要求4所述的方法,其中,所述预设阈值的初始值是1mm。The method of claim 4, wherein the initial value of the preset threshold is 1 mm.
  6. 根据权利要求1至5任一项所述的方法,其中,在所述获取n个检测距离之前,所述方法还包括:The method according to any one of claims 1 to 5, wherein before the obtaining the n detection distances, the method further comprises:
    生成所述被遮挡的位置检测器件的个数与音频参数的对应关系;Generating a correspondence between the number of the occluded position detecting devices and the audio parameters;
    设置初始音频参数。Set the initial audio parameters.
  7. 一种参数调整装置,所述参数调整装置的出音口四周依次设置有n个位置检测器件,所述装置包括:A parameter adjustment device, wherein the parameter adjustment device is provided with n position detecting devices in turn around the sound outlet, the device comprising:
    获取单元,配置为获取所述n个检测距离,所述检测距离是所述n个位置检测器件分别检测到的距遮挡物的距离,所述n是正整数;An acquiring unit, configured to acquire the n detection distances, where the detection distance is a distance from the occlusion object detected by the n position detecting devices, where n is a positive integer;
    确定单元,配置为根据所述获取单元获得的n个检测距离,从所述n个位置检测器件中确定出被遮挡的位置检测器件的个数i,所述i是小于或等于所述n的正整数;a determining unit configured to determine, according to the n detection distances obtained by the acquiring unit, the number i of occluded position detecting devices from the n position detecting devices, where i is less than or equal to the n Positive integer
    调整单元,配置为根据所述确定单元确定的被遮挡的位置检测器件的个数与音频参数的对应关系,将当前音使用的频参数调整为与所述i对应的音频参数。The adjusting unit is configured to adjust the frequency parameter used by the current tone to the audio parameter corresponding to the i according to the correspondence between the number of occluded position detecting devices determined by the determining unit and the audio parameter.
  8. 根据权利要求7所述的装置,其中,所述n个位置检测器件中第1个位置检测器件和第n个位置检测器件分别设置于沿所述出音口的长度方向的两侧;The apparatus according to claim 7, wherein a first position detecting means and an nth position detecting means of said n position detecting means are respectively disposed on both sides along a length direction of said sound outlet;
    所述确定单元,配置为若只有所述第1个位置检测器件和与所述第1个位置检测器件连续的i-1个位置检测器件检测到的检测距离小于或等于预 设阈值,或,只有所述第n个位置检测器件和与所述第n个位置检测器件连续的i-1个位置检测器件检测到的检测距离小于或等于预设阈值,则确定出所述被遮挡的位置检测器件的个数是i。The determining unit is configured to detect that the detection distance detected by only the first position detecting device and the i-1 position detecting devices continuous with the first position detecting device is less than or equal to Setting a threshold, or determining that only the detection distance detected by the nth position detecting device and the i-1 position detecting devices continuous with the nth position detecting device is less than or equal to a preset threshold The number of occluded position detecting devices is i.
  9. 根据权利要求8所述的装置,其中,所述装置还包括:The apparatus of claim 8 wherein said apparatus further comprises:
    计算单元,配置为计算所述获得的n个检测距离的第一平均值;a calculating unit configured to calculate a first average value of the obtained n detecting distances;
    所述确定单元,还配置为若所述获得的n个检测距离的第一平均值小于或等于预设阈值,则确定所述预设阈值。The determining unit is further configured to determine the preset threshold if the first average value of the obtained n detection distances is less than or equal to a preset threshold.
  10. 根据权利要求9所述的装置,其中,所述确定单元,配置为获取已保存的最大检测距离;保存所述获取的n个检测距离中最大检测距离;计算出已保存的最大检测距离和所述获取的n个检测距离中最大检测距离的第二平均值;用所述第二平均值更新预设阈值。The apparatus according to claim 9, wherein the determining unit is configured to acquire the saved maximum detection distance; save the maximum detection distance among the acquired n detection distances; calculate the saved maximum detection distance and the location And a second average value of the largest detection distance among the obtained n detection distances; and the preset threshold is updated by the second average value.
  11. 根据权利要求10所述的装置,其中,所述预设阈值的初始值是1mm。The apparatus of claim 10, wherein the initial value of the preset threshold is 1 mm.
  12. 根据权利要求7至11任一项所述的装置,其中,所述装置还包括:The device according to any one of claims 7 to 11, wherein the device further comprises:
    生成单元,配置为生成所述被遮挡的位置检测器件的个数与音频参数的对应关系;a generating unit configured to generate a correspondence between the number of the occluded position detecting devices and the audio parameters;
    设置单元,配置为设置初始音频参数。Set the unit to configure the initial audio parameters.
  13. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行权利要求1至6任一项所述的参数调整方法。 A computer storage medium having computer executable instructions stored therein, the computer executable instructions being configured to perform the parameter adjustment method of any one of claims 1 to 6.
PCT/CN2015/089081 2015-07-07 2015-09-07 Parameter adjustment method, device and computer storage medium WO2017004881A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510394511.0A CN106339068A (en) 2015-07-07 2015-07-07 Method and device for adjusting parameters
CN201510394511.0 2015-07-07

Publications (1)

Publication Number Publication Date
WO2017004881A1 true WO2017004881A1 (en) 2017-01-12

Family

ID=57684629

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/089081 WO2017004881A1 (en) 2015-07-07 2015-09-07 Parameter adjustment method, device and computer storage medium

Country Status (2)

Country Link
CN (1) CN106339068A (en)
WO (1) WO2017004881A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257668B (en) * 2018-08-21 2020-10-13 广东思派康电子科技有限公司 Sound box capable of adaptively controlling sound effect and computer readable storage medium thereof
CN111147982B (en) * 2019-12-27 2021-12-21 宇龙计算机通信科技(深圳)有限公司 Audio playing method and device, storage medium and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1440629A (en) * 2000-03-09 2003-09-03 Be4有限公司 System and method for optimization of three-dimensional audio
JP2006303661A (en) * 2005-04-18 2006-11-02 Funai Electric Co Ltd Sound controller
CN101682814A (en) * 2007-07-19 2010-03-24 伯斯有限公司 System and method for directionally radiating sound
CN102893175A (en) * 2010-05-20 2013-01-23 皇家飞利浦电子股份有限公司 Distance estimation using sound signals
CN104079248A (en) * 2014-06-27 2014-10-01 联想(北京)有限公司 Information processing method and electronic device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1936481A1 (en) * 2006-12-22 2008-06-25 Xelion B.V. Menu in a user interface
TWI440367B (en) * 2010-03-31 2014-06-01 Merry Electronics Co Ltd Earphone device with sound quality adjustment function and adjusting method thereof
CN102438188A (en) * 2010-09-29 2012-05-02 宏达国际电子股份有限公司 Movable electronic device and sound playing method thereof
CN103517178A (en) * 2012-06-26 2014-01-15 联想(北京)有限公司 Method, device and electronic apparatus for audio frequency regulation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1440629A (en) * 2000-03-09 2003-09-03 Be4有限公司 System and method for optimization of three-dimensional audio
JP2006303661A (en) * 2005-04-18 2006-11-02 Funai Electric Co Ltd Sound controller
CN101682814A (en) * 2007-07-19 2010-03-24 伯斯有限公司 System and method for directionally radiating sound
CN102893175A (en) * 2010-05-20 2013-01-23 皇家飞利浦电子股份有限公司 Distance estimation using sound signals
CN104079248A (en) * 2014-06-27 2014-10-01 联想(北京)有限公司 Information processing method and electronic device

Also Published As

Publication number Publication date
CN106339068A (en) 2017-01-18

Similar Documents

Publication Publication Date Title
US9706305B2 (en) Enhancing audio using a mobile device
US10848887B2 (en) Blocked microphone detection
JP2017527223A5 (en)
EP3163914A3 (en) Sound level estimation
US10341775B2 (en) Apparatus, method and computer program for rendering a spatial audio output signal
WO2015134225A4 (en) Systems and methods for enhancing performance of audio transducer based on detection of transducer status
US9736782B2 (en) Mobile device environment detection using an audio sensor and a reference signal
US9992595B1 (en) Acoustic change detection
JP2006258442A (en) Position detection system, speaker system, and user terminal device
US20180352324A1 (en) Loudspeaker orientation systems
US10932079B2 (en) Acoustical listening area mapping and frequency correction
US20230037824A1 (en) Methods for reducing error in environmental noise compensation systems
WO2018014673A1 (en) Method and device for howling detection
KR20140097699A (en) Compensating a hearing impairment apparatus and method using 3d equal loudness contour
JP2018527857A5 (en)
JP2019075777A5 (en)
CN113302949B (en) Enabling a user to obtain an appropriate head-related transfer function profile
WO2017004881A1 (en) Parameter adjustment method, device and computer storage medium
US10490205B1 (en) Location based storage and upload of acoustic environment related information
US10186279B2 (en) Device for detecting, monitoring, and cancelling ghost echoes in an audio signal
JP6503226B2 (en) PORTABLE TERMINAL, SOUND OUTPUT DEVICE, AND VOLUME ADJUSTMENT METHOD
JP2019068395A5 (en) Sound systems, sound processing methods, and programs
JP2019054340A (en) Signal processor and control method therefor
JP2007028046A (en) Multi-channel audio system and its voice-level adjusting method
EP3499912A1 (en) Audio output device and method of controlling the sound output of an electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15897537

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15897537

Country of ref document: EP

Kind code of ref document: A1