WO2017206450A1 - Sound processing method and device - Google Patents

Sound processing method and device Download PDF

Info

Publication number
WO2017206450A1
WO2017206450A1 PCT/CN2016/106938 CN2016106938W WO2017206450A1 WO 2017206450 A1 WO2017206450 A1 WO 2017206450A1 CN 2016106938 W CN2016106938 W CN 2016106938W WO 2017206450 A1 WO2017206450 A1 WO 2017206450A1
Authority
WO
WIPO (PCT)
Prior art keywords
pressure
loudness
value
frequency
correspondence
Prior art date
Application number
PCT/CN2016/106938
Other languages
French (fr)
Chinese (zh)
Inventor
曹阳
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017206450A1 publication Critical patent/WO2017206450A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Abstract

A sound processing method and device. The method comprises the following steps: detecting a pressure on a pressed terminal (S11); matching, according to correspondence between the preconfigured pressure and a tone parameter, the tone parameter corresponding to the detected pressure (S12); and adjusting a tone parameter of a playing audio source to be the matching tone parameter (S13). In the sound processing method, the tone parameter of the playing audio source is adjusted by the detected pressure applied on the terminal, thereby modifying a tone of the playing audio source. A user only needs to press the terminal and change the pressing force to adjust the tone of the playing audio source to various types of tones, increasing real-timeness and simplicity of tone adjustment, facilitating simplicity and user-friendliness of human-machine interaction, significantly enhancing the entertaining value of the terminal, and enhancing user experience.

Description

声音处理方法和装置Sound processing method and device 技术领域Technical field
本发明涉及声音处理技术领域,尤其是涉及一种声音处理方法和装置。The present invention relates to the field of sound processing technologies, and in particular, to a sound processing method and apparatus.
背景技术Background technique
随着终端的功能变得更多样化,终端可以支持诸如拍摄图像或视频、播放音乐或视频文件、玩游戏、接收广播信号等功能。通过综合集中实现这样的功能,可以按多媒体播放器或装置的形式来实现移动终端。As the functions of the terminal become more diverse, the terminal can support functions such as taking an image or video, playing music or video files, playing a game, receiving a broadcast signal, and the like. By integrating such functions in a centralized manner, the mobile terminal can be implemented in the form of a multimedia player or device.
现有的移动终端,在播放声源时,可以调整声音的大小,可以调整声音的音调,甚至还可以调整声音的音色。对于音色的调节,现有技术中主要通过均衡器进行调节,用户需要调出均衡器界面,然后对均衡器的相关参数进行调节,调节过程的实时性和便捷性不足,用户体验不佳。In the existing mobile terminal, when playing a sound source, the sound size can be adjusted, the pitch of the sound can be adjusted, and even the sound of the sound can be adjusted. For the adjustment of the tone, the adjustment is mainly performed by the equalizer in the prior art, the user needs to call up the equalizer interface, and then adjust the relevant parameters of the equalizer, the real-time and convenience of the adjustment process is insufficient, and the user experience is not good.
发明内容Summary of the invention
本发明实施例的主要目的在于提供一种声音处理方法和装置,旨在提高音色调节的实时性和便捷性。The main object of the embodiments of the present invention is to provide a sound processing method and apparatus, aiming at improving the real-time and convenience of tone color adjustment.
为达以上目的,一方面提出一种声音处理方法,包括步骤:To achieve the above objectives, on the one hand, a sound processing method is proposed, including steps:
检测终端被按压的压力值;Detecting a pressure value at which the terminal is pressed;
根据预设的压力与音色参数的对应关系,匹配出与检测到的压力值相对应的音色参数值;According to the correspondence between the preset pressure and the timbre parameter, the timbre parameter value corresponding to the detected pressure value is matched;
将播放声源的音色参数调整为匹配出的音色参数值。Adjust the tone parameters of the playback source to match the value of the tone parameters.
进一步地,所述音色参数包括频率或/和响度,所述根据压力与音色参数的对应关系,匹配出与检测到的压力值相对应的音色参数值,包括:Further, the timbre parameter includes a frequency or/and a loudness, and the timbre parameter value corresponding to the detected pressure value is matched according to the correspondence between the pressure and the timbre parameter, including:
根据压力与频率的对应关系或/和压力与响度的对应关系,匹配出与检测到的压力值相对应的频率值或/和响度值。The frequency value or/and the loudness value corresponding to the detected pressure value are matched according to the correspondence between the pressure and the frequency or/and the correspondence between the pressure and the loudness.
进一步地,所述音色参数包括频率和响度,所述根据压力与音色参数的对应关系,匹配出与检测到的压力值相对应的音色参数值,包括:Further, the timbre parameter includes a frequency and a loudness, and the timbre parameter value corresponding to the detected pressure value is matched according to the correspondence between the pressure and the timbre parameter, including:
判断被按压的区域所属分区;Determining the partition to which the pressed area belongs;
当被按压的区域属于频率分区时,根据压力与频率的对应关系,匹配出与检测到的压力值相对应的频率值;When the pressed area belongs to the frequency partition, according to the correspondence between the pressure and the frequency, the frequency value corresponding to the detected pressure value is matched;
当被按压的区域属于响度分区时,根据压力与响度的对应关系,匹配出与检测到的压力值相对应的响度值。When the pressed area belongs to the loudness section, the loudness value corresponding to the detected pressure value is matched according to the correspondence between the pressure and the loudness.
进一步地,所述判断被按压的区域所属分区的步骤之后还包括:Further, after the step of determining the partition to which the pressed area belongs, the method further includes:
当频率分区和响度分区同时被按压时,根据压力与频率的对应关系, 匹配出与检测到的频率分区被按压的压力值相对应的频率值;根据压力与响度的对应关系,匹配出与检测到的响度分区被按压的压力值相对应的响度值。When the frequency partition and the loudness partition are simultaneously pressed, according to the correspondence between pressure and frequency, A frequency value corresponding to the pressure value at which the detected frequency partition is pressed is matched; and a loudness value corresponding to the pressure value at which the detected loudness section is pressed is matched according to the correspondence between the pressure and the loudness.
进一步地,所述压力与音色参数的对应关系中包括至少两组压力值区间和音色参数值的配对关系,所述匹配出与检测到的压力值相对应的音色参数值包括:Further, the correspondence between the pressure and the timbre parameter includes a pairing relationship between at least two sets of pressure value intervals and timbre parameter values, and the matching timbre parameter values corresponding to the detected pressure values include:
判断检测到的压力值落入的压力值区间,获取落入的压力值区间所对应的音色参数值。The pressure value interval in which the detected pressure value falls is determined, and the timbre parameter value corresponding to the pressure value interval that falls within is obtained.
另一方面,提出一种声音处理装置,包括:In another aspect, a sound processing apparatus is provided, comprising:
压力检测模块,设置为检测终端被按压的压力值;a pressure detecting module configured to detect a pressure value at which the terminal is pressed;
匹配模块,设置为根据预设的压力与音色参数的对应关系,匹配出与检测到的压力值相对应的音色参数值;The matching module is configured to match the timbre parameter value corresponding to the detected pressure value according to the correspondence between the preset pressure and the timbre parameter;
调整模块,设置为将播放声源的音色参数值调整为匹配出的音色参数值。The adjustment module is set to adjust the tone parameter value of the playback source to the matched tone parameter value.
进一步地,所述音色参数包括频率或/和响度,所述匹配模块设置为:根据压力与频率的对应关系或/和压力与响度的对应关系,匹配出与检测到的压力值相对应的频率值或/和响度值。Further, the timbre parameter includes a frequency or/and a loudness, and the matching module is configured to: match a frequency corresponding to the detected pressure value according to a correspondence between pressure and frequency or/and a correspondence between pressure and loudness Value or / and loudness value.
进一步地,所述音色参数包括频率和响度,所述匹配模块设置为:Further, the tone color parameter includes a frequency and a loudness, and the matching module is configured to:
判断被按压的区域所属分区;当被按压的区域属于频率分区时,根据压力与频率的对应关系,匹配出与检测到的压力值相对应的频率值;当被按压的区域属于响度分区时,根据压力与响度的对应关系,匹配出与检测到的压力值相对应的响度值。Determining the partition to which the pressed area belongs; when the pressed area belongs to the frequency partition, matching the frequency value corresponding to the detected pressure value according to the correspondence between the pressure and the frequency; when the pressed area belongs to the loudness partition, According to the correspondence between the pressure and the loudness, the loudness value corresponding to the detected pressure value is matched.
进一步地,所述匹配模块设置为:当频率分区和响度分区同时被按压时,根据压力与频率的对应关系,匹配出与检测到的频率分区被按压的压力值相对应的频率值;根据压力与响度的对应关系,匹配出与检测到的响度分区被按压的压力值相对应的响度值。Further, the matching module is configured to: when the frequency partition and the loudness partition are simultaneously pressed, match the frequency value corresponding to the pressed pressure value of the detected frequency partition according to the correspondence between the pressure and the frequency; The correspondence with the loudness matches the loudness value corresponding to the pressure value at which the detected loudness zone is pressed.
进一步地,所述压力与音色参数的对应关系中包括至少两组压力值区间和音色参数值的配对关系,所述匹配模块设置为:判断检测到的压力值落入的压力值区间,获取落入的压力值区间所对应的音色参数值。Further, the corresponding relationship between the pressure and the timbre parameter includes a pairing relationship between at least two sets of pressure value intervals and timbre parameter values, and the matching module is configured to: determine a pressure value interval in which the detected pressure value falls, and acquire a drop The value of the tone parameter corresponding to the entered pressure value interval.
在本发明实施例中,还提供了一种计算机存储介质,该计算机存储介质可以存储有执行指令,该执行指令用于执行上述实施例中的声音处理方法的实现。In the embodiment of the present invention, a computer storage medium is further provided, and the computer storage medium may store an execution instruction for performing the implementation of the sound processing method in the above embodiment.
本发明实施例所提供的一种声音处理方法,通过检测终端被按压的压力值来调整播放声源的音色参数,进而改变播放声源的音色,使得用户只需按压终端,并改变按压力度,就可以实时的将播放声源的音色调整为各种类型,提高了音色调节的实时性和便捷性,使得人机之间的交互更加便 捷和友好,极大的增强了终端的娱乐性,提升了用户体验。The sound processing method provided by the embodiment of the present invention adjusts the tone color parameter of the playing sound source by detecting the pressure value pressed by the terminal, thereby changing the tone color of the playing sound source, so that the user only needs to press the terminal and change the pressing force. It is possible to adjust the tone of the playback source to various types in real time, which improves the real-time and convenience of the tone adjustment, making the interaction between the human and the machine more convenient. The peace and friendliness greatly enhances the entertainment of the terminal and enhances the user experience.
附图说明DRAWINGS
图1是本发明的声音处理方法第一实施例的流程图;1 is a flow chart of a first embodiment of a sound processing method of the present invention;
图2是本发明实施例中压力与音色参数的对应关系的示意图;2 is a schematic diagram of a correspondence relationship between pressure and timbre parameters in an embodiment of the present invention;
图3是本发明实施例中压力与音色参数的对应关系的另一示意图;3 is another schematic diagram of the correspondence between pressure and timbre parameters in the embodiment of the present invention;
图4是本发明实施例中压力与频率的对应关系的示意图;4 is a schematic diagram of a correspondence relationship between pressure and frequency in an embodiment of the present invention;
图5是本发明实施例中压力与响度的对应关系的示意图;Figure 5 is a schematic diagram showing the correspondence between pressure and loudness in the embodiment of the present invention;
图6是本发明的声音处理方法第二实施例的流程图;Figure 6 is a flow chart showing a second embodiment of the sound processing method of the present invention;
图7是本发明实施例中在终端上定义分区的示意图;7 is a schematic diagram of defining a partition on a terminal in an embodiment of the present invention;
图8是本发明实施例中在终端上定义分区的另一示意图;FIG. 8 is another schematic diagram of defining a partition on a terminal in an embodiment of the present invention; FIG.
图9是本发明的声音处理装置一实施例的模块示意图。Figure 9 is a block diagram showing an embodiment of a sound processing apparatus of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
参见图1,提出本发明的声音处理方法第一实施例,所述方法包括以下步骤:Referring to FIG. 1, a first embodiment of a sound processing method of the present invention is proposed. The method includes the following steps:
S11、检测终端被按压的压力值。S11. Detect a pressure value at which the terminal is pressed.
可选地,终端具有一触摸面,可以在触摸面下面设置压力传感器,通过压力传感器检测触摸面被按压的压力值。所述触摸面可以是屏幕或者其它供按压的表面。Optionally, the terminal has a touch surface, and a pressure sensor can be disposed under the touch surface, and the pressure value of the touch surface being pressed is detected by the pressure sensor. The touch surface can be a screen or other surface for pressing.
可选地,终端的屏幕为压力屏,通过该压力屏检测用户按压屏幕的压力值。Optionally, the screen of the terminal is a pressure screen, and the pressure value of the user pressing the screen is detected through the pressure screen.
S12、根据预设的压力与音色参数的对应关系,匹配出与检测到的压力值相对应的音色参数值。S12. Match the value of the timbre parameter corresponding to the detected pressure value according to the correspondence between the preset pressure and the timbre parameter.
终端中存储了压力与音色参数的对应关系,压力与音色参数的对应关系中包括至少两组压力值区间和音色参数值的对应关系,即每一个压力值区间对应一个音色参数值,终端判断检测到的压力值落入的压力值区间,获取落入的压力值区间所对应的音色参数值,该音色参数值也即检测到的压力值相对应的音色参数值。The correspondence between the pressure and the timbre parameters is stored in the terminal, and the correspondence between the pressure and the timbre parameters includes the correspondence between at least two sets of pressure value intervals and timbre parameter values, that is, each pressure value interval corresponds to a timbre parameter value, and the terminal judges the detection. The range of pressure values into which the pressure value falls is obtained, and the value of the timbre parameter corresponding to the interval of the pressure value falling in is obtained, and the timbre parameter value is the timbre parameter value corresponding to the detected pressure value.
在某些实施例中,压力与音色参数的对应关系可以采用如图2所示的表格表示。其中,共包括n组一一对应的压力值区间和音色参数值数据, 压力值区间包括
Figure PCTCN2016106938-appb-000001
共n个,音色参数值包括S1,S2,……,Sn共n个。其中,n≥2,M为设定的最大压力值,通常为终端能够检测到的最大压力值。
In some embodiments, the correspondence of pressure to timbre parameters can be represented by a table as shown in FIG. Among them, a total of n groups of one-to-one corresponding pressure value interval and timbre parameter value data, the pressure value interval includes
Figure PCTCN2016106938-appb-000001
A total of n, the tone parameter values include S1, S2, ..., Sn a total of n. Where n ≥ 2, M is the set maximum pressure value, usually the maximum pressure value that the terminal can detect.
为了提高匹配的准确度,可以在相邻的两个压力值区间之间设置缓冲区间,此时,压力与音色参数的对应关系可以采用如图3所示的表格表示。其中,共包括n组一一对应的压力值区间和音色参数值数据,压力值区间包括
Figure PCTCN2016106938-appb-000002
共n个,音色参数值包括S1,S2,……,Sn共n个。其中,n≥2,M为设定的最大压力值,通常为终端能够检测到的最大压力值,k为相邻两个压力值区间之间的缓冲区间,其为一常数,大小可以根据需要设定。此时,当检测到的压力值落入两相邻的压力值区间之间的缓冲区间内(即压力值不落入任何一个压力值区间)时,可以丢弃此次检测结果,也可以将该压力值算到前一个压力值区间或后一个压力值区间。
In order to improve the accuracy of the matching, buffers can be set between two adjacent pressure value intervals. At this time, the correspondence between the pressure and the timbre parameters can be represented by a table as shown in FIG. Among them, a total of n groups of one-to-one corresponding pressure value interval and timbre parameter value data, the pressure value interval includes
Figure PCTCN2016106938-appb-000002
A total of n, the tone parameter values include S1, S2, ..., Sn a total of n. Where n ≥ 2, M is the set maximum pressure value, usually the maximum pressure value that the terminal can detect, k is the buffer between the adjacent two pressure value intervals, which is a constant, the size can be as needed set up. At this time, when the detected pressure value falls within the buffer zone between two adjacent pressure value intervals (ie, the pressure value does not fall within any one of the pressure value intervals), the detection result may be discarded, or the detection result may be discarded. The pressure value is calculated in the previous pressure value interval or the latter pressure value interval.
可选地,音色参数包括频率,终端中存储了压力与频率的对应关系,终端根据压力与频率的对应关系,匹配出与检测到的压力值相对应的频率值。也就是说,终端根据用户的按压力度调整播放声源的频率,进而改变其音色。Optionally, the timbre parameter includes a frequency, and the corresponding relationship between the pressure and the frequency is stored in the terminal, and the terminal matches the frequency value corresponding to the detected pressure value according to the correspondence between the pressure and the frequency. That is to say, the terminal adjusts the frequency of playing the sound source according to the pressing strength of the user, thereby changing the tone color thereof.
举例而言:假设终端的频率滤波器为50Hz的倍频,终端的压力屏可检测到的压力值的范围为(0~M)牛顿(N),因此将(0~M)牛顿的压力值范围分为6个区间,每部分的区间大小为
Figure PCTCN2016106938-appb-000003
牛顿,设定的压力与频率的对应关系如图4所示,不同终端也可以根据其特点设定不同的压力和频率的对应关系,以及频率的幅度和范围。假设检测到的压力值落在压力值区间
Figure PCTCN2016106938-appb-000004
之内,则匹配出对应的频率值为800HZ。
For example: suppose the frequency filter of the terminal is a frequency multiplier of 50 Hz, and the pressure value detectable by the pressure screen of the terminal ranges from (0 to M) Newton (N), so the pressure value of (0 to M) Newton will be The range is divided into 6 sections, and the interval size of each section is
Figure PCTCN2016106938-appb-000003
Newton, the corresponding relationship between pressure and frequency is shown in Figure 4. Different terminals can also set different pressure and frequency correspondences according to their characteristics, as well as the amplitude and range of frequency. Assume that the detected pressure value falls within the pressure value interval
Figure PCTCN2016106938-appb-000004
Within, the corresponding frequency value is matched to 800HZ.
可选地,音色参数包括响度,终端中存储了压力与响度的对应关系,终端根据压力与响度的对应关系,匹配出与检测到的压力值相对应的响度值。也就是说,终端根据用户的按压力度调整播放声源的响度,进而改变其音色。Optionally, the timbre parameter includes loudness, and the correspondence between the pressure and the loudness is stored in the terminal, and the terminal matches the loudness value corresponding to the detected pressure value according to the correspondence between the pressure and the loudness. That is to say, the terminal adjusts the loudness of the playing sound source according to the pressing strength of the user, thereby changing the sound color thereof.
举例而言:假设响度值以响度等级表示,设响度等级为6级,终端的压力屏可检测到的压力值的范围为(0~M)牛顿(N),因此将(0~M)牛顿的压力值范围分为6个区间,每个区间的大小为
Figure PCTCN2016106938-appb-000005
牛顿,设定的压力与响度的对应关系如图5所示,不同终端也可以根据其特点设定不同的压力和 响度的对应关系,以及响度的实际大小。假设检测到的压力值落在压力值区间
Figure PCTCN2016106938-appb-000006
之内,则匹配出对应的响度等级为4级。
For example: suppose the loudness value is expressed in loudness level, and the loudness level is set to level 6. The pressure value detectable by the pressure screen of the terminal ranges from (0 to M) Newton (N), so (0 to M) Newton The pressure value range is divided into 6 intervals, and the size of each interval is
Figure PCTCN2016106938-appb-000005
Newton, the corresponding relationship between the set pressure and loudness is shown in Figure 5. Different terminals can also set different correspondences between pressure and loudness and the actual size of loudness according to their characteristics. Assume that the detected pressure value falls within the pressure value interval
Figure PCTCN2016106938-appb-000006
Within the match, the corresponding loudness level is matched to level 4.
可选地,音色参数包括频率和响度,终端中存储了压力与频率的对应关系和压力与响度的对应关系。终端根据压力与频率的对应关系,匹配出与检测到的压力值相对应的频率值;根据压力与响度的对应关系,匹配出与检测到的压力值相对应的响度值。也就是说,终端根据用户的按压力度同时调整播放声源的频率和响度,进而改变其音色。Optionally, the timbre parameter includes a frequency and a loudness, and the correspondence between the pressure and the frequency and the correspondence between the pressure and the loudness are stored in the terminal. The terminal matches the frequency value corresponding to the detected pressure value according to the correspondence between the pressure and the frequency; and matches the loudness value corresponding to the detected pressure value according to the correspondence between the pressure and the loudness. That is to say, the terminal simultaneously adjusts the frequency and loudness of the playing sound source according to the pressing force of the user, thereby changing the sound color thereof.
S13、将播放声源的音色参数调整为匹配出的音色参数值。S13. Adjust the tone color parameter of the playing sound source to the matched tone color parameter value.
具体的,当音色参数为频率时,终端根据匹配出的频率值调整频率滤波器的采样率,进而通过频率滤波器将播放声源的频率调整为匹配出的频率值。当音色参数为响度时,终端则将播放声源的响度调整为匹配出的响度值。当音色参数包括频率和响度时,终端分别将播放声源的频率和响度调整为匹配出的频率值和响度值。Specifically, when the tone parameter is a frequency, the terminal adjusts the sampling rate of the frequency filter according to the matched frequency value, and then adjusts the frequency of the playing sound source to the matched frequency value through the frequency filter. When the tone parameter is loudness, the terminal adjusts the loudness of the playback source to the matched loudness value. When the tone parameters include frequency and loudness, the terminal adjusts the frequency and loudness of the played sound source to the matched frequency value and loudness value, respectively.
调整了播放声源的音色参数后再进行播放时,播放的声音的音色就发生了变化,从而实现了对音色的调整和改变。When the tone parameters of the playback source are adjusted and then played, the tone of the played sound changes, thus adjusting and changing the tone.
在某些实施例中,终端持续采集一段时间内的压力值,当采集到的压力值均落入同一压力值区间时,则选择该压力值区间对应的音色参数值为需要的音色参数值。当采集到的压力值分别落入不同的压力值区间时,则选择最多压力值落入的压力值区间对应的音色参数值为需要的音色参数值。然后将播放声源的音色参数调整为选择的音色参数值后予以播放。In some embodiments, the terminal continuously collects the pressure value for a period of time. When the collected pressure values fall within the same pressure value interval, the timbre parameter value corresponding to the pressure value interval is selected to be a desired timbre parameter value. When the collected pressure values fall into different pressure value intervals, the timbre parameter value corresponding to the pressure value range in which the most pressure value falls is selected to be the desired timbre parameter value. Then, the tone color parameter of the playback source is adjusted to the selected tone parameter value and played.
在另一些实施例中,终端持续采集一段时间内的压力值,对采集到的压力值求平均值获得一平均压力值,选择该平均压力值落入的压力值区间对应的音色参数值为需要的音色参数值。然后将播放声源的音色参数调整为选择的音色参数值后予以播放。In other embodiments, the terminal continuously collects the pressure value for a period of time, averages the collected pressure value to obtain an average pressure value, and selects a timbre parameter value corresponding to the pressure value range in which the average pressure value falls. The value of the tone parameter. Then, the tone color parameter of the playback source is adjusted to the selected tone parameter value and played.
本发明实施例的声音处理方法,通过检测被按压的压力值来调整播放声源的音色参数,进而改变播放声源的音色,使得用户只需按压终端,并改变按压力度,就可以实时的将播放声源的音色调整为各种类型,提高了音色调节的实时性和便捷性,使得人机之间的交互更加便捷和友好,极大的增强了终端的娱乐性,提升了用户体验。The sound processing method of the embodiment of the present invention adjusts the tone color parameter of the playing sound source by detecting the pressed pressure value, thereby changing the tone color of the playing sound source, so that the user only needs to press the terminal and change the pressing force, so that the user can The sound of the playback sound source is adjusted to various types, which improves the real-time and convenience of the sound adjustment, making the interaction between the human and the machine more convenient and friendly, greatly enhancing the entertainment of the terminal and improving the user experience.
参见图6,提出本发明的声音处理方法第二实施例,所述方法包括以下步骤:Referring to Figure 6, a second embodiment of the sound processing method of the present invention is proposed. The method includes the following steps:
S21、检测终端被按压的压力值。S21. Detect a pressure value at which the terminal is pressed.
S22、判断被按压的区域所属分区。S22. Determine a partition to which the pressed area belongs.
如图7所示,本实施例中,在触摸面上定义频率分区10和响度分区20两个分区,用户可以通过按压频率分区10来调整声音的频率,通过按 压响度分区20来调整声音的响度,通过同时按压频率分区10和响度分区20来调整声音的频率和响度。As shown in FIG. 7, in this embodiment, two partitions of the frequency partition 10 and the loudness partition 20 are defined on the touch surface, and the user can adjust the frequency of the sound by pressing the frequency partition 10 by pressing The loudness section 20 is used to adjust the loudness of the sound, and the frequency and loudness of the sound are adjusted by simultaneously pressing the frequency partition 10 and the loudness section 20.
终端通过压力传感器、压力屏等检测被按压的区域的坐标,判断该坐标落在哪一个分区内。The terminal detects the coordinates of the pressed area by a pressure sensor, a pressure screen, or the like, and determines in which partition the coordinate falls.
S23、当被按压的区域属于频率分区时,根据压力与频率的对应关系,匹配出与检测到的压力值相对应的频率值。S23. When the pressed area belongs to the frequency partition, the frequency value corresponding to the detected pressure value is matched according to the correspondence between the pressure and the frequency.
终端中存储了压力与频率的对应关系,压力与频率的对应关系中包括至少两组压力值区间和频率值的配对关系,每一个压力值区间对应一个频率值,终端判断检测到的压力值落入的压力值区间,获取落入的压力值区间所对应的频率值,该频率值也即检测到的压力值相对应的频率值。The corresponding relationship between pressure and frequency is stored in the terminal. The correspondence between pressure and frequency includes a pairing relationship between at least two sets of pressure value intervals and frequency values. Each pressure value interval corresponds to a frequency value, and the terminal judges the detected pressure value to fall. The entered pressure value interval acquires the frequency value corresponding to the pressure value interval that falls, and the frequency value is also the frequency value corresponding to the detected pressure value.
S24、将播放声源的频率调整为匹配出的频率值。S24. Adjust the frequency of the playing sound source to the matched frequency value.
具体的,终端根据匹配出的频率值调整频率滤波器的采样率,进而通过频率滤波器将播放声源的频率调整为匹配出的频率值后予以播出。调整了播放声源的频率后再进行播放时,播放的声音的音色就发生了变化,从而实现了对音色的调整和改变。Specifically, the terminal adjusts the sampling rate of the frequency filter according to the matched frequency value, and then adjusts the frequency of the playing sound source to the matched frequency value through the frequency filter, and then broadcasts the frequency. When the frequency of the playback source is adjusted and then played, the tone of the played sound changes, thus realizing the adjustment and change of the tone.
S25、当被按压的区域属于响度分区时,根据压力与响度的对应关系,匹配出与检测到的压力值相对应的响度值。S25. When the pressed area belongs to the loudness partition, the loudness value corresponding to the detected pressure value is matched according to the correspondence between the pressure and the loudness.
终端中存储了压力与响度的对应关系,压力与响度的对应关系中包括至少两组压力值区间和响度值的配对关系,每一个压力值区间对应一个响度值,终端判断检测到的压力值落入的压力值区间,获取落入的压力值区间所对应的响度值,该响度值也即检测到的压力值相对应的响度值。The corresponding relationship between pressure and loudness is stored in the terminal. The correspondence between pressure and loudness includes a pairing relationship between at least two sets of pressure value intervals and loudness values. Each pressure value interval corresponds to a loudness value, and the terminal determines that the detected pressure value falls. The entered pressure value interval acquires a loudness value corresponding to the falling pressure value interval, and the loudness value is also the loudness value corresponding to the detected pressure value.
S26、将播放声源的响度调整为匹配出的响度值。S26. Adjust the loudness of the playing sound source to the matched loudness value.
终端将播放声源的响度调整为匹配出的响度值。调整了播放声源的响度后再进行播放时,播放的声音的音色就发生了变化,从而实现了对音色的调整和改变。The terminal adjusts the loudness of the playing sound source to the matched loudness value. When the loudness of the playback source is adjusted and then played, the tone of the played sound changes, thus adjusting and changing the tone.
S27、当频率分区和响度分区同时被按压时,根据压力与频率的对应关系,匹配出与检测到的频率分区被按压的压力值相对应的频率值;根据压力与响度的对应关系,匹配出与检测到的响度分区被按压的压力值相对应的响度值。S27. When the frequency partition and the loudness partition are simultaneously pressed, according to the correspondence between the pressure and the frequency, the frequency value corresponding to the pressed pressure value of the detected frequency partition is matched; according to the correspondence between the pressure and the loudness, the matching is performed. A loudness value corresponding to the pressure value at which the detected loudness zone is pressed.
具体的,终端中存储了压力与频率的对应关系和压力与响度的对应关系。压力与频率的对应关系中包括至少两组压力值区间和频率值的配对关系,每一个压力值区间对应一个频率值,终端判断检测到的压力值落入的压力值区间,获取落入的压力值区间所对应的频率值,该频率值也即检测到的压力值相对应的频率值。压力与响度的对应关系中包括至少两组压力值区间和响度值的配对关系,每一个压力值区间对应一个响度值,终端判 断检测到的压力值落入的压力值区间,获取落入的压力值区间所对应的响度值,该响度值也即检测到的压力值相对应的响度值。Specifically, the correspondence between the pressure and the frequency and the correspondence between the pressure and the loudness are stored in the terminal. The correspondence between pressure and frequency includes a pairing relationship between at least two sets of pressure value intervals and frequency values, each pressure value interval corresponding to a frequency value, and the terminal judges the pressure value range in which the detected pressure value falls, and obtains the pressure of falling. The frequency value corresponding to the value interval, which is the frequency value corresponding to the detected pressure value. The correspondence between pressure and loudness includes a pairing relationship between at least two sets of pressure value intervals and loudness values, and each pressure value interval corresponds to a loudness value, and the terminal judges The pressure value interval in which the detected pressure value falls is obtained, and the loudness value corresponding to the interval of the pressure value falling in is obtained, and the loudness value is the loudness value corresponding to the detected pressure value.
S28、将播放声源的频率和响度调整为匹配出的频率值和响度值。S28. Adjust the frequency and loudness of the playing sound source to match the frequency value and the loudness value.
具体的,终端根据匹配出的频率值调整频率滤波器的采样率,进而通过频率滤波器将播放声源的频率调整为匹配出的频率值;同时,将播放声源的响度调整为匹配出的响度值。调整了播放声源的频率和响度后再进行播放时,播放的声音的音色就发生了变化,从而实现了对音色的调整和改变。Specifically, the terminal adjusts the sampling rate of the frequency filter according to the matched frequency value, and then adjusts the frequency of the playing sound source to the matched frequency value through the frequency filter; at the same time, adjusts the loudness of the playing sound source to match Loudness value. When the frequency and loudness of the playback source are adjusted and then played, the tone of the played sound changes, thus realizing the adjustment and change of the tone.
本实施例的声音处理方法,通过定义频率分区和响度分区,使得用户可以根据需要按压频率分区或/和响度分区,来改变播放声源的频率或/和响度,进而调整出更多类型的音色,进一步增强了终端的娱乐性。The sound processing method of the embodiment, by defining the frequency partition and the loudness partition, enables the user to press the frequency partition or/and the loudness partition as needed to change the frequency or/and the loudness of the played sound source, thereby adjusting more types of sounds. , further enhancing the entertainment of the terminal.
在某些实施例中,当频率分区和响度分区同时被按压时,终端可以不予响应,也可以只响应频率分区或响度分区,还可以只响应被按压的压力值较大或较小的分区。In some embodiments, when the frequency partition and the loudness partition are simultaneously pressed, the terminal may not respond, or may only respond to the frequency partition or the loudness partition, or may only respond to the partition with a larger or smaller pressure value being pressed. .
在另一些实施例中,也可以如图8所示,在触摸面上定义三个分区,分别为频率分区10、响度分区20以及频率和响度分区30,用户可以通过按压频率分区10来调整声音的频率,通过按压响度分区20来调整声音的响度,通过同时按压频率分区10和响度分区20来调整声音的频率和响度(按压两个分区的压力可以不同,则频率和响度对应的压力值不同),通过按压频率和响度分区30来调整声音的频率和响度(频率和响度对应相同的压力值)。In other embodiments, as shown in FIG. 8, three partitions may be defined on the touch surface, namely a frequency partition 10, a loudness partition 20, and a frequency and loudness partition 30, and the user may adjust the sound by pressing the frequency partition 10. The frequency of the sound is adjusted by pressing the loudness section 20, and the frequency and loudness of the sound are adjusted by simultaneously pressing the frequency partition 10 and the loudness section 20 (the pressures of pressing the two partitions may be different, and the pressure values corresponding to the frequency and the loudness are different. The frequency and loudness of the sound are adjusted by pressing the frequency and loudness section 30 (the frequency and loudness correspond to the same pressure value).
本发明实施例中,压力与音色参数的对应关系除了采用压力值区间与音色参数值的一一对应关系外,还可以建立压力与音色参数的函数关系,包括一次函数、二次函数等,在此不再赘述。此外,压力与音色参数之间可以呈正相关关系,也可以呈负相关关系。In the embodiment of the present invention, in addition to the one-to-one correspondence between the pressure value interval and the timbre parameter value, the relationship between the pressure and the timbre parameter can also establish a functional relationship between the pressure and the timbre parameter, including a primary function and a quadratic function. This will not be repeated here. In addition, there may be a positive correlation between pressure and timbre parameters, or a negative correlation.
本发明实施例中,当终端不再被按压(如人的手指离开触摸面)时,音色参数可以保持为调整后的状态,也可以恢复为原始状态(即播放声源原始的音色参数值)。In the embodiment of the present invention, when the terminal is no longer pressed (such as a person's finger leaving the touch surface), the tone color parameter may remain in the adjusted state, or may be restored to the original state (ie, the original tone color parameter value of the sound source is played). .
参见图9,提出本发明的声音处理装置一实施例,所述装置包括压力检测模块100、匹配模块200和调整模块300,其中:Referring to Figure 9, an embodiment of a sound processing apparatus of the present invention is provided. The apparatus includes a pressure detecting module 100, a matching module 200, and an adjustment module 300, wherein:
压力检测模块100:设置为检测终端被按压的压力值。The pressure detecting module 100 is configured to detect a pressure value at which the terminal is pressed.
可选地,压力检测模块100通过设置于触摸面下面的压力传感器检测触摸面被按压的压力值。所述触摸面可以是屏幕或者其它供按压的表面。Optionally, the pressure detecting module 100 detects a pressure value at which the touch surface is pressed by a pressure sensor disposed under the touch surface. The touch surface can be a screen or other surface for pressing.
可选地,压力检测模块100通过压力屏检测用户按压屏幕的压力值。Optionally, the pressure detecting module 100 detects a pressure value of the user pressing the screen through the pressure screen.
匹配模块200:设置为根据预设的压力与音色参数的对应关系,匹配出与检测到的压力值相对应的音色参数值。 The matching module 200 is configured to match the timbre parameter value corresponding to the detected pressure value according to the correspondence between the preset pressure and the timbre parameter.
终端中存储了压力与音色参数的对应关系,压力与音色参数的对应关系中包括至少两组压力值区间和音色参数值配对关系,每一个压力值区间对应一个音色参数值,匹配模块200判断检测到的压力值落入的压力值区间,获取落入的压力值区间所对应的音色参数值,该音色参数值也即检测到的压力值相对应的音色参数值。The correspondence between the pressure and the timbre parameters is stored in the terminal, and the correspondence between the pressure and the timbre parameters includes at least two sets of pressure value intervals and timbre parameter values, each pressure value interval corresponds to a timbre parameter value, and the matching module 200 determines the detection. The range of pressure values into which the pressure value falls is obtained, and the value of the timbre parameter corresponding to the interval of the pressure value falling in is obtained, and the timbre parameter value is the timbre parameter value corresponding to the detected pressure value.
可选地,音色参数包括频率,终端中存储了压力与频率的对应关系,匹配模块200根据压力与频率的对应关系,匹配出与检测到的压力值相对应的频率值。Optionally, the timbre parameter includes a frequency, and the correspondence between the pressure and the frequency is stored in the terminal, and the matching module 200 matches the frequency value corresponding to the detected pressure value according to the correspondence between the pressure and the frequency.
可选地,音色参数包括响度,终端中存储了压力与响度的对应关系,匹配模块200根据压力与响度的对应关系,匹配出与检测到的压力值相对应的响度值。Optionally, the timbre parameter includes loudness, and the correspondence between the pressure and the loudness is stored in the terminal, and the matching module 200 matches the loudness value corresponding to the detected pressure value according to the correspondence between the pressure and the loudness.
可选地,音色参数包括频率和响度,终端中存储了压力与频率的对应关系和压力与响度的对应关系。匹配模块200根据压力与频率的对应关系,匹配出与检测到的压力值相对应的频率值;根据压力与响度的对应关系,匹配出与检测到的压力值相对应的响度值。Optionally, the timbre parameter includes a frequency and a loudness, and the correspondence between the pressure and the frequency and the correspondence between the pressure and the loudness are stored in the terminal. The matching module 200 matches the frequency value corresponding to the detected pressure value according to the correspondence between the pressure and the frequency; and matches the loudness value corresponding to the detected pressure value according to the correspondence between the pressure and the loudness.
调整模块300:设置为将播放声源的音色参数值调整为匹配出的音色参数值。The adjustment module 300 is configured to adjust the tone parameter value of the playback source to the matched tone parameter value.
具体的,当音色参数为频率时,调整模块300根据匹配出的频率值调整频率滤波器的采样率,进而通过频率滤波器将播放声源的频率调整为匹配出的频率值。当音色参数为响度时,调整模块300则将播放声源的响度调整为匹配出的响度值。当音色参数包括频率和响度时,调整模块300分别将播放声源的频率和响度调整为匹配出的频率值和响度值。Specifically, when the timbre parameter is a frequency, the adjustment module 300 adjusts the sampling rate of the frequency filter according to the matched frequency value, and then adjusts the frequency of the playing sound source to the matched frequency value through the frequency filter. When the tone parameter is loudness, the adjustment module 300 adjusts the loudness of the played sound source to the matched loudness value. When the tone parameters include frequency and loudness, the adjustment module 300 adjusts the frequency and loudness of the played sound source to the matched frequency value and loudness value, respectively.
调整了播放声源的音色参数后再进行播放时,播放的声音的音色就发生了变化,从而实现了对音色的调整和改变。When the tone parameters of the playback source are adjusted and then played, the tone of the played sound changes, thus adjusting and changing the tone.
在某些实施例中,压力检测模块100持续采集一段时间内的压力值,当采集到的压力值均落入同一压力值区间时,匹配模块200则选择该压力值区间对应的音色参数值为需要的音色参数值。当采集到的压力值分别落入不同的压力值区间时,匹配模块200则选择最多压力值落入的压力值区间对应的音色参数值为需要的音色参数值。然后调整模块300将播放声源的音色参数调整为选择的音色参数值。In some embodiments, the pressure detecting module 100 continuously collects the pressure value for a period of time. When the collected pressure values fall within the same pressure value interval, the matching module 200 selects the timbre parameter value corresponding to the pressure value interval. The desired tone parameter value. When the collected pressure values respectively fall into different pressure value intervals, the matching module 200 selects the timbre parameter value corresponding to the pressure value interval in which the maximum pressure value falls into the desired timbre parameter value. The adjustment module 300 then adjusts the tone color parameters of the playback sound source to the selected tone color parameter values.
在另一些实施例中,压力检测模块100持续采集一段时间内的压力值,匹配模块200对采集到的压力值求平均值获得一平均压力值,选择该平均压力值落入的压力值区间对应的音色参数值为需要的音色参数值。然后调整模块300将播放声源的音色参数调整为选择的音色参数值。In other embodiments, the pressure detecting module 100 continuously collects the pressure value for a period of time, and the matching module 200 averages the collected pressure values to obtain an average pressure value, and selects a pressure value interval corresponding to the average pressure value. The tone parameter value is the desired tone parameter value. The adjustment module 300 then adjusts the tone color parameters of the playback sound source to the selected tone color parameter values.
进一步地,终端的触摸面上定义了频率分区和响度分区两个分区,匹配模块200判断被按压的区域所属分区;当被按压的区域属于频率分区时, 则根据压力与频率的对应关系,匹配出与检测到的压力值相对应的频率值;当被按压的区域属于响度分区时,则根据压力与响度的对应关系,匹配出与检测到的压力值相对应的响度值。Further, the touch surface of the terminal defines two partitions of the frequency partition and the loudness partition, and the matching module 200 determines the partition to which the pressed area belongs; when the pressed area belongs to the frequency partition, Then, according to the correspondence between the pressure and the frequency, the frequency value corresponding to the detected pressure value is matched; when the pressed area belongs to the loudness partition, the detected pressure value is matched according to the correspondence between the pressure and the loudness. Corresponding loudness value.
进一步地,当频率分区和响度分区同时被按压时,匹配模块200根据压力与频率的对应关系,匹配出与检测到的频率分区被按压的压力值相对应的频率值;同时,根据压力与响度的对应关系,匹配出与检测到的响度分区被按压的压力值相对应的响度值。Further, when the frequency partition and the loudness partition are simultaneously pressed, the matching module 200 matches the frequency value corresponding to the pressed pressure value of the detected frequency partition according to the correspondence relationship between the pressure and the frequency; meanwhile, according to the pressure and the loudness Correspondence, matching the loudness value corresponding to the pressure value at which the detected loudness zone is pressed.
在某些实施例中,当频率分区和响度分区同时被按压时,声音处理装置可以不予响应,也可以只响应频率分区或响度分区,还可以只响应被按压的压力值较大或较小的分区。In some embodiments, when the frequency partition and the loudness partition are simultaneously pressed, the sound processing device may not respond, or may only respond to the frequency partition or the loudness partition, or may only respond to the pressed pressure value being larger or smaller. Partition.
在另一些实施例中,终端的触摸面上定义了三个分区,分别为频率分区、响度分区以及频率和响度分区,声音处理装置在用户按压频率分区时调整声音的频率,按压响度分区时调整声音的响度,同时按压频率分区和响度分区时调整声音的频率和响度(按压两个分区的压力可以不同,则频率和响度对应的压力值不同),按压频率和响度分区时调整声音的频率和响度(频率和响度对应相同的压力值)。In other embodiments, three partitions are defined on the touch surface of the terminal, namely frequency partition, loudness partition, and frequency and loudness partition. The sound processing device adjusts the frequency of the sound when the user presses the frequency partition, and adjusts when the loudness partition is pressed. The loudness of the sound, while adjusting the frequency and loudness of the sound when pressing the frequency partition and the loudness partition (the pressures of pressing the two partitions may be different, the pressure values corresponding to the frequency and the loudness are different), and the frequency of the sound is adjusted when the frequency and the loudness partition are pressed. Loudness (frequency and loudness correspond to the same pressure value).
本发明实施例的声音处理装置,通过检测被按压的压力值来调整播放声源的音色参数,进而改变播放声源的音色,使得用户只需按压终端,并改变按压力度,就可以实时的将播放声源的音色调整为各种类型,提高了音色调节的实时性和便捷性,使得人机之间的交互更加便捷和友好,极大的增强了终端的娱乐性,提升了用户体验。The sound processing device of the embodiment of the present invention adjusts the tone color parameter of the playing sound source by detecting the pressed pressure value, thereby changing the tone color of the playing sound source, so that the user only needs to press the terminal and change the pressing force, so that the user can The sound of the playback sound source is adjusted to various types, which improves the real-time and convenience of the sound adjustment, making the interaction between the human and the machine more convenient and friendly, greatly enhancing the entertainment of the terminal and improving the user experience.
本发明实施例中,当终端不再被按压(如人的手指离开触摸面)时,声音处理装置可以保持播放声源的音色参数为调整后的状态,也可以恢复播放声源的音色参数为原始状态(即播放声源原始的音色参数值)。In the embodiment of the present invention, when the terminal is no longer pressed (for example, the finger of the person leaves the touch surface), the sound processing device may keep the tone color parameter of the playing sound source as the adjusted state, and may also restore the sound color parameter of the playing sound source to The original state (that is, the original tone parameter value of the sound source is played).
本发明实施例的终端,可以是手机、平板等移动终端,也可以是个人电脑等固定终端。The terminal in the embodiment of the present invention may be a mobile terminal such as a mobile phone or a tablet, or may be a fixed terminal such as a personal computer.
需要说明的是:上述实施例提供的声音处理装置与声音处理方法实施例属于同一构思,其具体实现过程详见方法实施例,且方法实施例中的技术特征在装置实施例中均对应适用,这里不再赘述。It should be noted that the sound processing device and the sound processing method embodiment provided in the above embodiments are in the same concept, and the specific implementation process is described in the method embodiment, and the technical features in the method embodiment are applicable in the device embodiment. I won't go into details here.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个 实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a plurality of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the present invention. The method described in the examples.
以上参照附图说明了本发明的优选实施例,并非因此局限本发明的权利范围。本领域技术人员不脱离本发明的范围和实质,可以有多种变型方案实现本发明,比如作为一个实施例的特征可用于另一实施例而得到又一实施例。凡在运用本发明的技术构思之内所作的任何修改、等同替换和改进,均应在本发明的权利范围之内。The preferred embodiments of the present invention have been described above with reference to the drawings, and are not intended to limit the scope of the invention. A person skilled in the art can implement the invention in various variants without departing from the scope and spirit of the invention. For example, the features of one embodiment can be used in another embodiment to obtain a further embodiment. Any modifications, equivalent substitutions and improvements made within the technical concept of the invention are intended to be included within the scope of the invention.
工业实用性Industrial applicability
本发明实施例提供的上述技术方案,可以应用于声音处理过程中,通过检测终端被按压的压力值来调整播放声源的音色参数,进而改变播放声源的音色,使得用户只需按压终端,并改变按压力度,就可以实时的将播放声源的音色调整为各种类型,提高了音色调节的实时性和便捷性,使得人机之间的交互更加便捷和友好,极大的增强了终端的娱乐性,提升了用户体验。 The above technical solution provided by the embodiment of the present invention can be applied to the sound processing process, and the sound color parameter of the playing sound source is adjusted by detecting the pressure value pressed by the terminal, thereby changing the sound color of the playing sound source, so that the user only needs to press the terminal. By changing the pressing force, the sound of the playing sound source can be adjusted to various types in real time, which improves the real-time and convenience of the sound color adjustment, making the interaction between human and machine more convenient and friendly, greatly enhancing the terminal. The entertainment is enhanced and the user experience is enhanced.

Claims (10)

  1. 一种声音处理方法,包括步骤:A sound processing method comprising the steps of:
    检测终端被按压的压力值;Detecting a pressure value at which the terminal is pressed;
    根据预设的压力与音色参数的对应关系,匹配出与检测到的压力值相对应的音色参数值;According to the correspondence between the preset pressure and the timbre parameter, the timbre parameter value corresponding to the detected pressure value is matched;
    将播放声源的音色参数调整为匹配出的音色参数值。Adjust the tone parameters of the playback source to match the value of the tone parameters.
  2. 根据权利要求1所述的声音处理方法,其中,所述音色参数包括频率和/或响度,所述根据压力与音色参数的对应关系,匹配出与检测到的压力值相对应的音色参数值,包括:The sound processing method according to claim 1, wherein the timbre parameter includes a frequency and/or a loudness, and the timbre parameter value corresponding to the detected pressure value is matched according to a correspondence relationship between the pressure and the timbre parameter, include:
    根据压力与频率的对应关系和/或压力与响度的对应关系,匹配出与检测到的压力值相对应的频率值和/或响度值。The frequency value and/or the loudness value corresponding to the detected pressure value are matched according to the correspondence between the pressure and the frequency and/or the correspondence between the pressure and the loudness.
  3. 根据权利要求2所述的声音处理方法,其中,所述音色参数包括频率和响度,所述根据压力与音色参数的对应关系,匹配出与检测到的压力值相对应的音色参数值,包括:The sound processing method according to claim 2, wherein the timbre parameter includes a frequency and a loudness, and the timbre parameter value corresponding to the detected pressure value is matched according to a correspondence relationship between the pressure and the timbre parameter, including:
    判断被按压的区域所属分区;Determining the partition to which the pressed area belongs;
    当被按压的区域属于频率分区时,根据压力与频率的对应关系,匹配出与检测到的压力值相对应的频率值;When the pressed area belongs to the frequency partition, according to the correspondence between the pressure and the frequency, the frequency value corresponding to the detected pressure value is matched;
    当被按压的区域属于响度分区时,根据压力与响度的对应关系,匹配出与检测到的压力值相对应的响度值。When the pressed area belongs to the loudness section, the loudness value corresponding to the detected pressure value is matched according to the correspondence between the pressure and the loudness.
  4. 根据权利要求3所述的声音处理方法,其中,所述判断被按压的区域所属分区之后,还包括:The sound processing method according to claim 3, wherein after determining the partition to which the pressed area belongs, the method further comprises:
    当频率分区和响度分区同时被按压时,根据压力与频率的对应关系,匹配出与检测到的频率分区被按压的压力值相对应的频率值;根据压力与响度的对应关系,匹配出与检测到的响度分区被按压的压力值相对应的响度值。When the frequency partition and the loudness partition are simultaneously pressed, according to the correspondence relationship between the pressure and the frequency, the frequency value corresponding to the pressed pressure value of the detected frequency partition is matched; according to the correspondence between the pressure and the loudness, the matching and detecting are performed. The loudness value of the pressure value to which the loudness zone is pressed corresponds.
  5. 根据权利要求1-4任一项所述的声音处理方法,其中,所述预设的压力与音色参数的对应关系,包括:至少两组压力值区间和音色参数值的配对关系;The sound processing method according to any one of claims 1 to 4, wherein the correspondence between the preset pressure and the timbre parameter comprises: a pairing relationship between at least two sets of pressure value intervals and timbre parameter values;
    所述匹配出与检测到的压力值相对应的音色参数值,包括:The matching the timbre parameter values corresponding to the detected pressure values includes:
    判断检测到的压力值落入的压力值区间,获取落入的压力值区间所对应的音色参数值。The pressure value interval in which the detected pressure value falls is determined, and the timbre parameter value corresponding to the pressure value interval that falls within is obtained.
  6. 一种声音处理装置,包括:A sound processing device comprising:
    压力检测模块,设置为检测终端被按压的压力值;a pressure detecting module configured to detect a pressure value at which the terminal is pressed;
    匹配模块,设置为根据预设的压力与音色参数的对应关系,匹配出与检测到的压力值相对应的音色参数值;The matching module is configured to match the timbre parameter value corresponding to the detected pressure value according to the correspondence between the preset pressure and the timbre parameter;
    调整模块,设置为将播放声源的音色参数值调整为匹配出的音色参数值。 The adjustment module is set to adjust the tone parameter value of the playback source to the matched tone parameter value.
  7. 根据权利要求6所述的声音处理装置,其中,所述音色参数包括频率或/和响度,所述匹配模块设置为:根据压力与频率的对应关系或/和压力与响度的对应关系,匹配出与检测到的压力值相对应的频率值或/和响度值。The sound processing device according to claim 6, wherein the timbre parameter includes a frequency or/and a loudness, and the matching module is configured to: match according to a correspondence relationship between pressure and frequency or/and a correspondence between pressure and loudness A frequency value or/and a loudness value corresponding to the detected pressure value.
  8. 根据权利要求6所述的声音处理装置,其中,所述音色参数包括频率和响度,所述匹配模块设置为:The sound processing device according to claim 6, wherein said tone color parameter includes frequency and loudness, and said matching module is set to:
    判断被按压的区域所属分区;当被按压的区域属于频率分区时,根据压力与频率的对应关系,匹配出与检测到的压力值相对应的频率值;当被按压的区域属于响度分区时,根据压力与响度的对应关系,匹配出与检测到的压力值相对应的响度值。Determining the partition to which the pressed area belongs; when the pressed area belongs to the frequency partition, matching the frequency value corresponding to the detected pressure value according to the correspondence between the pressure and the frequency; when the pressed area belongs to the loudness partition, According to the correspondence between the pressure and the loudness, the loudness value corresponding to the detected pressure value is matched.
  9. 根据权利要求8所述的声音处理装置,其中,所述匹配模块设置为:当频率分区和响度分区同时被按压时,根据压力与频率的对应关系,匹配出与检测到的频率分区被按压的压力值相对应的频率值;根据压力与响度的对应关系,匹配出与检测到的响度分区被按压的压力值相对应的响度值。The sound processing device according to claim 8, wherein the matching module is configured to: when the frequency partition and the loudness partition are simultaneously pressed, match the detected frequency partition to be pressed according to the correspondence between the pressure and the frequency The frequency value corresponding to the pressure value; according to the correspondence between the pressure and the loudness, the loudness value corresponding to the pressure value at which the detected loudness zone is pressed is matched.
  10. 根据权利要求6-9任一项所述的,其中,所述压力与音色参数的对应关系中包括至少两组压力值区间和音色参数值的配对关系,所述匹配模块设置为:判断检测到的压力值落入的压力值区间,获取落入的压力值区间所对应的音色参数值。 The method according to any one of claims 6-9, wherein the correspondence between the pressure and the timbre parameter comprises a pairing relationship between at least two sets of pressure value intervals and timbre parameter values, and the matching module is configured to: determine that the detection is The pressure value range in which the pressure value falls, and the value of the timbre parameter corresponding to the interval of the pressure value falling in is obtained.
PCT/CN2016/106938 2016-06-01 2016-11-23 Sound processing method and device WO2017206450A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610383772.7 2016-06-01
CN201610383772.7A CN107450819A (en) 2016-06-01 2016-06-01 Sound processing method and device

Publications (1)

Publication Number Publication Date
WO2017206450A1 true WO2017206450A1 (en) 2017-12-07

Family

ID=60479680

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/106938 WO2017206450A1 (en) 2016-06-01 2016-11-23 Sound processing method and device

Country Status (2)

Country Link
CN (1) CN107450819A (en)
WO (1) WO2017206450A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110832830A (en) * 2018-03-22 2020-02-21 华为技术有限公司 Volume adjusting method and electronic equipment

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110109568B (en) * 2019-04-29 2023-09-22 努比亚技术有限公司 Image processing method, device and computer readable storage medium
CN113645531B (en) * 2021-08-05 2024-04-16 高敬源 Earphone virtual space sound playback method and device, storage medium and earphone

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070024595A1 (en) * 2005-07-29 2007-02-01 Interlink Electronics, Inc. System and method for implementing a control function via a sensor having a touch sensitive control input surface
CN103164134A (en) * 2011-12-14 2013-06-19 汉王科技股份有限公司 Manipulating device for touch screen and manipulating method thereof
CN104035711A (en) * 2013-03-08 2014-09-10 Lg电子株式会社 Mobile terminal and method of controlling mobile terminal
CN105100492A (en) * 2015-08-11 2015-11-25 努比亚技术有限公司 Pressure feedback system and pressure feedback method
CN105242859A (en) * 2015-08-27 2016-01-13 广东欧珀移动通信有限公司 Voice information processing method and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294183B (en) * 2012-03-05 2017-03-01 联想(北京)有限公司 Terminal unit and its method that pressure is fed back
CN104967744B (en) * 2015-06-26 2019-01-22 努比亚技术有限公司 Adjust the method and device of terminal parameter

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070024595A1 (en) * 2005-07-29 2007-02-01 Interlink Electronics, Inc. System and method for implementing a control function via a sensor having a touch sensitive control input surface
CN103164134A (en) * 2011-12-14 2013-06-19 汉王科技股份有限公司 Manipulating device for touch screen and manipulating method thereof
CN104035711A (en) * 2013-03-08 2014-09-10 Lg电子株式会社 Mobile terminal and method of controlling mobile terminal
CN105100492A (en) * 2015-08-11 2015-11-25 努比亚技术有限公司 Pressure feedback system and pressure feedback method
CN105242859A (en) * 2015-08-27 2016-01-13 广东欧珀移动通信有限公司 Voice information processing method and terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110832830A (en) * 2018-03-22 2020-02-21 华为技术有限公司 Volume adjusting method and electronic equipment
CN110832830B (en) * 2018-03-22 2021-07-09 华为技术有限公司 Volume adjusting method and electronic equipment

Also Published As

Publication number Publication date
CN107450819A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN105874408B (en) Gesture interactive wearable spatial audio system
JP7071508B2 (en) Methods for volume control, computer-readable storage media and equipment
US10403255B2 (en) Audio processing method, apparatus and system
US20140105411A1 (en) Methods and systems for karaoke on a mobile device
US9281793B2 (en) Systems, methods, and apparatus for generating an audio signal based on color values of an image
WO2017206450A1 (en) Sound processing method and device
CN108174031B (en) Volume adjusting method, terminal equipment and computer readable storage medium
CN109151634A (en) Wireless headset method for controlling volume, wireless headset and mobile terminal
CN106971704B (en) Audio processing method and mobile terminal
CN110741435B (en) Method, system, and medium for audio signal processing
CN109982231B (en) Information processing method, device and storage medium
CN101667422A (en) Method and device for adjusting mode of song accompaniment
US9053710B1 (en) Audio content presentation using a presentation profile in a content header
CN105788581A (en) Karaoke scoring method and device
CN110931019B (en) Public security voice data acquisition method, device, equipment and computer storage medium
CN106601268B (en) Multimedia data processing method and device
JP5609431B2 (en) Volume control device, volume control method and program
JP6409652B2 (en) Karaoke device, program
US20120254751A1 (en) Apparatus and method for processing sound source
JP2012220547A (en) Sound volume control device, sound volume control method, and content reproduction system
JP2018170678A (en) Live video processing system, live video processing method, and program
JP2014075791A (en) Hand-held device and sound volume adjustment method
CN106448710B (en) A kind of calibration method and music player devices of music play parameters
CN104007951B (en) A kind of information processing method and electronic equipment
CN113596353A (en) Somatosensory interaction data processing method and device and somatosensory interaction equipment

Legal Events

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

Ref document number: 16903830

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16903830

Country of ref document: EP

Kind code of ref document: A1