[go: up one dir, main page]

CN109471608A - A kind of method of adjustment and device of volume - Google Patents

A kind of method of adjustment and device of volume Download PDF

Info

Publication number
CN109471608A
CN109471608A CN201811286406.5A CN201811286406A CN109471608A CN 109471608 A CN109471608 A CN 109471608A CN 201811286406 A CN201811286406 A CN 201811286406A CN 109471608 A CN109471608 A CN 109471608A
Authority
CN
China
Prior art keywords
volume value
volume
playing
terminal device
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.)
Pending
Application number
CN201811286406.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.)
Beijing Yushanzhi Information Technology Co Ltd
Original Assignee
Beijing Yushanzhi Information 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 Yushanzhi Information Technology Co Ltd filed Critical Beijing Yushanzhi Information Technology Co Ltd
Priority to CN201811286406.5A priority Critical patent/CN109471608A/en
Publication of CN109471608A publication Critical patent/CN109471608A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention discloses a kind of method of adjustment of volume and devices, it is related to technical field of data processing, the method of the embodiment of the present invention includes: to obtain the distance between each terminal device and target object respectively when monitoring that target object position changes and extract broadcast sound volume value corresponding with each terminal device from initialized data base according to the distance;According to the corresponding broadcast sound volume value of each terminal device, the synthesis volume value that all terminal devices are formed is calculated;The comprehensive volume value is detected whether within the scope of default volume value;If so, adjusting each terminal device according to the broadcast sound volume value.Terminal device broadcast sound volume value can dynamically be adjusted when the user is mobile so that the volume value that user receives is stablized by realizing.

Description

Volume adjusting method and device
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a volume adjusting method and device.
Background
With the continuous development of scientific technology, electronic devices, household appliances and the like are increasingly integrated into various scenes in life, for example, people can play programs through a television or play music through a sound system and the like when doing housework. Generally, in order to enhance the stereo surround effect of sound, some users place a plurality of electronic devices and/or audios indoors and play selected contents simultaneously to improve the effect of sound playing.
The inventor finds that, in the process of implementing the embodiment of the present invention, there are technical problems in the prior art that, when a user uses a plurality of devices and/or stereos to play video or music, when the user moves, the playing volume of the device and/or stereos that are closer to the user is larger, and the playing of the device and/or stereos that are farther from the user is smaller, so that the volume received by the user is suddenly smaller, and if it is necessary to ensure that the received volume value is stable, the user is required to manually adjust the volume of each device and/or stereos, so that the volume adjustment operation is abnormally complicated, and user experience is affected.
Disclosure of Invention
In view of the foregoing problems, embodiments of the present invention provide a method and an apparatus for adjusting a volume, and mainly aim to dynamically adjust the playing volumes of a plurality of terminal devices according to different locations where a user is located, so that the volume received by the user is stable.
In order to solve the above technical problem, in a first aspect, an embodiment of the present invention provides a method for adjusting a volume, where the method includes:
when the position of a target object is monitored to be changed, the distance between each terminal device and the target object is respectively obtained, playing volume values respectively corresponding to the terminal devices are extracted from a preset database according to the distance, and the preset database stores the playing volume values corresponding to the terminal devices at different distances from the target object;
calculating a comprehensive volume value formed by all the terminal equipment according to the playing volume values respectively corresponding to the terminal equipment;
detecting whether the comprehensive volume value is within a preset volume value range;
and if so, adjusting each terminal device according to the playing volume value.
Optionally, the method further includes:
if the comprehensive volume value is not in the preset volume value range, calculating a volume difference value between the comprehensive volume value and a boundary volume value of the preset volume value range;
and adjusting the playing volume value of the terminal equipment according to the volume difference value and adjusting each terminal equipment by using the adjusted playing volume value so that the comprehensive volume value is in the preset volume value range.
Optionally, the adjusting the playing volume value of the terminal device according to the volume difference includes:
determining a first terminal device closest to the target object according to the distance;
and correcting the playing volume value of the first terminal device according to the volume difference value.
Optionally, after the distances between the terminal devices and the target object are respectively obtained, the method further includes:
detecting whether the distance exceeds a preset distance threshold value;
if so, marking the terminal equipment as invalid terminal equipment, otherwise, marking the terminal equipment as valid terminal equipment;
the extracting, from a preset database according to the distance, the play volume values respectively corresponding to the terminal devices includes:
and extracting playing volume values respectively corresponding to the effective terminal equipment from a preset database according to the distance.
Optionally, the calculating, according to the playing volume values respectively corresponding to the terminal devices, a comprehensive volume value formed by all the terminal devices includes:
adding the playing volume values of the terminal devices and determining the volume value obtained after the addition as the comprehensive volume value; or
And calculating the comprehensive volume value according to a weighting coefficient and the playing volume value of each terminal device, wherein the weighting coefficient is determined by at least the distance and the angle between each terminal device and the target object.
In a second aspect, an embodiment of the present invention further provides a device for adjusting a volume, where the device includes:
the acquisition unit is used for respectively acquiring the distance between each terminal device and the target object and extracting the playing volume value respectively corresponding to each terminal device from a preset database according to the distance when the position of the target object is monitored to change, wherein the preset database stores the playing volume values corresponding to the terminal devices at different distances from the target object;
the computing unit is used for computing a comprehensive volume value formed by all the terminal equipment according to the playing volume values respectively corresponding to the terminal equipment;
the detection unit is used for detecting whether the comprehensive volume value is within a preset volume value range or not;
and the adjusting unit is used for adjusting each terminal device according to the playing volume value if the comprehensive volume value is within a preset volume value range.
Optionally, the apparatus further comprises: an adjustment unit for adjusting the position of the optical element,
the calculation unit is further configured to calculate a volume difference between the integrated volume value and a boundary volume value of the preset volume value range if the integrated volume value is not within the preset volume value range;
and the adjusting unit is used for adjusting the playing volume value of the terminal equipment according to the volume difference value and adjusting each terminal equipment by using the adjusted playing volume value so as to enable the comprehensive volume value to be within the preset volume value range.
Optionally, the adjusting unit includes:
the determining module is used for determining a first terminal device closest to the target object according to the distance;
and the correction module is used for correcting the playing volume value of the first terminal device according to the volume difference value.
Optionally, the apparatus further comprises: the unit of the mark is provided with a marking unit,
the detection unit is further used for detecting whether the distance exceeds a preset distance threshold value;
the marking unit is used for marking the terminal equipment as invalid terminal equipment if the distance exceeds a preset distance threshold value, otherwise, marking the terminal equipment as valid terminal equipment;
and the extracting unit is specifically configured to extract, from a preset database, the playing volume values respectively corresponding to the valid terminal devices according to the distances.
Optionally, the computing unit includes:
the adding module is used for adding the playing volume values of the terminal devices;
a determining module, configured to determine the added volume value as the comprehensive volume value;
and the calculation module is used for calculating the comprehensive volume value according to a weighting coefficient and the playing volume value of each terminal device, wherein the weighting coefficient is determined by at least the distance and the angle between each terminal device and the target object.
In order to achieve the above object, according to a third aspect of the embodiments of the present invention, there is provided a storage medium including a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the above volume adjusting method.
In order to achieve the above object, according to a fourth aspect of the embodiments of the present invention, there is provided a processor for executing a program, wherein the program executes the method for adjusting the volume.
By the technical scheme, the volume adjusting method and the volume adjusting device provided by the embodiment of the invention can only manually adjust the playing volume value of each terminal device to enable the volume value received by the user to be stable when a plurality of devices are used for playing sound and the position of the user moves in the prior art, respectively obtain the distance between each started terminal device and the user when the user moves, extract the playing volume value respectively corresponding to each terminal device from the preset database according to the distance, then calculate the comprehensive volume value formed by all the terminal devices according to the playing volume value respectively corresponding to each terminal device, detect whether the comprehensive volume value is in the preset volume value range, and adjust each terminal device according to the extracted playing volume value if the comprehensive volume value is in the preset volume value range, so compared with the prior art, according to the embodiment of the invention, the volume value of each terminal device can be adjusted according to the distance between the terminal device and the user, so that the volume value received by the user is stable, the problem of complicated operation caused by the fact that the user needs to manually adjust the volume value of the device when the position is changed every time is solved, the volume adjusting operation of the device is simplified, and the user experience is improved.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and the embodiments of the present invention can be implemented according to the content of the description in order to make the technical means of the embodiments of the present invention more clearly understood, and the detailed description of the embodiments of the present invention is provided below in order to make the foregoing and other objects, features, and advantages of the embodiments 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 embodiments of the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flow chart of a method for adjusting volume according to an embodiment of the present invention;
fig. 2 is a flow chart of another volume adjustment method provided by the embodiment of the invention;
fig. 3 is a block diagram illustrating a volume adjusting apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram showing another volume adjusting apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating a volume adjusting electronic device 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.
In order to simplify the operation of manually adjusting the volume of the device by dynamically adjusting the volume values of the plurality of terminal devices when the movement of the user is monitored so that the total volume value is stable, an embodiment of the present invention provides a volume adjusting method, as shown in fig. 1, the method includes:
101. when the position of the target object is monitored to be changed, the distance between each terminal device and the target object is respectively obtained, and playing volume values respectively corresponding to the terminal devices are extracted from a preset database according to the distances.
And the preset database stores corresponding playing volume values of the terminal equipment when the terminal equipment is at different distances from the target object. The terminal devices may be a mobile phone, a television, a sound device, and the like, and it should be noted that, in the embodiment of the present invention, a plurality of terminal devices may be associated in advance, and specifically, may be associated by logging in the same user account, or may be connected by bluetooth or a wireless local area network, so that when a plurality of terminal devices are started simultaneously, the playing volume of the device may be coordinately controlled.
Specifically, in this step, the distance between the terminal device and the target object may be obtained by configuring a distance sensor in the terminal device and acquiring the distance between the device and the user through the distance sensor, or by configuring a camera in the terminal device, acquiring an image of the user through the camera and calculating the distance between the device and the user, or by using an indoor positioning technology based on network positioning, bluetooth positioning, and the like in the prior art, which is not described in detail in the embodiments of the present invention.
Further, for the embodiment of the present invention, a one-to-one correspondence between the distance from the user to the terminal device and the device playing volume value may be stored in the database in advance, so that when the distance between the terminal device and the user changes, the corresponding playing volume value may be directly extracted according to the correspondence, so as to facilitate adjustment when the distance between the user and the device changes, so as to stabilize the volume value received by the user.
The execution main body of the embodiment of the invention can be a device configured in any terminal equipment or an independent device for controlling equipment and used for adjusting the playing volume, when the device monitors that the position of a user changes, the device triggers and acquires the distance between each terminal equipment and a target object, and extracts the playing volume value corresponding to each terminal equipment according to the corresponding relation between the preset distance and the playing volume.
102. And calculating a comprehensive volume value formed by all the terminal equipment according to the playing volume values respectively corresponding to the terminal equipment.
Specifically, in this step, the playing volume values of the terminal devices extracted in the previous step may be added to obtain a comprehensive volume value in this step, or an angle between each terminal device and the target object may be further obtained, a corresponding weighting coefficient is obtained according to the angle and the distance, and the comprehensive volume value in this step is obtained by using the weighting coefficient of each terminal device and the extracted playing volume value.
103. And detecting whether the comprehensive volume value is within a preset volume value range.
The preset volume value range can be set by a user according to personal requirements, and the volume value range set by the user is stored as the preset volume value range in the step, and can also be a proper playing volume value range which is self-defined by equipment and is beneficial to protecting the hearing of the user. Specifically, the step may be to call a preset detection function, and detect whether the integrated volume value calculated in the above step is within a preset volume value range.
104. And if so, adjusting each terminal device according to the playing volume value.
Specifically, the adjustment control may be performed by calling a preset function for adjusting the volume value, or the adjustment of the device volume may be realized by calling a preset interface, which is not specifically limited in the embodiment of the present invention.
It should be noted that the specific implementation manner provided in the embodiment of the present invention may also be applied to dynamic adjustment of air conditioner temperature, dynamic adjustment of fan wind speed, and the like, and is not limited to dynamic adjustment of device volume, for example, when the implementation manner is applied to dynamic adjustment of air conditioner temperature, when it is monitored that a user moves, a distance between an air conditioner and a user may be obtained, and adjustment control of air conditioner temperature may be triggered.
The volume adjusting method provided by the embodiment of the invention has the advantages that for the prior art that when a plurality of devices are used for playing sound simultaneously and the position of a user moves, the playing volume value of each terminal device can be adjusted manually only so as to enable the volume value received by the user to be stable, when the user moves, the distance between each started terminal device and the user is obtained respectively, the playing volume value corresponding to each terminal device is extracted from a preset database according to the distance, then the comprehensive volume value formed by all the terminal devices is calculated according to the playing volume value corresponding to each terminal device, whether the comprehensive volume value is extracted in the preset volume value range is detected, and if the comprehensive volume value is in the preset volume value range, each terminal device is adjusted according to the playing volume value, so that compared with the prior art, the volume adjusting method provided by the embodiment of the invention can adjust the volume value of each terminal device according to the distance between the terminal device and the user so as to enable the volume value received by the user to be stable The volume value received by the user is stable, the problem of complex operation caused by the fact that the user needs to manually adjust the volume value of the equipment when the position is changed at every time is solved, the volume adjustment operation of the equipment is simplified, and therefore the user experience is improved.
Further, as a refinement and an extension of the embodiment shown in fig. 1, another volume adjustment method is provided in the embodiment of the present invention, as shown in fig. 2.
201. When the position of the target object is monitored to be changed, the distance between each terminal device and the target object is respectively obtained, and playing volume values respectively corresponding to the terminal devices are extracted from a preset database according to the distances.
And the preset database stores corresponding playing volume values of the terminal equipment when the terminal equipment is at different distances from the target object. The conceptual explanation of the terminal device in this step and the specific implementation of this step may refer to the corresponding description in step 101, and are not repeated herein.
For the embodiment of the present invention, before the step 201, the method may further include: detecting whether the distance exceeds a preset distance threshold value; if so, marking the terminal equipment as invalid terminal equipment, otherwise, marking the terminal equipment as valid terminal equipment. In this case, the step may specifically include: and extracting playing volume values respectively corresponding to the effective terminal equipment from a preset database according to the distance. It should be noted that, when the user is far enough away from the terminal device, even if the playing volume value of the terminal device is the maximum, the user still cannot receive the playing content of the terminal device, so that the device may be marked as an invalid device, and the invalid device may be set to pause playing or the playing volume value may be set to the minimum value, so as to avoid the problem of resource waste caused by the fact that the user cannot receive the playing content but the invalid device plays, thereby improving the resource utilization rate.
It should be noted that, in order to ensure that the volume value received by the user is always stable within a volume value range, for different numbers of terminal devices, even if the distance from the user is the same, the playing volume values corresponding to the respective terminal devices may be different, so that the playing volume values corresponding to different numbers of terminal devices may be stored in the database. For example, if 3 associated terminal devices are simultaneously turned on and play synchronously, the play volume value data table corresponding to the device number of 3 is extracted as shown in table 1 below. When a user moves in a space where the equipment is arranged, each piece of equipment collects and uploads the distances between the equipment and the user according to a built-in distance sensor of the equipment, wherein the distances are respectively 5 m, 1.2 m and 0.5 m, after the server receives the distances uploaded by each piece of equipment, the server detects that the distance between the equipment 1 which is 5 m away from the user and the user exceeds a preset threshold value, the equipment is marked as invalid equipment, the playing volume of the equipment is set to be 0, and meanwhile, playing volume values which respectively correspond to each piece of terminal equipment are extracted from a data table and are 30 decibels and 10 decibels.
TABLE 1
Distance between device and target object Playing volume value
4.5~5 60 decibel
3~4.5 50 decibel
1~3 30 decibel
<1 10 decibel
202. And calculating a comprehensive volume value formed by all the terminal equipment according to the playing volume values respectively corresponding to the terminal equipment.
For the embodiment of the present invention, the step 202 may include: adding the playing volume values of the terminal devices and determining the volume value obtained after the addition as the comprehensive volume value; or, calculating the comprehensive volume value according to a weighting coefficient and the playing volume value of each terminal device, wherein the weighting coefficient is determined by at least the distance and the angle between each terminal device and the target object. Further, when the weighting coefficients and the playing volume values of the respective terminal devices are used to calculate the comprehensive volume value, the weighting coefficients at least including the distance, the angle and other factors can be fitted in advance according to a large number of experiments and the like and stored, so that in the specific implementation process, the angle and the distance between the terminal devices and the user can be obtained through the angle sensor and the distance sensor which are configured in the respective terminal devices, and the weighting coefficients corresponding to the respective devices can be extracted.
It should be noted that, when a user opens a plurality of terminal devices at the same time, the volume value received by the user is the total volume value formed by the playing volume values of all the terminal devices, and therefore, before each terminal device is regulated, the comprehensive volume value formed by calculation is calculated through the extracted playing volume value of each terminal device, and corresponding measures are taken according to whether the comprehensive volume value meets the preset standard, so that the problem of time and resource waste caused by regulating and controlling the terminal devices according to the extracted volume value when the comprehensive volume value formed by a plurality of terminal devices does not meet the preset condition is solved, and the efficiency of volume regulation is improved and resources are saved.
203. And detecting whether the comprehensive volume value is within a preset volume value range.
The detailed implementation of this step may refer to the corresponding description in step 103, which is not described herein again.
204a, if yes, adjusting each terminal device according to the playing volume value.
For the embodiment of the present invention, when the integrated volume value formed by the volume values of the respective terminal devices extracted according to the distance is within the preset range, it is indicated that the volume value received by the user can be ensured to be stable if the adjustment is performed according to the extracted volume value of the respective terminal device, and therefore, in this step, the adjustment may be performed on the respective terminal devices according to the extracted play volume value. Specifically, the adjustment manner may refer to the corresponding description in step 104, and is not repeated herein in this embodiment of the present invention.
And a step 204b, which is parallel to the step 204a, of calculating a volume difference between the integrated volume value and a boundary volume value of the preset volume value range if the integrated volume value is not within the preset volume value range.
It should be noted that, when the integrated volume value calculated according to the extracted play volume values of the respective devices is not within the preset range, it indicates that the adjustment cannot be directly performed according to the extracted volume value, so that the difference between the integrated volume value and the preset range is calculated in this step, so as to correct the volume value of the terminal device. Specifically, when the integrated volume value is higher than the preset volume value range, the boundary volume value of the preset range in this step is the right boundary value, and conversely, when the integrated volume value is lower than the preset volume value range, the boundary volume value of the preset range in this step is the left boundary value. For example, if the calculated integrated volume value is 65 db and the preset volume value range is 55-60 db, the difference between the calculated integrated volume value and the boundary volume value of the preset volume value range in this step is: 65-60 db.
For the embodiment of the invention, the difference value between the comprehensive volume value and the boundary volume value of the preset volume value range is calculated so as to carry out minimum correction according to the difference value, so that the volume value received by a user is stable, the efficiency of volume adjustment is improved, and resource waste is avoided.
205b, adjusting the playing volume value of the terminal device according to the volume difference value and adjusting each terminal device by using the adjusted playing volume value.
Further, the comprehensive volume value is within the preset volume value range.
Specifically, in this step, adjusting the playing volume value of the terminal device according to the volume difference may include: determining a first terminal device closest to the target object according to the distance; and correcting the playing volume value of the first terminal device according to the volume difference value. For example, as illustrated in step 204b, if the calculated volume difference is 5 db, the terminal device closest to the terminal device may be obtained and the volume value minus 5 may be used as the final adjusted volume value of the terminal device.
It should be noted that, in this step, the nearest first terminal device is the nearest device in the valid devices, and by adjusting the device nearest to the user, the most efficient volume adjustment can be implemented, so that the volume value received by the user reaches the preset volume value range. After the device is corrected, the comprehensive volume value formed by each device is within the preset volume value range, so that each device is adjusted according to the corrected volume value, and the volume value received by a user can be ensured to be stable.
However, it should be noted that the specific implementation described in the foregoing application scenarios is only an example, and is not the only specific implementation of the embodiment of the present invention, and is only one of the optimized implementations of the method according to the embodiment of the present invention.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention further provides a device for adjusting a volume, which is used to implement the method shown in fig. 1. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. As shown in fig. 3, the apparatus includes: an acquisition unit 31, an extraction unit 32, a calculation unit 33, a detection unit 34, an adjustment unit 35, wherein
The obtaining unit 31 may be configured to obtain distances between each terminal device and the target object when it is monitored that the position of the target object changes.
An extracting unit 32, configured to extract, according to the distance obtained by the obtaining unit 31, the playing volume value corresponding to each terminal device from a preset database, where the playing volume values corresponding to the terminal devices at different distances from the target object are stored in the preset database.
The calculating unit 33 may be configured to calculate a comprehensive volume value formed by all the terminal devices according to the playing volume values respectively corresponding to the terminal devices.
The detecting unit 34 may be configured to detect whether the integrated volume value calculated by the calculating unit 33 is within a preset volume value range.
The adjusting unit 35 may be configured to adjust each terminal device according to the playing volume value if the comprehensive volume value is within a preset volume value range.
Further, as an implementation of the method shown in fig. 2, an embodiment of the present invention further provides another volume adjusting device, which is used for implementing the method shown in fig. 2. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. As shown in fig. 4, the apparatus includes: an acquisition unit 41, an extraction unit 42, a calculation unit 43, a detection unit 44, an adjustment unit 45, wherein
The obtaining unit 41 may be configured to obtain distances between each terminal device and the target object when it is monitored that the position of the target object changes.
An extracting unit 42, configured to extract, according to the distance obtained by the obtaining unit 41, the playing volume value corresponding to each terminal device from a preset database, where the playing volume values corresponding to the terminal devices at different distances from the target object are stored in the preset database.
The calculating unit 43 may be configured to calculate a comprehensive volume value formed by all the terminal devices according to the playing volume values respectively corresponding to the terminal devices.
The detecting unit 44 may be configured to detect whether the integrated volume value calculated by the calculating unit 43 is within a preset volume value range.
The adjusting unit 45 may be configured to adjust each terminal device according to the playing volume value if the comprehensive volume value is within a preset volume value range.
Further, the apparatus further comprises: a marking unit 46.
The detecting unit 44 may be further configured to detect whether the distance exceeds a preset distance threshold.
The marking unit 46 may be configured to mark the terminal device as an invalid terminal device if the distance exceeds a preset distance threshold, and mark the terminal device as a valid terminal device otherwise.
Further, in the above-mentioned case,
the extracting unit 42 may be specifically configured to extract, from a preset database, playing volume values respectively corresponding to the valid terminal devices according to the distances.
Further, in the above-mentioned case,
the calculating unit 43 may be specifically configured to add the playing volume values of the terminal devices and determine the added volume value as the comprehensive volume value.
The calculating unit 43 may be further configured to calculate the comprehensive volume value according to a weighting coefficient and the playing volume value of each terminal device, where the weighting coefficient is determined by at least a distance and an angle between each terminal device and the target object.
Further, in the above-mentioned case,
the calculating unit 43 may be further configured to calculate a volume difference between the integrated volume value and a boundary volume value of the preset volume value range if the integrated volume value is not within the preset volume value range.
The adjusting unit 45 may be further configured to adjust the playing volume value of the terminal device according to the volume difference value and adjust each terminal device by using the adjusted playing volume value.
Further, the adjusting unit 45 includes:
the determining module 4501 may be configured to determine, according to the distance, a first terminal device closest to the target object.
The modifying module 4502 may be configured to modify the playing volume value of the first terminal device according to the volume difference.
The embodiment of the invention provides another volume adjusting device. The device comprises: the device comprises an acquisition unit, an extraction unit, a calculation unit, a detection unit and an adjustment unit. Compared with the prior art, when a plurality of devices are used for playing sound simultaneously and the position of a user moves, the playing volume value of each terminal device can only be manually adjusted so as to enable the volume value received by the user to be stable, when the user moves, the embodiment of the invention respectively obtains the distance between each started terminal device and the user, extracts the playing volume value respectively corresponding to each terminal device from the preset database according to the distance, then calculates the comprehensive volume value formed by all the terminal devices according to the playing volume value respectively corresponding to each terminal device, then detects whether the comprehensive volume value is in the preset volume value range, and adjusts each terminal device according to the extracted playing volume value if the comprehensive volume value is in the preset volume value range, so that compared with the prior art, the embodiment of the invention can enable the volume value received by the user to be stable by adjusting the volume value of each terminal device according to the distance between the terminal device and the user, the problem of complex operation caused by the fact that a user needs to manually adjust the volume value of the equipment when the position is changed at every time is solved, the volume adjustment operation of the equipment is simplified, and therefore user experience is improved.
Since the volume adjusting device described in this embodiment is a device capable of executing the volume adjusting method in the embodiment of the present invention, based on the volume adjusting method described in the embodiment of the present invention, a person skilled in the art can understand the specific implementation manner and various variations of the volume adjusting device in this embodiment, and therefore how to implement the multi-volume adjusting method in the embodiment of the present invention by the volume adjusting device is not described in detail herein. As long as those skilled in the art implement the device for adjusting the volume in the embodiment of the present invention, the device is within the scope of the present application.
An embodiment of the present invention provides an electronic device, as shown in fig. 5, including: at least one processor (processor) 51; and at least one memory (memory)52, a bus 53 connected to the processor 51; wherein,
the processor 51 and the memory 52 complete mutual communication through the bus 53;
the processor 51 is used for calling program instructions in the memory 52 to execute the steps in the above method embodiments.
The processor 51 includes a kernel, and the kernel calls a corresponding program unit from a memory. The kernel can be set to be one or more, and the operation of adjusting the volume of the equipment is simplified by adjusting the parameters of the kernel.
The memory 52 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), including at least one memory chip.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the method embodiments described above.
An embodiment of the present invention further provides a computer program product, which, when executed on a data processing apparatus, is adapted to execute a program that initializes the following method steps: when the position of a target object is monitored to be changed, the distance between each terminal device and the target object is respectively obtained, playing volume values respectively corresponding to the terminal devices are extracted from a preset database according to the distance, and the preset database stores the playing volume values corresponding to the terminal devices at different distances from the target object; calculating a comprehensive volume value formed by all the terminal equipment according to the playing volume values respectively corresponding to the terminal equipment; detecting whether the comprehensive volume value is within a preset volume value range; and if so, adjusting each terminal device according to the playing volume value.
Further, the method further comprises:
if the comprehensive volume value is not in the preset volume value range, calculating a volume difference value between the comprehensive volume value and a boundary volume value of the preset volume value range;
and adjusting the playing volume value of the terminal equipment according to the volume difference value and adjusting each terminal equipment by using the adjusted playing volume value so that the comprehensive volume value is in the preset volume value range.
Further, the adjusting the playing volume value of the terminal device according to the volume difference value includes:
determining a first terminal device closest to the target object according to the distance;
and correcting the playing volume value of the first terminal device according to the volume difference value.
Further, after the distances between the terminal devices and the target object are respectively obtained, the method further includes:
detecting whether the distance exceeds a preset distance threshold value;
if so, marking the terminal equipment as invalid terminal equipment, otherwise, marking the terminal equipment as valid terminal equipment;
the extracting, from a preset database according to the distance, the play volume values respectively corresponding to the terminal devices includes:
and extracting playing volume values respectively corresponding to the effective terminal equipment from a preset database according to the distance.
Further, the calculating a comprehensive volume value formed by all the terminal devices according to the playing volume values respectively corresponding to the terminal devices includes:
adding the playing volume values of the terminal devices and determining the volume value obtained after the addition as the comprehensive volume value; or
And calculating the comprehensive volume value according to a weighting coefficient and the playing volume value of each terminal device, wherein the weighting coefficient is determined by at least the distance and the angle between each terminal device and the target object.
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 (10)

1. A method for adjusting a volume, the method comprising:
when the position of a target object is monitored to be changed, the distance between each terminal device and the target object is respectively obtained, playing volume values respectively corresponding to the terminal devices are extracted from a preset database according to the distance, and the preset database stores the playing volume values corresponding to the terminal devices at different distances from the target object;
calculating a comprehensive volume value formed by all the terminal equipment according to the playing volume values respectively corresponding to the terminal equipment;
detecting whether the comprehensive volume value is within a preset volume value range;
and if so, adjusting each terminal device according to the playing volume value.
2. The method of claim 1, further comprising:
if the comprehensive volume value is not in the preset volume value range, calculating a volume difference value between the comprehensive volume value and a boundary volume value of the preset volume value range;
and adjusting the playing volume value of the terminal equipment according to the volume difference value and adjusting each terminal equipment by using the adjusted playing volume value so that the comprehensive volume value is in the preset volume value range.
3. The method of claim 2, wherein the adjusting the playing volume value of the terminal device according to the volume difference value comprises:
determining a first terminal device closest to the target object according to the distance;
and correcting the playing volume value of the first terminal device according to the volume difference value.
4. The method according to any one of claims 1 to 3, wherein after the obtaining the distances between the respective terminal devices and the target object, the method further comprises:
detecting whether the distance exceeds a preset distance threshold value;
if so, marking the terminal equipment as invalid terminal equipment, otherwise, marking the terminal equipment as valid terminal equipment;
the extracting, from a preset database according to the distance, the play volume values respectively corresponding to the terminal devices includes:
and extracting playing volume values respectively corresponding to the effective terminal equipment from a preset database according to the distance.
5. The method according to claim 1, wherein the calculating a comprehensive volume value formed by all the terminal devices according to the playing volume values respectively corresponding to the terminal devices comprises:
adding the playing volume values of the terminal devices and determining the volume value obtained after the addition as the comprehensive volume value; or
And calculating the comprehensive volume value according to a weighting coefficient and the playing volume value of each terminal device, wherein the weighting coefficient is determined by at least the distance and the angle between each terminal device and the target object.
6. An apparatus for adjusting a volume, the apparatus comprising:
the acquisition unit is used for respectively acquiring the distance between each terminal device and the target object when the position of the target object is monitored to be changed;
the extracting unit is used for extracting playing volume values respectively corresponding to the terminal devices from a preset database according to the distances, and the preset database stores the playing volume values corresponding to the terminal devices at different distances from the target object;
the computing unit is used for computing a comprehensive volume value formed by all the terminal equipment according to the playing volume values respectively corresponding to the terminal equipment;
the detection unit is used for detecting whether the comprehensive volume value is within a preset volume value range or not;
and the adjusting unit is used for adjusting each terminal device according to the playing volume value if the comprehensive volume value is within a preset volume value range.
7. The apparatus of claim 6, further comprising: an adjustment unit for adjusting the position of the optical element,
the calculation unit is further configured to calculate a volume difference between the integrated volume value and a boundary volume value of the preset volume value range if the integrated volume value is not within the preset volume value range;
and the adjusting unit is used for adjusting the playing volume value of the terminal equipment according to the volume difference value and adjusting each terminal equipment by using the adjusted playing volume value so as to enable the comprehensive volume value to be within the preset volume value range.
8. The apparatus of claim 7, wherein the adjusting unit comprises:
the determining module is used for determining a first terminal device closest to the target object according to the distance;
and the correction module is used for correcting the playing volume value of the first terminal device according to the volume difference value.
9. An electronic device, comprising:
at least one processor;
and at least one memory, bus connected with the processor; wherein,
the processor and the memory complete mutual communication through the bus;
the processor is used for calling the program instructions in the memory to execute the volume adjusting method of any one of claims 1 to 5.
10. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method for adjusting volume according to any one of claims 1 to 5.
CN201811286406.5A 2018-10-31 2018-10-31 A kind of method of adjustment and device of volume Pending CN109471608A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811286406.5A CN109471608A (en) 2018-10-31 2018-10-31 A kind of method of adjustment and device of volume

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811286406.5A CN109471608A (en) 2018-10-31 2018-10-31 A kind of method of adjustment and device of volume

Publications (1)

Publication Number Publication Date
CN109471608A true CN109471608A (en) 2019-03-15

Family

ID=65666184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811286406.5A Pending CN109471608A (en) 2018-10-31 2018-10-31 A kind of method of adjustment and device of volume

Country Status (1)

Country Link
CN (1) CN109471608A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110012391A (en) * 2019-05-14 2019-07-12 临沂市中心医院 A kind of operation consultation system and operating room audio collection method
CN111580780A (en) * 2020-05-20 2020-08-25 Oppo广东移动通信有限公司 Sound control method, device, terminal and storage medium for video playing
CN111930336A (en) * 2020-07-29 2020-11-13 歌尔科技有限公司 Volume adjusting method and device of audio device and storage medium
CN112992324A (en) * 2021-03-23 2021-06-18 北京蓬阳丰业科技有限公司 Calling method, device, electronic device and storage medium for hospital broadcast system
CN114125659A (en) * 2021-10-29 2022-03-01 歌尔科技有限公司 Volume real-time compensation method, electronic device and readable storage medium
CN115396472A (en) * 2022-08-23 2022-11-25 广州小鹏汽车科技有限公司 Vehicle control method, vehicle and computer readable storage medium
WO2022247533A1 (en) * 2021-05-25 2022-12-01 Oppo广东移动通信有限公司 Volume synchronization method and apparatus, electronic device, and storage medium
CN115550755A (en) * 2021-06-30 2022-12-30 北京小米移动软件有限公司 Playing device control method, device, device and medium
CN116389981A (en) * 2023-05-13 2023-07-04 恩平市唐成电声科技有限公司 Power amplifier control system and method based on artificial intelligence

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105407021A (en) * 2015-11-26 2016-03-16 小米科技有限责任公司 Volume adjustment method and device
CN105448293A (en) * 2014-08-27 2016-03-30 北京羽扇智信息科技有限公司 Voice monitoring and processing method and voice monitoring and processing device
CN105975241A (en) * 2016-04-22 2016-09-28 北京小米移动软件有限公司 Volume regulation method and device
CN106371799A (en) * 2016-09-20 2017-02-01 北京小米移动软件有限公司 Volume control method and device for multimedia playback equipment
CN106535042A (en) * 2016-10-27 2017-03-22 广州视源电子科技股份有限公司 Volume control method, device and system for vehicle-mounted loudspeaker
CN107888782A (en) * 2017-12-25 2018-04-06 出门问问信息科技有限公司 A kind of control method and device of volume
CN107958273A (en) * 2017-12-15 2018-04-24 北京小米移动软件有限公司 volume adjusting method, device and storage medium
WO2018105552A1 (en) * 2016-12-09 2018-06-14 株式会社ソニー・インタラクティブエンタテインメント Sound control device, sound control method, and program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105448293A (en) * 2014-08-27 2016-03-30 北京羽扇智信息科技有限公司 Voice monitoring and processing method and voice monitoring and processing device
CN105407021A (en) * 2015-11-26 2016-03-16 小米科技有限责任公司 Volume adjustment method and device
CN105975241A (en) * 2016-04-22 2016-09-28 北京小米移动软件有限公司 Volume regulation method and device
CN106371799A (en) * 2016-09-20 2017-02-01 北京小米移动软件有限公司 Volume control method and device for multimedia playback equipment
CN106535042A (en) * 2016-10-27 2017-03-22 广州视源电子科技股份有限公司 Volume control method, device and system for vehicle-mounted loudspeaker
WO2018105552A1 (en) * 2016-12-09 2018-06-14 株式会社ソニー・インタラクティブエンタテインメント Sound control device, sound control method, and program
CN107958273A (en) * 2017-12-15 2018-04-24 北京小米移动软件有限公司 volume adjusting method, device and storage medium
CN107888782A (en) * 2017-12-25 2018-04-06 出门问问信息科技有限公司 A kind of control method and device of volume

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110012391A (en) * 2019-05-14 2019-07-12 临沂市中心医院 A kind of operation consultation system and operating room audio collection method
CN111580780A (en) * 2020-05-20 2020-08-25 Oppo广东移动通信有限公司 Sound control method, device, terminal and storage medium for video playing
CN111930336A (en) * 2020-07-29 2020-11-13 歌尔科技有限公司 Volume adjusting method and device of audio device and storage medium
CN112992324A (en) * 2021-03-23 2021-06-18 北京蓬阳丰业科技有限公司 Calling method, device, electronic device and storage medium for hospital broadcast system
WO2022247533A1 (en) * 2021-05-25 2022-12-01 Oppo广东移动通信有限公司 Volume synchronization method and apparatus, electronic device, and storage medium
CN115550755A (en) * 2021-06-30 2022-12-30 北京小米移动软件有限公司 Playing device control method, device, device and medium
CN114125659A (en) * 2021-10-29 2022-03-01 歌尔科技有限公司 Volume real-time compensation method, electronic device and readable storage medium
CN115396472A (en) * 2022-08-23 2022-11-25 广州小鹏汽车科技有限公司 Vehicle control method, vehicle and computer readable storage medium
CN116389981A (en) * 2023-05-13 2023-07-04 恩平市唐成电声科技有限公司 Power amplifier control system and method based on artificial intelligence
CN116389981B (en) * 2023-05-13 2023-09-19 恩平市唐成电声科技有限公司 Power amplifier control system and method based on artificial intelligence

Similar Documents

Publication Publication Date Title
CN109471608A (en) A kind of method of adjustment and device of volume
EP3163885B1 (en) Method and apparatus for controlling electronic device
CN107925692B (en) Electronic device and method for adjusting intensity of sound of external device
EP2793229B1 (en) Noise cancellation for voice activation
CN107155133B (en) Volume adjusting method, audio playing terminal and computer readable storage medium
EP3792913A1 (en) Auxiliary speech control method and device and air conditioner
CN110806849A (en) Intelligent device, volume adjusting method thereof and computer-readable storage medium
TWI607373B (en) Collaborative audio processing
US11638083B2 (en) Earphone abnormality processing method, earphone, system, and storage medium
US20070172083A1 (en) Method and apparatus for controlling a gain of a voice signal
CN103546683A (en) Control system for camera and portable device including the same, and control method thereof
JP2019501563A (en) Object-based audio signal balancing method
CN109616135B (en) Audio processing method, device and storage medium
CN111142398A (en) Equipment linkage method and device, electronic equipment and storage medium
CN107360326A (en) terminal volume adjusting processing method and terminal
CN103929692B (en) Audio information processing method and electronic equipment
CN108266862B (en) Air conditioner control method and device, storage medium and processor
CN112369047B (en) Method for spatial sound reproduction of a selectively audible sound field in a subregion of a region
CN109424570B (en) Fan control method and device
CN107395873B (en) Volume adjusting method and device, storage medium and terminal
CN113033584B (en) Data processing method and related equipment
CN115037883B (en) Exposure parameter adjustment method, device, storage medium and electronic device
CN108810614A (en) Method for regulation of sound volume, system and readable storage medium storing program for executing
CN109672961B (en) Volume adjusting method, device and storage medium
CN113709629A (en) Frequency response parameter adjusting method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190315

RJ01 Rejection of invention patent application after publication