[go: up one dir, main page]

CN110401772B - Ringtone setting method, ringtone setting device, mobile terminal and storable medium - Google Patents

Ringtone setting method, ringtone setting device, mobile terminal and storable medium Download PDF

Info

Publication number
CN110401772B
CN110401772B CN201910661772.2A CN201910661772A CN110401772B CN 110401772 B CN110401772 B CN 110401772B CN 201910661772 A CN201910661772 A CN 201910661772A CN 110401772 B CN110401772 B CN 110401772B
Authority
CN
China
Prior art keywords
ringtone
loudness
sound data
preset
frequency
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
CN201910661772.2A
Other languages
Chinese (zh)
Other versions
CN110401772A (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.)
MIGU Interactive Entertainment Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
MIGU Interactive Entertainment Co Ltd
MIGU Culture Technology 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 MIGU Interactive Entertainment Co Ltd, MIGU Culture Technology Co Ltd filed Critical MIGU Interactive Entertainment Co Ltd
Priority to CN201910661772.2A priority Critical patent/CN110401772B/en
Publication of CN110401772A publication Critical patent/CN110401772A/en
Application granted granted Critical
Publication of CN110401772B publication Critical patent/CN110401772B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/04Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations
    • H04M19/041Encoding the ringing signal, i.e. providing distinctive or selective ringing capability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/04Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations
    • H04M19/042Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations with variable loudness of the ringing tone, e.g. variable envelope or amplitude of ring signal

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

The embodiment of the invention relates to the field of automatic setting of terminals, and discloses a ringtone setting method, a ringtone setting device, a mobile terminal and a storable medium. The ringtone setting method comprises the following steps: acquiring environmental sound data; analyzing the environmental sound data and determining the first loudness of the environmental sound data; acquiring the ring meeting preset conditions as a target ring, wherein the preset conditions comprise: the loudness of the ringtone is greater than the first loudness. The above scheme can make the set target ring tone easier to be heard by the user.

Description

铃声设置方法、铃声设置装置、移动终端和可存储介质Ringtone setting method, ringtone setting device, mobile terminal and storable medium

技术领域technical field

本发明实施例涉及终端自动设置领域,特别涉及铃声设置方法、铃声设置装置、移动终端和可存储介质。The embodiments of the present invention relate to the field of automatic terminal setting, and in particular, to a ringtone setting method, a ringtone setting device, a mobile terminal and a storable medium.

背景技术Background technique

随着网络技术的发展,手机已成为人们生活必不可少的通信产品,在实际的使用中,接听电话、接收信息、接收提醒等功能一般都采用铃声提醒的方式,那么,保证铃声提醒及时被用户听到就十分关键。With the development of network technology, mobile phones have become an indispensable communication product in people's lives. In actual use, ringtone reminders are generally used for functions such as answering calls, receiving information, and receiving reminders. It is critical that users hear it.

现有技术中,手机预设有多种模式,如户外模式、会议模式、静音模式等,用户可以根据需求设定不同的情景模式。但本申请发明人发现:手机预设的多种模式中,响铃的差别来自铃声音量,也就是在不同模式中,将铃声调整为不同的音量,而在噪声环境下,虽然用户将手机设置为户外模式(音量已经很高),也可能因手机距离过远,或噪声太大无法听到手机的来电响铃,以至于造成漏接重要电话的情况。In the prior art, a mobile phone is preset with various modes, such as an outdoor mode, a conference mode, a silent mode, etc., and the user can set different scene modes according to requirements. However, the inventor of the present application found that: in the preset multiple modes of the mobile phone, the difference in the ringtone comes from the volume of the ringtone, that is, in different modes, the ringtone is adjusted to a different volume. It is in outdoor mode (the volume is already high), and the phone may be too far away or the noise may be too loud to hear the phone's ringing, which may result in missing important calls.

发明内容SUMMARY OF THE INVENTION

本发明实施方式的目的在于提供一种铃声设置方法、移动终端和可存储介质,使得设置的目标铃声更容易被用户听到。The purpose of the embodiments of the present invention is to provide a ringtone setting method, a mobile terminal and a storable medium, so that the set target ringtone can be more easily heard by the user.

为解决上述技术问题,本发明的实施方式提供了一种铃声设置方法,包括:获取环境声音数据;解析所述环境声音数据,确定所述环境声音数据的第一响度;获得符合预设条件的铃声作为目标铃声,其中,所述预设条件包括:所述铃声的响度大于所述第一响度。To solve the above technical problems, embodiments of the present invention provide a method for setting a ringtone, including: acquiring ambient sound data; parsing the ambient sound data to determine the first loudness of the ambient sound data; The ringtone is used as the target ringtone, wherein the preset condition includes: the loudness of the ringtone is greater than the first loudness.

本发明的实施方式还提供了一种铃声设置方法,包括:获取模块,用于获取环境声音数据;解析模块,用于解析所述环境声音数据,确定所述环境声音数据的第一响度;目标铃声确定模块,用于获得符合预设条件的铃声作为目标铃声,其中,所述预设条件包括:所述铃声的响度大于所述第一响度。An embodiment of the present invention also provides a method for setting a ringtone, including: an acquisition module for acquiring ambient sound data; a parsing module for parsing the ambient sound data to determine a first loudness of the ambient sound data; a target A ringtone determination module, configured to obtain a ringtone that meets a preset condition as a target ringtone, wherein the preset condition includes: the loudness of the ringtone is greater than the first loudness.

本发明的实施方式还提供了一种移动终端,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如上述的铃声设置方法。Embodiments of the present invention further provide a mobile terminal, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores data executable by the at least one processor The instructions are executed by the at least one processor to enable the at least one processor to execute the ringtone setting method as described above.

本发明的实施方式还提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现如上述的铃声设置方法。Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the above-mentioned method for setting a ringtone can be implemented.

本发明实施方式相对于现有技术而言,避免现有调节铃声时基于音量调节的方法,而采用更代表人耳对声音的敏感度的响度参数,避免从音量的响和轻设置目标铃声,而是从响度角度设置目标铃声,具体通过测得环境声音的响度参数,分析出当时用户容易识别到的铃声的响度范围,获得符合预设条件的铃声作为目标铃声,使得设置的目标铃声更易被用户听到,从而使得铃声提醒更为有效。Compared with the prior art, the embodiment of the present invention avoids the existing method based on volume adjustment when adjusting the ringtone, and adopts a loudness parameter that is more representative of the sensitivity of the human ear to sound, so as to avoid setting the target ringtone from the loudness of the volume and lightness. Instead, set the target ringtone from the perspective of loudness. Specifically, by measuring the loudness parameters of the ambient sound, analyze the loudness range of the ringtone that is easily recognized by the user at that time, and obtain the ringtone that meets the preset conditions as the target ringtone, which makes the set target ringtone easier to be read. The user hears, thereby making the ringtone reminder more effective.

作为进一步改进,所述获取环境声音数据,具体为:在铃声响铃时长超过预设时长后,获取环境声音数据;或者,在来电铃声被触发后,获取环境声音数据,本实施例明确获取环境声音数据的3种时机。As a further improvement, the acquiring ambient sound data is specifically: acquiring ambient sound data after the ringing duration exceeds a preset duration; or acquiring ambient sound data after the ringtone is triggered, and this embodiment explicitly acquires ambient sound data 3 timings of sound data.

作为进一步改进,所述解析所述环境声音数据,确定所述环境声音数据的第一响度,包括:根据频率信息,将所述环境声音数据分为多个频段;获取各个频段的声压级;根据各个频段的声压级确定各个频段的响度;根据各个频段的响度计算出所述环境声音数据的总响度;将所述总响度作为所述第一响度。本实施例明确具体的解析方法。As a further improvement, the analyzing the ambient sound data to determine the first loudness of the ambient sound data includes: dividing the ambient sound data into multiple frequency bands according to the frequency information; acquiring the sound pressure level of each frequency band; The loudness of each frequency band is determined according to the sound pressure level of each frequency band; the total loudness of the ambient sound data is calculated according to the loudness of each frequency band; and the total loudness is used as the first loudness. This embodiment specifies the specific analysis method.

作为进一步改进,所述将所述环境声音数据分为多个频段,具体为:将所述环境声音数据中属于预设频段范围的数据分为多个频段。本实施例通过设置预设频段,避免解析极端数据,提高解析效率。As a further improvement, the dividing the ambient sound data into multiple frequency bands is specifically: dividing the data belonging to the preset frequency band range in the ambient sound data into multiple frequency bands. In this embodiment, by setting a preset frequency band, the analysis of extreme data is avoided, and the analysis efficiency is improved.

作为进一步改进,根据各个频段的响度,利用以下公式计算出所述环境声音数据的总响度:

Figure BDA0002138800490000021
其中,所述α为倍频程,所述Si为第i个频段的响度,所述Smax为n个频段中的最大响度。本实施例明确总响度的计算公式。As a further improvement, according to the loudness of each frequency band, the following formula is used to calculate the total loudness of the ambient sound data:
Figure BDA0002138800490000021
Wherein, the α is an octave, the Si is the loudness of the ith frequency band, and the Smax is the maximum loudness in the n frequency bands. This embodiment specifies the calculation formula of the total loudness.

作为进一步改进,所述预设条件还包括:所述目标铃声的频率和声压级均大于所述各个频段中响度最大的频段对应的频率和声压级。本实施例参考频率和声压级,使得选取的目标铃声效果更好。As a further improvement, the preset condition further includes: both the frequency and the sound pressure level of the target ringtone are greater than the frequency and the sound pressure level corresponding to the frequency band with the largest loudness among the frequency bands. In this embodiment, the frequency and the sound pressure level are referenced, so that the selected target ringtone has a better effect.

作为进一步改进,所述预设条件还包括:所述目标铃声的响度和所述第一响度的差值小于预设值。本实施例明确目标铃声的响度要尽量小,由于发明人发现响度越大越可能对悦耳度有影响,过大的响度虽然容易听到,也会造成感官体验差。As a further improvement, the preset condition further includes: the difference between the loudness of the target ringtone and the first loudness is less than a preset value. This embodiment clarifies that the loudness of the target ringtone should be as small as possible, because the inventor found that the louder the louder, the more likely it will have an impact on the pleasantness. Excessive loudness is easy to hear, but will also cause poor sensory experience.

作为进一步改进,所述获得符合预设条件的铃声作为目标铃声,具体为:从预设的铃声库中选取符合预设条件的铃声作为所述目标铃声;或者,调整预设铃声的频率直至调整后的预设铃声符合所述预设条件,将符合所述预设条件的调整后的预设铃声作为所述目标铃声。有多种方式可以获得符合预设条件的目标铃声,可以根据实际需求选定获得方案,使得实施方式更为灵活多变。As a further improvement, obtaining the ringtone that meets the preset condition as the target ringtone is specifically: selecting the ringtone that meets the preset condition from the preset ringtone library as the target ringtone; or, adjusting the frequency of the preset ringtone until the adjustment is made. The latter preset ringtone meets the preset condition, and the adjusted preset ringtone that meets the preset condition is used as the target ringtone. There are various ways to obtain the target ringtone that meets the preset conditions, and the obtaining scheme can be selected according to actual needs, which makes the implementation more flexible.

作为进一步改进,若通过从所述铃声库中选取符合预设条件的铃声作为所述目标铃声,则判断选到的符合所述预设条件的铃声数量,在选到的铃声数量大于1个时,选取响度最小的铃声作为目标铃声。As a further improvement, if the ringtones that meet the preset conditions are selected from the ringtone library as the target ringtones, the number of the selected ringtones that meet the preset conditions is determined, and when the number of the selected ringtones is greater than 1 , select the ringtone with the least loudness as the target ringtone.

附图说明Description of drawings

一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings, and these exemplifications do not constitute limitations of the embodiments, and elements with the same reference numerals in the drawings are denoted as similar elements, Unless otherwise stated, the figures in the accompanying drawings do not constitute a scale limitation.

图1是根据本发明第一实施方式中的铃声设置方法流程图;1 is a flowchart of a method for setting a ringtone according to a first embodiment of the present invention;

图2是根据本发明第一实施方式中的铃声设置方法中解析环境声音数据的流程图;Fig. 2 is the flow chart of parsing ambient sound data in the ringtone setting method according to the first embodiment of the present invention;

图3是根据本发明第一实施方式中的铃声设置方法中等响度曲线示意图;3 is a schematic diagram of a medium loudness curve according to a method for setting a ringtone in the first embodiment of the present invention;

图4是根据本发明第三实施方式中的铃声设置方法流程图;4 is a flowchart of a method for setting a ringtone according to a third embodiment of the present invention;

图5是根据本发明第四实施方式中的铃声设置装置示意图;5 is a schematic diagram of a ringtone setting device according to a fourth embodiment of the present invention;

图6是根据本发明第五实施方式中的移动终端示意图。FIG. 6 is a schematic diagram of a mobile terminal according to a fifth embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本发明的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。In order to make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the various embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can appreciate that, in the various embodiments of the present invention, many technical details are set forth in order for the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be realized. The following divisions of the various embodiments are for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention, and the various embodiments may be combined with each other and referred to each other on the premise of not contradicting each other.

本发明的第一实施方式涉及一种铃声设置方法。The first embodiment of the present invention relates to a ringtone setting method.

本实施方式应用于一种移动终端,如用户的手机、平板电脑PAD等,以手机为例,用户在手机开机状态下,可以接到另一用户来电,手机在接收到来电的通话请求时,会发出来电铃声以提醒用户接听。本申请发明人发现,现有虽然可以根据环境噪声的分贝来自动调节响铃音量,但当周围环境异常嘈杂时,即便响铃音量已经调大,但依然存在手机来电响铃无法被用户听到的问题。This embodiment is applied to a mobile terminal, such as a user's mobile phone, a tablet computer PAD, etc. Taking a mobile phone as an example, when the mobile phone is turned on, the user can receive an incoming call from another user, and when the mobile phone receives a call request for an incoming call, A ringtone will sound to remind the user to answer. The inventor of the present application found that although the existing ringer volume can be automatically adjusted according to the decibel of the ambient noise, when the surrounding environment is abnormally noisy, even if the ringer volume has been turned up, there is still a mobile phone ringing that cannot be heard by the user The problem.

本实施方式中铃声设置方法的流程如图1所示,具体如下:The flow of the ringtone setting method in this embodiment is shown in FIG. 1, and the details are as follows:

步骤101,获取环境声音数据。Step 101, obtaining ambient sound data.

具体的说,环境声音数据可以包括环境噪声,更具体的说,本实施方式可以通过噪声采集麦克风(降噪麦克风)采集环境噪声。在一个例子中,可以采集1秒或2秒时长的声音数据用作后续的处理。通过预设时长的环境噪声,可以基本了解当时的环境声音,避免持续采集造成的处理数据过多,有助于加快处理速度。在另一个例子中,还可以采用分贝仪等组件进行环境声音的获取,分贝仪可以对环境声音数据进行标准化采样,供后续的分析处理,实际应用中,还可以采用其他组件获取环境声音数据,在此不再一一列举。Specifically, the ambient sound data may include ambient noise. More specifically, in this embodiment, ambient noise may be collected by a noise collection microphone (a noise reduction microphone). In one example, 1 second or 2 second duration of sound data may be collected for subsequent processing. Through the environmental noise of the preset duration, you can basically understand the ambient sound at that time, avoid excessive processing data caused by continuous collection, and help speed up the processing speed. In another example, components such as a decibel meter can also be used to acquire ambient sound. The decibel meter can standardize the sampling of ambient sound data for subsequent analysis and processing. In practical applications, other components can also be used to acquire ambient sound data. I will not list them one by one here.

具体的说,可以在铃声响铃时长超过预设时长后,获取环境声音数据。一般有来电呼入时,手机先播放默认铃声以提醒用户,之后监测响铃时长,终端可以从有来电呼入开始计时,通过计时到的时长和预设阈值作比较,当计时到的时长达到阈值时,触发获取环境声音数据。如设置阈值为3秒,当铃声响铃时长超过3秒,则获取环境声音数据,在另一个例子中,设置的时长也可以是5秒,在此不做限定。由于有时用户可以听到来电铃声,很快就会接听,那么这种情况下可以不调整铃声,所以利用预设时长延后获取环境声音数据,减少无效的数据处理,降低系统功耗。Specifically, the ambient sound data may be acquired after the ringing duration of the ringtone exceeds the preset duration. Generally, when there is an incoming call, the mobile phone will first play the default ringtone to remind the user, and then monitor the ringing duration. When the threshold is reached, it triggers the acquisition of ambient sound data. For example, if the threshold is set to 3 seconds, the ambient sound data will be acquired when the ringing duration exceeds 3 seconds. In another example, the set duration may also be 5 seconds, which is not limited here. Because sometimes the user can hear the ringtone of the incoming call and will answer it soon, in this case, it is not necessary to adjust the ringtone, so use the preset time delay to obtain ambient sound data, reduce invalid data processing, and reduce system power consumption.

实际应用中,可以在来电铃声被触发后,直接获取环境声音数据。具体获取时机可以根据实际情况设置,在此不做限定。In practical applications, the ambient sound data can be obtained directly after the ringtone of the incoming call is triggered. The specific acquisition timing can be set according to the actual situation, which is not limited here.

另外,还可以进一步根据用户手机的响铃模式确定是否需要获取,如在设置为静音模式或震动模式时,由于不需要触发响铃,则不获取环境声音数据,如在设置为响铃模式时,则在符合获取条件时进行获取。In addition, it can be further determined whether it needs to be acquired according to the ringing mode of the user's mobile phone. For example, when the silent mode or vibration mode is set, the ambient sound data is not acquired because the ringing does not need to be triggered. For example, when the ringing mode is set , the acquisition is performed when the acquisition conditions are met.

步骤102,解析环境声音数据,确定环境声音数据的第一响度。Step 102: Parse the ambient sound data to determine the first loudness of the ambient sound data.

具体的说,由于人耳具有听觉特性,对于不同频段的声音,人耳的敏感度是不同的,过高和过低的频段,都不敏感。且即便是相同的音量,但基于不同频段,存在不同频段对应的声音,人耳针对不同频段对应的声音具有不同的听觉效果。响度,可以定量反映声音的响亮程度,响度与频率和声压级相关,更能表征人耳听到时的敏感程度。因此,本申请发明人想到通过计算环境声音数据的响度值作为后续选取单频铃声的依据。Specifically, due to the auditory characteristics of the human ear, the sensitivity of the human ear to sounds of different frequency bands is different, and the frequency bands that are too high and too low are not sensitive. And even if the volume is the same, but based on different frequency bands, there are sounds corresponding to different frequency bands, and the human ear has different auditory effects for the sounds corresponding to different frequency bands. Loudness can quantitatively reflect the loudness of the sound. Loudness is related to frequency and sound pressure level, and can better represent the sensitivity of the human ear when it is heard. Therefore, the inventor of the present application thought of calculating the loudness value of the ambient sound data as the basis for the subsequent selection of single-frequency ringtones.

在一个例子中,解析环境声音数据可以如图2所示,包括以下几个步骤:In one example, parsing ambient sound data can be shown in Figure 2, including the following steps:

步骤201,根据频率信息,将环境声音数据分为多个频段。Step 201: Divide the ambient sound data into multiple frequency bands according to the frequency information.

具体的说,首先进行频段划分,可以按照倍频程、1/2倍频程或者1/3倍频程进行划分,之后获取每个频段的声压级(dB)。Specifically, the frequency band is first divided, which may be divided according to octave, 1/2 octave or 1/3 octave, and then the sound pressure level (dB) of each frequency band is obtained.

在一个例子中,将环境声音数据中属于预设频段范围的数据分为多个频段。虽然人耳的听阈范围为20Hz~20KHz,但人耳的听觉系统具有滤波功能,可以在不同频率的声音环境中,自动过滤掉低频声音。所以由于环境声音数据中的低频声音将会被人耳过滤,并不会影响人的听力感知,因此,在环境声音数据中,仅提取对人耳来说较为敏感的200~6400Hz的声音数据,以便减少总的数据处理量。In one example, data belonging to a preset frequency band range in the ambient sound data is divided into multiple frequency bands. Although the hearing threshold of the human ear ranges from 20Hz to 20KHz, the auditory system of the human ear has a filtering function, which can automatically filter out low-frequency sounds in a sound environment with different frequencies. Therefore, since the low-frequency sound in the ambient sound data will be filtered by the human ear, it will not affect the human hearing perception. Therefore, in the ambient sound data, only the sound data of 200-6400 Hz, which is more sensitive to the human ear, is extracted. in order to reduce the overall data processing volume.

步骤202,获取各个频段的声压级。Step 202, acquiring the sound pressure level of each frequency band.

本实施方式以1/2倍频程为例进行说明,划分后的各频段如下表(1)所示:This embodiment is described by taking 1/2 octave as an example, and the divided frequency bands are shown in the following table (1):

频段(Hz)Frequency band (Hz) 200~400200~400 400~800400~800 800~1600800~1600 1600~32001600~3200 3200~64003200~6400 主频率(Hz)Main frequency (Hz) 300300 600600 12001200 24002400 48004800 声压级(dB)Sound pressure level (dB) 4848 5454 6060 4242 5757

表(1)Table 1)

此外,实际应用中也可以采用其他倍频程,在此不做限定。In addition, other octaves can also be used in practical applications, which are not limited here.

步骤203,根据各个频段的声压级确定各个频段的响度Si。Step 203: Determine the loudness Si of each frequency band according to the sound pressure level of each frequency band.

具体的说,频率、声压级以及响度的对应表格为预存表格,其数据可反映为下图的等响度曲线,可以如图3所示,图3中横轴表示频率,纵轴表示声压级,在确定频率和声压级后,通过图3中的对应关系确定每个频段的响度,获得响度后,共同存至下表(2)中以备后续数据处理。Specifically, the corresponding table of frequency, sound pressure level and loudness is a pre-stored table, and its data can be reflected as the equal loudness curve in the figure below, which can be shown in Figure 3. In Figure 3, the horizontal axis represents frequency, and the vertical axis represents sound pressure. After the frequency and sound pressure level are determined, the loudness of each frequency band is determined by the corresponding relationship in Figure 3. After the loudness is obtained, it is stored in the following table (2) for subsequent data processing.

频段(Hz)Frequency band (Hz) 200~400200~400 400~800400~800 800~1600800~1600 1600~32001600~3200 3200~64003200~6400 主频率(Hz)Main frequency (Hz) 300300 600600 12001200 24002400 48004800 声压级(dB)Sound pressure level (dB) 4848 5656 6060 4242 3939 响度(sone)Loudness (sone) 1.861.86 3.733.73 4.024.02 1.411.41 1.621.62

表(2)Table 2)

步骤204,根据各个频段的响度计算出环境声音数据的总响度。Step 204: Calculate the total loudness of the ambient sound data according to the loudness of each frequency band.

具体的说,可以利用以下公式(1)计算出环境声音数据的总响度:Specifically, the total loudness of the ambient sound data can be calculated using the following formula (1):

Figure BDA0002138800490000051
Figure BDA0002138800490000051

其中,α为和倍频程有关的常量,Si为第i个频段的响度,Smax为n个频段中的最大响度。其中,若倍频程为1,则α=0.3;若倍频程为1/2,则α=0.2;若倍频程为1/3,则α=0.15。Among them, α is a constant related to the octave, Si is the loudness of the ith frequency band, and Smax is the maximum loudness in the n frequency bands. Wherein, if the octave is 1, then α=0.3; if the octave is 1/2, then α=0.2; if the octave is 1/3, then α=0.15.

以上表(2)为例,可以获知,α=0.2,同时五个频段的响度最大值Smax为4.02,对应地,响度最大值所在的频段的主频率为1200Hz,声压级为60dB。再根据上表(2)中的其他数据列出以下计算式(2):Table (2) above is an example, it can be known that α=0.2, and the maximum loudness Smax of the five frequency bands is 4.02. Correspondingly, the main frequency of the frequency band where the maximum loudness is located is 1200 Hz, and the sound pressure level is 60 dB. According to other data in the above table (2), the following calculation formula (2) is listed:

S=0.3(1.86+3.73+4.02+1.41+1.62)+0.7×4.02=6.61; (2) Stotal =0.3(1.86+3.73+4.02+1.41+1.62)+0.7×4.02=6.61; (2)

继续说明,可以将总响度作为第一响度,也就是说,本实施方式计算出的第一响度为6.61。Continuing the description, the total loudness can be used as the first loudness, that is, the first loudness calculated in this embodiment is 6.61.

步骤103,从预存的铃声库中选取符合预设条件的铃声作为目标铃声。Step 103: Select a ringtone that meets the preset condition from the pre-stored ringtone library as the target ringtone.

本实施方式预设了包含一系列单频铃声的铃声库,具体如下表(3):This embodiment presets a ringtone library containing a series of single-frequency ringtones, as shown in the following table (3):

频率(Hz)Frequency (Hz) 声压级(dB)Sound pressure level (dB) 响度(sone)Loudness (sone) 铃声1Ringtone 1 10001000 6060 3.863.86 铃声2Ringtone 2 11001100 7070 9.199.19 铃声3Ringtone 3 20002000 7070 9.859.85 铃声4Ringtone 4 25002500 6060 5.665.66 铃声5Ringtone 5 30003000 6565 10.5610.56

表(3)table 3)

在一个例子中,用户手机中预存有预定数量的单频铃声,该单频铃声均为不会使得用户耳朵感到疼痛的铃声,并且在客户端保存有以上单频铃声的频率、声压级和响度的对应数据。在一个例子中,预存的单频铃声可以以铃声库的方式存于服务器,之后可以根据特定的机制下载至本地。如用户根据喜好预先下载;或可以在用户开机,且连接无线网络时下载等等,在此不再一一列举。In an example, a predetermined number of single-frequency ringtones are pre-stored in the user's mobile phone, and the single-frequency ringtones are all ringtones that do not cause pain to the user's ears, and the frequency, sound pressure level and frequency of the single-frequency ringtones are stored in the client. Corresponding data for loudness. In one example, the pre-stored single-frequency ringtones can be stored in the server in the form of a ringtone library, and then can be downloaded locally according to a specific mechanism. For example, the user pre-downloads according to their preferences; or it can be downloaded when the user is turned on and connected to a wireless network, etc., which will not be listed here.

继续说明,在一个例子中,选取预设铃声时所需符合的预设条件可以包括:目标铃声的响度大于第一响度(即S),在另一个例子中,预设条件还可以包括:目标铃声的频率和声压级均大于各个频段中响度最大的频段对应的频率和声压级。也就是说,选取的目标铃声满足以下条件:尽可能接近噪声纵向度S,且比S响度大的铃声,这一点主要考虑,如果直选取的铃声响度比环境声音的总响度S大很多,虽然可以使用户更易听到,但可能会使得声音过于突兀。以上述表(3)为例,响度大于6.61的是:铃声2(9.19)、铃声3(9.85)和铃声5(10.56)。Continuing to explain, in one example, the preset conditions that need to be met when selecting the preset ringtone may include: the loudness of the target ringtone is greater than the first loudness (that is, S total ), and in another example, the preset conditions may also include: The frequency and sound pressure level of the target ringtone are both greater than the frequency and sound pressure level corresponding to the loudest frequency band in each frequency band. That is to say, the selected target ringtone satisfies the following conditions: a ringtone that is as close as possible to the noise longitudinal degree Stotal and is louder than the total S Many, while making it easier for the user to hear, may make the sound too obtrusive. Taking the above table (3) as an example, those with loudness greater than 6.61 are: ringtone 2 (9.19), ringtone 3 (9.85) and ringtone 5 (10.56).

在一个例子中,选取的目标铃声可以是铃声2、铃声3和铃声5之一,选出的目标铃声持续播放。如可以设置预设条件包括目标铃声的响度和第一响度的差值小于预设值,本实施方式中可以设置预设值为3,也就是说,选出响度大于6.61,且差值小于3的铃声作为目标铃声,那么本实施方式中,响度大于6.61,且差值小于3的铃声为铃声2。In one example, the selected target ringtone may be one of ringtone 2, ringtone 3 and ringtone 5, and the selected target ringtone is continuously played. For example, the preset condition can be set to include that the difference between the loudness of the target ringtone and the first loudness is less than the preset value, in this embodiment, the preset value can be set to 3, that is, the selected loudness is greater than 6.61, and the difference is less than 3 As the target ringtone, in this embodiment, the ringtone whose loudness is greater than 6.61 and the difference is less than 3 is the ringtone 2.

在另一个例子中,预设的铃声库中铃声可以包括:对某一铃声预先调频率处理后得到的多个不同频率的铃声,在选取目标铃声时,根据变频处理后的多个铃声响度值选取。In another example, the preset ringtones in the ringtone library may include: a plurality of ringtones with different frequencies obtained after pre-frequency modulation of a certain ringtone, when selecting a target ringtone, according to the frequency conversion processed multiple ringtone loudness values Select.

在另一个例子中,若从铃声库中选到的符合预设条件的铃声数量大于1个,则可以选取响度最小的铃声作为目标铃声。根据上表(3),符合预设条件的铃声中,响度最小的铃声为铃声2,那么选出的目标铃声即为铃声2。In another example, if the number of selected ringtones from the ringtone library that meets the preset condition is greater than one, the ringtone with the smallest loudness can be selected as the target ringtone. According to the above table (3), among the ringtones that meet the preset conditions, the ringtone with the smallest loudness is the ringtone 2, and then the selected target ringtone is the ringtone 2.

在另一个例子中,可以依次播放选取出的铃声2、铃声3、铃声5,依次播放时可以根据响度从低到高的方式进行播放,使得播放的铃声越来越突出,越来越容易被用户听到。In another example, the selected ringtone 2, ringtone 3, and ringtone 5 can be played in sequence, and they can be played according to the loudness from low to high when playing in sequence, so that the played ringtone becomes more and more prominent and easier to be read. user hears.

需要说明的是,本实施方式中虽然以包括五个铃声的铃声库为例进行说明,而实际应用中,铃声库中的铃声也可以更多,如10个,在此不再一一列举。再者,本实施方式中虽然以单频铃声为例,但实际应用中,另外,还可以先根据环境声音数据分析出所需的目标铃声的条件,再根据目标铃声的条件从铃声库中下载符合的铃声,选取方式在此不再一一列举。It should be noted that, although a ringtone library including five ringtones is used as an example for description in this embodiment, in practical applications, there may be more ringtones in the ringtone library, such as 10, which will not be listed one by one here. Furthermore, although single-frequency ringtones are used as an example in this embodiment, in practical applications, in addition, the conditions of the required target ringtones can be analyzed first according to the environmental sound data, and then downloaded from the ringtone library according to the conditions of the target ringtones. The matching ringtones, the selection method will not be listed here.

可见,本实施方式中避免现有调节铃声时基于音量调节的方法,而采用更代表人耳对声音的敏感度的响度参数,避免从音量的响和轻设置目标铃声,而是从响度角度设置目标铃声,具体通过测得环境声音的响度参数,分析出当时用户容易识别到的铃声的响度范围,结合预设的铃声库,从铃声库中选取出符合预设条件的铃声,使得设置的目标铃声更易被用户听到,从而使得铃声提醒更为有效。It can be seen that in this embodiment, the existing method based on volume adjustment when adjusting the ringtone is avoided, and a loudness parameter that is more representative of the sensitivity of the human ear to sound is used, so as to avoid setting the target ringtone from the loudness and lightness of the volume, but from the loudness angle. The target ringtone, specifically by measuring the loudness parameters of the ambient sound, analyzes the loudness range of the ringtone that the user can easily identify at that time, and combines the preset ringtone library to select the ringtone that meets the preset conditions from the ringtone library, so that the set target Ringtones are more easily heard by users, making ringtone alerts more effective.

本发明的第二实施方式涉及一种铃声设置方法。第二实施方式是在第一实施方式的基础上进一步改进,主要改进之处在于:在本发明第二实施方式中,选取目标铃声时的预设条件可以增加:目标铃声的频率和声压级均大于各个频段中响度最大的频段对应的频率和声压级,使得选取的目标铃声的效果更好。The second embodiment of the present invention relates to a ringtone setting method. The second embodiment is a further improvement on the basis of the first embodiment, and the main improvement lies in: in the second embodiment of the present invention, the preset conditions when selecting the target ringtone can be increased: the frequency and sound pressure level of the target ringtone Both are greater than the frequency and sound pressure level corresponding to the loudest frequency band in each frequency band, so that the effect of the selected target ringtone is better.

具体的说,以上述表(2)的分析数据和表(3)的铃声库为例,以响度条件选出的三个铃声为铃声2、铃声3和铃声5,继续以本实施方式中的频率和声压级条件进行选取,具体的说,响度最大的频段的频率为1200Hz,对应的声压级为60dB,所以铃声2、铃声3和铃声5中频率大于1200Hz,声压级大于60dB的铃声为铃声3,也就是说,选出的目标铃声为铃声3。Specifically, taking the analysis data of Table (2) and the ringtone library of Table (3) as examples, the three ringtones selected by the loudness condition are Ringtone 2, Ringtone 3 and Ringtone 5. The frequency and sound pressure level conditions are selected. Specifically, the frequency of the loudest frequency band is 1200Hz, and the corresponding sound pressure level is 60dB, so the frequency of ringtone 2, ringtone 3 and ringtone 5 is greater than 1200Hz, and the sound pressure level is greater than 60dB. The ringtone is ringtone 3, that is, the selected target ringtone is ringtone 3.

可见,本实施方式不仅以响度为依据选取目标铃声,还结合频率和声压级为依据选取,使得选取出的目标铃声更易被用户听到,进一步提升选取出的目标铃声的效果。It can be seen that this embodiment not only selects the target ringtone based on the loudness, but also selects the target ringtone based on the frequency and the sound pressure level, so that the selected target ringtone is easier to be heard by the user and further improves the effect of the selected target ringtone.

本发明的第三实施方式涉及一种铃声设置方法。第三实施方式和第一实施方式大致相同,主要区别之处在于:第一实施方式中获取目标铃声是通过从预设铃声库中选取的方式获取,而本实施方式中是通过对预设的铃声进行频率调整的方式获取,提供另一种目标铃声的获取方式。A third embodiment of the present invention relates to a ringtone setting method. The third embodiment is roughly the same as the first embodiment, and the main difference is that: in the first embodiment, the target ringtone is obtained by selecting from the preset ringtone library, while in this embodiment, the target ringtone is obtained by The frequency adjustment of the ringtone is used to obtain another way to obtain the target ringtone.

本实施方式中铃声设置方法的流程图如图4所示,具体如下:The flowchart of the ringtone setting method in this embodiment is shown in FIG. 4 , and the details are as follows:

本实施方式中步骤401和步骤402与第一实施方式中的步骤101和步骤102相类似,在此不再赘述。Steps 401 and 402 in this embodiment are similar to steps 101 and 102 in the first embodiment, and are not repeated here.

步骤403,调整预设铃声的频率直至调整后的预设铃声符合预设条件,将符合预设条件的调整后的预设铃声作为目标铃声。Step 403: Adjust the frequency of the preset ringtone until the adjusted preset ringtone meets the preset condition, and use the adjusted preset ringtone that meets the preset condition as the target ringtone.

具体的说,由于人耳对不同频率的声音的敏感程度不同,即使响度相同,也会产生不同的听觉效果,又由于在改变频率后,响度参数也会相应变化,所以本实施方式将用户预设的铃声进行频率调整,使得调整后的铃声符合预设条件,即可以使得调整后的铃声符合响度大于第一响度。Specifically, since the human ear has different degrees of sensitivity to sounds of different frequencies, even if the loudness is the same, different auditory effects will be produced, and since the loudness parameter will also change correspondingly after the frequency is changed, this embodiment makes the user preset The frequency of the set ringtone is adjusted so that the adjusted ringtone complies with the preset condition, that is, the adjusted ringtone can meet the loudness greater than the first loudness.

本实施方式中,调整铃声的频率可以通过音频处理软件实现,还可以通过基频放缩方式实现:具体对信号中的频率分量同时乘以一个比例因子。例如一个信号中包含f1和f2两个频率成分,乘以比例因子a之后,该信号中的频率变成af1和af2。在这个过程中,除了把基准频率调整到需要的调上,还可以修改相应的谐波成分,并保持原始的倍数关系。根据音律学定义,当a=2时,音调提高了八度,当a=0.5时,音调降低了八度。In this embodiment, adjusting the frequency of the ringtone can be implemented by audio processing software, or can also be implemented by a fundamental frequency scaling method: specifically, the frequency components in the signal are multiplied by a scale factor at the same time. For example, a signal contains two frequency components f1 and f2. After multiplying the scale factor a, the frequencies in the signal become af1 and af2. In this process, in addition to adjusting the reference frequency to the required tuning, the corresponding harmonic components can also be modified, and the original multiple relationship can be maintained. According to the definition of phonology, when a=2, the pitch is raised by an octave, and when a=0.5, the pitch is lowered by an octave.

综上,本实施方式提供了另一种目标铃声的获取方式,这种方式中无需预设铃声库,直接根据现有设置的铃声进行音频处理,减少铃声的预存需求,节省存储空间。又由于预设铃声是用户根据喜好预设,所以在预设铃声基础上调整,更符合用户的喜好。To sum up, this embodiment provides another method for obtaining target ringtones. In this method, there is no need to preset a ringtone library, and audio processing is directly performed according to the currently set ringtones, thereby reducing the pre-storage requirements of ringtones and saving storage space. Also, since the preset ringtone is preset by the user according to the user's preference, the adjustment on the basis of the preset ringtone is more in line with the user's preference.

上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The steps of the above various methods are divided only for the purpose of describing clearly. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as the same logical relationship is included, they are all within the protection scope of this patent. ;Adding insignificant modifications to the algorithm or process or introducing insignificant designs, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.

本发明第四实施方式涉及一种铃声设置装置,如图5所示,包括:The fourth embodiment of the present invention relates to a ringtone setting device, as shown in FIG. 5 , including:

获取模块,用于获取环境声音数据;The acquisition module is used to acquire ambient sound data;

解析模块,用于解析环境声音数据,确定环境声音数据的第一响度;The parsing module is used for parsing the ambient sound data and determining the first loudness of the ambient sound data;

目标铃声确定模块,用于获取符合预设条件的铃声作为目标铃声,其中,预设条件包括:目标铃声的响度大于第一响度。The target ringtone determination module is configured to obtain a ringtone that meets a preset condition as the target ringtone, wherein the preset condition includes: the loudness of the target ringtone is greater than the first loudness.

在一个例子中,获取模块包括:In one example, the acquisition module includes:

第一获取子模块,用于在铃声响铃时长超过预设时长后,获取环境声音数据;或者,The first obtaining submodule is used to obtain ambient sound data after the ringing duration of the bell exceeds the preset duration; or,

第二获取子模块,用于在来电铃声被触发后,获取环境声音数据。The second acquisition sub-module is used to acquire ambient sound data after the ringtone of the incoming call is triggered.

在一个例子中,解析模块包括:In one example, the parsing module includes:

分频段子模块,用于根据频率信息,将环境声音数据分为多个频段;The sub-band sub-module is used to divide the ambient sound data into multiple frequency bands according to the frequency information;

声压级获取子模块,用于获取各个频段的声压级;The sound pressure level acquisition sub-module is used to acquire the sound pressure level of each frequency band;

响度获取子模块,用于根据各个频段的声压级确定各个频段的响度;The loudness acquisition sub-module is used to determine the loudness of each frequency band according to the sound pressure level of each frequency band;

计算子模块,用于根据各个频段的响度计算出环境声音数据的总响度,将总响度作为第一响度。The calculation sub-module is configured to calculate the total loudness of the ambient sound data according to the loudness of each frequency band, and use the total loudness as the first loudness.

在一个例子中,分频段子模块具体用于将环境声音数据中属于预设频段范围的数据分为多个频段。In one example, the sub-band sub-module is specifically configured to divide the data belonging to the preset frequency band in the ambient sound data into multiple frequency bands.

在一个例子中,计算子模块利用以下公式计算出总响度:In one example, the calculation submodule calculates the total loudness using the following formula:

Figure BDA0002138800490000091
Figure BDA0002138800490000091

其中,α为倍频程,Si为第i个频段的响度,Smax为n个频段中的最大响度。Among them, α is the octave, Si is the loudness of the ith frequency band, and Smax is the maximum loudness in the n frequency bands.

在一个例子中,目标铃声确定模块的预设条件还包括:目标铃声的频率和声压级均大于各个频段中响度最大的频段对应的频率和声压级。In an example, the preset condition of the target ringtone determination module further includes: both the frequency and sound pressure level of the target ringtone are greater than the frequency and sound pressure level corresponding to the loudest frequency band in each frequency band.

在一个例子中,目标铃声确定模块的预设条件还包括:目标铃声的响度和第一响度的差值小于预设值。In an example, the preset condition of the target ringtone determination module further includes: a difference between the loudness of the target ringtone and the first loudness is less than a preset value.

在一个例子中,目标铃声确定模块,包括:In one example, the target ringtone determination module includes:

第一铃声确定子模块,用于从预设的铃声库中选取符合预设条件的铃声作为所述目标铃声;或者,The first ringtone determination submodule is used to select the ringtone that meets the preset condition from the preset ringtone library as the target ringtone; or,

第二铃声确定子模块,用于调整预设铃声的频率直至调整后的预设铃声符合所述预设条件,将符合所述预设条件的调整后的预设铃声作为所述目标铃声。The second ringtone determination submodule is configured to adjust the frequency of the preset ringtone until the adjusted preset ringtone meets the preset condition, and use the adjusted preset ringtone that meets the preset condition as the target ringtone.

在一个例子中,第二铃声确定子模块具体用于判断选到的符合所述预设条件的铃声数量,在选到的铃声数量大于1个时,选取响度最小的铃声作为目标铃声。In one example, the second ringtone determination submodule is specifically configured to determine the number of selected ringtones that meet the preset condition, and when the number of selected ringtones is greater than one, select the ringtone with the smallest loudness as the target ringtone.

不难发现,本实施方式为与第一实施方式相对应的系统实施例,本实施方式可与第一实施方式互相配合实施。第一实施方式中提到的相关技术细节在本实施方式中依然有效,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第一实施方式中。It is not difficult to find that this embodiment is a system example corresponding to the first embodiment, and this embodiment can be implemented in cooperation with the first embodiment. The relevant technical details mentioned in the first embodiment are still valid in this embodiment, and are not repeated here in order to reduce repetition. Correspondingly, the related technical details mentioned in this embodiment can also be applied to the first embodiment.

值得一提的是,本实施方式中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本发明的创新部分,本实施方式中并没有将与解决本发明所提出的技术问题关系不太密切的单元引入,但这并不表明本实施方式中不存在其它的单元。It is worth mentioning that each module involved in this embodiment is a logical module. In practical applications, a logical unit may be a physical unit, a part of a physical unit, or multiple physical units. A composite implementation of the unit. In addition, in order to highlight the innovative part of the present invention, this embodiment does not introduce units that are not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other units in this embodiment.

本发明第五实施方式涉及一种移动终端,如图6所示,包括:The fifth embodiment of the present invention relates to a mobile terminal, as shown in FIG. 6 , including:

至少一个处理器;以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行如第一实施方式或第二实施方式中的铃声设置方法。at least one processor; and, a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform as Ringtone setting method in one embodiment or the second embodiment.

其中,存储器和处理器采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器和存储器的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器。The memory and the processor are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors and various circuits of the memory. The bus may also connect together various other circuits, such as peripherals, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides the interface between the bus and the transceiver. A transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other devices over a transmission medium. The data processed by the processor is transmitted on the wireless medium through the antenna, and further, the antenna also receives the data and transmits the data to the processor.

处理器负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器可以被用于存储处理器在执行操作时所使用的数据。The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. Instead, memory may be used to store data used by the processor in performing operations.

本发明第六实施方式涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。The sixth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The above method embodiments are implemented when the computer program is executed by the processor.

即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method for implementing the above embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium and includes several instructions to make a device ( It may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods of the various embodiments of the present application. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。Those skilled in the art can understand that the above-mentioned embodiments are specific examples for realizing the present invention, and in practical applications, various changes in form and details can be made without departing from the spirit and the spirit of the present invention. scope.

Claims (10)

1. A ringtone setting method, comprising:
acquiring environmental sound data;
analyzing the environment sound data and determining the first loudness of the environment sound data;
obtaining a ringtone meeting preset conditions as a target ringtone, wherein the preset conditions comprise: the loudness of the ringtone is greater than the first loudness;
wherein said parsing the ambient sound data to determine a first loudness of the ambient sound data comprises:
dividing the environmental sound data into a plurality of frequency bands according to a preset octave;
acquiring sound pressure levels of all frequency bands;
determining the loudness of each frequency range according to the sound pressure level of each frequency range;
calculating the total loudness of the environmental sound data according to a constant related to the octave and the loudness of each frequency band, and taking the total loudness as the first loudness;
the preset conditions further include: and the frequency and sound pressure level of the target ring tone are both greater than the frequency and sound pressure level corresponding to the frequency band with the maximum loudness in each frequency band.
2. The ringtone setting method according to claim 1, wherein the acquiring environmental sound data includes:
acquiring environmental sound data after the ringing time of the ringtone exceeds the preset time; or,
after the incoming call ringtone is triggered, environmental sound data is acquired.
3. The ringtone setting method according to claim 1, wherein the dividing of the ambient sound data into a plurality of frequency bands is specifically: and dividing data belonging to a preset frequency band range in the environmental sound data into a plurality of frequency bands.
4. The ringtone setting method according to claim 1, wherein the total loudness of the ambient sound data is calculated from a constant relating to the octave and the loudness of each frequency band by using the following formula:
Figure FDA0002944723570000011
wherein α is a constant related to the octave, Si is a loudness of an ith frequency band, and Smax is a maximum loudness of n frequency bands.
5. The ringtone setting method according to claim 1, wherein the preset condition further comprises: and the difference value between the loudness of the target ringtone and the first loudness is smaller than a preset value.
6. The ringtone setting method according to claim 1, wherein the obtaining of the ringtone meeting the preset condition as the target ringtone specifically comprises:
selecting ring tones meeting preset conditions from a preset ring tone library as the target ring tones; or,
and adjusting the frequency of the preset ring until the adjusted preset ring meets the preset condition, and taking the adjusted preset ring meeting the preset condition as the target ring.
7. The method according to claim 6, wherein if the target ring is selected from the ring library, the number of the selected rings meeting the predetermined condition is determined, and when the number of the selected rings is greater than 1, the ring with the smallest loudness is selected as the target ring.
8. A ringtone setting device, comprising:
the acquisition module is used for acquiring environmental sound data;
the analysis module is used for analyzing the environment sound data and determining the first loudness of the environment sound data;
the target ring determining module is configured to obtain a ring meeting preset conditions as a target ring, where the preset conditions include: the loudness of the ringtone is greater than the first loudness;
wherein said parsing the ambient sound data to determine a first loudness of the ambient sound data comprises:
dividing the environmental sound data into a plurality of frequency bands according to a preset octave;
acquiring sound pressure levels of all frequency bands;
determining the loudness of each frequency range according to the sound pressure level of each frequency range;
calculating the total loudness of the environmental sound data according to a constant related to the octave and the loudness of each frequency band, and taking the total loudness as the first loudness;
the preset conditions further include: and the frequency and sound pressure level of the target ring tone are both greater than the frequency and sound pressure level corresponding to the frequency band with the maximum loudness in each frequency band.
9. A mobile terminal, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the ringtone setting method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the ringtone setting method according to any one of claims 1 to 7.
CN201910661772.2A 2019-07-22 2019-07-22 Ringtone setting method, ringtone setting device, mobile terminal and storable medium Active CN110401772B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910661772.2A CN110401772B (en) 2019-07-22 2019-07-22 Ringtone setting method, ringtone setting device, mobile terminal and storable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910661772.2A CN110401772B (en) 2019-07-22 2019-07-22 Ringtone setting method, ringtone setting device, mobile terminal and storable medium

Publications (2)

Publication Number Publication Date
CN110401772A CN110401772A (en) 2019-11-01
CN110401772B true CN110401772B (en) 2021-08-06

Family

ID=68325310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910661772.2A Active CN110401772B (en) 2019-07-22 2019-07-22 Ringtone setting method, ringtone setting device, mobile terminal and storable medium

Country Status (1)

Country Link
CN (1) CN110401772B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112351138B (en) * 2020-11-03 2021-10-26 Tcl通讯(宁波)有限公司 Automatic ring mode changing method and device, storage medium and mobile terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101578848A (en) * 2006-12-29 2009-11-11 摩托罗拉公司 Method and apparatus for adaptive ringtone generation
CN103177727A (en) * 2011-12-23 2013-06-26 重庆重邮信科通信技术有限公司 Audio frequency band processing method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1324171A (en) * 2000-05-11 2001-11-28 英业达集团(南京)电子技术有限公司 Intelligent ringing realizing method and device
US20040264705A1 (en) * 2003-06-30 2004-12-30 Nokia Corporation Context aware adaptive equalization of user interface sounds
CN104219392B (en) * 2014-09-29 2017-06-20 宇龙计算机通信科技(深圳)有限公司 A kind of incoming ring tone intelligent adjusting method, system and mobile terminal
CN105681589A (en) * 2016-03-24 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Incoming call prompt method and terminal
CN106791252A (en) * 2017-01-05 2017-05-31 珠海格力电器股份有限公司 Method and device for playing incoming call ringtone
CN108012035A (en) * 2017-12-26 2018-05-08 奇酷互联网络科技(深圳)有限公司 The tinkle of bells adjusting method, device, readable storage medium storing program for executing and intelligent terminal
CN108762716B (en) * 2018-08-27 2021-07-23 歌尔科技有限公司 Volume adjusting method and device and earphone

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101578848A (en) * 2006-12-29 2009-11-11 摩托罗拉公司 Method and apparatus for adaptive ringtone generation
CN103177727A (en) * 2011-12-23 2013-06-26 重庆重邮信科通信技术有限公司 Audio frequency band processing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈峰.心理声学响度评定算法研究.《中国优秀硕士学位论文全文数据库 哲学与人文科学辑》.2011, *

Also Published As

Publication number Publication date
CN110401772A (en) 2019-11-01

Similar Documents

Publication Publication Date Title
US10834493B2 (en) Time heuristic audio control
US11671770B2 (en) Systems and methods for providing personalized audio replay on a plurality of consumer devices
US9305568B2 (en) Active acoustic filter with socially determined location-based filter characteristics
US8300848B2 (en) System and method for adjusting an audio signal
US9344815B2 (en) Method for augmenting hearing
CN103886731B (en) A kind of noise control method and equipment
HK1212534A1 (en) Method and system for self-managed sound enhancement
CN104780259A (en) Automatic adjustment system and method for call voice quality
US20250048047A1 (en) Remotely updating a hearing aid profile
US20150073787A1 (en) Voice filtering method, apparatus and electronic equipment
CN112954563A (en) Signal processing method, electronic device, apparatus and storage medium
CN110401772B (en) Ringtone setting method, ringtone setting device, mobile terminal and storable medium
CN107734130A (en) A kind of adjust automatically terminal tone method, apparatus and terminal
US20040264705A1 (en) Context aware adaptive equalization of user interface sounds
CN1780349A (en) Automatic adjuster and adjusting method for cell-phone bell
KR101482420B1 (en) Sound Controller of a Cellular Phone for Deafness and its method
WO2024131371A1 (en) Voice processing method and apparatus, and electronic device
CN109040473A (en) Terminal volume adjusting method and system and mobile phone
CN111045633A (en) Method and apparatus for detecting loudness of audio signal
CN106791252A (en) Method and device for playing incoming call ringtone
CN115052070A (en) Method and device for adjusting call volume, call equipment and medium
CN107493376A (en) A kind of ringing volume adjusting method and device
CN117093182B (en) Audio playback method, electronic device and computer-readable storage medium
WO2012144887A1 (en) Voice immersion smartphone application or headset for reduction of mobile annoyance
CN119865544A (en) Voice call processing method, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant