Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The volume adjusting method provided by each embodiment of the invention can be realized by terminals with multimedia playing function, such as smart televisions, bluetooth speakers, smart radios, smart phones, tablet computers, portable computers and desktop computers.
Optionally, the terminal includes a positioning component, the positioning component may be a GPS (Global positioning system), and the terminal acquires its own location information through the positioning component.
Optionally, the terminal includes an audio sensor, the terminal collects sound information through the audio sensor, and the sound information collected by the terminal includes sound information of a user in the current environment and/or sound information of the environment.
Optionally, the terminal further includes a camera assembly and/or an infrared sensor, and the terminal identifies the user in the environment and/or collects the position information of the user through the camera assembly and/or the infrared sensor.
In some embodiments, as shown in fig. 1, theterminal 110 may also establish a connection with theserver 120 through a wireless network or a wired network.
Optionally, the wireless network or wired network described above uses standard communication techniques and/or protocols. The Network is typically the Internet, but may be any Network including, but not limited to, a Local Area Network (LAN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), a mobile, wireline or wireless Network, a private Network, or any combination of virtual private networks. In some embodiments, data exchanged over a network is represented using techniques and/or formats including HyperText Mark-up Language (HTML), Extensible Mark-up Language (XML), and so forth. All or some of the links may also be encrypted using conventional encryption techniques such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet protocol Security (IPsec). In other embodiments, custom and/or dedicated data communication techniques may also be used in place of, or in addition to, the data communication techniques described above.
Theserver 120 is a background server for providing services to theterminal 110. In practical implementation, theserver 120 may be a server, a server cluster composed of several servers, or a cloud computing service center. Optionally, theserver 120 is configured to acquire and store data such as position information of theterminal 110, set play volume, and collected user behavior parameters, obtain data such as a user state, sound insulation parameters of a building, and a commonly used play volume set by the terminal through big data operation, and acquire and store data such as operating states and position information of other home appliances.
Fig. 2 is a flowchart illustrating a volume adjusting method according to an exemplary embodiment, which is exemplified by applying the volume adjusting method to the terminal, and the method may include the following steps:
step 201, obtaining the playing scene information.
The playing scene information is information related to whether the playing volume of the terminal has an influence on a user in the environment where the terminal is located.
Step 202, detecting whether the playing volume of the terminal meets a preset condition according to the playing scene information.
The preset condition is an early warning condition that the playing volume of the terminal affects a user.
Optionally, the playing volume is the playing volume of the terminal when playing the multimedia content; or, the playing volume is the playing volume when the terminal plays the multimedia content through the associated device, and the associated device is usually an external speaker device.
In step 203, if the playing volume meets the preset condition, the playing volume is reduced.
Because the volume amplification factor of the terminal can influence the amplitude of the sound during playing, the loudness of the sound is different when the amplitudes are different; the frequency modulation mode of the terminal can affect the frequency of the sound during playing, and when the frequency is different, the sharpness degree of the sound is different. The loudness is great or when sound is sharp and harsh when the terminal plays, the playing volume can be influenced, therefore, optionally, the terminal reduces the playing volume by reducing the volume amplification factor, and/or reduces the playing volume by reducing the frequency. The terminal reduces the playing volume to a value which does not affect the user.
Optionally, when the playing volume meets the preset condition, the terminal displays first prompt information, the first prompt information is used for prompting that the playing volume is turned down, the first prompt information is also used for prompting that the playing volume meets the preset condition, and the terminal displays the first prompt information and automatically turns down the playing volume. For example, when detecting that the current playing volume is 75 decibels and meets the preset condition, the terminal reduces the playing volume to 50 decibels, and displays a first prompt message that "the current playing volume is higher, so that the playing volume is reduced to 50 decibels for you to avoid influencing rest of others".
Optionally, when the play volume meets the preset condition, the terminal displays second prompt information, where the second prompt information is used to prompt to turn down the play volume and/or is used to display recommended play volume, and the second prompt information may also be used to prompt that the play volume meets the preset condition, where the recommended play volume is the recommended volume determined by the terminal and does not affect the user. And the terminal displays the second prompt message, and when receiving the operation instruction, the playing volume is reduced according to the operation instruction. For example, when the terminal detects that the current playing volume is 75 decibels and meets the preset condition, the second prompt message is displayed as "your current playing volume is higher, in order to avoid influencing rest of other people, the playing volume is adjusted to 50 decibels by clicking determination", and when the terminal receives the determined operation instruction, the playing volume is adjusted to 50 decibels.
In summary, in the volume adjustment method provided in the embodiment of the present invention, the terminal obtains the playing scene information, detects whether the playing volume will affect the user according to the playing scene information, and automatically reduces the playing volume when detecting that the playing volume will affect the user, so as to avoid affecting the surrounding users, instead of passively setting according to the user operation, so that the terminal adjusts the volume more intelligently and more accurately and more timely.
Optionally, the playing scene information includes at least one of the following information:
1. and the user state of the user in the current environment of the terminal comprises any one of a rest state and a non-rest state. When a user is in a rest state, the playing volume of the terminal generally affects the user in the environment where the terminal is located; when the user is in a non-rest state, the playing volume of the terminal generally does not affect the user in the environment where the terminal is located.
2. And the sound insulation parameter of the building where the terminal is located currently is used for indicating the sound attenuation capacity of the building. When the sound attenuation capability of the building indicated by the sound insulation parameters of the building is weak, the playing volume of the terminal usually affects users in adjacent rooms or floors; when the sound insulation parameter of the building indicates that the building has strong sound attenuation capability, the playing volume of the terminal generally has no influence on users in adjacent rooms or floors.
3. A time period type of the current time, the time period type including any one of a rest time period and a non-rest time period. When the type of the current time period is a rest time period, the playing volume of the terminal generally affects the user of the environment where the terminal is located; when the type of the time period at the current moment is a non-rest time period, the playing volume of the terminal generally does not affect the user of the environment where the terminal is located.
4. And audio parameters of the multimedia content played by the terminal. When the multimedia content includes the harsh content segment, the playing volume of the terminal when playing the content segment will generally affect the user of the environment where the terminal is located; when the multimedia content is relatively flat, the playing volume of the terminal when playing the content segment will not affect the user of the environment where the terminal is located.
5. The ambient volume of the environment in which the terminal is currently located. When the environment volume is large, the current environment is loud, and the playing volume of the terminal usually does not influence the user of the environment where the terminal is located; when the volume of the environment is small, it indicates that the current environment is quiet, and the playing volume of the terminal usually affects the user of the environment where the terminal is located.
The following description will be made on different pieces of playback scene information in different embodiments.
Optionally, when the playing scene information is in the user state, the step 202 includes the following steps, as shown in fig. 3A:
instep 301, it is detected whether the user state is a rest state.
Optionally, the user state is obtained by the terminal, or the user state is obtained by the server, and the terminal obtains the user state from the server. Optionally, the user state is obtained through big data statistics, the terminal or the server determines the user state through user behavior parameter statistics such as position information and/or sound information of the user, and/or the terminal or the server determines the user state through running state statistics of each household device used by the user. Since the processing capability of the terminal is limited in a normal case, the present embodiment will be described by taking an example in which the user status is determined by the server through big data statistics, and the terminal acquires the user status from the server.
The rest state of the user includes a state when the user is sleeping, a state when the user is working, and the like.
Instep 302, when it is detected that the user state is a rest state, it is detected whether the playback volume reaches a preset threshold.
The preset threshold is a system preset value or a user-defined value, and in general, the preset threshold is an empirical value, and the value of the preset threshold is not limited in this embodiment.
Instep 303, when it is detected that the playback volume reaches a preset threshold, it is determined that the playback volume meets a preset condition.
When the surrounding neighbors or family members are in the rest state, if the playing volume of the terminal is large, the influence is generated on the user in the rest state, and at the moment, the playing volume is determined to meet the preset condition.
Instep 304, when it is detected that the playback volume does not reach the preset threshold, the process ends.
Instep 305, when the user state is detected to be a non-rest state, the flow ends.
For example, in an exemplary example, if the user state acquired by the terminal is a rest state, the preset threshold is 50 db, and the playing volume of the terminal is 75 db, the terminal reduces the playing volume to 50 db, or the terminal displays the second prompt message, as shown in fig. 3B, which illustrates an exemplary possible display manner of the secondprompt message 310, and when the user selects and determines, the terminal reduces the playing volume to 50 db.
Optionally, in another optional embodiment based on the embodiment shown in fig. 3A, when the server statistically determines the user status according to user behavior parameters such as location information and/or voice information of the user, thestep 301 includes the following steps, as shown in fig. 4:
instep 401, the terminal identity is sent to the server.
Optionally, the terminal identifier includes at least one of an IP (Internet Protocol) address, a MAC (media access Control) address, and an ESN (Electronic Serial Number) of the terminal.
Instep 402, a user state corresponding to the terminal identifier, which is fed back by the server, is received, where the user state is determined by the server according to each user behavior parameter sent by the terminal and received within a predetermined time period.
The user behavior parameters comprise position information and/or sound information of the user, which are acquired by the terminal.
Optionally, the terminal acquires the user behavior parameters in real time through the audio sensor and/or the infrared sensor and/or the camera assembly, and sends the user behavior parameters to the server, and the server determines the user state corresponding to the terminal identifier of the terminal according to the user behavior parameters acquired in real time, and in general, the server determines the state of the family of the viewer according to the user behavior parameters. For example, the terminal detects sound information through an audio sensor and sends the sound information to the server; for another example, the terminal identifies the position information of the user through an infrared sensor and sends the position information of the user to the server; for another example, the terminal captures an environment image of the current environment through the camera assembly, the environment image includes the position information of the user, and sends the environment image to the server, and the server extracts the position information from the environment image.
Optionally, when the user behavior parameters include position information, the server determines the moving route information of the user according to the position information acquired in real time, and when it is detected that the user moves to a preset position and the time length during which the position information of the user does not change reaches a preset time length, the server determines that the user state is a rest state; otherwise, the server determines that the user state is a non-rest state. The preset position is a position where a preset area such as a bedroom, a study room and the like is located, and the preset time length is a system preset value or a user-defined value, which is not limited in this embodiment. For example, when the server detects that the user moves to a bedroom and obtains a predetermined time, it may be determined that the user is in a resting state.
In general, when the user is in a rest state, the user does not make a sound, and when the user is in a non-rest state, the user generally makes a sound, and therefore, when the server does not receive the sound made by the user detected by the terminal for a long period of time, the server can determine that the user is in a rest state. Optionally, when the user behavior parameter includes sound information, and when the server detects that the duration that the sound information does not reach the sound threshold reaches a preset duration, the server determines that the user state is a rest state; otherwise, the server determines that the user state is a non-rest state.
In some embodiments, when the terminal is playing multimedia, the user only desires that the playing volume not affect the baby, and is not required to affect all users. Optionally, the terminal receives the user state corresponding to the predetermined user, which is fed back by the server. At this time, the terminal may send only the user behavior parameters of the predetermined user to the server, or the terminal may send the user behavior parameters of all the users to the server, and the server may identify and extract the user behavior parameters of the predetermined user. For example, the terminal identifies the baby in the current environment through the infrared sensor, collects the position information of the baby and sends the position information to the server.
In an exemplary example, taking the terminal as an intelligent television as an example, assuming that the server determines that the moving route of the user is from a room a to a room B where the intelligent television is located according to the location information of the user sent by the intelligent television, and the room B is a bedroom, and the location of the room B is a preset location, when the server determines that the time that the user moves to the room B reaches a predetermined time length, it is determined that the user is in a rest state.
Optionally, in another alternative embodiment based on the embodiment shown in fig. 3A, when the server determines the user status through the running status statistics of each home device used by the user, thestep 301 includes the following steps, as shown in fig. 5:
instep 501, an acquisition request is sent to a server.
In this embodiment, the obtaining request includes a terminal identifier of the terminal, where the terminal identifier is usually an IP address, and the server queries, according to a pre-stored IP address database, location information of the terminal corresponding to the IP address of the terminal, where the IP address database includes a corresponding relationship between the IP address and the location information.
And/or the acquisition request comprises the position information of the terminal, the terminal acquires the position information of the terminal through the positioning assembly, and the position information is directly carried in the acquisition request and is sent to the server.
Instep 502, a user state fed back by the server is received, where the user state is determined by the server according to the operating states of the home appliances in the area where the terminal is located.
And the area where the terminal is located is the area determined by the server according to the terminal identifier and/or the position information. Optionally, the server determines the user status according to the time when each of the home devices is in the off state, and in this embodiment, the user status received by the terminal includes the status of the family of the viewer and/or the status of the neighbor of the viewer.
Optionally, the server determines the area where the terminal is located according to the location information of the terminal, where the area where the terminal is located may be a cell, a building, a village, or a region range of any area size divided by a user or a system. Each home device in the area where the terminal is located refers to each home device whose location information is included in the area.
For each household appliance connected with the server, in a possible implementation manner, the household appliance reports a heartbeat packet every predetermined time, and when the time length for which the server does not receive the heartbeat packet reaches a predetermined time length, the household appliance is determined to enter a closed state, for example, when the server does not receive the heartbeat packet for 5 minutes, the household appliance is determined to enter the closed state.
In some embodiments, since the server cannot receive the heartbeat packet when the home device is disconnected from the server, in another possible implementation manner, the home device sends the shutdown indication information to the server when receiving the shutdown operation, and the server determines that the home device enters the shutdown state when receiving the shutdown indication information.
When the number of the household electrical appliances in the closed state reaches the number threshold value, the server determines that the user state is in the rest state, and when the number of the household electrical appliances in the closed state does not reach the number threshold value, the server determines that the user state is in the non-rest state. For example, when the server detects that the area where the terminal is located includes 10 home devices, 8 of the home devices are in an off state, 2 of the home devices are in an on state, and the number threshold is 5, the server determines that the user state is a rest state.
In some other embodiments, since the home appliances such as the air conditioner and the refrigerator are still in the on state when the user enters the rest state, optionally, the server determines the user state according to the operation states of the home appliances in the area where the terminal is located, where the preset terminal is a terminal preset by the system or customized by the user.
In other optional embodiments, the server may also send the operation state of each home appliance in the area where the terminal is located to the terminal, and the terminal determines the user state according to the operation state of each home appliance, which is not limited in this embodiment.
In an exemplary example, taking the intelligent television in the room a as an example, the server determines that the lamp and the computer in the room B next to the room a are already in the off state, and then the server determines that the user in the room B has entered the rest state, that is, determines that the user in the environment where the intelligent television is located has entered the rest state.
Optionally, when the playing scene information is the sound insulation parameter of the building where the terminal is currently located, the step 201 includes the following step 601, and the step 202 includes the following steps 602 and 606, as shown in fig. 6:
step 601, obtaining sound insulation parameters of a building where the terminal is located currently.
Optionally, the server determines the position information of the terminal, and the server stores the corresponding relationship between the position information and the sound insulation parameter. In general, the server determines the sound insulation parameters based on previously acquired parameters such as the structure of the building, the thickness of the wall, the materials used in the building, and the builder who constructed the building. The method for determining the location information of the terminal by the server may be combined withstep 501, which is not described in detail in this embodiment.
In other optional embodiments, the terminal may also determine the sound insulation parameter of the building according to the environmental parameter, for example, when the terminal identifies that the user is not included around the terminal through the camera assembly, but the terminal may determine that the sound information is the sound information of other rooms when the sound information of the environment where the terminal is located is acquired through the audio sensor, at this time, the terminal may determine that the sound insulation parameter of the building is poor, and may determine the sound insulation parameter according to the acquired environmental volume, which is not described in this embodiment.
And step 602, determining the attenuation coefficient of the playing volume according to the sound insulation parameter.
Optionally, the terminal queries the correspondence between the sound insulation parameter and the attenuation coefficient to determine the attenuation coefficient corresponding to the sound insulation parameter, or the terminal calculates the attenuation coefficient corresponding to the sound insulation parameter according to a preset functional relationship. Wherein the higher the sound insulation capability of the building for which the sound insulation parameter is used to indicate, the greater the attenuation coefficient; the poorer the sound insulating capability of the building for which the sound insulating parameter is indicative, the smaller the attenuation coefficient.
Step 603, determining the playing volume when the playing volume is attenuated to the target position according to the attenuation coefficient.
Optionally, F ═ F0-k x d, wherein F0Is a sound parameterK is the attenuation coefficient, d is the distance between the terminal and the target location, and F is the attenuated sound parameter.
In one possible implementation, the target location is a pre-stored location in the terminal.
In another possible implementation manner, the target position is a target position corresponding to the terminal identifier, which is fed back by the server and received after the terminal sends the terminal identifier to the server. The target position is the position of other household appliances in the closed state in the environment of the terminal determined by the server, or the target position is the position of the user in the rest state determined by the server. The server determines the user state through the method of the embodiment shown in fig. 4, and determines the position of the user in the rest state, where the position may be acquired by the terminal or a preset position set in advance; the server determines the operation states of the home appliances in the area where the terminal is located by the method provided by the embodiment shown in fig. 5, and determines the location information of the home appliance in the off state.
Step 604, detecting whether the attenuated playing volume reaches a preset threshold value.
Step 605, when it is detected that the attenuated playback volume reaches a preset threshold, it is determined that the playback volume meets a preset condition.
And step 606, when the attenuated playing volume is detected not to reach the preset threshold value, the process is ended.
In an exemplary example, taking the terminal as an intelligent television in a room a as an example, the server determines that an electric lamp and a computer in a room B next to the room a are already in an off state, the server determines that a user in the room B has entered a rest state, and the server can generally acquire the positions of the electric lamp and the computer in the room B, the server sends a target position determined according to the positions of the electric lamp and the computer in the room B to the intelligent television, and the intelligent television detects whether the play volume decays to the room B and reaches a preset threshold, and if the preset threshold is detected to be reached, the intelligent television turns down the volume when the play volume is detected to be greater than the preset threshold, so as to avoid affecting the user in the room B.
Optionally, when the playing scene information is the time period type of the current time, the step 201 includes the followingstep 701, and correspondingly, the step 202 includes the followingsteps 702 and 706, as shown in fig. 7:
step 701, obtaining time information of the current time.
Optionally, when the terminal is connected to the network, the terminal acquires time information from the network; or, the terminal acquires the current system time as time information.
Step 702, detecting whether the time period type at the current moment is a rest time period.
Optionally, the terminal detects whether the time information of the current time belongs to a predetermined time period, and when the time information is detected to belong to the predetermined time period, determines that the type of the time period of the current time is a rest time period; when it is detected that the time information does not belong to the predetermined time period, it is determined that the type of the time period at the present time is a non-rest time period.
The terminal detects whether the time information is in a time range of a preset time period, and when the time information is in the time range determined by the preset time period, the terminal determines that the time information belongs to the preset time period; when the time information is not within the time range of the predetermined period of time, it is determined that the time information does not belong to the predetermined period of time.
Optionally, the predetermined time period is a fixed time period preset by the user or the system, for example, a predetermined time period is set to be 9:00 nights to 8:00 next days. Alternatively, the predetermined time period may be a time period determined by the terminal or the server according to the user status of the user in the area where the terminal is located, for example, the predetermined time period is a time period when the number of users of the user in the rest state reaches the threshold number, and the user status of each user may be determined by the method provided in the embodiment shown in fig. 4 or fig. 5.
Instep 703, when it is detected that the time period type at the current time is the rest time period, it is detected whether the playing volume reaches a preset threshold value.
Step 704, when it is detected that the playing volume reaches a preset threshold, it is determined that the playing volume meets a preset condition.
Step 705, when it is detected that the playing volume does not reach the preset threshold, the process ends.
Instep 706, when it is detected that the time period type at the current time is a non-rest time period, the process ends.
In an exemplary example, taking the terminal as an intelligent television in the room a as an example, assuming that the predetermined time period is 9:00 nights to 8:00 days after the night, the smart television detects that the current time is 10:00 nights, and determines that the type of the time period at the current moment is a rest time period, in order to avoid affecting surrounding users, the smart television turns down the volume when detecting that the playing volume is greater than a preset threshold value.
Optionally, when the playing scene information is an audio parameter of the multimedia content, the embodiment shown in fig. 2 is implemented as the following steps, as shown in fig. 8:
step 801, obtaining audio parameters of multimedia content.
Optionally, the audio parameter of the multimedia content comprises an amplitude and/or a frequency of the audio.
Step 802, detecting whether the multimedia content includes a target content segment according to the audio parameter of the multimedia content.
The target content segment is a content segment whose playing volume reaches a predetermined threshold value when being played according to the current volume magnification.
Step 803, when it is detected that the multimedia content includes the target content segment, determining that the playing volume meets a preset condition.
When the terminal plays the multimedia content, the overall playing volume may be small, and the user is not affected, but the playing volume of the segment containing part of the content during playing may affect the user, and at this time, the viewer often cannot immediately recognize and turn down the playing volume, and still may affect the surrounding users, so when the terminal detects that the multimedia content contains the target content segment, the playing volume is also determined to meet the preset condition.
And step 804, when the target content segment is played, turning down the playing volume of the target content segment.
Optionally, in this embodiment, the second prompt information displayed by the terminal is used to turn down the playing volume of the target content segment when the target content segment is played. For example, before the terminal plays the multimedia content, the display prompting message is that "the volume of the current time period exceeds 75 db, and the volume of the current time period is automatically reduced by clicking the confirmation to avoid affecting the sleep of other people", and a display schematic diagram of the terminal displaying thesecond prompting message 901 is shown in fig. 9.
In other optional embodiments, the prompt message is further configured to prompt to turn down the playing volume at a preset time before the terminal plays the target content, for example, the terminal displays a second prompt message 10 seconds before playing the target content, where the second prompt message indicates that "the volume of the content played later exceeds 75 db, and the volume of the content is automatically turned down by clicking confirmation to avoid affecting sleep of other people". Optionally, when the terminal detects that the number of times of automatically turning down the volume selected by the user reaches the number threshold, the terminal defaults to turn down the playing volume when playing the target content segment, and the number threshold is a system preset value or a user-defined value.
In summary, in the volume adjustment method provided in the embodiment of the present invention, the terminal detects whether the multimedia content includes a target content segment whose playing volume reaches the predetermined threshold when playing according to the current volume amplification factor, and when detecting that the target content segment includes the target content segment, the playing volume is reduced when playing to the target content segment, so that it is avoided that when the terminal plays a relatively smooth multimedia content and a harsh sound effect suddenly appears, the viewer cannot timely reduce the playing volume, thereby affecting the situation of surrounding users, and achieving an effect of more flexible adjustment of the playing volume.
Optionally, when the playing scene information includes the environment volume of the environment where the terminal is currently located, the step 201 includes the followingstep 1001, and the step 202 includes the following step 1002-1006, as shown in fig. 10:
step 1001, the ambient volume is acquired.
The terminal acquires the sound information through the audio sensor, and the sound information acquired by the terminal comprises the sound information played by the terminal and the sound information of the environment where the terminal is located, and the terminal can determine the sound information played by the terminal, so that the terminal can identify the part which does not belong to the sound information played by the terminal from the acquired sound information, namely the sound information of the environment where the terminal is located, and acquire the volume of the environment.
Step 1002, detecting whether the ambient volume is less than a preset ambient volume.
The preset environment volume is a system preset value or a user-defined value.
Because the whole degree of brouhaha is different in the environment of difference, for example, when the environment that the terminal was located was rural, general environment volume was lower, and preset environment volume this moment is also lower usually, and when the environment that the terminal was located was the city, general environment volume was higher, and preset environment volume this moment is also higher usually. Therefore, optionally, the preset environment volume is determined by the terminal or the server according to the environment volumes acquired by the terminal history through big data statistics. Optionally, the terminal uses the median of each acquired environment volume as a preset environment volume, or the terminal uses the average of each acquired environment volume as a preset environment volume, or the terminal uses the mode of each acquired environment volume as a preset environment volume.
When the ambient volume is less than the preset ambient volume, it usually indicates that the user is in a rest state; when the ambient volume reaches the preset ambient volume, it usually indicates that the user is in a non-resting state.
Step 1003, when the ambient volume is smaller than the preset ambient volume, detecting whether the playing volume reaches a preset threshold value.
Step 1004, when it is detected that the playing volume reaches a preset threshold, determining that the playing volume meets a preset condition.
Instep 1005, when it is detected that the playing volume does not reach the preset threshold, the process ends.
Instep 1006, when the ambient volume reaches the preset ambient volume, the process ends.
Optionally, in another optional embodiment based on the foregoing embodiments, in step 203, before turning down the playing volume, the terminal further includes the following steps, as shown in fig. 11:
instep 1101, N play volumes set by the terminal history are obtained.
Wherein N is an integer of 1 or more. The terminal stores the N play volumes set by the history in the terminal or stores the N play volumes in a server.
Step 1102, determining a common playing volume according to the N playing volumes.
Optionally, the terminal uses the median of the N playing volumes as a common playing volume, or the terminal uses the average of the N playing volumes as a common playing volume, or the terminal uses the mode of the N playing volumes as a common playing volume.
Step 1103, detecting whether the volume of the common broadcast is greater than a preset threshold.
And step 1104, when the common playing volume is not greater than the preset threshold, turning down the playing volume.
And 1105, when the volume of the commonly used playing is greater than the preset threshold, displaying a third prompt message, where the third prompt message is used for prompting to enter the earphone mode.
When the common playing volume is larger than the preset threshold value, the playing volume generally set by the user is large, the hearing of the user may be obstructed at the moment, the user is likely to be unable to normally watch the multimedia content played by the terminal after the volume is reduced, and at the moment, the terminal can display prompt information for prompting to enter an earphone mode, so that the user is not influenced to watch the multimedia content through the terminal, and surrounding users are not influenced.
In summary, according to the volume adjustment method provided in the embodiment of the present invention, by acquiring the play volume historically set by the terminal, when the commonly used play volume determined according to the play volume historically set by the terminal is greater than the preset threshold, it indicates that the volume generally set by the viewer is relatively large, and the hearing of the user may be not sensitive enough, and at this time, the user may be prompted to enter the earphone mode without reducing the play volume, so that the effect of ensuring normal viewing of the user is achieved on the premise of avoiding affecting surrounding users.
In an exemplary example, the terminal obtains 20 historically set play volumes, determines that the common play volume is 70 decibels according to the 20 play volumes, assumes that the preset threshold is 50 decibels and the current play volume of the terminal is 75 decibels, and prompts the user to wear the headset to enter the headset mode when the terminal detects that the current play volume is greater than the preset threshold because the common play volume is greater than the preset threshold.
It should be noted that, in each of the above embodiments, a single piece of play scene information is taken as an example, but in actual implementation, the play scene information may include a combination of any plurality of pieces of play scene information, and then the implementation manner may be regarded as a combination of the volume adjustment methods shown in the above embodiments, as shown in fig. 12, the terminal acquires the play volume, time information at the current time, environmental volume, content parameters, and the like, and detects whether the play volume needs to be reduced by combining parameters such as a sound insulation parameter obtained through a server big data operation, a user state, and a common play volume, and when it is detected that the play volume needs to be reduced, the play volume is reduced.
Referring to fig. 13, a schematic structural diagram of a volume adjustment device according to an embodiment of the invention is shown. The apparatus may be implemented as the above terminal by software, hardware or a combination of both. The device includes:
an obtainingmodule 1310, configured to execute step 201, step 601,step 701, step 801, andstep 1001.
A detectingmodule 1320, configured to perform the step 202.
Anadjusting module 1330, configured to perform step 203, step 804, andstep 1104.
Optionally, the detectingmodule 1320 includes:
a first detecting unit, configured to performstep 301.
A second detecting unit, configured to performstep 302.
A first determining unit, configured to performstep 303.
Optionally, the obtainingmodule 1310 includes:
a first sending unit, configured to executestep 401.
A first receiving unit, configured to performstep 402.
Optionally, the obtainingmodule 1310 includes:
a second sending unit, configured to executestep 501.
A second receiving unit, configured to performstep 502 described above.
Optionally, the detectingmodule 1320 includes:
a second determining unit, configured to perform step 602.
A third determining unit, configured to perform step 603.
A third detecting unit, configured to perform step 604.
A fourth determining unit, configured to execute step 605.
Optionally, the detectingmodule 1320 includes:
a fourth detecting unit, configured to perform step 802.
A fifth determining unit, configured to perform step 803 described above.
Optionally, the detectingmodule 1320 includes:
a fifth detecting unit, configured to performstep 702.
A sixth detecting unit, configured to execute thestep 703.
A sixth determining unit, configured to performstep 704.
Optionally, the detectingmodule 1320 includes:
a seventh detecting unit, configured to performstep 1002 above.
An eighth detecting unit, configured to executestep 1003.
A seventh determining unit, configured to performstep 1004 described above.
Optionally, the apparatus further comprises:
and a volume obtaining module, configured to performstep 1101.
A determining module, configured to performstep 1102.
And a volume detection module, configured to execute thestep 1103.
A display module, configured to performstep 1105.
Fig. 14 illustrates a block diagram of a terminal 1400 provided by an embodiment of the invention, which may include Radio Frequency (RF)circuitry 1401,memory 1402 including one or more computer-readable storage media,input unit 1403,display unit 1404, sensor 1405,audio circuitry 1406, wireless fidelity (WiFi)module 1407, aprocessor 1408 including one or more processing cores, andpower supply 1409. Those skilled in the art will appreciate that the terminal structure shown in fig. 14 is not intended to be limiting and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. Wherein:
RF circuit 1401 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information from a base station and then processing the received downlink information by one ormore processors 1408; in addition, data relating to uplink is transmitted to the base station. In general, theRF circuitry 1401 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, theRF circuit 1401 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
Thememory 1402 may be used to store software programs and modules, and theprocessor 1408 may execute various functional applications and data processing by operating the software programs and modules stored in thememory 1402. Thememory 1402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, thememory 1402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, thememory 1402 may also include a memory controller to provide access to thememory 1402 by theprocessor 1408 and theinput unit 1403.
Theinput unit 1403 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment,input unit 1403 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to theprocessor 1408, and can receive and execute commands sent from theprocessor 1408. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. Theinput unit 1403 may include other input devices in addition to a touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Thedisplay unit 1404 may be used to display information input by or provided to the user, as well as various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. Thedisplay unit 1404 may include a display panel, and optionally, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation may be communicated to theprocessor 1408 to determine the type of touch event, and theprocessor 1408 may then provide a corresponding visual output on the display panel based on the type of touch event. Although in FIG. 14 the touch sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 1405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 1406, a speaker, and a microphone may provide an audio interface between the user and the terminal. Theaudio circuit 1406 can transmit the electrical signal converted from the received audio data to the speaker, and the electrical signal is converted into a sound signal by the speaker and output; on the other hand, the microphone converts a collected sound signal into an electric signal, converts the electric signal into audio data after being received by theaudio circuit 1406, and then processes the audio data by the audiodata output processor 1408, and then passes through theRF circuit 1401 to be transmitted to, for example, another terminal, or outputs the audio data to thememory 1402 for further processing. Theaudio circuitry 1406 may also include an earbud jack to provide peripheral headset communication with the terminal.
WiFi belongs to short-range wireless transmission technology, and the terminal can help the user send and receive e-mail, browse web pages, access streaming media, etc. through theWiFi module 1407, which provides wireless broadband internet access for the user. Although fig. 14 shows theWiFi module 1407, it is understood that it does not belong to the essential constitution of the terminal and can be omitted entirely as needed within the scope not changing the essence of the invention.
Theprocessor 1408 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in thememory 1402 and calling data stored in thememory 1402, thereby performing overall monitoring of the handset. Optionally,processor 1408 may include one or more processing cores; preferably,processor 1408 may integrate an application processor that handles primarily operating system, user interface, and applications, etc. and a modem processor that handles primarily wireless communications. It is to be appreciated that the modem processor described above may not be integrated intoprocessor 1408.
The terminal also includes a power supply 1409 (e.g., a battery) for powering the various components, which may preferably be logically connected to theprocessor 1408 via a power management system that provides management of charging, discharging, and power consumption via the power management system. Thepower supply 1409 can also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, theprocessor 1408 in the terminal executes one or more program instructions stored in thememory 1402, so as to implement the volume adjustment method provided in the above-described method embodiments.
It should be noted that: in the volume adjustment device provided in the above embodiment, when the playing volume is reduced, only the division of the above functional modules is taken as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the volume adjusting device and the volume adjusting method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.