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

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

Info

Publication number
CN115185479A
CN115185479A CN202210770333.7A CN202210770333A CN115185479A CN 115185479 A CN115185479 A CN 115185479A CN 202210770333 A CN202210770333 A CN 202210770333A CN 115185479 A CN115185479 A CN 115185479A
Authority
CN
China
Prior art keywords
volume
current
playing
user
environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210770333.7A
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.)
iFlytek Co Ltd
Original Assignee
iFlytek 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 iFlytek Co Ltd filed Critical iFlytek Co Ltd
Priority to CN202210770333.7A priority Critical patent/CN115185479A/en
Publication of CN115185479A publication Critical patent/CN115185479A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Abstract

The invention provides a volume adjusting method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring the current environment volume in the sound source direction; determining the playing volume corresponding to the current environment volume based on a volume mapping relation corresponding to the current user, wherein the volume mapping relation is determined based on the adjustment operation of the current user on the playing volume in the historical environment volume; and adjusting the volume of the loudspeaker under the sound source direction based on the playing volume corresponding to the current environment volume. According to the method, the device, the equipment and the storage medium, the sound source azimuth is referred to during the volume adjustment, the situation that the volumes of the loudspeakers in all azimuths are all increased to resist noise is avoided, the volume adjustment is performed through the volume mapping relation, the personalized volume adjustment is realized, and the risk that a unified fixed volume adjustment scheme possibly causes discomfort of a user is avoided.

Description

Volume adjusting method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a volume adjustment method, apparatus, device, and storage medium.
Background
At present, the volume adjustment of the device with the audio output function is generally realized through a manual adjustment scheme, however, the manual adjustment has hysteresis, and the user experience is also reduced due to frequent adjustment operations.
Aiming at the problems, an automatic volume adjusting scheme is developed, the equipment can call a microphone configured by the equipment to collect the environmental volume, and then the equipment playing volume is adjusted according to the preset mapping relation between the environmental volume and the equipment playing volume. Although this scheme can achieve volume self-adjustment adapted to environmental changes, because different users have different preferences for volume levels, the unified adjustment scheme cannot take care of the preferences of different users, and too high or too low volume may affect user experience.
Disclosure of Invention
The invention provides a volume adjusting method, a volume adjusting device, volume adjusting equipment and a storage medium, which are used for solving the defect that an immobilized volume adjusting scheme in the prior art cannot meet the personalized requirements of a user.
The invention provides a volume adjusting method, which comprises the following steps:
acquiring the current environment volume in the sound source direction;
determining the playing volume corresponding to the current environment volume based on a volume mapping relation corresponding to the current user, wherein the volume mapping relation is determined based on the adjustment operation of the current user on the playing volume in the historical environment volume;
based on the playing volume corresponding to the current environment volume, carrying out volume adjustment on the loudspeaker in the sound source direction
According to the volume adjustment method provided by the invention, the volume mapping relation is determined based on the following steps:
determining user adjustment volume corresponding to the historical environment volume based on the adjustment operation;
determining the volume mapping relation based on the user adjustment volume corresponding to the historical environment volume and the playing volume range;
the playing volume range is determined based on the feedback operation of the auditory perception of the current user for different playing volumes.
According to a volume adjustment method provided by the present invention, the acquiring a current environment volume in a sound source orientation includes:
and acquiring current environmental noise, and carrying out sound source positioning on the current environmental noise to obtain a sound source position and current environmental volume under the sound source position.
According to a volume adjustment method provided by the present invention, the determining the playing volume corresponding to the current environment volume based on the volume mapping relationship corresponding to the current user includes:
and determining the playing volume corresponding to the current environment volume based on the current application scene and the volume mapping relation corresponding to the current user.
According to the volume adjustment method provided by the invention, the determining of the playing volume corresponding to the current environment volume based on the current application scene and the volume mapping relation corresponding to the current user comprises the following steps:
determining a channel and/or a frequency band to be adjusted based on the current application scene;
and determining the playing volume of the channel and/or the frequency band to be adjusted corresponding to the current environment volume based on the volume mapping relation of the channel and/or the frequency band to be adjusted corresponding to the current user.
According to the volume adjusting method provided by the invention, the acquiring of the current environment volume in the sound source direction comprises the following steps:
determining current environment information;
and determining the current environment volume in the sound source position based on the historical environment volume acquired under the historical environment information which is the same as the current environment information.
The present invention also provides a volume adjustment device, comprising:
the volume acquisition unit is used for acquiring the current environment volume in the sound source direction;
the volume mapping unit is used for determining the playing volume corresponding to the current environment volume based on a volume mapping relation corresponding to the current user, and the volume mapping relation is determined based on the adjustment operation of the current user on the playing volume in the historical environment volume;
and the volume adjusting unit is used for adjusting the volume of the loudspeaker under the sound source direction based on the playing volume corresponding to the current environment volume.
The invention also provides a playing device which comprises a device body, a microphone, a loudspeaker and the volume adjusting device.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the volume adjustment method.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the volume adjustment method as described in any of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements the volume adjustment method as described in any one of the above.
According to the volume adjusting method, the volume adjusting device, the volume adjusting equipment and the storage medium, the sound source position is referred to during volume adjustment, so that the adjustment of playing volume is more targeted, and the condition that the volumes of speakers in all positions are all adjusted to be high so as to resist the noisy feeling brought by noise is avoided. In addition, in the adjusting process, the volume is adjusted through the volume mapping relation determined by the current user aiming at the adjustment operation of the playing volume under the historical environment volume, so that the playing volume of the equipment can adapt to the change of the environment volume and the preference of the current user, the personalized volume adjustment is realized, and the risk that the user is uncomfortable due to the unified and fixed volume adjusting scheme is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a volume adjustment method provided by the present invention;
FIG. 2 is a schematic flow chart of a method for determining a volume mapping relationship according to the present invention;
fig. 3 is a schematic structural diagram of a playing device provided in the present invention;
FIG. 4 is a schematic diagram of the volume adjustment based on the acoustic orientation of the noise provided by the present invention;
FIG. 5 is a schematic diagram of the playing volume of each frequency band provided by the present invention;
FIG. 6 is a second schematic diagram of the playing volume of each frequency band provided by the present invention;
fig. 7 is a schematic structural diagram of a volume adjusting device provided by the invention;
fig. 8 is a schematic structural diagram of a playing device provided by the present invention;
fig. 9 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed description of the preferred embodiments
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
At present, the volume adjustment of a device with an audio output function is generally implemented through a manual scheme, for example, when a user is in a noisy environment, the playing volume is often required to be adjusted to be high in order to clearly hear the sound played by the device, and when the user enters a quieter environment, the user feels uncomfortable due to the high playing volume, and at this time, the user needs to adjust the volume to be low.
The manual adjustment scheme requires a user to manually perform the adjustment after sensing the environmental noise change, and has hysteresis, and the automatic volume adjustment scheme has been developed for this problem.
The device under the automatic volume adjusting scheme can automatically sense the environmental noise so as to correspondingly adjust the playing volume. However, the current automatic volume adjustment scheme is still limited to the concept of turning up the volume when the noise is high and turning down the volume when the noise is low, and it is not considered that the preferences of different users for the volume are different, the uniform fixed adjustment scheme is not necessarily suitable for all users, and a higher volume may cause discomfort to some users.
To solve the problem, an embodiment of the present invention provides a volume adjusting method, which can be applied to any intelligent device that needs to perform audio playing, for example, a mobile phone, a tablet computer, a laptop computer, a learning machine, a vehicle-mounted intelligent terminal, and the like. Fig. 1 is a schematic flow chart of a volume adjustment method provided by the present invention, and as shown in fig. 1, the method includes:
and step 110, acquiring the current environment volume in the sound source direction.
In particular, the sound source orientation is the orientation of the sound source emitting ambient sound within the environment in which the device is located compared to the device itself. Considering that in a real scene, the environment in which the device is located is usually complex, multiple sound sources may exist in the real environment, and the orientation of each sound source compared to the device itself is not necessarily the same. It will be appreciated that sound sources at different orientations may also have different effects on the user using the device listening to the sound played by the device.
For this case, the current ambient volume at the sound source orientation can be acquired. Here, the current ambient volume is a volume of ambient sound collected in a sound source direction in an environment where the device is located at the current time, and the ambient sound referred to here may be all sounds except for a sound played by the device itself in the sound source direction, where the volume is a sound intensity. It can be understood that the obtaining of the current environment volume may be performed in real time, or may be performed once every preset time period, and the frequency of obtaining the current environment volume may be determined according to the cruising ability of the device itself, the requirement of the user for self-adjustment of the device playing volume, and the like, which is not specifically limited in the embodiment of the present invention.
Step 120, determining the playing volume corresponding to the current environment volume based on a volume mapping relation corresponding to the current user, where the volume mapping relation is determined based on an adjustment operation of the current user on the playing volume in the historical environment volume.
Specifically, the volume of the current environment may directly affect the receiving effect of the user on the device playing sound, and therefore, in order to ensure an ideal receiving effect, the playing volume of the device needs to be adjusted according to the volume of the current environment. In the process, considering that different users have different preferences on the volume of the played sound, when the volume of the played sound corresponding to the volume of the current environment is determined, the volume mapping relation which is set for different users in an individualized way is applied.
Here, the volume mapping relationship is used to reflect a mapping relationship between the environment volume and the playing volume, and may specifically be a function expression using the environment volume as an independent variable and the playing volume as a dependent variable, or may be a table of playing volumes corresponding to a plurality of environment volume ranges, or may also be a curve in a plane coordinate system using the environment volume and the playing volume as two coordinate axes, which is not specifically limited in the embodiment of the present invention. For example, the volume map may be represented in the form shown in the following table:
Figure BDA0003723702160000061
a single volume map may correspond to one or more users, thereby enabling customization of a personalized volume map for a user. For a current user, that is, a user currently using the device to play sound, the volume mapping relationship corresponding to the current user may be determined according to an operation of the current user for adjusting the play volume in the historical environment volume.
Here, the determination of the current user may be determined according to an account registered by an application playing sound, or according to an account registered by an equipment system, or according to a password applied when unlocking an equipment lock screen, which is not specifically limited in this embodiment of the present invention.
There is also an action of playing sound using the device before the current user. In the process of playing sound by the equipment, a user may manually adjust the playing volume along with the change of the environmental volume, and may also manually adjust the playing volume because the playing volume automatically adjusted by the equipment at that time is not satisfied, and for the adjustment operation of the playing volume, the equipment may record the adjustment operation itself and the environmental volume when the adjustment operation occurs, that is, the historical environmental volume, and construct and adjust the volume mapping relationship corresponding to the current user based on the historical environmental volume and the adjustment operation. Here, the adjustment operation may be an increase or decrease, the play volume preferred by the current user in the historical environment volume may be obtained by the adjustment operation, and based on this, a correspondence between the historical environment volume and the play volume preferred by the current user may be constructed, so as to construct a volume mapping relationship corresponding to the current user, or the adjustment may be performed on the basis of the existing volume mapping relationship corresponding to the current user or the general volume mapping relationship.
Because the volume mapping relationship corresponding to the current user exists, after the current environment volume is obtained, the playing volume corresponding to the current environment volume can be determined from the volume mapping relationship corresponding to the current user, and here, the playing volume corresponding to the current environment volume meets the preferred playing volume of the current user under the current environment volume.
It can be understood that, for the situation that there are current environmental volumes in multiple sound source orientations, the playing volume corresponding to the current environmental volume in each sound source orientation may be determined based on the volume mapping relationship corresponding to the current user, where the sound source orientations and the current environmental volume may be in one-to-one correspondence, and the sound source orientations and the playing volume may also be in one-to-one correspondence. And step 130, adjusting the volume of the loudspeaker under the sound source direction based on the playing volume corresponding to the current environment volume.
Specifically, after the playing volume corresponding to the current environment volume is obtained, the playing volume of the device can be adjusted based on the playing volume, so that the playing volume of the device can adapt to the environment volume change and the preference of the current user. In the process of volume adjustment, the sound source position to which the current environment volume belongs can be further referred. Considering that the sound source can directly influence the effect of the user hearing and hearing the sound played by the device under the position, the volume of the loudspeaker under the position of the sound source can be adjusted in a targeted manner during the volume adjustment, so as to improve the user experience under the position of the sound source.
In this scenario, the direction in which the speaker of the device plays sound may correspond to the detected sound source direction, for example, when the current ambient volume in one or more directions is detected to be greater than the current ambient volume in other directions, that is, there is a sound source in the one or more directions, the playing volume may be determined based on the current ambient volume in the one or more directions, and then the volume of the speaker in the one or more directions may be adjusted, so as to ensure the hearing experience of the user in the one or more directions.
According to the method provided by the embodiment of the invention, the sound source position is referred to during the volume adjustment, so that the adjustment of the playing volume is more targeted, and the condition that the volumes of the loudspeakers in all positions are all adjusted to be high so as to resist the noisy feeling brought by noise is avoided. In addition, in the adjusting process, the volume is adjusted through the volume mapping relation determined by the current user aiming at the adjustment operation of the playing volume under the historical environment volume, so that the playing volume of the equipment can adapt to the change of the environment volume and the preference of the current user, the personalized volume adjustment is realized, and the risk that the user is uncomfortable due to the unified and fixed volume adjusting scheme is avoided.
Based on the above embodiment, fig. 2 is a schematic flow chart of the method for determining the volume mapping relationship provided by the present invention, and as shown in fig. 2, the volume mapping relationship is determined based on the following steps:
step 210, determining a user adjustment volume corresponding to the historical environment volume based on the adjustment operation;
step 220, determining the volume mapping relation based on the user adjustment volume corresponding to the historical environment volume.
Specifically, in the process of playing sound by the device, the user may manually adjust the playing volume, that is, perform an adjustment operation, where the adjustment operation may be to press a volume adjustment key on the device, or to input an adjustment instruction "increase the volume", "decrease the volume" or the like in a voice input manner, which is not limited in this embodiment of the present invention.
After receiving the adjustment operation of the user, the device may determine, based on the adjustment intention reflected by the adjustment operation and the playing volume at this time, the adjusted volume of the user, that is, the target volume corresponding to the adjustment operation performed by the user, where for example, the adjustment intention reflected by the adjustment operation is to reduce the volume by level 1, and the playing volume at this time is level 7, the user adjusts the volume by level 6. It can be understood that the volume adjusted by the user through the adjustment operation performed by the user is the volume of the device preferred by the user in the historical environment volume.
After the volume adjusted by the user corresponding to the volume in the historical environment is obtained, a volume mapping relationship may be determined based on a corresponding relationship between the volume in the historical environment and the volume adjusted by the user, for example, the volume mapping relationship may be obtained by fitting the mapping relationship based on the volume adjusted by the user in each volume in the historical environment, or the volume adjusted by the user in each volume in the historical environment may be obtained by adjusting the play volume corresponding to each of the plurality of pre-established ranges of the volume in the environment, so as to form an adjusted volume mapping relationship.
Based on any of the above embodiments, step 220 includes:
determining the volume mapping relation based on the user adjustment volume corresponding to the historical environment volume and the playing volume range;
the playback volume range is determined based on a feedback operation of the current user's auditory perception for different playback volumes.
Specifically, in the process of determining the volume mapping relationship for the current user, not only the preference of the user but also the acceptance of the user to the upper and lower limits of the playing volume of the device need to be considered, so that the hearing feeling requirement of the user can be met even if the part of the volume mapping relationship, in which the volume of the historical environment and the volume of the user is not referred to, is not met, and discomfort of the user due to too high volume is avoided.
Here, the user's acceptance of the upper and lower limits of the playback volume of the device may be reflected as a playback volume range, where the playback volume range includes the upper limit and/or the lower limit of the playback volume. In order to enable the playback volume range to satisfy the user's auditory perception, the playback volume range of the current user may be determined based on the feedback operation of the auditory perception of the current user for different playback volumes for the current user.
Further, the device may set an initialization stage of the volume mapping relationship, in this stage, the device may play sounds with different volumes, and the user may reflect the auditory feelings of the user for different playing volumes through the device, where the feedback operation for the auditory feelings may be an option to select various auditory feelings displayed on the screen of the device, or input a specific auditory feeling in the form of voice input. For example, the device displays the auditory sense options "volume moderate", "volume high, but acceptable", "volume too high, not acceptable" on the screen while playing the sound at volume level 9, turns up the playing volume level and continues to display the auditory sense options if the user selects "volume moderate" through the feedback operation, and determines level 9 as the upper limit of the playing volume if the user selects "volume high, but acceptable" through the feedback operation.
The determined play volume range can directly reflect the real receiving capacity of the current user to the upper and lower limits of the play volume of the equipment, the maximum value and/or the minimum value of the play volume in the volume mapping relation corresponding to the current user is limited by applying the play volume range, and the problems that the user is uncomfortable due to overhigh volume and the sound content cannot be heard by the user due to overlow volume in the environment-based adaptive volume adjustment process can be avoided.
Based on any of the above embodiments, step 110 includes:
and acquiring current environmental noise, and carrying out sound source positioning on the current environmental noise to obtain a sound source position and current environmental volume under the sound source position.
Specifically, the device can be provided with a built-in or external microphone array, so that the noise source can be positioned while the current environmental noise is collected, that is, not only the current environmental noise can be obtained, but also the direction of the sound source emitting the current environmental noise, namely the sound source direction, compared with the device per se can be obtained.
If the directions of the noise sources in the current environment are different, for example, two noise sources exist in the current environment, one of the two noise sources is located at the upper right of the device, and the other one is located at the lower left of the device, then the noise sources in different directions may have different effects on the user hearing and hearing the sound played by the device. For this situation, the current environmental volumes in the respective sound source orientations may be acquired based on the acquired current environmental noise, that is, the current environmental volumes obtained here may be the respective environmental volumes in one or more orientations.
Correspondingly, in step 130, after the playing volume corresponding to the current environment volume is determined through the volume mapping relationship, the volume adjustment may be performed, and in the process of volume adjustment, the sound source position to which the current environment volume belongs may be further referred. Considering that the noise source can directly influence the effect of the user hearing and hearing the sound played by the device under the position, the volume of the loudspeaker under the sound source position can be adjusted in a targeted manner during the volume adjustment, so as to improve the user experience under the sound source position.
In this scenario, the direction in which the speaker of the device plays sound may be corresponding to the direction of the sound source, for example, fig. 3 is a schematic structural diagram of the playing device provided by the present invention, and as shown in fig. 3, the playing device is provided with 4 speakers, which are respectively a speaker 11 at the upper left, a speaker 12 at the lower left, a speaker 13 at the upper right, and a speaker 14 at the lower right, and in a general noisy environment, that is, in a case where the current environmental volumes in the respective directions are close, the playing volumes of the 4 speakers are the same.
And if the current environment volume of one or more directions is detected to be larger than the current environment volume of other directions, namely, a noise sound source exists in one or more directions, the playing volume can be determined based on the current environment volume in one or more directions, and then the volume of the loudspeaker in one or more directions is adjusted. For example, fig. 4 is a schematic diagram of volume adjustment based on the sound source orientation provided by the present invention, and fig. 4 shows a scene in which the sound source orientation is upper right and lower right, so after the playback volumes of the 4 speakers of the playback device are adjusted, the playback volumes of the upper right speaker 13 and the lower right speaker 14 are greater than the playback volumes of the upper left speaker 11 and the lower left speaker 12.
According to the method provided by the embodiment of the invention, the sound source position of the environmental noise is referred to during the volume adjustment, so that the adjustment of the playing volume is more targeted, and the condition that the volumes of the loudspeakers in all positions are all adjusted to be high so as to resist the noisy sense brought by the noise is avoided.
Based on any of the above embodiments, step 120 includes:
and determining the playing volume corresponding to the current environment volume based on the current application scene and the volume mapping relation corresponding to the current user.
In particular, considering that the playback device may have a difference in the requirements for volume adjustment in different application scenarios, for example, in a music playback scenario, the user may wish to hear and hear music clearly, and in a dialogue learning scenario, the user may wish to hear dialogue speech clearly, while background music in dialogue is relatively less important. Therefore, when the playing volume is determined, the embodiment of the invention not only considers the requirements of the user, but also considers the particularity of the current application scene.
That is, the playing volume corresponding to the current environment volume may be determined based on the current application scenario and the volume mapping relationship corresponding to the current user. Here, the current application scenario, that is, the application scenario corresponding to the currently played sound of the playing device, may be a classification of the currently played sound, such as pop music, classical music, conversation recording, or a classification of the currently played sound application, such as music, news, learning, or the like, and this is not limited in this embodiment of the present invention.
When the playing volume is determined by combining the current application scenario and the volume mapping relationship corresponding to the current user, the volume mapping relationship corresponding to the current application scenario may be selected from the multiple volume mapping relationships corresponding to the current user to determine the playing volume, or the playing volume may be determined by first determining the playing volume according to the volume mapping relationship corresponding to the current user, and the playing volume is finely adjusted by combining the current application scenario.
The method provided by the embodiment of the invention combines the characteristics of the current application scene to adjust the volume, and is beneficial to improving the reliability of environment self-adaptive volume adjustment.
Based on any of the above embodiments, step 120 includes:
determining a channel and/or a frequency band to be adjusted based on the current application scene;
and determining the playing volume of the channel and/or the frequency band to be adjusted corresponding to the current environment volume based on the volume mapping relation of the channel and/or the frequency band to be adjusted corresponding to the current user.
Specifically, the current application scenario may directly correspond to a channel and/or a frequency band that needs to be adjusted, where, when the sound played in the current application scenario includes multiple channels, there is a choice of the channel that needs to be adjusted, for example, two audio channels of background music and dialogue speech exist simultaneously in a dialogue learning scenario, only the dialogue speech channel may be used as the channel to be adjusted, or both the dialogue speech channel and the background music channel may be used as the channel to be adjusted. In addition, in each frequency band of the sound played in the current application scene, there may be a frequency band actually concerned by the current user, for example, background music of the dialogue learning scene and dialogue speech are mixed in the same channel, where the dialogue speech is usually in the range of 100Hz-10000Hz, and then 100Hz-10000Hz may be used as the frequency band to be adjusted.
In the volume mapping relationship corresponding to the current user, volume mapping relationships corresponding to different channels and/or frequency bands may exist, that is, the volume mapping relationship may also be adjusted according to the difference of the channels and/or frequency bands. After the channel and/or the frequency band to be adjusted is determined, the volume mapping relation of the channel and/or the frequency band to be adjusted can be selected from the volume mapping relation corresponding to the current user, so that the determination of the playing volume corresponding to the current environment volume of the channel and/or the frequency band to be adjusted is realized.
For example, fig. 5 is a schematic diagram of the playing volume of each frequency band provided by the present invention, fig. 6 is a schematic diagram of the playing volume of each frequency band provided by the present invention, in fig. 5 and fig. 6, the abscissa is frequency (Hz), the ordinate is volume (db), and fig. 5 shows the current playing volume of the playing device at each frequency. Assuming that the frequency band to be adjusted is determined to be 3KHz-10KHz according to the current application scenario, based on the volume mapping relationship of 3KHz-10KHz corresponding to the current user, the play volume of 3KHz-10KHz corresponding to the current environment volume, that is, the play volume shown in fig. 6, can be obtained. Comparing fig. 5 and fig. 6, it can be seen that after the adjustment is performed based on the volume mapping relationship, the playing volume of 3KHz to 10KHz is adaptively adjusted based on the current environment volume.
According to the scheme provided by the embodiment of the invention, the playing volume of the channel and/or the frequency band required to be adjusted is determined by combining the current application scene, so that the volume adjustment is more refined, the user preference under the current application scene is better fitted, and the reliability of environment-adaptive volume adjustment is favorably improved.
Based on any of the above embodiments, the obtaining the current ambient volume includes:
determining current environment information;
and determining the current environment volume in the sound source position based on the historical environment volume acquired under the historical environment information which is the same as the current environment information.
Specifically, in some special situations, a user may disable the ambient sound collection function due to privacy considerations, and at this time, a microphone or a microphone array of the playback device is in a disabled state, and the playback device itself cannot collect current ambient noise, so that the playback device cannot sense the current ambient volume.
For this special case, the playback device may acquire a factor related to the current ambient volume, that is, current ambient information, so as to estimate the current ambient volume based on the current ambient information. Here, the current environment information may include a current time period, a current location, and the like.
After the current environment information is obtained, historical environment information the same as the current environment information can be determined from various pieces of pre-stored historical environment information, and then the current environment volume is estimated by using the historical environment volume acquired under the historical environment information the same as the current environment information. Here, the same time and/or place as the current time period and/or place may be determined from the previously stored time periods and/or places, and the current ambient volume may be estimated using the historical ambient volume at the same time and/or place as the current ambient information.
For example, when the current time is 10 nights, the user is located at home, and historically, the volume of the environmental noise detected at home at night is low, it can be estimated that the current environmental volume is also low, and accordingly, the play volume determined through the volume mapping relationship is maintained at a low level; for another example, if the current time is 9 am and the user is located at a company, and the historical ambient volume detected by the playing device at the company in the morning is 40db-50db, the historical ambient volume detected at the company in the morning may be averaged to serve as the current ambient volume.
It can be understood that, here, the estimation of the current environmental volume may be performed according to each pre-divided sound source position, for example, for a certain sound source position, the current environmental volume in the sound source position may be estimated by applying the historical environmental volume obtained under the historical environmental information that is the same as the current environmental information in the sound source position; in addition, for the estimation of the current environmental volume, it may also be that the current environmental volumes in each sound source position are the same or similar by default, for example, the environmental volumes in the sound source positions that are not distinguished and directly collected under the historical environmental information that is the same as the current environmental information may be applied, and the current environmental volumes in each sound source position are estimated without difference, which is not specifically limited in the embodiment of the present invention.
According to the method provided by the embodiment of the invention, on the premise that the volume of the current environment cannot be directly acquired, the volume of the current environment is estimated through the volume of the historical environment acquired under the historical environment information which is the same as the current environment information, so that the environment self-adaptive volume adjustment is realized.
Based on any one of the embodiments, an embodiment of the present invention provides a volume adjustment method, which specifically includes the following steps:
in the case of a device in a play state, determining whether the microphone array of the device can currently be invoked:
if the microphone array can be called, calling the microphone array to collect the current environmental noise, and carrying out sound source positioning on the current environmental noise to obtain a sound source azimuth and the current environmental volume under the sound source azimuth;
and if the microphone array cannot be called, acquiring current environment information, and estimating the current environment volume based on the historical environment volume acquired under the historical environment information which is the same as the current environment information.
After the current environment volume is obtained, the playing volume corresponding to the current environment volume may be determined in combination with the volume mapping relationship of the current user, specifically, the playing volume corresponding to the current environment volume may be determined directly based on the volume mapping relationship of the current user, or the channel and/or frequency band to be adjusted may be determined based on the current application scenario, and the playing volume of the channel and/or frequency band to be adjusted corresponding to the current environment volume may be determined based on the volume mapping relationship of the channel and/or frequency band to be adjusted corresponding to the current user.
After the playing volume for the current environment volume is obtained, the volume of the current playing may be adjusted according to the determined playing volume, where the adjustment may be for all channels, or may be for one or more of the channels, or may be for all frequency bands, or may be for one or more of the frequency bands, which is not specifically limited in this embodiment of the present invention.
Moreover, if the positioning operation for the noise sound source is performed in the process of acquiring the current ambient volume and the current ambient volume in the sound source position is obtained, when the volume of the current playing is adjusted, it is also necessary to determine a speaker in the sound source position from a plurality of speakers of the playing device and adjust the volume of the speaker in the sound source position to which the current ambient volume belongs.
It should be noted that the volume mapping relationship of the current user applied in the embodiment of the present invention may be determined by combining two aspects of the adjustment operation of the current user for the playback volume in the historical environment volume and the feedback operation of the current user for the auditory perception of different playback volumes. Wherein, the adjustment operation aiming at the playing volume under the historical environment volume can reflect the playing volume preferred by the current user under different historical environment volumes, the feedback operation aiming at the auditory perception of different playing volumes can reflect the acceptance capability of the current user to the upper and lower limits of the playing volume, based on the volume mapping relation established by the two, when personalized adjustment is carried out according to user preference, the problems that the user is uncomfortable due to overhigh volume and the user cannot hear sound content due to overlow volume in the environment-based adaptive volume adjustment process can be avoided.
Based on any of the above embodiments, fig. 7 is a schematic structural diagram of a volume adjustment device provided by the present invention, as shown in fig. 7, the device includes:
a volume acquiring unit 710 for acquiring the current ambient volume in the sound source orientation;
a volume mapping unit 720, configured to determine, based on a volume mapping relationship corresponding to a current user, a playing volume corresponding to the current environment volume, where the volume mapping relationship is determined based on an adjustment operation of the current user on the playing volume in a historical environment volume;
and a volume adjusting unit 730, configured to adjust the volume of the speaker in the sound source direction based on the playing volume corresponding to the current environment volume.
The device provided by the embodiment of the invention refers to the sound source position when the volume is adjusted, so that the adjustment of the playing volume is more targeted, and the condition that the volume of the loudspeaker in all positions is completely increased to resist the noisy feeling brought by noise is avoided. In addition, in the adjusting process, the volume is adjusted through the volume mapping relation determined by the current user aiming at the adjustment operation of the playing volume under the historical environment volume, so that the playing volume of the equipment can adapt to the change of the environment volume and the preference of the current user, the personalized volume adjustment is realized, and the risk that the user is uncomfortable due to the unified and fixed volume adjusting scheme is avoided.
Based on any of the above embodiments, the apparatus further comprises a relationship determining unit configured to:
determining user adjustment volume corresponding to the historical environment volume based on the adjustment operation;
determining the volume mapping relation based on the user adjustment volume corresponding to the historical environment volume and the playing volume range;
the playback volume range is determined based on a feedback operation of the current user's auditory perception for different playback volumes.
Based on any of the above embodiments, the volume obtaining unit is configured to:
and acquiring current environmental noise, and carrying out sound source positioning on the current environmental noise to obtain a sound source position and current environmental volume under the sound source position.
Based on any of the above embodiments, the volume mapping unit is configured to:
and determining the playing volume corresponding to the current environment volume based on the current application scene and the volume mapping relation corresponding to the current user.
Based on any of the above embodiments, the volume mapping unit is configured to:
determining a channel and/or a frequency band to be adjusted based on the current application scene;
and determining the playing volume of the channel and/or the frequency band to be adjusted corresponding to the current environment volume based on the volume mapping relation of the channel and/or the frequency band to be adjusted corresponding to the current user.
Based on any of the above embodiments, the volume obtaining unit is configured to:
determining current environment information;
and determining the current environment volume in the sound source position based on the historical environment volume acquired under the historical environment information which is the same as the current environment information.
Based on any of the above embodiments, fig. 8 is a schematic structural diagram of a playing device provided by the present invention, and as shown in fig. 8, the device includes a device body 800, and a microphone 820, a speaker 830 and the volume adjusting device 800 as described above mounted on the device body 800.
Specifically, in the playing device, the microphone 820 may collect the environmental noise, so that the volume adjustment device 800 determines the current environmental volume based on the environmental noise, and accordingly obtains the playing volume corresponding to the current environmental volume, so as to control the volume of the speaker 830 playing the sound.
The playing device may be a mobile phone, a tablet computer, a laptop, a learning machine, a vehicle-mounted intelligent terminal, and the like, which is not specifically limited in this embodiment of the present invention.
The playing device provided by the embodiment of the invention refers to the sound source position when the volume is adjusted, so that the adjustment of the playing volume is more targeted, and the condition that the volume of speakers in all positions is completely increased to resist the noisy sense brought by noise is avoided. In addition, in the adjusting process, the volume is adjusted through the volume mapping relation determined by the current user aiming at the adjustment operation of the playing volume under the historical environment volume, so that the playing volume of the equipment can adapt to the change of the environment volume and the preference of the current user, the personalized volume adjustment is realized, and the risk that the user is uncomfortable due to the unified and fixed volume adjustment scheme is avoided.
Fig. 9 illustrates a physical structure diagram of an electronic device, and as shown in fig. 9, the electronic device may include: a processor (processor) 910, a communication Interface (Communications Interface) 920, a memory (memory) 930, and a communication bus 940, wherein the processor 910, the communication Interface 920, and the memory 930 communicate with each other via the communication bus 940. Processor 910 may invoke logic instructions in memory 930 to perform a volume adjustment method comprising: acquiring the current environment volume in the sound source direction; determining the playing volume corresponding to the current environment volume based on a volume mapping relation corresponding to the current user, wherein the volume mapping relation is determined based on the adjustment operation of the current user on the playing volume in the historical environment volume; and adjusting the volume of the loudspeaker in the sound source direction based on the playing volume corresponding to the current environment volume.
Furthermore, the logic instructions in the memory 930 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being storable on a non-transitory computer-readable storage medium, the computer program, when executed by a processor, being capable of executing the volume adjustment method provided by the above methods, the method including: acquiring the current environment volume in the sound source direction; determining the playing volume corresponding to the current environment volume based on a volume mapping relation corresponding to the current user, wherein the volume mapping relation is determined based on the adjustment operation of the current user on the playing volume in the historical environment volume; and adjusting the volume of the loudspeaker under the sound source direction based on the playing volume corresponding to the current environment volume.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the volume adjustment method provided by the above methods, the method including: acquiring the current environment volume in the sound source direction; determining the playing volume corresponding to the current environment volume based on a volume mapping relation corresponding to the current user, wherein the volume mapping relation is determined based on the adjustment operation of the current user on the playing volume in the historical environment volume; and adjusting the volume of the loudspeaker in the sound source direction based on the playing volume corresponding to the current environment volume.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units 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. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of adjusting volume, comprising:
acquiring the current environment volume in the sound source direction;
determining the playing volume corresponding to the current environment volume based on a volume mapping relation corresponding to the current user, wherein the volume mapping relation is determined based on the adjustment operation of the current user on the playing volume in the historical environment volume;
and adjusting the volume of the loudspeaker in the sound source direction based on the playing volume corresponding to the current environment volume.
2. The volume adjustment method according to claim 1, wherein the volume mapping relationship is determined based on:
determining user adjustment volume corresponding to the historical environment volume based on the adjustment operation;
determining the volume mapping relation based on the user adjustment volume corresponding to the historical environment volume and the playing volume range;
the playback volume range is determined based on a feedback operation of the current user's auditory perception for different playback volumes.
3. The volume adjustment method according to claim 1, wherein the obtaining of the current ambient volume at the sound source orientation comprises:
and acquiring current environmental noise, and carrying out sound source positioning on the current environmental noise to obtain a sound source position and current environmental volume under the sound source position.
4. The volume adjustment method according to any one of claims 1 to 3, wherein the determining the playing volume corresponding to the current environment volume based on the volume mapping relationship corresponding to the current user includes:
and determining the playing volume corresponding to the current environment volume based on the current application scene and the volume mapping relation corresponding to the current user.
5. The volume adjustment method according to claim 4, wherein the determining, based on the current application scenario and a volume mapping relationship corresponding to a current user, a playing volume corresponding to the current environment volume includes:
determining a channel and/or a frequency band to be adjusted based on the current application scene;
and determining the playing volume of the channel and/or the frequency band to be adjusted corresponding to the current environment volume based on the volume mapping relation of the channel and/or the frequency band to be adjusted corresponding to the current user.
6. The volume adjustment method according to any one of claims 1 to 3, wherein the acquiring the current ambient volume at the sound source orientation comprises:
determining current environment information;
and determining the current environment volume in the sound source position based on the historical environment volume acquired under the historical environment information which is the same as the current environment information.
7. A volume adjustment device, comprising:
the volume acquisition unit is used for acquiring the current environment volume in the sound source direction;
the volume mapping unit is used for determining the playing volume corresponding to the current environment volume based on a volume mapping relation corresponding to the current user, and the volume mapping relation is determined based on the adjustment operation of the current user on the playing volume in the historical environment volume;
and the volume adjusting unit is used for adjusting the volume of the loudspeaker in the sound source direction based on the playing volume corresponding to the current environment volume.
8. A playback apparatus comprising an apparatus body, and a microphone, a speaker, and a volume adjusting device according to claim 7 mounted on the apparatus body.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the volume adjustment method according to any one of claims 1 to 6 when executing the program.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the volume adjustment method according to any one of claims 1 to 6.
CN202210770333.7A 2022-06-30 2022-06-30 Volume adjusting method, device, equipment and storage medium Pending CN115185479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210770333.7A CN115185479A (en) 2022-06-30 2022-06-30 Volume adjusting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210770333.7A CN115185479A (en) 2022-06-30 2022-06-30 Volume adjusting method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115185479A true CN115185479A (en) 2022-10-14

Family

ID=83516088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210770333.7A Pending CN115185479A (en) 2022-06-30 2022-06-30 Volume adjusting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115185479A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116431098A (en) * 2023-06-12 2023-07-14 深圳市爱保护科技有限公司 Intelligent watch voice output method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116431098A (en) * 2023-06-12 2023-07-14 深圳市爱保护科技有限公司 Intelligent watch voice output method and system
CN116431098B (en) * 2023-06-12 2023-09-19 深圳市爱保护科技有限公司 Intelligent watch voice output method and system

Similar Documents

Publication Publication Date Title
EP3631792B1 (en) Dynamic text-to-speech response from a smart speaker
EP3123613B1 (en) Collaboratively processing audio between headset and source to mask distracting noise
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
CN106463107B (en) Cooperative processing of audio between headphones and source
US20110095875A1 (en) Adjustment of media delivery parameters based on automatically-learned user preferences
US9172345B2 (en) Personalized adjustment of an audio device
US7706551B2 (en) Dynamic volume control
US20100329490A1 (en) Audio device and method of operation therefor
US20090016540A1 (en) Auditory perception controlling device and method
US10121491B2 (en) Intelligent volume control interface
CN108845787B (en) Audio adjusting method, device, terminal and storage medium
CN104780259A (en) Automatic adjustment system and method for call voice quality
WO2023024725A1 (en) Audio control method and apparatus, and terminal and storage medium
CN115185479A (en) Volume adjusting method, device, equipment and storage medium
WO2021238458A1 (en) Method for optimizing sound quality of speaker device
CN113495713B (en) Method and device for adjusting earphone audio parameters, earphone and storage medium
US11463809B1 (en) Binaural wind noise reduction
CN110753919A (en) Volume adjusting method and device, storage medium and mobile terminal
US20230260526A1 (en) Method and electronic device for personalized audio enhancement
CN113689890A (en) Method and device for converting multi-channel signal 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