CN111324328B - Volume adjusting method and device - Google Patents

Volume adjusting method and device Download PDF

Info

Publication number
CN111324328B
CN111324328B CN201811534620.8A CN201811534620A CN111324328B CN 111324328 B CN111324328 B CN 111324328B CN 201811534620 A CN201811534620 A CN 201811534620A CN 111324328 B CN111324328 B CN 111324328B
Authority
CN
China
Prior art keywords
volume
value
output
time
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811534620.8A
Other languages
Chinese (zh)
Other versions
CN111324328A (en
Inventor
韩文君
李俊一
陈彬
张东胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yunding Network Technology Beijing Co Ltd
Original Assignee
Yunding Network Technology Beijing 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 Yunding Network Technology Beijing Co Ltd filed Critical Yunding Network Technology Beijing Co Ltd
Priority to CN201811534620.8A priority Critical patent/CN111324328B/en
Priority to PCT/CN2019/094682 priority patent/WO2020007339A1/en
Publication of CN111324328A publication Critical patent/CN111324328A/en
Priority to US17/141,189 priority patent/US11743336B2/en
Application granted granted Critical
Publication of CN111324328B publication Critical patent/CN111324328B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

According to the volume adjusting method and device, after the current time is obtained, the preset volume control rule corresponding to the current time can be determined, and then the mode of using the fixed preset volume to output the volume or the mode of performing self-adaptive volume output according to the current environmental noise is determined according to the preset volume control rule, so that more selection modes are provided, and the user experience is improved.

Description

Volume adjusting method and device
Technical Field
The invention relates to the field of door lock control, in particular to a volume adjusting method and device.
Background
At present, most of domestic electronic products (including intelligent door locks) can output voice, and the electronic products adopt a fixed volume output mode when outputting the voice, namely under any condition, the volume output by the electronic products is fixed.
However, the fixed volume output mode is adopted, the control mode is single, and the user experience is reduced.
Disclosure of Invention
In view of the above, the present invention provides a volume adjustment method and apparatus that overcomes or at least partially solves the above problems.
A volume adjustment method, comprising:
acquiring current time;
determining a preset volume control rule matched with the current time;
determining whether the output volume corresponding to the current time is a fixed preset volume or not according to the preset volume control rule;
if so, outputting the volume according to the fixed preset volume;
if not, the self-adaptive volume output is carried out according to the current environment noise.
Preferably, the adaptive volume output according to the current environmental noise comprises:
determining a first life time of the self-adaptive volume output according to the preset volume control rule;
when a preset data acquisition condition is reached, determining an environment noise value;
determining a time adjustment coefficient corresponding to the current time; the time adjustment coefficient is used for determining the proportional relation between the output volume value of the electronic equipment and the environment noise value;
and determining the output volume value of the electronic equipment according to the environment noise value and the time adjustment coefficient, and outputting the output volume value in the first life time.
Preferably, when the preset data acquisition condition is reached, determining the value of the environmental noise comprises:
when data acquisition is carried out in a mode of carrying out data acquisition at fixed intervals and data acquisition time is reached or a preset awakening instruction is received, acquiring a plurality of initial values of environmental noise;
determining a maximum value, a minimum value and an average value of a plurality of initial values of the environmental noise;
and taking the larger value of the difference value between the maximum value and the minimum value and the average value as the environmental noise value.
Preferably, determining the output volume value of the electronic device according to the environmental noise value and the time adjustment coefficient includes:
taking the product of the environmental noise value and the time adjustment coefficient as an initial output volume value;
determining a preset volume gear value closest to the initial value of the output volume from preset volume gear values;
and taking the determined preset volume gear value as the output volume value.
Preferably, outputting the volume according to the fixed preset volume includes:
determining a second effective time of fixed preset volume output according to the preset volume control rule;
and outputting the fixed preset volume within the second effective time.
Preferably, the determining of the preset volume control rule includes:
acquiring the preset volume control rule determined by a user in a mode of pressing a volume key;
or receiving the preset volume control rule sent by the remote control equipment.
A volume adjustment device comprising:
the time acquisition module is used for acquiring the current time;
the rule acquisition module is used for determining a preset volume control rule matched with the current time;
the volume determining module is used for determining whether the output volume corresponding to the current time is a fixed preset volume or not according to the preset volume control rule;
the first volume output module is used for outputting the volume according to the fixed preset volume if the first volume output module is used for outputting the volume according to the fixed preset volume;
and the second volume output module is used for outputting the self-adaptive volume according to the current environmental noise if the current environmental noise is not the noise.
Preferably, the second volume output module includes:
the first time determining submodule is used for determining first life time of the self-adaptive volume output according to the preset volume control rule;
the first data determination submodule is used for determining an environment noise value when a preset data acquisition condition is reached;
the second data determining submodule is used for determining a time adjusting coefficient corresponding to the current time; the time adjustment coefficient is used for determining the proportional relation between the output volume value of the electronic equipment and the environment noise value;
and the first volume output submodule is used for determining the output volume value of the electronic equipment according to the environment noise value and the time adjustment coefficient and outputting the output volume value in the first life time.
A storage medium comprising a stored program, wherein the program executes the above-described volume adjustment method.
A processor for executing a program, wherein the program executes to perform the volume adjustment method.
By means of the technical scheme, the volume adjusting method and the volume adjusting device are provided, after the current time is obtained, the preset volume control rule corresponding to the current time can be determined, and then the mode of using the fixed preset volume to output the volume or the mode of performing self-adaptive volume output according to the current environmental noise is determined according to the preset volume control rule, so that more selection modes are provided, and the user experience is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 shows a flow chart of a method of volume adjustment according to an embodiment of the present invention;
FIG. 2 illustrates a method flow diagram of another volume adjustment method provided by embodiments of the present invention;
fig. 3 is a flow chart of a method for providing a further volume adjustment method according to an embodiment of the present invention;
fig. 4 shows a schematic structural diagram of a volume adjusting apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiment of the invention provides a volume adjusting method which can be applied to any electronic equipment needing to send out voice, such as a mobile phone, a tablet, a notebook, a door lock controller and the like.
Referring to fig. 1, the volume adjusting method may include:
s11, acquiring the current time;
the door lock is generally provided with a clock chip, and the current time can be obtained through the clock, and in addition, the current time can also be obtained through a remote communication mode.
S12, determining a preset volume control rule matched with the current time;
specifically, in the embodiment of the present invention, a preset volume control rule corresponding to each time is determined, and the preset volume control rule specifies whether the corresponding time is output in a fixed volume output manner or is output adaptively according to the environmental noise.
For example, the noise is large in daytime, so that in order to avoid the influence of noise, the adaptive volume output is adopted in 6.00-12.00 and 2.00-20.00, and the rest is needed in noon and evening, so the minimum volume level is adopted for output in 12.00-2.00 and 20.00-6.00, and the volume of the minimum volume level is small, so that the rest of a user is not influenced.
The preset volume control rule is set by a user, and optionally, on the basis of the embodiment, the determining process of the preset volume control rule includes:
acquiring the preset volume control rule determined by a user in a mode of pressing a volume key;
or receiving the preset volume control rule sent by the remote control equipment.
Specifically, the user may control the volume by pressing an up-down button of the volume key at the door lock, for example, the user increases the volume to five steps as the volume output at this time.
In addition, the preset volume control rule can be determined through remote control. Specifically, a plurality of preset volume gear values may be preset, such as: mute level, minimum volume level, medium volume level, maximum volume level, automatic volume level.
The user sends the volume control instruction through cell-phone APP, if the volume of setting this moment is the silence shelves, this moment the lock controller switches over to the silence shelves.
In addition, the user can also set the volume of a plurality of time periods at the same time, for example, 12.00-13.00 noon, the set volume gear is a mute gear, 8.00-12.00 morning, the set volume gear is a medium volume gear, and the volume gear set at 0.00-0.600 evening is a minimum volume gear.
The time period of the volume gear is set as the effective time of the volume gear, and except the time period with the set volume gear set by the user, the volumes of the other time periods are self-adaptive volume output according to the current environmental noise.
That is, the preset volume control rule includes two cases, one is a period in which the volume level is set, and a period in which the volume level is not set.
For example, the output volume of 6.00-20.00 is the adaptive volume output according to the current environmental noise, and the output volume of 20.00-6.00 is the minimum volume level. That is, the effective time of the minimum volume level is 20.00-6.00, and the effective time of the adaptive volume output is 6.00-20.00. In the embodiment, the volume values of different time periods set by the user can be adopted according to the user requirements, so that the flexibility of automatic volume adjustment is improved, the method is more intelligent, and the user experience is improved.
It should be noted that, after the volume output mode corresponding to the current time is determined, the volume output mode corresponding to the current time is not queried any more within the effective time corresponding to the volume output mode, and only when the effective time passes, the volume output mode corresponding to the next current time is queried.
In addition, two working modules are arranged in the door lock controller, one working module is an automatic volume adjusting mode, namely the output volume can be automatically adjusted according to the external environment and the current time, and the other working module is a fixed volume adjusting mode, namely the fixed volume output is always carried out. The user can control the door lock controller to enter different working modes according to the requirements, and the user experience is improved.
S13, determining whether the output volume corresponding to the current time is a fixed preset volume; if yes, go to step S14; if not, go to step S15.
Specifically, according to the preset volume control rule, whether the output volume corresponding to the current time is a fixed preset volume is determined.
The preset volume control rule specifies that the corresponding time adopts a fixed volume output mode to output the volume or carries out self-adaptive output according to the environmental noise.
If the current time adopts a fixed volume output mode, the output volume corresponding to the current time can be determined to be a fixed preset volume; and if the current time adopts a self-adaptive output mode according to the environmental noise, the corresponding output volume corresponding to the current time is not a fixed preset volume.
S14, outputting the volume according to the fixed preset volume;
firstly, a fixed preset volume corresponding to the current time is determined, and then the determined fixed preset volume is used as an output volume value of the electronic equipment.
And S15, carrying out self-adaptive volume output according to the current environment noise.
And (3) carrying out self-adaptive volume output according to the current environment noise, namely carrying out self-adaptive adjustment according to the current environment noise, wherein if the current environment noise is large, the output volume of the door lock is also large, and when the current environment noise is small, the output volume of the door lock is also small.
In this embodiment, after the current time is obtained, the preset volume control rule corresponding to the current time can be determined, and then it is determined whether to use a fixed preset volume to output the volume or to output the adaptive volume according to the current environmental noise according to the preset volume control rule, so that a plurality of selection modes are provided, and the user experience is improved.
Optionally, on the basis of any of the foregoing embodiments, referring to fig. 2, step S15 may include:
s21, determining a first life time of the self-adaptive volume output according to the preset volume control rule;
according to the above discussion, the preset volume control rule includes two cases, one is a period in which the volume level is set, and a period in which the volume level is not set. The instant time period is the first life time.
S22, determining an environment noise value when a preset data acquisition condition is reached;
specifically, the environmental noise value is the noise value of the external environment where the door lock is located.
Optionally, on the basis of this embodiment, when a preset data acquisition condition is reached, determining an environmental noise value includes:
1) when data acquisition is carried out in a mode of carrying out data acquisition at fixed intervals and data acquisition time is reached or a preset awakening instruction is received, acquiring a plurality of initial values of environmental noise;
specifically, the preset data acquisition condition is that the data acquisition time is reached or a preset wake-up instruction is received. Data acquisition is carried out through the decibel sensor, and after the decibel sensor is used for acquiring, the acquired data are sent to the door lock controller.
The data acquisition may be performed at regular intervals, for example, each data acquisition time is 500ms, 640 data are acquired within 500ms, and the period of the regular intervals is 10 minutes, that is, data are acquired every 10 minutes. When the data acquisition time is reached, data acquisition is performed.
In addition, data acquisition can be carried out when a preset awakening instruction is received, wherein the preset awakening instruction can be a password keyboard awakening instruction.
It should be noted that the password keyboard wake-up instruction is collected here, but other wake-up instructions such as a fingerprint wake-up instruction are not adopted, because the password keyboard is waken up by an infrared gesture, the whole process is more than 500ms, and because 500ms can be used for collecting data once, data can be collected once in the wake-up of the password keyboard. If the fingerprint is collected and awakened, the time for awakening the fingerprint to be identified needs to be within 500ms, and the time is short, so that the data collection cannot be performed for one time. And when a password keyboard awakening instruction is received, data is immediately collected.
It should be noted that, under normal conditions, the door lock controller performs data acquisition at regular intervals, and immediately performs data acquisition when a preset wake-up command is suddenly received, and thereafter, performs data acquisition at regular intervals.
After data acquisition is carried out, the data are stored in a buffer area so as to be processed at a later period.
2) Determining a maximum value, a minimum value and an average value of a plurality of initial values of the environmental noise;
specifically, 640 initial values of the environmental noise are collected, the maximum value and the minimum value are selected from the initial values, and the average value of all the initial values of the environmental noise is calculated.
3) And taking the larger value of the difference value between the maximum value and the minimum value and the average value as the environmental noise value.
The difference value and the average value between the maximum value and the minimum value can both represent the current average noise value of the external environment, and in order to enable the volume value of the sound emitted by the door lock to be larger than that of the external environment, the larger value of the difference value between the maximum value and the minimum value and the average value is selected as the environment noise value.
S23, determining a time adjustment coefficient corresponding to the current time;
the time adjustment coefficient is used for determining a proportional relation between an output volume value of the electronic equipment and the environment noise value.
Optionally, on the basis of this embodiment, step S23 may include:
and acquiring the corresponding relation between the time and the time adjustment coefficient, and searching the time adjustment coefficient corresponding to the current time from the corresponding relation.
Specifically, when the system is powered on, a time adjustment coefficient dispersion curve is set, wherein the time adjustment coefficient dispersion curve represents a corresponding relationship between time and a time adjustment coefficient. The time adjustment coefficient dispersion curve comprises time adjustment coefficients corresponding to different times. And taking the time adjustment coefficients corresponding to different times as the weighting factors of the noise volume. The values of the time adjustment coefficients are all values larger than 1, and the time adjustment coefficients are set to ensure that the output volume of the door lock is larger than the current environmental noise value.
At intervals of 2 hours, a time adjustment coefficient is set, for example: setting the time adjustment coefficient of 0.00-2: 00 to be 1.8, setting the time adjustment coefficient of 2.00-4.00 to be 1.7, setting the time adjustment coefficient of 4.00-6: 00 to be 1.8 and the like.
And after the corresponding relation between the time and the time adjustment coefficient is known, searching the time adjustment coefficient corresponding to the current time from the corresponding relation.
And S24, determining the output volume value of the electronic equipment according to the environment noise value and the time adjusting coefficient, and outputting the output volume value in the first life time.
And after the output volume value of the electronic equipment is determined, controlling the voice speaker to output the volume according to the output volume value.
In this embodiment, the output volume value of the electronic device is determined according to the environmental noise value and the time adjustment coefficient, that is, the output volume of the electronic device can be automatically adjusted according to the external environment, so that the user experience is improved.
In addition, by adopting the embodiment of the invention, the problems that the voice interaction volume is too large when the door is opened at night and the family is awakened are solved well.
Alternatively, on the basis of the previous embodiment, referring to fig. 3, step S24 may include:
s31, taking the product of the environmental noise value and the time adjustment coefficient as an initial value of output volume;
specifically, the initial value of the output volume is the value of the environmental noise with the time adjustment coefficient.
The environment noise value is the difference value between the maximum value and the minimum value, and the larger value of the average value, so that the determined environment noise value can represent the noise value of the current environment. In addition, the time adjustment coefficient is larger than 1, the environment noise value is multiplied by the time adjustment coefficient, the finally determined volume value is definitely larger than the environment noise value, and then the output volume of the door lock is larger than the environment noise value, so that the user can be ensured to hear the sound emitted by the door lock.
S32, determining a preset volume gear position value closest to the initial value of the output volume from preset volume gear position values;
and S33, taking the determined preset volume gear value as the output volume value.
Specifically, the user preset a plurality of preset volume gear values, such as: mute level, minimum volume level, medium volume level, maximum volume level, automatic volume level.
When the initial value of the output volume is determined, the preset volume gear value closest to the initial value of the output volume is searched from the preset volume gear values and is used as the output volume value. The preset volume gear value is set by the user, so that the preset volume gear value closest to the initial value of the output volume is searched from the plurality of preset volume gear values, and the requirement of the user is met.
It should be noted that, when the initial volume value is determined, it is also possible to directly use the initial volume value as the output volume value.
In this embodiment, the product of the environmental noise value and the time adjustment coefficient is used as an initial value of output volume, and a preset volume gear value closest to the initial value of output volume is found from a plurality of preset volume gear values and used as an output volume value, which better meets the user requirements.
Optionally, on the basis of any of the foregoing embodiments, step S14 may include:
and determining second effective time of fixed preset volume output according to the preset volume control rule, and outputting the fixed preset volume within the second effective time.
The second effective time and the first effective time can be the same or different, and the second effective time and the first effective time can be set according to user requirements.
And within the second effective time, outputting the fixed preset volume.
In this embodiment, when the fixed volume output is performed, the fixed volume output may be performed according to a user demand.
Optionally, on the basis of the embodiment of the volume adjusting method, another embodiment of the present invention provides a volume adjusting device, and with reference to fig. 4, the volume adjusting device may include:
a time obtaining module 101, configured to obtain a current time;
a rule obtaining module 102, configured to determine a preset volume control rule that matches the current time;
a volume determining module 103, configured to determine whether an output volume corresponding to the current time is a fixed preset volume according to the preset volume control rule;
a first volume output module 104, configured to output a volume according to the fixed preset volume if the first volume is greater than the fixed preset volume;
and the second volume output module 105 is configured to perform adaptive volume output according to the current environmental noise if the current environmental noise is not the noise.
Further, the system also comprises a rule generating module; the rule generation module may include:
the first rule generation submodule is used for acquiring the preset volume control rule determined by a user in a mode of pressing a volume key;
and the second rule generation submodule is used for receiving the preset volume control rule sent by the remote control equipment.
In this embodiment, after the current time is obtained, the preset volume control rule corresponding to the current time can be determined, and then it is determined whether to use a fixed preset volume to output the volume or to output the adaptive volume according to the current environmental noise according to the preset volume control rule, so that a plurality of selection modes are provided, and the user experience is improved.
It should be noted that, for the working processes of each module and sub-module in this embodiment, please refer to the corresponding description in the above embodiments, which is not described herein again.
Optionally, on the basis of any one of the embodiments of the volume adjusting apparatus, the second volume output module includes:
the first time determining submodule is used for determining first life time of the self-adaptive volume output according to the preset volume control rule;
the first data determination submodule is used for determining an environment noise value when a preset data acquisition condition is reached;
the second data determining submodule is used for determining a time adjusting coefficient corresponding to the current time; the time adjustment coefficient is used for determining the proportional relation between the output volume value of the electronic equipment and the environment noise value;
and the first volume output submodule is used for determining the output volume value of the electronic equipment according to the environment noise value and the time adjustment coefficient and outputting the output volume value in the first life time.
Further, the first data determination sub-module may include:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring data in a mode of acquiring data periodically at fixed intervals and acquiring a plurality of initial values of environmental noise when the data acquisition time is reached or a preset awakening instruction is received;
a first determining unit, configured to determine a maximum value, a minimum value, and an average value of a plurality of initial values of the ambient noise;
a second determining unit, configured to use a larger value of the difference between the maximum value and the minimum value and the average value as the ambient noise value.
Further, when the second data determining submodule is configured to determine the time adjustment coefficient corresponding to the current time, the second data determining submodule is specifically configured to:
and acquiring the corresponding relation between the time and the time adjustment coefficient, and searching the time adjustment coefficient corresponding to the current time from the corresponding relation.
In this embodiment, the output volume value of the electronic device is determined according to the environmental noise value and the time adjustment coefficient, that is, the output volume of the electronic device can be automatically adjusted according to the external environment, so that the user experience is improved.
In addition, by adopting the embodiment of the invention, the problems that the voice interaction volume is too large when the door is opened at night and the family is awakened are solved well.
It should be noted that, for the working processes of each module, sub-module, and unit in this embodiment, please refer to the corresponding description in the above embodiments, which is not described herein again.
Optionally, on the basis of any one of the above embodiments of the volume adjusting apparatus, the first volume output sub-module may include:
the computing unit is used for taking the product of the environment noise value and the time adjusting coefficient as an initial output volume value;
a third determining unit configured to determine a preset volume gear value closest to the output volume initial value from among preset volume gear values;
and the fourth determining unit is used for taking the determined preset volume gear value as the output volume value.
In this embodiment, the product of the environmental noise value and the time adjustment coefficient is used as an initial value of output volume, and a preset volume gear value closest to the initial value of output volume is found from a plurality of preset volume gear values and used as an output volume value, which better meets the user requirements.
It should be noted that, for the working processes of each module and sub-module in this embodiment, please refer to the corresponding description in the above embodiments, which is not described herein again.
Optionally, on the basis of any one of the above embodiments of the volume adjusting apparatus, the first volume output module 104 may include:
the second time determination submodule is used for determining second effective time of fixed preset volume output according to the preset volume control rule;
and the second volume output submodule is used for outputting the fixed preset volume within the second effective time.
In this embodiment, when the fixed volume output is performed, the fixed volume output may be performed according to a user demand.
It should be noted that, for the working processes of each module and sub-module in this embodiment, please refer to the corresponding description in the above embodiments, which is not described herein again.
The volume adjusting device comprises a processor and a memory, wherein the time acquisition module, the rule acquisition module, the volume determination module, the first volume output module and the second volume output module are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the purpose of automatically adjusting the output volume is realized by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium having a program stored thereon, the program implementing the volume adjustment method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the volume adjusting method is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps:
a volume adjustment method, comprising:
acquiring current time;
determining a preset volume control rule matched with the current time;
determining whether the output volume corresponding to the current time is a fixed preset volume or not according to the preset volume control rule;
if so, outputting the volume according to the fixed preset volume;
if not, the self-adaptive volume output is carried out according to the current environment noise.
Further, the self-adaptive volume output is carried out according to the current environment noise, and the self-adaptive volume output method comprises the following steps:
determining a first life time of the self-adaptive volume output according to the preset volume control rule;
when a preset data acquisition condition is reached, determining an environment noise value;
determining a time adjustment coefficient corresponding to the current time; the time adjustment coefficient is used for determining the proportional relation between the output volume value of the electronic equipment and the environment noise value;
and determining the output volume value of the electronic equipment according to the environment noise value and the time adjustment coefficient, and outputting the output volume value in the first life time.
Further, when a preset data acquisition condition is reached, determining an environmental noise value, including:
when data acquisition is carried out in a mode of carrying out data acquisition at fixed intervals and data acquisition time is reached or a preset awakening instruction is received, acquiring a plurality of initial values of environmental noise;
determining a maximum value, a minimum value and an average value of a plurality of initial values of the environmental noise;
and taking the larger value of the difference value between the maximum value and the minimum value and the average value as the environmental noise value.
Further, determining an output volume value of the electronic device according to the environmental noise value and the time adjustment coefficient includes:
taking the product of the environmental noise value and the time adjustment coefficient as an initial output volume value;
determining a preset volume gear value closest to the initial value of the output volume from preset volume gear values;
and taking the determined preset volume gear value as the output volume value.
Further, according to the fixed preset volume, volume output is carried out, and the method comprises the following steps:
determining a second effective time of fixed preset volume output according to the preset volume control rule;
and outputting the fixed preset volume within the second effective time.
Further, the process of determining the preset volume control rule includes:
acquiring the preset volume control rule determined by a user in a mode of pressing a volume key;
or receiving the preset volume control rule sent by the remote control equipment.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
a volume adjustment method, comprising:
acquiring current time;
determining a preset volume control rule matched with the current time;
determining whether the output volume corresponding to the current time is a fixed preset volume or not according to the preset volume control rule;
if so, outputting the volume according to the fixed preset volume;
if not, the self-adaptive volume output is carried out according to the current environment noise.
Further, the self-adaptive volume output is carried out according to the current environment noise, and the self-adaptive volume output method comprises the following steps:
determining a first life time of the self-adaptive volume output according to the preset volume control rule;
when a preset data acquisition condition is reached, determining an environment noise value;
determining a time adjustment coefficient corresponding to the current time; the time adjustment coefficient is used for determining the proportional relation between the output volume value of the electronic equipment and the environment noise value;
and determining the output volume value of the electronic equipment according to the environment noise value and the time adjustment coefficient, and outputting the output volume value in the first life time.
Further, when a preset data acquisition condition is reached, determining an environmental noise value, including:
when data acquisition is carried out in a mode of carrying out data acquisition at fixed intervals and data acquisition time is reached or a preset awakening instruction is received, acquiring a plurality of initial values of environmental noise;
determining a maximum value, a minimum value and an average value of a plurality of initial values of the environmental noise;
and taking the larger value of the difference value between the maximum value and the minimum value and the average value as the environmental noise value.
Further, determining an output volume value of the electronic device according to the environmental noise value and the time adjustment coefficient includes:
taking the product of the environmental noise value and the time adjustment coefficient as an initial output volume value;
determining a preset volume gear value closest to the initial value of the output volume from preset volume gear values;
and taking the determined preset volume gear value as the output volume value.
Further, according to the fixed preset volume, volume output is carried out, and the method comprises the following steps:
determining a second effective time of fixed preset volume output according to the preset volume control rule;
and outputting the fixed preset volume within the second effective time.
Further, the process of determining the preset volume control rule includes:
acquiring the preset volume control rule determined by a user in a mode of pressing a volume key;
or receiving the preset volume control rule sent by the remote control equipment.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (9)

1. A volume adjusting method is applied to a door lock controller and comprises the following steps:
acquiring current time;
determining a preset volume control rule matched with the current time;
determining whether the output volume corresponding to the current time is a fixed preset volume or not according to the preset volume control rule;
if so, outputting the volume according to the fixed preset volume;
if not, self-adaptive volume output is carried out according to the current environment noise;
after the volume output mode corresponding to the current time is determined, the volume output mode corresponding to the current time is not inquired within the effective time corresponding to the volume output mode; when the effective time is over, inquiring a volume output mode corresponding to the next current time;
wherein, predetermine volume control rule and carry out the settlement by the user, predetermine volume control rule and include the time quantum that the user has set for the volume shelves and the time quantum that the user did not set for the volume shelves, the time quantum that the user did not set for the volume shelves is the time quantum of the self-adaptation volume output that carries out according to current ambient noise, and the definite process of predetermineeing volume control rule includes: and acquiring the preset volume control rule determined by a user in a mode of pressing a volume key or receiving the preset volume control rule sent by remote control equipment.
2. The volume adjustment method of claim 1, wherein the adaptive volume output according to the current environmental noise comprises:
determining a first life time of the self-adaptive volume output according to the preset volume control rule;
when a preset data acquisition condition is reached, determining an environment noise value;
determining a time adjustment coefficient corresponding to the current time; the time adjustment coefficient is used for determining the proportional relation between the output volume value of the electronic equipment and the environment noise value;
and determining the output volume value of the electronic equipment according to the environment noise value and the time adjustment coefficient, and outputting the output volume value in the first life time.
3. The volume adjustment method of claim 2, wherein determining the ambient noise value when the preset data acquisition condition is reached comprises:
when data acquisition is carried out in a mode of carrying out data acquisition at fixed intervals and data acquisition time is reached or a preset awakening instruction is received, acquiring a plurality of initial values of environmental noise;
determining a maximum value, a minimum value and an average value of a plurality of initial values of the environmental noise;
and taking the larger value of the difference value between the maximum value and the minimum value and the average value as the environmental noise value.
4. The volume adjustment method of claim 2, wherein determining the output volume value of the electronic device according to the ambient noise value and the time adjustment coefficient comprises:
taking the product of the environmental noise value and the time adjustment coefficient as an initial output volume value;
determining a preset volume gear value closest to the initial value of the output volume from preset volume gear values;
and taking the determined preset volume gear value as the output volume value.
5. The volume adjustment method according to claim 1, wherein outputting the volume at the fixed preset volume comprises:
determining a second effective time of fixed preset volume output according to the preset volume control rule;
and outputting the fixed preset volume within the second effective time.
6. A volume adjustment device, wherein the device is applied to a door lock controller, comprising:
the time acquisition module is used for acquiring the current time;
the rule acquisition module is used for determining a preset volume control rule matched with the current time;
the volume determining module is used for determining whether the output volume corresponding to the current time is a fixed preset volume or not according to the preset volume control rule;
the first volume output module is used for outputting the volume according to the fixed preset volume if the first volume output module is used for outputting the volume according to the fixed preset volume;
the second volume output module is used for outputting the self-adaptive volume according to the current environmental noise if the current environmental noise is not the noise;
after the volume output mode corresponding to the current time is determined, the volume output mode corresponding to the current time is not inquired within the effective time corresponding to the volume output mode; when the effective time is over, inquiring a volume output mode corresponding to the next current time;
wherein, predetermine volume control rule and carry out the settlement by the user, predetermine volume control rule and include the time quantum that the user has set for the volume shelves and the time quantum that the user did not set for the volume shelves, the time quantum that the user did not set for the volume shelves is the time quantum of the self-adaptation volume output that carries out according to current ambient noise, and the definite process of predetermineeing volume control rule includes: and acquiring the preset volume control rule determined by a user in a mode of pressing a volume key or receiving the preset volume control rule sent by remote control equipment.
7. The volume adjustment device of claim 6, wherein the second volume output module comprises:
the first time determining submodule is used for determining first life time of the self-adaptive volume output according to the preset volume control rule;
the first data determination submodule is used for determining an environment noise value when a preset data acquisition condition is reached;
the second data determining submodule is used for determining a time adjusting coefficient corresponding to the current time; the time adjustment coefficient is used for determining the proportional relation between the output volume value of the electronic equipment and the environment noise value;
and the first volume output submodule is used for determining the output volume value of the electronic equipment according to the environment noise value and the time adjustment coefficient and outputting the output volume value in the first life time.
8. A storage medium characterized by comprising a stored program, wherein the program executes the volume adjustment method according to any one of claims 1 to 5.
9. A processor for executing a program, wherein the program executes to perform the volume adjustment method according to any one of claims 1 to 5.
CN201811534620.8A 2018-07-04 2018-12-14 Volume adjusting method and device Active CN111324328B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201811534620.8A CN111324328B (en) 2018-12-14 2018-12-14 Volume adjusting method and device
PCT/CN2019/094682 WO2020007339A1 (en) 2018-07-04 2019-07-04 Method and system for operating an electronic device
US17/141,189 US11743336B2 (en) 2018-07-04 2021-01-04 Method and system for operating an electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811534620.8A CN111324328B (en) 2018-12-14 2018-12-14 Volume adjusting method and device

Publications (2)

Publication Number Publication Date
CN111324328A CN111324328A (en) 2020-06-23
CN111324328B true CN111324328B (en) 2021-12-24

Family

ID=71164818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811534620.8A Active CN111324328B (en) 2018-07-04 2018-12-14 Volume adjusting method and device

Country Status (1)

Country Link
CN (1) CN111324328B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113298982A (en) * 2021-05-18 2021-08-24 新疆爱华盈通信息技术有限公司 Bluetooth lock binding method and related control system
CN113240836A (en) * 2021-05-18 2021-08-10 新疆爱华盈通信息技术有限公司 Bluetooth lock connection method adopting two-dimensional code and related configuration system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005588A (en) * 2006-12-15 2007-07-25 华为技术有限公司 Method and device for automatically regulating device voice volume
CN101917656A (en) * 2010-08-30 2010-12-15 鸿富锦精密工业(深圳)有限公司 Automatic volume adjustment device and method
KR20140004368A (en) * 2012-07-02 2014-01-13 이정명 Sound signal apparatus for person who is visually impaired
CN103927849A (en) * 2014-04-28 2014-07-16 吉林航盛电子有限公司 Volume adjustable pedestrian voice reminding device of new energy automobile
CN105975241A (en) * 2016-04-22 2016-09-28 北京小米移动软件有限公司 Volume regulation method and device
CN107231473A (en) * 2017-05-23 2017-10-03 努比亚技术有限公司 A kind of audio output regulation and control method, equipment and computer-readable recording medium
CN107301030A (en) * 2017-06-21 2017-10-27 深圳天珑无线科技有限公司 A kind of method for controlling volume, device and a kind of terminal
CN107343160A (en) * 2017-08-30 2017-11-10 无锡北斗星通信息科技有限公司 Night motorcycle caution system
CN107741841A (en) * 2017-09-26 2018-02-27 深圳市丰巢科技有限公司 A kind of method and system that express delivery cabinet volume is automatically adjusted according to ambient sound

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005588A (en) * 2006-12-15 2007-07-25 华为技术有限公司 Method and device for automatically regulating device voice volume
CN101917656A (en) * 2010-08-30 2010-12-15 鸿富锦精密工业(深圳)有限公司 Automatic volume adjustment device and method
KR20140004368A (en) * 2012-07-02 2014-01-13 이정명 Sound signal apparatus for person who is visually impaired
CN103927849A (en) * 2014-04-28 2014-07-16 吉林航盛电子有限公司 Volume adjustable pedestrian voice reminding device of new energy automobile
CN105975241A (en) * 2016-04-22 2016-09-28 北京小米移动软件有限公司 Volume regulation method and device
CN107231473A (en) * 2017-05-23 2017-10-03 努比亚技术有限公司 A kind of audio output regulation and control method, equipment and computer-readable recording medium
CN107301030A (en) * 2017-06-21 2017-10-27 深圳天珑无线科技有限公司 A kind of method for controlling volume, device and a kind of terminal
CN107343160A (en) * 2017-08-30 2017-11-10 无锡北斗星通信息科技有限公司 Night motorcycle caution system
CN107741841A (en) * 2017-09-26 2018-02-27 深圳市丰巢科技有限公司 A kind of method and system that express delivery cabinet volume is automatically adjusted according to ambient sound

Also Published As

Publication number Publication date
CN111324328A (en) 2020-06-23

Similar Documents

Publication Publication Date Title
EP3091537B1 (en) Noise cancellation for voice activation
US11056114B2 (en) Voice response interfacing with multiple smart devices of different types
US10917257B2 (en) Internet of things enabled device termination
US9124981B2 (en) Systems and methods for classification of audio environments
CN111324328B (en) Volume adjusting method and device
CN107402808B (en) Process management method, device, storage medium and electronic equipment
CN109391282B (en) Wearable device and information display method and device of wearable device
US20180097384A1 (en) Alternate alarm notifications based on battery condition
CN103760761A (en) Method and device for controlling alarm clock of terminal
CN111816178A (en) Voice equipment control method, device and equipment
WO2019227370A1 (en) Method, apparatus and system for controlling multiple voice assistants, and computer-readable storage medium
CN112349282A (en) Voice control system, voice processing method and external equipment
CN113848747A (en) Intelligent household equipment control method and device
CN113728294B (en) Power consumption control and scheme generation method, device, system and storage medium
US11164575B2 (en) Methods and systems for managing voice response systems to optimize responses
CN110958348B (en) Voice processing method and device, user equipment and intelligent sound box
CN108267962B (en) Control method and device
CN108595213A (en) The method, apparatus and electronic equipment of the threshold value of adjustable range sensor
CN111124512B (en) Awakening method, device, equipment and medium for intelligent equipment
CN108711427A (en) The acquisition method and device of voice messaging
CN109116978A (en) Light emitting device and its exchange method, electronic equipment, storage medium
CN113889109A (en) Method for adjusting voice wake-up mode, storage medium and electronic device
CN111885804A (en) Wireless remote control method and device for cabinet light and storable medium
CN103856535A (en) Method and device for obtaining user data
CN114187904A (en) Similarity threshold acquisition method, voice household appliance 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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100085 a521, 5th floor, block a, Huilongguan maker Plaza, 338 Huilongguan East Street, Changping District, Beijing

Patentee after: Yunding Network Technology (Beijing) Co.,Ltd.

Address before: 100085 a521, 5th floor, block a, Huilongguan maker Plaza, 338 Huilongguan East Street, Changping District, Beijing

Patentee before: YUN DING NETWORK TECHNOLOGY (BEIJING) Co.,Ltd.

CP01 Change in the name or title of a patent holder