技术领域technical field
本申请属于电子设备领域,具体涉及一种扬声器的控制方法、一种扬声器的控制装置以及一种电子设备。The present application belongs to the field of electronic equipment, and in particular relates to a loudspeaker control method, a loudspeaker control device and an electronic equipment.
背景技术Background technique
日常生活中,当人们在使用电子设备的扬声器进行音频或视频的声音播放时,经常需要根据周边的环境变化来手动调节扬声器的音量,例如,在进入办公室时调小扬声器的音量或在有人靠近时调小扬声器的音量等,以避免被其它人听到用户电子设备播放的声音。In daily life, when people use the speakers of electronic equipment to play audio or video, they often need to manually adjust the volume of the speakers according to changes in the surrounding environment, for example, turn down the volume of the speakers when entering the office or when someone approaches Turn down the volume of the speaker, etc. from time to time, so as to avoid other people from hearing the sound played by the user's electronic device.
为改善用户经常需要手动调节扬声器音量情况,现有技术通过接收并识别声波的反射,来对电子设备所在空间的大小进行判断,从而根据电子设备所在空间的大小进行扬声器的音量调节。In order to improve the situation that users often need to manually adjust the speaker volume, the existing technology judges the size of the space where the electronic device is located by receiving and identifying the reflection of sound waves, so as to adjust the volume of the speaker according to the size of the space where the electronic device is located.
现有技术中调节扬声器声音的方式还存在以下缺陷:在扬声器声音过大时,会导致出现被其它人听到用户电子设备播放的声音的情况下,无法保护用户的隐私;在扬声器声音过小时,会导致无法听清扬声器播放声音的问题出现,用户体验差;即现有技术中调节扬声器声音的方式存在无法兼顾让用户听清扬声器播放声音且保护用户隐私的问题。The way of adjusting the sound of the speaker in the prior art also has the following defects: when the sound of the speaker is too loud, it will cause other people to hear the sound played by the user's electronic device, and the privacy of the user cannot be protected; , it will lead to the problem that the sound played by the speaker cannot be heard clearly, and the user experience is poor; that is, the way of adjusting the sound of the speaker in the prior art cannot allow the user to hear the sound played by the speaker clearly and protect the privacy of the user.
发明内容Contents of the invention
本申请实施例的目的是提供一种扬声器的控制方法、一种扬声器的控制装置以及一种电子设备,能够解决现有技术中调节扬声器声音的方式存在的无法兼顾让用户听清扬声器播放声音且保护用户隐私的问题。The purpose of the embodiments of the present application is to provide a speaker control method, a speaker control device, and an electronic device, which can solve the problem of adjusting the sound of the speaker in the prior art, which cannot allow the user to hear the sound played by the speaker clearly. The issue of protecting user privacy.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above-mentioned technical problems, the application is implemented as follows:
第一方面,本申请实施例提供了一种扬声器的控制方法,该方法包括:In a first aspect, an embodiment of the present application provides a method for controlling a loudspeaker, the method including:
获取环境的噪音值和预设距离范围内的人群信息;Obtain the noise value of the environment and the crowd information within the preset distance range;
根据所述噪音值和所述人群信息,确定目标扬声器、目标扬声方向以及目标音量;determining a target speaker, a target speaker direction, and a target volume according to the noise value and the crowd information;
控制所述目标扬声器以所述目标扬声方向和所述目标音量进行工作。controlling the target speaker to work with the target speaker direction and the target volume.
第二方面,本申请实施例提供了一种扬声器的控制装置,包括:In a second aspect, the embodiment of the present application provides a loudspeaker control device, including:
获取模块,用于获取环境的噪音值和预设距离范围内的人群信息;The acquisition module is used to acquire the noise value of the environment and the crowd information within the preset distance range;
确定模块,用于根据所述噪音值和所述人群信息,确定目标扬声器、目标扬声方向以及目标音量;A determining module, configured to determine a target speaker, a target speaker direction, and a target volume according to the noise value and the crowd information;
控制模块,用于控制所述目标扬声器以所述目标扬声方向和所述目标音量进行工作。A control module, configured to control the target speaker to work with the target speaker direction and the target volume.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括扬声器,麦克风以及毫米波雷达传感器,电子设备还包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述扬声器的控制方法的步骤。In the third aspect, the embodiment of the present application provides an electronic device, the electronic device includes a speaker, a microphone, and a millimeter-wave radar sensor, and the electronic device also includes a processor, a memory, and a A program or instruction running on the computer, when the program or instruction is executed by the processor, the steps of the speaker control method according to the first aspect are implemented.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述扬声器的控制方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the speaker control method as described in the first aspect is implemented A step of.
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述扬声器的控制方法。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect The control method of the speaker.
在本申请实施例中,在获取环境的噪音值和预设距离范围内的人群信息后,根据噪音值和人群信息,确定电子设备中待工作的目标扬声器、目标扬声器的目标扬声方向以及目标扬声器的目标音量,进而控制目标扬声器以目标扬声方向和目标音量进行工作,从而可以确保用户可以听清扬声器播放的声音,同时电子设备所在环境的人群无法听清扬声器播放声音,实现保护用户的隐私,提高用户的音频体验。In the embodiment of the present application, after acquiring the noise value of the environment and the crowd information within the preset distance range, according to the noise value and the crowd information, the target speaker to be worked in the electronic device, the target speaker's target speaker direction, and the target loudspeaker direction are determined. The target volume of the speaker, and then control the target speaker to work in the target speaker direction and target volume, so as to ensure that the user can hear the sound played by the speaker clearly, and at the same time, the people in the environment where the electronic device is located cannot hear the sound played by the speaker clearly, so as to protect the user privacy and improve the user's audio experience.
附图说明Description of drawings
图1是本申请实施例提供的一种扬声器的控制方法的步骤流程图;FIG. 1 is a flow chart of the steps of a speaker control method provided in an embodiment of the present application;
图2是本申请具体实施例提供的一种扬声器的控制方法的步骤流程图;Fig. 2 is a flow chart of the steps of a speaker control method provided by a specific embodiment of the present application;
图3是本申请实施例提供的一种扬声器的控制装置的结构框图;Fig. 3 is a structural block diagram of a speaker control device provided by an embodiment of the present application;
图4是本申请具体实施例提供的一种扬声器的控制装置的结构框图;Fig. 4 is a structural block diagram of a loudspeaker control device provided by a specific embodiment of the present application;
图5是本申请实施例提供的一种电子设备的结构框图;FIG. 5 is a structural block diagram of an electronic device provided in an embodiment of the present application;
图6是本申请实施例提供的一种电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的扬声器的控制方法进行详细地说明。The loudspeaker control method provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
如图1所示,本申请实施例提供的扬声器的控制方法包括以下步骤:As shown in Figure 1, the speaker control method provided by the embodiment of the present application includes the following steps:
步骤10,获取环境的噪音值和预设距离范围内的人群信息。Step 10, acquiring the noise value of the environment and the crowd information within the preset distance range.
其中,步骤10可以采用任意方式获取电子设备所在环境的噪音值,以及采用任意方式获取电子设备预设距离范围内的人群信息。Wherein, in step 10, any method may be used to obtain the noise value of the environment where the electronic device is located, and any method may be used to obtain crowd information within a preset distance range of the electronic device.
例如,在本申请的一个具体实施例中,如图2所示,步骤10获取环境的噪音值可以包括:For example, in a specific embodiment of the present application, as shown in FIG. 2, step 10 to obtain the noise value of the environment may include:
步骤11,获取电子设备中至少一个麦克风采集的声音信息。Step 11, acquiring sound information collected by at least one microphone in the electronic device.
其中,声音信息可以包括声音的大小信息、声音的方向信息或其它信息。Wherein, the sound information may include sound size information, sound direction information or other information.
步骤12,根据至少一个声音信息确定噪音值。Step 12, determining a noise value according to at least one piece of sound information.
其中,步骤12可以采用任意现有技术根据至少一个声音信息确定噪音值。Wherein, step 12 may use any existing technology to determine the noise value according to at least one piece of sound information.
具体地,在至少一个麦克风为多个麦克风(两个及两个以上的麦克风)时,步骤11实现多麦拾音,步骤12根据多个声音确定噪音值,此时,步骤12确定的噪音值精确度高。Specifically, when at least one microphone is a plurality of microphones (two and more than two microphones), step 11 realizes multi-microphone pickup, and step 12 determines the noise value according to multiple sounds. At this time, the noise value determined in step 12 High precision.
另外,预设距离(例如5米)可以根据当前电子设备中扬声器的音量进行确定,以兼顾让用户听清扬声器播放声音且保护用户隐私(预设距离范围外的人群无法听到当前电子设备中扬声器播放的声音)。In addition, the preset distance (for example, 5 meters) can be determined according to the volume of the speaker in the current electronic device, so as to allow the user to hear the sound played by the speaker clearly and protect the privacy of the user (people outside the preset distance range cannot hear the sound in the current electronic device). the sound played from the speaker).
可选地,可以通过毫米波雷达传感器或其它探测模块确定电子设备预设距离范围内人数和每个人的运动方向等信息,进而步骤10可以将毫米波雷达传感器或其它探测模块确定的人数和每个人的运动方向作为人群信息。Optionally, the millimeter wave radar sensor or other detection modules can be used to determine information such as the number of people within the preset distance range of the electronic device and the movement direction of each person, and then in step 10, the number of people and each person determined by the millimeter wave radar sensor or other detection modules can be determined. The direction of movement of individuals is used as crowd information.
步骤20,根据噪音值和人群信息,确定目标扬声器、目标扬声方向以及目标音量。Step 20, according to the noise value and the crowd information, determine the target speaker, the target speaker direction and the target volume.
可选地,人群信息可以包括人数和人群中每个人的运动方向,或其它人群信息。Optionally, the crowd information may include the number of people and the movement direction of each person in the crowd, or other crowd information.
可选地,待工作的目标扬声器可以为一个扬声器或多个扬声器,目标扬声器的目标扬声方向可以为全方向或预设的任意方向,目标扬声器的目标音量可以为预设的任意音量,只需保证兼顾让用户听清扬声器播放声音且保护用户隐私即可。Optionally, the target loudspeaker to be worked can be one loudspeaker or multiple loudspeakers, the target loudspeaker direction of the target loudspeaker can be omnidirectional or any preset direction, and the target volume of the target loudspeaker can be any preset volume. It is only necessary to ensure that the user can hear the sound played by the speaker clearly and protect the user's privacy.
可选地,步骤20可以根据噪音值的大小来确定环境噪音的大小,进而根据环境噪音的大小和人群信息,来确定电子设备中待工作的目标扬声器、目标扬声器的目标扬声方向以及目标扬声器的目标音量。Optionally, step 20 may determine the magnitude of the ambient noise according to the magnitude of the noise value, and then determine the target speaker to be worked in the electronic device, the target speaker's target speaker direction, and the target speaker target volume.
步骤30,控制目标扬声器以目标扬声方向和目标音量进行工作。Step 30, controlling the target speaker to work with the target speaker direction and target volume.
其中,步骤30可以采用任意方式控制目标扬声器以目标扬声方向和目标音量进行工作。Wherein, step 30 may use any manner to control the target speaker to work with the target speaker direction and target volume.
通过步骤30控制目标扬声器以目标扬声方向和目标音量进行工作,从而可以确保用户可以听清扬声器播放声音,同时电子设备所在环境的人群无法听清扬声器播放声音,实现保护用户的隐私,提高用户的使用体验。By controlling the target speaker in step 30 to work with the target speaker direction and target volume, it can be ensured that the user can hear the sound played by the speaker clearly, and at the same time, the crowd in the environment where the electronic device is located cannot hear the sound played by the speaker clearly, so as to protect the user's privacy and improve the user experience. use experience.
可选地,在本申请的一个具体实施例中,如图2所示,人群信息可以包括人数,步骤20根据噪音值和人群信息,确定电子设备中待工作的目标扬声器、目标扬声器的目标扬声方向以及目标扬声器的目标音量,可以包括:Optionally, in a specific embodiment of the present application, as shown in FIG. 2 , the crowd information may include the number of people, and step 20 determines the target loudspeaker to be worked in the electronic device and the target loudspeaker of the target loudspeaker according to the noise value and the crowd information. Acoustic direction and target volume of target speakers, which can include:
步骤21,在噪音值小于第一预设值且人数为零的情况下,确定目标扬声器为电子设备中全部扬声器、目标扬声器的扬声方向为全方向以及目标扬声器的目标音量为第一预设音量。Step 21, when the noise value is less than the first preset value and the number of people is zero, determine that the target speaker is all the speakers in the electronic device, the direction of the target speaker is omnidirectional, and the target volume of the target speaker is the first preset volume.
其中,在噪音值小于第一预设值例如70分贝时,表明电子设备所在环境的噪音较小,在人数为零时,表明电子设备预设距离范围内无人,电子设备所在环境的隐私性好,例如,用户在个人房间内,此时,可以确定电子设备中目标扬声器为全部扬声器、目标扬声器的扬声方向为全方向以及目标扬声器的目标音量为第一预设音量,全方向为目标扬声器的所有扬声方向,通过全方向播放声音可以满足用户的音频体验。Wherein, when the noise value is less than the first preset value such as 70 decibels, it indicates that the noise of the environment where the electronic device is located is low; when the number of people is zero, it indicates that there is no one within the preset distance range of the electronic device, and the privacy of the environment where the electronic device is located Well, for example, the user is in a personal room. At this time, it can be determined that the target speaker in the electronic device is all speakers, the speaker direction of the target speaker is omnidirectional and the target volume of the target speaker is the first preset volume, and omnidirectional is the target All directions of the speaker, the user's audio experience can be satisfied by playing sound in all directions.
步骤22,在噪音值大于第一预设值且人数为零的情况下,确定目标扬声器为电子设备中全部扬声器、目标扬声器的扬声方向为全方向以及目标扬声器的目标音量为第二预设音量;第二预设音量大于第一预设音量。Step 22, when the noise value is greater than the first preset value and the number of people is zero, determine that the target speaker is all the speakers in the electronic device, the speaker direction of the target speaker is omnidirectional, and the target volume of the target speaker is the second preset Volume; the second preset volume is greater than the first preset volume.
其中,在噪音值大于第一预设值时,表明电子设备所在环境的噪音较大,在人数为零时,表明电子设备预设距离范围内无人,电子设备所在环境的隐私性好,例如,用户在KTV(Karaoke,卡拉OK)房间内,此时,可以确定电子设备中目标扬声器为全部扬声器、目标扬声器的扬声方向为全方向以及目标扬声器的目标音量为第二预设音量,以满足用户的音频体验。Wherein, when the noise value is greater than the first preset value, it indicates that the environment where the electronic device is located is noisy, and when the number of people is zero, it indicates that there is no one within the preset distance range of the electronic device, and the environment where the electronic device is located has good privacy, for example , the user is in the KTV (Karaoke, karaoke) room, at this moment, it can be determined that the target speaker in the electronic device is all speakers, the speaker direction of the target speaker is omnidirectional and the target volume of the target speaker is the second preset volume, with Satisfy the user's audio experience.
步骤23,在噪音值小于第一预设值且人数大于零的情况下,确定目标扬声器为电子设备中靠近用户的扬声器、目标扬声器的扬声方向为朝向用户的第一方向以及目标扬声器的目标音量为第一预设音量。Step 23, when the noise value is less than the first preset value and the number of people is greater than zero, determine that the target speaker is a speaker close to the user in the electronic device, the sounding direction of the target speaker is the first direction toward the user, and the target speaker's target The volume is the first preset volume.
其中,在噪音值小于第一预设值时,表明电子设备所在环境的噪音较小,在人数大于零时,表明电子设备预设距离范围内有人,电子设备所在环境的隐私性差,例如,用户在办公室内,此时,可以确定目标扬声器为电子设备中靠近用户的扬声器、目标扬声器的扬声方向为朝向用户的第一方向以及目标扬声器的目标音量为第一预设音量,以满足用户的隐私需求和音频体验。Wherein, when the noise value is less than the first preset value, it indicates that the noise of the environment where the electronic device is located is low; In the office, at this time, it can be determined that the target speaker is a speaker close to the user in the electronic device, the sounding direction of the target speaker is the first direction toward the user, and the target volume of the target speaker is the first preset volume, so as to satisfy the user's needs. Privacy needs and audio experience.
步骤24,在噪音值大于第一预设值且人数大于零的情况下,确定目标扬声器为电子设备中靠近用户的扬声器、目标扬声器的扬声方向为朝向用户的第一方向以及目标扬声器的目标音量为第二预设音量。Step 24, when the noise value is greater than the first preset value and the number of people is greater than zero, determine that the target speaker is a speaker close to the user in the electronic device, the direction of the target speaker is the first direction toward the user, and the target speaker's target The volume is the second preset volume.
其中,在噪音值大于第一预设值时,表明电子设备所在环境的噪音较大,在人数大于零时,表明电子设备预设距离范围内有人,电子设备所在环境的隐私性差,例如,用户在餐厅内,此时,可以确定目标扬声器为电子设备中靠近用户的扬声器、目标扬声器的扬声方向为朝向用户的第一方向以及目标扬声器的目标音量为第二预设音量,以满足用户的隐私需求和音频体验。Wherein, when the noise value is greater than the first preset value, it indicates that the environment where the electronic device is located is noisy. In the restaurant, at this time, it can be determined that the target speaker is a speaker close to the user in the electronic device, the sounding direction of the target speaker is the first direction towards the user, and the target volume of the target speaker is the second preset volume, so as to meet the needs of the user. Privacy needs and audio experience.
可选地,在人数大于零的情况下,人群信息还包括人群中每个人的运动方向,在控制目标扬声器以目标扬声方向和目标音量进行工作之后,如图2所示,控制方法还可以包括:Optionally, when the number of people is greater than zero, the crowd information also includes the movement direction of each person in the crowd. After controlling the target speaker to work with the target speaker direction and target volume, as shown in Figure 2, the control method can also include:
步骤40,在人群中至少一个人的运动方向为朝向电子设备的方向或人数增加的情况下,减小目标扬声器的音量。Step 40: Decrease the volume of the target speaker when the movement direction of at least one person in the crowd is toward the electronic device or the number of people increases.
其中,在人群中至少一个人的运动方向为朝向电子设备的方向或人数增加时,表明电子设备所在环境的隐私性变差,此时,通过步骤40减小目标扬声器的音量,可以确保电子设备所在环境的人群(包括以朝向电子设备的方向为运动方向的至少一个人)无法听清扬声器播放声音,实现保护用户的隐私,提高用户的使用体验。Wherein, when the movement direction of at least one person in the crowd is toward the direction of the electronic device or the number of people increases, it indicates that the privacy of the environment where the electronic device is located becomes worse. At this time, by reducing the volume of the target speaker in step 40, the electronic device People in the environment (including at least one person moving in the direction of the electronic device) cannot clearly hear the sound played by the speaker, so as to protect the user's privacy and improve the user's experience.
步骤50,在人群中每个人的运动方向均为背离电子设备的方向或人数减少的情况下,维持目标扬声器的音量或增大目标扬声器的音量。Step 50 , when the movement direction of each person in the crowd is away from the electronic device or the number of people decreases, maintain the volume of the target speaker or increase the volume of the target speaker.
其中,在人群中每个人的运动方向均为背离电子设备的方向或人数减少时,表明电子设备所在环境的隐私性变好,此时,通过步骤50维持目标扬声器的音量或增大目标扬声器的音量,可以确保电子设备所在环境的人群无法听清扬声器播放声音,实现保护用户的隐私,且提高用户的音频体验。Wherein, when the movement direction of each person in the crowd is away from the direction of the electronic device or the number of people decreases, it indicates that the privacy of the environment where the electronic device is located becomes better. At this time, through step 50, maintain the volume of the target speaker or increase the The volume can ensure that people in the environment where the electronic device is located cannot hear the sound played by the speaker, so as to protect the user's privacy and improve the user's audio experience.
可选地,在人数减少至零的情况下,可以从目标扬声器为电子设备中靠近用户的扬声器、目标扬声器的扬声方向为朝向用户的第一方向,切换为目标扬声器为电子设备中全部扬声器、目标扬声器的扬声方向为全方向。Optionally, when the number of people is reduced to zero, the target speaker can be switched from the target speaker being the speaker close to the user in the electronic device, the direction of the target speaker being the first direction toward the user, to the target speaker being all the speakers in the electronic device , The sound direction of the target speaker is omnidirectional.
可选地,在本申请的一个具体实施例中,如图2所示,控制方法还可以包括:Optionally, in a specific embodiment of the present application, as shown in FIG. 2, the control method may further include:
步骤60,在噪音值大于第一预设值且人数为零的情况下,若目标扬声器的音频模式为左右声道音频模式,则切换目标扬声器的音频模式为单声道音频模式。Step 60, if the noise value is greater than the first preset value and the number of people is zero, if the audio mode of the target speaker is the left and right channel audio mode, switch the audio mode of the target speaker to the mono audio mode.
由于在单声道音频模式下目标扬声器的声音大于在左右声道音频模式下目标扬声器的声音,从而可以进一步增大目标扬声器的声音,确保用户听清扬声器播放的声音,提高用户的音频体验。Since the sound of the target speaker in the mono audio mode is greater than the sound of the target speaker in the left and right channel audio modes, the sound of the target speaker can be further increased to ensure that the user can clearly hear the sound played by the speaker and improve the user's audio experience.
在本申请实施例中,在获取电子设备所在环境的噪音值和电子设备预设距离范围内的人群信息后,根据噪音值和人群信息,确定电子设备中待工作的目标扬声器、目标扬声器的目标扬声方向以及目标扬声器的目标音量,进而控制目标扬声器以目标扬声方向和目标音量进行工作,并在人群中至少一个人的运动方向为朝向电子设备的方向或人数增加的情况下,减小目标扬声器的音量;在人群中每个人的运动方向均为背离电子设备的方向或人数减少的情况下,维持目标扬声器的音量或增大目标扬声器的音量,以及在噪音值大于第一预设值且人数为零的情况下,若目标扬声器的音频模式为左右声道音频模式,则切换目标扬声器的音频模式为单声道音频模式。从而可以确保用户可以听清扬声器播放的声音,同时电子设备所在环境的人群无法听清扬声器播放声音,实现保护用户的隐私,并根据电子设备所在环境的人群运动方向和噪声值,调整扬声器的声音和音频模式,以提高用户的音频体验。In the embodiment of the present application, after obtaining the noise value of the environment where the electronic device is located and the crowd information within the preset distance range of the electronic device, according to the noise value and the crowd information, the target speaker to be worked in the electronic device and the target speaker's target are determined. Speaker direction and the target volume of the target speaker, and then control the target speaker to work in the target speaker direction and target volume, and reduce the The volume of the target speaker; when the movement direction of everyone in the crowd is away from the direction of the electronic device or the number of people is reduced, maintain the volume of the target speaker or increase the volume of the target speaker, and when the noise value is greater than the first preset value And when the number of people is zero, if the audio mode of the target speaker is the left and right channel audio mode, switch the audio mode of the target speaker to the mono audio mode. In this way, it can ensure that the user can hear the sound played by the speaker clearly, and at the same time, the people in the environment where the electronic device is located cannot hear the sound played by the speaker clearly, so as to protect the user's privacy, and adjust the sound of the speaker according to the movement direction and noise value of the crowd in the environment where the electronic device is located and audio modes to enhance the user's audio experience.
需要说明的是,本申请实施例提供的扬声器的控制方法,执行主体可以为扬声器的控制装置,或者该扬声器的控制装置中的用于执行扬声器的控制方法的控制模块。本申请实施例中以扬声器的控制装置执行扬声器的控制方法为例,说明本申请实施例提供的扬声器的控制装置。It should be noted that, the speaker control method provided in the embodiment of the present application may be executed by a speaker control device, or a control module in the speaker control device for executing the speaker control method. In the embodiment of the present application, the speaker control device provided in the embodiment of the present application is described by taking the speaker control device executing the speaker control method as an example.
如图3所示,本申请实施例还公开了一种扬声器的控制装置,该控制装置可以包括:As shown in Figure 3, the embodiment of the present application also discloses a speaker control device, the control device may include:
获取模块10,用于获取环境的噪音值和预设距离范围内的人群信息。The obtaining module 10 is used to obtain the noise value of the environment and the crowd information within the preset distance range.
可选地,如图4所示,获取模块10可以包括:Optionally, as shown in Figure 4, the acquisition module 10 may include:
声音信息获取单元11,用于获取电子设备中至少一个麦克风采集的声音信息。The sound information obtaining unit 11 is configured to obtain sound information collected by at least one microphone in the electronic device.
噪音值确定单元12,用于根据至少一个声音信息确定噪音值。A noise value determining unit 12, configured to determine a noise value according to at least one piece of sound information.
确定模块20,用于根据噪音值和人群信息,确定目标扬声器、目标扬声方向以及目标音量。The determining module 20 is configured to determine a target speaker, a target speaker direction and a target volume according to the noise value and crowd information.
控制模块30,用于控制目标扬声器以目标扬声方向和目标音量进行工作。The control module 30 is used to control the target speaker to work in the target speaker direction and target volume.
可选地,如图4所示,人群信息包括人数,确定模块20可以包括:Optionally, as shown in Figure 4, the crowd information includes the number of people, and the determining module 20 may include:
第一确定单元21,用于在噪音值小于第一预设值且人数为零的情况下,确定目标扬声器为电子设备中全部扬声器、目标扬声器的扬声方向为全方向以及目标扬声器的目标音量为第一预设音量。The first determining unit 21 is used to determine that the target speaker is all speakers in the electronic device, the speaker direction of the target speaker is omnidirectional and the target volume of the target speaker when the noise value is less than the first preset value and the number of people is zero. for the first preset volume.
第二确定单元22,用于在噪音值大于第一预设值且人数为零的情况下,确定目标扬声器为电子设备中全部扬声器、目标扬声器的扬声方向为全方向以及目标扬声器的目标音量为第二预设音量;第二预设音量大于第一预设音量。The second determination unit 22 is used to determine that the target speaker is all the speakers in the electronic device, the direction of the target speaker is omnidirectional and the target volume of the target speaker when the noise value is greater than the first preset value and the number of people is zero. is the second preset volume; the second preset volume is greater than the first preset volume.
第三确定单元23,用于在噪音值小于第一预设值且人数大于零的情况下,确定目标扬声器为电子设备中靠近用户的扬声器、目标扬声器的扬声方向为朝向用户的第一方向以及目标扬声器的目标音量为第一预设音量。The third determining unit 23 is configured to determine that the target speaker is a speaker close to the user in the electronic device when the noise value is less than the first preset value and the number of people is greater than zero, and the sounding direction of the target speaker is the first direction toward the user And the target volume of the target speaker is the first preset volume.
第四确定单元24,用于在噪音值大于第一预设值且人数大于零的情况下,确定目标扬声器为电子设备中靠近用户的扬声器、目标扬声器的扬声方向为朝向用户的第一方向以及目标扬声器的目标音量为第二预设音量。The fourth determination unit 24 is configured to determine that the target speaker is a speaker close to the user in the electronic device when the noise value is greater than the first preset value and the number of people is greater than zero, and the direction of the target speaker is the first direction toward the user And the target volume of the target speaker is the second preset volume.
可选地,在人数大于零的情况下,人群信息还包括人群中每个人的运动方向,在控制模块之后,如图4所示,控制装置还可以包括:Optionally, when the number of people is greater than zero, the crowd information also includes the movement direction of each person in the crowd. After the control module, as shown in Figure 4, the control device can also include:
音量减小模块40,用于在人群中至少一个人的运动方向为朝向电子设备的方向或人数增加的情况下,减小目标扬声器的音量。The volume reduction module 40 is configured to reduce the volume of the target speaker when the movement direction of at least one person in the crowd is toward the electronic device or the number of people increases.
音量增大模块50,用于在人群中每个人的运动方向均为背离电子设备的方向或人数减少的情况下,维持目标扬声器的音量或增大目标扬声器的音量。The volume increasing module 50 is configured to maintain the volume of the target speaker or increase the volume of the target speaker when the movement direction of each person in the crowd is away from the electronic device or the number of people decreases.
可选地,如图4所示,控制装置还可以包括:Optionally, as shown in Figure 4, the control device may also include:
音频模式切换模块60,用于在噪音值大于第一预设值且人数为零的情况下,若目标扬声器的音频模式为左右声道音频模式,则切换目标扬声器的音频模式为单声道音频模式。Audio mode switching module 60, used to switch the audio mode of the target speaker to mono audio if the audio mode of the target speaker is the left and right channel audio mode when the noise value is greater than the first preset value and the number of people is zero model.
在本申请实施例中,在获取电子设备所在环境的噪音值和电子设备预设距离范围内的人群信息后,根据噪音值和人群信息,确定电子设备中待工作的目标扬声器、目标扬声器的目标扬声方向以及目标扬声器的目标音量,进而控制目标扬声器以目标扬声方向和目标音量进行工作,并在人群中至少一个人的运动方向为朝向电子设备的方向或人数增加的情况下,减小目标扬声器的音量;在人群中每个人的运动方向均为背离电子设备的方向或人数减少的情况下,维持目标扬声器的音量或增大目标扬声器的音量,以及在噪音值大于第一预设值且人数为零的情况下,若目标扬声器的音频模式为左右声道音频模式,则切换目标扬声器的音频模式为单声道音频模式。从而可以确保用户可以听清扬声器播放的声音,同时电子设备所在环境的人群无法听清扬声器播放声音,实现保护用户的隐私,并根据电子设备所在环境的人群运动方向和噪声值,调整扬声器的声音和音频模式,以提高用户的音频体验。In the embodiment of the present application, after obtaining the noise value of the environment where the electronic device is located and the crowd information within the preset distance range of the electronic device, according to the noise value and the crowd information, the target speaker to be worked in the electronic device and the target speaker's target are determined. Speaker direction and the target volume of the target speaker, and then control the target speaker to work in the target speaker direction and target volume, and reduce the The volume of the target speaker; when the movement direction of everyone in the crowd is away from the direction of the electronic device or the number of people is reduced, maintain the volume of the target speaker or increase the volume of the target speaker, and when the noise value is greater than the first preset value And when the number of people is zero, if the audio mode of the target speaker is the left and right channel audio mode, switch the audio mode of the target speaker to the mono audio mode. In this way, it can ensure that the user can hear the sound played by the speaker clearly, and at the same time, the people in the environment where the electronic device is located cannot hear the sound played by the speaker clearly, so as to protect the user's privacy, and adjust the sound of the speaker according to the movement direction and noise value of the crowd in the environment where the electronic device is located and audio modes to enhance the user's audio experience.
本申请实施例中的扬声器的控制装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The device for controlling the speaker in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., non-mobile electronic equipment can be server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的扬声器的控制装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The speaker control device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
本申请实施例提供的扬声器的控制装置能够实现图1至图2的方法实施例实现的各个过程,为避免重复,这里不再赘述。The loudspeaker control device provided in the embodiment of the present application can realize various processes realized by the method embodimentsin FIG. 1 to FIG. 2 , and details are not repeated here to avoid repetition.
可选的,如图5所示,本申请实施例还提供一种电子设备500,包括扬声器,麦克风以及毫米波雷达传感器,电子设备500还包括处理器501,存储器502,存储在存储器502上并可在所述处理器501上运行的程序或指令,该程序或指令被处理器501执行时实现上述扬声器的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,扬声器,麦克风以及毫米波雷达传感器的数量可以大于或等于一个。Optionally, as shown in FIG. 5 , the embodiment of the present application also provides an electronic device 500, including a speaker, a microphone, and a millimeter-wave radar sensor. The electronic device 500 also includes a processor 501, a memory 502, stored in the memory 502 and The program or instruction that can run on the processor 501, when the program or instruction is executed by the processor 501, realizes the various processes of the above speaker control method embodiment, and can achieve the same technical effect, in order to avoid repetition, it is not described here Let me repeat. Wherein, the number of speakers, microphones and millimeter wave radar sensors may be greater than or equal to one.
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图6为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备600包括但不限于:射频单元601、网络模块602、音频输出单元603(包括麦克风)、输入单元604(包括扬声器)、传感器605(包括毫米波雷达传感器)、显示单元606、用户输入单元607、接口单元608、存储器609、以及处理器610等部件。The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603 (including a microphone), an input unit 604 (including a speaker), a sensor 605 (including a millimeter wave radar sensor), a display unit 606, and a user input Unit 607, interface unit 608, memory 609, processor 610 and other components.
本领域技术人员可以理解,电子设备600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 600 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 610 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the electronic device shown in FIG. 6 does not constitute a limitation to the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
其中,处理器610,用于获取环境的噪音值和预设距离范围内的人群信息;Wherein, the processor 610 is used to obtain the noise value of the environment and the crowd information within the preset distance range;
根据噪音值和所群信息,确定目标扬声器、目标扬声方向以及目标音量;Determine the target speaker, target speaker direction and target volume according to the noise value and group information;
控制所述目标扬声器以所述目标扬声方向和所述目标音量进行工作。controlling the target speaker to work with the target speaker direction and the target volume.
在本申请实施例中,在获取电子设备所在环境的噪音值和电子设备预设距离范围内的人群信息后,根据噪音值和人群信息,确定电子设备中待工作的目标扬声器、目标扬声器的目标扬声方向以及目标扬声器的目标音量,进而控制目标扬声器以目标扬声方向和目标音量进行工作,从而可以确保用户可以听清扬声器播放的声音,同时电子设备所在环境的人群无法听清扬声器播放声音,实现保护用户的隐私,提高用户的音频体验。In the embodiment of the present application, after obtaining the noise value of the environment where the electronic device is located and the crowd information within the preset distance range of the electronic device, according to the noise value and the crowd information, the target speaker to be worked in the electronic device and the target speaker's target are determined. The direction of the speaker and the target volume of the target speaker, and then control the target speaker to work in the target speaker direction and target volume, so as to ensure that the user can hear the sound played by the speaker clearly, and at the same time, the people in the environment where the electronic device is located cannot hear the sound played by the speaker clearly , to protect the user's privacy and improve the user's audio experience.
可选地,所述人群信息包括人数,所述根据所述噪音值和所述人群信息,处理器610还用于:Optionally, the crowd information includes the number of people, and according to the noise value and the crowd information, the processor 610 is further configured to:
在所述噪音值小于第一预设值且所述人数为零的情况下,确定所述目标扬声器为所述电子设备中全部扬声器、所述目标扬声器的扬声方向为全方向以及所述目标扬声器的目标音量为第一预设音量;When the noise value is less than the first preset value and the number of people is zero, it is determined that the target speaker is all speakers in the electronic device, the speaker direction of the target speaker is omnidirectional, and the target speaker The target volume of the speaker is the first preset volume;
在所述噪音值大于所述第一预设值且所述人数为零的情况下,确定所述目标扬声器为所述电子设备中全部扬声器、所述目标扬声器的扬声方向为全方向以及所述目标扬声器的目标音量为第二预设音量;所述第二预设音量大于所述第一预设音量;When the noise value is greater than the first preset value and the number of people is zero, it is determined that the target speaker is all the speakers in the electronic device, the speaker direction of the target speaker is omnidirectional, and the The target volume of the target speaker is a second preset volume; the second preset volume is greater than the first preset volume;
在所述噪音值小于所述第一预设值且所述人数大于零的情况下,确定所述目标扬声器为所述电子设备中靠近用户的扬声器、所述目标扬声器的扬声方向为朝向所述用户的第一方向以及所述目标扬声器的目标音量为所述第一预设音量;When the noise value is less than the first preset value and the number of people is greater than zero, it is determined that the target speaker is a speaker close to the user in the electronic device, and the sound direction of the target speaker is toward the The first direction of the user and the target volume of the target speaker are the first preset volume;
在所述噪音值大于所述第一预设值且所述人数大于零的情况下,确定所述目标扬声器为所述电子设备中靠近所述用户的扬声器、所述目标扬声器的扬声方向为朝向所述用户的第一方向以及所述目标扬声器的目标音量为所述第二预设音量。When the noise value is greater than the first preset value and the number of people is greater than zero, determine that the target speaker is a speaker close to the user in the electronic device, and the sound direction of the target speaker is The first direction towards the user and the target volume of the target speaker are the second preset volume.
可选地,在所述人数大于零的情况下,所述人群信息还包括人群中每个人的运动方向,在处理器610控制所述目标扬声器以所述目标扬声方向和所述目标音量进行工作之后,处理器610还用于:Optionally, when the number of people is greater than zero, the crowd information also includes the movement direction of each person in the crowd, and the processor 610 controls the target speaker to perform the target speaker with the target speaker direction and the target volume. After working, the processor 610 is also used for:
在所述人群中至少一个人的运动方向为朝向所述电子设备的方向或所述人数增加的情况下,减小所述目标扬声器的音量;Decrease the volume of the target speaker when the movement direction of at least one person in the crowd is toward the electronic device or the number of people increases;
在所述人群中每个人的运动方向均为背离所述电子设备的方向或所述人数减少的情况下,维持所述目标扬声器的音量或增大所述目标扬声器的音量。When the movement direction of each person in the crowd is away from the direction of the electronic device or the number of people decreases, maintain the volume of the target speaker or increase the volume of the target speaker.
可选地,处理器610还用于:Optionally, the processor 610 is also used for:
在所述噪音值大于所述第一预设值且所述人数为零的情况下,若所述目标扬声器的音频模式为左右声道音频模式,则切换所述目标扬声器的音频模式为单声道音频模式。When the noise value is greater than the first preset value and the number of people is zero, if the audio mode of the target speaker is the left and right channel audio mode, switch the audio mode of the target speaker to monophonic channel audio mode.
可选地,处理器610还用于:Optionally, the processor 610 is also used for:
获取电子设备中至少一个麦克风采集的声音信息;Acquiring sound information collected by at least one microphone in the electronic device;
根据所述至少一个声音信息确定所述噪音值。The noise value is determined according to the at least one sound information.
在本申请实施例中,在获取电子设备所在环境的噪音值和电子设备预设距离范围内的人群信息后,根据噪音值和人群信息,确定电子设备中待工作的目标扬声器、目标扬声器的目标扬声方向以及目标扬声器的目标音量,进而控制目标扬声器以目标扬声方向和目标音量进行工作,并在人群中至少一个人的运动方向为朝向电子设备的方向或人数增加的情况下,减小目标扬声器的音量;在人群中每个人的运动方向均为背离电子设备的方向或人数减少的情况下,维持目标扬声器的音量或增大目标扬声器的音量,以及在噪音值大于第一预设值且人数为零的情况下,若目标扬声器的音频模式为左右声道音频模式,则切换目标扬声器的音频模式为单声道音频模式。从而可以确保用户可以听清扬声器播放的声音,同时电子设备所在环境的人群无法听清扬声器播放声音,实现保护用户的隐私,并根据电子设备所在环境的人群运动方向和噪声值,调整扬声器的声音和音频模式,以提高用户的音频体验。In the embodiment of the present application, after obtaining the noise value of the environment where the electronic device is located and the crowd information within the preset distance range of the electronic device, according to the noise value and the crowd information, the target speaker to be worked in the electronic device and the target speaker's target are determined. Speaker direction and the target volume of the target speaker, and then control the target speaker to work in the target speaker direction and target volume, and reduce the The volume of the target speaker; when the movement direction of everyone in the crowd is away from the direction of the electronic device or the number of people is reduced, maintain the volume of the target speaker or increase the volume of the target speaker, and when the noise value is greater than the first preset value And when the number of people is zero, if the audio mode of the target speaker is the left and right channel audio mode, switch the audio mode of the target speaker to the mono audio mode. In this way, it can ensure that the user can hear the sound played by the speaker clearly, and at the same time, the people in the environment where the electronic device is located cannot hear the sound played by the speaker clearly, so as to protect the user's privacy, and adjust the sound of the speaker according to the movement direction and noise value of the crowd in the environment where the electronic device is located and audio modes to enhance the user's audio experience.
应理解的是,本申请实施例中,输入单元604可以包括图形处理器(GraphicsProcessing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元606可包括显示面板6061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板6061。用户输入单元607包括触控面板6071以及其他输入设备6072。触控面板6071,也称为触摸屏。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器609可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。It should be understood that, in the embodiment of the present application, the input unit 604 may include a graphics processing unit (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processing unit 6041 is compatible with an image capture device (such as Camera) to process the image data of still pictures or videos. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 607 includes a touch panel 6071 and other input devices 6072 . The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts, a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 609 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 610 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述扬声器的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, the readable storage medium stores a program or an instruction, and when the program or instruction is executed by a processor, each process of the above embodiment of the loudspeaker control method is realized, and can achieve The same technical effects are not repeated here to avoid repetition.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另外提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述扬声器的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above embodiment of the speaker control method Each process, and can achieve the same technical effect, in order to avoid repetition, will not repeat them here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011194259.6ACN112291672B (en) | 2020-10-30 | 2020-10-30 | Speaker control method, control device and electronic device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011194259.6ACN112291672B (en) | 2020-10-30 | 2020-10-30 | Speaker control method, control device and electronic device |
| Publication Number | Publication Date |
|---|---|
| CN112291672A CN112291672A (en) | 2021-01-29 |
| CN112291672Btrue CN112291672B (en) | 2023-09-01 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011194259.6AActiveCN112291672B (en) | 2020-10-30 | 2020-10-30 | Speaker control method, control device and electronic device |
| Country | Link |
|---|---|
| CN (1) | CN112291672B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113055785B (en)* | 2021-03-29 | 2022-05-27 | 珠海格力电器股份有限公司 | Volume adjusting method, system and device |
| CN113746982B (en)* | 2021-08-25 | 2023-02-28 | 维沃移动通信(杭州)有限公司 | Audio playing control method and device, electronic equipment and readable storage medium |
| CN118394296A (en)* | 2023-01-17 | 2024-07-26 | 荣耀终端有限公司 | Channel mode switching method, device and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103945062A (en)* | 2014-04-16 | 2014-07-23 | 华为技术有限公司 | User terminal volume adjusting method, device and terminal |
| CN107135308A (en)* | 2017-04-26 | 2017-09-05 | 努比亚技术有限公司 | Multimedia file plays audio control method, mobile terminal and readable storage medium storing program for executing |
| CN107318067A (en)* | 2017-05-24 | 2017-11-03 | 广东小天才科技有限公司 | Audio directional playing method and device of terminal equipment |
| CN108804180A (en)* | 2018-05-25 | 2018-11-13 | Oppo广东移动通信有限公司 | Display method, device, terminal and storage medium of user interface |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9685926B2 (en)* | 2014-12-10 | 2017-06-20 | Ebay Inc. | Intelligent audio output devices |
| US10271132B2 (en)* | 2016-11-28 | 2019-04-23 | Motorola Solutions, Inc. | Method to dynamically change the directional speakers audio beam and level based on the end user activity |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103945062A (en)* | 2014-04-16 | 2014-07-23 | 华为技术有限公司 | User terminal volume adjusting method, device and terminal |
| CN107135308A (en)* | 2017-04-26 | 2017-09-05 | 努比亚技术有限公司 | Multimedia file plays audio control method, mobile terminal and readable storage medium storing program for executing |
| CN107318067A (en)* | 2017-05-24 | 2017-11-03 | 广东小天才科技有限公司 | Audio directional playing method and device of terminal equipment |
| CN108804180A (en)* | 2018-05-25 | 2018-11-13 | Oppo广东移动通信有限公司 | Display method, device, terminal and storage medium of user interface |
| Publication number | Publication date |
|---|---|
| CN112291672A (en) | 2021-01-29 |
| Publication | Publication Date | Title |
|---|---|---|
| CN112291672B (en) | Speaker control method, control device and electronic device | |
| CN111916102B (en) | Recording method and recording device of electronic equipment | |
| CN107231473B (en) | Audio output regulation and control method, equipment and computer readable storage medium | |
| CN111370018B (en) | Audio data processing method, electronic device and medium | |
| CN109616135B (en) | Audio processing method, device and storage medium | |
| CN110750734B (en) | Weather display method, weather display device, computer equipment and computer readable storage medium | |
| CN111445901B (en) | Audio data acquisition method and device, electronic equipment and storage medium | |
| CN111083289B (en) | Audio playing method and device, storage medium and mobile terminal | |
| CN115831155A (en) | Audio signal processing method and device, electronic equipment and storage medium | |
| CN111613213B (en) | Audio classification method, device, equipment and storage medium | |
| CN110097872A (en) | A kind of audio-frequency processing method and electronic equipment | |
| WO2021098698A1 (en) | Audio playback method and terminal device | |
| CN111033614A (en) | Volume adjustment method, device, mobile terminal and storage medium | |
| CN111863020A (en) | Voice signal processing method, device, equipment and storage medium | |
| CN112133319B (en) | Audio generation method, device, equipment and storage medium | |
| CN110297543A (en) | A kind of audio frequency playing method and terminal device | |
| CN111341317B (en) | Evaluation method, device, electronic device and medium for wake-up audio data | |
| CN113380249B (en) | Voice control method, device, equipment and storage medium | |
| WO2019061292A1 (en) | Noise reduction method for terminal and terminal | |
| CN113115179B (en) | Working state adjusting method and device | |
| CN110058837A (en) | A kind of audio-frequency inputting method and terminal | |
| CN113672191B (en) | Audio playback method and device | |
| CN113990340B (en) | Audio signal processing method, device, terminal and storage medium | |
| CN115331689A (en) | Training method, device, equipment, storage medium and product of voice noise reduction model | |
| CN113450823B (en) | Audio-based scene recognition method, device, equipment and storage medium |
| 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 |