Movatterモバイル変換


[0]ホーム

URL:


CN107154263B - Sound processing method and device and electronic equipment - Google Patents

Sound processing method and device and electronic equipment
Download PDF

Info

Publication number
CN107154263B
CN107154263BCN201710375841.4ACN201710375841ACN107154263BCN 107154263 BCN107154263 BCN 107154263BCN 201710375841 ACN201710375841 ACN 201710375841ACN 107154263 BCN107154263 BCN 107154263B
Authority
CN
China
Prior art keywords
frequency response
sound
frequency
sound signal
processing
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
CN201710375841.4A
Other languages
Chinese (zh)
Other versions
CN107154263A (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.)
Beijing Fangshi Technology Co.,Ltd.
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co LtdfiledCriticalYulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201710375841.4ApriorityCriticalpatent/CN107154263B/en
Publication of CN107154263ApublicationCriticalpatent/CN107154263A/en
Application grantedgrantedCritical
Publication of CN107154263BpublicationCriticalpatent/CN107154263B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

一种声音处理方法,应用于电子设备中,所述方法包括:接收用户输入的第一声音信号;获取预先保存的频响;根据所述预先保存的频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理。本发明还提供一种声音处理装置。本发明能够对存在声音缺陷的频段进行处理,提高声音的收听效果。

Figure 201710375841

A sound processing method, applied to an electronic device, the method comprising: receiving a first sound signal input by a user; obtaining a pre-stored frequency response; The frequency band with sound defects in the frequency response is processed. The invention also provides a sound processing device. The present invention can process the frequency band with sound defects and improve the sound listening effect.

Figure 201710375841

Description

Translated fromChinese
声音处理方法、装置及电子设备Sound processing method, device and electronic device

技术领域technical field

本发明涉及声音处理技术领域,尤其涉及一种声音处理方法、装置及电子设备。The present invention relates to the technical field of sound processing, and in particular, to a sound processing method, device and electronic device.

背景技术Background technique

通常,人们对悦耳的声音比较有好感,对于接收方,听到悦耳的声音,心情就比较舒畅。然而,每个人的声音特征不一样,有些人先天就会有声音的缺陷,比如鼻音很重,高频的声调唱不上去等等。Usually, people have a good impression on the pleasant sound, and for the receiver, when they hear the pleasant sound, they feel more comfortable. However, everyone's vocal characteristics are different, and some people are born with vocal defects, such as heavy nasal sounds, high-frequency tones that cannot be sung, and so on.

日常生活中,在一些场景下(比如接听电话、K歌的场景),通常是录入的声音是啥样,最终播放出来的声音也是啥样的。如果录入的声音存在缺陷,收听效果不好就会影响接收方的听感,从而一定程度上影响到发送方的自信心。In daily life, in some scenarios (such as answering a phone call, K song scenario), it is usually the sound that is recorded and the sound that is finally played. If the recorded sound is defective, the poor listening effect will affect the receiver's sense of hearing and thus affect the sender's self-confidence to a certain extent.

可见,如何对存在缺陷的声音进行处理是一个亟待解决的技术课题。It can be seen that how to process defective sounds is a technical issue that needs to be solved urgently.

发明内容SUMMARY OF THE INVENTION

鉴于以上内容,有必要提供一种声音处理方法、装置及电子设备,能够对存在声音缺陷的频段进行处理,提高声音的收听效果。In view of the above, it is necessary to provide a sound processing method, device and electronic device, which can process frequency bands with sound defects and improve the sound listening effect.

一种声音处理方法,应用于电子设备中,所述方法包括:A sound processing method, applied in electronic equipment, the method comprising:

接收用户输入的第一声音信号;receiving a first sound signal input by a user;

获取预先保存的频响;Get the pre-saved frequency response;

根据所述预先保存的频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理。According to the pre-stored frequency response, the frequency range of the frequency response of the first sound signal with sound defects is processed.

根据本发明优选实施例,所述接收用户输入的第一声音信号之前,所述方法还包括:According to a preferred embodiment of the present invention, before the receiving the first sound signal input by the user, the method further includes:

采集所述用户的第二声音信号;collecting the second voice signal of the user;

提取所述第二声音信号的频响;extracting the frequency response of the second sound signal;

对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理;processing at least one frequency band with sound defects in the frequency response of the second sound signal;

将处理后的频响进行保存。Save the processed frequency response.

根据本发明优选实施例,所述提取所述第二声音信号的频响之后,所述方法还包括:According to a preferred embodiment of the present invention, after the frequency response of the second sound signal is extracted, the method further includes:

接收针对预设的多个频响处理选项中的目标频响处理选项输入的选择指令;receiving a selection instruction input for a target frequency response processing option among the preset multiple frequency response processing options;

所述对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理包括:The processing of at least one frequency band with sound defects in the frequency response of the second sound signal includes:

根据所述目标频响处理选项的要求,对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理。According to the requirements of the target frequency response processing option, at least one frequency band in the frequency response of the second sound signal with sound defects is processed.

根据本发明优选实施例,在所述第一声音信号是在所述用户与所述电子设备中的通讯录上的目标联系人进行通讯时接收到的情况下,所述获取预先保存的频响包括:According to a preferred embodiment of the present invention, when the first sound signal is received when the user communicates with a target contact in an address book in the electronic device, the acquiring a pre-saved frequency response include:

查询预先保存的联系人与频响的对应关系;Query the correspondence between pre-saved contacts and frequency responses;

从所述对应关系中获得所述目标联系人对应的目标频响;obtaining the target frequency response corresponding to the target contact from the corresponding relationship;

所述根据所述预先保存的频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理包括:According to the pre-stored frequency response, processing the frequency band with sound defects in the frequency response of the first sound signal includes:

根据所述目标频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理。According to the target frequency response, processing is performed on a frequency band with sound defects in the frequency response of the first sound signal.

根据本发明优选实施例,所述处理后的频响有多个,所述对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理之后,所述方法还包括:According to a preferred embodiment of the present invention, there are multiple frequency responses after processing, and after processing at least one frequency band with sound defects in the frequency response of the second sound signal, the method further includes:

获取所述通讯录上的多个联系人;obtaining multiple contacts in the address book;

将处理后的多个频响发送给每个所述联系人;sending the processed plurality of frequency responses to each of said contacts;

接收每个所述联系人从所述处理后的多个频响中选择的频响;receiving a frequency response selected by each of the contacts from the processed plurality of frequency responses;

针对每个所述联系人,建立所述联系人与所述联系人选择的频响之间的对应关系;For each of the contacts, establishing a correspondence between the contact and the frequency response selected by the contact;

所述将处理后的频响进行保存包括:The storing of the processed frequency response includes:

将所述处理后的多个频响以及所述对应关系进行保存。The processed frequency responses and the corresponding relationship are saved.

一种声音处理装置,运行于电子设备中,所述声音处理装置包括:A sound processing device, running in an electronic device, the sound processing device comprising:

接收单元,用于接收用户输入的第一声音信号;a receiving unit for receiving the first sound signal input by the user;

获取单元,用于获取预先保存的频响;The acquisition unit is used to acquire the pre-saved frequency response;

第一处理单元,用于根据所述预先保存的频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理。The first processing unit is configured to process, according to the pre-stored frequency response, a frequency band with sound defects in the frequency response of the first sound signal.

根据本发明优选实施例,所述声音处理装置还包括:According to a preferred embodiment of the present invention, the sound processing device further includes:

采集单元,用于在所述接收单元接收用户输入的第一声音信号之前,采集所述用户的第二声音信号;a collection unit, configured to collect the second sound signal of the user before the receiving unit receives the first sound signal input by the user;

提取单元,用于提取所述第二声音信号的频响;an extraction unit for extracting the frequency response of the second sound signal;

第二处理单元,用于对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理;a second processing unit, configured to process at least one frequency band with sound defects in the frequency response of the second sound signal;

保存单元,用于将处理后的频响进行保存。The saving unit is used to save the processed frequency response.

根据本发明优选实施例,所述接收单元,还用于在所述提取单元提取所述第二声音信号的频响之后,接收针对预设的多个频响处理选项中的目标频响处理选项输入的选择指令;According to a preferred embodiment of the present invention, the receiving unit is further configured to, after the extracting unit extracts the frequency response of the second sound signal, receive a target frequency response processing option from a plurality of preset frequency response processing options the input selection command;

所述第二处理单元对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理的方式具体为:The manner in which the second processing unit processes at least one frequency band with sound defects in the frequency response of the second sound signal is specifically:

根据所述目标频响处理选项的要求,对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理。According to the requirements of the target frequency response processing option, at least one frequency band in the frequency response of the second sound signal with sound defects is processed.

根据本发明优选实施例,在所述第一声音信号是在所述用户与所述电子设备中的通讯录上的目标联系人进行通讯时接收到的情况下,所述获取单元获取预先保存的频响的方式具体为:According to a preferred embodiment of the present invention, when the first sound signal is received when the user communicates with a target contact in an address book in the electronic device, the obtaining unit obtains a pre-stored sound signal. The frequency response is as follows:

查询预先保存的联系人与频响的对应关系;Query the correspondence between pre-saved contacts and frequency responses;

从所述对应关系中获得所述目标联系人对应的目标频响;obtaining the target frequency response corresponding to the target contact from the corresponding relationship;

所述第一处理单元根据所述预先保存的频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理的方式具体为:The manner in which the first processing unit processes the frequency band with sound defects in the frequency response of the first sound signal according to the pre-stored frequency response is specifically:

根据所述目标频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理。According to the target frequency response, processing is performed on a frequency band with sound defects in the frequency response of the first sound signal.

根据本发明优选实施例,所述处理后的频响有多个,所述获取单元,还用于在所述第二处理单元对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理之后,获取所述通讯录上的多个联系人;According to a preferred embodiment of the present invention, there are multiple frequency responses after processing, and the acquiring unit is further configured to have at least one sound defect in the frequency response of the second processing unit to the second sound signal After the frequency band is processed, obtain multiple contacts in the address book;

所述声音处理装置还包括:The sound processing device also includes:

发送单元,用于将处理后的多个频响发送给每个所述联系人;a sending unit, configured to send the processed multiple frequency responses to each of the contacts;

所述接收单元,还用于接收每个所述联系人从所述处理后的多个频响中选择的频响;The receiving unit is further configured to receive a frequency response selected by each of the contacts from the processed multiple frequency responses;

建立单元,用于针对每个所述联系人,建立所述联系人与所述联系人选择的频响之间的对应关系;a establishing unit, configured to establish, for each of the contacts, a corresponding relationship between the contact and the frequency response selected by the contact;

所述保存单元将处理后的频响进行保存的方式具体为:The specific manner in which the storage unit stores the processed frequency response is as follows:

将所述处理后的多个频响以及所述对应关系进行保存。The processed frequency responses and the corresponding relationship are saved.

一种电子设备,所述电子设备包括处理器、存储器及输入输出设备,所述存储器用于存储至少一个指令,所述处理器用于执行所述至少一个指令以实现上述任一项所述的声音处理方法。An electronic device, the electronic device includes a processor, a memory, and an input/output device, the memory is used to store at least one instruction, and the processor is used to execute the at least one instruction to implement the sound according to any one of the above Approach.

一种非易失性存储介质,所述非易失性存储介质存储有至少一个指令,所述至少一个指令被处理器执行时实现如权利要求1至5任一项所述的声音处理方法。A non-volatile storage medium, the non-volatile storage medium stores at least one instruction, the at least one instruction implements the sound processing method according to any one ofclaims 1 to 5 when the at least one instruction is executed by a processor.

由以上技术方案,本发明实施例中,电子设备可以接收用户输入的第一声音信号,获取预先保存的频响,并根据所述预先保存的频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理。可见,通过本发明实施例,电子设备在接收到用户输入的第一声音信号之后,可以根据预先保存的频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理,之后,在将处理后的第一声音信号发送出去,从而能够对存在声音缺陷的频段进行处理,提高声音的收听效果。From the above technical solutions, in this embodiment of the present invention, the electronic device may receive the first sound signal input by the user, obtain a pre-stored frequency response, and, according to the pre-stored frequency response, determine the frequency response of the first sound signal. The frequency bands with sound defects are processed. It can be seen that, through the embodiment of the present invention, after receiving the first sound signal input by the user, the electronic device can process the frequency band with sound defects in the frequency response of the first sound signal according to the frequency response saved in advance, and then , after the processed first sound signal is sent out, so that the frequency band with sound defects can be processed, and the sound listening effect can be improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to the provided drawings without creative work.

图1是本发明声音处理方法的第一较佳实施例的流程图。FIG. 1 is a flow chart of a first preferred embodiment of the sound processing method of the present invention.

图2是本发明公开的第一种声音频段处理前后的频响曲线对比示意图。FIG. 2 is a schematic diagram showing the comparison of frequency response curves before and after processing of the first sound frequency band disclosed in the present invention.

图3是本发明公开的第二种声音频段处理前后的频响曲线对比示意图。FIG. 3 is a schematic diagram showing the comparison of frequency response curves before and after processing of the second sound frequency band disclosed in the present invention.

图4是本发明公开的第三种声音频段处理前后的频响曲线对比示意图。FIG. 4 is a schematic diagram showing the comparison of frequency response curves before and after processing the third sound frequency band disclosed in the present invention.

图5是本发明声音处理方法的第二较佳实施例的流程图。FIG. 5 is a flow chart of a second preferred embodiment of the sound processing method of the present invention.

图6是本发明声音处理方法的第三较佳实施例的流程图。FIG. 6 is a flowchart of a third preferred embodiment of the sound processing method of the present invention.

图7是本发明声音处理装置的第一较佳实施例的功能模块图。FIG. 7 is a functional block diagram of the first preferred embodiment of the sound processing apparatus of the present invention.

图8是本发明声音处理装置的第二较佳实施例的功能模块图。FIG. 8 is a functional block diagram of a second preferred embodiment of the sound processing apparatus of the present invention.

图9是本发明实现声音处理方法的较佳实施例的电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device implementing a preferred embodiment of the sound processing method of the present invention.

主要元件符号说明Description of main component symbols

电子设备Electronic equipment11声音处理装置sound processing device1111存储器memory1212处理器processor1313输入输出装置I/O device1414接收单元receivingunit101101获取单元get unit102102第一处理单元first processing unit103103采集单元acquisition unit104104提取单元extraction unit105105第二处理单元second processing unit106106保存单元saveunit107107发送单元sendingunit108108建立单元build unit109109

具体实施方式Detailed ways

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

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more clearly understood, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.

本发明实施例中,所述电子设备是一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的设备,其硬件包括但不限于微处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程门阵列(Field-Programmable Gate Array,FPGA)、数字处理器(Digital Signal Processor,DSP)、嵌入式设备等。In the embodiment of the present invention, the electronic device is a device that can automatically perform numerical calculation and/or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Programmable Gate Array (Field-Programmable Gate Array, FPGA), Digital Signal Processor (Digital Signal Processor, DSP), embedded devices, etc.

所述电子设备包括但不限于任何一种可与用户通过键盘、鼠标、遥控器、触摸板或声控设备等方式进行人机交互的电子产品,例如,个人计算机、平板电脑、智能手机、个人数字助理(Personal Digital Assistant,PDA)、交互式网络电视(Internet ProtocolTelevision,IPTV)、智能式穿戴式设备、数码相机等。The electronic device includes but is not limited to any electronic product that can interact with the user through a keyboard, a mouse, a remote control, a touchpad or a voice-activated device, for example, a personal computer, a tablet computer, a smart phone, a personal digital Assistant (Personal Digital Assistant, PDA), Internet Protocol Television (Internet Protocol Television, IPTV), smart wearable devices, digital cameras, etc.

请参见图1,图1是本发明声音处理方法的第一较佳实施例的流程图。其中,该声音处理方法应用于电子设备中。根据不同的需求,该流程图中步骤的顺序可以改变,某些步骤可以省略。Please refer to FIG. 1 , which is a flowchart of a first preferred embodiment of the sound processing method of the present invention. Wherein, the sound processing method is applied in electronic equipment. According to different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted.

S10、电子设备接收用户输入的第一声音信号。S10. The electronic device receives the first sound signal input by the user.

本发明实施例中,电子设备可以在多种应用场景中接收用户输入的第一声音信号,比如:当电子设备上的社交聊天应用被开启后,电子设备可以接收用户在社交聊天应用上输入的声音,又比如:在用户与联系人进行通讯的场景下,电子设备上的录音装置(如麦克风)被开启后,电子设备可以接收用户通过录音装置输入的声音,又比如:当用户在K歌时,电子设备可以通过K歌装置接收用户输入的声音。In this embodiment of the present invention, the electronic device may receive the first sound signal input by the user in various application scenarios. For example, after the social chat application on the electronic device is enabled, the electronic device may receive the user input on the social chat Sound, another example: in the scenario where the user communicates with the contact, after the recording device (such as a microphone) on the electronic device is turned on, the electronic device can receive the sound input by the user through the recording device. Another example: when the user is in K song , the electronic device can receive the sound input by the user through the karaoke device.

S11、电子设备获取预先保存的频响。S11. The electronic device acquires a pre-saved frequency response.

本发明实施例中,频响即频率响应,指将一个以恒电压输出的音频信号与系统相连接时,产生的声压随频率变化而发生增大或衰减、相位随频率而发生变化的现象。这种声压和相位与频率的相关联的变化关系(变化量)称为频率响应,单位是分贝。频响通俗讲是指声音在整个频率范围内的放大倍数。频响一般不改变音色,只能影响固定频率段的声音的响度。In the embodiment of the present invention, the frequency response is the frequency response, which refers to the phenomenon that when an audio signal output with a constant voltage is connected to the system, the generated sound pressure increases or decreases with the frequency, and the phase changes with the frequency. . The associated variation (variation) of this sound pressure and phase with frequency is called the frequency response, and the unit is decibels. In layman's terms, frequency response refers to the amplification of sound over the entire frequency range. The frequency response generally does not change the timbre, but only affects the loudness of the sound in a fixed frequency band.

在一个实施例中,电子设备可以预先采集用户的第二声音信号,提取第二声音信号的频响,进一步地,电子设备可以接收针对预设的多个频响处理选项中的目标频响处理选项输入的选择指令,并根据目标频响处理选项的要求,对第二声音信号的频响中存在声音缺陷的至少一个频段进行处理之后,在将处理后的频响进行保存。In one embodiment, the electronic device may pre-collect the user's second sound signal, and extract the frequency response of the second sound signal. Further, the electronic device may receive target frequency response processing from a plurality of preset frequency response processing options The selection instruction of the option input, and according to the requirements of the target frequency response processing option, after processing at least one frequency band with sound defects in the frequency response of the second sound signal, the processed frequency response is saved.

在一个实施例中,电子设备可以预先采集用户的第二声音信号,提取第二声音信号的频响,对第二声音信号的频响中存在声音缺陷的至少一个频段进行处理之后,电子设备将处理后的多个频响发送给每个联系人,接收每个联系人从处理后的多个频响中选择的频响;并针对每个联系人,建立联系人与联系人选择的频响之间的对应关系,再将处理后的多个频响以及对应关系进行保存。In one embodiment, the electronic device may pre-collect the user's second sound signal, extract the frequency response of the second sound signal, and after processing at least one frequency band with sound defects in the frequency response of the second sound signal, the electronic device will The processed multiple frequency responses are sent to each contact, and the frequency responses selected by each contact from the processed multiple frequency responses are received; and for each contact, the contact and the selected frequency response of the contact are established The corresponding relationship between them, and then save the processed multiple frequency responses and the corresponding relationship.

作为一种可选的实施方式,也可以预先制作一个声音的均衡器,该均衡器将100Hz~10KHz的频段范围划分为四个段,比如:100~1KHz,1KHz~4KHz、4K~8KHz、8K~10KHz,用户可以根据自己的喜好,以单位步进(如0.5dB)进行调整,调整的范围为-6dB到+6dB,最后,将满足用户自己要求的频响进行保存。As an optional implementation, a sound equalizer can also be pre-made, and the equalizer divides the frequency range of 100Hz to 10KHz into four segments, for example: 100 to 1KHz, 1KHz to 4KHz, 4K to 8KHz, 8K ~10KHz, users can adjust in unit steps (such as 0.5dB) according to their own preferences, the adjustment range is -6dB to +6dB, and finally, save the frequency response that meets the user's own requirements.

S12、电子设备根据预先保存的频响,对第一声音信号的频响中存在声音缺陷的频段进行处理。S12. The electronic device processes, according to the pre-stored frequency response, a frequency band with sound defects in the frequency response of the first sound signal.

本发明实施例中,每个人的声音都可能或多或少的存在缺陷,比如鼻音很重,高频的声调唱不上去,低频的声调唱不出来等等。人的发声范围通常在100Hz~10KHz,可以将100Hz~10KHz的范围划分为低频、中频以及高频三个范围。In the embodiment of the present invention, each person's voice may have more or less defects, such as heavy nasal sounds, high-frequency tones cannot be sung, low-frequency tones cannot be sung, and so on. The range of human vocalization is usually 100Hz to 10KHz, and the range of 100Hz to 10KHz can be divided into three ranges: low frequency, medium frequency and high frequency.

请参见图2,图2是本发明公开的第一种声音频段处理前后的频响曲线对比示意图。从图2所示的处理前的频响曲线可以看出,用户的声音存在低音不足的缺陷,假设预先保存的频响是针对低音频段进行处理后的频响,则电子设备可以根据预先保存的频响对第一声音信号中存在声音缺陷的低音频段进行处理,具体的,可以将100Hz~1KHz的频段刻意抬高,而将1KHz~10KHz的频段保持不变(可选的,也可以衰减),如图2所示的处理后的频响曲线,处理后,第一声音信号中的低音频段凸显出来,达到了超重低音的效果。Please refer to FIG. 2 . FIG. 2 is a schematic diagram showing the comparison of frequency response curves before and after processing the first sound frequency band disclosed in the present invention. From the frequency response curve before processing shown in Figure 2, it can be seen that the user's voice has the defect of insufficient bass. Assuming that the pre-saved frequency response is the frequency response after processing for the bass frequency band, the electronic device can The frequency response processes the bass frequency band with sound defects in the first sound signal. Specifically, the frequency band of 100Hz to 1KHz can be deliberately raised, and the frequency band of 1KHz to 10KHz can be kept unchanged (optional, it can also be attenuated) , the frequency response curve after processing as shown in Figure 2, after processing, the bass frequency band in the first sound signal is highlighted, achieving the effect of super bass.

请参见图3,图3是本发明公开的第二种声音频段处理前后的频响曲线对比示意图。从图3所示的处理前的频响曲线可以看出,用户的声音存在中频声音缺陷,假设预先保存的频响是针对中音频段进行处理后的频响,则电子设备可以根据预先保存的频响对第一声音信号中存在声音缺陷的中音频段进行处理,具体的,可以将1KHz~4KHz的频段刻意抬高,而将100Hz~1KHz的频段以及4KHz~10KHz的频段保持不变(可选的,也可以降低),如图3所示的处理后的频响曲线,处理后,第一声音信号中的中音频段凸显出来,达到声音清澈的效果,而不会让人觉得沉闷。Please refer to FIG. 3 . FIG. 3 is a schematic diagram showing the comparison of frequency response curves before and after processing the second sound frequency band disclosed in the present invention. It can be seen from the frequency response curve before processing shown in Fig. 3 that the user's voice has an intermediate frequency sound defect. The frequency response is to process the mid-frequency band with sound defects in the first sound signal. Specifically, the frequency band of 1KHz to 4KHz can be deliberately raised, and the frequency band of 100Hz to 1KHz and the frequency band of 4KHz to 10KHz can be kept unchanged. The frequency response curve after processing is shown in Figure 3. After processing, the mid-frequency range in the first sound signal is highlighted, achieving the effect of clear sound without making people feel dull.

请参见图4,图4是本发明公开的第三种声音频段处理前后的频响曲线对比示意图。从图4所示的处理前的频响曲线可以看出,用户的声音存在高频声音缺陷,假设预先保存的频响是针对高音频段进行处理后的频响,则电子设备可以根据预先保存的频响对第一声音信号中存在声音缺陷的高音频段进行处理,具体的,可以将4KHz~10KHz的频段刻意抬高,而将其他频段保持不变(可选的,也可以降低),如图4所示的处理后的频响曲线,处理后,第一声音信号中的高音频段凸显出来,达到高音频段的声音明亮高亢的效果。Please refer to FIG. 4 . FIG. 4 is a schematic diagram showing the comparison of frequency response curves before and after processing the third sound frequency band disclosed in the present invention. It can be seen from the frequency response curve before processing shown in Figure 4 that the user's voice has high-frequency sound defects. Assuming that the pre-saved frequency response is the frequency response after processing for the high-frequency range, the electronic device can The frequency response processes the high-frequency band with sound defects in the first sound signal. Specifically, the frequency band from 4KHz to 10KHz can be deliberately raised, while other frequency bands remain unchanged (optional, can also be lowered), as shown in the figure 4 shows the processed frequency response curve. After processing, the high-frequency band in the first sound signal is highlighted, and the sound of the high-frequency band is bright and high-pitched.

在图1所描述的方法流程中,电子设备可以接收用户输入的第一声音信号,获取预先保存的频响,并根据预先保存的频响,对第一声音信号的频响中存在声音缺陷的频段进行处理。可见,通过本发明实施例,电子设备在接收到用户输入的第一声音信号之后,可以根据预先保存的频响,对第一声音信号的频响中存在声音缺陷的频段进行处理,之后,在将处理后的第一声音信号发送出去,从而能够对存在声音缺陷的频段进行处理,提高声音的收听效果。In the method flow described in FIG. 1 , the electronic device may receive the first sound signal input by the user, obtain the pre-stored frequency response, and, according to the pre-stored frequency response, determine the sound defect in the frequency response of the first sound signal. frequency band for processing. It can be seen that, through the embodiment of the present invention, after receiving the first sound signal input by the user, the electronic device can process the frequency band with sound defects in the frequency response of the first sound signal according to the pre-stored frequency response, and then The processed first sound signal is sent out, so that the frequency band with sound defects can be processed, and the sound listening effect can be improved.

请参见图5,图5是本发明声音处理方法的第二较佳实施例的流程图。其中,该声音处理方法应用于电子设备中。根据不同的需求,该流程图中步骤的顺序可以改变,某些步骤可以省略。Please refer to FIG. 5, which is a flowchart of a second preferred embodiment of the sound processing method of the present invention. Wherein, the sound processing method is applied in electronic equipment. According to different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted.

S20、电子设备采集用户的第二声音信号。S20. The electronic device collects the second sound signal of the user.

本发明实施例中,电子设备可以在多种应用场景中采集用户的第二声音信号,比如:当电子设备上的社交聊天应用被开启后,电子设备可以采集用户在社交聊天应用上输入的声音,又比如:在用户与联系人进行通讯的场景下,电子设备上的录音装置(如麦克风)被开启后,电子设备可以采集用户通过录音装置输入的声音,又比如:当用户在K歌时,电子设备可以通过K歌装置采集用户输入的声音。In this embodiment of the present invention, the electronic device may collect the second sound signal of the user in various application scenarios. For example, when the social chat application on the electronic device is enabled, the electronic device may collect the sound input by the user on the social chat application. , another example: in the scenario where the user communicates with the contact, after the recording device (such as a microphone) on the electronic device is turned on, the electronic device can collect the sound input by the user through the recording device, another example: when the user is in a K song , the electronic device can collect the voice input by the user through the karaoke device.

S21、电子设备提取第二声音信号的频响。S21. The electronic device extracts the frequency response of the second sound signal.

可选的,本发明实施例中,在步骤S20之后,以及步骤S21之前,电子设备还需要对第二声音信号进行消噪处理,以获得较纯净的第二声音信号。Optionally, in this embodiment of the present invention, after step S20 and before step S21, the electronic device further needs to perform noise reduction processing on the second sound signal to obtain a relatively pure second sound signal.

S22、电子设备接收针对预设的多个频响处理选项中的目标频响处理选项输入的选择指令。S22. The electronic device receives a selection instruction input for a target frequency response processing option among the preset multiple frequency response processing options.

本发明实施例中,可以预先设置多个频响处理选项,比如:超重低音选项、清澈人声选项、明亮高亢选项、自定义选项等。其中,每个不同的频响处理选项可以有不同的要求,比如:超重低音选项只对低音频段进行处理,清澈人声选项只对中音频段进行处理,明亮高亢选项只对高音频段进行处理,自定义选项则可以根据用户自己的要求对一个频段或多个频段进行处理。In this embodiment of the present invention, a plurality of frequency response processing options may be preset, such as: a super bass option, a clear vocal option, a bright and high-pitched option, a custom option, and the like. Among them, each different frequency response processing options can have different requirements, for example: the super bass option only processes the low frequency band, the clear vocal option only processes the mid-frequency band, and the bright and high-pitched option only processes the high-frequency band. The custom option can process one frequency band or multiple frequency bands according to the user's own requirements.

S23、电子设备根据目标频响处理选项的要求,对第二声音信号的频响中存在声音缺陷的至少一个频段进行处理。S23. The electronic device processes at least one frequency band with sound defects in the frequency response of the second sound signal according to the requirements of the target frequency response processing option.

本发明实施例中,用户的声音存在缺陷的频段可能有一个,也可能有多个,比如:用户只存在高音频段的缺陷,又比如:用户存在高音频段以及低音频段的缺陷等。In this embodiment of the present invention, there may be one or more frequency bands in which the user's voice is defective. For example, the user only has defects in the high-frequency band, and for example, the user has defects in the high-frequency band and the low-frequency band.

电子设备在接收到针对预设的多个频响处理选项中的目标频响处理选项输入的选择指令之后,就可以响应该选择指令,根据目标频响处理选项的要求,对第二声音信号的频响中存在声音缺陷的至少一个频段进行处理。After receiving the selection instruction input for the target frequency response processing option among the preset multiple frequency response processing options, the electronic device can respond to the selection instruction, and, according to the requirements of the target frequency response processing option, perform a response to the second sound signal. At least one frequency band with sound defects in the frequency response is processed.

S24、电子设备将处理后的频响进行保存。S24, the electronic device saves the processed frequency response.

S25、电子设备接收用户输入的第一声音信号。S25. The electronic device receives the first sound signal input by the user.

S26、电子设备获取预先保存的频响。S26, the electronic device acquires the pre-saved frequency response.

S27、电子设备根据预先保存的频响,对第一声音信号的频响中存在声音缺陷的频段进行处理。S27. The electronic device processes the frequency band with sound defects in the frequency response of the first sound signal according to the pre-stored frequency response.

在图5所描述的方法流程中,电子设备可以预先采集用户的第二声音信号,并根据选择的目标频响处理选项的要求,对该第二声音信号的频响中存在声音缺陷的至少一个频段进行处理,并保存处理后的频响。当接收到用户输入的第一声音信号后,电子设备就可以根据预先保存的频响对该第一声音信号的频响中存在声音缺陷的频段进行处理,从而可以根据用户自己选择的目标频响处理选项对存在缺陷的声音进行处理,提高声音的收听效果。In the method flow described in FIG. 5 , the electronic device may pre-collect the user's second sound signal, and according to the requirements of the selected target frequency response processing option, at least one of the sound defects exists in the frequency response of the second sound signal. The frequency band is processed and the processed frequency response is saved. After receiving the first sound signal input by the user, the electronic device can process the frequency band with sound defects in the frequency response of the first sound signal according to the pre-stored frequency response, so that the target frequency response selected by the user can be selected. The processing option processes the defective sound to improve the listening effect of the sound.

请参见图6,图6是本发明声音处理方法的第三较佳实施例的流程图。其中,该声音处理方法应用于电子设备中。根据不同的需求,该流程图中步骤的顺序可以改变,某些步骤可以省略。Please refer to FIG. 6 , which is a flowchart of a third preferred embodiment of the sound processing method of the present invention. Wherein, the sound processing method is applied in electronic equipment. According to different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted.

S30、电子设备采集用户的第二声音信号。S30. The electronic device collects the second sound signal of the user.

S31、电子设备提取第二声音信号的频响。S31. The electronic device extracts the frequency response of the second sound signal.

S32、电子设备对第二声音信号的频响中存在声音缺陷的至少一个频段进行处理。S32. The electronic device processes at least one frequency band with sound defects in the frequency response of the second sound signal.

本发明实施例中,用户的声音存在缺陷的频段可能有一个,也可能有多个,比如:用户只存在高音频段的缺陷,又比如:用户存在高音频段以及低音频段的缺陷等。In this embodiment of the present invention, there may be one or more frequency bands in which the user's voice is defective. For example, the user only has defects in the high-frequency band, and for example, the user has defects in the high-frequency band and the low-frequency band.

电子设备可以对第二声音信号的频响中存在声音缺陷的任意一个频段进行处理,也可以对第二声音信号的频响中存在声音缺陷的多个频段进行处理,本发明实施例不作限定。The electronic device may process any frequency band with sound defects in the frequency response of the second sound signal, and may also process multiple frequency bands with sound defects in the frequency response of the second sound signal, which is not limited in this embodiment of the present invention.

S33、电子设备获取通讯录上的多个联系人。S33. The electronic device acquires multiple contacts in the address book.

本发明实施例中,该通讯录可以是电子设备上用于记录多个联系人的联系方式(如电话号码)的列表,也可以是电子设备上的社交聊天应用上设置的群组里的多个好友列表。In this embodiment of the present invention, the address book may be a list on the electronic device for recording contact information (such as phone numbers) of multiple contacts, or may be a list of multiple contacts in a group set on a social chat application on the electronic device friends list.

S34、电子设备将处理后的多个频响发送给每个联系人。S34. The electronic device sends the processed multiple frequency responses to each contact.

本发明实施例中,电子设备通讯录上存储有用户的多个联系人,电子设备对第二声音信号的频响中存在声音缺陷的至少一个频段进行处理,获得处理后的多个频响之后,电子设备可以将处理后的多个频响发送给每个联系人,以便每个联系人根据自己的要求从处理后的多个频响中选择该联系人喜欢的频响。In this embodiment of the present invention, multiple contacts of the user are stored in the address book of the electronic device, and the electronic device processes at least one frequency band with sound defects in the frequency response of the second sound signal. , the electronic device can send the processed multiple frequency responses to each contact, so that each contact can select a frequency response that the contact likes from the processed multiple frequency responses according to their own requirements.

S35、电子设备接收每个联系人从处理后的多个频响中选择的频响。S35. The electronic device receives the frequency response selected by each contact from the processed multiple frequency responses.

S36、针对每个联系人,电子设备建立联系人与联系人选择的频响之间的对应关系。S36. For each contact, the electronic device establishes a correspondence between the contact and the frequency response selected by the contact.

S37、电子设备将处理后的多个频响以及对应关系进行保存。S37, the electronic device saves the processed multiple frequency responses and the corresponding relationship.

本发明实施例中,电子设备上存储的是频响与联系人之间一一对应的对应关系,即每个联系人都有对应的频响。不同联系人对应的频响可能相同,也可能不相同。In this embodiment of the present invention, the electronic device stores a one-to-one correspondence between frequency responses and contacts, that is, each contact has a corresponding frequency response. The frequency response corresponding to different contacts may or may not be the same.

S38、电子设备接收用户输入的第一声音信号。S38. The electronic device receives the first sound signal input by the user.

S39、在第一声音信号是在用户与电子设备中的通讯录上的目标联系人进行通讯时接收到的情况下,电子设备查询预先保存的联系人与频响的对应关系。S39. In the case that the first sound signal is received when the user communicates with the target contact in the address book in the electronic device, the electronic device queries the pre-stored correspondence between the contact and the frequency response.

举例来说,用户在通讯的过程中(比如拨打电话/接听电话),在电子设备确定与用户进行通讯的对方是通讯录上的目标联系人的情况下,电子设备可以查询预先保存的联系人与频响的对应关系。For example, during the communication process of the user (such as making a call/answering a call), in the case that the electronic device determines that the counterparty to communicate with the user is the target contact in the address book, the electronic device can query the pre-saved contact Corresponding relationship with frequency response.

又举例来说,用户在社交聊天应用上与好友通过语音进行聊天时,当用户输入第一声音信号之后,电子设备可以在确定与用户进行聊天的对方是通讯录上的目标联系人的情况下,电子设备可以查询预先保存的联系人与频响的对应关系。For another example, when a user chats with a friend by voice on a social chat application, after the user inputs the first sound signal, the electronic device may determine that the person who is chatting with the user is the target contact in the address book. , the electronic device can query the pre-saved correspondence between the contact and the frequency response.

S310、电子设备从对应关系中获得目标联系人对应的目标频响。S310. The electronic device obtains the target frequency response corresponding to the target contact from the corresponding relationship.

S311、电子设备根据目标频响,对第一声音信号的频响中存在声音缺陷的频段进行处理。S311. The electronic device processes, according to the target frequency response, a frequency band with sound defects in the frequency response of the first sound signal.

在图6所描述的方法流程中,电子设备可以预先采集用户的第二声音信号,并对第二声音信号的频响中存在声音缺陷的至少一个频段进行处理,进一步地,电子设备可以将处理后的多个频响发送给每个联系人,接收每个联系人从处理后的多个频响中选择的频响,并针对每个联系人,电子设备建立联系人与联系人选择的频响之间的对应关系,以及保存处理后的多个频响以及对应关系。当接收到用户输入的第一声音信号后,在第一声音信号是针对通讯录上的目标联系人的情况下,电子设备就可以从对应关系中查询目标联系人对应的目标频响,并根据目标频响对第一声音信号的频响中存在声音缺陷的频段进行处理,从而可以根据不同的联系人有针对性地进行声音处理,使得每个联系人听到的用户的声音都符合联系人的要求,从而可以提高声音的收听效果,提高用户体验。In the method flow described in FIG. 6 , the electronic device may pre-collect the user's second sound signal, and process at least one frequency band with sound defects in the frequency response of the second sound signal. Further, the electronic device may process the The resulting multiple frequency responses are sent to each contact, the frequency responses selected by each contact from the processed multiple frequency responses are received, and for each contact, the electronic device establishes the contact and the contact selected frequency response. The corresponding relationship between the responses, and save the processed multiple frequency responses and the corresponding relationship. After receiving the first sound signal input by the user, in the case that the first sound signal is for the target contact in the address book, the electronic device can query the target frequency response corresponding to the target contact from the corresponding relationship, and according to The target frequency response processes the frequency bands with sound defects in the frequency response of the first sound signal, so that sound processing can be performed in a targeted manner according to different contacts, so that the user's voice heard by each contact is consistent with the contact. Therefore, the listening effect of the sound can be improved and the user experience can be improved.

请参见图7,图7是本发明声音处理装置的第一较佳实施例的功能模块图。其中,图7描述的声音处理装置用于执行图1、图5或图6所描述的声音处理方法中的部分或全部步骤。所述声音处理装置11包括接收单元101、获取单元102以及第一处理单元103。本发明所称的单元是指一种能够被处理器13所执行并且能够完成固定功能的一系列计算机程序段,其存储在存储器12中。在本实施例中,关于各单元的功能将在后续的实施例中详述。Please refer to FIG. 7 , which is a functional block diagram of the first preferred embodiment of the sound processing apparatus of the present invention. Wherein, the sound processing apparatus described in FIG. 7 is used to execute some or all of the steps in the sound processing method described in FIG. 1 , FIG. 5 or FIG. 6 . Thesound processing apparatus 11 includes a receivingunit 101 , an obtainingunit 102 and afirst processing unit 103 . The unit referred to in the present invention refers to a series of computer program segments that can be executed by theprocessor 13 and can perform fixed functions, and are stored in thememory 12 . In this embodiment, the functions of each unit will be described in detail in subsequent embodiments.

接收单元101,用于接收用户输入的第一声音信号。The receivingunit 101 is configured to receive a first sound signal input by a user.

本发明实施例中,接收单元101可以在多种应用场景中接收用户输入的第一声音信号,比如:当电子设备上的社交聊天应用被开启后,接收单元101可以接收用户在社交聊天应用上输入的声音,又比如:在用户与联系人进行通讯的场景下,电子设备上的录音装置(如麦克风)被开启后,接收单元101可以接收用户通过录音装置输入的声音,又比如:当用户在K歌时,接收单元101可以通过K歌装置接收用户输入的声音。In this embodiment of the present invention, the receivingunit 101 may receive the first sound signal input by the user in various application scenarios. For example, when the social chat application on the electronic device is enabled, the receivingunit 101 may receive the user's voice signal on the social chat application. The input sound, another example: in the scenario where the user communicates with the contact, after the recording device (such as a microphone) on the electronic device is turned on, the receivingunit 101 can receive the sound input by the user through the recording device, another example: when the user During karaoke, the receivingunit 101 may receive the sound input by the user through the karaoke device.

获取单元102,用于获取预先保存的频响。The obtainingunit 102 is configured to obtain a pre-saved frequency response.

本发明实施例中,频响即频率响应,指将一个以恒电压输出的音频信号与系统相连接时,产生的声压随频率变化而发生增大或衰减、相位随频率而发生变化的现象。这种声压和相位与频率的相关联的变化关系(变化量)称为频率响应,单位是分贝。频响通俗讲是指声音在整个频率范围内的放大倍数。频响一般不改变音色,只能影响固定频率段的声音的响度。In the embodiment of the present invention, the frequency response is the frequency response, which refers to the phenomenon that when an audio signal output with a constant voltage is connected to the system, the generated sound pressure increases or decreases with the frequency, and the phase changes with the frequency. . The associated variation (variation) of this sound pressure and phase with frequency is called the frequency response, and the unit is decibels. In layman's terms, frequency response refers to the amplification of sound over the entire frequency range. The frequency response generally does not change the timbre, but only affects the loudness of the sound in a fixed frequency band.

第一处理单元103,用于根据所述预先保存的频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理。Thefirst processing unit 103 is configured to process, according to the pre-stored frequency response, a frequency band with sound defects in the frequency response of the first sound signal.

本发明实施例中,每个人的声音都可能或多或少的存在缺陷,比如鼻音很重,高频的声调唱不上去,低频的声调唱不出来等等。In the embodiment of the present invention, each person's voice may have more or less defects, such as heavy nasal sounds, high-frequency tones cannot be sung, low-frequency tones cannot be sung, and so on.

人的发声范围通常在100Hz~10KHz,可以将100Hz~10KHz的范围划分为低频、中频以及高频三个范围,举例来说,假设用户的声音存在低音不足的缺陷,预先保存的频响是针对低音频段进行处理后的频响,则电子设备可以根据预先保存的频响对第一声音信号中存在声音缺陷的低音频段进行处理,具体的,可以将100Hz~1KHz的频段刻意抬高,而将1KHz~10KHz的频段刻意衰减,以将第一声音信号中的低音频段凸显出来,以达到超重低音的效果。The range of human vocalization is usually 100Hz to 10KHz, and the range of 100Hz to 10KHz can be divided into three ranges: low frequency, medium frequency and high frequency. After the frequency response of the bass frequency band is processed, the electronic device can process the bass frequency band with sound defects in the first sound signal according to the pre-stored frequency response. The frequency band from 1KHz to 10KHz is deliberately attenuated to highlight the bass frequency band in the first sound signal to achieve the effect of super bass.

又举例来说,假设用户的声音存在中频声音缺陷,预先保存的频响是针对中音频段进行处理后的频响,则电子设备可以根据预先保存的频响对第一声音信号中存在声音缺陷的中音频段进行处理,具体的,可以将2KHz~4KHz的频段刻意抬高,而将100Hz~2KHz的频段以及4KHz~10KHz的频段刻意降低,以达到声音清澈的效果,而不会让人觉得沉闷。For another example, assuming that the user's voice has an intermediate frequency sound defect, and the pre-stored frequency response is the frequency response processed for the mid-frequency range, the electronic device can detect the existence of a sound defect in the first sound signal according to the pre-stored frequency response. Specifically, the frequency band of 2KHz to 4KHz can be deliberately raised, and the frequency band of 100Hz to 2KHz and the frequency band of 4KHz to 10KHz can be deliberately lowered to achieve the effect of clear sound without making people feel dull.

又举例来说,假设用户的声音存在高频声音缺陷,预先保存的频响是针对高音频段进行处理后的频响,则电子设备可以根据预先保存的频响对第一声音信号中存在声音缺陷的高音频段进行处理,具体的,可以将4KHz~10KHz的频段刻意抬高,而将其他频段刻意降低,以达到高音频段的声音明亮高亢的效果。As another example, assuming that the user's voice has a high-frequency sound defect, and the pre-saved frequency response is the frequency response processed for the high-frequency range, the electronic device can detect the sound defect in the first sound signal according to the pre-saved frequency response. Specifically, the frequency band from 4KHz to 10KHz can be deliberately raised, and other frequency bands can be deliberately lowered to achieve a bright and high-pitched sound in the high-frequency range.

在图7所描述的声音处理装置11中,在接收到用户输入的第一声音信号之后,可以根据预先保存的频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理,之后,在将处理后的第一声音信号发送出去,从而能够对存在声音缺陷的频段进行处理,提高声音的收听效果。In thesound processing device 11 described in FIG. 7 , after receiving the first sound signal input by the user, the frequency range with sound defects in the frequency response of the first sound signal may be processed according to the pre-stored frequency response , and after that, the processed first sound signal is sent out, so that the frequency band with sound defects can be processed, and the sound listening effect can be improved.

请参见图8所,图8是本发明声音处理装置的第二较佳实施例的功能模块图。其中,图8描述的声音处理装置用于执行图5或图6所描述的声音处理方法中的部分或全部步骤。其中,图8所示的声音处理装置是在图7所示的声音处理装置的基础上进一步优化得到的,与图7所示的声音处理装置相比,图8所示的声音处理装置还包括采集单元104、提取单元105、第二处理单元106以及保存单元107,可选的,图8所示的声音处理装置还包括发送单元108以及建立单元109。其中,本发明所称的单元是指一种能够被处理器13所执行并且能够完成固定功能的一系列计算机程序段,其存储在存储器12中。在本实施例中,关于各单元的功能将在后续的实施例中详述。Please refer to FIG. 8 , which is a functional block diagram of a second preferred embodiment of the sound processing apparatus of the present invention. Wherein, the sound processing apparatus described in FIG. 8 is used to execute some or all of the steps in the sound processing method described in FIG. 5 or FIG. 6 . The sound processing apparatus shown in FIG. 8 is further optimized on the basis of the sound processing apparatus shown in FIG. 7 . Compared with the sound processing apparatus shown in FIG. 7 , the sound processing apparatus shown in FIG. 8 further includes: Thecollection unit 104 , theextraction unit 105 , thesecond processing unit 106 , and thestorage unit 107 , optionally, the sound processing apparatus shown in FIG. 8 further includes a sendingunit 108 and a establishingunit 109 . Wherein, the unit referred to in the present invention refers to a series of computer program segments that can be executed by theprocessor 13 and can perform fixed functions, and are stored in thememory 12 . In this embodiment, the functions of each unit will be described in detail in subsequent embodiments.

采集单元104,用于在所述接收单元101接收用户输入的第一声音信号之前,采集所述用户的第二声音信号。The collectingunit 104 is configured to collect the second sound signal of the user before the receivingunit 101 receives the first sound signal input by the user.

本发明实施例中,采集单元104可以在多种应用场景中采集用户的第二声音信号,比如:当电子设备上的社交聊天应用被开启后,采集单元104可以采集用户在社交聊天应用上输入的声音,又比如:在用户与联系人进行通讯的场景下,电子设备上的录音装置(如麦克风)被开启后,采集单元104可以采集用户通过录音装置输入的声音,又比如:当用户在K歌时,采集单元104可以通过K歌装置采集用户输入的声音。In this embodiment of the present invention, thecollection unit 104 may collect the user's second voice signal in various application scenarios. For example, when the social chat application on the electronic device is enabled, thecollection unit 104 may collect the user's input on the social chat application. For another example: in the scenario where the user communicates with the contact, after the recording device (such as a microphone) on the electronic device is turned on, thecollection unit 104 can collect the sound input by the user through the recording device. When singing karaoke, thecollection unit 104 may collect the sound input by the user through the karaoke device.

提取单元105,用于提取所述第二声音信号的频响。Theextraction unit 105 is configured to extract the frequency response of the second sound signal.

第二处理单元106,用于对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理。Thesecond processing unit 106 is configured to process at least one frequency band with sound defects in the frequency response of the second sound signal.

保存单元107,用于将处理后的频响进行保存。The savingunit 107 is used for saving the processed frequency response.

可选的,所述接收单元101,还用于在所述提取单元105提取所述第二声音信号的频响之后,接收针对预设的多个频响处理选项中的目标频响处理选项输入的选择指令;Optionally, the receivingunit 101 is further configured to, after the extractingunit 105 extracts the frequency response of the second sound signal, receive an input for the target frequency response processing option among the preset multiple frequency response processing options. the selection instruction;

本发明实施例中,可以预先设置多个频响处理选项,比如:超重低音选项、清澈人声选项、明亮高亢选项、自定义选项等。其中,每个不同的频响处理选项可以有不同的要求,比如:超重低音选项只对低音频段进行处理,清澈人声选项只对中音频段进行处理,明亮高亢选项只对高音频段进行处理,自定义选项则可以根据用户自己的要求对一个频段或多个频段进行处理。In this embodiment of the present invention, a plurality of frequency response processing options may be preset, such as: a super bass option, a clear vocal option, a bright and high-pitched option, a custom option, and the like. Among them, each different frequency response processing options can have different requirements, for example: the super bass option only processes the low frequency band, the clear vocal option only processes the mid-frequency band, and the bright and high-pitched option only processes the high-frequency band. The custom option can process one frequency band or multiple frequency bands according to the user's own requirements.

所述第二处理单元106对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理的方式具体为:The manner in which thesecond processing unit 106 processes at least one frequency band with sound defects in the frequency response of the second sound signal is specifically:

根据所述目标频响处理选项的要求,对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理。According to the requirements of the target frequency response processing option, at least one frequency band in the frequency response of the second sound signal with sound defects is processed.

本发明实施例中,用户的声音存在缺陷的频段可能有一个,也可能有多个,比如:用户只存在高音频段的缺陷,又比如:用户存在高音频段以及低音频段的缺陷等。In this embodiment of the present invention, there may be one or more frequency bands in which the user's voice is defective. For example, the user only has defects in the high-frequency band, and for example, the user has defects in the high-frequency band and the low-frequency band.

接收单元101在接收到针对预设的多个频响处理选项中的目标频响处理选项输入的选择指令之后,第二处理单元106可以响应该选择指令,根据目标频响处理选项的要求,对第二声音信号的频响中存在声音缺陷的至少一个频段进行处理。After thereceiving unit 101 receives the selection instruction input for the target frequency response processing option among the preset multiple frequency response processing options, thesecond processing unit 106 may respond to the selection instruction, according to the requirements of the target frequency response processing option, to In the frequency response of the second sound signal, at least one frequency band with sound defects is processed.

可选的,在所述第一声音信号是在所述用户与所述电子设备中的通讯录上的目标联系人进行通讯时接收到的情况下,所述获取单元102获取预先保存的频响的方式具体为:Optionally, when the first sound signal is received when the user communicates with a target contact in the address book in the electronic device, the obtainingunit 102 obtains a pre-saved frequency response. The method is specifically:

查询预先保存的联系人与频响的对应关系;Query the correspondence between pre-saved contacts and frequency responses;

从所述对应关系中获得所述目标联系人对应的目标频响;obtaining the target frequency response corresponding to the target contact from the corresponding relationship;

所述第一处理单元103根据所述预先保存的频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理的方式具体为:The manner in which thefirst processing unit 103 processes the frequency band with sound defects in the frequency response of the first sound signal according to the pre-stored frequency response is specifically:

根据所述目标频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理。According to the target frequency response, processing is performed on a frequency band with sound defects in the frequency response of the first sound signal.

可选的,所述处理后的频响有多个,所述获取单元102,还用于在所述第二处理单元106对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理之后,获取所述通讯录上的多个联系人。Optionally, there are multiple frequency responses after processing, and the obtainingunit 102 is further configured to have at least one frequency band with sound defects in the frequency response of thesecond processing unit 106 to the second sound signal After processing, multiple contacts in the address book are acquired.

本发明实施例中,该通讯录可以是电子设备上用于记录多个联系人的联系方式(如电话号码)的列表,也可以是电子设备上的社交聊天应用上设置的群组里的多个好友列表。In this embodiment of the present invention, the address book may be a list on the electronic device for recording contact information (such as phone numbers) of multiple contacts, or may be a list of multiple contacts in a group set on a social chat application on the electronic device friends list.

所述声音处理装置11还包括:Thesound processing device 11 also includes:

发送单元108,用于将处理后的多个频响发送给每个所述联系人。The sendingunit 108 is configured to send the processed multiple frequency responses to each of the contacts.

本发明实施例中,电子设备的通讯录上存储有用户的多个联系人,第二处理单元106对第二声音信号的频响中存在声音缺陷的至少一个频段进行处理,获得处理后的多个频响之后,发送单元108可以将处理后的多个频响发送给每个联系人,以便每个联系人根据自己的要求从处理后的多个频响中选择该联系人喜欢的频响。In this embodiment of the present invention, multiple contacts of the user are stored in the address book of the electronic device, and thesecond processing unit 106 processes at least one frequency band with sound defects in the frequency response of the second sound signal, and obtains the processed multiple contacts. After the number of frequency responses, the sendingunit 108 may send the processed multiple frequency responses to each contact, so that each contact can select the frequency response that the contact likes from the processed multiple frequency responses according to its own requirements .

所述接收单元101,还用于接收每个所述联系人从所述处理后的多个频响中选择的频响;The receivingunit 101 is further configured to receive a frequency response selected by each contact from the processed multiple frequency responses;

建立单元109,用于针对每个所述联系人,建立所述联系人与所述联系人选择的频响之间的对应关系;establishingunit 109, configured to, for each of the contacts, establish a correspondence between the contact and the frequency response selected by the contact;

所述保存单元107将处理后的频响进行保存的方式具体为:Thestorage unit 107 specifically stores the processed frequency response as follows:

将所述处理后的多个频响以及所述对应关系进行保存。The processed frequency responses and the corresponding relationship are saved.

本发明实施例中,保存单元107上存储的是频响与联系人之间一一对应的对应关系,即每个联系人都有对应的频响。不同联系人对应的频响可能相同,也可能不相同。In this embodiment of the present invention, thestorage unit 107 stores a one-to-one correspondence between frequency responses and contacts, that is, each contact has a corresponding frequency response. The frequency response corresponding to different contacts may or may not be the same.

在图8所描述的声音处理装置11中,电子设备在接收到用户输入的第一声音信号之后,可以根据预先保存的频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理,之后,在将处理后的第一声音信号发送出去,从而能够对存在声音缺陷的频段进行处理,提高声音的收听效果。In thesound processing apparatus 11 described in FIG. 8 , after receiving the first sound signal input by the user, the electronic device may, according to the pre-stored frequency response, determine the frequency range of the sound defect in the frequency response of the first sound signal. After processing, the processed first sound signal is sent out, so that the frequency band with sound defects can be processed, and the sound listening effect can be improved.

上述以软件功能模块的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。The above-mentioned integrated units implemented in the form of software functional modules may be stored in a computer-readable storage medium. The above-mentioned software function modules are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute the methods described in the various embodiments of the present invention. some steps.

如图9所示,图9是本发明实现声音处理方法的较佳实施例的电子设备的结构示意图。所述电子设备1包括存储器12、处理器13以及输入输出装置14。其中,图9所示的电子设备可以用于执行图1、图5以及图6所描述的声音处理方法的部分或全部步骤,具体可以参见图1、图5以及图6所描述的相关步骤,在此不再赘述。需要说明的是,图9所示的电子设备还可以包括比图示更多或更少的部件。As shown in FIG. 9 , FIG. 9 is a schematic structural diagram of an electronic device implementing a preferred embodiment of the sound processing method of the present invention. Theelectronic device 1 includes amemory 12 , aprocessor 13 and an input andoutput device 14 . The electronic device shown in FIG. 9 can be used to execute some or all of the steps of the sound processing method described in FIG. 1 , FIG. 5 and FIG. 6 . For details, refer to the relevant steps described in FIG. 1 , FIG. It is not repeated here. It should be noted that the electronic device shown in FIG. 9 may also include more or less components than those shown in the drawings.

所述电子设备1还包括但不限于任何一种可与用户通过键盘、鼠标、遥控器、触摸板或声控设备等方式进行人机交互的电子产品,例如,个人计算机、平板电脑、智能手机、个人数字助理(Personal Digital Assistant,PDA)、游戏机、交互式网络电视(InternetProtocol Television,IPTV)、智能式穿戴式设备等。所述电子设备1所处的网络包括但不限于互联网、广域网、城域网、局域网、虚拟专用网络(Virtual Private Network,VPN)等。Theelectronic device 1 also includes, but is not limited to, any electronic product that can interact with the user through a keyboard, a mouse, a remote control, a touchpad or a voice-activated device, for example, a personal computer, a tablet computer, a smart phone, Personal Digital Assistant (Personal Digital Assistant, PDA), game console, Internet Protocol Television (Internet Protocol Television, IPTV), smart wearable devices, etc. The network where theelectronic device 1 is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), and the like.

所述存储器12用于存储一种声音处理方法的程序和各种数据,并在所述电子设备1运行过程中实现高速、自动地完成程序或数据的存取。所述存储器12可以是电子设备1的外部存储器和/或内部存储器。进一步地,所述存储器12可以是集成电路中没有实物形式的具有存储功能的电路,如RAM(Random-Access Memory,随机存取存储器)、FIFO(First InFirst Out,)等。或者,所述存储器12也可以是具有实物形式的存储器,如内存条、TF卡(Trans-flash Card)等等。Thememory 12 is used for storing a program of a sound processing method and various data, and realizes high-speed and automatic access to programs or data during the operation of theelectronic device 1 . Thememory 12 may be an external memory and/or an internal memory of theelectronic device 1 . Further, thememory 12 may be a circuit with a storage function that has no physical form in an integrated circuit, such as RAM (Random-Access Memory, random access memory), FIFO (First InFirst Out,) and the like. Alternatively, thestorage 12 may also be a storage in physical form, such as a memory stick, a TF card (Trans-flash Card), and the like.

所述处理器13又称中央处理器(CPU,Central Processing Unit),是一块超大规模的集成电路,是电子设备1的运算核心(Core)和控制核心(Control Unit)。所述处理器13可执行所述电子设备1的操作系统以及安装的各类应用程序、程序代码等,例如声音处理装置11。Theprocessor 13 is also called a central processing unit (CPU, Central Processing Unit), which is an ultra-large-scale integrated circuit, and is a computing core (Core) and a control core (Control Unit) of theelectronic device 1 . Theprocessor 13 can execute the operating system of theelectronic device 1 and various installed applications, program codes, etc., such as thesound processing device 11 .

所述输入输出装置14,主要为电子设备1与用户之间的输入输出接口,比如触摸屏,可以接收用户的触摸指令,也可以将可视内容输出显示给用户,可视内容可以包括图形、文本、图标、视频等,又比如麦克风/扬声器,可以接收用户输入的声音,也可以播放用户输入的声音。The input andoutput device 14 is mainly an input and output interface between theelectronic device 1 and the user, such as a touch screen, which can receive the user's touch command, and can also output and display visual content to the user, and the visual content can include graphics and text. , icons, videos, etc., such as the microphone/speaker, can receive the sound input by the user, and can also play the sound input by the user.

结合图1,所述电子设备1中的所述存储器12存储多个指令以实现一种声音处理方法,所述处理器13可执行所述多个指令从而实现:1, thememory 12 in theelectronic device 1 stores multiple instructions to implement a sound processing method, and theprocessor 13 can execute the multiple instructions to implement:

通过所述输入输出装置14接收用户输入的第一声音信号;Receive the first sound signal input by the user through the input andoutput device 14;

获取预先保存的频响;Get the pre-saved frequency response;

根据所述预先保存的频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理。According to the pre-stored frequency response, the frequency range of the frequency response of the first sound signal with sound defects is processed.

根据本发明优选实施例,所述处理器13通过所述输入输出装置14接收用户输入的第一声音信号之前,所述处理器13可执行所述多个指令从而实现:According to a preferred embodiment of the present invention, before theprocessor 13 receives the first sound signal input by the user through the input andoutput device 14, theprocessor 13 can execute the plurality of instructions to achieve:

采集所述用户的第二声音信号;collecting the second voice signal of the user;

提取所述第二声音信号的频响;extracting the frequency response of the second sound signal;

对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理;processing at least one frequency band with sound defects in the frequency response of the second sound signal;

将处理后的频响进行保存。Save the processed frequency response.

根据本发明优选实施例,所述处理器13提取所述第二声音信号的频响之后,所述处理器13可执行所述多个指令从而实现:According to a preferred embodiment of the present invention, after theprocessor 13 extracts the frequency response of the second sound signal, theprocessor 13 can execute the plurality of instructions to achieve:

通过所述输入输出装置14接收针对预设的多个频响处理选项中的目标频响处理选项输入的选择指令;receiving, through the input andoutput device 14, a selection instruction input for a target frequency response processing option among the preset multiple frequency response processing options;

所述对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理包括:The processing of at least one frequency band with sound defects in the frequency response of the second sound signal includes:

根据所述目标频响处理选项的要求,对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理。According to the requirements of the target frequency response processing option, at least one frequency band in the frequency response of the second sound signal with sound defects is processed.

根据本发明优选实施例,在所述第一声音信号是在所述用户与所述电子设备中的通讯录上的目标联系人进行通讯时接收到的情况下,所述处理器13获取预先保存的频响包括:According to a preferred embodiment of the present invention, when the first sound signal is received when the user communicates with a target contact in the address book in the electronic device, theprocessor 13 obtains a pre-stored The frequency response includes:

查询预先保存的联系人与频响的对应关系;Query the correspondence between pre-saved contacts and frequency responses;

从所述对应关系中获得所述目标联系人对应的目标频响;obtaining the target frequency response corresponding to the target contact from the corresponding relationship;

所述根据所述预先保存的频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理包括:According to the pre-stored frequency response, processing the frequency band with sound defects in the frequency response of the first sound signal includes:

根据所述目标频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理。According to the target frequency response, processing is performed on a frequency band with sound defects in the frequency response of the first sound signal.

根据本发明优选实施例,所述处理后的频响有多个,所述对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理之后,所述处理器13可执行所述多个指令从而实现:According to a preferred embodiment of the present invention, there are multiple frequency responses after processing, and after processing at least one frequency band with sound defects in the frequency response of the second sound signal, theprocessor 13 may execute all the frequency responses. Describe multiple instructions to achieve:

获取所述通讯录上的多个联系人;obtaining multiple contacts in the address book;

通过所述输入输出装置14将处理后的多个频响发送给每个所述联系人;sending the processed multiple frequency responses to each of the contacts through the input andoutput device 14;

通过所述输入输出装置14接收每个所述联系人从所述处理后的多个频响中选择的频响;receiving, through the input andoutput device 14, a frequency response selected by each of the contacts from the processed plurality of frequency responses;

针对每个所述联系人,建立所述联系人与所述联系人选择的频响之间的对应关系;For each of the contacts, establishing a correspondence between the contact and the frequency response selected by the contact;

所述将处理后的频响进行保存包括:The storing of the processed frequency response includes:

将所述处理后的多个频响以及所述对应关系进行保存。The processed frequency responses and the corresponding relationship are saved.

具体地,所述处理器13对上述指令的具体实现方法可参考图1、图5以及图6对应实施例中相关步骤的描述,在此不赘述。Specifically, for the specific implementation method of the above-mentioned instruction by theprocessor 13, reference may be made to the description of the relevant steps in the corresponding embodiments of FIG. 1 , FIG. 5 and FIG. 6 , and details are not repeated here.

在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided by the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there may be other division manners in actual implementation.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and components shown as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of hardware plus software function modules.

对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第二等词语用来表示名称,而并不表示任何特定的顺序。It will be apparent to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, but that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments are to be regarded in all respects as illustrative and not restrictive, and the scope of the invention is to be defined by the appended claims rather than the foregoing description, which are therefore intended to fall within the scope of the claims. All changes within the meaning and range of the equivalents of , are included in the present invention. Any reference signs in the claims shall not be construed as limiting the involved claim. Furthermore, it is clear that the word "comprising" does not exclude other units or steps and the singular does not exclude the plural. Several units or means recited in the system claims can also be realized by one unit or means by means of software or hardware. Second-class terms are used to denote names and do not denote any particular order.

最后应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be Modifications or equivalent substitutions can be made without departing from the spirit and scope of the technical solutions of the present invention.

Claims (6)

Translated fromChinese
1.一种声音处理方法,应用于电子设备中,其特征在于,所述方法包括:1. a sound processing method, applied in electronic equipment, is characterized in that, described method comprises:接收用户输入的第一声音信号,所述第一声音信号是在所述用户与所述电子设备中的通讯录上的目标联系人进行通讯时接收到的;receiving a first sound signal input by a user, where the first sound signal is received when the user communicates with a target contact in an address book in the electronic device;查询预先保存的联系人与频响的对应关系,从所述对应关系中获得所述目标联系人对应的目标频响,其中,所述联系人与频响的对应关系是通过如下方法建立的:采集所述用户的第二声音信号;提取所述第二声音信号的频响;对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理;获取所述通讯录上的多个联系人;将处理后的多个频响发送给每个所述联系人;接收每个所述联系人从所述处理后的多个频响中选择的频响;针对每个所述联系人,建立所述联系人与所述联系人选择的频响之间的对应关系;将所述处理后的多个频响以及所述对应关系进行保存;Query the correspondence between the pre-saved contact and the frequency response, and obtain the target frequency response corresponding to the target contact from the correspondence, wherein the correspondence between the contact and the frequency response is established by the following method: Collect the second sound signal of the user; extract the frequency response of the second sound signal; process at least one frequency band with sound defects in the frequency response of the second sound signal; sending a processed plurality of frequency responses to each of the contacts; receiving a frequency response selected by each of the contacts from the processed plurality of frequency responses; for each of the contacts person, establish a corresponding relationship between the contact and the frequency response selected by the contact; save the processed multiple frequency responses and the corresponding relationship;根据所述目标频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理。According to the target frequency response, processing is performed on a frequency band with sound defects in the frequency response of the first sound signal.2.根据权利要求1所述的声音处理方法,其特征在于,所述提取所述第二声音信号的频响之后,所述方法还包括:2 . The sound processing method according to claim 1 , wherein after extracting the frequency response of the second sound signal, the method further comprises: 2 .接收针对预设的多个频响处理选项中的目标频响处理选项输入的选择指令;receiving a selection instruction input for a target frequency response processing option among the preset multiple frequency response processing options;所述对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理包括:根据所述目标频响处理选项的要求,对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理。The processing of at least one frequency band with sound defects in the frequency response of the second sound signal includes: according to the requirements of the target frequency response processing option, processing the frequency response of the second sound signal with sound defects. At least one frequency band is processed.3.一种声音处理装置,运行于电子设备中,其特征在于,所述声音处理装置包括:3. A sound processing device, running in electronic equipment, wherein the sound processing device comprises:接收单元,用于接收用户输入的第一声音信号,所述第一声音信号是在所述用户与所述电子设备中的通讯录上的目标联系人进行通讯时接收到的;a receiving unit, configured to receive a first sound signal input by a user, where the first sound signal is received when the user communicates with a target contact in the address book in the electronic device;获取单元,用于查询预先保存的联系人与频响的对应关系,从所述对应关系中获得所述目标联系人对应的目标频响,其中,所述联系人与频响的对应关系是通过如下方法建立的:采集单元,用于采集所述用户的第二声音信号;提取单元,用于提取所述第二声音信号的频响;第二处理单元,用于对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理;所述获取单元,还用于获取所述通讯录上的多个联系人;发送单元,用于将处理后的多个频响发送给每个所述联系人;所述接收单元,还用于接收每个所述联系人从所述处理后的多个频响中选择的频响;建立单元,用于针对每个所述联系人,建立所述联系人与所述联系人选择的频响之间的对应关系;保存单元,用于将所述处理后的多个频响以及所述对应关系进行保存;The acquiring unit is used to query the correspondence between the pre-saved contact and the frequency response, and obtain the target frequency response corresponding to the target contact from the correspondence, wherein the correspondence between the contact and the frequency response is obtained through The following method is established: a collection unit for collecting the second sound signal of the user; an extraction unit for extracting the frequency response of the second sound signal; a second processing unit for analyzing the second sound signal At least one frequency band with sound defects in the frequency response of the device is processed; the acquisition unit is also used to acquire multiple contacts in the address book; the sending unit is used to send the processed multiple frequency responses to each the contacts; the receiving unit is further configured to receive a frequency response selected from the processed multiple frequency responses for each of the contacts; the establishing unit is configured to, for each of the contacts, establishing a correspondence between the contact and the frequency response selected by the contact; a saving unit for saving the processed multiple frequency responses and the corresponding relationship;第一处理单元,用于根据所述目标频响,对所述第一声音信号的频响中存在声音缺陷的频段进行处理。A first processing unit, configured to process a frequency band with sound defects in the frequency response of the first sound signal according to the target frequency response.4.根据权利要求3所述的声音处理装置,其特征在于,4. The sound processing device according to claim 3, characterized in that:所述接收单元,还用于在所述提取单元提取所述第二声音信号的频响之后,接收针对预设的多个频响处理选项中的目标频响处理选项输入的选择指令;The receiving unit is further configured to, after the extracting unit extracts the frequency response of the second sound signal, receive a selection instruction input for a target frequency response processing option in a plurality of preset frequency response processing options;所述第二处理单元对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理的方式具体为:根据所述目标频响处理选项的要求,对所述第二声音信号的频响中存在声音缺陷的至少一个频段进行处理。The manner in which the second processing unit processes at least one frequency band with sound defects in the frequency response of the second sound signal is specifically: according to the requirements of the target frequency response processing option, the frequency response of the second sound signal is processed. At least one frequency band with sound defects in the frequency response is processed.5.一种电子设备,其特征在于,所述电子设备包括处理器、存储器及输入输出设备,所述存储器用于存储至少一个指令,所述处理器用于执行所述至少一个指令以实现如权利要求1或2所述的声音处理方法。5. An electronic device, characterized in that the electronic device comprises a processor, a memory and an input/output device, the memory is used to store at least one instruction, and the processor is used to execute the at least one instruction to implement the claim The sound processing method described in claim 1 or 2.6.一种非易失性存储介质,其特征在于,所述非易失性存储介质存储有至少一个指令,所述至少一个指令被处理器执行时实现如权利要求1或2所述的声音处理方法。6. A non-volatile storage medium, characterized in that the non-volatile storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, implements the sound according to claim 1 or 2 Approach.
CN201710375841.4A2017-05-252017-05-25Sound processing method and device and electronic equipmentActiveCN107154263B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710375841.4ACN107154263B (en)2017-05-252017-05-25Sound processing method and device and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710375841.4ACN107154263B (en)2017-05-252017-05-25Sound processing method and device and electronic equipment

Publications (2)

Publication NumberPublication Date
CN107154263A CN107154263A (en)2017-09-12
CN107154263Btrue CN107154263B (en)2020-10-16

Family

ID=59794436

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710375841.4AActiveCN107154263B (en)2017-05-252017-05-25Sound processing method and device and electronic equipment

Country Status (1)

CountryLink
CN (1)CN107154263B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109547848B (en)*2018-11-232021-02-12北京达佳互联信息技术有限公司Loudness adjustment method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103514884A (en)*2012-06-262014-01-15华为终端有限公司Communication voice denoising method and terminal
CN104021148A (en)*2014-05-162014-09-03小米科技有限责任公司Method and device for adjusting sound effect

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US5937377A (en)*1997-02-191999-08-10Sony CorporationMethod and apparatus for utilizing noise reducer to implement voice gain control and equalization
CN101026650A (en)*2006-02-232007-08-29北京金色信安科技发展有限公司Communication service access system and method
CN101399872B (en)*2008-11-202012-05-09侯万春Mobile telephone terminal having telephone book automatically updating function and implementation method thereof
CN102568472A (en)*2010-12-152012-07-11盛乐信息技术(上海)有限公司Voice synthesis system with speaker selection and realization method thereof
US9055367B2 (en)*2011-04-082015-06-09Qualcomm IncorporatedIntegrated psychoacoustic bass enhancement (PBE) for improved audio
CN102200886A (en)*2011-04-202011-09-28铁道部运输局Multifunctional passenger service system terminal controller and controlling method
CN102413218B (en)*2011-08-032015-01-21宇龙计算机通信科技(深圳)有限公司Method, device and communication terminal for automatically adjusting speaking tone
CN104038610A (en)*2013-03-082014-09-10中兴通讯股份有限公司Adjusting method and apparatus of conversation voice
CN104376846A (en)*2013-08-162015-02-25联想(北京)有限公司Voice adjusting method and device and electronic devices
CN104464716B (en)*2014-11-202018-01-12北京云知声信息技术有限公司A kind of voice broadcasting system and method
CN104581539B (en)*2014-12-312018-05-15宇龙计算机通信科技(深圳)有限公司The control method and its mobile terminal that audio frequency of mobile terminal plays
WO2017029428A1 (en)*2015-08-172017-02-23Audiobalance Excellence OyMethod and apparatus for improving learning
CN105185372B (en)*2015-10-202017-03-22百度在线网络技术(北京)有限公司Training method for multiple personalized acoustic models, and voice synthesis method and voice synthesis device
US9830903B2 (en)*2015-11-102017-11-28Paul Wendell MasonMethod and apparatus for using a vocal sample to customize text to speech applications
CN105744084B (en)*2016-04-292019-05-07青岛海信移动通信技术股份有限公司Mobile terminal and the method for promoting mobile terminal call sound quality
CN105979084A (en)*2016-04-292016-09-28维沃移动通信有限公司Voice communication processing method and communication terminal
CN106024007B (en)*2016-06-212019-10-15维沃移动通信有限公司 A sound processing method and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103514884A (en)*2012-06-262014-01-15华为终端有限公司Communication voice denoising method and terminal
CN104021148A (en)*2014-05-162014-09-03小米科技有限责任公司Method and device for adjusting sound effect

Also Published As

Publication numberPublication date
CN107154263A (en)2017-09-12

Similar Documents

PublicationPublication DateTitle
CN104394491B (en)A kind of intelligent earphone, Cloud Server and volume adjusting method and system
CN104954555B (en)A kind of volume adjusting method and system
CN103761063B (en)A kind of method and apparatus for the output volume controlling audio in playback equipment
CN103714824B (en)A kind of audio-frequency processing method, device and terminal device
US20190018644A1 (en)Soundsharing capabilities application
US11392344B2 (en)Methods and electronic devices for dynamic control of playlists
WO2020048222A1 (en)Sound effect adjustment method and apparatus, electronic device and storage medium
US10275209B2 (en)Sharing of custom audio processing parameters
CN109982231B (en)Information processing method, device and storage medium
CN104994401A (en) Barrage processing method, device and system
EP3846020A1 (en)Sound effect adjusting method and apparatus, electronic device, and storage medium
US10121491B2 (en)Intelligent volume control interface
US20210173615A1 (en)Methods and devices for adjustment of the energy level of a played audio stream
JP6449991B2 (en) Media file processing method and terminal
CN107682752A (en)Method, device and system for displaying video picture, terminal equipment and storage medium
CN105390144A (en)Audio processing method and audio processing device
CN106601268B (en)Multimedia data processing method and device
US9053710B1 (en)Audio content presentation using a presentation profile in a content header
WO2019033943A1 (en)Volume adjusting method and device, mobile terminal and storage medium
WO2019033441A1 (en)Sound volume adjustment method and apparatus, mobile terminal, and storage medium
US10853025B2 (en)Sharing of custom audio processing parameters
CN113362839B (en)Audio data processing method, device, computer equipment and storage medium
WO2019033940A1 (en)Volume adjustment method and apparatus, terminal device, and storage medium
WO2020048217A1 (en)Sound effect adjustment method, apparatus, electronic device, and storage medium
WO2019033941A1 (en)Volume adjustment method and apparatus, terminal device, and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20250409

Address after:101, Floors 1-3, Building 30, Tiantong Dongyuan District 3, Dongxiaokou Town, Changping District, Beijing 102218

Patentee after:Beijing Fangshi Technology Co.,Ltd.

Country or region after:China

Address before:518057 No. 2 Mengxi Road, North District, Nanshan Science Park, Shenzhen City, Guangdong Province

Patentee before:YULONG COMPUTER TELECOMMUNICATION SCIENTIFIC (SHENZHEN) Co.,Ltd.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp