CN103677234B - An information processing method and electronic device - Google Patents

An information processing method and electronic device Download PDF

Info

Publication number
CN103677234B
CN103677234B CN201210345938.8A CN201210345938A CN103677234B CN 103677234 B CN103677234 B CN 103677234B CN 201210345938 A CN201210345938 A CN 201210345938A CN 103677234 B CN103677234 B CN 103677234B
Authority
CN
China
Prior art keywords
value
collection device
distance
sound
acquisition parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210345938.8A
Other languages
Chinese (zh)
Other versions
CN103677234A (en
Inventor
李燚
肖荣彬
胡建锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210345938.8A priority Critical patent/CN103677234B/en
Priority to CN201611148643.6A priority patent/CN106774882B/en
Publication of CN103677234A publication Critical patent/CN103677234A/en
Application granted granted Critical
Publication of CN103677234B publication Critical patent/CN103677234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)

Abstract

The invention discloses an information processing method and electronic equipment, wherein the information processing method is applied to the electronic equipment comprising a sound acquisition device, and comprises the following steps: detecting and obtaining a first distance value between a reference object and a first object, wherein a second distance value between a sound source of the sound collected by the sound collection device and the sound collection device can be determined based on the first distance value; judging whether a first acquisition parameter value corresponding to a first acquisition parameter of the sound acquisition device is matched with the first distance value; and when the first acquisition parameter value is not matched with the first distance value, adjusting the parameter value of the first acquisition parameter from the first acquisition parameter value to a second acquisition parameter value, wherein the second acquisition parameter value is matched with the first distance value.

Description

一种信息处理的方法及电子设备An information processing method and electronic device

技术领域technical field

本发明涉及人工智能领域,特别涉及一种信息处理的方法及电子设备。The invention relates to the field of artificial intelligence, in particular to an information processing method and electronic equipment.

背景技术Background technique

随着信息技术的发展,电子设备的功能越来越多,其中,就包括语音识别功能。语音识别功能可以通过声音命令对电子设备进行控制,比如:控制窗口大小、启动应用程序、锁定解锁等等。With the development of information technology, electronic devices have more and more functions, including voice recognition functions. The voice recognition function can control electronic devices through voice commands, such as: controlling window size, launching applications, locking and unlocking, and so on.

在现有技术中,如图1所示,电子设备通常采用如下方式通过语音控制指令对电子设备进行控制:In the prior art, as shown in FIG. 1 , an electronic device usually controls the electronic device through a voice control instruction in the following manner:

S101:通过语音采集装置获得语音信息;S101: Obtain voice information through the voice collection device;

S102:对所述语音信息进行语音识别,获得控制指令;S102: Perform voice recognition on the voice information to obtain a control instruction;

S103:基于所述控制指令,对电子设备进行控制。S103: Control the electronic device based on the control instruction.

而通常情况下,在对语音信息进行识别的时候,如果获取的环境噪音过大,将导致识别的准确率过低,故而,为了保证语音识别的准确率,通常要尽量降低语音信息中的环境噪音,而为了降低语音信息中的环境噪音,通常要对语音采集装置的一些采集参数预先作一些设置,比如:增益、降噪系数等等。Usually, when the voice information is recognized, if the acquired environmental noise is too large, the accuracy of recognition will be too low. Therefore, in order to ensure the accuracy of voice recognition, it is usually necessary to reduce the environmental noise in the voice information as much as possible. In order to reduce the environmental noise in the voice information, it is usually necessary to pre-set some acquisition parameters of the voice acquisition device, such as gain, noise reduction coefficient and so on.

本申请发明人在实现本申请实施例技术方案的过程中,至少发现现有技术中存在如下技术问题:In the process of implementing the technical solutions of the embodiments of the present application, the inventors of the present application at least found the following technical problems in the prior art:

由于在现有技术中,声音采集装置和声音源的距离的不同,为保证获得最佳的语音信息,其采集参数的设置是不同的,但是,由于声音采集装置的采集参数都是预先设置,而不能基于声音采集装置和声音源的距离的不同作适应性的调整,故而存在着不能获得最佳的语音信息的技术问题。Due to the difference in the distance between the sound collection device and the sound source in the prior art, in order to ensure that the best voice information is obtained, the setting of its collection parameters is different, but, because the collection parameters of the sound collection device are all preset, However, adaptive adjustment cannot be made based on the distance between the sound collection device and the sound source, so there is a technical problem that the best voice information cannot be obtained.

发明内容Contents of the invention

本发明实施例提供一种信息处理方法及电子设备,用于解决现有技术中不能获得最佳的语音信息的技术问题。Embodiments of the present invention provide an information processing method and electronic equipment, which are used to solve the technical problem that the best voice information cannot be obtained in the prior art.

本申请一实施例提供如下技术方案:An embodiment of the present application provides the following technical solutions:

一种信息处理的方法,所述方法应用在一包括声音采集装置的电子设备中,所述方法包括:A method for information processing, the method is applied in an electronic device including a sound collection device, the method includes:

检测获得一参考物体与第一物体之间的第一距离值,其中,基于所述第一距离值能够确定所述声音采集装置所采集的声音的声音源和所述声音采集装置之间的第二距离值;Detecting and obtaining a first distance value between a reference object and a first object, wherein, based on the first distance value, the sound source of the sound collected by the sound collection device and the first distance between the sound collection device can be determined. Two distance values;

判断所述声音采集装置的第一采集参数所对应的第一采集参数值是否和所述第一距离值相匹配;judging whether the first collection parameter value corresponding to the first collection parameter of the sound collection device matches the first distance value;

当所述第一采集参数值和所述第一距离值不相匹配时,将所述第一采集参数的参数值由所述第一采集参数值调整为第二采集参数值,其中,所述第二采集参数值与所述第一距离值相匹配。When the first collection parameter value does not match the first distance value, adjusting the parameter value of the first collection parameter from the first collection parameter value to a second collection parameter value, wherein the The second acquisition parameter value matches the first distance value.

进一步的,所述检测获得一参考物体与第一物体之间的第一距离值,具体包括:Further, the detection obtains a first distance value between a reference object and the first object, specifically including:

获得所述声音采集装置所在环境的环境噪音值;Obtain the environmental noise value of the environment where the sound collection device is located;

判断所述环境噪音值是否大于第一预设阈值;judging whether the ambient noise value is greater than a first preset threshold;

当所述环境噪音值大于所述第一预设阈值时,通过检测获得所述第一距离值。When the environmental noise value is greater than the first preset threshold, the first distance value is obtained through detection.

进一步的,所述判断所述声音采集装置的第一采集参数所对应的第一采集参数值是否和所述第一距离值相匹配,具体包括:Further, the judging whether the first collection parameter value corresponding to the first collection parameter of the sound collection device matches the first distance value specifically includes:

获取所述第一距离值所对应的第一声压级;Acquiring a first sound pressure level corresponding to the first distance value;

判断所述第一声压级和所述声音采集装置所在环境的环境噪音的第一响度之差是否大于第二预设阈值,获得第一判断结果;judging whether the difference between the first sound pressure level and the first loudness of the ambient noise of the environment where the sound collection device is located is greater than a second preset threshold, and obtaining a first judging result;

基于所述第一判断结果,判断所述第一采集参数值是否和所述第一距离值相匹配。Based on the first judgment result, it is judged whether the first acquisition parameter value matches the first distance value.

进一步的,所述第一声压级通过采用如下公式计算获得:Further, the first sound pressure level is calculated by using the following formula:

S=S1-20lgLS=S1-20lgL

其中,S表示所述第一声压级,其单位为分贝;Wherein, S represents the first sound pressure level, and its unit is decibel;

S1表示距离声音采集装置1米处的声压级,其单位为分贝;S1 represents the sound pressure level at a distance of 1 meter from the sound collection device, and its unit is decibel;

L表示所述第二距离值,单位为米。L represents the second distance value, and the unit is meter.

进一步的,所述将所述第一采集参数的参数值由所述第一采集参数值调整为第二采集参数值,具体为:Further, the adjusting the parameter value of the first collection parameter from the first collection parameter value to the second collection parameter value is specifically:

将所述声音采集装置的麦克风增益由第一值调整为与所述第一值不同的第二值。Adjusting the microphone gain of the sound collection device from a first value to a second value different from the first value.

进一步的,所述将所述第一采集参数的参数值由所述第一采集参数值调整为第二采集参数值,具体为:Further, the adjusting the parameter value of the first collection parameter from the first collection parameter value to the second collection parameter value is specifically:

将所述声音采集装置的降噪参数的参数值由第三值调整为与所述第三值不同的第四值。The parameter value of the noise reduction parameter of the sound collection device is adjusted from a third value to a fourth value different from the third value.

进一步的,在所述判断所述声音采集装置的第一采集参数所对应的第一采集参数值是否和所述第一距离值相匹配之后,所述方法还包括:Further, after determining whether the first collection parameter value corresponding to the first collection parameter of the sound collection device matches the first distance value, the method further includes:

当所述第一采集参数值和所述第一距离值相匹配时,通过所述声音采集装置采集所述声音源所发出的第一声音。When the first collection parameter value matches the first distance value, the first sound emitted by the sound source is collected by the sound collection device.

另一方面,本申请另一实施例提供如下技术方案:On the other hand, another embodiment of the present application provides the following technical solution:

一种电子设备,所述电子设备具体包括声音采集装置,所述电子设备还包括:An electronic device, the electronic device specifically includes a sound collection device, and the electronic device also includes:

检测模块,用于检测获得一参考物体与第一物体之间的第一距离值,其中,基于所述第一距离值能够确定所述声音采集装置所采集的声音的声音源和所述声音采集装置之间的第二距离值;A detection module, configured to detect and obtain a first distance value between a reference object and a first object, wherein the sound source of the sound collected by the sound collection device and the sound collection can be determined based on the first distance value a second distance value between devices;

判断模块,用于判断所述声音采集装置的第一采集参数所对应的第一采集参数值是否和所述第一距离值相匹配;A judgment module, configured to judge whether the first collection parameter value corresponding to the first collection parameter of the sound collection device matches the first distance value;

调整模块,用于当所述第一采集参数值和所述第一距离值不相匹配时,将所述第一采集参数的参数值由所述第一采集参数值调整为第二采集参数值,其中,所述第二采集参数值与所述第一距离值相匹配。An adjustment module, configured to adjust the parameter value of the first collection parameter from the first collection parameter value to a second collection parameter value when the first collection parameter value does not match the first distance value , wherein the second acquisition parameter value matches the first distance value.

进一步的,所述检测模块,具体包括:Further, the detection module specifically includes:

第一获得单元,用于获得所述声音采集装置所在环境的环境噪音值;A first obtaining unit, configured to obtain an environmental noise value of the environment where the sound collection device is located;

第一判断单元,用于判断所述环境噪音值是否大于第一预设阈值;A first judging unit, configured to judge whether the environmental noise value is greater than a first preset threshold;

第二获得单元,用于当所述环境噪音值大于所述第一预设阈值时,通过检测获得所述第一距离值。The second obtaining unit is configured to obtain the first distance value through detection when the environmental noise value is greater than the first preset threshold.

进一步的,所述判断模块,具体包括:Further, the judging module specifically includes:

获取单元,用于获取所述第一距离值所对应的第一声压级;an acquisition unit, configured to acquire a first sound pressure level corresponding to the first distance value;

第二判断单元,用于判断所述第一声压级和所述声音采集装置所在环境的环境噪音的第一响度之差是否大于第二预设阈值,获得第一判断结果;A second judging unit, configured to judge whether the difference between the first sound pressure level and the first loudness of the ambient noise of the environment where the sound collection device is located is greater than a second preset threshold, and obtain a first judging result;

第三判断单元,基于所述第一判断结果,判断所述第一采集参数值是否和所述第一距离值相匹配。A third judging unit, based on the first judging result, judging whether the first acquisition parameter value matches the first distance value.

进一步的,所述第一声压级通过采用如下公式计算获得:Further, the first sound pressure level is calculated by using the following formula:

S=S1-20lgLS=S1-20lgL

其中,S表示所述第一声压级,其单位为分贝;Wherein, S represents the first sound pressure level, and its unit is decibel;

S1表示距离声音采集装置1米处的声压级,其单位为分贝;S1 represents the sound pressure level at a distance of 1 meter from the sound collection device, and its unit is decibel;

L表示所述第二距离值,单位为米。L represents the second distance value, and the unit is meter.

进一步的,所述调整模块,具体用于:Further, the adjustment module is specifically used for:

将所述声音采集装置的麦克风增益由第一值调整为与所述第一值不同的第二值。Adjusting the microphone gain of the sound collection device from a first value to a second value different from the first value.

进一步的,所述调整模块,具体用于:Further, the adjustment module is specifically used for:

将所述声音采集装置的降噪参数的参数值由第三值调整为与所述第三值不同的第四值。The parameter value of the noise reduction parameter of the sound collection device is adjusted from a third value to a fourth value different from the third value.

进一步的,所述电子设备还包括:Further, the electronic equipment also includes:

采集模块,用于当所述第一采集参数值和所述第一距离值相匹配时,通过所述声音采集装置采集所述声音源所发出的第一声音。A collection module, configured to collect the first sound emitted by the sound source through the sound collection device when the first collection parameter value matches the first distance value.

本申请实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点:One or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages:

(1)由于在本申请实施例中,可以先获得声音采集装置和声音源之间的距离值,然后通过这个距离值确定是否需要调整声音采集装置的第一采集参数的参数值,进而达到了不管声音采集装置和声音源的距离作任何调整,声音采集装置都能获得最佳的语音信息的技术效果。(1) Because in the embodiment of the present application, the distance value between the sound collection device and the sound source can be obtained first, then determine whether the parameter value of the first collection parameter of the sound collection device needs to be adjusted through this distance value, and then achieve Regardless of any adjustment of the distance between the sound collection device and the sound source, the sound collection device can obtain the best technical effect of voice information.

(2)由于在本申请实施例中,在环境噪音值大于第一预设阈值时,才需要检测第一距离值,进而判断是否需要对第一采集参数作出调整,而在环境噪音值小于第一预设阈值时,不需要检测第一距离值、也不需要对第一采集参数作出调整,故而达到了在获得最佳的语音信息的同时、又能够节省能耗的技术效果。(2) Since in the embodiment of the present application, the first distance value needs to be detected only when the environmental noise value is greater than the first preset threshold value, and then it is judged whether it is necessary to adjust the first acquisition parameter, while the environmental noise value is less than the first preset threshold value. When a preset threshold value is reached, there is no need to detect the first distance value, and it is not necessary to adjust the first acquisition parameter, thus achieving the technical effect of saving energy while obtaining the best voice information.

(3)由于在本申请实施例中,通过判断第一距离值对应的第一声压级和声音采集装置所在环境的环境噪音的第一响度之差是否大于第二预设阈值,来确定第一采集参数值和第一距离值是否匹配,而第一声压级和第一响度都很容易获得,故而存在着操作方便的技术效果。(3) Since in the embodiment of the present application, the first sound pressure level corresponding to the first distance value and the first loudness of the environmental noise of the environment where the sound collection device is located are determined by determining whether the difference between the first sound pressure level and the first loudness is greater than the second preset threshold value. Whether the acquisition parameter value matches the first distance value, and the first sound pressure level and the first loudness are easy to obtain, so there is a technical effect of convenient operation.

(4)由于在本申请实施例中,可以通过调整声音采集装置的麦克风增益,使麦克风增益和第一距离值匹配,进而获得最佳的语音信息,而麦克风增益调整起来很方便,故而存在着操作方便的技术效果。(4) Because in the embodiment of the present application, the microphone gain can be matched with the first distance value by adjusting the microphone gain of the sound collection device, and then the best voice information can be obtained, and the adjustment of the microphone gain is very convenient, so there is The technical effect of easy operation.

(5)由于在本申请实施例中,除了可以调整声音采集装置的麦克风增益外,还可以调整声音采集装置的降噪系数,故而进一步的保证能够获得最佳的语音信息的技术效果。(5) Since in the embodiment of the present application, in addition to adjusting the microphone gain of the sound collection device, the noise reduction coefficient of the sound collection device can also be adjusted, thereby further ensuring that the best technical effect of voice information can be obtained.

附图说明Description of drawings

图1为现有技术中采用语音指令对电子设备进行控制的流程图;FIG. 1 is a flow chart of controlling electronic equipment using voice commands in the prior art;

图2为本申请一实施例中信息处理方法的流程图;FIG. 2 is a flowchart of an information processing method in an embodiment of the present application;

图3为本申请一实施例中通过检测获得第一距离值的流程图;FIG. 3 is a flowchart of obtaining a first distance value through detection in an embodiment of the present application;

图4为本申请一实施例中判断所述声音采集装置的第一采集参数所对应的第一采集参数值是否和所述第一距离值相匹配的流程图;Fig. 4 is a flow chart of judging whether the first collection parameter value corresponding to the first collection parameter of the sound collection device matches the first distance value in an embodiment of the present application;

图5为本申请另一实施例中电子设备的方框图。Fig. 5 is a block diagram of an electronic device in another embodiment of the present application.

具体实施方式detailed description

本申请提供一种信息处理的方法及电子设备,用于解决现有技术中不能获得最佳的语音信息的技术问题。The present application provides an information processing method and electronic equipment, which are used to solve the technical problem that the best voice information cannot be obtained in the prior art.

本申请实施例中的技术方案为解决上述的技术问题,总体思路如下:The technical solution in the embodiment of the present application is to solve the above-mentioned technical problems, and the general idea is as follows:

当使用包含声音采集装置的电子设备采集语音信息时,先确定第一参考物体和声音采集装置之间的第一距离值,然后判断声音采集装置的第一采集参数值所对应的第一采集参数值是否和该第一距离值相匹配,其中,如果匹配的话,则说明在该第一距离值和第一采集参数值的情况下,声音采集装置能够获得较佳的语音信息,故而不需要调整第一采集参数;而如果不相匹配,则说明在第一距离值和第一采集参数值的情况下,声音采集装置不能获得较佳的语音信息,因而需要对第一采集参数进行调整,进而达到了不管声音采集装置和声音源的距离作任何调整,声音采集装置都能获得最佳的语音信息的技术效果。When using an electronic device including a sound collection device to collect voice information, first determine the first distance value between the first reference object and the sound collection device, and then determine the first collection parameter corresponding to the first collection parameter value of the sound collection device Whether the value matches the first distance value, wherein, if it matches, it means that under the condition of the first distance value and the first collection parameter value, the sound collection device can obtain better voice information, so no adjustment is required The first acquisition parameter; and if it does not match, it means that under the conditions of the first distance value and the first acquisition parameter value, the sound acquisition device cannot obtain better voice information, so the first acquisition parameter needs to be adjusted, and then The technical effect that the sound collection device can obtain the best voice information is achieved regardless of any adjustment of the distance between the sound collection device and the sound source.

为了更好的理解上述技术方案,下面将结合说明书附图以及具体的实施方式对上述技术方案进行详细的说明。In order to better understand the above-mentioned technical solution, the above-mentioned technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

本申请一实施例提供一种信息处理的方法,该方法应用在一包括声音采集装置的电子设备中,该电子设备例如为:笔记本电脑、手机、平板电脑等。An embodiment of the present application provides an information processing method, which is applied to an electronic device including a sound collection device, such as a notebook computer, a mobile phone, a tablet computer, and the like.

如图2所示,该信息处理的方法包括如下步骤:As shown in Figure 2, the information processing method includes the following steps:

S201:检测获得一参考物体与第一物体之间的第一距离值,其中,基于所述第一距离值能够确定所述声音采集装置所采集的声音的声音源和所述声音采集装置之间的第二距离值;S201: Detect and obtain a first distance value between a reference object and a first object, wherein the distance between the sound source of the sound collected by the sound collection device and the sound collection device can be determined based on the first distance value The second distance value of ;

S202:判断所述声音采集装置的第一采集参数所对应的第一采集参数值是否和所述第一距离值相匹配;S202: Determine whether the first collection parameter value corresponding to the first collection parameter of the sound collection device matches the first distance value;

S203a:当所述第一采集参数值和所述第一距离值不相匹配时,将所述第一采集参数的参数值由所述第一采集参数值调整为第二采集参数值,其中,所述第二采集参数值与所述第一距离值相匹配。S203a: When the first collection parameter value does not match the first distance value, adjust the parameter value of the first collection parameter from the first collection parameter value to a second collection parameter value, wherein, The second acquisition parameter value matches the first distance value.

S203b:当所述第一采集参数值和所述第一距离值相匹配时,通过所述声音采集装置采集所述声音源所发出的第一声音。S203b: When the first collection parameter value matches the first distance value, use the sound collection device to collect a first sound from the sound source.

其中,该步骤S201中,作为一优选实施例,该参考物体为声音采集装置,该第一物体为声音源所对应的物体,那么,第一距离值和第二距离值相同。在另一实施例中,该参考物体可以电子设备的显示屏,而声音采集装置设置在电子设备的主机上,其中,声音采集装置距离该显示屏为0.3M,其中,电子设备的显示屏背对着房门;第一物体为房门,声音源位于房间内部,与房门、电子设备呈之间排列,其中,声音源距离房门为2M,而第一参考物体与第一物体之间的第一距离值,也就是房门和电子设备的主机之间的距离为5.7M,那么,就可以求出第二距离值为:L=5.7M-2M+0.3M=4M。当然,上述实施例都只是给出了第一参考物体和第一物体之间的一种可能性,对于在具体实施过程中,第一参考物体和第一物体为何物本申请不作限制,只要能够基于第一距离值获得第二距离值,都属于本申请所欲保护的范围。Wherein, in this step S201, as a preferred embodiment, the reference object is a sound collection device, and the first object is the object corresponding to the sound source, then the first distance value and the second distance value are the same. In another embodiment, the reference object can be the display screen of the electronic device, and the sound collection device is arranged on the host computer of the electronic device, wherein the sound collection device is 0.3M away from the display screen, and the back of the display screen of the electronic device is 0.3M. Facing the door; the first object is the door, and the sound source is located inside the room, arranged between the door and electronic equipment. The distance between the sound source and the door is 2M, and the distance between the first reference object and the first object is The first distance value, that is, the distance between the door and the host of the electronic device is 5.7M, then the second distance value can be calculated as: L=5.7M-2M+0.3M=4M. Of course, the above-mentioned embodiments only give a possibility between the first reference object and the first object, and this application does not limit what the first reference object and the first object are in the specific implementation process, as long as they can Obtaining the second distance value based on the first distance value falls within the scope of protection intended by this application.

其中,步骤S201中,可以采用距离传感器检测该第一距离值,该距离传感器例如为:磁性位移传感器、滑差电阻位移传感器、激光位移传感器、超声波测距传感器、视觉位移传感器等等,对于该距离传感器和何种传感器,本申请不作限制。Wherein, in step S201, a distance sensor can be used to detect the first distance value, and the distance sensor is, for example, a magnetic displacement sensor, a slip resistance displacement sensor, a laser displacement sensor, an ultrasonic ranging sensor, a visual displacement sensor, etc., for the The distance sensor and what kind of sensor are not limited in this application.

其中,该步骤S201,如图3所示,又可以包括如下步骤:Wherein, the step S201, as shown in FIG. 3 , may further include the following steps:

S301:获得所述声音采集装置所在环境的环境噪音值;S301: Obtain an environmental noise value of the environment where the sound collection device is located;

S302:判断所述环境噪音值是否大于第一预设阈值;S302: Determine whether the environmental noise value is greater than a first preset threshold;

S303:当所述环境噪音值大于所述第一预设阈值时,通过检测获得所述第一距离值。S303: Obtain the first distance value through detection when the environmental noise value is greater than the first preset threshold.

具体来讲,也就是如果环境的噪音值小于如果小于第一预设阈值,作为一个最佳的实施例,比如:环境噪音值为零dB时,不管第一距离值和第一采集参数为何值,声音采集装置都能获得较佳的语音信息采集效果,故而本着节省能耗的目的,不需要对第一采集参数进行调整,故而也就不需要采集该第一距离值。Specifically, if the noise value of the environment is less than if it is less than the first preset threshold, as an optimal embodiment, for example: when the environmental noise value is zero dB, no matter what the first distance value and the first acquisition parameter are , the sound collection device can obtain a better sound information collection effect, so for the purpose of saving energy consumption, there is no need to adjust the first collection parameter, so there is no need to collect the first distance value.

由以上描述可知,由于在本申请实施例中,在环境噪音值大于第一预设阈值时,才需要检测第一距离值,进而判断是否需要对第一采集参数作出调整,而在环境噪音值小于第一预设阈值时,不需要检测第一距离值、也不需要对第一采集参数作出调整,故而达到了在获得最佳的语音信息的同时、又能够节省能耗的技术效果。It can be seen from the above description that in the embodiment of the present application, the first distance value needs to be detected only when the environmental noise value is greater than the first preset threshold value, and then it is judged whether it is necessary to adjust the first acquisition parameter, while the environmental noise value When it is less than the first preset threshold, there is no need to detect the first distance value, and it is not necessary to adjust the first collection parameter, so the technical effect of saving energy while obtaining the best voice information is achieved.

其中,步骤S202,如图4所示,又可以分为如下步骤:Wherein, step S202, as shown in Figure 4, can be further divided into the following steps:

S401:获取所述第一距离值所对应的第一声压级;S401: Obtain a first sound pressure level corresponding to the first distance value;

S402:判断所述第一声压级和所述声音采集装置所在环境的环境噪音的第一响度之差是否大于第二预设阈值,获得第一判断结果;S402: Determine whether the difference between the first sound pressure level and the first loudness of the ambient noise of the environment where the sound collection device is located is greater than a second preset threshold, and obtain a first determination result;

S403:基于所述第一判断结果,判断所述第一采集参数值是否和所述第一距离值相匹配。S403: Based on the first determination result, determine whether the first acquisition parameter value matches the first distance value.

其中,步骤S401中的第一声压级,可以通过采用如下公式计算获得:Wherein, the first sound pressure level in step S401 can be calculated by using the following formula:

S=S1-20lgLS=S1-20lgL

其中,S表示所述第一声压级,其单位为分贝;Wherein, S represents the first sound pressure level, and its unit is decibel;

S1表示距离声音采集装置1米处的声压级,其单位为分贝;S1 represents the sound pressure level at a distance of 1 meter from the sound collection device, and its unit is decibel;

L表示所述第二距离值,单位为米。L represents the second distance value, and the unit is meter.

其中,S1所所表示的1米处的声压级,在不同的环境中,其值不同,假设在当前环境下,其值为80dB。而基于L的不同,第一声压级也不同。下面列举几个的值对其进行介绍。Wherein, the sound pressure level at 1 meter represented by S1 has different values in different environments, assuming that in the current environment, the value is 80dB. And based on the difference of L, the first sound pressure level is also different. A few values are listed below to introduce them.

第二距离值L(M) Second distance value L(M) 第一声压级S(dB) The first sound pressure level S(dB) 例① Example ① 1 1 80-20*lg1=80 80-20*lg1=80 例② Example ② 2 2 80-20*lg2=74 80-20*lg2=74

例③ Example ③ 4 4 80-20*lg4=68 80-20*lg4=68

假设,该环境下,环境噪音的第一响度为50dB,当然,具体实施过程中,第一响度也可以是其它值,比如:40dB、60dB,本申请不作限制。而通常情况下,当第一声压级和环境噪音的第一响度之差大于20dB的时候,语音信息几乎不会怎么受环境噪音的影响,而只有小于20的时候,才会受到较大的影响。所以,作为一个优选实施例,这里的第二预设阈值可以设置为20dB,当然,在具体实施过程中,并不限于20dB,也可以22dB、17dB以及其它任一值,本申请不作限制。Assume that in this environment, the first loudness of the ambient noise is 50dB. Of course, in the actual implementation process, the first loudness may also be other values, such as: 40dB, 60dB, which is not limited in this application. Under normal circumstances, when the difference between the first sound pressure level and the first loudness of the ambient noise is greater than 20dB, the voice information will hardly be affected by the environmental noise, and only when it is less than 20dB will it be greatly affected. influences. Therefore, as a preferred embodiment, the second preset threshold here can be set to 20dB. Of course, in the actual implementation process, it is not limited to 20dB, but can also be 22dB, 17dB or any other value, which is not limited in this application.

当环境噪音的第一响度为50dB、第二预设阈值为20dB时,例①和例②中的第一声压级和第一响度之差大于第二预设阈值;而例③中的第一声压级和第一响度之差小于第二预设阈值,故而说明例①、例②中的第一采集参数值和第一距离值相匹配;而例③中的第一采集参数值和第一距离值不相匹配。When the first loudness of the ambient noise is 50dB and the second preset threshold is 20dB, the difference between the first sound pressure level and the first loudness in example ① and example ② is greater than the second preset threshold; The difference between the sound pressure level and the first loudness is less than the second preset threshold value, so the first acquisition parameter value in example ① and example ② matches the first distance value; and the first acquisition parameter value in example ③ and The first distance value does not match.

由以上描述可知,由于在本申请实施例中,通过判断第一距离值对应的第一声压级和声音采集装置所在环境的环境噪音的第一响度之差是否大于第二预设阈值,来确定第一采集参数值和第一距离值是否匹配,而第一声压级和第一响度都很容易获得,故而存在着操作方便的技术效果。It can be seen from the above description that in the embodiment of the present application, by judging whether the difference between the first sound pressure level corresponding to the first distance value and the first loudness of the ambient noise of the environment where the sound collection device is located is greater than the second preset threshold value, It is determined whether the first acquisition parameter value matches the first distance value, and the first sound pressure level and the first loudness are easy to obtain, so there is a technical effect of convenient operation.

其中,步骤S203a中,将所述将所述第一采集参数的参数值由所述第一采集参数值调整为第二采集参数值,具体的又可以包括多种情况,下面列举其中的两种进行介绍,当然,在具体实施过程中,不限于以下两种情况。Wherein, in step S203a, the parameter value of the first collection parameter is adjusted from the first collection parameter value to the second collection parameter value, which may specifically include various situations, and two of them are listed below The introduction, of course, is not limited to the following two situations in the specific implementation process.

第一种,将所述声音采集装置的麦克风增益由第一值调整为与所述第一值不同的第二值。The first one is to adjust the microphone gain of the sound collection device from a first value to a second value different from the first value.

具体来讲,也就是通过调整麦克风的增益,使声音采集装置所采集的声音源所对应的第一声压级提高,从而,使第一声压级和第一响度之差大于第二预设阈值。Specifically, by adjusting the gain of the microphone, the first sound pressure level corresponding to the sound source collected by the sound collection device is increased, so that the difference between the first sound pressure level and the first loudness is greater than the second preset threshold.

比如:例③中原来的第一声压级为68dB,调整麦克风的增益之后,其第一声压级可能提高为75dB、80dB等等,在这种情况下,第一声压级与第一响度之差就为25dB、30dB,因而大于第二预设阈值。For example: in example ③, the original first sound pressure level is 68dB. After adjusting the gain of the microphone, the first sound pressure level may be increased to 75dB, 80dB, etc. In this case, the first sound pressure level is the same as the first sound pressure level. The loudness difference is 25dB, 30dB, which is greater than the second preset threshold.

由以上描述可知,由于在本申请实施例中可以,通过调整声音采集装置的麦克风增益,使麦克风增益和第一距离值匹配,进而获得最佳的语音信息,而麦克风增益调整起来很方便,故而存在着操作方便的技术效果。It can be seen from the above description that in the embodiment of the present application, by adjusting the microphone gain of the sound collection device, the microphone gain can be matched with the first distance value, thereby obtaining the best voice information, and the adjustment of the microphone gain is very convenient, so There is a technical effect of ease of operation.

第二种,将所述声音采集装置的降噪参数的参数值由第三值调整为与所述第三值不同的第四值。In the second type, the parameter value of the noise reduction parameter of the sound collection device is adjusted from a third value to a fourth value different from the third value.

具体来讲,也就是通过调整声音采集装置的降噪系数,使第一响度的值变小,从而,使第一声压级和第一响度之差大于第二预设阈值。Specifically, the value of the first loudness is reduced by adjusting the noise reduction coefficient of the sound collection device, so that the difference between the first sound pressure level and the first loudness is greater than the second preset threshold.

比如:在当前环境下,环境噪音的第一响度为50dB,而通过调整声音采集装置的降噪系数之后,其第一响度可能降为46dB、42dB,在这种情况下,一声压级与第一响度之差就为22dB、26dB,因而大于第二预设阈值。For example: in the current environment, the first loudness of the ambient noise is 50dB, and after adjusting the noise reduction coefficient of the sound collection device, the first loudness may be reduced to 46dB, 42dB, in this case, the sound pressure level and the first loudness A loudness difference is 22dB, 26dB, which is greater than the second preset threshold.

由以上描述可知,由于在本申请实施例中,除了可以调整声音采集装置的麦克风增益外,还可以调整声音采集装置的降噪系数,故而进一步的保证能够获得最佳的语音信息的技术效果。It can be seen from the above description that in the embodiment of the present application, in addition to adjusting the microphone gain of the sound collection device, the noise reduction coefficient of the sound collection device can also be adjusted, so that the technical effect of obtaining the best voice information can be further ensured.

当然,在具体实施过程中,为了达到更好的效果,还可以同时调整声音采集装置的麦克风增益和降噪系数,对于在具体实施过程中,所述第一采集参数为一种还是多种参数,本申请不作限制。Of course, in the specific implementation process, in order to achieve better results, the microphone gain and noise reduction coefficient of the sound collection device can also be adjusted at the same time. For the specific implementation process, the first collection parameter is one or multiple parameters , this application is not limited.

其中,步骤S203b中,由于第一采集参数值和第一距离值相匹配,也就说明,第一声压级和第一响度之差大于第二预设阈值,在这种情况下,环境噪音对于声音采集装置所采集的声音影响不大,故而在这种情况相下采集声音源的声音的话,可以获得较佳的语音信息。Wherein, in step S203b, since the first acquisition parameter value matches the first distance value, it means that the difference between the first sound pressure level and the first loudness is greater than the second preset threshold value. In this case, the ambient noise It has little influence on the sound collected by the sound collection device, so in this case, if the sound of the sound source is collected, better speech information can be obtained.

基于同一发明构思,本申请另一实施例提供一种电子设备,该电子设备包括声音采集装置,该电子设备例如为:笔记本电脑、手机、平板电脑等。Based on the same inventive concept, another embodiment of the present application provides an electronic device, the electronic device includes a sound collection device, and the electronic device is, for example, a notebook computer, a mobile phone, a tablet computer, and the like.

如图5所示,该电子设备包括如下结构:As shown in Figure 5, the electronic device includes the following structure:

检测模块501,用于检测获得一参考物体与第一物体之间的第一距离值,其中,基于所述第一距离值能够确定所述声音采集装置所采集的声音的声音源和所述声音采集装置之间的第二距离值;A detection module 501, configured to detect and obtain a first distance value between a reference object and a first object, wherein the sound source of the sound collected by the sound collection device and the sound source can be determined based on the first distance value a second distance value between the collection devices;

判断模块502,用于判断所述声音采集装置的第一采集参数所对应的第一采集参数值是否和所述第一距离值相匹配;A judging module 502, configured to judge whether the first collection parameter value corresponding to the first collection parameter of the sound collection device matches the first distance value;

调整模块503,用于当所述第一采集参数值和所述第一距离值不相匹配时,将所述第一采集参数的参数值由所述第一采集参数值调整为第二采集参数值,其中,所述第二采集参数值与所述第一距离值相匹配。An adjustment module 503, configured to adjust the parameter value of the first collection parameter from the first collection parameter value to a second collection parameter when the first collection parameter value does not match the first distance value value, wherein the second acquisition parameter value matches the first distance value.

其中,该检测模块501所检测第一第一距离值,作为一优选实施例,该参考物体为声音采集装置,该第一物体为声音源所对应的物体,那么,第一距离值和第二距离值相同。在另一实施例中,该参考物体可以电子设备的显示屏,而声音采集装置设置在电子设备的主机上。由于,如何基于第一距离值计算第一距离值,在本申请信息处理的方法实施例中已作介绍,在此不再赘述。对于在具体实施过程中,第一参考物体和第一物体为何物本申请不作限制,只要能够基于第一距离值获得第二距离值,都属于本申请所欲保护的范围。Wherein, the first first distance value detected by the detection module 501, as a preferred embodiment, the reference object is a sound collection device, and the first object is an object corresponding to the sound source, then the first distance value and the second The distance values are the same. In another embodiment, the reference object may be a display screen of the electronic device, and the sound collection device is set on the host of the electronic device. Since, how to calculate the first distance value based on the first distance value has been introduced in the embodiment of the information processing method of the present application, and will not be repeated here. In the specific implementation process, the application does not limit what the first reference object and the first object are, as long as the second distance value can be obtained based on the first distance value, it all falls within the scope of protection intended by the application.

其中,该检测模块501可以采用距离传感器检测该第一距离值,该距离传感器例如为:磁性位移传感器、滑差电阻位移传感器、激光位移传感器、超声波测距传感器、视觉位移传感器等等,对于该距离传感器和何种传感器,本申请不作限制。Wherein, the detection module 501 can use a distance sensor to detect the first distance value, and the distance sensor is, for example, a magnetic displacement sensor, a slip resistance displacement sensor, a laser displacement sensor, an ultrasonic ranging sensor, a visual displacement sensor, etc., for the The distance sensor and what kind of sensor are not limited in this application.

其中,该所述检测模块,具体包括:Wherein, the detection module specifically includes:

第一获得单元,用于获得所述声音采集装置所在环境的环境噪音值;A first obtaining unit, configured to obtain an environmental noise value of the environment where the sound collection device is located;

第一判断单元,用于判断所述环境噪音值是否大于第一预设阈值;A first judging unit, configured to judge whether the environmental noise value is greater than a first preset threshold;

第二获得单元,用于当所述环境噪音值大于所述第一预设阈值时,通过检测获得所述第一距离值。The second obtaining unit is configured to obtain the first distance value through detection when the environmental noise value is greater than the first preset threshold.

具体来讲,也就是如果环境的噪音值小于如果小于第一预设阈值,不管第一距离值和第一采集参数为何值,声音采集装置都能获得较佳的语音信息采集效果,故而本着节省能耗的目的,不需要对第一采集参数进行调整,故而也就不需要采集该第一距离值。Specifically, if the noise value of the environment is less than or less than the first preset threshold value, no matter what the value of the first distance value and the first collection parameter are, the sound collection device can obtain a better voice information collection effect, so in line with For the purpose of saving energy consumption, there is no need to adjust the first collection parameter, so the first distance value does not need to be collected.

由以上描述可知,由于在本申请实施例中,在环境噪音值大于第一预设阈值时,才需要检测第一距离值,进而判断是否需要对第一采集参数作出调整,而在环境噪音值小于第一预设阈值时,不需要检测第一距离值、也不需要对第一采集参数作出调整,故而达到了在获得最佳的语音信息的同时、又能够节省能耗的技术效果。It can be seen from the above description that in the embodiment of the present application, the first distance value needs to be detected only when the environmental noise value is greater than the first preset threshold value, and then it is judged whether it is necessary to adjust the first acquisition parameter, while the environmental noise value When it is less than the first preset threshold, there is no need to detect the first distance value, and it is not necessary to adjust the first collection parameter, so the technical effect of saving energy while obtaining the best voice information is achieved.

其中,该判断模块502,具体包括:Wherein, the judging module 502 specifically includes:

获取单元,用于获取所述第一距离值所对应的第一声压级;an acquisition unit, configured to acquire a first sound pressure level corresponding to the first distance value;

第二判断单元,用于判断所述第一声压级和所述声音采集装置所在环境的环境噪音的第一响度之差是否大于第二预设阈值,获得第一判断结果;A second judging unit, configured to judge whether the difference between the first sound pressure level and the first loudness of the ambient noise of the environment where the sound collection device is located is greater than a second preset threshold, and obtain a first judging result;

第三判断单元,基于所述第一判断结果,判断所述第一采集参数值是否和所述第一距离值相匹配。A third judging unit, based on the first judging result, judging whether the first acquisition parameter value matches the first distance value.

其中,所述第一声压级通过采用如下公式计算获得:Wherein, the first sound pressure level is calculated by using the following formula:

S=S1-20lgLS=S1-20lgL

其中,S表示所述第一声压级,其单位为分贝;Wherein, S represents the first sound pressure level, and its unit is decibel;

S1表示距离声音采集装置1米处的声压级,其单位为分贝;S1 represents the sound pressure level at a distance of 1 meter from the sound collection device, and its unit is decibel;

L表示所述第二距离值,单位为米。L represents the second distance value, and the unit is meter.

其中,如果该第一声压级和第一响度之差大于第一预设阈值,则说明第一采集参数值和第一距离值相匹配;而如果该第一声压级和第一响度之差小于第一预设阈值,则说明第一采集参数值和第一距离值不相匹配。由于,具体如何获得第一声压级、第一响度,以及具体如何判断,在本申请信息处理的方法的实施例中已作介绍,故而在此不再赘述。Wherein, if the difference between the first sound pressure level and the first loudness is greater than the first preset threshold value, it means that the first acquisition parameter value matches the first distance value; and if the difference between the first sound pressure level and the first loudness If the difference is smaller than the first preset threshold, it indicates that the first acquisition parameter value does not match the first distance value. How to obtain the first sound pressure level, the first loudness, and how to judge specifically have been introduced in the embodiment of the information processing method of the present application, so details are not repeated here.

由以上描述可知,由于在本申请实施例中,通过判断第一距离值对应的第一声压级和声音采集装置所在环境的环境噪音的第一响度之差是否大于第二预设阈值,来确定第一采集参数值和第一距离值是否匹配,而第一声压级和第一响度都很容易获得,故而存在着操作方便的技术效果。It can be seen from the above description that in the embodiment of the present application, by judging whether the difference between the first sound pressure level corresponding to the first distance value and the first loudness of the ambient noise of the environment where the sound collection device is located is greater than the second preset threshold value, It is determined whether the first acquisition parameter value matches the first distance value, and the first sound pressure level and the first loudness are easy to obtain, so there is a technical effect of convenient operation.

在一实施例中,该调整模块503,具体用于:In an embodiment, the adjustment module 503 is specifically used for:

将所述声音采集装置的麦克风增益由第一值调整为与所述第一值不同的第二值。Adjusting the microphone gain of the sound collection device from a first value to a second value different from the first value.

具体来讲,也就是通过调整麦克风的增益,使声音采集装置所采集的声音源所对应的第一声压级提高,从而,使第一声压级和第一响度之差大于第二预设阈值。Specifically, by adjusting the gain of the microphone, the first sound pressure level corresponding to the sound source collected by the sound collection device is increased, so that the difference between the first sound pressure level and the first loudness is greater than the second preset threshold.

由以上描述可知,由于在本申请实施例中可以,通过调整声音采集装置的麦克风增益,使麦克风增益和第一距离值匹配,进而获得最佳的语音信息,而麦克风增益调整起来很方便,故而存在着操作方便的技术效果。It can be seen from the above description that in the embodiment of the present application, the microphone gain can be adjusted to match the first distance value by adjusting the microphone gain of the sound collection device, thereby obtaining the best voice information, and the adjustment of the microphone gain is very convenient, so There is a technical effect of ease of operation.

在另一实施例中,该调整模块503,具体用于:In another embodiment, the adjustment module 503 is specifically used for:

将所述声音采集装置的降噪参数的参数值由第三值调整为与所述第三值不同的第四值。The parameter value of the noise reduction parameter of the sound collection device is adjusted from a third value to a fourth value different from the third value.

由以上描述可知,由于在本申请实施例中,除了可以调整声音采集装置的麦克风增益外,还可以调整声音采集装置的降噪系数,故而进一步的保证能够获得最佳的语音信息的技术效果。It can be seen from the above description that in the embodiment of the present application, in addition to adjusting the microphone gain of the sound collection device, the noise reduction coefficient of the sound collection device can also be adjusted, so that the technical effect of obtaining the best voice information can be further ensured.

当然,在具体实施过程中,为了达到更好的效果,该调整模块503还可以同时调整声音采集装置的麦克风增益和降噪系数,对于在具体实施过程中,所述第一采集参数为一种还是多种参数,本申请不作限制。Of course, in the specific implementation process, in order to achieve better results, the adjustment module 503 can also adjust the microphone gain and noise reduction coefficient of the sound collection device at the same time. For the specific implementation process, the first collection parameter is a There are also various parameters, which are not limited in this application.

另外,该电子设备还包括:Additionally, the electronic device includes:

采集模块,用于当所述第一采集参数值和所述第一距离值相匹配时,通过所述声音采集装置采集所述声音源所发出的第一声音。A collection module, configured to collect the first sound emitted by the sound source through the sound collection device when the first collection parameter value matches the first distance value.

由于第一采集参数值和第一距离值相匹配,也就说明,第一声压级和第一响度之差大于第二预设阈值,在这种情况下,环境噪音对于声音采集装置所采集的声音影响不大,故而在这种情况相下采集声音源的声音的话,可以获得较佳的语音信息。Since the first collection parameter value matches the first distance value, it means that the difference between the first sound pressure level and the first loudness is greater than the second preset threshold. The sound of the sound has little influence, so in this case, if the sound of the sound source is collected, better voice information can be obtained.

由于本实施例中的电子设备,为实施本申请实施例中的信息处理的方法所采用的电子设备,故而基于本申请实施例中所介绍的信息处理的方法,本领域所属技术人员能够了解本实施例的电子设备的具体实施方式以及其各种变化形式,所以在此对于该电子设备不再详细介绍。只要本领域所属技术人员实施本申请实施例中信息处理的方法所采用的电子设备,都属于本申请所欲保护的范围。Since the electronic device in this embodiment is the electronic device used to implement the information processing method in the embodiment of the application, based on the information processing method introduced in the embodiment of the application, those skilled in the art can understand this The specific implementation manner of the electronic device in the embodiment and its various variants, so the electronic device will not be introduced in detail here. As long as a person skilled in the art implements the electronic device used by the information processing method in the embodiment of the present application, it all falls within the scope of protection intended by the present application.

本申请提供的一个或多个技术方案,至少具有如下技术效果或优点:One or more technical solutions provided by this application have at least the following technical effects or advantages:

(1)由于在本申请实施例中,可以先获得声音采集装置和声音源之间的距离值,然后通过这个距离值确定是否需要调整声音采集装置的第一采集参数的参数值,进而达到了不管声音采集装置和声音源的距离作任何调整,声音采集装置都能获得最佳的语音信息的技术效果。(1) Because in the embodiment of the present application, the distance value between the sound collection device and the sound source can be obtained first, then determine whether the parameter value of the first collection parameter of the sound collection device needs to be adjusted through this distance value, and then achieve Regardless of any adjustment of the distance between the sound collection device and the sound source, the sound collection device can obtain the best technical effect of voice information.

(2)由于在本申请实施例中,在环境噪音值大于第一预设阈值时,才需要检测第一距离值,进而判断是否需要对第一采集参数作出调整,而在环境噪音值小于第一预设阈值时,不需要检测第一距离值、也不需要对第一采集参数作出调整,故而达到了在获得最佳的语音信息的同时、又能够节省能耗的技术效果。(2) Since in the embodiment of the present application, the first distance value needs to be detected only when the environmental noise value is greater than the first preset threshold value, and then it is judged whether it is necessary to adjust the first acquisition parameter, while the environmental noise value is less than the first preset threshold value. When a preset threshold value is reached, there is no need to detect the first distance value, and it is not necessary to adjust the first acquisition parameter, thus achieving the technical effect of saving energy while obtaining the best voice information.

(3)由于在本申请实施例中,通过判断第一距离值对应的第一声压级和声音采集装置所在环境的环境噪音的第一响度之差是否大于第二预设阈值,来确定第一采集参数值和第一距离值是否匹配,而第一声压级和第一响度都很容易获得,故而存在着操作方便的技术效果。(3) Since in the embodiment of the present application, the first sound pressure level corresponding to the first distance value and the first loudness of the environmental noise of the environment where the sound collection device is located are determined by determining whether the difference between the first sound pressure level and the first loudness is greater than the second preset threshold value. Whether the acquisition parameter value matches the first distance value, and the first sound pressure level and the first loudness are easy to obtain, so there is a technical effect of convenient operation.

(4)由于在本申请实施例中,可以通过调整声音采集装置的麦克风增益,使麦克风增益和第一距离值匹配,进而获得最佳的语音信息,而麦克风增益调整起来很方便,故而存在着操作方便的技术效果。(4) Because in the embodiment of the present application, the microphone gain can be matched with the first distance value by adjusting the microphone gain of the sound collection device, and then the best voice information can be obtained, and the adjustment of the microphone gain is very convenient, so there is The technical effect of easy operation.

(5)由于在本申请实施例中,除了可以调整声音采集装置的麦克风增益外,还可以调整声音采集装置的降噪系数,故而进一步的保证能够获得最佳的语音信息的技术效果。(5) Since in the embodiment of the present application, in addition to adjusting the microphone gain of the sound collection device, the noise reduction coefficient of the sound collection device can also be adjusted, thereby further ensuring that the best technical effect of voice information can be obtained.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (12)

1. a method for information processing, described method is applied in an electronic equipment including voice collection device, its feature Being, described method includes:
The first distance value between detection acquisition one Reference and the first object, wherein, can based on described first distance value Determine the second distance value between sound source and the described voice collection device of the sound that described voice collection device gathered;
Judge the first acquisition parameter value corresponding to the first acquisition parameter of described voice collection device whether with described first away from Distance values matches;
When described first acquisition parameter value and described first distance value do not match that, by the parameter value of described first acquisition parameter Be adjusted to the second acquisition parameter value by described first acquisition parameter value, wherein, described second acquisition parameter value with described first away from Distance values matches;
Wherein, whether described the first acquisition parameter value corresponding to the first acquisition parameter judging described voice collection device is and institute State the first distance value to match, specifically include:
Obtain the first sound pressure level corresponding to described first distance value;
Whether judge the difference of the first loudness of the environmental noise of described first sound pressure level and described voice collection device place environment More than the second predetermined threshold value, it is thus achieved that the first judged result;
Based on described first judged result, it is judged that whether described first acquisition parameter value matches with described first distance value.
2. the method for claim 1, it is characterised in that described detection obtains between a Reference and the first object First distance value, specifically includes:
Obtain the environmental noise value of described voice collection device place environment;
Judge that whether described environmental noise value is more than the first predetermined threshold value;
When described environmental noise value is more than described first predetermined threshold value, obtain described first distance value by detection.
3. the method for claim 1, it is characterised in that described first sound pressure level obtains by using equation below to calculate :
S=S1-20lgL
Wherein, S represents described first sound pressure level, and its unit is decibel;
S1 represents the sound pressure level at distance voice collection device 1 meter, and its unit is decibel;
L represents described second distance value, and unit is rice.
4. the method as described in claim 1-3 is arbitrary, it is characterised in that described by the parameter value of described first acquisition parameter by Described first acquisition parameter value is adjusted to the second acquisition parameter value, particularly as follows:
The microphone gain of described voice collection device is adjusted to second value different from described first value by the first value.
5. the method as described in claim 1-3 is arbitrary, it is characterised in that described by the parameter value of described first acquisition parameter by Described first acquisition parameter value is adjusted to the second acquisition parameter value, particularly as follows:
The parameter value of the noise reduction parameters of described voice collection device is adjusted to the different from described 3rd value the 4th by the 3rd value Value.
6. the method for claim 1, it is characterised in that in the first collection ginseng of the described voice collection device of described judgement After whether the first acquisition parameter value corresponding to number matches with described first distance value, described method also includes:
When described first acquisition parameter value and described first distance value match, gathered described by described voice collection device The first sound that sound source is sent.
7. an electronic equipment, described electronic equipment specifically includes voice collection device, it is characterised in that described electronic equipment is also Including:
Detection module, for detecting the first distance value obtained between a Reference and the first object, wherein, based on described the One distance value can determine between sound source and the described voice collection device of the sound that described voice collection device gathered Second distance value;
Whether judge module, for judging the first acquisition parameter value corresponding to the first acquisition parameter of described voice collection device Match with described first distance value;
Adjusting module, for when described first acquisition parameter value and described first distance value do not match that, adopts described first The parameter value of collection parameter is adjusted to the second acquisition parameter value, wherein, described second acquisition parameter by described first acquisition parameter value Value matches with described first distance value;
Wherein, described judge module, specifically include:
Acquiring unit, for obtaining the first sound pressure level corresponding to described first distance value;
Second judging unit, for judging the environmental noise of described first sound pressure level and described voice collection device place environment Whether the difference of the first loudness is more than the second predetermined threshold value, it is thus achieved that the first judged result;
3rd judging unit, based on described first judged result, it is judged that described first acquisition parameter value whether with described first away from Distance values matches.
8. electronic equipment as claimed in claim 7, it is characterised in that described detection module, specifically includes:
First obtains unit, for obtaining the environmental noise value of described voice collection device place environment;
First judging unit, is used for judging that whether described environmental noise value is more than the first predetermined threshold value;
Second obtains unit, for when described environmental noise value is more than described first predetermined threshold value, is obtained described by detection First distance value.
9. electronic equipment as claimed in claim 7, it is characterised in that described first sound pressure level calculates by using equation below Obtain:
S=S1-20lgL
Wherein, S represents described first sound pressure level, and its unit is decibel;
S1 represents the sound pressure level at distance voice collection device 1 meter, and its unit is decibel;
L represents described second distance value, and unit is rice.
10. the electronic equipment as described in claim 7-9 is arbitrary, it is characterised in that described adjusting module, specifically for:
The microphone gain of described voice collection device is adjusted to second value different from described first value by the first value.
11. electronic equipments as described in claim 7-9 is arbitrary, it is characterised in that described adjusting module, specifically for:
The parameter value of the noise reduction parameters of described voice collection device is adjusted to the different from described 3rd value the 4th by the 3rd value Value.
12. electronic equipments as claimed in claim 7, it is characterised in that described electronic equipment also includes:
Acquisition module, for when described first acquisition parameter value and described first distance value match, is adopted by described sound Acquisition means gathers the first sound that described sound source is sent.
CN201210345938.8A 2012-09-17 2012-09-17 An information processing method and electronic device Active CN103677234B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210345938.8A CN103677234B (en) 2012-09-17 2012-09-17 An information processing method and electronic device
CN201611148643.6A CN106774882B (en) 2012-09-17 2012-09-17 information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210345938.8A CN103677234B (en) 2012-09-17 2012-09-17 An information processing method and electronic device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201611148643.6A Division CN106774882B (en) 2012-09-17 2012-09-17 information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN103677234A CN103677234A (en) 2014-03-26
CN103677234B true CN103677234B (en) 2016-12-21

Family

ID=50315057

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201210345938.8A Active CN103677234B (en) 2012-09-17 2012-09-17 An information processing method and electronic device
CN201611148643.6A Active CN106774882B (en) 2012-09-17 2012-09-17 information processing method and electronic equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201611148643.6A Active CN106774882B (en) 2012-09-17 2012-09-17 information processing method and electronic equipment

Country Status (1)

Country Link
CN (2) CN103677234B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978956A (en) * 2014-04-14 2015-10-14 美的集团股份有限公司 Voice control method and system
CN104078041B (en) * 2014-06-26 2018-03-13 美的集团股份有限公司 Audio recognition method and system
CN104078040A (en) * 2014-06-26 2014-10-01 美的集团股份有限公司 Voice recognition method and system
CN104134440B (en) * 2014-07-31 2018-05-08 百度在线网络技术(北京)有限公司 Speech detection method and speech detection device for portable terminal
US9424841B2 (en) * 2014-10-09 2016-08-23 Google Inc. Hotword detection on multiple devices
CN104991755B (en) * 2015-07-10 2019-02-05 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN109271480B (en) * 2018-08-30 2021-06-01 广东小天才科技有限公司 A kind of voice search method and electronic device
CN111795477A (en) * 2020-07-16 2020-10-20 珠海格力电器股份有限公司 Electric appliance remote controller, sleep quality monitoring system and method
CN111916102B (en) * 2020-07-31 2024-05-28 维沃移动通信有限公司 Recording method and recording device of electronic equipment
JP7363716B2 (en) * 2020-08-25 2023-10-18 トヨタ自動車株式会社 Sound analysis system, sound analysis method, and program
CN112165591B (en) * 2020-09-30 2022-05-31 联想(北京)有限公司 Audio data processing method and device and electronic equipment
CN112188019B (en) * 2020-09-30 2021-10-22 联想(北京)有限公司 Processing method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242595A (en) * 2007-02-05 2008-08-13 北京三星通信技术研究有限公司 How to adjust the phone volume
JP2010206365A (en) * 2009-03-02 2010-09-16 Brother Ind Ltd Interaction device
CN102006350A (en) * 2010-12-13 2011-04-06 惠州Tcl移动通信有限公司 Method and device for automatically regulating volume of mobile phone microphone

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5097523B2 (en) * 2007-12-07 2012-12-12 船井電機株式会社 Voice input device
GB0725110D0 (en) * 2007-12-21 2008-01-30 Wolfson Microelectronics Plc Gain control based on noise level
JP5075664B2 (en) * 2008-02-15 2012-11-21 株式会社東芝 Spoken dialogue apparatus and support method
JP2009229899A (en) * 2008-03-24 2009-10-08 Toshiba Corp Device and method for voice recognition

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242595A (en) * 2007-02-05 2008-08-13 北京三星通信技术研究有限公司 How to adjust the phone volume
JP2010206365A (en) * 2009-03-02 2010-09-16 Brother Ind Ltd Interaction device
CN102006350A (en) * 2010-12-13 2011-04-06 惠州Tcl移动通信有限公司 Method and device for automatically regulating volume of mobile phone microphone

Also Published As

Publication number Publication date
CN106774882B (en) 2020-01-31
CN103677234A (en) 2014-03-26
CN106774882A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN103677234B (en) An information processing method and electronic device
CN106782613B (en) Signal detection method and device
CN107945733B (en) Display screen brightness adjusting method and device, storage medium and electronic equipment
CN110782884B (en) Far-field pickup noise processing method, device, equipment and storage medium
TWI553327B (en) Earthquake detecting system and method
CN111711241B (en) Electronic device, charging method, charging apparatus, and readable storage medium
CN107743704B (en) System, method and mobile device for determining the local environment of a mobile device
CN112468924A (en) Earphone noise reduction method and device
CN105659197A (en) Interference suppression method and apparatus for touch screen and terminal device
CN106936991A (en) The method and terminal of a kind of automatic regulating volume
CN103634731A (en) Method for adjusting loudspeaker, and electronic device
CN105446170A (en) Alarm control system and method for electronic device
TW202143095A (en) Capacitance sensing device operation method
CN103064558A (en) Method for implementing touch gesture input in electronic white board and electronic white board allowing for touch gesture input
CN106952652B (en) Noise reduction control method and system
CN112866877B (en) Speaker control method, speaker control device, electronic apparatus, and storage medium
CN112448860B (en) Application program testing method and related equipment
CN116017665A (en) Method, device, equipment and storage medium for determining communication power
CN103488395A (en) Method and terminal for drawing lines based on touch screen mobile terminal
CN108683981A (en) Loudspeaker drainage method and device of electronic equipment, electronic equipment and storage medium
US20110231186A1 (en) Speech detection method
CN105078473B (en) Listening checking method and device
CN118277773B (en) Gesture recognition method and device, storage medium and electronic equipment
CN113268163B (en) Touch display screen, electronic equipment and touch panel error touch prevention method
CN105243762A (en) Electronic sensor doorbell having anti-theft function and control method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant