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

Ringtone setting method, ringtone setting device, mobile terminal, and storage 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
loudness
ring
sound data
ringtone
preset
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)
  • Electrophonic Musical Instruments (AREA)
  • Telephone Function (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 storage medium
Technical Field
The embodiment of the invention relates to the field of automatic setting of terminals, in particular to a ringtone setting method, a ringtone setting device, a mobile terminal and a storable medium.
Background
With the development of network technology, mobile phones have become indispensable communication products for people's life, and in actual use, functions such as answering a call, receiving information, receiving a reminder and the like generally adopt a ring alert mode, so it is very critical to ensure that the ring alert is heard by a user in time.
In the prior art, a mobile phone is preset with multiple modes, such as an outdoor mode, a conference mode, a silent mode, and the like, and a user can set different contextual modes according to needs. However, the inventor of the present application found that: in a plurality of preset modes of the mobile phone, the ring difference comes from ring volume, that is, in different modes, the ring is adjusted to different volumes, and in a noise environment, although the mobile phone is set to an outdoor mode (the volume is already high), the mobile phone may also be too far away or too much noise cannot hear the incoming call ring of the mobile phone, so that the situation of missing important calls is caused.
Disclosure of Invention
An object of embodiments of the present invention is to provide a ringtone setting method, a mobile terminal, and a storable medium, which make a set target ringtone more easily heard by a user.
In order to solve the above technical problem, an embodiment of the present invention provides a ringtone setting method, including: 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.
The embodiment of the invention also provides a ringtone setting method, which comprises the following steps: 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.
An embodiment of the present invention further provides a mobile terminal, 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 to enable the at least one processor to perform the ringtone setting method as described above.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the ringtone setting method as described above.
Compared with the prior art, the method avoids the prior method based on volume adjustment when the ring tone is adjusted, adopts the loudness parameter which represents the sensitivity of human ears to sound, avoids setting the target ring tone from the sound and the light setting of the volume, sets the target ring tone from the loudness angle, specifically analyzes the loudness range of the ring tone which is easily identified by a user at that time by measuring the loudness parameter of the environmental sound, obtains the ring tone which meets the preset condition as the target ring tone, and enables the set target ring tone to be easier to hear by the user, thereby enabling the ring tone reminding to be more effective.
As a further improvement, the acquiring the environmental sound data specifically includes: acquiring environmental sound data after the ringing time of the ringtone exceeds the preset time; or, after the ring tone is triggered, the environmental sound data is acquired, and the embodiment explicitly acquires 3 times of the environmental sound data.
As a further refinement, said parsing said ambient sound data, determining a first loudness of said ambient sound data, comprises: dividing the environmental sound data into a plurality of frequency bands according to frequency information; 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 the loudness of each frequency band; taking the total loudness as the first loudness. This example specifies a specific analysis method.
As a further improvement, the dividing the environmental sound data into a plurality of frequency bands specifically includes: and dividing data belonging to a preset frequency band range in the environmental sound data into a plurality of frequency bands. This embodiment avoids analyzing the extreme data through setting up preset frequency channel, improves analysis efficiency.
As a further improvement, according to the loudness of each frequency band, the total loudness of the ambient sound data is calculated by using the following formula:
Figure BDA0002138800490000021
wherein, alpha is octave, Si is the loudness of ith frequency band, and Smax is the maximum loudness in n frequency bands. This embodiment specifies the formula for calculating the total loudness.
As a further improvement, 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. The embodiment refers to the frequency and the sound pressure level, so that the selected target ring tone has better effect.
As a further improvement, the preset conditions further include: and the difference value between the loudness of the target ringtone and the first loudness is smaller than a preset value. The loudness of the target ring tone is determined to be as small as possible in the embodiment, since the inventor finds that the larger the loudness is, the more possible the loudness is to influence the pleasure degree, and the excessive loudness, though easy to hear, also causes poor sensory experience.
As a further improvement, the obtaining of the ringtone meeting the preset condition as the target ringtone specifically includes: selecting ring tones meeting preset conditions from a preset ring tone library as the target ring tones; or 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. Target ring tones meeting preset conditions can be obtained in various modes, and an obtaining scheme can be selected according to actual requirements, so that the implementation mode is more flexible and changeable.
As a further improvement, if the ring meeting the preset condition is selected from the ring library as the target ring, the number of the selected rings meeting the preset condition is judged, and when the number of the selected rings is greater than 1, the ring with the minimum loudness is selected as the target ring.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a flowchart of a ringtone setting method according to a first embodiment of the present invention;
fig. 2 is a flowchart for parsing ambient sound data in a ringtone setting method according to a first embodiment of the present invention;
fig. 3 is a diagram illustrating an equal loudness curve in a ringtone setting method according to a first embodiment of the present invention;
fig. 4 is a flowchart of a ringtone setting method according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of a ringtone setting device according to a fourth embodiment of the present invention;
fig. 6 is a schematic diagram of a mobile terminal according to a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
A first embodiment of the present invention relates to a ringtone setting method.
The embodiment is applied to a mobile terminal, such as a mobile phone of a user, a PAD of a tablet computer, and the like, taking the mobile phone as an example, when the user is in a mobile phone on state, the user can receive an incoming call of another user, and when the mobile phone receives a call request of the incoming call, the mobile phone can send out an incoming call ring to remind the user to answer the call. The inventor of the application finds that although the ring volume can be automatically adjusted according to the decibel of the environmental noise, when the surrounding environment is extremely noisy, the problem that the ring of the incoming call of the mobile phone cannot be heard by a user still exists even if the ring volume is adjusted to be large.
The flow of the ring setting method in this embodiment is shown in fig. 1, and specifically includes the following steps:
step 101, obtaining environmental sound data.
Specifically, the ambient sound data may include ambient noise, and more specifically, the present embodiment may collect the ambient noise through a noise collection microphone (noise reduction microphone). In one example, sound data may be collected for a duration of 1 second or 2 seconds for subsequent processing. Through the environmental noise with the preset duration, the current environmental sound can be basically known, excessive processing data caused by continuous acquisition is avoided, and the processing speed is accelerated. In another example, components such as a decibel meter and the like can be used for obtaining the environmental sound, the decibel meter can perform standardized sampling on environmental sound data for subsequent analysis and processing, and in practical application, other components can be used for obtaining the environmental sound data, which are not listed one by one.
Specifically, the environmental sound data can be acquired after the ringing time of the ringtone exceeds the preset time. Generally, when an incoming call comes in, a mobile phone firstly plays a default ring to remind a user, then monitors the ring duration, a terminal can start timing from the incoming call, and when the timed duration reaches a preset threshold value, the terminal triggers to acquire environmental sound data by comparing the timed duration with the preset threshold value. If the threshold is set to be 3 seconds, when the ringing time of the ringtone exceeds 3 seconds, the ambient sound data is acquired, and in another example, the set time may also be 5 seconds, which is not limited herein. Because the user can hear the incoming call ring sometimes and can answer the incoming call quickly, the ring can not be adjusted under the condition, the environmental sound data is acquired after the preset time delay, the invalid data processing is reduced, and the system power consumption is reduced.
In practical application, the environmental sound data can be directly acquired after the incoming call ringtone is triggered. The specific acquisition time may be set according to an actual situation, and is not limited herein.
In addition, whether the acquisition is needed or not can be further determined according to the ring mode of the mobile phone of the user, if the mobile phone is set to be in the mute mode or the vibration mode, the environmental sound data is not acquired because the ring does not need to be triggered, and if the mobile phone is set to be in the ring mode, the environmental sound data is acquired when the acquisition condition is met.
Step 102, analyzing the ambient sound data, and determining a first loudness of the ambient sound data.
In particular, because the human ear has auditory characteristics, the sensitivity of the human ear is different for sounds in different frequency bands, and the high frequency band and the low frequency band are not sensitive. Even if the volume is the same, there are sounds corresponding to different frequency bands based on the different frequency bands, and the human ear has different hearing effects for the sounds corresponding to the different frequency bands. The loudness can quantitatively reflect the loudness of sound, is related to frequency and sound pressure level, and can represent the sensitivity of human ears when hearing. Therefore, the inventor of the present application thinks that the loudness value of the environmental sound data is calculated as the basis for subsequently selecting the single-frequency ring tone.
In one example, parsing the ambient sound data may be as shown in FIG. 2, including the following steps:
step 201, dividing the environmental sound data into a plurality of frequency bands according to the frequency information.
Specifically, the frequency band division is performed first, and the division may be performed according to an octave, an 1/2 octave or a 1/3 octave, and then the sound pressure level (dB) of each frequency band is obtained.
In one example, data belonging to a predetermined frequency band range in the ambient sound data is divided into a plurality of frequency bands. Although the hearing threshold range of human ears is 20 Hz-20 KHz, the auditory system of human ears has a filtering function, and can automatically filter low-frequency sound in sound environments with different frequencies. Therefore, since the low-frequency sound in the environmental sound data is filtered by the human ear and does not affect the hearing perception of the human, only the sound data of 200-6400 Hz which is sensitive to the human ear is extracted from the environmental sound data, so as to reduce the total data processing amount.
Step 202, sound pressure levels of each frequency band are obtained.
The present embodiment is described by taking 1/2 octaves as an example, and the divided frequency bands are shown in the following table (1):
frequency band (Hz) 200~400 400~800 800~1600 1600~3200 3200~6400
Main frequency (Hz) 300 600 1200 2400 4800
Sound pressure level (dB) 48 54 60 42 57
Watch (1)
In addition, other octaves may also be used in practical applications, and are not limited herein.
And step 203, determining the loudness Si of each frequency range according to the sound pressure level of each frequency range.
Specifically, the corresponding table of the frequency, the sound pressure level and the loudness is a pre-stored table, data of the table can be reflected as an equal loudness curve of the following graph, as shown in fig. 3, a horizontal axis in fig. 3 represents the frequency, a vertical axis represents the sound pressure level, after the frequency and the sound pressure level are determined, the loudness of each frequency band is determined through the corresponding relationship in fig. 3, and after the loudness is obtained, the loudness is stored in the following table (2) together for subsequent data processing.
Frequency band (Hz) 200~400 400~800 800~1600 1600~3200 3200~6400
Main frequency (Hz) 300 600 1200 2400 4800
Sound pressure level (dB) 48 56 60 42 39
Loudness (sone) 1.86 3.73 4.02 1.41 1.62
Watch (2)
And step 204, calculating the total loudness of the environmental sound data according to the loudness of each frequency band.
Specifically, the total loudness of the ambient sound data can be calculated using the following equation (1):
Figure BDA0002138800490000051
where α is a constant related to the octave, Si is the loudness of the ith frequency band, and Smax is the maximum loudness of the n frequency bands. Wherein if the octave is 1, α is 0.3; if the octave is 1/2, α is 0.2; if the octave is 1/3, α is 0.15.
Taking the above table (2) as an example, it can be known that α is 0.2, and the maximum value Smax of loudness in five frequency bands is 4.02, and correspondingly, the main frequency of the frequency band in which the maximum value of loudness is located is 1200Hz, and the sound pressure level is 60 dB. The following calculated equation (2) is also set forth in accordance with other data in table (2) above:
Sgeneral assembly=0.3(1.86+3.73+4.02+1.41+1.62)+0.7×4.02=6.61; (2)
Continuing on, the total loudness may be taken as the first loudness, that is, the first loudness calculated by the present embodiment is 6.61.
Step 103, selecting the ring meeting the preset conditions from the pre-stored ring library as the target ring.
The embodiment presets a ring library containing a series of single-frequency rings, and the specific steps are as follows (3):
frequency (Hz) Sound pressure level (dB) Loudness (sone)
Ring 1 1000 60 3.86
Ring 2 1100 70 9.19
Ring 3 2000 70 9.85
Ring 4 2500 60 5.66
Ring 5 3000 65 10.56
Watch (3)
In one example, a predetermined number of single-frequency ringtones are pre-stored in the user's handset, each of which is a ring that does not cause pain to the user's ear, and corresponding data of the frequency, sound pressure level, and loudness of the above single-frequency ringtones is stored at the client. In one example, the pre-stored single-frequency ring tones may be stored in the server as a library of ring tones, and then downloaded locally according to a specific mechanism. If the user downloads the files in advance according to the preference; or may be downloaded when the user powers up and connects to the wireless network, etc., which are not listed here.
Continuing, in an example, the preset conditions required to be met when selecting the preset ringtone may include: the loudness of the target ringtone is greater than the first loudness (i.e., S)General assembly) In another example, the preset condition may further include: 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 highest loudness among the frequency bands. That is, selectedThe target ringtone satisfies the following conditions: as close as possible to the noise longitudinal degree SGeneral assemblyAnd is compared with SGeneral assemblyLoud ring tones, this is mainly considered if the directly selected ring tone loudness is greater than the total loudness S of the ambient soundGeneral assemblyMuch larger, although it may be easier for the user to hear, it may make the sound too obtrusive. Taking table (3) above as an example, loudness greater than 6.61 is: ring tone 2(9.19), ring tone 3(9.85), and ring tone 5 (10.56).
In one example, the selected target ring tone may be one of ring tone 2, ring tone 3, and ring tone 5, and the selected target ring tone is continuously played. If the preset condition may be set to include that the difference between the loudness of the target ringtone and the first loudness is smaller than the preset value, in this embodiment, the preset value may be set to 3, that is, a ringtone with a loudness greater than 6.61 and a difference smaller than 3 is selected as the target ringtone, then in this embodiment, the ringtone with a loudness greater than 6.61 and a difference smaller than 3 is the ringtone 2.
In another example, the preset ring tones in the ring tone library may include: and when the target ring is selected, selecting the ring with a plurality of different frequencies obtained after the frequency of a certain ring is adjusted in advance according to the loudness values of the plurality of rings after the frequency conversion.
In another example, if the number of ring tones meeting the preset condition selected from the ring tone library is greater than 1, the ring tone with the smallest loudness may be selected as the target ring tone. According to the above table (3), the ring tone with the smallest loudness among the ring tones meeting the preset conditions is ring tone 2, and the selected target ring tone is ring tone 2.
In another example, the selected ring tones 2, 3, and 5 may be played in sequence, and the playing may be performed in a manner from low loudness to high loudness when played in sequence, so that the played ring tones are more and more prominent and are more and more easily heard by the user.
It should be noted that, although the embodiment is described by taking a ring tone library including five ring tones as an example, in practical applications, there may be more ring tones in the ring tone library, for example, 10 ring tones, and these ring tones are not listed here. In addition, although the embodiment takes a single-frequency ring as an example, in practical applications, in addition, the condition of the target ring may be analyzed according to the environmental sound data, and then the corresponding ring is downloaded from the ring library according to the condition of the target ring, and the selection manners are not listed one by one.
Therefore, in the embodiment, the existing method for adjusting the ring based on volume adjustment is avoided, the loudness parameter which more represents the sensitivity of human ears to sound is adopted, the target ring is set from the loudness angle rather than from the loudness of sound, the loudness parameter of the environmental sound is measured, the loudness range of the ring which is easily recognized by a user at that time is analyzed, and the ring which meets the preset condition is selected from the ring library by combining the preset ring library, so that the set target ring is more easily heard by the user, and the ring reminding is more effective.
A second embodiment of the present invention relates to a ringtone setting method. The second embodiment is a further improvement on the first embodiment, and the main improvement lies in that: in the second embodiment of the present invention, the preset conditions for selecting the target ring may be increased as follows: 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, so that the effect of the selected target ring tone is better.
Specifically, taking the analysis data in the table (2) and the ring library in the table (3) as an example, the three rings selected by the loudness condition are ring 2, ring 3 and ring 5, and the frequency and pressure level conditions in this embodiment are continuously selected, specifically, the frequency of the frequency band with the highest loudness is 1200Hz, and the corresponding pressure level is 60dB, so the frequency of the ring 2, ring 3 and ring 5 is greater than 1200Hz, and the ring with the pressure level greater than 60dB is ring 3, that is, the selected target ring is ring 3.
Therefore, the target ring tones are selected according to the loudness and the frequency and the sound pressure level, so that the selected target ring tones are easier to hear by the user, and the effect of the selected target ring tones is further improved.
A third embodiment of the present invention relates to a ringtone setting method. The third embodiment is substantially the same as the first embodiment, and differs mainly in that: the first embodiment obtains the target ring tone by selecting from a preset ring tone library, and the present embodiment obtains the target ring tone by adjusting the frequency of the preset ring tone, and provides another method for obtaining the target ring tone.
A flowchart of the ring setting method in this embodiment is shown in fig. 4, and specifically follows:
steps 401 and 402 in this embodiment are similar to steps 101 and 102 in the first embodiment, and are not described again here.
Step 403, 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.
Specifically, because the sensitivity of human ears to sounds of different frequencies is different, different auditory effects can be generated even if the loudness is the same, and because the loudness parameter changes correspondingly after the frequency is changed, the embodiment adjusts the frequency of the preset ringtone of the user, so that the adjusted ringtone meets the preset condition, that is, the adjusted ringtone meets the loudness greater than the first loudness.
In this embodiment, adjusting the frequency of the ring tone may be implemented by audio processing software, and may also be implemented by a baseband scaling method: specifically, the frequency components in the signal are simultaneously multiplied by a scaling factor. For example, a signal containing two frequency components f1 and f2, after multiplying by the scaling factor a, the frequencies in the signal become af1 and af 2. In this process, in addition to adjusting the reference frequency to the desired modulation, the corresponding harmonic components can be modified and the original multiple relationship maintained. According to the definition of the phonology, when a is 2, the tone is increased by eight degrees, and when a is 0.5, the tone is decreased by eight degrees.
In summary, the present embodiment provides another target ring tone obtaining method, which directly performs audio processing according to the currently set ring tone without a preset ring tone library, so as to reduce the pre-storage requirement of the ring tone and save the storage space. And because the preset ring is preset by the user according to the preference, the preset ring is adjusted on the basis of the preset ring, and the preference of the user is better met.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fourth embodiment of the present invention relates to a ringtone setting device, as shown in fig. 5, including:
the acquisition module is used for acquiring environmental sound data;
the analysis module is used for analyzing the environmental sound data and determining the first loudness of the environmental sound data;
the target ring determining module is used for acquiring ring meeting preset conditions as a target ring, wherein the preset conditions comprise: the loudness of the target ringtone is greater than the first loudness.
In one example, the obtaining module includes:
the first obtaining submodule is used for obtaining environmental sound data after the ringing time of the ringtone exceeds the preset time; alternatively, the first and second electrodes may be,
and the second acquisition submodule is used for acquiring the environmental sound data after the incoming call ringtone is triggered.
In one example, the parsing module includes:
the sub-module of frequency range, is used for according to the frequency information, divide the sound data of the environment into multiple frequency ranges;
the sound pressure level acquisition submodule is used for acquiring the sound pressure level of each frequency band;
the loudness acquisition submodule is used for determining the loudness of each frequency band according to the sound pressure level of each frequency band;
and the calculating submodule is used for calculating the total loudness of the environmental sound data according to the loudness of each frequency band, and taking the total loudness as the first loudness.
In one example, the sub-band division sub-module is specifically configured to divide data belonging to a predetermined frequency band range in the ambient sound data into a plurality of frequency bands.
In one example, the calculation submodule calculates the total loudness using the following equation:
Figure BDA0002138800490000091
wherein, alpha is octave, Si is the loudness of the ith frequency band, and Smax is the maximum loudness of the n frequency bands.
In one example, the preset condition of the target ringtone determination module further includes: 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 highest loudness among the frequency bands.
In one example, the preset condition of the target ringtone determination module further includes: and the difference value between the loudness of the target ringtone and the first loudness is smaller than a preset value.
In one example, the target ringtone determination module includes:
the first ring determining submodule is used for selecting a ring meeting preset conditions from a preset ring library as the target ring; alternatively, the first and second electrodes may be,
and the second ring determining submodule is used for 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.
In one example, the second ringtone determination sub-module is specifically configured to determine the number of the selected ringtones meeting the preset condition, and select the ringtone with the smallest loudness as the target ringtone when the number of the selected ringtones is greater than 1.
It should be understood that this embodiment is a system example corresponding to the first embodiment, and may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
A 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 to enable the at least one processor to perform the ringtone setting method as in the first embodiment or the second embodiment.
Where the memory and processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting together one or more of the various circuits of the processor and the memory. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
A sixth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method according to the above embodiments may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps in the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

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; alternatively, the first and second electrodes may be,
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; alternatively, the first and second electrodes may be,
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 content of the first and second substances,
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 storage 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 storage 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 storage 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 storage 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 摩托罗拉公司 Methods and devices 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 珠海格力电器股份有限公司 The player method and device of a kind of incoming ring tone
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 摩托罗拉公司 Methods and devices 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
US10880647B2 (en) Active acoustic filter with location-based filter characteristics
JP6374529B2 (en) Coordinated audio processing between headset and sound source
EP2453438B1 (en) Speech intelligibility control using ambient noise detection
JP6325686B2 (en) Coordinated audio processing between headset and sound source
KR100443703B1 (en) Method and apparatus for dynamically changing audio response of a wireless receiver
US8995683B2 (en) Methods and devices for adaptive ringtone generation
US20040049125A1 (en) Mobile terminal and mobile audiometer system
CN110832830B (en) Volume adjusting method and electronic equipment
CN1716764B (en) System and method for adjusting an audio signal
CN108845787B (en) Audio adjusting method, device, terminal and storage medium
CN112954563B (en) Signal processing method, electronic device, apparatus, and storage medium
CN115474927A (en) Hearing detection method and device, electronic equipment and storage medium
US9251803B2 (en) Voice filtering method, apparatus and electronic equipment
CN110401772B (en) Ringtone setting method, ringtone setting device, mobile terminal, and storage medium
CN110840462A (en) Hearing-aid method for human ears based on earphone, computer readable storage medium and Bluetooth earphone
CN111045633A (en) Method and apparatus for detecting loudness of audio signal
US8897840B1 (en) Generating a wireless device ringtone
CN111739496B (en) Audio processing method, device and storage medium
JP2023551222A (en) Method and apparatus for normalizing audio signals
CN114422934A (en) Media system and method for adapting to hearing loss
CN117093182B (en) Audio playing method, electronic equipment and computer readable storage medium
KR101482420B1 (en) Sound Controller of a Cellular Phone for Deafness and its method
WO2012144887A1 (en) Voice immersion smartphone application or headset for reduction of mobile annoyance
CN108156307B (en) Voice processing method and voice communication device
EP2849181A1 (en) Voice filtering method, apparatus and electronic equipment

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