CN114845213A - Method for adjusting volume of terminal and terminal - Google Patents

Method for adjusting volume of terminal and terminal Download PDF

Info

Publication number
CN114845213A
CN114845213A CN202210486558.XA CN202210486558A CN114845213A CN 114845213 A CN114845213 A CN 114845213A CN 202210486558 A CN202210486558 A CN 202210486558A CN 114845213 A CN114845213 A CN 114845213A
Authority
CN
China
Prior art keywords
terminal
sound
type
environment
mode
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
CN202210486558.XA
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN202210486558.XA priority Critical patent/CN114845213A/en
Publication of CN114845213A publication Critical patent/CN114845213A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a method and a terminal for adjusting the volume of the terminal, which are used in the field of volume adjustment and comprise the following steps: periodically detecting whether the terminal is in a stable state; when the terminal is in a stable state, determining the environmental sound type of the environment where the terminal is located and determining the spatial scene type of the environment where the terminal is located; determining a prompt mode of the terminal according to the environment sound type and the space scene type; and when the terminal needs to execute the reminding operation, the control terminal executes the reminding operation according to the reminding mode. When the terminal needs to execute the operation of playing the audio, determining the type of the environmental sound of the current environment of the terminal and determining the target application of the terminal for playing the audio; determining an audio mode of the terminal for playing audio according to the environment sound type and the target application; and controlling the terminal to play audio according to the audio mode. In the embodiment of the application, the prompt mode or the audio mode of the terminal is determined by determining the type of the environmental sound, so that the volume of the sound emitted from the terminal can be automatically adjusted.

Description

Method for adjusting volume of terminal and terminal
Technical Field
The embodiment of the application relates to a volume adjustment neighborhood, and in particular relates to a method for adjusting volume of a terminal and the terminal.
Background
With the increasing functions of terminal devices, the terminal devices are commonly used. In the prior art, the incoming call ringtone or vibration of the terminal equipment, the media sound, and the volume of the receiver and the loudspeaker are required to be respectively set manually by a user. In the existing terminal devices, whether the volume is prompted by an incoming call or played by video/music/call, the volume is controlled by a user through a physical volume key or a screen virtual key (volume bar).
In the aspect of incoming call reminding sound, a user can select one mode from a ringing mode and a mute mode, and when the user defaults to use the ringing mode, the embarrassing situation caused by sudden ringing of the ring in a meeting or quiet occasion can occur; if the user uses a 'mute/do not disturb' mode everyday, the situation that the call/information can not be answered in time exists; when playing video/music, although the mobile phone adopts the incoming call mute mode, when playing content, the last playing volume may be recorded, and the sound is loud in a quiet environment, which causes embarrassment, and in the process of calling, the sound volume often needs to be manually adjusted to be large in a noisy environment, so that the sound of the other party can be clearly heard.
When the user is in different scenes, the user is required to manually adjust various volumes of the terminal according to various scenes, and the operation is more complicated and inconvenient.
Disclosure of Invention
The embodiment of the application provides a method for adjusting the volume of a terminal and the terminal, which can automatically adjust the volume of sound emitted from the terminal.
The embodiment of the application provides a method for adjusting the volume of a terminal, which comprises the following steps:
periodically detecting whether the terminal is in a stable state;
when the terminal is in a stable state, determining the environmental sound type of the environment where the terminal is located and determining the spatial scene type of the environment where the terminal is located;
determining a prompt mode of the terminal according to the environment sound type and the space scene type;
and when the terminal needs to execute the reminding operation, controlling the terminal to execute the reminding operation according to the reminding mode.
Further, the determining the type of the environmental sound of the environment where the terminal is located includes:
controlling an audio acquisition module of the terminal to acquire sound parameters of the environment where the terminal is located;
and determining the type of the environmental sound of the environment where the terminal is located according to the sound parameters.
Further, the determining the type of the spatial scene of the environment where the terminal is located includes:
controlling an audio acquisition module of the terminal to acquire sound parameters of the environment where the terminal is located;
determining the target sound pressure amplitude of the environment where the terminal is located according to the sound parameter;
and determining a preset space scene type corresponding to the preset sound pressure amplitude and the target sound pressure amplitude in a plurality of preset space scene types as the space scene type of the environment where the terminal is located, wherein each preset space scene type has at least one corresponding preset sound pressure amplitude.
Further, the determining the type of the environmental sound of the environment where the terminal is located and the determining the type of the spatial scene of the environment where the terminal is located include:
controlling an audio acquisition module of the terminal to acquire a plurality of sound parameters of the environment where the terminal is located in the current acquisition period;
and determining the environment sound type and the space scene type according to the sound parameters in the current acquisition period.
Further, the periodically detecting whether the terminal is in a stable state includes:
detecting whether the environmental sound type of the terminal changes or not according to adjacent sound parameters acquired by the terminal in the current acquisition period;
if the environmental sound type changes, determining that the terminal is not in a stable state, and returning to execute the step of detecting whether the environmental sound type of the terminal changes or not according to adjacent sound parameters of the terminal in the next acquisition period;
if the type of the environmental sound is not changed, detecting whether the motion state of the terminal is changed or not according to the previous displacement parameter and the next displacement parameter of the terminal in the current acquisition period;
if the motion state of the terminal is not changed, determining that the terminal is in a stable state;
and if the motion state of the terminal changes, determining that the terminal is not in a stable state, and returning to execute the step of detecting whether the environmental sound type of the terminal changes or not according to the adjacent sound parameters of the terminal in the next acquisition period.
Further, after determining the prompt mode of the terminal according to the environment sound type and the spatial scene type, before controlling the terminal to execute the prompt operation according to the prompt mode when the terminal needs to execute the prompt operation, the method further includes:
if the prompt mode of the terminal is a light disturbance mode or a reminding mode, judging whether the prompt mode of the terminal is determined to be a do-not-disturbance mode within a preset time length before the current acquisition period;
and if so, modifying the prompt mode of the terminal into a do-not-disturb mode.
Further, the determining the prompt mode of the terminal according to the environment sound type and the spatial scene type includes:
if the environment sound type is a single voice environment with voice as the main part and the space scene type is a meeting room or a classroom, determining that the prompt mode of the terminal is a do-not-disturb mode;
if the environment sound type is a multi-person sound environment with the person sound as the main part and the space scene type is a meeting room or a classroom, determining that the prompt mode of the terminal is a light disturbance mode;
if the type of the environmental sound is a noisy environment with the main environmental sound and the type of the spatial scene is outdoor, determining that the prompt mode of the terminal is a reminding mode;
if the environment sound type is a quiet environment and the acceleration sensor of the terminal determines that the terminal is in a standing state, determining that a prompt mode of the terminal is a do-not-disturb mode;
and if the environment sound type is a quiet environment and the acceleration sensor of the terminal determines that the terminal is in a moving state, determining that the prompt mode of the terminal is a light disturbance mode.
The embodiment of the application also provides a method for adjusting the volume of the terminal, which comprises the following steps:
when a terminal needs to execute audio playing operation, determining the type of environmental sound of the current environment of the terminal and determining a target application of the terminal for playing audio;
determining an audio mode of the terminal for playing the audio according to the environment sound type and the target application;
and controlling the terminal to play audio according to the audio mode.
Further, the determining, according to the environmental sound type and the target application, the audio feature when the terminal plays the audio includes:
if the target application is an application for playing videos or music and the type of the environmental sound is a quiet environment, determining that the audio mode is a low volume mode with a preferred sound quality;
if the target application is an application for playing videos or music and the type of the environmental sound is a noisy environment, determining that the audio mode is a medium-high volume mode with priority on volume;
and if the target application is a voice call application, determining that the audio mode is a noise-reduction high-sound-quality high-volume mode.
An embodiment of the present application further provides a terminal, including:
the system comprises a central processing unit, a memory, an input/output interface, a wired or wireless network interface and a power supply;
the memory is a transient storage memory or a persistent storage memory;
the central processing unit is configured to communicate with the memory and execute the instruction operation in the memory to execute the method for adjusting the volume of the terminal.
According to the technical scheme, the embodiment of the application has the following advantages:
in the embodiment of the application, a prompt mode of the terminal is determined according to the type of the environmental sound and the type of the spatial scene; when the terminal needs to execute the reminding operation, the control terminal executes the reminding operation according to the prompt mode and determines the audio mode of the terminal for playing the audio according to the environment sound type and the target application; the control terminal plays audio according to the audio mode; the volume of the sound emitted by the terminal can be automatically adjusted.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a flow chart of adjusting the volume of a terminal according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating another process of adjusting the volume of a terminal according to an embodiment of the disclosure;
fig. 3 is a flowchart illustrating another process of adjusting the volume of a terminal according to an embodiment of the disclosure;
fig. 4 is a logic framework diagram for adjusting the volume of a terminal according to an embodiment of the present disclosure;
FIG. 5 is a logic diagram of alert tone detection as disclosed in an embodiment of the present application;
FIG. 6 is a diagram of content tone detection logic disclosed in an embodiment of the present application;
FIG. 7 is a schematic illustration of a sound pressure range disclosed in an embodiment of the present application;
fig. 8 is a schematic diagram of a terminal disclosed in the embodiment of the present application.
Detailed Description
For better understanding of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
In the description of the embodiments of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the embodiments of the present application and simplifying the description, but do not indicate or imply that the referred devices or elements must have specific orientations, be configured in specific orientations, and operate, and thus, should not be construed as limiting the embodiments of the present application.
In the description of the embodiments of the present application, it should be noted that the terms "mounted," "connected," and "connected" are to be construed broadly and may be, for example, fixedly connected, detachably connected, or integrally connected unless explicitly stated or limited otherwise; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. Specific meanings of the above terms in the embodiments of the present application can be understood in specific cases by those of ordinary skill in the art.
In the prior art, the incoming call ringtone or vibration of the terminal equipment, the media sound, and the volume of the receiver and the loudspeaker are required to be respectively set manually by a user. In the existing terminal devices, whether the volume is prompted by an incoming call or played by video/music/call, the volume is controlled by a user through a physical volume key or a screen virtual key (volume bar). However, it is cumbersome to adjust the volume many times by human, and the adjustment is not timely enough. Therefore, the embodiment of the application provides a method for adjusting the volume of a terminal, which can automatically adjust the volume of the terminal.
It can be understood that the terminal described in this embodiment of the present application may be a mobile phone or an electronic watch having a function of playing sound, and the like, and is not limited herein specifically, and the following terminal is not described in detail again. The types of sound played by the terminal are mainly two: a reminder tone and a content tone. The reminding sound is mainly sound mainly aiming at reminding, such as ring tone, key feedback sound and the like, and is not limited in detail here; the content audio is mainly audio with the main purpose of transmitting information, such as video soundtrack, music, voice message, conversation, etc., and is not limited herein. Therefore, based on the difference between the reminding sound and the content sound, when the terminal adjusts the volume of the sound, it is necessary to distinguish whether the currently played sound is the reminding sound or the content sound. When the terminal plays the sound, it may determine whether the current played sound is a reminding sound or a content sound according to the application of the terminal, for example, if the current application needing playing the sound is an alarm clock, it may determine that the current played sound is the reminding sound, and if the current application needing playing the sound is a video player, it may determine that the current played sound is the content sound. The alert tone is generally preset, and the content tone is generally a sound carried by the application.
The following describes a process of adjusting the terminal volume by taking the alert tone as an example, as shown in fig. 1, the specific steps are as follows:
101. and periodically detecting whether the terminal is in a stable state.
The terminal can periodically detect through a plurality of sensors on the terminal, and then determine whether the terminal is in a stable state. It will be appreciated that the periodic detection may be specifically set according to the actual situation. Since the terminal may change from a to B location/environment/state for a period of time, the result of a detection and the matched feedback form are no longer applicable to the situation where B is located, and therefore, periodic detection needs to be set when power consumption allows.
The detection period may be set to be 5s detection every 5s or 6 s detection every 8 s, and is not limited herein, and preferably 5s detection every 5 s. If the environmental sound type of the environment where the terminal is located or the motion state of the terminal is found to be changed through information collected by a sensor (sensor) on the terminal in the process of one period of detection, the terminal is not considered to be in a stable state. For example, if the data collected in the 3 rd time period is compared with the data collected in the 4 th time period in the detection process lasting for 5s, and it is found that the environmental sound type of the environment where the terminal is located or the motion state of the terminal has changed, the terminal may be considered not to be in the stable state.
102. The method comprises the steps of determining the type of environment sound of the environment where the terminal is located and determining the type of a space scene of the environment where the terminal is located.
When the terminal is in a stable state, determining the type of the environmental sound of the environment where the terminal is located and determining the type of the space scene of the environment where the terminal is located. Specifically, in the process of detecting in one period, if it is found that the type of the ambient sound in which the terminal is located and the motion state of the terminal do not change, the terminal may be considered to be in a stable state in the one detection period. At this time, the environment sound type of the environment where the terminal is located can be determined according to the audio acquisition module on the terminal, and the space scene type of the environment where the terminal is located can be determined according to the audio acquisition module or other sensors on the terminal. It is understood that the audio collection module may be a microphone or a device for collecting sound, and is not limited herein. The other sensor may be an acceleration sensor, a gyroscope, a distance sensor, a light sensor, or the like, and is not limited herein.
The type of the environmental sound refers to a type of sound of an environment where the terminal is located, and the type of the environmental sound, such as a noisy environment, a quiet environment, and the like, may be determined according to the collected sound of the surrounding environment, which is not limited herein. The spatial scene type refers to a specific scene with spatial significance, such as a conference room, a living room, and the like, where the terminal is located, and is not limited herein.
103. And determining a prompt mode of the terminal according to the environment sound type and the space scene type.
The terminal can determine the prompt mode of the terminal according to the determined environment sound type and the determined space scene type in the stable state. The prompt mode is mainly used for determining the representation form of the prompt tone and can be preset. The alert mode may be one of a do-not-disturb mode, a light-disturb mode, or a reminder mode.
Specifically, the prompting mode may be preset, and when the environmental sound collected by the audio collection module is greater than or equal to a certain preset sound pressure amplitude, it is determined that the environmental sound type is a noisy environment in which the environmental sound is dominant, and the spatial scene type is outdoor, and the prompting mode is determined to be the prompting mode. When the environment sound collected by the audio collection module is smaller than the preset sound pressure amplitude, the environment sound type is judged to be a quiet environment, and the space scene type is indoor, and the prompt mode is determined to be a do-not-disturb mode. It is understood that the preset sound pressure amplitude may be 50dB or 60dB, which is not limited herein, and the preset sound pressure amplitude may be modified accordingly according to actual situations.
104. And the control terminal executes reminding operation according to the prompt mode.
When the terminal determines that the sound to be played outside is a prompt sound, the terminal executes a reminding operation according to the prompt mode determined in the stable state, so that different reminding operations can be executed according to specific conditions.
Specifically, when the terminal determines that the prompt mode is a do-not-disturb mode, the sound playing device is controlled not to play sound, and the vibration device is controlled to execute vibration operation, wherein the vibration is gradually increased from the weak vibration; when the terminal determines that the prompt mode is the light disturbance mode, controlling the sound (ring) played by the sound playing device to fade from weak to strong, and controlling the vibration device to execute strong vibration prompt; and when the terminal determines that the prompt mode is the reminding mode, controlling the sound playing device to play amplified sound (ring) for reminding, and controlling the vibrating device to execute strong vibration reminding.
In the embodiment of the application, when the prompt tone needs to be played, the prompt mode of the terminal is determined by determining the type of the environmental sound, and the volume of the sound played outside the terminal can be automatically adjusted according to different prompt modes.
The embodiment of the present application further provides a specific process for adjusting the volume of the terminal, as shown in fig. 2, the specific steps are as follows:
201. and detecting whether the environmental sound type of the terminal changes or not according to the adjacent sound parameters collected by the terminal. If yes, go to step 201, otherwise go to step 202.
And detecting whether the environmental sound type of the terminal changes or not according to the adjacent sound parameters acquired by the terminal in the current acquisition period. Specifically, two environmental sound types can be obtained according to any two adjacent sound parameters in the current acquisition period, and if the two environmental sound types are different, the environmental sound type of the terminal can be considered to be changed. And if the environmental sound type changes, determining that the terminal is not in a stable state, acquiring adjacent sound parameters of the terminal in the next acquisition period, and detecting whether the environmental sound type of the terminal changes again.
202. And detecting whether the motion state of the terminal changes or not according to the previous displacement parameter and the next displacement parameter of the terminal. If yes, go to step 201, otherwise go to step 203.
And if the type of the environmental sound is not changed, detecting whether the motion state of the terminal is changed or not according to the previous displacement parameter and the next displacement parameter of the terminal in the current acquisition period. It can be understood that the change of the motion state specifically refers to whether the terminal changes from the moving state to the stationary state or whether the terminal changes from the stationary state to the moving state, and if the terminal keeps the stationary state or keeps the moving state in the current acquisition period, it can be considered that the motion state of the terminal does not change. The terminal can obtain a plurality of displacement parameters in the current acquisition period, and in the plurality of displacement parameters, if any two adjacent displacement parameters (namely the previous displacement parameter and the next displacement parameter) change, the motion state of the terminal is determined to change.
And if the motion state of the terminal changes, determining that the terminal is not in a stable state, acquiring adjacent sound parameters of the terminal in the next acquisition period again, and detecting whether the environment sound type of the terminal changes.
203. And determining that the terminal is in a stable state.
And if the motion state of the terminal is not changed, determining that the terminal is in a stable state. It will be appreciated that determining that the terminal is in a stable state requires two conditions to be met: the type of the environmental sound of the first terminal is not changed, and the motion state of the second terminal is not changed. And the condition of the cycle termination is that the terminal collects the sound parameters of a target collection period within the target collection period, and the environmental sound type of the environment where the terminal is located and the motion state of the terminal are not changed.
204. The method comprises the steps of determining the type of environment sound of the environment where the terminal is located and determining the type of a space scene of the environment where the terminal is located.
When the environment sound type of the environment where the terminal is located is determined, the audio acquisition module of the control terminal may be used to acquire the sound parameters of the environment where the terminal is located, where the sound parameters include environment background sound or human voice, and the like, and the details are not limited herein. And determining the type of the environment sound of the environment where the terminal is located according to the sound parameters. Specifically, when the terminal is in a stable state, a plurality of collected sound parameters may be acquired, and relevant sound features may be extracted from the plurality of sound parameters to determine an environmental sound type of an environment in which the terminal is located.
The sound parameters of the environment where the terminal is located, which are collected by the audio collection module, can also be used for determining the type of the spatial scene of the environment where the terminal is located. Specifically, the target sound pressure amplitude of the terminal environment may be determined according to the sound parameter, and then, a preset space scene type, in the plurality of preset space scene types, where the preset sound pressure amplitude corresponds to the target sound pressure amplitude is determined as the space scene type of the environment where the terminal is located. Each preset space scene type has at least one corresponding preset sound pressure amplitude. Specifically, a mapping relationship between the preset spatial scene type and the preset sound pressure amplitude can be established to form a mapping library. And setting at least one corresponding preset sound pressure amplitude for each preset space scene type in the mapping library. And when the target sound pressure amplitude of the terminal environment is determined to be within a certain preset sound pressure amplitude range, determining the preset space scene type corresponding to the preset sound pressure amplitude as the space scene type of the environment where the terminal is located.
It is understood that, as shown in fig. 7, the magnitude of the sound may be expressed in db (a) by the magnitude of the sound pressure. In GB3096-2008, 45dB of bedroom, 55dB of living room, 60dB of meeting room, 65dB of movie theater, 50dB of museum, 70dB-80dB of square road and other scenes have different sound pressure amplitudes, and the scene type can be identified by utilizing the sound pressure amplitudes. And the sound parameters collected by the audio collection module are processed by algorithms such as noise reduction, remote pickup and the like. Separating out human voice and background noise, and outputting amplitude signals with corresponding sound pressure of 0dB-100dB by the background noise after algorithm processing. Setting an algorithm library, setting a scene characteristic acoustic parameter file in the algorithm library, converting the real-time acquired environmental background sound into a sound pressure amplitude value by setting scene characteristic sound pressure thresholds of bedroom 45dB, living room 55dB, meeting room 65dB, cinema 65dB, square road 70dB-80dB and the like, and comparing the sound pressure amplitude value with the scene characteristic sound pressure parameter file built in the algorithm library one by one to judge which type of space scene is.
Furthermore, in order to make the acquired sound parameters more accurate, the audio acquisition module needs to acquire a plurality of sound parameters of the environment where the terminal is located in the current acquisition period, and determine the environment sound type and the space scene type of the environment where the terminal is located according to the plurality of sound parameters in the current acquisition period. It is understood that the current acquisition period mainly refers to an acquisition period in which the terminal is in a stable state, that is, the type of the environmental sound of the terminal in the current acquisition period and the motion state of the terminal are not changed. The plurality of sound parameters contains as much as possible all sound parameters within the current acquisition period.
205. And determining a prompt mode of the terminal according to the environment sound type and the space scene type.
Step 205 is similar to step 103, and is not described herein again.
206. And if the prompt mode is the light disturbance mode or the reminding mode, judging whether the prompt mode of the terminal is determined to be the do-not-disturbance mode within the last preset time. If yes, go to step 208, otherwise go to step 207.
Before the terminal needs to execute the reminding operation, the terminal needs to judge whether the prompt mode of the terminal is determined as the do-not-disturb mode within the last preset time of the current acquisition cycle. It is understood that there are multiple acquisition cycles within each preset time period, which may be 5 minutes or 6 minutes, and is not limited herein, and is preferably 5 minutes. Specifically, whether the terminal has the do-not-disturb mode can be judged within the last 5 minutes.
207. And the control terminal executes reminding operation according to the prompt mode.
Step 207 is similar to step 104, and detailed description thereof is omitted here.
208. And modifying the prompt mode of the terminal into a do-not-disturb mode.
And if the prompt mode of the terminal is determined to be the do-not-disturb mode, executing the operation of the do-not-disturb mode. And if the prompt mode of the terminal is the light disturbance mode or the reminding mode, and the terminal determines that the prompt mode of the terminal is determined to be the do-not-disturbance mode within the last preset time before the current acquisition cycle, the terminal modifies the prompt mode into the do-not-disturbance mode.
Specifically, as shown in fig. 5, when the terminal is a mobile phone, whether the environmental sound type (environment) of the mobile phone changes may be determined according to the adjacent sound parameters of the current collection period collected by a microphone on the mobile phone; whether the motion state of the mobile phone changes or not can be determined according to an acceleration sensor on the mobile phone, and the motion state can be understood as the state or the position of the mobile phone. In the current acquisition period, it is necessary to determine whether the environment of the mobile phone and the state of the mobile phone change. And when the environment of the mobile phone and the state or the position of the mobile phone are not changed, determining a prompt mode according to the environment sound type and the space scene type obtained in the current acquisition period. If the environment is detected to be changed in the current collection period radio reception process of the microphone, detecting the next period; if the environment is not changed, detecting whether the state or the position of the mobile phone is changed according to the acceleration sensor; if the environment is changed, detecting whether the environment is changed or not in the next acquisition period, and if the environment is not changed, determining that the corresponding acquisition period of the terminal is in a stable state. And determining a prompt mode of the terminal according to the environment sound type and the space scene type obtained in the stable state. Before the terminal needs to execute the reminding operation, if the prompt mode of the terminal is determined to be the do-not-disturb mode, executing the operation of the do-not-disturb mode; if the prompt mode of the terminal is the light disturbance mode or the reminding mode, judging whether the prompt mode of the terminal is determined as the do-not-disturbance mode within a preset time length before the current acquisition period; if so, modifying the prompt mode of the terminal into a do-not-disturb mode; if not, the operation is executed according to the light disturbance mode or the reminding mode.
The above description describes the process of adjusting the terminal volume by taking the alert tone as an example, and the following description describes the process of adjusting the terminal volume by taking the content tone as an example, as shown in fig. 3, the specific steps are as follows:
301. the method comprises the steps of determining the type of the environmental sound of the environment where the terminal is located currently and determining a target application used by the terminal for playing audio.
When the terminal determines that the terminal needs to perform an audio playing operation (i.e., playing content sound) according to the application on the terminal, the type of the environmental sound of the current environment can be determined according to an audio acquisition module on the terminal, which is similar to step 102 and is not described here again. Meanwhile, the terminal can determine the target application for playing the audio according to the application program on the terminal. The target application may be determined based on the program determined to be executing. The target application may be a video playing application or a call application, and is not limited herein.
302. And determining an audio mode of the terminal for playing the audio according to the environment sound type and the target application.
After the terminal determines the environment sound type and the target application of the current environment, the audio mode of the terminal for playing the audio is determined according to the environment sound type and the target application. The audio mode refers to a relevant characteristic of the audio, and may be a sound quality priority mode, a volume priority mode, or a strong sound and strong volume mode, which is not limited herein. At this time, the type of the ambient sound is mainly distinguished into a noisy environment or a quiet environment, and the audio mode of the terminal playing the audio can be determined according to the relevant target application.
303. And controlling the terminal to play audio according to the audio mode.
And when the audio mode of the terminal for playing the audio is determined, controlling the terminal to play the audio according to the audio mode. As shown in fig. 6, in a detection period, if the target application is a video playing application, when it is detected that the ambient sound type of the mobile phone is in a quiet environment, and it is determined that the audio mode is a sound quality priority mode, the audio is automatically adjusted to a low volume when playing audio to ensure the sound quality of the audio; when the environment sound type of the mobile phone is detected to be in a noisy environment, the audio mode is determined to be a volume priority mode, the audio mode is automatically adjusted to be medium and high volume when the audio is played, and meanwhile, when the user is detected to press a volume key +, a certain tone quality is allowed to be sacrificed in a short period to be improved to the maximum volume. If the target application is a Microphone (MIC) broadcast or a call scene, determining to perform noise reduction and reception when the audio mode is a strong-sound-quality and strong-volume mode.
In the implementation of the application, when the terminal needs to play the content sound, the audio mode of the terminal is determined by determining the type of the environmental sound and the target application, and the volume or the tone quality of the sound played outside the terminal can be automatically adjusted according to different audio modes.
Further, the following describes a process of intelligently adjusting sound of a mobile phone by using the mobile phone as a terminal and combining with fig. 4:
when the sound which needs to be played outside the mobile phone is a prompt sound, the type of the environmental sound of the environment where the mobile phone is located can be determined according to the sound picked up by a microphone on the mobile phone, the motion state of the mobile phone can be determined according to an acceleration Sensor or a displacement Sensor on the mobile phone, the type of the environmental sound and the motion state of the mobile phone are sent to a processor (Sensor Hub) to be collected and processed, and the environment detection is prioritized.
If the environment sound type is a single voice environment with voice as the main part and the space scene type is a meeting room or a classroom, determining that the prompt mode of the mobile phone is a do-not-disturb mode; if the environment sound type is a multi-person sound environment with the main voice and the space scene type is a meeting room or a classroom, determining that the prompt mode of the mobile phone is a light disturbance mode; if the type of the environmental sound is a noisy environment with the main environmental sound and the type of the spatial scene is outdoor or on a commuting occasion, determining that the prompt mode of the mobile phone is a reminding mode; if the environment sound type is a quiet environment and the acceleration sensor of the mobile phone determines that the mobile phone is in a standing state, determining that the prompt mode of the mobile phone is a do-not-disturb mode; and if the environment sound type is a quiet environment and the acceleration sensor of the mobile phone determines that the mobile phone is in a moving state, determining that the prompt mode of the mobile phone is a light disturbance mode. Wherein the do-not-disturb mode is a vibration reminding mode, and the vibration is gradually increased from weak to strong; the light disturbance mode is strong vibration reminding, and the ring tone reminding is that the ring tone is gradually increased from weak to strong; the reminding mode is strong vibration reminding and large ring reminding.
When the sound to be played out by the mobile phone is content sound, the type of the environmental sound of the environment where the mobile phone is located can be detected according to the sound picked up by the microphone on the mobile phone, and the target application of the content sound to be played out can also be detected according to a program carried by the mobile phone, and the target application and the type of the environmental sound are sent to the processor for collection and processing. At this time, the application judgment is given priority, if the target application is an application playing videos or music and the type of the environmental sound is a quiet environment, the audio mode is determined to be a low volume mode with the priority of the sound quality, and the sound quality is fine; if the target application is an application for playing videos or music and the type of the environmental sound is a noisy environment, determining that the audio mode is a medium-high volume mode with priority on volume and the volume is large; and if the target application is a voice call application or a microphone call scene is called, determining that the audio mode is a high-tone-quality high-volume mode for noise reduction and reception, and filtering background sound to enable the call to be clear.
An embodiment of the present application further provides a terminal, as shown in fig. 8, including:
a central processing unit 801, a memory 802, an input/output interface 803, a wired or wireless network interface 804 and a power supply 805;
the memory 802 is a transient storage memory or a persistent storage memory;
the central processing unit 801 is configured to communicate with the memory 802, and execute the instruction operations in the memory 802 to execute the above method for adjusting the volume of the terminal.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in 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 application. 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 the like.

Claims (10)

1. A method for adjusting volume of a terminal is characterized by comprising the following steps:
periodically detecting whether the terminal is in a stable state;
when the terminal is in a stable state, determining the environmental sound type of the environment where the terminal is located and determining the spatial scene type of the environment where the terminal is located;
determining a prompt mode of the terminal according to the environment sound type and the space scene type;
and when the terminal needs to execute the reminding operation, controlling the terminal to execute the reminding operation according to the reminding mode.
2. The method of claim 1, wherein the determining the type of the ambient sound of the environment in which the terminal is located comprises:
controlling an audio acquisition module of the terminal to acquire sound parameters of the environment where the terminal is located;
and determining the type of the environmental sound of the environment where the terminal is located according to the sound parameters.
3. The method of claim 1, wherein the determining the type of the spatial scene of the environment in which the terminal is located comprises:
controlling an audio acquisition module of the terminal to acquire sound parameters of the environment where the terminal is located;
determining the target sound pressure amplitude of the environment where the terminal is located according to the sound parameter;
and determining a preset space scene type corresponding to the target sound pressure amplitude in a plurality of preset space scene types as the space scene type of the environment where the terminal is located, wherein each preset space scene type has at least one corresponding preset sound pressure amplitude.
4. The method of claim 1, wherein the determining the type of the environmental sound of the environment in which the terminal is located and the type of the spatial scene of the environment in which the terminal is located comprise:
controlling an audio acquisition module of the terminal to acquire a plurality of sound parameters of the environment where the terminal is located in the current acquisition period;
and determining the environmental sound type and the space scene type according to the sound parameters in the current acquisition period.
5. The method of claim 1, wherein the periodically detecting whether the terminal is in a stable state comprises:
detecting whether the environmental sound type of the terminal changes or not according to adjacent sound parameters acquired by the terminal in the current acquisition period;
if the environmental sound type changes, determining that the terminal is not in a stable state, and returning to execute the step of detecting whether the environmental sound type of the terminal changes or not according to the adjacent sound parameters of the terminal in the next acquisition period;
if the type of the environmental sound is not changed, detecting whether the motion state of the terminal is changed or not according to the previous displacement parameter and the next displacement parameter of the terminal in the current acquisition period;
if the motion state of the terminal is not changed, determining that the terminal is in a stable state;
and if the motion state of the terminal changes, determining that the terminal is not in a stable state, and returning to execute the step of detecting whether the environmental sound type of the terminal changes or not according to the adjacent sound parameters of the terminal in the next acquisition period.
6. The method according to claim 5, wherein after the determining the prompt mode of the terminal according to the environment sound type and the spatial scene type, before controlling the terminal to perform the prompt operation according to the prompt mode when the terminal needs to perform the prompt operation, the method further comprises:
if the prompt mode of the terminal is a light disturbance mode or a reminding mode, judging whether the prompt mode of the terminal is determined to be a do-not-disturbance mode within a preset time length before the current acquisition period;
and if so, modifying the prompt mode of the terminal into a do-not-disturb mode.
7. The method according to claim 1, wherein the determining the prompt mode of the terminal according to the environmental sound type and the spatial scene type comprises:
if the environment sound type is a single voice environment with voice as the main part and the space scene type is a meeting room or a classroom, determining that the prompt mode of the terminal is a do-not-disturb mode;
if the environment sound type is a multi-person sound environment with the person sound as the main part and the space scene type is a meeting room or a classroom, determining that the prompt mode of the terminal is a light disturbance mode;
if the type of the environmental sound is a noisy environment with the main environmental sound and the type of the spatial scene is outdoor, determining that the prompt mode of the terminal is a reminding mode;
if the environment sound type is a quiet environment and the acceleration sensor of the terminal determines that the terminal is in a standing state, determining that a prompt mode of the terminal is a do-not-disturb mode;
and if the environment sound type is a quiet environment and the acceleration sensor of the terminal determines that the terminal is in a moving state, determining that the prompt mode of the terminal is a light disturbance mode.
8. A method for adjusting volume of a terminal is characterized by comprising the following steps:
when a terminal needs to execute audio playing operation, determining the type of environmental sound of the current environment of the terminal and determining a target application of the terminal for playing audio;
determining an audio mode of the terminal for playing the audio according to the environment sound type and the target application;
and controlling the terminal to play audio according to the audio mode.
9. The method according to claim 8, wherein the determining the audio characteristics when the terminal plays the audio according to the environmental sound type and the target application comprises:
if the target application is an application for playing videos or music and the type of the environmental sound is a quiet environment, determining that the audio mode is a low volume mode with the prior sound quality;
if the target application is an application for playing videos or music and the type of the environmental sound is a noisy environment, determining that the audio mode is a medium-high volume mode with priority on volume;
and if the target application is a voice call application, determining that the audio mode is a noise-reduction high-sound-quality high-volume mode.
10. A terminal, comprising:
the system comprises a central processing unit, a memory, an input/output interface, a wired or wireless network interface and a power supply;
the memory is a transient memory or a persistent memory;
the central processor is configured to communicate with the memory and execute the operations of the instructions in the memory to perform the method of any of claims 1 to 9.
CN202210486558.XA 2022-05-06 2022-05-06 Method for adjusting volume of terminal and terminal Pending CN114845213A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210486558.XA CN114845213A (en) 2022-05-06 2022-05-06 Method for adjusting volume of terminal and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210486558.XA CN114845213A (en) 2022-05-06 2022-05-06 Method for adjusting volume of terminal and terminal

Publications (1)

Publication Number Publication Date
CN114845213A true CN114845213A (en) 2022-08-02

Family

ID=82566999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210486558.XA Pending CN114845213A (en) 2022-05-06 2022-05-06 Method for adjusting volume of terminal and terminal

Country Status (1)

Country Link
CN (1) CN114845213A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115495040A (en) * 2022-10-09 2022-12-20 湖南捷力泰科技有限公司 Scene type-based sound control method and related device
CN116055626A (en) * 2022-08-05 2023-05-02 荣耀终端有限公司 Conversation method and terminal
CN116208700A (en) * 2023-04-25 2023-06-02 深圳市华卓智能科技有限公司 Control method and system for communication between mobile phone and audio equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023121A (en) * 2014-04-30 2014-09-03 小米科技有限责任公司 Mode switching method and device
CN104301534A (en) * 2014-10-09 2015-01-21 广东小天才科技有限公司 Method and device for intelligently adjusting scene mode of mobile terminal
CN105376418A (en) * 2015-12-16 2016-03-02 广东欧珀移动通信有限公司 Incoming call information processing method, device and system
CN107277260A (en) * 2017-07-07 2017-10-20 珠海格力电器股份有限公司 Contextual model adjusting method and device and mobile terminal
CN108647005A (en) * 2018-05-15 2018-10-12 努比亚技术有限公司 Audio frequency playing method, mobile terminal and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023121A (en) * 2014-04-30 2014-09-03 小米科技有限责任公司 Mode switching method and device
CN104301534A (en) * 2014-10-09 2015-01-21 广东小天才科技有限公司 Method and device for intelligently adjusting scene mode of mobile terminal
CN105376418A (en) * 2015-12-16 2016-03-02 广东欧珀移动通信有限公司 Incoming call information processing method, device and system
CN107277260A (en) * 2017-07-07 2017-10-20 珠海格力电器股份有限公司 Contextual model adjusting method and device and mobile terminal
CN108647005A (en) * 2018-05-15 2018-10-12 努比亚技术有限公司 Audio frequency playing method, mobile terminal and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055626A (en) * 2022-08-05 2023-05-02 荣耀终端有限公司 Conversation method and terminal
CN116055626B (en) * 2022-08-05 2023-10-20 荣耀终端有限公司 Conversation method, terminal and storage medium
CN115495040A (en) * 2022-10-09 2022-12-20 湖南捷力泰科技有限公司 Scene type-based sound control method and related device
CN116208700A (en) * 2023-04-25 2023-06-02 深圳市华卓智能科技有限公司 Control method and system for communication between mobile phone and audio equipment

Similar Documents

Publication Publication Date Title
US9961444B2 (en) Reproducing device, headphone and reproducing method
CN114845213A (en) Method for adjusting volume of terminal and terminal
US20170126192A1 (en) Method, device, and computer-readable medium for adjusting volume
US9794701B2 (en) Gateway for a wireless hearing assistance device
CN113676804A (en) Active noise reduction method and device
JP2013501969A (en) Method, system and equipment
EP3038255B1 (en) An intelligent volume control interface
KR20130121632A (en) Method and apparatus for outputting audio
WO2015117347A1 (en) Adjustment method and device for terminal scene mode
CN109862469B (en) Audio system, method and computer readable medium for controlling reset volume
CN107621933B (en) Audio playing method and device and related medium product
CN112804610B (en) Method for controlling Microsoft Teams on PC through TWS Bluetooth headset
CN105554664A (en) Headset based sound processing method and apparatus, and headset
KR101450014B1 (en) Smart user aid devices using bluetooth communication
CN111510822A (en) Sound control system, device, method and computer readable storage medium thereof
EP4319116A1 (en) Volume adjustment method and terminal device
US20240147128A1 (en) Mode control method, device for bluetooth headset, and computer readable storage medium
CN108605067B (en) Method for playing audio and mobile terminal
CN112235683A (en) Receiver-transmitter and ambient sound noise reduction method
WO2018035868A1 (en) Method for outputting audio, electronic device, and storage medium
WO2015030642A1 (en) Volume reduction for an electronic device
WO2023274180A1 (en) Method and apparatus for improving sound quality of speaker
CN113746976B (en) Audio module detection method, electronic device and computer storage medium
WO2021043414A1 (en) Microphone blocking detection control
CN113824838B (en) Sounding control method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination