







技术领域technical field
本申请实施例涉及音量调节邻域,尤其涉及一种调节终端音量的方法及终端。The embodiments of the present application relate to a volume adjustment neighborhood, and in particular, to a method and a terminal for adjusting the volume of a terminal.
背景技术Background technique
随着终端设备功能的不断增多,终端设备被普遍使用。现有技术中,终端设备的来电铃声或震动、媒体声音、听筒和扩音器的音量大小都需要用户手动分别进行设置。无论是来电提示音量,或是播放视频/音乐/通话音量,现有终端设备采用的均为用户通过实体音量键,或屏幕虚拟按键(音量条)来控制音量大小。With the increasing functions of terminal equipment, terminal equipment is widely used. In the prior art, the ringtone or vibration of the terminal device, the volume of the media sound, the earpiece and the loudspeaker all need to be manually set by the user. Whether it is an incoming call prompt volume, or playing a video/music/call volume, the existing terminal equipment adopts the user to control the volume through a physical volume key or a screen virtual key (volume bar).
在来电提醒音方面,用户能从“响铃”或“静音”两种模式中选择一种,当用户默认用“响铃”模式,会出现会议、安静场合下的铃声骤响带来尴尬情况;若用户日常用“静音/勿扰”模式,则会存在无法及时接听电话/信息的情况;在播放视频/音乐时,尽管手机采用来电静音模式,但在播放内容时,仍有可能会记录上次播放音量,在安静环境下爆音,造成尴尬,而通话过程中,嘈杂环境时常需要手动把音量调大,才能较清晰地听到对方声音。In terms of incoming call reminder tone, users can choose one of two modes: "Ring" or "Silent". When the user uses the "Ring" mode by default, there will be embarrassing situations due to sudden ringing in conferences and quiet situations. ;If the user uses the "Mute/Do Not Disturb" mode every day, there will be cases where the call/message cannot be answered in time; when playing video/music, although the phone uses the call mute mode, it may still record the content when playing the content. The last time the volume was played, the sound exploded in a quiet environment, causing embarrassment. During a call, in a noisy environment, you often need to manually increase the volume to hear the other party's voice more clearly.
当用户处于不同的场景中,需要用户通过根据各种场景手动调节终端的各种音量,操作较繁琐且不方便。When the user is in different scenarios, the user needs to manually adjust various volumes of the terminal according to various scenarios, which is cumbersome and inconvenient to operate.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种调节终端音量的方法及终端,能够自动地调节终端外放声音的音量。Embodiments of the present application provide a method and a terminal for adjusting the volume of a terminal, which can automatically adjust the volume of the sound broadcast by the terminal.
本申请实施例提供了一种调节终端音量的方法,包括:An embodiment of the present application provides a method for adjusting the volume of a terminal, including:
周期性检测终端是否处于稳定状态;Periodically detect whether the terminal is in a stable state;
当所述终端处于稳定状态时,确定所述终端所处环境的环境音类型以及确定所述终端所处环境的空间场景类型;When the terminal is in a stable state, determine the ambient sound type of the environment where the terminal is located and determine the spatial scene type of the environment where the terminal is located;
根据所述环境音类型以及所述空间场景类型,确定所述终端的提示模式;determining the prompt mode of the terminal according to the ambient sound type and the spatial scene type;
当所述终端需要执行提醒操作时,控制所述终端根据所述提示模式执行所述提醒操作。When the terminal needs to perform a reminder operation, the terminal is controlled to perform the reminder operation according to the reminder mode.
进一步的,所述确定所述终端所处环境的环境音类型包括:Further, the determining the ambient sound type of the environment where the terminal is located includes:
控制所述终端的音频采集模块采集所述终端所处环境的声音参数;controlling the audio collection module of the terminal to collect sound parameters of the environment where the terminal is located;
根据所述声音参数确定所述终端所处环境的环境音类型。The ambient sound type of the environment where the terminal is located is determined according to the sound parameter.
进一步的,所述确定所述终端所处环境的空间场景类型包括:Further, the determining the spatial scene type of the environment where the terminal is located includes:
控制所述终端的音频采集模块采集所述终端所处环境的声音参数;controlling the audio collection module of the terminal to collect sound parameters of the environment where the terminal is located;
根据所述声音参数确定所述终端所处环境的目标声压幅度;Determine the target sound pressure amplitude of the environment where the terminal is located according to the sound parameter;
将多个预设空间场景类型中,预设声压幅度与所述目标声压幅度相对应的预设空间场景类型确定为所述终端所处环境的空间场景类型,其中每一预设空间场景类型具有至少一个对应的预设声压幅度。Among the multiple preset spatial scene types, the preset spatial scene type corresponding to the preset sound pressure amplitude and the target sound pressure amplitude is determined as the spatial scene type of the environment where the terminal is located, wherein each preset spatial scene Types have at least one corresponding preset sound pressure amplitude.
进一步的,所述确定所述终端所处环境的环境音类型以及确定所述终端所处环境的空间场景类型包括:Further, the determining the ambient sound type of the environment where the terminal is located and determining the spatial scene type of the environment where the terminal is located include:
控制所述终端的音频采集模块,在当前采集周期采集所述终端所处环境的多个声音参数;Controlling the audio collection module of the terminal to collect multiple sound parameters of the environment where the terminal is located in the current collection period;
根据所述当前采集周期内的所述多个声音参数,确定所述环境音类型以及所述空间场景类型。The ambient sound type and the spatial scene type are determined according to the plurality of sound parameters in the current collection period.
进一步的,所述周期性检测终端是否处于稳定状态,包括:Further, the periodic detection of whether the terminal is in a stable state includes:
根据所述终端在当前采集周期内采集的相邻声音参数,检测所述终端的环境音类型是否发生变化;Detecting whether the ambient sound type of the terminal changes according to the adjacent sound parameters collected by the terminal in the current collection period;
若所述环境音类型发生变化,则确定所述终端未处于稳定状态,且返回执行根据所述终端在下一采集周期内的相邻声音参数,检测所述终端的环境音类型是否发生变化的步骤;If the ambient sound type changes, it is determined that the terminal is not in a stable state, and returns to the step of detecting whether the ambient sound type of the terminal changes according to the adjacent sound parameters of the terminal in the next collection period ;
若所述环境音类型未发生变化,则根据所述终端在所述当前采集周期内的上一位移参数及下一位移参数,检测所述终端的运动状态是否发生变化;If the ambient sound type has not changed, detecting whether the motion state of the terminal has changed according to the last displacement parameter and the next displacement parameter of the terminal in the current collection period;
若所述终端的运动状态未发生变化,则确定所述终端处于稳定状态;If the motion state of the terminal does not change, it is determined that the terminal is in a stable state;
若所述终端的运动状态发生变化,确定所述终端未处于稳定状态,且返回执行根据所述终端在下一采集周期内的相邻声音参数,检测所述终端的环境音类型是否发生变化的步骤。If the motion state of the terminal changes, determine that the terminal is not in a stable state, and return to the step of detecting whether the ambient sound type of the terminal changes according to the adjacent sound parameters of the terminal in the next collection period .
进一步的,在所述根据所述环境音类型以及所述空间场景类型,确定所述终端的提示模式之后,在所述当终端需要执行提醒操作时,控制所述终端根据所述提示模式执行所述提醒操作之前,所述方法还包括:Further, after the prompting mode of the terminal is determined according to the ambient sound type and the spatial scene type, when the terminal needs to perform a prompting operation, the terminal is controlled to execute the prompting mode according to the prompting mode. Before the reminding operation, the method further includes:
若所述终端的提示模式为轻扰模式或提醒模式,则判断所述当前采集周期之前的预设时长内是否将所述终端的提示模式确定为勿扰模式;If the prompting mode of the terminal is the light disturbance mode or the prompting mode, determine whether the prompting mode of the terminal is determined as the do not disturb mode within a preset time period before the current collection period;
若是,则将所述终端的提示模式修改为勿扰模式。If so, modify the prompt mode of the terminal to a do not disturb mode.
进一步的,所述根据所述环境音类型以及所述空间场景类型,确定所述终端的提示模式包括:Further, determining the prompt mode of the terminal according to the ambient sound type and the spatial scene type includes:
若所述环境音类型为人声为主的单一人声环境,且所述空间场景类型为会议厅或课室,则确定所述终端的提示模式为勿扰模式;If the type of the ambient sound is a single human voice environment dominated by human voice, and the type of the space scene is a conference hall or a classroom, it is determined that the prompt mode of the terminal is a do not disturb mode;
若所述环境音类型为人声为主的多人声环境,且所述空间场景类型为会议厅或课室,则确定所述终端的提示模式为轻扰模式;If the type of the ambient sound is a multi-voice environment dominated by human voices, and the type of the space scene is a conference hall or a classroom, it is determined that the prompt mode of the terminal is a light disturbance mode;
若所述环境音类型为环境音为主的嘈杂环境,且所述空间场景类型为室外,则确定所述终端的提示模式为提醒模式;If the ambient sound type is a noisy environment dominated by ambient sounds, and the space scene type is outdoor, determining that the prompt mode of the terminal is a prompt mode;
若所述环境音类型为安静环境,且所述终端的加速度传感器确定所述终端处于静置状态,则确定所述终端的提示模式为勿扰模式;If the ambient sound type is a quiet environment, and the acceleration sensor of the terminal determines that the terminal is in a stationary state, then determine that the prompt mode of the terminal is a do not disturb mode;
若所述环境音类型为安静环境,且所述终端的加速度传感器确定所述终端处于移动状态,则确定所述终端的提示模式为轻扰模式。If the ambient sound type is a quiet environment, and the acceleration sensor of the terminal determines that the terminal is in a moving state, it is determined that the prompt mode of the terminal is a light disturbance mode.
本申请实施例还提供了一种调节终端音量的方法,包括:Embodiments of the present application also provide a method for adjusting the volume of a terminal, including:
当终端需要执行播放音频操作时,确定所述终端当前所处环境的环境音类型以及确定所述终端用于播放音频的目标应用;When the terminal needs to perform an audio playback operation, determine the ambient sound type of the environment where the terminal is currently located and determine the target application used by the terminal to play audio;
根据所述环境音类型以及所述目标应用,确定所述终端播放所述音频的音频模式;determining the audio mode in which the terminal plays the audio according to the ambient sound type and the target application;
控制所述终端根据所述音频模式播放音频。The terminal is controlled to play audio according to the audio mode.
进一步的,所述根据所述环境音类型以及所述目标应用,确定所述终端播放所述音频时的音频特征包括:Further, determining the audio features when the terminal plays the audio according to the ambient sound type and the target application includes:
若所述目标应用为播放视频或音乐的应用,且所述环境音类型为安静环境,则确定所述音频模式为音质优先的低音量模式;If the target application is an application that plays video or music, and the ambient sound type is a quiet environment, then determine that the audio mode is a low volume mode that prioritizes sound quality;
若所述目标应用为播放视频或音乐的应用,且所述环境音类型为嘈杂环境,则确定所述音频模式为音量优先的中高音量模式;If the target application is an application that plays video or music, and the ambient sound type is a noisy environment, determining that the audio mode is a medium-high volume mode with volume priority;
若所述目标应用为语音通话应用,则确定所述音频模式为降噪的高音质高音量模式。If the target application is a voice call application, the audio mode is determined to be a high-quality and high-volume mode with noise reduction.
本申请实施例还提供了一种终端,包括:The embodiment of the present application also provides a terminal, including:
中央处理器,存储器,输入输出接口,有线或无线网络接口以及电源;Central processing unit, memory, input and output interface, wired or wireless network interface and power supply;
所述存储器为短暂存储存储器或持久存储存储器;the memory is a short-term 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 above-mentioned method for adjusting the volume of the terminal.
从以上技术方案可以看出,本申请实施例具有以下优点:As can be seen from the above technical solutions, the embodiments of the present application have the following advantages:
本申请实施例中,根据环境音类型以及空间场景类型,确定所述终端的提示模式;当终端需要执行提醒操作时,控制终端根据提示模式执行提醒操作,并且根据环境音类型以及目标应用,确定终端播放音频的音频模式;控制终端根据音频模式播放音频;能够自动地调节终端外放声音的音量。In this embodiment of the present application, the prompt mode of the terminal is determined according to the type of the ambient sound and the type of the space scene; when the terminal needs to perform a prompt operation, the terminal is controlled to perform the prompt operation according to the prompt mode, and is determined according to the type of the ambient sound and the target application. The terminal plays the audio mode of the audio; controls the terminal to play the audio according to the audio mode; and can automatically adjust the volume of the sound played by the terminal.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some implementations described in the present application. For example, for those of ordinary skill in the art, other drawings can also be obtained from these drawings.
图1为本申请实施例公开的一个调节终端音量流程图;1 is a flow chart of adjusting the volume of a terminal disclosed by an embodiment of the present application;
图2为本申请实施例公开的另一调节终端音量流程图;Fig. 2 is another flow chart of adjusting the terminal volume disclosed by the embodiment of the application;
图3为本申请实施例公开的另一调节终端音量流程图;FIG. 3 is another flowchart of adjusting the volume of a terminal disclosed by an embodiment of the present application;
图4为本申请实施例公开的一个调节终端音量的逻辑框架图;FIG. 4 is a logical frame diagram of adjusting the volume of a terminal disclosed by an embodiment of the present application;
图5为本申请实施例公开的一个提醒音检测逻辑图;5 is a logic diagram of an alert sound detection disclosed in an embodiment of the present application;
图6为本申请实施例公开的一个内容音检测逻辑图;FIG. 6 is a logic diagram of a content sound detection disclosed in an embodiment of the present application;
图7为本申请实施例公开的一个声压范围示意图;7 is a schematic diagram of a sound pressure range disclosed in an embodiment of the present application;
图8为本申请实施例公开的一个终端示意图。FIG. 8 is a schematic diagram of a terminal disclosed in an embodiment of the present application.
具体实施方式Detailed ways
了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make those skilled in the art better understand the solutions 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 accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within 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" The orientation or positional relationship indicated by ” etc. is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the embodiments of the present application and simplifying the description, rather than indicating or implying that the indicated device or element must have a specific orientation, It is constructed and operated in a specific orientation, and therefore should not be construed as a limitation on the embodiments of the present application.
在本申请实施例的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请实施例中的具体含义。In the description of the embodiments of the present application, it should be noted that, unless otherwise expressly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it may be a fixed connection or a Removable connection, or integral connection; can be mechanical connection, can also be electrical connection; can be directly connected, can also be indirectly connected through an intermediate medium, can be internal communication between two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in the embodiments of the present application in specific situations.
现有技术中,终端设备的来电铃声或震动、媒体声音、听筒和扩音器的音量大小都需要用户手动分别进行设置。无论是来电提示音量,或是播放视频/音乐/通话音量,现有终端设备采用的均为用户通过实体音量键,或屏幕虚拟按键(音量条)来控制音量大小。但是通过人为的去多次调节音量较为繁琐,且调节不够及时。因此,本申请实施例提供了一种调节终端音量的方法,能够自动的调节终端音量。In the prior art, the ringtone or vibration of the terminal device, the volume of the media sound, the earpiece and the loudspeaker all need to be manually set by the user. Whether it is an incoming call prompt volume, or playing a video/music/call volume, the existing terminal equipment adopts the user to control the volume through a physical volume key or a screen virtual key (volume bar). However, it is cumbersome to manually adjust the volume multiple times, and the adjustment is not timely enough. Therefore, the embodiment of the present application provides a method for adjusting the volume of the 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 with a function of playing sound, etc., which is not specifically limited here, and the terminals described below will not be repeated. There are mainly two types of sounds played by the terminal: reminder sound and content sound. The reminder sound is mainly a sound for the main purpose of reminder, such as ring tone, button feedback sound, etc., which is not limited here; while the content sound is mainly a sound for the main purpose of conveying information, such as video soundtrack, music, voice message, Calls, etc., are not specifically limited here. Therefore, based on the difference between the reminder sound and the content sound, when the terminal adjusts the volume of the sound, it needs to first distinguish whether the currently played sound is the reminder sound or the content sound. When the terminal is playing a sound, it can determine whether the currently playing sound is a reminder sound or a content sound according to its own application. For example, if the application that needs to play a sound is an alarm clock, it can be determined that the currently playing sound is a reminder. If the application that currently needs to play the sound is a video player, it can be determined that the currently played sound is the content sound. The reminder sound is generally preset, and the content sound is generally the sound carried on the application.
下面以提醒音为例,对调节终端音量的过程进行说明,如图1所示,具体步骤如下:The following takes the reminder sound as an example to describe the process of adjusting the terminal volume, as shown in Figure 1. The specific steps are as follows:
101、周期性检测终端是否处于稳定状态。101. Periodically detect whether the terminal is in a stable state.
终端可以通过终端上的多个传感器周期性检测,进而确定终端是否处在稳定状态。可以理解的是,该周期性检测具体可以根据实际情况设置。由于终端在一段时间内可能发生从A到B位置/环境/状态的改变,在A检测的结果和匹配的反馈形式对B所处场合或不再适用,因此在功耗允许情况下,需设定周期性检测。The terminal may periodically detect through multiple sensors on the terminal, thereby determining whether the terminal is in a stable state. It can be understood that, the periodic detection can be specifically set according to the actual situation. Since the position/environment/state of terminal A may change from A to B within a period of time, the result detected by A and the matching feedback form may not be applicable to the situation where B is located. Therefore, if the power consumption allows, it is necessary to set Periodic detection.
可以设置检测周期为每隔5s做一次持续5s的检测或每个8秒做一次持续6秒的检测,具体此处不做限定,优选的为每隔5s做一次持续5s的检测。若在一个周期检测的过程中,通过终端上的传感器(sensor)采集的信息发现终端所处环境的环境音类型或者终端的运动状态状态发生了变化,则可以认为终端不是处于稳定状态。例如,如果在一个持续5s的检测过程中,第3s采集到的数据与第4s采集到的数据进行对比,发现终端所处环境的环境音类型或者终端的运动状态发生了变化,则可以认为终端不是在稳定状态。The detection period can be set to do a detection every 5s for 5s or every 8s for 6s, which is not limited here, and preferably every 5s for 5s. During a period of detection, if the type of ambient sound in the environment where the terminal is located or the motion state of the terminal has changed through the information collected by the sensor on the terminal, it can be considered that the terminal is not in a stable state. For example, in a detection process that lasts for 5s, if the data collected in the 3rd s is compared with the data collected in the 4th s, and it is found that the type of ambient sound in the environment where the terminal is located or the movement state of the terminal has changed, it can be considered that the terminal not in steady state.
102、确定终端所处环境的环境音类型以及确定终端所处环境的空间场景类型。102. Determine the ambient sound type of the environment where the terminal is located and determine the spatial scene type of the environment where the terminal is located.
当终端处于稳定状态时,确定终端所处环境的环境音类型以及确定终端所处环境的空间场景类型。具体的,在一个周期检测的过程中,若发现终端所处的环境音类型以及终端的运动状态没有发生变化,则可以认为终端在这一个检测周期处于稳定状态。此时,可以根据终端上的音频采集模块确定终端所处环境的环境音类型,以及根据终端上的音频采集模块或其他传感器确定终端所处环境的空间场景类型。可以理解的是,该音频采集模块可以是麦克风或采集声音的装置,具体此处不做限定。该其他传感器可以是加速度传感器、陀螺仪、距离传感器或光线传感器等,具体此处不做限定。When the terminal is in a stable state, the ambient sound type of the environment where the terminal is located and the spatial scene type of the environment where the terminal is located are determined. Specifically, during a period of detection, if it is found that the type of ambient sound in which the terminal is located and the motion state of the terminal have not changed, it can be considered that the terminal is in a stable state in this detection period. At this time, the type of ambient sound in the environment where the terminal is located may be determined according to the audio collection module on the terminal, and the type of spatial scene in the environment where the terminal is located may be determined according to the audio collection module on the terminal or other sensors. It can be understood that the audio collection module may be a microphone or a sound collection device, which is not specifically limited here. The other sensor may be an acceleration sensor, a gyroscope, a distance sensor, or a light sensor, etc., which is not specifically limited here.
该环境音类型指的是终端所处环境的声音的类型,根据采集到的周围环境的声音可以确定环境音类型,如嘈杂环境,安静环境等,具体此处不做限定。该空间场景类型指的是终端位于的具有空间意义的具体场景,如会议室,客厅等,具体此处不做限定。The ambient sound type refers to the type of sound in the environment where the terminal is located, and the ambient sound type can be determined according to the collected sounds of the surrounding environment, such as a noisy environment, a quiet environment, etc., which is not specifically limited here. The spatial scene type refers to a specific scene with spatial significance where the terminal is located, such as a conference room, a living room, etc., which is not specifically limited here.
103、根据环境音类型以及空间场景类型,确定终端的提示模式。103. Determine a prompt mode of the terminal according to the type of ambient sound and the type of spatial scene.
终端可以根据在稳定状态下确定的环境音类型以及空间场景类型,确定终端的提示模式。该提示模式主要用于确定提示音的表现形式,可以预先设置。该提示模式可以为勿扰模式、轻扰模式或提醒模式中的一种模式。The terminal may determine the prompt mode of the terminal according to the ambient sound type and the spatial scene type determined in the steady state. The prompt mode is mainly used to determine the expression form of the prompt sound, which can be preset. The prompt mode may be one of a do not disturb mode, a light disturb mode or a reminder mode.
具体的,可以预先设置,当音频采集模块采集到的环境音为大于等于某一预设声压幅度,则判定环境音类型为环境音为主的嘈杂环境,且空间场景类型为户外,则确定提示模式为提醒模式。当音频采集模块采集到的环境音为小于该预设声压幅度,则判定环境音类型为安静环境,且空间场景类型为户内,则确定提示模式为勿扰模式。可以理解的是,该预设声压幅度可以为50dB或60dB,具体此处不做限定,且该预设声压幅度可以根据实际情况进行相应修改。Specifically, it can be preset. When the ambient sound collected by the audio collection module is greater than or equal to a preset sound pressure amplitude, it is determined that the ambient sound type is a noisy environment dominated by ambient sounds, and the spatial scene type is outdoor, then determine The reminder mode is the reminder mode. When the ambient sound collected by the audio collection module is less than the preset sound pressure amplitude, the ambient sound type is determined to be a quiet environment, and the spatial scene type is indoors, and the prompt mode is determined to be the do not disturb mode. It can be understood that the preset sound pressure amplitude may be 50dB or 60dB, which is not specifically limited here, and the preset sound pressure amplitude can be modified accordingly according to the actual situation.
104、控制终端根据提示模式执行提醒操作。104. The control terminal performs a reminder operation according to the reminder mode.
当终端确定需要外放的声音为提示音时,终端根据在稳定状态下确定的提示模式执行提醒操作,以实现根据具体情况执行不同的提醒操作。When the terminal determines that the sound to be played is a prompt tone, the terminal performs a prompt operation according to the prompt mode determined in a stable state, so as to implement different prompt operations according to specific conditions.
具体的,当终端确定提示模式为勿扰模式,则控制声音播放装置不播放声音,且控制震动装置执行震动操作,震动由弱渐强;当终端确定提示模式为轻扰模式,则控制声音播放装置播放的声音(铃声)由弱渐强,且控制震动装置执行强震动提醒;当终端确定提示模式为提醒模式,则控制声音播放装置播放大声音(铃声)提醒,且控制震动装置执行强震动提醒。Specifically, when the terminal determines that the prompt mode is the do not disturb mode, it controls the sound playback device to not play the sound, and controls the vibration device to perform a vibration operation, and the vibration increases from weak to stronger; when the terminal determines that the prompt mode is the light disturbance mode, it controls the sound to play. The sound (ringtone) played by the device increases from weak to strong, and controls the vibration device to perform a strong vibration reminder; when the terminal determines that the reminder mode is the reminder mode, it controls the sound playback device to play a loud sound (ringtone) reminder, and controls the vibration device to perform strong vibration. remind.
本申请实施例中,在需要播放提示音时通过确定环境音类型确定终端的提示模式,根据不同的提示模式能够自动地调节终端外放声音的音量。In the embodiment of the present application, when the prompt sound needs to be played, the prompt mode of the terminal is determined by determining the type of the ambient sound, and the volume of the external sound of the terminal can be automatically adjusted according to different prompt modes.
本申请实施例还提供了一个调节终端音量的具体流程,如图2所述,具体步骤如下:The embodiment of the present application also provides a specific process for adjusting the volume of the terminal, as shown in FIG. 2 , and the specific steps are as follows:
201、根据终端采集的相邻声音参数,检测终端的环境音类型是否发生变化。若是,则继续执行步骤201,若否,则执行步骤202。201. Detect, according to adjacent sound parameters collected by the terminal, whether the ambient sound type of the terminal changes. If yes, go to step 201, if not, go to step 202.
根据终端在当前采集周期内采集的相邻声音参数,检测终端的环境音类型是否发生变化。具体的可根据当前采集周期内任意相邻的两个声音参数,得到两个环境音类型,若这两个环境音类型存在区别,则可认为终端的环境音类型发生了变化。若环境音类型发生变化,则确定终端未处于稳定状态,且获取终端在下一采集周期内的相邻声音参数,重新检测终端的环境音类型是否发生变化。According to the adjacent sound parameters collected by the terminal in the current collection period, it is detected whether the ambient sound type of the terminal changes. Specifically, two ambient sound types can be obtained according to any two adjacent sound parameters in the current collection period. If there is a difference between the two ambient sound types, it can be considered that the ambient sound type of the terminal has changed. If the ambient sound type changes, it is determined that the terminal is not in a stable state, and adjacent sound parameters of the terminal in the next collection period are acquired, and it is re-detected whether the ambient sound type of the terminal changes.
202、根据终端的上一位移参数及下一位移参数,检测终端的运动状态是否发生变化。若是,则执行步骤201,若否,则执行步骤203。202. Detect whether the motion state of the terminal changes according to the last displacement parameter and the next displacement parameter of the terminal. If yes, go to step 201, if not, go to step 203.
若环境音类型未发生变化,则根据终端在当前采集周期内的上一位移参数及下一位移参数,检测终端的运动状态是否发生变化。可以理解的是,运动状态发生变化具体指的是终端是否从移动状态变为静置状态,或者终端是否从静置状态变为移动状态,若终端在当前采集周期内一直保持静置状态或一直保持移动状态,则可以认为终端的运动状态没有发生变化。终端在当前采集周期内可以得到多个位移参数,在该多个位移参数中,若存在任意相邻的两个位移参数(即上一位移参数和下一位移参数)之间存在变化,则确定终端的运动状态发生变化。If the ambient sound type does not change, it is detected whether the motion state of the terminal changes according to the last displacement parameter and the next displacement parameter of the terminal in the current collection period. It can be understood that the change in 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. If the moving state is maintained, it can be considered that the motion state of the terminal has not changed. The terminal can obtain multiple displacement parameters in the current acquisition cycle. Among the multiple displacement parameters, if there is a change between any two adjacent displacement parameters (that is, the previous displacement parameter and the next displacement parameter), determine The motion state of the terminal changes.
若终端的运动状态发生变化,确定终端未处于稳定状态再次获取终端在下一采集周期内的相邻声音参数,检测终端的环境音类型是否发生变化。If the motion state of the terminal changes, it is determined that the terminal is not in a stable state, and the adjacent sound parameters of the terminal in the next collection period are obtained again to detect whether the ambient sound type of the terminal changes.
203、确定终端处于稳定状态。203. Determine that the terminal is in a stable state.
若终端的运动状态未发生变化,则确定终端处于稳定状态。可以理解的是,确定终端处于稳定状态需要满足两个条件:第一终端的环境音类型未发生变化,第二终端的运动状态未发生变化。而该循环终止的条件为终端在一个目标采集周期内,终端所处环境的环境音类型以及终端的运动状态都未发生变化,采集该目标采集周期的声音参数。If the motion state of the terminal does not change, it is determined that the terminal is in a stable state. It can be understood that, to determine that the terminal is in a stable state, two conditions need to be satisfied: the ambient sound type of the first terminal does not change, and the motion state of the second terminal does not change. The condition for the termination of the cycle is that the terminal is in a target collection period, the ambient sound type of the environment where the terminal is located and the motion state of the terminal have not changed, and the sound parameters of the target collection period are collected.
204、确定终端所处环境的环境音类型以及确定终端所处环境的空间场景类型。204. Determine the ambient sound type of the environment where the terminal is located and determine the spatial scene type of the environment where the terminal is located.
在确定终端所处环境的环境音类型时,可以通过控制终端的音频采集模块采集终端所处环境的声音参数,该声音参数中包含有环境背景音或人的话语音等,具体此处不做限定。根据声音参数确定终端所处环境的环境音类型。具体的,可以在终端处在稳定状态时,采集到的多个声音参数,并从该多个声音参数中提取相关声音特征,以确定终端所处环境的环境音类型。When determining the ambient sound type of the environment where the terminal is located, the audio parameters of the environment where the terminal is located can be collected by controlling the audio collection module of the terminal, and the sound parameters include ambient background sounds or human voice, etc., which are not limited here . Determine the ambient sound type 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 sound parameters can be collected, and relevant sound features can be extracted from the plurality of sound parameters, so as to determine the environmental sound type of the environment where the terminal is located.
音频采集模块采集到的终端所处环境的声音参数还可以用于确定终端所处环境的空间场景类型。具体的,可以根据声音参数确定终端环境的目标声压幅度,接着,将多个预设空间场景类型中,预设声压幅度与该目标声压幅度相对应的预设空间场景类型确定为终端所处环境的空间场景类型。其中,每一预设空间场景类型具有至少一个对应的预设声压幅度。具体的,可以建立预设空间场景类型与预设声压幅度之间的映射关系,组成映射库。其中,该映射库中针对每一预设空间场景类型设置至少一个对应的预设声压幅度。当确定终端环境的目标声压幅度在某一预设声压幅度的范围内,则将该预设声压幅度对应的预设空间场景类型确定为终端所处环境的空间场景类型。The sound parameters of the environment where the terminal is located collected by the audio collection module can also be used to determine the type of 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 parameters, and then, among the multiple preset spatial scene types, the preset spatial scene type corresponding to the preset sound pressure amplitude and the target sound pressure amplitude is determined as the terminal The type of spatial scene in the environment. Wherein, each preset spatial 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. Wherein, at least one corresponding preset sound pressure amplitude is set for each preset spatial scene type in the mapping library. When it is determined that the target sound pressure amplitude of the terminal environment is within a range of a preset sound pressure amplitude, the preset spatial scene type corresponding to the preset sound pressure amplitude is determined as the spatial scene type of the environment where the terminal is located.
可以理解的是,如图7所示,声音的大小可以用声压的大小来表示dB(A)。GB3096-2008里面规定卧室45dB、客厅55dB、会议室60dB、电影院65dB、博物馆50dB、广场马路70dB-80dB等等场景声压大小幅度不同,利用声压大小可以识别场景类型。利用音频采集模块采集的声音参数,经过降噪、远程拾音等算法处理。分离出人声和背景噪声,背景噪声经算法处理输出相对应声压为0dB-100dB的幅度信号。在算法库设定,内置场景特征声学参数文件,场景特征声压阈值为卧室45dB、客厅55dB、会议室65dB、电影院65dB、广场马路70dB-80dB等,将实时采集到的环境背景声转换为声压幅度数值,与库内置的场景特征声压参数文件一一比对,可以判断是哪种空间场景类型。It can be understood that, as shown in FIG. 7 , the size of the sound can be expressed in dB(A) by the size of the sound pressure. GB3096-2008 stipulates that the sound pressure in the bedroom is 45dB, the living room is 55dB, the conference room is 60dB, the cinema is 65dB, the museum is 50dB, and the square road is 70dB-80dB. The sound parameters collected by the audio acquisition module are processed by algorithms such as noise reduction and remote pickup. Human voice and background noise are separated, and the background noise is processed by an algorithm to output an amplitude signal with a corresponding sound pressure of 0dB-100dB. Set in the algorithm library, built-in scene characteristic acoustic parameter file, the scene characteristic sound pressure threshold is 45dB in the bedroom, 55dB in the living room, 65dB in the conference room, 65dB in the cinema, 70dB-80dB in the square road, etc., convert the ambient background sound collected in real time into sound The value of the pressure amplitude is compared with the built-in scene characteristic sound pressure parameter file of the library one by one, and the type of the space scene can be judged.
进一步的,为了使采集到的声音参数更加准确,音频采集模块需要在当前采集周期内采集终端所处环境的多个声音参数,并根据当前采集周期内的多个声音参数,确定终端所处环境的环境音类型以及空间场景类型。可以理解的是,当前采集周期主要指的是终端处于稳定状态的采集周期,即在终端在当前采集周期内的环境音类型以及终端的运动状态都没有发生变化。该多个声音参数尽可能包含在当前采集周期内的所有声音参数。Further, in order to make the collected sound parameters more accurate, the audio collection module needs to collect multiple sound parameters of the environment where the terminal is located within the current collection period, and determine the environment where the terminal is located according to the multiple sound parameters within the current collection period. type of ambient sound and type of spatial scene. It can be understood that the current collection period mainly refers to the collection period in which the terminal is in a stable state, that is, the ambient sound type of the terminal and the motion state of the terminal in the current collection period have not changed. The multiple sound parameters include all sound parameters in the current acquisition period as far as possible.
205、根据环境音类型以及空间场景类型,确定终端的提示模式。205. Determine a prompting mode of the terminal according to the ambient sound type and the spatial scene type.
步骤205与上述步骤103类似,具体此处不再赘述。Step 205 is similar to the above-mentioned
206、若提示模式为轻扰模式或提醒模式,则判断上一预设时长内是否将终端的提示模式确定为勿扰模式。若是,则执行步骤208,若否,则执行步骤207。206. If the prompt mode is the light disturb mode or the prompt mode, determine whether the prompt mode of the terminal is determined to be the do not disturb mode within the last preset time period. If yes, go to step 208, if not, go to step 207.
在终端需要执行提醒操作之前,终端需要判断在当前采集周期的上一预设时长内是否有将终端的提示模式确定为勿扰模式。可以理解的是,每一段预设时长内有多个采集周期,该预设时长可以取5分钟或6分钟,具体此处不做限定,优选为5分钟。具体的,可以根据在上一5分钟内判断终端是否存在勿扰模式。Before the terminal needs to perform the reminder operation, the terminal needs to determine whether the reminder mode of the terminal is determined as the do not disturb mode within the last preset time period of the current collection cycle. It can be understood that there are multiple collection periods in each preset time period, and the preset time period can be 5 minutes or 6 minutes, which is not specifically limited here, and is preferably 5 minutes. Specifically, it can be determined whether the terminal has a do not disturb mode within the last 5 minutes.
207、控制终端根据提示模式执行提醒操作。207. The control terminal performs a reminder operation according to the reminder mode.
步骤207与步骤104类似,具体此处不再赘述。Step 207 is similar to step 104, and details are not repeated here.
208、将终端的提示模式修改为勿扰模式。208. Modify the prompt mode of the terminal to a do not disturb mode.
若终端的提示模式确定为勿扰模式,则执行勿扰模式的操作。若终端的提示模式为轻扰模式或提醒模式,且终端确定在当前采集周期之前的上一预设时长内有将终端的提示模式确定为勿扰模式,则终端将提示模式修改为勿扰模式。If the prompt mode of the terminal is determined to be the do not disturb mode, the operation of the do not disturb mode is performed. If the prompt mode of the terminal is the light disturb mode or the prompt mode, and the terminal determines that the prompt mode of the terminal is determined to be the do not disturb mode within the last preset time period before the current collection period, the terminal modifies the prompt mode to the do not disturb mode .
具体的,如图5所示,当终端为手机时,可以根据手机上麦克风采集到的当前采集周期的相邻声音参数,确定手机的环境音类型(环境)是否发生变化;可以根据手机上的加速度传感器确定手机的运动状态是否发生变化,该运动状态可以理解为手机状态或位置。在当前采集周期内,需要判断手机的环境以及手机的状态是否发生变化。当手机的环境和手机状态或位置都未发生变化,则根据当前采集周期内得到的环境音类型和空间场景类型确定提示模式。若麦克风当前采集周期收音过程中,检测到环境有变化,则进行下一周期的检测;若环境未变化,则根据加速度传感器检测手机状态或位置时是否有变化;若有变化,则再次进行下一次采集周期检测环境是否有变化,若无变化,则可以确定终端在对应的采集周期为稳定状态。根据稳定状态下得到的环境音类型以及空间场景类型确定终端的提示模式。在终端需要执行提醒操作之前,若终端的提示模式确定为勿扰模式,则执行勿扰模式的操作;若终端的提示模式为轻扰模式或提醒模式,则需要判断在当前采集周期之前的预设时长内是否有将终端的提示模式确定为勿扰模式;若是,则将终端的提示模式修改为勿扰模式;若不是,则根据轻扰模式或提醒模式执行。Specifically, as shown in Figure 5, when the terminal is a mobile phone, it can be determined whether the ambient sound type (environment) of the mobile phone has changed according to the adjacent sound parameters of the current collection period collected by the microphone on the mobile phone; The acceleration sensor determines whether the motion state of the mobile phone changes, and the motion state can be understood as the mobile phone state or position. In the current collection cycle, it is necessary to determine whether the environment of the mobile phone and the state of the mobile phone have changed. When neither the environment of the mobile phone nor the state or location of the mobile phone has changed, the prompt mode is determined according to the type of ambient sound and the type of spatial scene obtained in the current collection period. If the microphone detects that the environment has changed during the current collection cycle, the next cycle of detection will be performed; if the environment has not changed, the state or position of the mobile phone will be detected according to the acceleration sensor. If there is a change, the next cycle will be performed again A collection period detects whether there is a change in the environment, and if there is no change, it can be determined that the terminal is in a stable state in the corresponding collection period. The prompt mode of the terminal is determined according to the ambient sound type and the spatial scene type obtained in the stable state. Before the terminal needs to perform the reminder operation, if the reminder mode of the terminal is determined to be the do not disturb mode, the operation of the do not disturb mode is executed; if the reminder mode of the terminal is the light disturbance mode or the reminder mode, it is necessary to judge the prediction mode before the current collection cycle. Set whether the prompt mode of the terminal is determined as the Do Not Disturb mode within the set duration; if so, change the prompt mode of the terminal to the Do Not Disturb mode; if not, execute it according to the light disturbance mode or the reminder mode.
上面以提醒音为例对调节终端音量的过程进行了说明,下面再以内容音为例对调节终端音量的过程进行说明,如图3所示,具体步骤如下:The process of adjusting the volume of the terminal is described above by taking the reminder sound as an example, and the process of adjusting the volume of the terminal is described below by taking the content sound as an example, as shown in Figure 3, and the specific steps are as follows:
301、确定终端当前所处环境的环境音类型以及确定终端用于播放音频的目标应用。301. Determine the ambient sound type of the environment where the terminal is currently located, and determine the target application used by the terminal to play audio.
当终端根据终端上的应用确定终端需要执行播放音频操作(即播放内容音)时,可以根据终端上的音频采集模块确定当前所处环境的环境音类型,具体与步骤102类似此处不再赘述。同时,终端可以根据终端上的应用程序,确定播放音频的目标应用。可以根据确定正在执行的程序确定目标应用。该目标应用可以为视频播放应用或通话应用,具体此处不做限定。When the terminal determines, according to the application on the terminal, that the terminal needs to perform an audio playback operation (that is, to play content sound), the type of ambient sound of the current environment can be determined according to the audio collection module on the terminal, which is similar to step 102 and will not be repeated here. . At the same time, the terminal can determine the target application for playing audio according to the application program on the terminal. The target application may be determined based on the program that is determined to be executing. The target application may be a video playing application or a calling application, which is not specifically limited here.
302、根据环境音类型以及目标应用,确定终端播放音频的音频模式。302. Determine an audio mode in which the terminal plays audio according to the ambient sound type and the target application.
终端确定出当前所处环境的环境音类型以及目标应用后,根据环境音类型以及目标应用确定终端播放音频的音频模式。该音频模式指的是音频的相关特征,可以是音质优先模式、音量优先模式或者强音质强音量模式等,具体此处不做限定。此时,该环境音类型主要区分为嘈杂环境或安静环境,以及相关的目标应用,就可以确定终端播放音频的音频模式。After the terminal determines the ambient sound type of the current environment and the target application, the terminal determines the audio mode of the audio played by the terminal according to the ambient sound type and the target application. The audio mode refers to related features of audio, and may be a sound quality priority mode, a volume priority mode, or a strong sound quality and strong volume mode, which is not specifically limited here. At this time, the ambient sound type is mainly classified into a noisy environment or a quiet environment, and a related target application, and then the audio mode of the audio played by the terminal can be determined.
303、控制终端根据音频模式播放音频。303. The control terminal plays audio according to the audio mode.
当确定出终端播放音频的音频模式后,控制终端根据该音频模式播放音频。如图6所示,以手机为终端,在一个检测周期中,若此时目标应用为视频播放应用,当检测到手机的环境音类型为处于安静环境,确定当该音频模式为音质优先模式,则在播放音频时自动调节为低音量以保证音频的音质;当检测到手机的环境音类型为处于嘈杂环境,确定该音频模式为音量优先模式,则在播放音频时自动调节为中高音量,同时当检测到用户还在按音量键+时,允许短期内牺牲一定音质提高到最大音量。若此时目标应用为麦克风(MIC)播音或通话场景,确定当该音频模式为强音质强音量模式,降噪收音。After determining the audio mode in which the terminal plays the audio, the terminal is controlled to play the audio according to the audio mode. As shown in Figure 6, taking the mobile phone as the terminal, in a detection cycle, if the target application is a video playback application at this time, when it is detected that the ambient sound type of the mobile phone is in a quiet environment, it is determined that the audio mode is the sound quality priority mode, When the audio is played, the volume is automatically adjusted to a low volume to ensure the sound quality of the audio; when the ambient sound type of the mobile phone is detected as being in a noisy environment, and the audio mode is determined to be the volume priority mode, the volume is automatically adjusted to a medium-high volume when the audio is played. At the same time, when it is detected that the user is still pressing the volume key +, it is allowed to sacrifice a certain sound quality to increase to the maximum volume in a short period of time. If the target application is a microphone (MIC) broadcast or a call scene, it is determined that when the audio mode is a strong sound quality and strong volume mode, noise reduction and radio reception.
本申请实施中,在终端需要播放内容音时通过确定环境音类型以及目标应用确定终端的音频模式,根据不同的音频模式能够自动地调节终端外放声音的音量或音质。In the implementation of this application, when the terminal needs to play content sound, the audio mode of the terminal is determined by determining the type of ambient sound and the target application, and the volume or quality of the sound played by the terminal can be automatically adjusted according to different audio modes.
进一步的,下面以手机为终端并结合图4对手机智能调节声音的过程进行说明:Further, the following describes the process of intelligently adjusting the sound of the mobile phone by taking the mobile phone as the terminal and in conjunction with FIG. 4 :
当手机需要外放的声音为提示音时,可以根据手机上的麦克风拾音进而确定手机所处环境的环境音类型,还可以根据手机上的加速度传感器或位移传感器等确定手机的运动状态,并将环境音类型和手机的运动状态发送至处理器(Sensor Hub)进行收集和处理,并以环境检测优先。When the sound that the mobile phone needs to emit is a prompt tone, the type of ambient sound in the environment where the mobile phone is located can be determined according to the sound picked up by the microphone on the mobile phone, and the motion state of the mobile phone can also be determined according to the acceleration sensor or displacement sensor on the mobile phone, and The type of ambient sound and the motion state of the phone are sent to the processor (Sensor Hub) for collection and processing, with priority given to ambient detection.
若环境音类型为人声为主的单一人声环境,且空间场景类型为会议厅或课室,则确定手机的提示模式为勿扰模式;若环境音类型为人声为主的多人声环境,且空间场景类型为会议厅或课室,则确定手机的提示模式为轻扰模式;若环境音类型为环境音为主的嘈杂环境,且空间场景类型为室外或通勤场合,则确定手机的提示模式为提醒模式;若环境音类型为安静环境,且手机的加速度传感器确定手机处于静置状态,则确定手机的提示模式为勿扰模式;若环境音类型为安静环境,且手机的加速度传感器确定手机处于移动状态,则确定手机的提示模式为轻扰模式。其中,勿扰模式为震动提醒,并且震动由弱渐强;轻扰模式为强震动提醒,并且铃声提醒,铃声由弱渐强;提醒模式为强震动提醒,且大铃声提醒。If the ambient sound type is a single human voice environment dominated by human voice, and the space scene type is a conference hall or classroom, determine that the prompt mode of the mobile phone is Do Not Disturb mode; if the ambient sound type is a multi-voice environment dominated by human voice, and If the type of the space scene is a conference hall or classroom, the prompt mode of the mobile phone is determined to be light disturbance mode; if the type of ambient sound is a noisy environment with ambient sound as the main, and the type of the space scene is an outdoor or commuting occasion, the prompt mode of the mobile phone is determined to be Reminder mode; if the ambient sound type is a quiet environment and the acceleration sensor of the mobile phone determines that the mobile phone is in a stationary state, then the prompt mode of the mobile phone is determined to be Do Not Disturb mode; if the ambient sound type is a quiet environment, and the acceleration sensor of the mobile phone determines that the mobile phone is in a stationary state If the mobile state is in the mobile state, it is determined that the prompt mode of the mobile phone is the light disturbance mode. Among them, the Do Not Disturb mode is a vibration reminder, and the vibration increases from weak to weak; the light disturb mode is a strong vibration reminder, and the ringtone reminds, and the ringtone increases from weak to weak; the reminder mode is a strong vibration reminder, and a big ringtone reminder.
而当手机需要外放的声音为内容音时,可以根据手机上的麦克风拾音检测手机所处环境的环境音类型,也可以根据手机自带的程序检测需要外放内容音的目标应用,并将目标应用和环境音类型发送至处理器收集和处理。此时,以应用判定优先,若目标应用为播放视频或音乐的应用,且环境音类型为安静环境,则确定音频模式为音质优先的低音量模式,音质细腻;若目标应用为播放视频或音乐的应用,且环境音类型为嘈杂环境,则确定音频模式为音量优先的中高音量模式,音量较大;若目标应用为语音通话应用或调用麦克风通话场景,则确定音频模式为降噪收音的高音质高音量模式,将背景音过滤以使通话清晰。When the sound that the mobile phone needs to play outside is the content sound, the type of ambient sound in the environment where the mobile phone is located can be detected according to the pickup of the microphone on the mobile phone, or the target application that needs to play the content sound can be detected according to the program that comes with the mobile phone, and The target application and ambient sound type are sent to the processor for collection and processing. At this time, the application is determined as the priority. If the target application is an application that plays video or music, and the ambient sound type is a quiet environment, the audio mode is determined to be a low-volume mode that prioritizes sound quality, and the sound quality is fine; if the target application is to play video or music. If the target application is a voice call application or a microphone call scenario, then the audio mode is determined to be a noise-cancelling radio mode. High-quality high-volume mode, which filters out background sounds to make calls clear.
本申请实施例还提供了一种终端,如图8所示,包括:The embodiment of the present application also provides a terminal, as shown in FIG. 8 , including:
中央处理器801,存储器802,输入输出接口803,有线或无线网络接口804以及电源805;
所述存储器802为短暂存储存储器或持久存储存储器;The
所述中央处理器801配置为与所述存储器802通信,并执行所述存储器802中的指令操作以执行上述调节终端音量的方法。The
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,read-onlymemory)、随机存取存储器(RAM,random access memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, removable hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), magnetic disk or optical disk and other media that can store program codes.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210486558.XACN114845213B (en) | 2022-05-06 | 2022-05-06 | Method for adjusting terminal volume and terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210486558.XACN114845213B (en) | 2022-05-06 | 2022-05-06 | Method for adjusting terminal volume and terminal |
| Publication Number | Publication Date |
|---|---|
| CN114845213Atrue CN114845213A (en) | 2022-08-02 |
| CN114845213B CN114845213B (en) | 2024-12-31 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210486558.XAActiveCN114845213B (en) | 2022-05-06 | 2022-05-06 | Method for adjusting terminal volume and terminal |
| Country | Link |
|---|---|
| CN (1) | CN114845213B (en) |
| 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 | 荣耀终端有限公司 | A communication method and terminal |
| CN116208700A (en)* | 2023-04-25 | 2023-06-02 | 深圳市华卓智能科技有限公司 | Control method and system for communication between mobile phone and audio equipment |
| WO2025147850A1 (en)* | 2024-01-09 | 2025-07-17 | 瑞声科技(南京)有限公司 | Smart device-based system and method for environment scenario identification and decision-making |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20040058730A (en)* | 2002-12-27 | 2004-07-05 | 엘지전자 주식회사 | Bell sound volume auto change method for mobile communication terminal |
| CN101345958A (en)* | 2008-08-22 | 2009-01-14 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal, and method and system for controlling reminding mode |
| CN202261503U (en)* | 2011-10-24 | 2012-05-30 | 昆明理工大学 | Mobile phone profile automatic conversion system based on acoustic sensor and motion sensor |
| CN104023121A (en)* | 2014-04-30 | 2014-09-03 | 小米科技有限责任公司 | Mode switching method and device |
| CN104301534A (en)* | 2014-10-09 | 2015-01-21 | 广东小天才科技有限公司 | A method and device for intelligently adjusting the scene mode of a mobile terminal |
| CN105376418A (en)* | 2015-12-16 | 2016-03-02 | 广东欧珀移动通信有限公司 | Incoming call information processing method, device and system |
| CN107231484A (en)* | 2017-06-23 | 2017-10-03 | 深圳天珑无线科技有限公司 | A kind of mobile terminal automatically replying incoming call method, mobile terminal and computer-readable medium |
| 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 |
| CN110392298A (en)* | 2018-04-23 | 2019-10-29 | 腾讯科技(深圳)有限公司 | A kind of volume adjusting method, device, equipment and medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20040058730A (en)* | 2002-12-27 | 2004-07-05 | 엘지전자 주식회사 | Bell sound volume auto change method for mobile communication terminal |
| CN101345958A (en)* | 2008-08-22 | 2009-01-14 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal, and method and system for controlling reminding mode |
| CN202261503U (en)* | 2011-10-24 | 2012-05-30 | 昆明理工大学 | Mobile phone profile automatic conversion system based on acoustic sensor and motion sensor |
| CN104023121A (en)* | 2014-04-30 | 2014-09-03 | 小米科技有限责任公司 | Mode switching method and device |
| CN104301534A (en)* | 2014-10-09 | 2015-01-21 | 广东小天才科技有限公司 | A method and device for intelligently adjusting the scene mode of a mobile terminal |
| CN105376418A (en)* | 2015-12-16 | 2016-03-02 | 广东欧珀移动通信有限公司 | Incoming call information processing method, device and system |
| CN107231484A (en)* | 2017-06-23 | 2017-10-03 | 深圳天珑无线科技有限公司 | A kind of mobile terminal automatically replying incoming call method, mobile terminal and computer-readable medium |
| CN107277260A (en)* | 2017-07-07 | 2017-10-20 | 珠海格力电器股份有限公司 | Contextual model adjusting method and device and mobile terminal |
| CN110392298A (en)* | 2018-04-23 | 2019-10-29 | 腾讯科技(深圳)有限公司 | A kind of volume adjusting method, device, equipment and medium |
| CN108647005A (en)* | 2018-05-15 | 2018-10-12 | 努比亚技术有限公司 | Audio frequency playing method, mobile terminal and computer readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116055626A (en)* | 2022-08-05 | 2023-05-02 | 荣耀终端有限公司 | A communication method and terminal |
| CN116055626B (en)* | 2022-08-05 | 2023-10-20 | 荣耀终端有限公司 | A call 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 |
| WO2025147850A1 (en)* | 2024-01-09 | 2025-07-17 | 瑞声科技(南京)有限公司 | Smart device-based system and method for environment scenario identification and decision-making |
| Publication number | Publication date |
|---|---|
| CN114845213B (en) | 2024-12-31 |
| Publication | Publication Date | Title |
|---|---|---|
| CN114845213A (en) | Method for adjusting volume of terminal and terminal | |
| CN107580113B (en) | Prompting method, prompting device, storage medium and terminal | |
| US20170126192A1 (en) | Method, device, and computer-readable medium for adjusting volume | |
| CN106454644B (en) | Audio playing method and device | |
| US10121491B2 (en) | Intelligent volume control interface | |
| CN113099334B (en) | Configuration parameter determining method and device and earphone | |
| CN107493500A (en) | Multimedia resource player method and device | |
| CN116471355B (en) | Audio playback method and electronic device | |
| WO2018035868A1 (en) | Method for outputting audio, electronic device, and storage medium | |
| US12356165B2 (en) | Method and system for context-dependent automatic volume compensation | |
| CN111698593B (en) | Active noise reduction method and device, and terminal | |
| CN108668026A (en) | The method and device of control device mosquito expelling | |
| CN108132773A (en) | Electronic device and its signal processing method | |
| CN114257673B (en) | Speaker adjusting method and device, electronic equipment and storage medium | |
| WO2015030642A1 (en) | Volume reduction for an electronic device | |
| CN114360546A (en) | Electronic device and wake-up method thereof | |
| EP3941027B1 (en) | Adaptive method and apparatus for intelligent terminal, and terminal | |
| CN114374907A (en) | Sound playback method, device, audio playback device and medium | |
| CN107870758A (en) | Audio playback method and device, electronic device | |
| CN112118502A (en) | Earphone control method, device, equipment and storage medium | |
| CN112637416A (en) | Volume adjusting method and device and storage medium | |
| CN111866226B (en) | Terminal and sound production method | |
| CN113660572B (en) | Earphone call control method and device, earphone equipment and storage medium | |
| CN117135262B (en) | Conversation method and electronic equipment | |
| US20250203303A1 (en) | Talker-specific tuning of hearing assistance device |
| 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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |