CN110333838A - A kind of control method of volume, terminal and computer storage medium - Google Patents

A kind of control method of volume, terminal and computer storage medium Download PDF

Info

Publication number
CN110333838A
CN110333838A CN201910500871.2A CN201910500871A CN110333838A CN 110333838 A CN110333838 A CN 110333838A CN 201910500871 A CN201910500871 A CN 201910500871A CN 110333838 A CN110333838 A CN 110333838A
Authority
CN
China
Prior art keywords
volume value
terminal
corresponding volume
voice prompt
local environment
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
CN201910500871.2A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910500871.2A priority Critical patent/CN110333838A/en
Publication of CN110333838A publication Critical patent/CN110333838A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the present application discloses a kind of control method of volume, this method is applied in a terminal, this method comprises: when terminal is in and puts out screen state, acquire the intensity of sound in local environment, according to the intensity of sound in environment, it determines corresponding volume value, according to the relationship between corresponding volume value and the volume value pre-set, determines that terminal issues the volume value of voice prompt in local environment.The embodiment of the present application also provides a kind of terminal and computer storage medium simultaneously.

Description

A kind of control method of volume, terminal and computer storage medium
Technical field
This application involves volume controlling techniques more particularly to a kind of control method of volume, terminal and computer storage to be situated between Matter.
Background technique
It can use mobile phone currently, mobile phone has become essential important item, people in people's daily life and beat Phone, send short messages and see news etc., mobile phone is usually to prompt user by volume value set by user when putting out screen state Incoming call, carry out short message, or receive notification message etc., still, after user setting good volume value, mobile phone can be according to setting Volume value prompt user.
However, in a noisy environment, the volume value of user setting may be less than normal with the variation of external environment, cause Mobile phone can not achieve the function of prompt user, and in more quiet environment, the voice prompt of mobile phone is excessive, will form high score The environmental noise of shellfish, it can thus be seen that immobilize for the mobile phone put out under screen state since volume value has been set, Lead to the Experience Degree that user is influenced there may be generation the case where cannot prompting user.
Summary of the invention
The embodiment of the present application provides the control method, terminal and computer storage medium of a kind of volume, can be intelligently Realize to the control of volume into.
The technical solution of the application is achieved in that
The embodiment of the present application provides a kind of control method of volume, and the method is applied in a terminal, the method Include:
When the terminal is in and puts out screen state, the intensity of sound in local environment is acquired;
According to the intensity of sound in the environment, corresponding volume value is determined;
According to the relationship between corresponding volume value and the volume value pre-set, determine the terminal in local environment The middle volume value for issuing voice prompt;
Wherein, the voice prompt is used to prompt the sound of user's generation particular event of the terminal.
In the above-mentioned methods, the relationship according between corresponding volume value and the volume value pre-set determines The terminal issues the volume value of voice prompt in local environment, comprising:
When corresponding volume value is greater than the volume value set, corresponding volume value is determined as the terminal and is existed The volume value of voice prompt is issued in local environment.
In the above-mentioned methods, the relationship according between corresponding volume value and the volume value pre-set determines The terminal issues the volume value of voice prompt in local environment, comprising:
When corresponding volume value is greater than the volume value set, and corresponding volume value is volume in the terminal When the maximum value of value, corresponding volume value is determined as the volume value that the terminal issues voice prompt in local environment, and Open vibration mode;
Wherein, the vibration mode is that the mode vibrated when particular event occurs in prompt for the terminal.
In the above-mentioned methods, the relationship according between corresponding volume value and the volume value pre-set determines The terminal issues the volume value of voice prompt in local environment, comprising:
When corresponding volume value is greater than the volume value set, judge whether corresponding volume value is more than or equal to the One preset threshold;
When corresponding volume value be less than or equal to first preset threshold, corresponding volume value is determined as the terminal and is existed The volume value of voice prompt is issued in local environment;
When corresponding volume value be greater than first preset threshold, corresponding volume value is determined as the terminal locating The volume value of voice prompt is issued in environment, and opens vibration mode;
Wherein, the vibration mode is that the mode vibrated when particular event occurs in prompt for the terminal.
In the above-mentioned methods, the relationship according between corresponding volume value and the volume value pre-set determines The terminal issues the volume value of voice prompt in local environment, comprising:
When corresponding volume value is less than or equal to the volume value set, the volume value set is maintained.
In the above-mentioned methods, the relationship according between corresponding volume value and the volume value pre-set determines The terminal issues the volume value of voice prompt in local environment, comprising:
When corresponding volume value is less than or equal to the volume value set, judge whether corresponding volume value is less than In the second preset threshold;
When corresponding volume value is less than or equal to second preset threshold, the terminal is prompted to hair in local environment The pattern switching of raw particular event is vibration mode;
When corresponding volume value is greater than second preset threshold, the volume value that sets described in calculating and corresponding sound Difference between magnitude;
According to the difference, determine that the terminal issues the volume value of voice prompt in local environment.
In the above-mentioned methods, described according to the difference, determine that the terminal issues voice prompt in local environment Volume value, comprising:
When the difference is less than or equal to third predetermined threshold value, the volume value set is maintained;
When the difference is greater than the third predetermined threshold value, by the sum of corresponding volume value and the third predetermined threshold value It is determined as the volume value that the terminal issues voice prompt in local environment.
The embodiment of the present application provides a kind of terminal, and the terminal includes:
Acquisition module, for acquiring the intensity of sound in local environment when the terminal is in and puts out screen state;
First determining module determines corresponding volume value for the intensity according to sound in the environment;
Second determining module, for determining according to the relationship between corresponding volume value and the volume value pre-set The terminal issues the volume value of voice prompt in local environment;
Wherein, the voice prompt is used to prompt the sound of user's generation particular event of the terminal.
In above-mentioned terminal, second determining module is specifically used for:
When corresponding volume value is greater than the volume value set, corresponding volume value is determined as the terminal and is existed The volume value of voice prompt is issued in local environment.
In above-mentioned terminal, second determining module is specifically used for:
When corresponding volume value is greater than the volume value set, and corresponding volume value is volume in the terminal When the maximum value of value, corresponding volume value is determined as the volume value that the terminal issues voice prompt in local environment, and Open vibration mode;
Wherein, the vibration mode is that the mode vibrated when particular event occurs in prompt for the terminal.
In above-mentioned terminal, second determining module is specifically used for:
When corresponding volume value is greater than the volume value set, judge whether corresponding volume value is more than or equal to the One preset threshold;
When corresponding volume value be less than or equal to first preset threshold, corresponding volume value is determined as the terminal and is existed The volume value of voice prompt is issued in local environment;
When corresponding volume value be greater than first preset threshold, corresponding volume value is determined as the terminal locating The volume value of voice prompt is issued in environment, and opens vibration mode;
Wherein, the vibration mode is that the mode vibrated when particular event occurs in prompt for the terminal.
In above-mentioned terminal, second determining module is specifically used for:
When corresponding volume value is less than or equal to the volume value set, the volume value set is maintained.
In above-mentioned terminal, second determining module is specifically used for:
When corresponding volume value is less than or equal to the volume value set, judge whether corresponding volume value is less than In the second preset threshold;
When corresponding volume value is less than or equal to second preset threshold, the terminal is prompted to hair in local environment The pattern switching of raw particular event is vibration mode;
When corresponding volume value is greater than second preset threshold, the volume value that sets described in calculating and corresponding sound Difference between magnitude;
According to the difference, determine that the terminal issues the volume value of voice prompt in local environment.
In above-mentioned terminal, second determining module determines that the terminal is sent out in local environment according to the difference Out in the volume value of voice prompt, comprising:
When the difference is less than or equal to third predetermined threshold value, the volume value set is maintained;
When the difference is greater than the third predetermined threshold value, by the sum of corresponding volume value and the third predetermined threshold value It is determined as the volume value that the terminal issues voice prompt in local environment.
The embodiment of the present application also provides a kind of terminal, the terminal includes: processor and is stored with the processor The storage medium of executable instruction, the storage medium relies on the processor by communication bus and executes operation, when the finger When enabling by processor execution, the control method of volume described in said one or multiple embodiments is executed.
The embodiment of the present application provides a kind of computer storage medium, is stored with executable instruction, when the executable finger When order is executed by one or more processors, the processor executes the control of volume described in said one or multiple embodiments Method processed.
The embodiment of the present application provides the control method, terminal and computer storage medium of a kind of volume, this method application In a terminal, this method comprises: the intensity of sound in local environment is acquired, according to environment when terminal is in and puts out screen state The intensity of middle sound determines corresponding volume value, according to the relationship between corresponding volume value and the volume value pre-set, Determine that terminal issues the volume value of voice prompt in local environment, wherein user of the voice prompt for prompt terminal occurs The sound of particular event;That is, in the embodiment of the present application, by being adopted to the intensity of sound in terminal local environment Collection, the corresponding volume value of intensity of sound in environment can be obtained, in this way, to according to corresponding volume value with pre-set Volume value between relationship, determine that terminal issues the volume value of voice prompt in local environment, that is, when terminal be in put out screen When state, the control to volume value can be realized according to the intensity of sound in local environment, in this way, allowing terminal according to ring The Strength Changes of sound adjust volume value in border, to prevent user from can not hear the voice prompt or voice prompt mistake of terminal Greatly to interference caused by environment, the control to volume is more intelligently realized, improve the Experience Degree of user.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the control method of optional volume provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of the example of the control method of optional volume provided by the embodiments of the present application;
Fig. 3 is the flow diagram of the example of the control method of another optional volume provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram one of terminal provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram two of terminal provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description.
Embodiment one
The embodiment of the present application provides a kind of control method of volume, and this method is applied in a terminal, and Fig. 1 is the application The flow diagram of the control method for a kind of optional volume that embodiment provides, refering to what is shown in Fig. 1, the control method of the volume May include:
S101: when terminal is in and puts out screen state, the intensity of sound in local environment is acquired;
Under normal conditions, terminal can by sound, perhaps vibrate or sound+vibration come prompt terminal user hair Raw particular event, for example, need user to pre-set the volume value of the sound for prompting when by sound to prompt, For example, the volume value of sound when having an incoming call for prompt, it is assumed that the range of volume value set by developer is 0-100,0 Represent mute, 100 representative voices maximum.
Wherein, which indicates the grade point of volume, and it is by volume value that the range for volume value, which is for 0-100, It is divided into 101 grades, from grade 0, grade 1, grade 2, grade 3, class 4, class 5, class 6, grade 7, grade 8, grade 9, Until grade 100, sound successively becomes larger, and for grade 0, when incoming call does not have sound, and for grade 100, sound is maximum when incoming call.
Here, it should be noted that the range of volume value is not especially limited in the embodiment of the present application.
Currently, after the user setting handy volume value come the sound prompted, when terminal need that user is prompted to occur it is special When determining event, the volume value regardless of environment locating for terminal, the sound for prompting user that particular event occurs can only be adopted With the volume value pre-set, if noise is larger in environment locating for terminal, and when set volume value is smaller, will lead to Terminal can not play the role of notifying user, if when more quiet in environment locating for terminal, it is specific for prompting user to occur The sound of event can destroy quiet environment locating for terminal.
Adverse effect caused by set volume value is too small or excessive in order to prevent, the main needle of the embodiment of the present application To the terminal put out under screen state, the volume value of the sound for prompting has been set in the terminal under screen state due to putting out, So the volume value pre-set not necessarily adapts to terminal and works as when the external environment that terminal is presently in changes Preceding locating external environment, so, here, when terminal is in and puts out screen state, pass through microphone acquisition terminal local environment The intensity of sound.
Wherein, the unit of the intensity of sound is decibel, is indicated with dB.
Here, by the intensity of the sound of collected terminal local environment, it can know that terminal local environment is to be in Noisy environment or quiet environment or conventional environment.
S102: according to the intensity of sound in environment, corresponding volume value is determined;
Specifically, it is previously stored with the intensity of sound and the corresponding relationship of volume value in the terminal, each sound Intensity is all corresponding with a volume value.
Here, it should be noted that the intensity of above sound and the corresponding relationship of volume value are in setting, current whole The voice prompt that set corresponding volume value enables terminal to issue in the locating environment in end is heard by the user, and as far as possible Less than normal is principle, in this way, the sound for being used to prompt user that particular event occurs can play the role of prompting user, and will not shadow Ring current environment.
In this way, can be found when getting the intensity of the sound in terminal local environment by searching for corresponding relationship Corresponding volume value.
S103: according to the relationship between corresponding volume value and the volume value pre-set, determine terminal in locating ring The volume value of voice prompt is issued in border;
Wherein, the sound of particular event occurs for the user of prompt terminal for voice prompt.
Here, it should be noted that above-mentioned particular event may include receiving incoming call, receive short message or wechat, Perhaps alarm clock calling or the message etc. of APP push is received, the embodiment of the present application is not especially limited this.
Specifically, after obtaining corresponding volume value, by corresponding volume value and the volume value that pre-sets into Row comparison, obtains relationship between the two, last according to relationship between the two, mentions to determine that terminal issues in local environment Show the volume value of sound.
In the specific implementation process, the volume value of voice prompt is issued to determine terminal in local environment, it can be with It is realized using any one following mode:
In an alternative embodiment, S103 may include:
When corresponding volume value is greater than the volume value set, corresponding volume value is determined as terminal in local environment The middle volume value for issuing voice prompt.
Specifically, when corresponding volume value is greater than the volume value set, illustrate, current environment uses setting User possibly can not hear voice prompt when the volume value got well, and in order to avoid the sound set, too small caused user can not listen To the problem of, here, corresponding volume value is directly determined as the volume value that terminal issues voice prompt in local environment.
For example, the range of volume value is 0-100, and the volume value set is 70, is presently in by acquisition terminal It is 80 that the intensity of sound in environment, which obtains corresponding volume value, then, directly it is determined as terminal in local environment for 80 and sends out The volume value of voice prompt out, then, it is 80 broadcasting incoming ring tones with volume value when terminal receives incoming call.
In order to more efficiently prompt user, in an alternative embodiment, S103 may include:
When corresponding volume value is greater than the volume value that sets, and corresponding volume value is the maximum value of volume value in terminal When, corresponding volume value is determined as the volume value that terminal issues voice prompt in local environment, and open vibration mode;
Wherein, vibration mode is that the mode vibrated when particular event occurs in prompt for terminal.
Specifically, when corresponding volume value is greater than the volume value that sets, and corresponding volume value is volume in terminal When the maximum value of value, illustrate that the noise of terminal local environment at this time is very big, when noise is very big, even if will be prompted to the volume of sound Value, which tunes up, can also have user and possibly can not hear that the time of voice prompt occurs, so, in order to avoid the generation of the event, this When, corresponding volume value is not only determined as the volume value that terminal issues voice prompt in local environment, also opens vibration Dynamic model formula, that is to say, that when particular event occurs, not only issue voice prompt with corresponding volume value, prompted issuing While sound, terminal is vibrated.
In this way, when in especially noisy environment, when user being prompted to occur specific by voice prompt and vibration Between, in this way, more efficiently prompting user.
Or for by taking the range of volume value is 0-100 as an example, the volume value set is 70, current by acquisition terminal It is 100 that the intensity of sound in local environment, which obtains corresponding volume value, then, directly it is determined as terminal in locating ring for 100 The volume value of voice prompt is issued in border, and opens vibration mode;It so, is 100 with volume value when terminal receives incoming call Incoming ring tone is played, and is vibrated simultaneously.
In addition, terminal is in the very big environment of noise, only with voice prompt when be extremely difficult to the effect of prompt, In a kind of optional embodiment, S103 may include:
When corresponding volume value is greater than the volume value set, it is pre- to judge whether corresponding volume value is more than or equal to first If threshold value;
When corresponding volume value be less than or equal to the first preset threshold, corresponding volume value is determined as terminal in local environment The middle volume value for issuing voice prompt;
When corresponding volume value is greater than the first preset threshold, corresponding volume value is determined as terminal in local environment and is sent out The volume value of voice prompt out, and open vibration mode;
Wherein, vibration mode is that the mode vibrated when particular event occurs in prompt for terminal.
That is, illustrating that outside noise is larger at this time, needs when corresponding volume value is greater than the volume value set Further judge the relationship between corresponding volume value and the first preset threshold.
Here, above-mentioned first preset threshold is the value close to max volume value, by taking the range of volume value is 0-100 as an example For, the first preset threshold can one between 80-100 value, here, the embodiment of the present application is not especially limited this.
When corresponding volume value is less than or equal to the first preset threshold, illustrate that ambient noise locating for terminal is larger, still, Corresponding volume value directly can be determined as the volume value that terminal issues promotion sound in local environment, so that it may so that eventually The user at end hears voice prompt.
When corresponding volume value be more than or equal to the first preset threshold, illustrate that ambient noise locating for terminal is very big, at this time not Corresponding volume value is only determined as terminal and issues the volume value of promotion sound in local environment, while opening vibration mode, So that in a noisy environment when, be not only exaggerated the voice prompt of terminal, also simultaneously when issuing voice prompt terminal progress Vibration, in this way, prompt must can be played the role of as far as possible in noisy environment.
Or for by taking the range of volume value is 0-100 as an example, the volume value set is 70, and the first preset threshold is 85, obtaining corresponding volume value by the intensity of the sound in acquisition terminal current environment is 80, then, directly really by 80 It is set to the volume value that terminal issues voice prompt in local environment, passes through the strong of the sound in acquisition terminal current environment It is 90 that degree, which obtains corresponding volume value, then, directly it is determined as the volume that terminal issues voice prompt in local environment for 90 Value, and open vibration mode;
In this way, being that 80 broadcasting incoming ring tones are with volume value when corresponding volume value is 80 when terminal receives incoming call Can, it is 90 broadcasting incoming ring tones with volume value, while vibrating when corresponding volume value is 90.
Terminal is in addition in the biggish environment of noise, it is also possible in more quiet environment, in order to preferably Realize the control to volume, in an alternative embodiment, S103 may include:
When corresponding volume value is less than or equal to the volume value set, the volume value set is maintained.
Specifically, when corresponding volume value is less than or equal to the volume value set, illustrate, at this time even good volume Value can play the role of that user is prompted directly to maintain the volume value set i.e. so not needing to redefine volume value It can.
For example, the range of volume value is 0-100, and the volume value set is 70, is presently in by acquisition terminal It is 50 that the intensity of sound in environment, which obtains corresponding volume value, then, directly it is determined as terminal in local environment for 50 and sends out The volume value of voice prompt out, so, it is 50 broadcasting incoming ring tones with volume value when terminal receives incoming call.
In order to reduce the influence to environment while being better achieved to volume value control, in a kind of optional embodiment In, S103 may include:
When corresponding volume value is less than or equal to the volume value set, judge whether corresponding volume value is less than or equal to the Two preset thresholds;
When corresponding volume value is less than or equal to second preset threshold, terminal is prompted to occur in local environment special The pattern switching for determining event is vibration mode;
When corresponding volume value is greater than the second preset threshold, calculate between volume value corresponding with the volume set Difference;
According to difference, determine that terminal issues the volume value of voice prompt in local environment.
That is, presetting second preset threshold, which is close to minimal volume value Value, for example, for by taking volume value is 0-100 as an example, the second preset threshold can one for 0-10 between be worth, here, this Shen Please embodiment be not especially limited.
Specifically, when corresponding volume value is less than or equal to the volume value set, illustrate the volume value energy set Enough play the role of prompting user, but the excessive influence to environment of volume value in order to prevent further judges corresponding volume Whether value is less than or equal to the second preset threshold.
When corresponding volume value is less than or equal to the second preset threshold, it is believed that the environment that terminal is presently in is quieter Environment, for example, library, environment is given if volume value setting is crossed that conference is broken to change quiet environment at this time in classroom etc. In other people bring interference, so terminal is prompted in local environment occur particular event mode be directly switched to vibration Mode does not need to issue prompting sound in this way, terminal is vibrated the user to remind terminal when particular event occurs Sound.
In addition, illustrate when corresponding volume value is greater than the second preset threshold, at this time environment in neither very it is noisy not yet Be in very quiet environment, in order to determine suitable volume value for the environment, can first calculate the volume value that sets with it is right The difference between volume value answered is the volume value that terminal issues voice prompt in local environment using difference.
In order to realize that utilizing difference is the volume value that terminal issues voice prompt in local environment, in a kind of optional reality It applies in example, according to difference, determines that terminal issues the volume value of voice prompt in local environment, may include:
When difference is less than or equal to third predetermined threshold value, the volume value set is maintained;
When difference is greater than third predetermined threshold value, the sum of corresponding volume value and third predetermined threshold value are determined as terminal and existed The volume value of voice prompt is issued in local environment.
Here, preset third predetermined threshold value, by the range of volume value be 0-100 for for, which presets threshold Value a value, the embodiment of the present application generally between 5-10 are not especially limited this.
When difference be less than or equal to third predetermined threshold value, illustrate, the volume value set the amplitude bigger than corresponding volume value Smaller, two values relatively, in order to reduce terminal to the treating capacity of task, here, still maintain the volume value set not Become, that is, the volume value of terminal is not adjusted, or the volume value using the volume value set as voice prompt.
When difference be less than third predetermined threshold value, illustrate, the volume value set the amplitude bigger than corresponding volume value is larger, Two value differences are larger, in order to adjust volume value to a suitable range, are neither influencing current environment and can make again Under the premise of the user of terminal can hear, the sum of corresponding volume value and third predetermined threshold value can be determined as to terminal in institute Locate the volume value that voice prompt is issued in environment.
Or for by taking the range of volume value is 0-100 as an example, the volume value set is 50, and the second preset threshold is 10, third predetermined threshold value 8, obtaining corresponding volume value by the intensity of the sound in acquisition terminal current environment is 9, The pattern switching for then terminal being prompted particular event occurs in local environment is vibration mode, is presently in by acquisition terminal It is 40 that the intensity of sound in environment, which obtains corresponding volume value, and it is 10 that difference, which is calculated, then 10+8=18 is determined as end The volume value for issuing voice prompt in local environment is held, is obtained by the intensity of the sound in acquisition terminal current environment Corresponding volume value is 45, maintains the volume value 50 set.
It is given an actual example below to be illustrated to the control method of the volume in said one or multiple embodiments.
Fig. 2 is a kind of flow diagram of the example of the control method of optional volume provided by the embodiments of the present application, such as Shown in Fig. 2, pass through the sound of microphone acquisition terminal local environment first, and voice input to voice wake-up module is obtained into sound The intensity of sound, the corresponding volume value of the intensity that sound is then obtained according to the intensity of sound, then by corresponding volume value and be arranged Good volume value is compared, and when corresponding volume value is the greater, corresponding volume value is determined as terminal in locating ring The volume value of voice prompt is issued in border, for example, perhaps receiving information when terminal receives incoming ring tone or issuing noisy When clock is reminded, corresponding volume value is transmitted in phone module by voice wake-up module by communication interface, so that terminal is being sent out Corresponding volume value is used when voice prompt out.
When the volume value set is the greater, the volume value set is maintained, for example, carrying out electric bell when terminal receives Sound, when perhaps receiving information or issuing alarm clock calling, voice wake-up module passes through the volume value that communication interface will be set It is transmitted in phone module, so that terminal uses the volume value set when issuing voice prompt.
It should be noted that the example contains at least one microphone and voice wake-up module, phone module, with And the communication interface of the two, wherein the communication interface of both direction may be the same or different.
Fig. 3 is the flow diagram of the example of the control method of another optional volume provided by the embodiments of the present application, As shown in figure 3, this method is accomplished by
S301: when wake-up module will enter awakening mode, the volume value that will set of the phone module of terminal first Wake-up module is passed to by communication interface;
S302: the intensity of sound of the microphone collection terminal of terminal in local environment obtains corresponding volume value;
S303: when corresponding volume value is greater than the volume value set, when a call comes, corresponding volume is passed through into communication Interface is transmitted to phone module
S304: phone module uses corresponding volume value jingle bell.
The embodiment of the present application provides a kind of control method of volume, and this method is applied in a terminal, this method comprises: When terminal is in and puts out screen state, the intensity for acquiring sound in local environment determines corresponding according to the intensity of sound in environment Volume value determines that terminal is sent out in local environment according to the relationship between corresponding volume value and the volume value pre-set The volume value of voice prompt out, wherein the sound of particular event occurs for the user of prompt terminal for voice prompt;Namely It says, in the embodiment of the present application, by the acquisition to the intensity of sound in terminal local environment, sound in environment can be obtained The corresponding volume value of intensity, in this way, being determined to according to the relationship between corresponding volume value and the volume value pre-set Terminal issues the volume value of voice prompt in local environment, that is, can be according to local environment when terminal, which is in, puts out screen state The intensity of middle sound realizes the control to volume value, in this way, adjusting terminal according to the Strength Changes of sound in environment Volume value is saved, to prevent user from can not hear, the voice prompt of terminal or voice prompt are excessive to interference caused by environment, It more intelligently realizes the control to volume, improves the Experience Degree of user.
Embodiment two
Fig. 4 is a kind of structural schematic diagram one of terminal provided by the embodiments of the present application, as shown in figure 4, the embodiment of the present application A kind of terminal is provided, which can also include:
Acquisition module 41, for acquiring the intensity of sound in local environment when terminal is in and puts out screen state;
First determining module 42 determines corresponding volume value for the intensity according to sound in environment;
Second determining module 43, for according to the relationship between corresponding volume value and the volume value pre-set, really The fixed terminal issues the volume value of voice prompt in local environment;
Wherein, the sound of particular event occurs for the user of prompt terminal for voice prompt.
Optionally, the second determining module 43, is specifically used for:
When corresponding volume value is greater than the volume value set, corresponding volume value is determined as terminal locating The volume value of voice prompt is issued in environment.
Optionally, the second determining module 43, is specifically used for:
When corresponding volume value is greater than the volume value set, and corresponding volume value is the maximum of volume value in terminal When value, corresponding volume value is determined as the volume value that terminal issues voice prompt in local environment, and open vibration mode;
Wherein, vibration mode is that the mode vibrated when particular event occurs in prompt for terminal.
Optionally, the second determining module 43, is specifically used for:
When corresponding volume value is greater than the volume value set, it is pre- to judge whether corresponding volume value is more than or equal to first If threshold value;
When corresponding volume value be less than or equal to the first preset threshold, corresponding volume value is determined as terminal in local environment The middle volume value for issuing voice prompt;
When corresponding volume value is greater than the first preset threshold, corresponding volume value is determined as terminal in local environment and is sent out The volume value of voice prompt out, and open vibration mode;
Wherein, vibration mode is that the mode vibrated when particular event occurs in prompt for terminal.
Optionally, the second determining module 43, is specifically used for:
When corresponding volume value is less than or equal to the volume value set, the volume value set is maintained.
Optionally, the second determining module 43, is specifically used for:
When corresponding volume value is less than or equal to the volume value set, judge whether corresponding volume value is less than or equal to the Two preset thresholds;
When corresponding volume value is less than or equal to the second preset threshold, terminal is prompted specific thing occurs in local environment The pattern switching of part is vibration mode;
When corresponding volume value is greater than the second preset threshold, between the good volume value of calculating and setting and corresponding volume value Difference;
According to difference, determine that terminal issues the volume value of voice prompt in local environment.
Optionally, the second determining module 43 determines that terminal issues the volume of voice prompt in local environment according to difference In value, may include:
When difference is less than or equal to third predetermined threshold value, the volume value set is maintained;
When difference is greater than the third predetermined threshold value, the sum of corresponding volume value and third predetermined threshold value are determined as end Hold the volume value that voice prompt is issued in local environment.
In practical applications, above-mentioned acquisition module 41, the first determining module 42 and the second determining module 43 can be by being located at eventually Processor on end realizes, specially central processing unit (CPU, Central Processing Unit), microprocessor (MPU, Microprocessor Unit), digital signal processor (DSP, Digital Signal Processing) or scene can compile Journey gate array (FPGA, Field Programmable Gate Array) etc. is realized.
Fig. 5 is a kind of structural schematic diagram two of terminal provided by the embodiments of the present application, as shown in figure 5, the embodiment of the present application Provide a kind of terminal 500, comprising:
Processor 51 and the storage medium 52 for being stored with 51 executable instruction of processor, the storage medium 52 are logical It crosses communication bus 53 and relies on the processor 51 and execute operation, when described instruction is executed by the processor 51, execute above-mentioned The control method of volume described in embodiment one.
It should be noted that the various components in terminal are coupled by communication bus 53 when practical application.It can manage Solution, communication bus 53 is for realizing the connection communication between these components.Communication bus 53 also wraps in addition to including data/address bus Include power bus, control bus and status signal bus in addition.But for the sake of clear explanation, various buses are all marked in Fig. 5 For communication bus 53.
The embodiment of the present application provides a kind of computer storage medium, is stored with executable instruction, when the executable finger When order is executed by one or more processors, the processor executes the control method of volume described in embodiment one.
Wherein, computer readable storage medium can be magnetic RAM (ferromagnetic random Access memory, FRAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable Read-Only Memory, EPROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash memory (Flash Memory), magnetic table The memories such as face memory, CD or CD-ROM (Compact Disc Read-Only Memory, CD-ROM).
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the application Formula.Moreover, the application, which can be used, can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The above, the only preferred embodiment of the application, are not intended to limit the protection scope of the application.

Claims (10)

1. a kind of control method of volume, which is characterized in that the method is applied in a terminal, which comprises
When the terminal is in and puts out screen state, the intensity of sound in local environment is acquired;
According to the intensity of sound in the environment, corresponding volume value is determined;
According to the relationship between corresponding volume value and the volume value pre-set, determine that the terminal is sent out in local environment The volume value of voice prompt out;
Wherein, the voice prompt is used to prompt the sound of user's generation particular event of the terminal.
2. the method according to claim 1, wherein described according to corresponding volume value and the sound pre-set Relationship between magnitude determines that the terminal issues the volume value of voice prompt in local environment, comprising:
When corresponding volume value is greater than the volume value set, corresponding volume value is determined as the terminal locating The volume value of voice prompt is issued in environment.
3. the method according to claim 1, wherein described according to corresponding volume value and the sound pre-set Relationship between magnitude determines that the terminal issues the volume value of voice prompt in local environment, comprising:
When corresponding volume value is greater than the volume value set, and corresponding volume value is volume value in the terminal When maximum value, corresponding volume value is determined as the volume value that the terminal issues voice prompt in local environment, and open Vibration mode;
Wherein, the vibration mode is that the mode vibrated when particular event occurs in prompt for the terminal.
4. the method according to claim 1, wherein described according to corresponding volume value and the sound pre-set Relationship between magnitude determines that the terminal issues the volume value of voice prompt in local environment, comprising:
When corresponding volume value is greater than the volume value set, it is pre- to judge whether corresponding volume value is more than or equal to first If threshold value;
When corresponding volume value be less than or equal to first preset threshold, corresponding volume value is determined as the terminal locating The volume value of voice prompt is issued in environment;
When corresponding volume value be greater than first preset threshold, corresponding volume value is determined as the terminal in local environment The middle volume value for issuing voice prompt, and open vibration mode;
Wherein, the vibration mode is that the mode vibrated when particular event occurs in prompt for the terminal.
5. method according to any one of claims 1 to 4, which is characterized in that described according to corresponding volume value and preparatory The relationship between volume value set determines that the terminal issues the volume value of voice prompt in local environment, comprising:
When corresponding volume value is less than or equal to the volume value set, the volume value set is maintained.
6. method according to any one of claims 1 to 4, which is characterized in that described according to corresponding volume value and preparatory The relationship between volume value set determines that the terminal issues the volume value of voice prompt in local environment, comprising:
When corresponding volume value is less than or equal to the volume value set, judge whether corresponding volume value is less than or equal to the Two preset thresholds;
When corresponding volume value is less than or equal to second preset threshold, the terminal is prompted to occur in local environment special The pattern switching for determining event is vibration mode;
When corresponding volume value is greater than second preset threshold, the volume value that sets described in calculating and corresponding volume value Between difference;
According to the difference, determine that the terminal issues the volume value of voice prompt in local environment.
7. according to the method described in claim 6, determining the terminal locating it is characterized in that, described according to the difference The volume value of voice prompt is issued in environment, comprising:
When the difference is less than or equal to third predetermined threshold value, the volume value set is maintained;
When the difference is greater than the third predetermined threshold value, the sum of corresponding volume value and the third predetermined threshold value are determined The volume value of voice prompt is issued in local environment for the terminal.
8. a kind of terminal, which is characterized in that the terminal includes:
Acquisition module, for acquiring the intensity of sound in local environment when the terminal is in and puts out screen state;
First determining module determines corresponding volume value for the intensity according to sound in the environment;
Second determining module, described in determining according to the relationship between corresponding volume value and the volume value pre-set Terminal issues the volume value of voice prompt in local environment;
Wherein, the voice prompt is used to prompt the sound of user's generation particular event of the terminal.
9. a kind of terminal, which is characterized in that the terminal includes:
Processor and the storage medium for being stored with the processor-executable instruction, the storage medium by communication bus according to Rely the processor to execute operation, when described instruction is executed by the processor, it is any to execute above-mentioned claim 1 to 7 The control method of volume described in.
10. a kind of computer storage medium, which is characterized in that executable instruction is stored with, when the executable instruction is by one Or multiple processors, when execute, the processor executes the control of the described in any item volumes of claim 1 to 7 Method.
CN201910500871.2A 2019-06-11 2019-06-11 A kind of control method of volume, terminal and computer storage medium Pending CN110333838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910500871.2A CN110333838A (en) 2019-06-11 2019-06-11 A kind of control method of volume, terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910500871.2A CN110333838A (en) 2019-06-11 2019-06-11 A kind of control method of volume, terminal and computer storage medium

Publications (1)

Publication Number Publication Date
CN110333838A true CN110333838A (en) 2019-10-15

Family

ID=68140888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910500871.2A Pending CN110333838A (en) 2019-06-11 2019-06-11 A kind of control method of volume, terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN110333838A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110798573A (en) * 2019-11-04 2020-02-14 深圳传音控股股份有限公司 Volume adjusting method, mobile terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017181656A1 (en) * 2016-04-19 2017-10-26 乐视控股(北京)有限公司 Mobile phone and method for mobile phone to intelligently adjust ringtone volume
CN107301030A (en) * 2017-06-21 2017-10-27 深圳天珑无线科技有限公司 A kind of method for controlling volume, device and a kind of terminal
CN107908388A (en) * 2017-11-17 2018-04-13 珠海市魅族科技有限公司 Method for controlling volume and device, computer installation and computer-readable recording medium
CN108322589A (en) * 2017-01-16 2018-07-24 中兴通讯股份有限公司 A kind of volume adjusting method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017181656A1 (en) * 2016-04-19 2017-10-26 乐视控股(北京)有限公司 Mobile phone and method for mobile phone to intelligently adjust ringtone volume
CN108322589A (en) * 2017-01-16 2018-07-24 中兴通讯股份有限公司 A kind of volume adjusting method and terminal
CN107301030A (en) * 2017-06-21 2017-10-27 深圳天珑无线科技有限公司 A kind of method for controlling volume, device and a kind of terminal
CN107908388A (en) * 2017-11-17 2018-04-13 珠海市魅族科技有限公司 Method for controlling volume and device, computer installation and computer-readable recording medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
雷星蒙等: "地铁车厢中广播自适应音量控制系统的设计", 《科技传播》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110798573A (en) * 2019-11-04 2020-02-14 深圳传音控股股份有限公司 Volume adjusting method, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
CN108076226B (en) Method for adjusting call quality, mobile terminal and storage medium
JP2017538341A (en) Volume control method, system, device and program
CN108320751B (en) Voice interaction method, device, equipment and server
CN106775969B (en) Selective operation method and device of application program
CN107621933B (en) Audio playing method and device and related medium product
CN105262887B (en) Mobile terminal and audio setting method thereof
CN111083289A (en) Audio playing method and device, storage medium and mobile terminal
CN107526570A (en) volume adjusting method, device, terminal device and storage medium
CN105847566A (en) Mobile terminal audio volume adjusting method and device
CN107404587B (en) Audio playing control method, audio playing control device and mobile terminal
WO2024131371A1 (en) Voice processing method and apparatus, and electronic device
CN110333838A (en) A kind of control method of volume, terminal and computer storage medium
CN113992965A (en) Low-delay transmission method and system
CN104980583A (en) Event reminding method and terminal
CN105959466B (en) The treating method and apparatus of audio data
CN106453940B (en) A kind of method and device adjusting volume
CN109218913B (en) Sound adjusting method, terminal equipment and device with storage function
CN107750038B (en) Volume adjusting method, device, equipment and storage medium
CN112307161B (en) Method and apparatus for playing audio
CN115052070A (en) Method and device for adjusting call volume, call equipment and medium
CN111556406B (en) Audio processing method, audio processing device and earphone
CN104468946A (en) Information hinting method and electronic equipment
CN110827851B (en) Method for adjusting volume, electronic device and computer storage medium
EP3435641B1 (en) Elecronic device, method of operation and computer program
CN113271385A (en) Call forwarding method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191015