[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107493376A - A kind of ringing volume adjusting method and device - Google Patents

A kind of ringing volume adjusting method and device Download PDF

Info

Publication number
CN107493376A
CN107493376A CN201710542615.0A CN201710542615A CN107493376A CN 107493376 A CN107493376 A CN 107493376A CN 201710542615 A CN201710542615 A CN 201710542615A CN 107493376 A CN107493376 A CN 107493376A
Authority
CN
China
Prior art keywords
volume
current environment
default
message
tinkle
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.)
Pending
Application number
CN201710542615.0A
Other languages
Chinese (zh)
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201710542615.0A priority Critical patent/CN107493376A/en
Publication of CN107493376A publication Critical patent/CN107493376A/en
Pending legal-status Critical Current

Links

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/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
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • 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/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • 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
    • H04M19/044Current 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 according to the level of ambient noise

Landscapes

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

Abstract

The invention discloses a kind of ringing volume adjusting method and device, methods described to include:When a message is received, with the first default volume output message the tinkle of bells;Current environment volume is calculated according to default volume susceptibility;According to the volume of message the tinkle of bells described in the current environment volume adjusting.The program is when the terminal of user receives message, the ring prompting of the message is exported with the first default volume first, then the default volume susceptibility set according to user calculates current environment volume, and then it can determine that current environment is quiet or noisy, the volume of incoming ring tone is adjusted according to result of calculation, so, fixed news the tinkle of bells broadcast sound volume is excessive when avoiding receiving message bothers user, or fixed news the tinkle of bells broadcast sound volume is too small causes user to miss the best opportunity for checking message, the set-up mode of ringing volume is enriched according to default volume susceptibility calculating current environment volume, add the flexibility of ringing volume, improve Consumer's Experience.

Description

A kind of ringing volume adjusting method and device
Technical field
The present invention relates to communication technical field, and in particular to a kind of ringing volume adjusting method and device.
Background technology
At present, as the development of the communication technology, various mobile terminals turn into people's daily life gradually An indispensable part, mobile phone, tablet personal computer, etc. electronic equipment increasingly popularized in daily life, use Family can carry out information interchange by terminal, and as information interchange is frequent all the more, user can receive many message daily, and For the promptness of message feedback, general terminal can export corresponding message the tinkle of bells after receiving message, to prompt user to check Message handles the message, such as, mobile phone receive traditional C/S/PS networks, Wifi or Voip (Voice over IP, Internet uploads sending voice data) call when, incoming ring tone can be played to prompt user to handle the call.
But the volume of existing message notifying the tinkle of bells is typically pre-set by terminal system, volume is true It is fixed, if default volume is too small, in a noisy environment, user may missed messages prompting, if default volume is too big, pacifying Under quiet environment, it is possible to others or user oneself can be bothered, not only ringing volume is stiff, and brings to user bad Experience.
Therefore, the flexibility, intelligent of message ringing volume how is improved, turns into a technical problem urgently to be resolved hurrily.
The content of the invention
In view of this, the embodiments of the invention provide a kind of ringing volume adjusting method and device, to solve prior art The problem of middle ringing volume is stiff, poor user experience.
First aspect present invention provides a kind of ringing volume adjusting method, applied to terminal, such as mobile phone, tablet personal computer Deng, including:When a message is received, with the first default volume output message the tinkle of bells;Calculated according to default volume susceptibility and work as front ring Border volume;According to the volume of message the tinkle of bells described in the current environment volume adjusting.
The method described by implementing first aspect, when the terminal of user receives message, first with the first default volume The ring prompting of the message is exported, the first default volume can be especially small herein, and user will be barely audible, then pre- according to user If volume susceptibility calculate current environment volume, the ring prompting volume of the message is adjusted according to current environment volume Section, during than being called in if any phone, incoming ring tone is first played with less volume, it is other to avoid bothering under the environment of peace and quiet People, the default volume susceptibility then set according to user calculate current environment volume, and then can determine that current environment is peace It is quiet or noisy, the volume of incoming ring tone is adjusted according to result of calculation, is played in this way, avoiding receiving fixed news the tinkle of bells during message Volume is excessive to bother user, or fixed news the tinkle of bells broadcast sound volume is too small causes user to miss the best opportunity for checking message, The set-up mode of ringing volume is enriched according to default volume susceptibility calculating current environment volume, adds the spirit of ringing volume Activity, property of participation of the user in terms of ringing volume setting and interactive with terminal is enhanced, improves Consumer's Experience.
With reference to first aspect present invention, in first aspect present invention first embodiment, it is sensitive that the basis presets volume Degree, which calculates current environment volume, to be included:Record the current environment audio of preset duration;Calculated according to the default volume susceptibility Volume corresponding to the current environment audio;Volume corresponding to the current environment audio is defined as the current environment sound Amount.
By performing above-mentioned steps, the calculating for current environment volume, can record preset duration first works as front ring Border audio, preset duration can be very short herein, has hysteresis quality to avoid the tinkle of bells from playing, then, the default sound set according to user Amount susceptibility calculates volume corresponding to current environment audio, then volume corresponding to current environment audio is used as current environment sound Amount, current environment volume mode simplicity being calculated by recording current environment audio, it is not necessary to terminal additional equipment can be achieved, And the audio that scene is recorded has more authenticity, more presses close to the reality of current environment.
With reference to first aspect present invention first embodiment, in first aspect present invention second embodiment, the basis Volume corresponding to the default volume susceptibility calculating current environment audio includes:According to the default volume sensitivity Size selects corresponding volume calculation formula;According to corresponding to the volume calculation formula calculates the current environment audio Volume.
By performing above-mentioned steps, it is (i.e. different that different default volume susceptibilitys can correspond to different volume calculation formula Volume numerical procedure), its corresponding volume calculation formula, Ran Hougen are selected according to the size of default volume susceptibility first Volume corresponding to the current environment audio of recording is calculated according to the volume calculation formula, in this way, volume calculation formula is different, from root Determine that same current environment audio has different volumes in sheet, in actual application environment, the audio in environment is general It is uncertain, volume distribution is uniform sometimes, and volume height has a long way to go sometimes, therefore for the volume of current environment audio Calculate, the characteristics of environment can more be protruded using different volume calculation formula, and closed by presetting the setting of volume sensitivity Join different volume calculation formula, user can be participated in the calculating process of volume, result of calculation is more showed user's Demand, improve Consumer's Experience.
It is described according to the current environment in the embodiment of first aspect present invention the 3rd with reference to first aspect present invention The volume of message the tinkle of bells includes described in volume adjusting:Obtain the second default volume corresponding to the current environment volume;By described in The volume adjusting of message the tinkle of bells is to the described second default volume.
By performing above-mentioned steps, after current environment volume is calculated, obtain second corresponding to current environment volume Default volume, herein, the second default volume can be stored in advance in terminal, and its specific size can also be by user according to reality Demand is preset, and the volume that can also record user sets history, and lasting use habit according to user, setting second is pre- automatically If volume, different current environment volumes can correspond to different second and preset volume, then by the volume adjusting of message the tinkle of bells extremely Second default volume, in this way, default volume susceptibility and current environment volume that the volume of message the tinkle of bells is not only set with user It is relevant, also suffer from the influence of the volume use habit of user so that the volume of message the tinkle of bells more meet user demands of individuals, More hommization.
With reference to first aspect present invention or first aspect first embodiment or first aspect second embodiment or first The embodiment of aspect the 3rd, in the embodiment of first aspect present invention the 4th, the described first default volume is 0-20DB.
By performing above-mentioned steps, the first default volume can be 0-20DB, and human ear is limited to the audibility range of volume , it is extremely quiet for human ear for the volume in 0-20DB, user is almost imperceptible, therefore the first default volume When setting within the range, for the message the tinkle of bells first exported, user is almost imperceptible, and user would not be precipitate Ear-piercing the tinkle of bells is bothered.
In addition, second aspect of the present invention provides a kind of ringing volume adjusting means, for terminal, such as mobile phone and flat board electricity Brain etc., the ringing volume adjusting means include being used to perform above-mentioned any one ringing volume of first aspect or first aspect tune The module or unit of section method.
For example, described device includes:Output module, for when a message is received, volume output message bell being preset with first Sound;Computing module, for calculating current environment volume according to default volume susceptibility;Adjustment module, for according to described current Environmental volume adjusts the volume of the message the tinkle of bells.
By implementing above-mentioned ringing volume adjusting means, when the terminal of user receives message, first with the first default sound Amount exports the ring prompting of the message, and the first default volume can be especially small herein, and user will be barely audible, then according to user Default volume susceptibility calculates current environment volume, and the ring prompting volume of the message is adjusted according to current environment volume Section, during than being called in if any phone, incoming ring tone is first played with less volume, it is other to avoid bothering under the environment of peace and quiet People, the default volume susceptibility then set according to user calculate current environment volume, and then can determine that current environment is peace It is quiet or noisy, the volume of incoming ring tone is adjusted according to result of calculation, is played in this way, avoiding receiving fixed news the tinkle of bells during message Volume is excessive to bother user, or fixed news the tinkle of bells broadcast sound volume is too small causes user to miss the best opportunity for checking message, The set-up mode of ringing volume is enriched according to default volume susceptibility calculating current environment volume, adds the spirit of ringing volume Activity, property of participation of the user in terms of ringing volume setting and interactive with terminal is enhanced, improves Consumer's Experience.
With reference to second aspect of the present invention, in second aspect of the present invention first embodiment, the computing module includes:Record Unit, for recording the current environment audio of preset duration;Computing unit, for calculating institute according to the default volume susceptibility State volume corresponding to current environment audio;Determining unit, it is described for volume corresponding to the current environment audio to be defined as Current environment volume.
By implementing above-mentioned ringing volume adjusting means, the calculating for current environment volume, can record first default The current environment audio of duration, preset duration can be very short herein, has hysteresis quality to avoid the tinkle of bells from playing, then, according to user The default volume susceptibility set calculates volume corresponding to current environment audio, then volume corresponding to current environment audio is made For current environment volume, current environment volume mode simplicity is calculated by recording current environment audio, it is not necessary to which terminal is additional Equipment can be achieved, and the audio that scene is recorded has more authenticity, more presses close to the reality of current environment.
With reference to second aspect of the present invention first embodiment, in second aspect of the present invention second embodiment, the basis Volume corresponding to the default volume susceptibility calculating current environment audio includes:According to the default volume sensitivity Size selects corresponding volume calculation formula;According to corresponding to the volume calculation formula calculates the current environment audio Volume.
By implementing above-mentioned ringing volume adjusting means, different default volume susceptibilitys can correspond to different volumes and calculate Formula (i.e. different volume numerical procedures), its corresponding volume is selected according to the size of default volume susceptibility first and calculated Formula, the current environment audio of recording is then calculated according to the volume calculation formula corresponding to volume, in this way, volume calculate it is public Formula is different, fundamentally determines that same current environment audio has different volumes, in actual application environment, in environment Audio it is usually uncertain, volume distribution is uniform sometimes, and volume height has a long way to go sometimes, therefore for current environment sound The calculating of the volume of frequency, the characteristics of environment can more be protruded using different volume calculation formula, and pass through default volume sensitivity Setting associate different volume calculation formula, user can be participated in the calculating process of volume, result of calculation more can The demand of user is showed, improves Consumer's Experience.
With reference to second aspect of the present invention, in the embodiment of second aspect of the present invention the 3rd, the adjustment module includes:Obtain Unit, for obtaining the second default volume corresponding to the current environment volume;Adjustment unit, for by the message the tinkle of bells Volume adjusting is to the described second default volume.
By implementing above-mentioned ringing volume adjusting means, after current environment volume is calculated, current environment sound is obtained Second default volume corresponding to amount, herein, the second default volume can be stored in advance in terminal, and its specific size can also be by User presets according to the actual requirements, and the volume that can also record user sets history, lasts use habit certainly according to user Dynamic to set the second default volume, different current environment volumes can correspond to different second and preset volume, then by message the tinkle of bells Volume adjusting to the second default volume, in this way, default volume susceptibility that the volume of message the tinkle of bells is not only set with user and Current environment volume is relevant, also suffers from the influence of the volume use habit of user so that the volume of message the tinkle of bells more meets use The demands of individuals at family, more hommization.
With reference to second aspect of the present invention or second aspect first embodiment or second aspect second embodiment or second The embodiment of aspect the 3rd, in the embodiment of second aspect of the present invention the 4th, the described first default volume is 0-20DB.
By implementing above-mentioned ringing volume adjusting means, the first default volume can be 0-20DB, and human ear is listened volume Feel that scope is limited, be extremely quiet for human ear, user is almost imperceptible, therefore for the volume in 0-20DB When first default volume is set within the range, for the message the tinkle of bells first exported, user is almost imperceptible, and user would not Bothered by precipitate ear-piercing the tinkle of bells.
Module or unit included by the ringing volume adjusting means are not limited to above-mentioned naming method.
These aspects of the application can more straightforward in the following description.
Third aspect present invention provides a kind of terminal, including memory, processor and storage are on a memory and can The computer program run on a processor, it is characterised in that the present invention first is realized during the computing device described program Ringing volume adjusting method described in any embodiment of aspect or first aspect.
Fourth aspect present invention provides a kind of computer-readable recording medium, the computer-readable recording medium storage Computer instruction, the computer instruction are used for any reality for making the computer perform first aspect present invention or first aspect Apply the ringing volume adjusting method described in mode.
Brief description of the drawings
The features and advantages of the present invention can be more clearly understood by reference to accompanying drawing, accompanying drawing is schematically without that should manage Solve to carry out any restrictions to the present invention, in the accompanying drawings:
Fig. 1 shows the structure chart of mobile phone in the embodiment of the present invention;
Fig. 2 shows the flow chart of ringing volume adjusting method according to embodiments of the present invention;
Fig. 3 shows the structural representation of ringing volume adjusting means according to embodiments of the present invention;
Fig. 4 shows another structural representation of ringing volume adjusting means according to embodiments of the present invention;
Fig. 5 shows the structural representation of terminal according to embodiments of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those skilled in the art are not having There is the every other embodiment made and obtained under the premise of creative work, belong to the scope of protection of the invention.
As shown in figure 1, it is the application scenarios schematic diagram of embodiments of the invention.Mobile terminal is mobile phone or tablet personal computer etc. Mobile device, mobile terminal by taking mobile phone as an example, the part-structure block diagram of mobile phone as shown in figure 1, mobile phone include radio circuit 110, Memory 120, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, wireless module 170, processor 180 And the grade of power supply 190 part.It will be understood by those skilled in the art that the handset structure shown in Fig. 1 is not formed to mobile phone Limit, can include than illustrating more or less parts, either combine some parts or different parts arrangement.
Wherein RF circuits 110 be used for receive and send messages or communication process in, the reception and transmission of signal.Memory 120 is used for Software program and module are stored, processor 180 is stored in the software program and module of memory 120 by operation, so as to Perform various function application and the data processing of mobile phone.Input block 130 is used for the numeral or character information for receiving input, with And produce the key signals relevant with the user of mobile phone setting and function control and input.Input block 130 may include contact panel 131 and other input equipments 132.Other input equipments 132 can include but is not limited to physical keyboard, function key, mouse, behaviour Make the one or more in bar.Display unit 140 be used for show by user input information or be supplied to user information and The various menus of mobile phone.Display unit 140 can include display panel 141.Contact panel 131 can cover display panel 141, when After contact panel 131 detects the touch operation on or near it, processor 180 is sent to determine the class of touch event Type, it is followed by subsequent processing device 180 and corresponding visual output is provided on display panel 141 according to the type of touch event.
Mobile phone may also include at least one sensor 150, such as optical sensor, motion sensor and other sensors.Light Sensor may include ambient light sensor and proximity transducer, and environmental sensor can adjust display according to the light and shade of ambient light The brightness of panel 141, proximity transducer can close display panel 141 and/or backlight when mobile phone is moved in one's ear.This implementation In example on the housing for the front and back that optical sensor can be arranged on mobile phone, for detecting blocked area when user holds mobile phone Domain.Pressure sensor can also be included herein, be arranged on the front or back housing of mobile phone, for the side by detecting pressure Formula obtains occlusion area when user holds mobile phone.In addition, mobile phone can also configure gyroscope, barometer, hygrometer, temperature The other sensors such as meter, infrared ray sensor, are repeated no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and mobile phone.Wireless mould Block 170 can be WIFI module, provide the user wireless the Internet access service.
Processor 180 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform the software program and/or module being stored in memory 120, and call and be stored in memory 120 Data, the various functions and processing data of mobile phone are performed, so as to carry out integral monitoring to mobile phone.Optionally, processor 180 can be with Including one or more processing units.In addition, mobile phone also include each part power supply power supply 190, by power-supply management system with Processor 180 is logically contiguous, so as to realize the functions such as management charging, electric discharge and power managed by power-supply management system.
Although being not shown, mobile phone can also include camera, bluetooth module etc., will not be repeated here.
Referring to Fig. 2, a kind of ringing volume adjusting method provided in an embodiment of the present invention, applied to terminal, such as computer, Television set etc., method includes:
S21:When a message is received, with the first default volume output message the tinkle of bells;It is first when the terminal of user receives message The ring prompting of the message is first exported with the first default volume, the first default volume can be especially small herein, and user almost listens not Arrive, it might even be possible to be Jing Yin, alternatively, the first default volume can be 0-20DB, and human ear is limited to the audibility range of volume , it is extremely quiet for human ear for the volume in 0-20DB, user is almost imperceptible, therefore the first default volume When setting within the range, for the message the tinkle of bells first exported, user is almost imperceptible, and user would not be precipitate Ear-piercing the tinkle of bells is bothered.During than being called in if any phone, incoming ring tone is first played with less volume, to avoid in quiet environment Under bother others.
S22:Current environment volume is calculated according to default volume susceptibility;I.e. user check or handle the message it Before, current environment volume is calculated according to the volume susceptibility of user preset, and then can determine that current environment is quiet or noisy Noisy, herein, default volume susceptibility can be preset according to the actual requirements by user, and the volume that can also record user is sensitive Degree sets history, lasts use habit according to user and sets automatically, the embodiment user that default volume susceptibility can be protruded more For the demand of volume so that the current environment volume being calculated calculates with more personalization according to default volume susceptibility Current environment volume enriches the set-up mode of ringing volume, adds the flexibility of ringing volume, enhances user in the tinkle of bells Property of participation in terms of volume setting and interactive with terminal, improves Consumer's Experience.
Alternatively, step S22 can include:Record the current environment audio of preset duration;According to default volume susceptibility Calculate volume corresponding to current environment audio;Volume corresponding to current environment audio is defined as current environment volume.I.e. for The calculating of current environment volume, the current environment audio of preset duration can be recorded first, specifically, such as, when recording default The current environment audio of long T seconds, android system provide three class MediaRecorder, AudioSource, AudioRecord recording audios, can also directly from Android Audio Hardware read () function or The tinycap instruments provided in Linux ALSA frameworks read the PCM data of current environment audio, and preset duration can be very herein It is short, there is hysteresis quality to avoid the tinkle of bells from playing, then, current environment audio is calculated according to the default volume susceptibility that user is set Corresponding volume, then volume corresponding to current environment audio i.e. be used as current environment volume, by record current environment audio come It is easy to calculate current environment volume mode, it is not necessary to which terminal additional equipment can be achieved, and the audio that scene is recorded has more Authenticity, more press close to the reality of current environment.
As a kind of specific embodiment, the volume bag according to corresponding to default volume susceptibility calculates current environment audio Include:Corresponding volume calculation formula is selected according to the size of default volume sensitivity;Calculated and worked as according to volume calculation formula Volume corresponding to preceding environmental audio.Different default volume susceptibilitys can correspond to different volume calculation formula (i.e. different sounds Measure numerical procedure), its corresponding volume calculation formula is selected according to the size of default volume susceptibility first, then basis should Volume calculation formula calculates volume corresponding to the current environment audio of recording, in this way, volume calculation formula is different, fundamentally Determine that same current environment audio has different volumes, in actual application environment, the audio in environment is usually not Determine, volume distribution is uniform sometimes, and volume height has a long way to go sometimes, therefore the meter of the volume for current environment audio Calculate, the characteristics of environment can more be protruded using different volume calculation formula, and associated by presetting the setting of volume sensitivity Different volume calculation formula, user can be participated in the calculating process of volume, result of calculation is more showed the need of user Ask, improve Consumer's Experience.Specifically, volume is characterized by audio amplitude, then it is different for different volume sensitivity The scheme of volume calculation formula be described as follows:
Default volume sensitivity 1:In T second current environment audios, worked as by calculating the maximum of all sampled points to characterize Preceding environmental volume;There are the following two kinds acquisition modes for the maximum of all sampled points:
Mode one:The current environment audio of T seconds is first first recorded using MediaRecorder or AudioSource, then Using MediaRecorder or AudioSource method getMaxAmplitude (), all samplings in this T seconds are obtained The maximum of point.
Mode two:The audio of T seconds is first recorded, preserves the pcm voice datas of this T seconds, each sampled point is taken out in then circulation Compare, until calculating maximum.
Then current environment volume is calculated using equation below:
Wherein, LPFor current environment volume, Prms1 is the maximum of all sampled points, and Pref is that reference sound pressure (is generally 20 micro- pas, the minimum acoustic pressure that the mankind can hear).The current environment volume come out by audio sample point maximum value calculation is to ring The sign of border sound more block, strong, but can be influenceed by Outliers, such as, at a certain moment, there is leviathan to drop and generate One sound loud noise, if the loud noise is collected, result of calculation will be made very big, and current environment is possible to overall relatively peace in fact It is quiet.
Default volume sensitivity 2:In T second current environment audios, characterized by the average value of all audio sample points Current environment volume, that is, the pcm voice datas of the T second current environment audios of recording are preserved, then therefrom circulation taking-up is each adopted Sampling point, first seeks their quadratic sum, then with quadratic sum divided by the sampling number in the T seconds;Finally calculated and worked as using equation below Preceding environmental volume:
Wherein, LPFor current environment volume, A1For the average value of all audio sample points, A0It is that reference amplitude (typically takes 20 Amplitude corresponding to micro- pa sound pressure level, can directly it be taken 1) when calculating here.Obtained by the mean value calculation of all audio sample points It is more stable to current environment volume, it is not easily susceptible to the influence of extreme case, but compared to passing through audio sample point maximum The mode of calculating, it is slower to the sign of environmental volume.
Default volume sensitivity 3:In T second current environment audios, by calculate the virtual value of all audio sample points come Current environment volume is characterized, that is, preserves the pcm voice datas of the T second current environment audios of recording, then therefrom circulation is taken out often Individual sampled point, their root-mean-square value is calculated using equation below:
Wherein, XiThe value of ith sample point is represented, N represents the sampling number in the T seconds, XrmsRepresent the equal of all sampled points Root;Then current environment volume is calculated using equation below:
Wherein, LPFor current environment volume, Prms2 is the virtual value of all audio sample points, and Pref is reference sound pressure (one As be 20 micro- pas, the minimum acoustic pressure that the mankind can hear).Work as front ring by what the virtual value of all audio sample points was calculated Border volume can be between current environment volume corresponding to default volume sensitivity 1 and default volume sensitivity 2.
It should be noted that for different demands (degree of the DB to the sign of ambient sound), it can consider and carry above Three kinds of algorithms of the computing environment volume arrived, such as, the T seconds are divided into n deciles, take the maximum of each decile sound intermediate frequency sampled point Value, then, according to the algorithm mentioned in default volume sensitivity 2, first seeks their quadratic sum by all these maximums again, Quadratic sum divided by n are used again, and the volume DB values so calculated can be right between default volume sensitivity 1 and default volume sensitivity 2 Between the current environment volume answered.Naturally, the mode of calculating current environment volume of the invention is not limited to above-mentioned meter Combination is calculated, as long as the calculation for being that by the technical scheme of the present embodiment is applied to the present invention.
S23:According to the volume of current environment volume adjusting message the tinkle of bells.Work as front ring according to what step S22 was calculated The ring prompting volume of the message is adjusted border volume, in this way, avoiding receiving fixed news the tinkle of bells broadcast sound volume during message It is excessive to bother user, or fixed news the tinkle of bells broadcast sound volume is too small causes user to miss the best opportunity for checking message, enriches The set-up mode of ringing volume, adds the flexibility of ringing volume, enhances ginseng of the user in terms of ringing volume setting With property and interactive with terminal, Consumer's Experience is improved.
Alternatively, step S23 can include:Obtain the second default volume corresponding to current environment volume;By message the tinkle of bells Volume adjusting to the second default volume.After current environment volume is calculated, obtain second corresponding to current environment volume Default volume, herein, the second default volume can be stored in advance in terminal, and its specific size can also be by user according to reality Demand is preset, and the volume that can also record user sets history, and lasting use habit according to user, setting second is pre- automatically If volume, different current environment volumes can correspond to different second and preset volume, specifically, can be by setting level for volume The second default volume is not set, it is as follows:
The tier definition that android system will be prompted to sound is 0-7 ranks (0:Volume is minimum, equivalent to Jing Yin, 7:Sound is most It is 7 grades by DB points greatly) according to " decibel " entry on wikipedia, the 1-7 of corresponding A ndroid systems prompting respectively Sound grade, it is as shown in the table:
DB Prompt tone grade
0-20 is extremely quiet, almost imperceptible 1
20-40 is quiet, softly talks 2
40-60 is general, and general room is talked 3
60-70 is noisy, speaks up 4
70-90 is very noisy, and nerve cell can have an impact 5
The noisy aggravations of 90-110 6
More than 110 impaired hearings 7
Certainly, the level of sound volume distribution shown in upper table, can be adjusted as the case may be and reasonably, such as mobile phone prompt tone Sound size, intensity of variation level and level between etc. of the grade per one-level can be all adjusted.Calculating current environment volume When, you can corresponding volume-level (the i.e. second default volume) is matched from upper table, then by the volume adjusting of message the tinkle of bells To the volume-level, in this way, default volume susceptibility and current environment volume that the volume of message the tinkle of bells is not only set with user It is relevant, also suffer from the influence of the volume use habit of user so that the volume of message the tinkle of bells more meet user demands of individuals, More hommization.
The ringing volume adjusting method provided in the present embodiment, it is pre- with first first when the terminal of user receives message If volume exports the ring prompting of the message, the first default volume can be especially small herein, and user will be barely audible, then basis The volume susceptibility of user preset calculates current environment volume, and the ring prompting volume of the message is entered according to current environment volume Row regulation, during than being called in if any phone, incoming ring tone is first played with less volume, to avoid bothering under the environment of peace and quiet To others, the default volume susceptibility then set according to user calculates current environment volume, and then can determine current environment It is quiet or noisy, the volume of incoming ring tone is adjusted according to result of calculation, in this way, avoiding receiving fixed news the tinkle of bells during message Broadcast sound volume is excessive to bother user, or fixed news the tinkle of bells broadcast sound volume it is too small cause user miss check message it is optimal when Machine, the set-up mode of ringing volume is enriched according to default volume susceptibility calculating current environment volume, adds ringing volume Flexibility, enhance property of participation of the user in terms of ringing volume setting and interactive with terminal, improve user's body Test.
It is a kind of structural representation of ringing volume adjusting means provided in an embodiment of the present invention, for end referring to Fig. 3 End, such as mobile phone, tablet personal computer etc., it includes:
Output module 31, for when a message is received, volume output message the tinkle of bells being preset with first;Detailed content is referring to upper State the step S21 in embodiment.
Computing module 32, for calculating current environment volume according to default volume susceptibility;Detailed content is referring to above-mentioned reality Apply the step S22 in example.
Adjustment module 33, for the volume according to current environment volume adjusting message the tinkle of bells.Detailed content is referring to above-mentioned reality Apply the step S23 in example.
Alternatively, in some embodiments of the invention, as shown in figure 4, computing module 32 includes:Recording elements 321, for recording The current environment audio of preset duration processed;Computing unit 322, for calculating current environment audio pair according to default volume susceptibility The volume answered;Determining unit 323, for volume corresponding to current environment audio to be defined as into current environment volume.Detailed content It is described in detail referring to the correlation in above-described embodiment.
Alternatively, in some embodiments of the invention, the sound according to corresponding to default volume susceptibility calculates current environment audio Amount includes:Corresponding volume calculation formula is selected according to the size of default volume sensitivity;According to volume calculation formula meter Calculate volume corresponding to current environment audio.Detailed content is described in detail referring to the correlation in above-described embodiment.
Alternatively, in some embodiments of the invention, as shown in figure 4, adjustment module 33 includes:Acquiring unit 331, for obtaining Take the second default volume corresponding to current environment volume;Adjustment unit 332, for by the volume adjusting of message the tinkle of bells to second pre- If volume.Detailed content is described in detail referring to the correlation in above-described embodiment.
Alternatively, in some embodiments of the invention, the first default volume is 0-20DB.Detailed content is referring to above-described embodiment In related detailed description.
Above-mentioned ringing volume adjusting means, first should with the first default volume output when the terminal of user receives message The ring prompting of message, the first default volume can be especially small herein, and user will be barely audible, then according to the sound of user preset Measure susceptibility and calculate current environment volume, the ring prompting volume of the message is adjusted according to current environment volume, such as When having the phone to call in, incoming ring tone is first played with less volume, to avoid bothering others under the environment of peace and quiet, then The default volume susceptibility set according to user calculates current environment volume, and then can determine that current environment is quiet or noisy It is noisy, the volume of incoming ring tone is adjusted according to result of calculation, in this way, it is excessive to avoid receiving fixed news the tinkle of bells broadcast sound volume during message User is bothered, or fixed news the tinkle of bells broadcast sound volume is too small causes user to miss the best opportunity for checking message, according to default Volume susceptibility calculates the set-up mode that current environment volume enriches ringing volume, adds the flexibility of ringing volume, increases Property of participation of the strong user in terms of ringing volume setting and interactive with terminal, improves Consumer's Experience.
The embodiment of the present invention additionally provides a kind of terminal, including:Any ringing volume adjusting means in above-described embodiment.
Illustrate a kind of terminal of the present invention by taking a kind of smart mobile phone as an example below.
As shown in figure 5, correspondingly, a kind of terminal provided in the embodiment of the present invention, including:At least one processor 51, Memory 52, in Fig. 5 by taking a processor as an example, processor 51, memory 52 are connected by bus 50, and memory 52 is stored with The instruction that can be performed by least one processor 51, instructs and is performed by least one processor 51, so that at least one processor Perform following method:
When a message is received, with the first default volume output message the tinkle of bells;
Current environment volume is calculated according to default volume susceptibility;
According to the volume of current environment volume adjusting message the tinkle of bells.
Optionally, in some embodiments of the invention, calculating current environment volume according to default volume susceptibility includes: Record the current environment audio of preset duration;The volume according to corresponding to default volume susceptibility calculates current environment audio;Ought Volume corresponding to preceding environmental audio is defined as current environment volume.
Optionally, in some embodiments of the invention, current environment audio is calculated according to default volume susceptibility to correspond to Volume include:Corresponding volume calculation formula is selected according to the size of default volume sensitivity;Calculated according to volume public Formula calculates volume corresponding to current environment audio.
Alternatively, in some embodiments of the invention, included according to the volume of current environment volume adjusting message the tinkle of bells: Obtain the second default volume corresponding to current environment volume;By the volume adjusting of message the tinkle of bells to the second default volume.
Alternatively, in some embodiments of the invention, the first default volume is 0-20DB.
Related description can correspond to associated description corresponding the step of referring to Fig. 2 and effect is understood, not do herein Excessively repeat.
The terminal that above-described embodiment provides, first should with the first default volume output when the terminal of user receives message The ring prompting of message, the first default volume can be especially small herein, and user will be barely audible, then according to the sound of user preset Measure susceptibility and calculate current environment volume, the ring prompting volume of the message is adjusted according to current environment volume, such as When having the phone to call in, incoming ring tone is first played with less volume, to avoid bothering others under the environment of peace and quiet, then The default volume susceptibility set according to user calculates current environment volume, and then can determine that current environment is quiet or noisy It is noisy, the volume of incoming ring tone is adjusted according to result of calculation, in this way, it is excessive to avoid receiving fixed news the tinkle of bells broadcast sound volume during message User is bothered, or fixed news the tinkle of bells broadcast sound volume is too small causes user to miss the best opportunity for checking message, according to default Volume susceptibility calculates the set-up mode that current environment volume enriches ringing volume, adds the flexibility of ringing volume, increases Property of participation of the strong user in terms of ringing volume setting and interactive with terminal, improves Consumer's Experience.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, and computer-readable recording medium storage has meter Calculation machine executable instruction, the computer executable instructions can perform all or part of flow in above-described embodiment method.Wherein, Storage medium can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (Flash Memory), hard disk (Hard Disk Drive, contracting Write:) or solid state hard disc (Solid-State Drive, SSD) etc. HDD;Storage medium can also include the memory of mentioned kind Combination.
Although being described in conjunction with the accompanying embodiments of the invention, those skilled in the art can not depart from the present invention Spirit and scope in the case of various modification can be adapted and modification, such modifications and variations are each fallen within by appended claims institute Within the scope of restriction.

Claims (12)

  1. A kind of 1. ringing volume adjusting method, it is characterised in that including:
    When a message is received, with the first default volume output message the tinkle of bells;
    Current environment volume is calculated according to default volume susceptibility;
    According to the volume of message the tinkle of bells described in the current environment volume adjusting.
  2. 2. ringing volume adjusting method according to claim 1, it is characterised in that the basis presets volume susceptibility meter Calculating current environment volume includes:
    Record the current environment audio of preset duration;
    The volume according to corresponding to the default volume susceptibility calculates the current environment audio;
    Volume corresponding to the current environment audio is defined as the current environment volume.
  3. 3. ringing volume adjusting method according to claim 2, it is characterised in that described sensitive according to the default volume Volume corresponding to the degree calculating current environment audio includes:
    Corresponding volume calculation formula is selected according to the size of the default volume sensitivity;
    The volume according to corresponding to the volume calculation formula calculates the current environment audio.
  4. 4. ringing volume adjusting method according to claim 1, it is characterised in that described according to the current environment volume Adjusting the volume of the message the tinkle of bells includes:
    Obtain the second default volume corresponding to the current environment volume;
    By the volume adjusting of the message the tinkle of bells to the described second default volume.
  5. 5. ringing volume adjusting method according to any one of claim 1 to 4, it is characterised in that described first is default Volume is 0-20DB.
  6. A kind of 6. ringing volume adjusting means, it is characterised in that including:
    Output module, for when a message is received, volume output message the tinkle of bells being preset with first;
    Computing module, for calculating current environment volume according to default volume susceptibility;
    Adjustment module, the volume for the message the tinkle of bells according to the current environment volume adjusting.
  7. 7. ringing volume adjusting means according to claim 6, it is characterised in that the computing module includes:
    Recording elements, for recording the current environment audio of preset duration;
    Computing unit, for the volume according to corresponding to the default volume susceptibility calculating current environment audio;
    Determining unit, for volume corresponding to the current environment audio to be defined as into the current environment volume.
  8. 8. ringing volume adjusting means according to claim 7, it is characterised in that described sensitive according to the default volume Volume corresponding to the degree calculating current environment audio includes:
    Corresponding volume calculation formula is selected according to the size of the default volume sensitivity;
    The volume according to corresponding to the volume calculation formula calculates the current environment audio.
  9. 9. ringing volume adjusting means according to claim 6, it is characterised in that the adjustment module includes:
    Acquiring unit, for obtaining the second default volume corresponding to the current environment volume;
    Adjustment unit, for the volume adjusting of the message the tinkle of bells to described second to be preset into volume.
  10. 10. the ringing volume adjusting means according to any one of claim 6 to 9, it is characterised in that described first is default Volume is 0-20DB.
  11. 11. a kind of terminal, including memory, processor and storage are on a memory and the computer that can run on a processor Program, it is characterised in that the tinkle of bells sound any one of claim 1 to 5 is realized during the computing device described program Amount adjustment method.
  12. 12. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The ringing volume adjusting method any one of claim 1 to 5 is realized during execution.
CN201710542615.0A 2017-07-05 2017-07-05 A kind of ringing volume adjusting method and device Pending CN107493376A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710542615.0A CN107493376A (en) 2017-07-05 2017-07-05 A kind of ringing volume adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710542615.0A CN107493376A (en) 2017-07-05 2017-07-05 A kind of ringing volume adjusting method and device

Publications (1)

Publication Number Publication Date
CN107493376A true CN107493376A (en) 2017-12-19

Family

ID=60644337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710542615.0A Pending CN107493376A (en) 2017-07-05 2017-07-05 A kind of ringing volume adjusting method and device

Country Status (1)

Country Link
CN (1) CN107493376A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093142A (en) * 2017-12-28 2018-05-29 努比亚技术有限公司 volume adjusting method, mobile terminal and computer readable storage medium
CN109582274A (en) * 2018-11-30 2019-04-05 北京微播视界科技有限公司 Volume adjusting method, device, electronic equipment and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7869768B1 (en) * 2006-08-10 2011-01-11 Natan Vishlitzky Techniques for controlling speaker volume of a portable communications device
CN104795076A (en) * 2014-01-21 2015-07-22 红板凳科技股份有限公司 Audio detection method
CN104883437A (en) * 2015-05-04 2015-09-02 南京理工大学 Method and system for adjusting the volume of warning tone through environment-based voice analysis
CN105338162A (en) * 2014-06-30 2016-02-17 展讯通信(上海)有限公司 Method and system for adaptively adjusting incoming call prompting modes of mobile phone
CN105635432A (en) * 2015-07-28 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Scene mode setting method and apparatus
CN105898078A (en) * 2016-06-23 2016-08-24 乐视控股(北京)有限公司 Ringing volume regulation method and ringing volume regulation device
CN106331298A (en) * 2015-06-30 2017-01-11 上海卓易科技股份有限公司 Mobile terminal and ring tone smart adjustment method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7869768B1 (en) * 2006-08-10 2011-01-11 Natan Vishlitzky Techniques for controlling speaker volume of a portable communications device
CN104795076A (en) * 2014-01-21 2015-07-22 红板凳科技股份有限公司 Audio detection method
CN105338162A (en) * 2014-06-30 2016-02-17 展讯通信(上海)有限公司 Method and system for adaptively adjusting incoming call prompting modes of mobile phone
CN104883437A (en) * 2015-05-04 2015-09-02 南京理工大学 Method and system for adjusting the volume of warning tone through environment-based voice analysis
CN106331298A (en) * 2015-06-30 2017-01-11 上海卓易科技股份有限公司 Mobile terminal and ring tone smart adjustment method thereof
CN105635432A (en) * 2015-07-28 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Scene mode setting method and apparatus
CN105898078A (en) * 2016-06-23 2016-08-24 乐视控股(北京)有限公司 Ringing volume regulation method and ringing volume regulation device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093142A (en) * 2017-12-28 2018-05-29 努比亚技术有限公司 volume adjusting method, mobile terminal and computer readable storage medium
CN109582274A (en) * 2018-11-30 2019-04-05 北京微播视界科技有限公司 Volume adjusting method, device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
CN102172044B (en) Control method and apparatus for audio output
CN107509153B (en) Detection method and device of sound playing device, storage medium and terminal
US20100172522A1 (en) Programmable earphone device with customizable controls and heartbeat monitoring
WO2019033987A1 (en) Prompting method and apparatus, storage medium, and terminal
EP3038255B1 (en) An intelligent volume control interface
KR100916726B1 (en) The hearing level formaly as hearing loss measure system and method and the audio signal output controller using the same and method
CN110459212A (en) Method for controlling volume and equipment
CN112947886B (en) Method and device for protecting hearing of user and electronic equipment
CN107493500A (en) Multimedia resource player method and device
WO2021103260A1 (en) Control method for headphones and headphones
CN105262887B (en) Mobile terminal and audio setting method thereof
CN104754462A (en) Automatic regulating device and method for volume and earphone
CN113949956A (en) Noise reduction processing method and device, electronic equipment, earphone and storage medium
CN107547732A (en) A kind of media play volume adjusting method, device, terminal and storage medium
KR100810077B1 (en) Equaliztion Method with Equal Loudness Curve
CN108810787B (en) Foreign matter detection method and device based on audio equipment and terminal
CN107493376A (en) A kind of ringing volume adjusting method and device
CN111800699B (en) Volume adjustment prompting method and device, earphone equipment and storage medium
CN113824838B (en) Sounding control method and device, electronic equipment and storage medium
CN114071307B (en) Earphone volume adjusting method, device, equipment and medium
CN106293607B (en) Method and system for automatically switching audio output modes
CN104754120B (en) A kind of terminal
US20230396938A1 (en) Capture of context statistics in hearing instruments
CN113495713B (en) Method and device for adjusting earphone audio parameters, earphone 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171219

RJ01 Rejection of invention patent application after publication