CN112151025A - Volume adjusting method, device, equipment and storage medium - Google Patents

Volume adjusting method, device, equipment and storage medium Download PDF

Info

Publication number
CN112151025A
CN112151025A CN201910578929.5A CN201910578929A CN112151025A CN 112151025 A CN112151025 A CN 112151025A CN 201910578929 A CN201910578929 A CN 201910578929A CN 112151025 A CN112151025 A CN 112151025A
Authority
CN
China
Prior art keywords
volume
environmental noise
voice instruction
voice
acquiring
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
CN201910578929.5A
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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910578929.5A priority Critical patent/CN112151025A/en
Publication of CN112151025A publication Critical patent/CN112151025A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Abstract

The embodiment of the invention provides a volume adjusting method, a device, equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining environmental noise of an environment where the intelligent device is located, obtaining a first volume according to the environmental noise and a voice instruction when the voice instruction input by a user is obtained, and adjusting the volume of output voice of the intelligent device to the first volume. In the technical scheme, the output volume of the intelligent device is controlled according to the voice instruction and the environmental noise of the user, so that the output volume of the intelligent device is matched with the current situation, and the user experience is improved.

Description

Volume adjusting method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of voice interaction, in particular to a volume adjusting method, a device, equipment and a storage medium.
Background
With the rapid development of artificial intelligence technology, human-computer voice interaction makes a great progress, and intelligent equipment with a voice interaction function is favored by more and more users.
At present, when the user carries out human-computer interaction with smart machine, smart machine's report volume is the volume that last time set up, leads to current report volume to be not suitable for current situation, for example: too large or too small, thus requiring manual or voice adjustment by the user, resulting in poor user experience.
Disclosure of Invention
The embodiment of the invention provides a volume adjusting method, a volume adjusting device, volume adjusting equipment and a storage medium, which are used for adjusting volume according to environmental noise and a voice instruction of a user.
In a first aspect, an embodiment of the present invention provides a volume adjustment method, including:
acquiring environmental noise of the environment where the intelligent equipment is located;
when a voice instruction input by a user is obtained, obtaining a first volume according to the environmental noise and the voice instruction;
and adjusting the volume of the output voice of the intelligent equipment to the first volume.
Optionally, the obtaining a first volume according to the environmental noise and the voice instruction includes:
acquiring the volume of the voice instruction;
and if the volume of the voice command is larger than a first volume threshold value, acquiring the first volume according to the environmental noise.
Optionally, the obtaining the volume of the voice instruction includes:
acquiring an amplitude value of the voice command;
and calculating the volume of the voice instruction according to the amplitude value of the voice instruction.
Optionally, the obtaining the first volume according to the environmental noise includes:
acquiring an amplitude value of the environmental noise;
calculating the volume of the environmental noise according to the amplitude value of the environmental noise;
and acquiring a first volume corresponding to the volume of the environmental noise according to a first mapping relation, wherein the first mapping relation comprises the corresponding relation between the volume of the environmental noise and the first volume.
Optionally, the method further includes:
and if the volume of the voice instruction is smaller than a second volume threshold, acquiring a first volume corresponding to the volume of the voice instruction according to a second mapping relation, wherein the second mapping relation comprises the corresponding relation between the volume of the voice instruction and the first volume.
In a second aspect, an embodiment of the present invention provides a code generation apparatus, including:
the first acquisition module is used for acquiring the environmental noise of the environment where the intelligent equipment is located;
the first obtaining module is further configured to obtain a first volume according to the environmental noise and the voice instruction when the voice instruction input by the user is obtained;
and the adjusting module is used for adjusting the volume of the output voice of the intelligent equipment to the first volume.
Optionally, the first obtaining module is specifically configured to:
acquiring the volume of the voice instruction;
and if the volume of the voice command is larger than a first volume threshold value, acquiring the first volume according to the environmental noise.
Optionally, the first obtaining module is specifically configured to:
acquiring an amplitude value of the voice command;
and calculating the volume of the voice instruction according to the amplitude value of the voice instruction.
Optionally, the first obtaining module is specifically configured to:
acquiring an amplitude value of the environmental noise;
calculating the volume of the environmental noise according to the amplitude value of the environmental noise;
and acquiring a first volume corresponding to the volume of the environmental noise according to a first mapping relation, wherein the first mapping relation comprises the corresponding relation between the volume of the environmental noise and the first volume.
Optionally, the apparatus further comprises:
and the second obtaining module is used for obtaining a first volume corresponding to the volume of the voice instruction according to a second mapping relation if the volume of the voice instruction is smaller than a second volume threshold value, wherein the second mapping relation comprises the corresponding relation between the volume of the voice instruction and the first volume.
In a third aspect, an embodiment of the present invention provides an intelligent device, including:
a memory and a processor;
the memory for storing program code;
the processor is configured to call the program code to execute the volume adjusting method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a readable storage medium, on which a computer program is stored; when executed, the computer program implements a volume adjustment method according to an embodiment of the present invention in the first aspect.
The embodiment of the invention provides a volume adjusting method, a device, equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining environmental noise of an environment where the intelligent device is located, obtaining a first volume according to the environmental noise and a voice instruction when the voice instruction input by a user is obtained, and adjusting the volume of output voice of the intelligent device to the first volume. In the technical scheme, the output volume of the intelligent device is controlled according to the voice instruction and the environmental noise of the user, so that the output volume of the intelligent device is matched with the current situation, and the user experience is improved.
Drawings
Fig. 1 is a schematic view of a scene of volume adjustment according to an embodiment of the present invention;
fig. 2 is a flowchart of a volume adjustment method according to an embodiment of the present invention;
fig. 3 is a flowchart of a volume adjustment method according to another embodiment of the invention;
fig. 4 is a schematic structural diagram of a volume adjustment device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a volume adjustment device according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an intelligent device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a scene schematic diagram of volume adjustment according to an embodiment of the present invention, and as shown in fig. 1, the volume adjustment method according to the embodiment of the present invention may be applied to an intelligent device, where the intelligent device may be a smart phone, a smart sound box, a smart robot, and the like, and this embodiment is not limited thereto.
At present, when the user carries out human-computer interaction with smart machine, smart machine's the volume of reporting the volume for setting up last time, for example, the user is when using smart machine the day before, because the service environment is loud at that time, with smart machine's volume control's than higher, when this smart machine is used again the next day, report the volume unanimous with the volume of day before, however, because current quieter, adopt last report volume can make the user feel harsh, therefore, need the manual or pronunciation of user to adjust, lead to user experience not good like this.
To address this problem, an embodiment of the present invention provides a volume adjustment method, where the method includes: the method comprises the steps of obtaining environmental noise of an environment where the intelligent device is located, obtaining a first volume according to the environmental noise and a voice instruction when the voice instruction input by a user is obtained, and adjusting the volume of output voice of the intelligent device to the first volume. In the technical scheme, the output volume of the intelligent device is controlled according to the voice instruction and the environmental noise of the user, so that the output volume of the intelligent device is matched with the current situation, and the user experience is improved.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a flowchart of a volume adjustment method according to an embodiment of the present invention, where the method may be performed by any device that performs the volume adjustment method, and the device may be implemented by software and/or hardware. In this embodiment, the apparatus may be integrated in an intelligent device. As shown in fig. 2, the method comprises the steps of:
s101, obtaining environmental noise of the environment where the intelligent equipment is located.
In general, the ambient noise of the environment where the smart device is located is not constant, but may be increased or decreased as time goes by, and therefore, S101 may include: and acquiring the environmental noise of the environment where the intelligent equipment is located within the first preset time. The starting point of the first preset duration may be a starting time of the intelligent device, and the ending point of the first preset duration may be a time when the voice instruction input by the user is acquired.
Exemplarily, the smart device is provided with an ambient noise collection Application program (Application), and after the smart device is started, the ambient noise collection App is started, and the user authorizes the smart device to allow the ambient noise collection authority to be opened and start to collect the ambient noise. Correspondingly, the intelligent device acquires the environmental noise in real time until the voice command input by the user is acquired.
Optionally, the intelligent device has a positioning function, and when it is detected that the position of the intelligent device changes, the acquisition of the environmental noise is restarted, that is, the environmental noise acquired from the start-up time is cleared, and the environmental noise is acquired from a new position, so that the starting point of the first preset time duration is the time when the intelligent device is located at the new position. Therefore, the introduction of environmental noise of other environments is avoided, and the output volume of the intelligent device is not matched with the current environment.
S102, when a voice instruction input by a user is obtained, a first volume is obtained according to the environmental noise and the voice instruction.
In this embodiment, the smart device is installed with a voice collection Application program (App), and after the smart device is started, the voice App is started, and the user authorization allows the voice collection permission to be opened, so that a voice instruction input by the user can be acquired. In the man-machine voice interaction process, a user generally inputs a voice instruction to the intelligent device, for example, "how to look like today", "play blue and white porcelain", "call to queen, and the intelligent device can broadcast corresponding voice according to the voice instruction.
When a voice instruction input by a user is obtained, the volume of the environmental noise and the volume of the voice instruction can be obtained, and a first volume is obtained according to the volume of the environmental noise and the volume of the voice instruction, wherein the first volume is the volume of output voice of the intelligent device, and the output voice comprises response voice corresponding to the voice instruction. The first volume is audible to the user and does not cause discomfort such as harsh to the user.
S103, adjusting the volume of the output voice of the intelligent device to a first volume.
After the first volume is acquired, the volume of the output voice of the intelligent device is adjusted to the first volume, so that a user can hear the output voice and does not feel uncomfortable, and the user experience is improved.
Optionally, the method further includes:
and S104, when the voice command input by the user is not acquired, acquiring a first volume according to the environmental noise.
In the practical application process, the intelligent device can be used for reminding important events, such as an alarm clock, in the prior art, the volume of the reminding voice also depends on the last set volume, for example, the last set volume is larger, and in the early morning, the large volume can make people feel uncomfortable. Therefore, in this embodiment, when the voice instruction to be input by the user is not acquired, the first volume may also be acquired according to the ambient noise, where the first volume is a volume of the output voice of the smart device, and the output voice includes a preset reminding voice.
Optionally, the method includes acquiring, when the intelligent device is powered on, the ambient noise of the environment where the intelligent device is located, and then the voice instruction input by the user is not acquired, acquiring a first volume according to the ambient noise, and including:
when a voice instruction input by a user is not obtained, the volume of the reminding voice is obtained according to the environmental noise of a second preset time length, wherein the end point of the second preset time length is the playing time of the reminding voice, and the starting point of the second preset time length is the time which is different from the playing time of the reminding voice by a preset time interval, namely the time which is preset from the playing time of the reminding voice to the front of the preset time interval.
For a specific implementation of obtaining the first volume according to the ambient noise, refer to the embodiment in fig. 3, which is not described herein again, and then execute step S103.
The volume adjusting method provided by the embodiment comprises the following steps: the method comprises the steps of obtaining environmental noise of the environment where the intelligent device is located, obtaining first volume according to the environmental noise and a voice instruction when the voice instruction input by a user is obtained, and adjusting the volume of output voice of the intelligent device to the first volume. In the technical scheme, the output volume of the intelligent device is controlled according to the voice instruction and the environmental noise of the user, so that the output volume of the intelligent device is matched with the current situation, and the user experience is improved.
On the basis of the foregoing embodiment, fig. 3 is a flowchart of a volume adjusting method according to another embodiment of the present invention, and as shown in fig. 3, the foregoing S102 may be implemented by the following steps:
s201, obtaining the volume of the voice command.
Wherein, the volume of the voice command is expressed in decibel (dB). In this embodiment, the smart device may have a volume detection function, and after the voice instruction is obtained, the volume of the voice instruction may be directly obtained.
Optionally, step S201 specifically includes:
a1: and acquiring an amplitude value of the voice command.
In this embodiment, an amplitude calculation method in the multimedia recording media recorder is called to obtain an amplitude value of the voice command, where the amplitude value of the voice command is an amplitude maximum value or an amplitude average value.
A2: and calculating the volume of the voice command according to the amplitude value of the voice command.
The volume of the voice command is calculated by formula (1):
Figure BDA0002112662850000061
wherein L isdBVolume of the voice command, A1Amplitude value of speech command, A0Is a reference amplitude value, A0For example, it may be set to 1, which indicates the minimum sound amplitude that the smart device can obtain.
S202, if the volume of the voice command is larger than a first volume threshold value, acquiring a first volume according to the environmental noise.
In this embodiment, if the volume of the voice command is greater than the first volume threshold, the first volume is obtained according to the environmental noise, so that the user can hear the output voice of the smart device, and the first volume threshold may be selected according to an actual situation, which is not particularly limited in this embodiment.
Step S202 specifically includes:
b1: and acquiring an amplitude value of the environmental noise.
In this embodiment, the amplitude value of the ambient noise may be a maximum amplitude value within a first preset time period or an average amplitude value within the first preset time period, and an amplitude calculation method in the multimedia recording media recorder may be called to obtain the amplitude value of the ambient noise.
B2: and calculating the volume of the environmental noise according to the amplitude value of the environmental noise.
Specifically, the volume of the ambient noise is calculated by formula (1), wherein LdBSubstituting the amplitude value of the environmental noise into A for the volume of the environmental noise1,A0The reference amplitude value may be set to 1, for example, and represents the minimum sound amplitude that can be obtained by the smart device.
And B3, acquiring a first volume corresponding to the volume of the environmental noise according to the first mapping relation.
In this embodiment, the first mapping relationship includes a corresponding relationship between the volume of the ambient noise and the first volume, and the first mapping relationship is queried to obtain the first volume corresponding to the volume of the ambient noise, where the first volume is audible to the user and does not cause discomfort to the user.
Illustratively, the first mapping relationship is stored in a table form, and table 1 is a schematic diagram of the first mapping relationship.
TABLE 1
Volume of ambient noise (Unit dB) DETAILED DESCRIPTIONS A first volume
0-20 The environment is quiet, and fallen leaves can be heard Volume greater than ambient noise and not more than 20dB
20-40 Quiet environment, can hear light sound whistling Volume greater than ambient noise and not more than 40dB
40-60 With general noise, can hear normal indoor conversation Volume greater than ambient noise and not more than 60dB
60-70 Loud environment and long-term impaired hearing nerves Volume greater than ambient noise and not more than 70dB
>70 Abnormal noisy environment and long-term impaired hearing nerves Not less than 70dB
As shown in table 1, according to the first mapping relationship, a first volume corresponding to the ambient noise can be obtained, for example, if the volume of the voice command is greater than the first volume threshold, the volume of the ambient noise is 30dB, and according to the first mapping relationship, it is determined that the first volume is greater than 30dB and not greater than 40dB, for example, 35 dB.
Optionally, the method further includes:
s203, if the volume of the voice command is smaller than the second volume threshold, acquiring a first volume corresponding to the volume of the voice command according to the second mapping relation.
In practical application, if the voice command is smaller than the second volume threshold, it is indicated that the user speaks at a low level, for example, when someone sleeps, the first volume corresponding to the volume of the voice command is obtained according to the second mapping relationship, where the second mapping relationship includes a corresponding relationship between the volume of the voice command and the first volume, and if the first volume is determined according to the environmental noise, the obtained first volume may be relatively high, which may affect user experience. The first volume threshold may be selected according to actual situations, and this embodiment is not particularly limited.
Illustratively, the second mapping relationship is stored in a table form, and table 2 is a schematic diagram of the second mapping relationship.
TABLE 2
Volume of voice command (Unit dB) DETAILED DESCRIPTIONS A first volume
0-20 The user is speaking with a very low volume, such as whisper, volume greater than ambient noise and not more than 20dB
20-40 The user speaking at a lower volume, e.g. in a quiet office Volume greater than ambient noise and not more than 40dB
40-60 The user speaking at normal volume, e.g. in the office Volume greater than ambient noise and not more than 60dB
60-70 The user speaking with a very high volume, e.g. outdoors Volume greater than ambient noise and not more than 70dB
>70 The user is speaking with a super loud volume, e.g. shouting a person at a distance in a factory building Not less than 70dB
For example, if the volume of the voice command is less than the second volume threshold, the volume of the voice command is 50dB, and the first volume is determined to be greater than 50dB and not greater than 60dB according to the second mapping relationship, for example, the first volume is 55 dB.
Illustratively, the first volume threshold may be 60dB, that is, when the volume of the voice command is greater than 60dB, the first volume is obtained according to the ambient noise; the second volume threshold may be 40dB, that is, when the volume of the voice command is less than 40dB, the first volume corresponding to the volume of the voice command is obtained according to the second mapping relationship.
Further, if the volume of the voice command is between the first volume threshold and the second volume threshold, that is, if the volume is greater than 40dB and less than 60dB, indicating that the voice of the user is normal and the ambient noise is normal, the first volume may be determined according to the voice command or the ambient noise, and the first volume may be calculated by the above formula (1).
The volume adjusting method provided by the embodiment comprises the following steps: and acquiring the volume of the voice command, acquiring the first volume according to the environmental noise if the volume of the voice command is larger than a first volume threshold, and acquiring the first volume corresponding to the volume of the voice command according to the second mapping relation if the volume of the voice command is smaller than a second volume threshold. According to the voice instruction and the environmental noise of the user, the output volume of the intelligent device is controlled, so that the output volume of the intelligent device is matched with the current situation, and the user experience is improved.
Fig. 4 is a schematic structural diagram of a volume adjustment device according to an embodiment of the present invention, as shown in fig. 4. The volume adjustment device 40 provided in the present embodiment includes:
a first obtaining module 41, configured to obtain an environmental noise of an environment where the smart device is located;
the first obtaining module 41 is further configured to, when a voice instruction input by a user is obtained, obtain a first volume according to the environmental noise and the voice instruction;
and the adjusting module 42 is configured to adjust the volume of the output voice of the smart device to the first volume.
Optionally, the first obtaining module 41 is specifically configured to:
acquiring the volume of the voice instruction;
and if the volume of the voice command is larger than a first volume threshold value, acquiring the first volume according to the environmental noise.
Optionally, the first obtaining module 41 is specifically configured to:
acquiring an amplitude value of the voice command;
and calculating the volume of the voice instruction according to the amplitude value of the voice instruction.
Optionally, the first obtaining module 41 is specifically configured to:
acquiring an amplitude value of the environmental noise;
calculating the volume of the environmental noise according to the amplitude value of the environmental noise;
and acquiring a first volume corresponding to the volume of the environmental noise according to a first mapping relation, wherein the first mapping relation comprises the corresponding relation between the volume of the environmental noise and the first volume.
The volume adjustment device of this embodiment may be configured to implement the technical solutions in the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of a volume adjustment device according to another embodiment of the present invention, and as shown in fig. 5, the device 40 further includes:
a second obtaining module 43, configured to obtain, according to a second mapping relationship if the volume of the voice instruction is smaller than a second volume threshold, a first volume corresponding to the volume of the voice instruction, where the second mapping relationship includes a correspondence relationship between the volume of the voice instruction and the first volume.
The volume adjustment device of this embodiment may be configured to implement the technical solutions in the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 6 is a schematic structural diagram of an intelligent device according to an embodiment of the present invention, and as shown in fig. 6, the intelligent device 50 according to this embodiment may include: a memory 51 and a processor 52. The memory 51 and the processor 52 may be connected via a bus 53, for example.
The memory 51 for storing program codes;
the processor 52 is configured to implement the code generation method provided in any implementation manner of the foregoing method embodiments by executing the computer program.
The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the volume adjustment method provided in any of the implementations of the method embodiments described above.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an ExtEnded ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. A volume adjusting method is applied to intelligent equipment and comprises the following steps:
acquiring environmental noise of the environment where the intelligent equipment is located;
when a voice instruction input by a user is obtained, obtaining a first volume according to the environmental noise and the voice instruction;
and adjusting the volume of the output voice of the intelligent equipment to the first volume.
2. The method of claim 1, wherein obtaining a first volume based on the ambient noise and the voice command comprises:
acquiring the volume of the voice instruction;
and if the volume of the voice command is larger than a first volume threshold value, acquiring the first volume according to the environmental noise.
3. The method of claim 2, wherein obtaining the volume of the voice instruction comprises:
acquiring an amplitude value of the voice command;
and calculating the volume of the voice instruction according to the amplitude value of the voice instruction.
4. The method of claim 2, wherein said deriving the first volume based on the ambient noise comprises:
acquiring an amplitude value of the environmental noise;
calculating the volume of the environmental noise according to the amplitude value of the environmental noise;
and acquiring a first volume corresponding to the volume of the environmental noise according to a first mapping relation, wherein the first mapping relation comprises the corresponding relation between the volume of the environmental noise and the first volume.
5. The method of claim 2, further comprising:
and if the volume of the voice instruction is smaller than a second volume threshold, acquiring a first volume corresponding to the volume of the voice instruction according to a second mapping relation, wherein the second mapping relation comprises the corresponding relation between the volume of the voice instruction and the first volume.
6. A volume adjustment device, comprising:
the first acquisition module is used for acquiring the environmental noise of the environment where the intelligent equipment is located;
the first obtaining module is further configured to obtain a first volume according to the environmental noise and the voice instruction when the voice instruction input by the user is obtained;
and the adjusting module is used for adjusting the volume of the output voice of the intelligent equipment to the first volume.
7. The apparatus of claim 6, wherein the first obtaining module is specifically configured to:
acquiring the volume of the voice instruction;
and if the volume of the voice command is larger than a first volume threshold value, acquiring the first volume according to the environmental noise.
8. The apparatus of claim 7, wherein the first obtaining module is specifically configured to:
acquiring an amplitude value of the voice command;
and calculating the volume of the voice instruction according to the amplitude value of the voice instruction.
9. The apparatus of claim 7, wherein the first obtaining module is specifically configured to:
acquiring an amplitude value of the environmental noise;
calculating the volume of the environmental noise according to the amplitude value of the environmental noise;
and acquiring a first volume corresponding to the volume of the environmental noise according to a first mapping relation, wherein the first mapping relation comprises the corresponding relation between the volume of the environmental noise and the first volume.
10. The apparatus of claim 7, further comprising:
and the second obtaining module is used for obtaining a first volume corresponding to the volume of the voice instruction according to a second mapping relation if the volume of the voice instruction is smaller than a second volume threshold value, wherein the second mapping relation comprises the corresponding relation between the volume of the voice instruction and the first volume.
11. A smart device, comprising: a memory and a processor;
the memory for storing program code;
the processor is used for calling the program codes to execute the volume adjusting method according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program; the computer program, when executed, implements a volume adjustment method as claimed in any one of claims 1-5.
CN201910578929.5A 2019-06-28 2019-06-28 Volume adjusting method, device, equipment and storage medium Pending CN112151025A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910578929.5A CN112151025A (en) 2019-06-28 2019-06-28 Volume adjusting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910578929.5A CN112151025A (en) 2019-06-28 2019-06-28 Volume adjusting method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112151025A true CN112151025A (en) 2020-12-29

Family

ID=73891190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910578929.5A Pending CN112151025A (en) 2019-06-28 2019-06-28 Volume adjusting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112151025A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827337A (en) * 2021-01-19 2022-07-29 博泰车联网(南京)有限公司 Volume adjustment method, device, equipment and storage medium

Citations (8)

* 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
CN103945062A (en) * 2014-04-16 2014-07-23 华为技术有限公司 User terminal volume adjusting method, device and terminal
CN103973863A (en) * 2014-05-30 2014-08-06 深圳市中兴移动通信有限公司 Method for automatically adjusting call volume and communication terminal
CN104572009A (en) * 2015-01-28 2015-04-29 合肥联宝信息技术有限公司 External environment adaptive audio control method and device
CN107145327A (en) * 2017-04-10 2017-09-08 北京猎户星空科技有限公司 A kind of audio frequency playing method, device and smart machine
CN107580272A (en) * 2017-07-17 2018-01-12 成都华科威电子科技有限公司 A kind of vehicle audio broadcast sound volume Automatic adjustment method
CN108681440A (en) * 2018-04-03 2018-10-19 百度在线网络技术(北京)有限公司 A kind of smart machine method for controlling volume and system
CN109074808A (en) * 2018-07-18 2018-12-21 深圳魔耳智能声学科技有限公司 Sound control method, control device and storage medium

Patent Citations (8)

* 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
CN103945062A (en) * 2014-04-16 2014-07-23 华为技术有限公司 User terminal volume adjusting method, device and terminal
CN103973863A (en) * 2014-05-30 2014-08-06 深圳市中兴移动通信有限公司 Method for automatically adjusting call volume and communication terminal
CN104572009A (en) * 2015-01-28 2015-04-29 合肥联宝信息技术有限公司 External environment adaptive audio control method and device
CN107145327A (en) * 2017-04-10 2017-09-08 北京猎户星空科技有限公司 A kind of audio frequency playing method, device and smart machine
CN107580272A (en) * 2017-07-17 2018-01-12 成都华科威电子科技有限公司 A kind of vehicle audio broadcast sound volume Automatic adjustment method
CN108681440A (en) * 2018-04-03 2018-10-19 百度在线网络技术(北京)有限公司 A kind of smart machine method for controlling volume and system
CN109074808A (en) * 2018-07-18 2018-12-21 深圳魔耳智能声学科技有限公司 Sound control method, control device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827337A (en) * 2021-01-19 2022-07-29 博泰车联网(南京)有限公司 Volume adjustment method, device, equipment and storage medium
CN114827337B (en) * 2021-01-19 2023-08-18 博泰车联网(南京)有限公司 Method, device, equipment and storage medium for adjusting volume

Similar Documents

Publication Publication Date Title
US11068235B2 (en) Volume adjustment method, terminal device, storage medium and electronic device
CN106502618B (en) Hearing protection method and device
CN104410379A (en) A volume adjusting method
CN108335700B (en) Voice adjusting method and device, voice interaction equipment and storage medium
CN110677776B (en) Volume adjusting method and device, intelligent sound box and storage medium
CN110677717B (en) Audio compensation method, smart television and storage medium
CN104780259A (en) Automatic adjustment system and method for call voice quality
CN110806849A (en) Intelligent device, volume adjusting method thereof and computer-readable storage medium
CN106791067A (en) A kind of In Call adjusting method, device and mobile terminal
CN110827792B (en) Voice broadcasting method and device
CN104363510A (en) Terminal
CN111258532A (en) Volume adaptive adjustment method and device, storage medium and electronic equipment
CN107566618A (en) volume adjusting method, device, terminal device and storage medium
CN105744045A (en) System and method of adjusting ring tone volume
CN107547732A (en) A kind of media play volume adjusting method, device, terminal and storage medium
CN110677774A (en) Volume self-adaptive adjusting method and device, computer equipment and storage medium
CN112151025A (en) Volume adjusting method, device, equipment and storage medium
CN113422866B (en) Volume adjusting method and device, storage medium and electronic equipment
CN1929298B (en) Audio frequency processing system and method
US11501625B2 (en) Reminder method and apparatus and electronic device
CN109584877B (en) Voice interaction control method and device
CN115375518A (en) Abnormal paging method and related device
CN112781185A (en) Air conditioner, control method thereof, and computer-readable storage medium
CN113077803B (en) Voice processing method and device, readable storage medium and electronic equipment
CN104091399A (en) Intelligent doorbell

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