CN107908388A - Method for controlling volume and device, computer installation and computer-readable recording medium - Google Patents

Method for controlling volume and device, computer installation and computer-readable recording medium Download PDF

Info

Publication number
CN107908388A
CN107908388A CN201711146172.XA CN201711146172A CN107908388A CN 107908388 A CN107908388 A CN 107908388A CN 201711146172 A CN201711146172 A CN 201711146172A CN 107908388 A CN107908388 A CN 107908388A
Authority
CN
China
Prior art keywords
volume
environmental noise
terminal
value
noise value
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
CN201711146172.XA
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.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201711146172.XA priority Critical patent/CN107908388A/en
Publication of CN107908388A publication Critical patent/CN107908388A/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

Abstract

The present invention provides a kind of method for controlling volume and device, computer installation and computer-readable recording medium, is related to electronic technology field.Method for controlling volume provided by the invention includes:Obtain the ambient sound collected using the voice collection device of terminal present position;Environmental noise value is obtained according to the ambient sound, wherein, the environmental noise value is the intensity of sound value of the ambient sound outside the sound that the terminal is sent;The volume of the terminal is adjusted according to the environmental noise value.Using method for controlling volume provided by the present invention, it can be achieved that volume according to environmental noise accommodation terminal.

Description

Method for controlling volume and device, computer installation and computer-readable recording medium
Technical field
The present invention relates to electronic technology field, more particularly to a kind of method for controlling volume and device, computer installation and meter Calculation machine readable storage medium storing program for executing.
Background technology
This part intends to provides background for the embodiments of the present invention stated in claims and embodiment Or context.Description herein recognizes it is the prior art not because not being included in this part.
At present, opponent is mechanical, electrical be adjusted depending on machine when the volume for the equipment for possessing volume adjusting function when, user Duo Tong Cross manual mode to be adjusted, work as however, the volume that user is manually adjusted can not be well adapted for those equipment Preceding residing acoustic environment.
The content of the invention
In view of above-mentioned, the present invention provides a kind of method for controlling volume and device, computer installation and computer-readable storage Medium, can be according to the volume of environmental noise accommodation terminal.
First aspect present invention provides a kind of method for controlling volume, the described method includes:
Obtain the ambient sound collected using the voice collection device of terminal present position;
Environmental noise value is obtained according to the ambient sound, wherein, the environmental noise value is the sound that the terminal is sent The intensity of sound value of ambient sound outside sound;
The volume of the terminal is adjusted according to the environmental noise value.
Further, the volume that the terminal is adjusted according to the environmental noise value includes:
Judge the environmental noise value whether in the range of default environmental noise value;
If the environmental noise value is not in the range of the default environmental noise value and is more than the default environmental noise value The maximum of scope, then heighten the volume of the terminal;
If the environmental noise value is not in the range of the default environmental noise value and is less than the default environmental noise value The minimum value of scope, then turn down the volume of the terminal.
Further, before the volume that the terminal is adjusted according to the environmental noise value, the method is also wrapped Include:
Obtain the environmental noise value record that the ambient sound collected according to the voice collection device obtains;
Record to obtain the corrected parameter of current environment level of noise according to the environmental noise value;
The default level of noise scope is corrected according to the corrected parameter of the current environment level of noise.
Further, the volume that the terminal is adjusted according to the environmental noise value includes:
Default volume range with the corresponding terminal of the environmental noise value is worth to according to the environmental noise;
Judge the current volume value of the terminal whether in the range of the default volume value;
If the current volume value of the terminal is not in the range of the default volume value and is more than the default volume value model The maximum enclosed, then turn down the volume of the terminal;
If the current volume value of the terminal is not in the range of the default volume value and is less than the default volume value model The minimum value enclosed, then heighten the volume of the terminal.
Further, before the volume value that the terminal is adjusted according to the environmental noise value, the method is also Including:
The volume for obtaining the terminal sets record;
Record is set to obtain the corrected parameter of the default volume range according to the volume;
The default volume value scope is corrected according to the corrected parameter of the default volume range.
Further, the volume that the terminal is adjusted according to the environmental noise value includes:
The volume of the terminal is adjusted according to the environmental noise value using the terminal;Or
The terminal is controlled to adjust the end according to the environmental noise value using another equipment being connected with the terminal The volume at end.
Further, after environmental noise value is obtained according to the ambient sound, the method further includes:
The terminal is controlled show or utilize voice broadcast for prompting adjustment the terminal according to the ambient sound value Volume prompt message.
Second aspect of the present invention provides a kind of sound volume control device, and the sound volume control device includes:
Acquisition module, for obtaining the ambient sound collected using the voice collection device of terminal present position;
Computing module, for obtaining environmental noise value according to the ambient sound, wherein, the environmental noise value is described The intensity of sound value of ambient sound outside the sound that terminal is sent;
Control module, for adjusting the volume of the terminal according to the environmental noise value.
Further, the sound volume control device further includes:
Judgment module, for judging the environmental noise value whether in the range of default environmental noise value;
The control module is specifically used for when adjusting the volume of the terminal according to the environmental noise value:
Not in the range of the default environmental noise value and it is more than the default environmental noise value in the environmental noise value During the maximum of scope, the volume of the terminal is heightened;
Not in the range of the default environmental noise value and it is less than the default environmental noise value in the environmental noise value During the minimum value of scope, the volume of the terminal is turned down.
Further, the sound volume control device further includes judgment module;
The computing module be additionally operable to according to the environmental noise be worth to the environmental noise value it is corresponding described in The default volume range of terminal;
Whether the judgment module is used to judge the current volume value of the terminal in the range of the default volume value;
The control module is specifically used for when adjusting the volume of the terminal according to the environmental noise value:
Not in the range of the default volume value and it is more than the default volume value model in the current volume value of the terminal During the maximum enclosed, the volume of the terminal is turned down.
Not in the range of the default volume value and it is less than the default volume value model in the current volume value of the terminal During the minimum value enclosed, the volume of the terminal is heightened.
The third aspect also provides a kind of computer installation, and the computer installation includes processor, and the processor is used for The step of method for controlling volume as described above being realized when performing the computer program stored in memory.
Fourth aspect present invention also provides a kind of computer-readable recording medium, is stored thereon with computer program, described The step of method for controlling volume as described above is realized when computer program is executed by processor.
Method for controlling volume and device provided by the invention, computer installation and computer-readable recording medium, by obtaining The ambient sound that the voice collection device using the terminal present position collects is taken, and ring is obtained according to the ambient sound Border level of noise, the volume of the terminal is adjusted further according to the environmental noise value, due to using the environmental noise value as tune The Consideration of the volume of the whole terminal, thus the volume of the terminal after adjustment is suitable for the terminal present position Current acoustic environment, according to the volume of environmental noise accommodation terminal, meet user to the volume of the terminal into The adjustment demand of row automatic adaptive ambient sound, and control flexible.
Further, method for controlling volume of the invention, after environmental noise value is obtained according to ambient sound, judges institute Environmental noise value is stated whether in the range of default environmental noise value, in the environmental noise value not in the default environmental noise value In the range of and more than the default environmental noise value scope maximum when, then heighten the volume of the terminal;In the environment Level of noise is then turned down not in the range of the default environmental noise value and less than the minimum value of the default environmental noise value scope The volume of the terminal, hereby it is achieved that to the volume control of the terminal, and the volume of the terminal after adjustment more can Enough adapt to the acoustic environment residing for the terminal.
Further, method for controlling volume of the invention, after environmental noise value is obtained according to ambient sound, according to institute State environmental noise and be worth to default volume value scope with the corresponding terminal of the environmental noise value, and judge the end Current volume value is held whether in the range of the default volume value.In the current volume value of the terminal not in the default sound In the range of value and when being more than the maximum of the default volume value scope, the volume of the terminal is turned down;Work as in the terminal Preceding volume value is heightened described not in the range of the default volume value and when being less than the minimum value of the default volume value scope The volume of terminal, hereby it is achieved that automatically to the volume control of the terminal, and the volume of the terminal after adjusting is fitted Answer the acoustic environment residing for the terminal.
Brief description of the drawings
It is required in being described below to embodiment in order to illustrate more clearly of the technical solution of embodiment of the present invention The attached drawing used is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, other can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is the flow chart of the method for controlling volume of first embodiment of the invention;
Fig. 2 is the flow chart of the method for controlling volume of second embodiment of the invention;
Fig. 3 is the flow chart of the method for controlling volume of third embodiment of the invention;
Fig. 4 is the exemplary functional block diagram for the sound volume control device that an embodiment of the present invention provides;
Fig. 5 is the exemplary structure diagram for the computer installation that an embodiment of the present invention provides;
Fig. 6 is the exemplary structure diagram of the intelligent domestic system of an embodiment of the present invention.
Main element symbol description
Computer installation 1
Intelligent domestic system 2
Mobile phone 3
Television set 4
Processor 10
Memory 20
Sound equipment 30
Sound volume control device 100
Acquisition module 11
Computing module 12
Control module 13
Judgment module 14
Correcting module 15
Embodiment
It is to better understand the objects, features and advantages of the present invention, below in conjunction with the accompanying drawings and specific real Applying mode, the present invention will be described in detail.It should be noted that in the case where there is no conflict, presently filed embodiment and reality Applying the feature in mode can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, described embodiment Only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, this area The every other embodiment that those of ordinary skill is obtained without making creative work, belongs to guarantor of the present invention The scope of shield.
Unless otherwise defined, all of technologies and scientific terms used here by the article is with belonging to technical field of the invention The normally understood implication of technical staff is identical.Term used in the description of the invention herein is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Fig. 1 is the flow chart of the method for controlling volume of first embodiment of the invention, it should be noted that present embodiment The method for controlling volume is not limited to step and order in the flow chart shown in Fig. 1.According to different demands, shown flow Step in figure can increase, remove or change order.
As shown in Figure 1, the method for controlling volume of present embodiment may include steps of:
Step 101:Obtain the ambient sound collected using the voice collection device of terminal present position.
In present embodiment, the voice collection device can be the voice collection device of terminal itself or to The terminal sends the independent voice collection device of the ambient sound collected.
It is understood that the ambient sound be all including the sound that the terminal is sent itself can be by The audio-frequency information that the voice collection device collects.
It is understood that the voice collection device is microphone, can be specifically mobile phone microphone, wireless microphone Deng.
Step 102:Environmental noise value is obtained according to the ambient sound, wherein, the environmental noise value is the terminal The intensity of sound value of ambient sound outside the sound sent.
In present embodiment, the environmental noise value is calculated using ambient sound detecting algorithm, can be specifically:To sound The ambient sound that sound harvester collects is analyzed, identify noise sound and and/or non-noise sound, and to noise sound The intensity of sound of sound is quantified to obtain the environmental noise value.
It is understood that the noise that the echo that the environmental noise value includes the sound that the terminal is sent is formed Intensity of sound value.
, can also be according to the ambient sound after environmental noise value is obtained according to the ambient sound in present embodiment Value control the terminal show or utilize voice broadcast be used for prompt the adjustment terminal volume prompt message, with realization User knows that the control to the terminal is reminded.
Step 103:The volume of the terminal is adjusted according to the environmental noise value.
In present embodiment, the volume that the terminal is adjusted according to the environmental noise value includes:
The volume of the terminal is adjusted according to the environmental noise value using the terminal;Or,
The terminal is controlled to adjust the end according to the environmental noise value using another equipment being connected with the terminal The volume at end.
It is understood that the terminal can be mobile phone, television set, radio, sound equipment, tablet computer and notebook electricity Brain etc., and another equipment can be the equipment such as mobile phone, tablet computer and laptop.
In present embodiment, by obtaining the ambient sound collected using the voice collection device of the terminal present position Sound, and environmental noise value is obtained according to the ambient sound, the volume of the terminal is adjusted further according to the environmental noise value, Due to the Consideration using the environmental noise value as the volume for adjusting the terminal, thus the sound of the terminal after adjusting Amount is suitable for the current acoustic environment of the terminal present position, according to the volume of environmental noise accommodation terminal, Meet user and the adjustment demand of automatic adaptive ambient sound is carried out to the volume of the terminal, and control flexible.
Fig. 2 is the flow chart of the method for controlling volume of second embodiment of the invention, present embodiment and the first embodiment party Whether the main distinction of formula is, further comprises in second embodiment and judge the environmental noise value in default environmental noise value In the range of and etc..It should be noted that in the range of the spirit or essential attributes of the present invention, suitable for first embodiment In each concrete scheme can also be accordingly suitable for second embodiment, for the sake of saving space and avoiding repetition, herein Just repeat no more.
As shown in Fig. 2, the method for controlling volume may include steps of:
Step 201:Obtain the ambient sound collected using the voice collection device of terminal present position.
Step 202:Environmental noise value is obtained according to the ambient sound, wherein, the environmental noise value is the terminal The intensity of sound value of ambient sound outside the sound sent.
Step 203:Judge the environmental noise value whether in the range of default environmental noise value.If the environmental noise value Not in the range of default environmental noise value, then according to the relation phase of the environmental noise value and the default environmental noise value scope That answers enters step 204 or step 205, if the environmental noise value in the range of default environmental noise value, continues to execute this Step 203 terminates flow.
In present embodiment, the user that the default environmental noise value scope can be counted according to big data exists Environmental noise value scope under common scenarios or obtained as the noise situation of the acoustic environment residing for user's long-time Environmental noise value scope.
In present embodiment, the default environmental noise value scope has maximum and minimum value.
In present embodiment, to cause the default environmental noise value scope to be suitable for the acoustic environment residing for user, The default environmental noise value scope can be modified in the following way:
First, the environmental noise value record that the ambient sound collected according to the voice collection device obtains is obtained.Can With understanding, described the environmental noise value can be obtained according to the ambient sound by inquire about in the range of certain time Historical data obtain environmental noise value record.
Secondly, record to obtain the corrected parameter of current environment level of noise according to the environmental noise value.It is understood that The corrected parameter of the current environment level of noise can be the average value of the environmental noise value in the environmental noise value record.
Finally, the default level of noise scope is corrected according to the corrected parameter of the current environment level of noise.It is appreciated that If the corrected parameter of the current environment level of noise is being averaged for the environmental noise value in the environmental noise value record Value, can determine the maximum and/or minimum value of environmental noise value scope according to the size of the average value.In addition, can also basis The Listening Ability of Ethnic of user determines the maximum and/or minimum value of the environmental noise value scope, to adapt to the hearing ability of user.
In a concrete application example, level of noise scope [35dB, 80dB] is preset), such as when the environmental noise value records In the average value of environmental noise value when being 50dB, environmental noise value scope, i.e. environment can be used as using its ± 20dB scopes Level of noise scope is [30dB, 70dB], and then original default level of noise model can be corrected using the environmental noise value scope Enclose.
Step 204:When the environmental noise value is more than the maximum of the default environmental noise value scope, heighten described The volume of terminal.
It is understood that in the environmental noise value not in the range of the default environmental noise value and more than described pre- If during the maximum of environmental noise value scope, it is believed that the environmental noise that user is presently in has been enough to interfere with user's receipts The sound for listening the terminal to send, at this time, by heightening the volume of the terminal, so that user at least being capable of end described in uppick Hold the sound sent.
Step 205:When the environmental noise value is less than the minimum value of the default environmental noise value scope, turn down described The volume of terminal.
It is understood that in the environmental noise value not in the range of the default environmental noise value and less than described pre- If during the minimum value of environmental noise value scope, it is believed that the environmental noise that user is presently in is sufficiently low, is unlikely to user Listening to the voice strip that the terminal is sent significantly influences, and at this time, the volume of the terminal can be suitably turned down, so that the end Being adapted for the sound that sends and user's local environment is held, it is more quiet to be avoided as much as occurring user's local environment, and institute The sense for the relatively large caused acoustic environment imbalance of sound that terminal is sent is stated, at the same time, moreover it is possible to which reducing may be to same In quiet environment and its noise effect that neighbouring other users are brought, the possibility that interference is brought to neighbours' life is reduced Property, moreover it is possible to the hearing of user is protected to a certain extent.
In present embodiment, after environmental noise value is obtained according to ambient sound, whether the environmental noise value is judged In the range of default environmental noise value, in the environmental noise value not in the range of the default environmental noise value and more than described During the maximum of default environmental noise value scope, then the volume of the terminal is heightened;In the environmental noise value not described pre- If in the range of environmental noise value and being less than the minimum value of the default environmental noise value scope, then the volume of the terminal is turned down, Hereby it is achieved that to the volume control of the terminal, and cause the volume of the terminal after adjustment more to can adapt to the terminal Residing acoustic environment.
Fig. 3 is the flow chart of the method for controlling volume of third embodiment of the invention, present embodiment and the first embodiment party Formula, the main distinction of second embodiment are, include in the 3rd embodiment and whether judge the current volume of the terminal In the range of the default volume value and etc..It should be noted that in the range of the spirit or essential attributes of the present invention, fit For each concrete scheme in first embodiment, second embodiment can also accordingly suitable for the 3rd embodiment, For the sake of saving space and avoiding repetition, just repeat no more herein.
As shown in figure 3, the method for controlling volume may include steps of:
Step 301:Obtain the ambient sound collected using the voice collection device of terminal present position.
Step 302:Environmental noise value is obtained according to the ambient sound, wherein, the environmental noise value is the terminal The intensity of sound value of ambient sound outside the sound sent.
Step 303:It is worth to according to the environmental noise default with the corresponding terminal of the environmental noise value Volume value scope.
In present embodiment, the default volume value scope has correspondence with the environmental noise value, and described right Should be related to can be realized by way of creating mapping table associating for default volume value scope and environmental noise value by user, with branch Hold the customization of individual character demand of user.Certainly, the correspondence can also be using big data count in each environment The suitable default volume value scope of volume realization of the terminal and associating for environmental noise value under level of noise, so that described The volume of terminal, which is set, can more meet popular volume setting demand.
Step 304:Judge the current volume value of the terminal whether in the range of the default volume value.If the terminal Current volume value is not in the range of the default volume value, then according to the current volume value of the terminal and the default volume The relation of value scope enters step 305 or step 306 accordingly, if the current volume of the terminal is in the default volume value model In enclosing, then continue to execute this step 304 or terminate flow.
In present embodiment, the default volume value scope has maximum and minimum value.
In present embodiment, the volume to cause the default volume value scope to be suitable for user sets custom, can lead to Following manner is crossed to be modified the default volume value scope:
First, the volume for obtaining the terminal sets record.It is understood that can be by inquiring about in certain time scope The historical data of the volume of terminal described in interior user setting sets record to obtain the volume.
Secondly, record is set to obtain the corrected parameter of the default volume range according to the volume.It is understood that The corrected parameter of the default volume range can be the average value for the setting volume that the volume is set in record, can also be The volume sets the most setting volume value of the frequency of occurrence in record.
Finally, the default volume value scope is corrected according to the corrected parameter of the default volume range.It is appreciated that It is that according to the volume average value of the setting volume in record can be set to determine the maximum and/or minimum value of volume range, The setting volume value of frequency of occurrence at most in can also being recorded according to the volume determines the maximum and/or minimum of volume range Value.In addition, the maximum and/or minimum value of the default volume range can be also determined according to the Listening Ability of Ethnic of user, to adapt to The hearing ability of user.
Step 305:When the current volume of the terminal is more than the maximum of the default volume value scope, turn down described The volume of terminal.
It is understood that in the current volume of the terminal not in the range of the default volume value and more than described pre- If during the maximum of volume value scope, it is believed that the current volume of the terminal is not fitted mutually with the environmental noise value residing for user Answer, the recommended range not set in volume, the current volume of the terminal may cause not the hearing of user in other words The influence of profit.At this time, by turning down the volume of the terminal, so that the volume of the terminal and the acoustic environment phase residing for user Adapt to, the possibility that interference is brought to neighbours' life can be reduced, can also protect the hearing of user to a certain extent
Step 306:When the current volume of the terminal is less than the minimum value of the default volume value scope, heighten described The volume of terminal.
It is understood that in the current volume of the terminal not in the range of the default volume value and less than described pre- If during the minimum value of volume value scope, it is believed that the volume of the terminal is very low, and environmental noise value may be larger, thus can User can be caused normally to hear the sound that the terminal is sent.At this time, by heightening the volume of the terminal, to use Family can normally listen to the sound that the terminal is sent.
In present embodiment, after environmental noise value is obtained according to ambient sound, it is worth to according to the environmental noise With the default volume value scope of the corresponding terminal of the environmental noise value, and whether the current volume of the terminal is judged In the range of the default volume value.In the current volume of the terminal not in the range of the default volume value and more than described During the maximum of default volume value scope, the volume of the terminal is turned down;In the current volume of the terminal not described default In the range of volume value and when being less than the minimum value of the default volume value scope, the volume of the terminal is heightened, hereby it is achieved that from The dynamic volume control to the terminal, and cause the volume of the terminal after adjustment to adapt to the sound ring residing for the terminal Border, and the volume that can meet user sets custom.
Fig. 4 is the exemplary functional block diagram of the sound volume control device of an embodiment of the present invention.As shown in figure 4, sound The ambient sound that amount control device 100 can be collected by acquisition using the voice collection device of the terminal present position, and Environmental noise value is obtained according to the ambient sound, the volume of the terminal is adjusted further according to the environmental noise value, due to Consideration using the environmental noise value as the volume for adjusting the terminal, thus the volume of the terminal after adjustment is more The current acoustic environment of the terminal present position is adapted to, according to the volume of environmental noise accommodation terminal, is met User carries out the volume of the terminal adjustment demand of automatic adaptive ambient sound, and controls flexible.
The sound volume control device 100 of the present invention can include one or more modules, and one or more of modules can be with Be stored in the memory of terminal and may be configured to by one or more processors (present embodiment for one processing Device) perform, to complete the present invention.For example, as shown in figure 4, the sound volume control device 100 can include acquisition module 11, meter Calculate module 12, control module 13, judgment module 14 and correcting module 15.Module alleged by the present invention can complete a specific work( The program segment of energy, than implementation procedure of the program more suitable for description software within a processor.
It should be noted that each embodiment of corresponding above-mentioned method for controlling volume, sound volume control device 100 can include Part or all in each function module shown in Fig. 4, the function of each module will introduced in detail below.Above volume control Identical noun related terms and its specific explanation are readily applicable to following to each in each embodiment of method processed The function introduction of module.For the sake of saving space and avoiding repetition, just repeat no more herein.
Fig. 5 is the exemplary structure diagram of the terminal of an embodiment of the present invention.Computer provided in this embodiment Device 1 includes:Processor 10, memory 20, sound equipment 30 and it is stored in the memory 20 and can be in the processing The computer program run on device 10, such as volume control program.When the processor 10 performs the computer program, in realization State the step in each method for controlling volume embodiment, such as the step 101 shown in Fig. 1 is to step 103.Alternatively, the place Reason device 10 realizes the function of each module in above device embodiment when performing the computer program, such as such as the acquisition in Fig. 4 Module 11 realizes the ambient sound function of obtaining and collected using the voice collection device of terminal present position.
The computer installation 1 can be mobile phone, desktop PC, notebook, palm PC and cloud server etc. Computing device.The computer installation 1 may include, but be not limited to, processor 10, memory 20 and sound equipment 30.This area Technical staff is appreciated that the schematic diagram is only showing for the computer installation 1 that the present invention is used for realization method for controlling volume Example, does not form the restriction to computer installation 1, can include than illustrating more or fewer components, or some portions of combination Part, or different components, such as the computer installation 1 can also include input-output equipment, network access equipment, bus Deng.
Alleged processor 10 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng the processor 10 is the control centre of the computer installation 1, utilizes various interfaces and connection whole computer dress Put 1 various pieces.
The memory 20 can be used for storing the computer program and/or module, the processor 10 by operation or The computer program and/or module being stored in the memory 20 are performed, and calls the data being stored in memory 20, Realize the various functions of the computer installation 1.The memory 20 can mainly include storing program area and storage data field, its In, storing program area can storage program area, application program (such as sound-playing function, image needed at least one function Playing function etc.) etc.;Storage data field can be stored uses created data (such as voice data, phone directory according to mobile phone Deng) etc..In addition, memory 20 can include high-speed random access memory, nonvolatile memory can also be included, such as firmly Disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) block, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-states Part.
The sound equipment 30 allows the user to be felt acoustically to convert the electrical signal to voice signal Know.
The computer installation 1 may also include sound volume control device 100 as shown in Figure 4, the sound volume control device 100 It can be stored in the memory 20.
Exemplary, the computer program can be divided into one or more modules, one or more of moulds Block is stored in the memory 20, and is performed by the processor 10, to complete the present invention.One or more of modules Can be the series of computation machine programmed instruction section that can complete specific function, which is used to describe the computer program Implementation procedure in the computer installation 1.For example, the computer program can be divided into volume as shown in Figure 4 Control device 100, including acquisition module 11, computing module 12, control module 13, judgment module 14 and correcting module 15, each mould Block concrete function is as follows:
Acquisition module 11, the ambient sound collected available for acquisition using the voice collection device of terminal present position.
Computing module 12, environmental noise value is obtained available for according to the ambient sound, wherein, the environmental noise value is The intensity of sound value of ambient sound outside the sound that the terminal is sent.
Control module 13, available for the volume that the terminal is adjusted according to the environmental noise value.
Judgment module 14, available for judging the environmental noise value whether in the range of default environmental noise value, alternatively, with In judging the current volume of the terminal whether in the range of the default volume value.
The control module 13 is particularly used in when adjusting the volume of the terminal according to the environmental noise value:
Not in the range of the default environmental noise value and it is more than the default environmental noise value in the environmental noise value During the maximum of scope, the volume of the terminal is heightened;
Not in the range of the default environmental noise value and it is less than the default environmental noise value in the environmental noise value During the minimum value of scope, the volume of the terminal is turned down.
The computing module 12 is additionally operable to be worth to and the corresponding institute of the environmental noise value according to the environmental noise State the default volume range of terminal;
The control module 13 is particularly used in when adjusting the volume of the terminal according to the environmental noise value:
Not in the range of the default volume value and it is more than the default volume value model in the current volume value of the terminal During the maximum enclosed, the volume of the terminal is turned down.
Not in the range of the default volume value and it is less than the default volume value model in the current volume value of the terminal During the minimum value enclosed, the volume of the terminal is heightened.
If the integrated module of computer installation 1 of the present invention is realized in the form of SFU software functional unit and as independently Production marketing or in use, can be stored in a computer read/write memory medium.Based on such understanding, the present invention Realize all or part of flow in the method for controlling volume of the respective embodiments described above, can also be instructed by computer program Relevant hardware is completed, and the computer program can be stored in a computer-readable recording medium, the computer program When being executed by processor, it can be achieved that step in the method for controlling volume of the respective embodiments described above.Wherein, the computer journey Sequence includes computer program code, and the computer program code can be source code form, object identification code form, executable text Part or some intermediate forms etc..The computer-readable medium can include:Appointing for the computer program code can be carried What entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications letter Number and software distribution medium etc..It should be noted that the content that the computer-readable medium includes can be managed according to the administration of justice Local legislation and the requirement of patent practice carry out appropriate increase and decrease, such as in some jurisdictions, according to legislation and patent Practice, computer-readable medium do not include electric carrier signal and telecommunication signal.
Fig. 6 is the exemplary structure diagram of the intelligent domestic system of an embodiment of the present invention.Intelligent domestic system 2 Including mobile phone 3 and television set 4, the intelligent domestic system 2, can in the step of application method for controlling volume as shown in Figure 1 Current ambient sound is collected using the microphone of the mobile phone 3, and ring is obtained according to the ambient sound by the mobile phone 3 Border level of noise, finally, the mobile phone 3 adjust the volume of the television set 4 according to the environmental noise value.
It is understood that the mobile phone 3 can be directly connected to television set 4 by Bluetooth communication, it can also pass through LAN Be directly connected to, can also by communications switching unit (infrared signal turns bluetooth, Wi-Fi signal turns infrared signal or Wi-Fi signal turn Bluetooth signal) realize be indirectly connected with.
It is understood that the mobile phone 3 can also adjust the volume of itself according to the environmental noise value.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Profit requires rather than described above limits, it is intended that all in the implication and scope of the equivalency of claim by falling Change is included in the present invention.Any reference numeral in claim should not be considered as to the involved claim of limitation.This Outside, it is clear that one word of " comprising " is not excluded for other units or step, and odd number is not excluded for plural number.System, device or terminal installation right Multiple units, module or the device stated in it is required that can also pass through software or hardware by same unit, module or device To realize.The first, the second grade word is used for representing title, and is not offered as any specific order.
Embodiment of above is merely illustrative of the technical solution of the present invention and unrestricted, although the preferable embodiment party with reference to more than The present invention is described in detail in formula, it will be understood by those of ordinary skill in the art that, can be to technical scheme Modify or equivalent substitution should not all depart from the spirit and scope of technical solution of the present invention.

Claims (10)

  1. A kind of 1. method for controlling volume, it is characterised in that the described method includes:
    Obtain the ambient sound collected using the voice collection device of terminal present position;
    Environmental noise value is obtained according to the ambient sound, wherein, the environmental noise value be the sound that sends of the terminal it The intensity of sound value of outer ambient sound;
    The volume of the terminal is adjusted according to the environmental noise value.
  2. 2. method for controlling volume as claimed in claim 1, it is characterised in that described according to environmental noise value adjustment The volume of terminal includes:
    Judge the environmental noise value whether in the range of default environmental noise value;
    If the environmental noise value is not in the range of the default environmental noise value and is more than the default environmental noise value scope Maximum, then heighten the volume of the terminal;
    If the environmental noise value is not in the range of the default environmental noise value and is less than the default environmental noise value scope Minimum value, then turn down the volume of the terminal.
  3. 3. method for controlling volume as claimed in claim 2, it is characterised in that institute is adjusted according to the environmental noise value described Before the volume for stating terminal, the method further includes:
    Obtain the environmental noise value record that the ambient sound collected according to the voice collection device obtains;
    Record to obtain the corrected parameter of current environment level of noise according to the environmental noise value;
    The default level of noise scope is corrected according to the corrected parameter of the current environment level of noise.
  4. 4. method for controlling volume as claimed in claim 1, it is characterised in that described according to environmental noise value adjustment The volume of terminal includes:
    Default volume range with the corresponding terminal of the environmental noise value is worth to according to the environmental noise;
    Judge the current volume value of the terminal whether in the range of the default volume value;
    If the current volume value of the terminal is not in the range of the default volume value and more than the default volume value scope Maximum, then turn down the volume of the terminal;
    If the current volume value of the terminal is not in the range of the default volume value and less than the default volume value scope Minimum value, then heighten the volume of the terminal.
  5. 5. method for controlling volume as claimed in claim 4, it is characterised in that institute is adjusted according to the environmental noise value described Before the volume value for stating terminal, the method further includes:
    The volume for obtaining the terminal sets record;
    Record is set to obtain the corrected parameter of the default volume range according to the volume;
    The default volume value scope is corrected according to the corrected parameter of the default volume range.
  6. 6. the method for controlling volume as described in claim 1-5 any one, it is characterised in that described according to the environmental noise The volume that value adjusts the terminal includes:
    The volume of the terminal is adjusted according to the environmental noise value using the terminal;Or
    The terminal is controlled to adjust the terminal according to the environmental noise value using another equipment being connected with the terminal Volume.
  7. 7. a kind of sound volume control device, it is characterised in that the sound volume control device includes:
    Acquisition module, for obtaining the ambient sound collected using the voice collection device of terminal present position;
    Computing module, for obtaining environmental noise value according to the ambient sound, wherein, the environmental noise value is the terminal The intensity of sound value of ambient sound outside the sound sent;
    Control module, for adjusting the volume of the terminal according to the environmental noise value.
  8. 8. sound volume control device as claimed in claim 7, it is characterised in that the sound volume control device further includes:
    Judgment module, for judging the environmental noise value whether in the range of default environmental noise value;
    The control module is specifically used for when adjusting the volume of the terminal according to the environmental noise value:
    Not in the range of the default environmental noise value and it is more than the default environmental noise value scope in the environmental noise value Maximum when, heighten the volume of the terminal;
    Not in the range of the default environmental noise value and it is less than the default environmental noise value scope in the environmental noise value Minimum value when, turn down the volume of the terminal.
  9. 9. a kind of computer installation, it is characterised in that the computer installation includes processor, and the processor is deposited for execution The step of method for controlling volume as described in any one in claim 1-6 is realized during the computer program stored in reservoir.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The step of method for controlling volume as described in any one in claim 1-6 is realized when being executed by processor.
CN201711146172.XA 2017-11-17 2017-11-17 Method for controlling volume and device, computer installation and computer-readable recording medium Pending CN107908388A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711146172.XA CN107908388A (en) 2017-11-17 2017-11-17 Method for controlling volume and device, computer installation and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711146172.XA CN107908388A (en) 2017-11-17 2017-11-17 Method for controlling volume and device, computer installation and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107908388A true CN107908388A (en) 2018-04-13

Family

ID=61846116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711146172.XA Pending CN107908388A (en) 2017-11-17 2017-11-17 Method for controlling volume and device, computer installation and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107908388A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595144A (en) * 2018-04-24 2018-09-28 仲恺农业工程学院 Volume adjusting method and device
CN108733341A (en) * 2018-05-18 2018-11-02 出门问问信息科技有限公司 A kind of voice interactive method and device
CN109036447A (en) * 2018-08-08 2018-12-18 西安艾润物联网技术服务有限责任公司 Intelligent sound volume adjusting method, system, device and storage medium
CN109215652A (en) * 2018-10-16 2019-01-15 深圳Tcl新技术有限公司 Volume adjusting method, device, playback terminal and computer readable storage medium
CN110333838A (en) * 2019-06-11 2019-10-15 Oppo广东移动通信有限公司 A kind of control method of volume, terminal and computer storage medium
CN110581918A (en) * 2018-06-11 2019-12-17 佛山市顺德区美的电热电器制造有限公司 Voice equipment, control method thereof, server and computer storage medium
CN110996159A (en) * 2019-12-30 2020-04-10 深圳Tcl数字技术有限公司 Volume adjusting method and system, display terminal and readable storage medium
CN112256234A (en) * 2020-11-06 2021-01-22 易普森智慧健康科技(深圳)有限公司 Volume control method and device and computer readable medium
CN112533057A (en) * 2019-09-18 2021-03-19 深圳Tcl新技术有限公司 Method, system and storage medium for intelligently adjusting volume

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201490977U (en) * 2009-09-10 2010-05-26 青岛海信电器股份有限公司 Volume controller and television comprising same
CN104978166A (en) * 2015-06-30 2015-10-14 北京奇艺世纪科技有限公司 Volume adjusting method and device
CN105763736A (en) * 2016-04-06 2016-07-13 上海斐讯数据通信技术有限公司 Adaptive noise volume regulating device, method thereof and mobile terminal
CN105786442A (en) * 2016-03-01 2016-07-20 惠州Tcl移动通信有限公司 Volume control method and intelligent terminal
CN105827853A (en) * 2016-04-29 2016-08-03 维沃移动通信有限公司 Method for controlling terminal loudspeaker volume output and mobile terminal
CN106502618A (en) * 2016-10-21 2017-03-15 深圳市冠旭电子股份有限公司 A kind of method for protecting hearing ability and device
CN106791067A (en) * 2016-12-14 2017-05-31 广东欧珀移动通信有限公司 A kind of In Call adjusting method, device and mobile terminal
CN107301030A (en) * 2017-06-21 2017-10-27 深圳天珑无线科技有限公司 A kind of method for controlling volume, device and a kind of terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201490977U (en) * 2009-09-10 2010-05-26 青岛海信电器股份有限公司 Volume controller and television comprising same
CN104978166A (en) * 2015-06-30 2015-10-14 北京奇艺世纪科技有限公司 Volume adjusting method and device
CN105786442A (en) * 2016-03-01 2016-07-20 惠州Tcl移动通信有限公司 Volume control method and intelligent terminal
CN105763736A (en) * 2016-04-06 2016-07-13 上海斐讯数据通信技术有限公司 Adaptive noise volume regulating device, method thereof and mobile terminal
CN105827853A (en) * 2016-04-29 2016-08-03 维沃移动通信有限公司 Method for controlling terminal loudspeaker volume output and mobile terminal
CN106502618A (en) * 2016-10-21 2017-03-15 深圳市冠旭电子股份有限公司 A kind of method for protecting hearing ability and device
CN106791067A (en) * 2016-12-14 2017-05-31 广东欧珀移动通信有限公司 A kind of In Call adjusting method, device and mobile terminal
CN107301030A (en) * 2017-06-21 2017-10-27 深圳天珑无线科技有限公司 A kind of method for controlling volume, device and a kind of terminal

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595144B (en) * 2018-04-24 2021-06-08 仲恺农业工程学院 Volume adjusting method and device
CN108595144A (en) * 2018-04-24 2018-09-28 仲恺农业工程学院 Volume adjusting method and device
CN108733341A (en) * 2018-05-18 2018-11-02 出门问问信息科技有限公司 A kind of voice interactive method and device
CN108733341B (en) * 2018-05-18 2021-09-14 出门问问信息科技有限公司 Voice interaction method and device
CN110581918B (en) * 2018-06-11 2022-10-25 佛山市顺德区美的电热电器制造有限公司 Voice equipment, control method thereof, server and computer storage medium
CN110581918A (en) * 2018-06-11 2019-12-17 佛山市顺德区美的电热电器制造有限公司 Voice equipment, control method thereof, server and computer storage medium
CN109036447A (en) * 2018-08-08 2018-12-18 西安艾润物联网技术服务有限责任公司 Intelligent sound volume adjusting method, system, device and storage medium
CN109215652A (en) * 2018-10-16 2019-01-15 深圳Tcl新技术有限公司 Volume adjusting method, device, playback terminal and computer readable storage medium
CN110333838A (en) * 2019-06-11 2019-10-15 Oppo广东移动通信有限公司 A kind of control method of volume, terminal and computer storage medium
CN112533057A (en) * 2019-09-18 2021-03-19 深圳Tcl新技术有限公司 Method, system and storage medium for intelligently adjusting volume
CN110996159A (en) * 2019-12-30 2020-04-10 深圳Tcl数字技术有限公司 Volume adjusting method and system, display terminal and readable storage medium
CN110996159B (en) * 2019-12-30 2022-05-06 深圳Tcl数字技术有限公司 Volume adjusting method and system, display terminal and readable storage medium
CN112256234A (en) * 2020-11-06 2021-01-22 易普森智慧健康科技(深圳)有限公司 Volume control method and device and computer readable medium
CN112256234B (en) * 2020-11-06 2021-07-23 易普森智慧健康科技(深圳)有限公司 Volume control method and device and computer readable medium

Similar Documents

Publication Publication Date Title
CN107908388A (en) Method for controlling volume and device, computer installation and computer-readable recording medium
CN104954555B (en) A kind of volume adjusting method and system
EP3547706B1 (en) Method and device for switching play modes of wireless speaker, and wireless speaker
CN108647005A (en) Audio frequency playing method, mobile terminal and computer readable storage medium
CN110308888B (en) Volume control method, electronic equipment and computer readable storage medium
CN107040660A (en) Control method, device and the mobile terminal of mobile terminal playing volume
CN108737648B (en) Music volume self-adaptive adjusting method, device, storage medium and terminal
CN106791067A (en) A kind of In Call adjusting method, device and mobile terminal
CN105120063A (en) Volume prompting method of input voice and electronic device
EP3550424A1 (en) Method for configuring wireless sound box, wireless sound box, and terminal device
CN108111698A (en) A kind of incoming call reminding method and smart machine
CN105049642A (en) Volume adjustment method and device for prompt tone of mobile terminal
CN110677774A (en) Volume self-adaptive adjusting method and device, computer equipment and storage medium
JP2017525289A (en) Method and device for processing audio signals for communication devices
CN107508983A (en) volume adjusting method, device, storage medium and terminal device
CN111508510B (en) Audio processing method and device, storage medium and electronic equipment
EP2887698A1 (en) Hearing aid for playing audible advertisement or audible data
CN108337735A (en) wireless network connection control method, device, storage medium and terminal device
CN104965651A (en) Information processing method and electronic equipment
CN109600470B (en) Mobile terminal and sound production control method thereof
CN104023102A (en) Adjustable noise reduction method, device and mobile terminal
CN111107226A (en) Volume control method applied to mobile terminal
CN115375518A (en) Abnormal paging method and related device
CN107493376A (en) A kind of ringing volume adjusting method and device
CN113347307B (en) Method for suppressing leakage, related device and computer readable 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: 20180413

RJ01 Rejection of invention patent application after publication