技术领域technical field
本申请实施例涉及终端设备技术领域,尤其涉及一种音量控制方法、装置、存储介质及终端设备。The embodiments of the present application relate to the technical field of terminal equipment, and in particular, to a volume control method, device, storage medium, and terminal equipment.
背景技术Background technique
在使用播放设备播放声音时,不同用户对于播放设备的音量的使用习惯是不同的,有些用户习惯播放设备的音量声音偏大,有些用户习惯播放设备的音量偏小,所以用户一般会根据自己的习惯设置播放设备的音量。播放设备可能包括多个播放单元,而现有的播放设备的多个播放单元的音量控制一般是由控制端统一进行控制,这种音量控制方式存在不足,需要进一步进行优化。When using a playback device to play sound, different users have different usage habits for the volume of the playback device. Some users are used to the volume of the playback device being too loud, and some users are used to the volume of the playback device being too low. Get used to setting the volume of your playback device. The playback device may include multiple playback units, and the volume control of the multiple playback units of the existing playback device is generally controlled by the control terminal. This volume control method has shortcomings and needs to be further optimized.
发明内容Contents of the invention
本申请实施例提供的一种音量控制方法、装置、存储介质及终端设备,可以对现有的音量控制方式进行优化。The volume control method, device, storage medium and terminal equipment provided in the embodiments of the present application can optimize the existing volume control mode.
第一方面,本申请实施例提供了一种音量控制方法,包括:In the first aspect, the embodiment of the present application provides a volume control method, including:
在用户使用播放设备时,确定使用的播放单元;其中,所述播放设备包括至少两个播放单元;When the user uses the playback device, determine the playback unit used; wherein the playback device includes at least two playback units;
确定每个使用的播放单元对应的用户的身份信息;Determine the identity information of the user corresponding to each playing unit used;
根据每个播放单元对应的身份信息分别控制每个播放单元的音量。The volume of each playback unit is controlled respectively according to the identity information corresponding to each playback unit.
第二方面,本申请实施例提供了一种音量控制装置,包括:In a second aspect, the embodiment of the present application provides a volume control device, including:
播放确定模块,用于在用户使用播放设备时,确定使用的播放单元;其中,所述播放设备包括至少两个播放单元;A playback determination module, configured to determine the playback unit used when the user uses the playback device; wherein the playback device includes at least two playback units;
身份确定模块,用于确定每个使用的播放单元对应的用户的身份信息;An identity determination module, configured to determine the identity information of the user corresponding to each playing unit used;
音量控制模块,用于根据每个播放单元对应的身份信息分别控制每个播放单元的音量。The volume control module is used to respectively control the volume of each playback unit according to the identity information corresponding to each playback unit.
第三方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请实施例所述的音量控制方法。In a third aspect, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the volume control method as described in the embodiment of the present application is implemented.
第四方面,本申请实施例提供了一种终端设备,包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例所述的音量控制方法。In the fourth aspect, the embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the implementation of the present application is implemented. The volume control method described in the example.
本申请实施例中提供的一种音量控制方案,通过在用户使用播放设备时,确定使用的播放单元;其中,所述播放设备包括至少两个播放单元;确定每个使用的播放单元对应的用户的身份信息;根据每个播放单元对应的身份信息分别控制每个播放单元的音量。通过采用上述技术方案,可以根据每个播放单元对应的身份信息来控制播放单元的音量,可以满足用户对播放单元的音量控制的不同需求。A volume control scheme provided in the embodiment of the present application is to determine the playback unit used when the user uses the playback device; wherein, the playback device includes at least two playback units; determine the user corresponding to each playback unit used The identity information of each playback unit; the volume of each playback unit is controlled respectively according to the identity information corresponding to each playback unit. By adopting the above technical solution, the volume of the playback unit can be controlled according to the identity information corresponding to each playback unit, which can meet different demands of users on the volume control of the playback unit.
附图说明Description of drawings
图1为本申请实施例提供的一种音量控制方法的流程示意图;FIG. 1 is a schematic flowchart of a volume control method provided in an embodiment of the present application;
图2为本申请实施例提供的另一种音量控制方法的流程示意图;FIG. 2 is a schematic flowchart of another volume control method provided by the embodiment of the present application;
图3为本申请实施例提供的一种音量控制方法的场景示意图;FIG. 3 is a schematic diagram of a scene of a volume control method provided by an embodiment of the present application;
图4为本申请实施例提供的另一种音量控制方法的流程示意图;FIG. 4 is a schematic flowchart of another volume control method provided by the embodiment of the present application;
图5为本申请实施例提供的另一种音量控制方法的场景示意图;FIG. 5 is a schematic diagram of another volume control method provided by the embodiment of the present application;
图6为本申请实施例提供的另一种音量控制方法的场景示意图;FIG. 6 is a schematic diagram of another volume control method provided by the embodiment of the present application;
图7为本申请实施例提供的另一种音量控制方法的流程示意图;FIG. 7 is a schematic flowchart of another volume control method provided by the embodiment of the present application;
图8为本申请实施例提供的一种音量控制装置的结构框图;FIG. 8 is a structural block diagram of a volume control device provided by an embodiment of the present application;
图9为本申请实施例提供的一种终端设备的结构示意图;FIG. 9 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
图10为本申请实施例提供的另一种终端设备的结构示意图。FIG. 10 is a schematic structural diagram of another terminal device provided in an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图并通过具体实施方式来进一步说明本申请的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The technical solution of the present application will be further described below in conjunction with the accompanying drawings and through specific implementation methods. It should be understood that the specific embodiments described here are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only some structures related to the present application are shown in the drawings but not all structures.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the steps as sequential processing, many of the steps may be performed in parallel, concurrently, or simultaneously. Additionally, the order of steps may be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
播放设备包括如蓝牙耳机或线控耳机等,每个用户对于使用耳机的音量需求均不同。蓝牙耳机一般包括两个受话器,且两个受话器的音量一般是同步进行控制的;而如果有两个用户分别使用两个受话器,且两个用户对于耳机音量的需求有所不同,本申请实施例可以识别使用受话器的用户的身份,并根据用户的身份对应调整受话器的音量值。Playback devices include bluetooth earphones or wire-controlled earphones, and each user has different volume requirements for using earphones. Bluetooth headsets generally include two receivers, and the volume of the two receivers is generally controlled synchronously; and if two users use two receivers respectively, and the two users have different requirements for the headset volume, the embodiment of the present application The identity of the user using the receiver can be identified, and the volume value of the receiver can be adjusted correspondingly according to the identity of the user.
图1为本申请实施例提供的一种音量控制方法的流程示意图,该方法可以由音量控制装置执行,其中该装置可以由软件和/或硬件实现,一般可以集成在终端设备中,也可以集成在其他安装有操作系统的设备中。如图1所示,该方法包括:Figure 1 is a schematic flowchart of a volume control method provided by an embodiment of the present application. The method can be executed by a volume control device, wherein the device can be implemented by software and/or hardware, and can generally be integrated in a terminal device or can be integrated In other devices with an operating system installed. As shown in Figure 1, the method includes:
S110、在用户使用播放设备时,确定使用的播放单元;其中,所述播放设备包括至少两个播放单元。S110. When the user uses the playback device, determine the playback unit used; wherein the playback device includes at least two playback units.
其中,播放设备可以是具有音频播放功能的设备,可以是耳机设备或音响设备等。所述用户使用播放设备时,可以是用户启动播放设备时;也可以是在播放设备和音源设备建立连接,且用户使用所述播放设备时,确定使用的播放单元。播放设备可以和音源设备建立连接,并接收音源设备输出的音频数据进行播放。Wherein, the playback device may be a device with an audio playback function, such as an earphone device or an audio device. When the user uses the playback device, it may be when the user starts the playback device; it may also be when the playback device is connected to the audio source device and the user uses the playback device, the playback unit to be used is determined. The playback device can establish a connection with the audio source device, and receive and play the audio data output by the audio source device.
所述音源设备为可以输出音频数据,并通过播放设备进行播放的设备。音源设备可以是终端设备,终端设备可以是智能手机、平板电脑或其他具有相应操作系统的电子设备。音源设备也可以是音频数据存储设备,可以是硬盘、U盘(USB flash disk,USB闪存盘)或其他具有音频数据存储功能的存储设备。The audio source device is a device that can output audio data and play it through a playback device. The audio source device may be a terminal device, and the terminal device may be a smart phone, a tablet computer or other electronic devices with corresponding operating systems. The audio source device can also be an audio data storage device, which can be a hard disk, a USB flash disk (USB flash disk, USB flash drive) or other storage devices with audio data storage function.
所述播放单元为:可以针对其对应的用户或空间进行播放的设备。示例性地,如果所述播放设备为音响系统,所述播放单元可以是所述音响系统所包括的音箱。如果所述播放设备为耳机,所述播放单元可以是耳机包括的耳机头。所述播放设备包括至少两个播放单元,所述播放设备可以针对至少两个用户,或针对至少两个空间进行播放。The playing unit is: a device that can play for its corresponding user or space. Exemplarily, if the playback device is a sound system, the playback unit may be a sound box included in the sound system. If the playback device is an earphone, the playback unit may be an earphone included in the earphone. The playback device includes at least two playback units, and the playback device can play for at least two users or for at least two spaces.
所述使用的播放单元为处于使用状态的播放单元,可以是启动后被用户使用的播放单元。示例性地,如果所述播放设备为音响系统,音响系统包括多个音箱,用户启动了多个音箱中的若干个音箱,则可以确定使用的播放单元为哪几个。可选地,可以通过判断播放单元是否开启和/或所述播放单元是否接收到待播放的音频数据来确定所述播放单元是否处于使用状态。The used playback unit is a playback unit in use, and may be a playback unit used by a user after being started. Exemplarily, if the playback device is a sound system, the sound system includes a plurality of sound boxes, and the user activates several sound boxes in the plurality of sound boxes, then it may be determined which playback units are used. Optionally, whether the playback unit is in use can be determined by judging whether the playback unit is turned on and/or whether the playback unit receives audio data to be played.
S111、确定每个使用的播放单元对应的用户的身份信息。S111. Determine the identity information of the user corresponding to each used playback unit.
其中,所述用户的身份信息为确定用户的唯一性身份的信息,示例性地,可以是通过获取用户账号和对应的账号密码来确定用户的身份信息。所述确定用户的身份信息的方式包括多种,可以根据实际应用情况进行确定。由于用户的身份信息的唯一性,所以在确定用户的身份信息之后,确定每个播放单元对应的用户是否是同一个用户,进而可以根据身份信息对播放单元的音量进行调节。Wherein, the user's identity information is information for determining the unique identity of the user. Exemplarily, the user's identity information may be determined by obtaining a user account and a corresponding account password. There are many ways to determine the user's identity information, which can be determined according to actual application conditions. Due to the uniqueness of the user's identity information, after determining the user's identity information, it is determined whether the user corresponding to each playback unit is the same user, and then the volume of the playback unit can be adjusted according to the identity information.
所述使用的播放单元还可以是被用户使用的播放单元。相应地,可以通过判断播放单元是否有对应的用户的身份信息来确定所述播放单元是否处于使用状态。示例性地,如果所述播放设备为耳机,所述播放单元为耳机头;如果所述耳机头处于使用状态,用户应该已经将所述耳机头佩戴在耳朵上,所以可以确定所述耳机头有对应的身份信息;相应地,如果所述耳机头没有对应的身份信息,则表示该耳机头并未被用户佩戴,则可以确定所述耳机头不在使用状态。The used playback unit may also be a playback unit used by the user. Correspondingly, it may be determined whether the playback unit is in use by judging whether the playback unit has corresponding user identity information. Exemplarily, if the playback device is an earphone, the playback unit is an earphone head; if the earphone head is in use, the user should have worn the earphone head on the ear, so it can be determined that the earphone head has Corresponding identity information; Correspondingly, if the earphone head does not have the corresponding identity information, it means that the earphone head is not worn by the user, and it can be determined that the earphone head is not in use.
S112、根据每个播放单元对应的身份信息分别控制每个播放单元的音量。S112. Control the volume of each playback unit respectively according to the identity information corresponding to each playback unit.
其中,每个播放单元对应的身份信息可以确定每个播放单元所对应的用户是否是同一个人。因为每个人对播放单元的音量的使用习惯有所不同,所以可以在确定播放单元的身份信息,并确定播放单元的使用者是相同的用户或不同的用户,来分别对每个播放单元的音量进行控制。Wherein, the identity information corresponding to each playback unit can determine whether the user corresponding to each playback unit is the same person. Because each person has different habits of using the volume of the playback unit, it is possible to determine the identity information of the playback unit and determine whether the user of the playback unit is the same user or a different user to adjust the volume of each playback unit Take control.
可选地,对于任意两个或多个使用的播放单元,如果根据其对应的身份信息确认为同一个用户,则可以同时控制所述两个或多个播放单元的音量。对于任意两个或多个使用的播放单元,如果根据其对应的身份信息确定为不同的用户,则分别控制所述两个或多个播放单元的音量。Optionally, if any two or more used playback units are confirmed as the same user according to their corresponding identity information, the volume of the two or more playback units can be controlled simultaneously. For any two or more used playback units, if they are determined to be different users according to their corresponding identity information, the volumes of the two or more playback units are respectively controlled.
本申请实施例中提供的一种音量控制方法,通过在用户使用播放设备时,确定使用的播放单元;其中,所述播放设备包括至少两个播放单元;确定每个使用的播放单元对应的用户的身份信息;根据每个播放单元对应的身份信息分别控制每个播放单元的音量。通过采用上述技术方案,可以根据每个播放单元对应的身份信息来控制播放单元的音量,可以满足用户对播放单元的音量控制的不同需求。A volume control method provided in an embodiment of the present application is to determine the playback unit used when the user uses the playback device; wherein the playback device includes at least two playback units; determine the user corresponding to each playback unit used The identity information of each playback unit; the volume of each playback unit is controlled respectively according to the identity information corresponding to each playback unit. By adopting the above technical solution, the volume of the playback unit can be controlled according to the identity information corresponding to each playback unit, which can meet different demands of users on the volume control of the playback unit.
图2为本申请实施例提供的另一种音量控制方法的流程示意图,在上述实施例所提供的技术方案的基础上,对确定每个使用的播放单元对应的用户的身份信息的操作进行了优化,可选地,如图2所示,该方法包括:Fig. 2 is a schematic flow chart of another volume control method provided by the embodiment of the present application. On the basis of the technical solution provided by the above embodiment, the operation of determining the identity information of the user corresponding to each playing unit used is carried out. Optimizing, optionally, as shown in Figure 2, the method includes:
S120、在用户使用播放设备时,确定使用的播放单元;其中,所述播放设备包括至少两个播放单元。S120. When the user uses the playback device, determine the playback unit used; wherein the playback device includes at least two playback units.
具体实施方式可以参考上文的相关描述,在此不再赘述。For specific implementation manners, reference may be made to relevant descriptions above, and details are not repeated here.
S121、通过每个使用的播放单元获取对应的用户的生物特征信息,并根据所述生物特征信息确定所述用户的身份信息。S121. Obtain biometric information of a corresponding user through each used playback unit, and determine identity information of the user according to the biometric information.
其中,所述用户的生物特征信息包括用户的身体上固有的,以及可以与其他用户进行区分的生理性的特征信息。可选地,生物特征信息可以是用户的指纹信息、人脸信息和虹膜信息等等。Wherein, the biometric information of the user includes physiological characteristic information inherent in the user's body and that can be distinguished from other users. Optionally, the biometric information may be the user's fingerprint information, face information, iris information, and so on.
可以是在所述播放设备上集成了用于获取用户的生物特征信息的检测模块,所以在用户使用所述播放设备,播放设备可以直接获取使用播放单元的用户的生物特征信息,并根据所述生物特征信息确定所述用户的身份信息。It may be that a detection module for obtaining the biometric information of the user is integrated on the playback device, so when the user uses the playback device, the playback device can directly obtain the biometric information of the user using the playback unit, and according to the The biometric information determines the user's identity information.
可选地,在每个播放单元上集成了用于获取用户的生物特征信息的检测模块。示例性地,如果所述播放设备为耳机,在用户佩戴耳机时,可以通过耳机的受话器采集用户的生物特征信息,并根据所述生物特征信息确定所述用户的身份信息。Optionally, each playback unit is integrated with a detection module for acquiring the biometric information of the user. Exemplarily, if the playback device is an earphone, when the user wears the earphone, the user's biometric information may be collected through a receiver of the earphone, and the user's identity information may be determined according to the biometric information.
可选地,通过每个使用的播放单元获取对应的用户的心率信息和/或体温信息,并将所述心率信息和/或体温信息确定为所述用户的身份信息。Optionally, the heart rate information and/or body temperature information of the corresponding user is acquired through each used playback unit, and the heart rate information and/or body temperature information is determined as the identity information of the user.
其中,可以在播放单元上设置有用于采集用户心率信息的心率采集装置,还可以是在播放单元上设置了用于采集用户的体温信息的体温采集装置。所述心率信息包括人每分钟心跳的次数,由于每个人都有自己特定的心率信息,例如,两个人的心率信息一般不会同步,所以可以将心率信息确定为用户的身份信息,作为用于与其他用户进行区分的信息。所述体温信息可以是测得的用户的皮肤的温度,由于每个人的体温都有不同,所以也可以将体温信息作为用户的身份信息,以便作为用于与其他用户进行区分的信息。Wherein, a heart rate collection device for collecting user's heart rate information may be provided on the playback unit, or a body temperature collection device for collecting user's body temperature information may be provided on the playback unit. The heart rate information includes the number of people's heartbeats per minute. Since each person has his or her own specific heart rate information, for example, the heart rate information of two people is generally not synchronized, so the heart rate information can be determined as the user's identity information. Information that distinguishes us from other users. The body temperature information may be the measured skin temperature of the user. Since each person's body temperature is different, the body temperature information may also be used as the user's identity information, so as to be used as information for distinguishing from other users.
可选地,所述播放设备为耳机,所述播放单元为耳机的受话器;相应地,通过每个工作的受话器上的耳朵信息采集装置采集所述用户的耳朵识别信息,并根据所述耳朵识别信息确定所述用户的身份信息。Optionally, the playback device is an earphone, and the playback unit is a receiver of the earphone; correspondingly, the user's ear identification information is collected by an ear information collection device on each working receiver, and the user's ear identification information is collected according to the ear identification information. information identifying the user's identity.
其中,所述播放设备可以是头戴式耳机,头戴式耳机包括头戴式线控耳机或头戴式无线耳机;头戴式无线耳机包括头戴式蓝牙耳机。Wherein, the playback device may be a headset, and the headset includes a wired headset or a wireless headset; the wireless headset includes a Bluetooth headset.
头戴式耳机的受话器为耳机上用于与人的耳朵近距离接触,并输出音频的部分。头戴式耳机的受话器一般与人的耳朵大小接近,或者大于人的耳朵的大小。头戴式耳机的受话器一般需要与人的耳朵较大面积地接触,或需要将人的耳朵包裹住,所以所述播放设备为头戴式耳机时,可以在所述播放设备的受话器中设置耳朵信息采集装置,通过头戴式耳机上设置的耳朵信息采集装置采集所述用户的耳朵识别信息。The receiver of the headset is the part on the headset that is used to make close contact with the human ear and output audio. The receiver of the headset is generally close to the size of a human ear, or larger than the size of a human ear. The receiver of the headset generally needs to be in contact with the human ear in a large area, or needs to wrap the human ear, so when the playback device is a headset, the earphone can be set in the receiver of the playback device. The information collection device collects the user's ear identification information through the ear information collection device provided on the headset.
人在使用头戴式耳机时,可以选择将所述头戴式耳机的受话器进行翻转,以使头戴式耳机的两个受话器的声音输出一侧均向外,且方向相对,此时可以有两个用户同时使用一个头戴式耳机。When people use the headset, they can choose to turn over the receivers of the headset, so that the sound output sides of the two receivers of the headset are all outward, and the directions are opposite. Two users use one headset at the same time.
如图3所示,所述头戴式耳机20的受话器中靠近耳朵的一侧设置有耳朵信息采集装置22,当用户使用头戴式耳机时,耳朵信息采集装置22将会靠近用户的耳朵,进而可以采集用户的耳朵识别信息。所述耳朵信息采集装置22可以是摄像头,摄像头可以是2D摄像头、3D摄像头或红外摄像头等,不同的摄像头可以采集到用户的耳朵的不同的特征图像,作为耳朵识别信息。具体的耳朵信息采集装置的设置方式,可以根据所述头戴式耳机的机型和尺寸来进行确定,在此不作限定。As shown in FIG. 3 , an ear information collection device 22 is arranged on the side close to the ear in the receiver of the headset 20. When the user uses the headset, the ear information collection device 22 will be close to the user's ear. Furthermore, the user's ear identification information can be collected. The ear information collection device 22 can be a camera, and the camera can be a 2D camera, a 3D camera, or an infrared camera, etc. Different cameras can collect different characteristic images of the user's ears as ear identification information. The specific arrangement of the ear information collection device may be determined according to the model and size of the headset, which is not limited here.
在所述播放设备为头戴式耳机时,通过所述头戴式耳机上的耳朵信息采集装置采集用户的耳朵识别信息,可以在用户戴上头戴式耳机后,直接采集用户的耳朵识别信息,并与预先存储的耳朵识别信息进行匹配,以确定采集的耳朵识别信息对应的用户的身份信息,可以提高确定用户的身份信息的准确性和效率。When the playback device is a headset, the user's ear identification information is collected by the ear information collection device on the headset, and the user's ear identification information can be directly collected after the user puts on the headset , and match with the pre-stored ear identification information to determine the user's identity information corresponding to the collected ear identification information, which can improve the accuracy and efficiency of determining the user's identity information.
可选地,还可以通过所述头戴式耳机采集用户的指纹信息,并根据用户的指纹信息确定用户的身份信息。用户佩戴头戴式耳机时,一般需要用手将头戴式耳机的两个受话器掰开,并套在用户的头上进行佩戴。如图3所示,可以在头戴式耳机20上设置指纹采集模块21,所述指纹采集模块21可以设置在头戴式耳机的受话器上用户的手指较容易接触的位置,可以是设置在受话器的外侧,可以是受话器的环形外围的一侧。如图3所示,用户拿起头戴式耳机时,用户的大拇指一般会和受话器外侧接触,可以通过设置在受话器上指纹采集模块21采集用户的指纹信息;以便在用户拿起头戴式耳机时,就可以直接采集用户的指纹信息。Optionally, the user's fingerprint information can also be collected through the headset, and the user's identity information can be determined according to the user's fingerprint information. When the user wears the headset, it is generally necessary to separate the two receivers of the headset by hand, and put them on the user's head for wearing. As shown in Figure 3, a fingerprint collection module 21 can be set on the headset 20, and the fingerprint collection module 21 can be set on the receiver of the headset where the user's fingers are easier to contact, and can be arranged on the receiver. The outer side may be one side of the ring-shaped periphery of the receiver. As shown in Figure 3, when the user picks up the headset, the user's thumb will generally contact the outside of the receiver, and the fingerprint information of the user can be collected by the fingerprint collection module 21 arranged on the receiver; so that when the user picks up the headset When the headset is connected, the user's fingerprint information can be collected directly.
S122、根据每个播放单元对应的身份信息分别控制每个播放单元的音量。S122. Control the volume of each playback unit respectively according to the identity information corresponding to each playback unit.
具体实施方式可以参考上文的相关描述,在此不再赘述。For specific implementation manners, reference may be made to relevant descriptions above, and details are not repeated here.
本申请实施例通过每个使用的播放单元获取对应的用户的生物特征信息,并根据所述生物特征信息确定所述用户的身份信息,可以在用户使用播放设备,以及使用播放单元时,直接获取到用户的生物特征信息,并根据所述生物特征信息确定所述用户的身份信息,可以提高确定用户的身份信息的效率。In this embodiment of the present application, the biometric information of the corresponding user is acquired through each used playback unit, and the identity information of the user is determined according to the biometric information, which can be obtained directly when the user uses the playback device and the playback unit. The biometric information of the user is obtained, and the identity information of the user is determined according to the biometric information, which can improve the efficiency of determining the identity information of the user.
图4为本申请实施例提供的另一种音量控制方法的流程示意图,在上述任意实施例所提供的技术方案的基础上,对根据每个播放单元对应的身份信息分别控制每个播放单元的音量的操作进行了优化,可选地,如图4所示,该方法包括:Fig. 4 is a schematic flow chart of another volume control method provided by the embodiment of the present application. On the basis of the technical solution provided by any of the above embodiments, the volume of each playback unit is controlled separately according to the identity information corresponding to each playback unit. The volume operation is optimized, optionally, as shown in Figure 4, the method includes:
S130、在用户使用播放设备时,确定使用的播放单元;其中,所述播放设备包括至少两个播放单元。S130. When the user uses the playback device, determine the playback unit used; wherein the playback device includes at least two playback units.
S131、确定每个使用的播放单元对应的用户的身份信息。S131. Determine the identity information of the user corresponding to each used playback unit.
上述操作的具体实施方式可以参考上文的相关描述,在此不再赘述。For specific implementation manners of the above operations, reference may be made to the relevant description above, and details are not repeated here.
S132、根据播放单元对应的身份信息确定播放单元组;其中,每个播放单元组包括至少一个的播放单元,且所述至少一个的播放单元对应的身份信息都对应同一个用户。S132. Determine a playback unit group according to the identity information corresponding to the playback unit; wherein, each playback unit group includes at least one playback unit, and the identity information corresponding to the at least one playback unit corresponds to the same user.
其中,由于每个播放单元组内的播放单元都对应同一个用户,所以同一个播放单元组的用户的音量需求是相同的;而不同的播放单元组针对不同的用户,则可以分别控制每个播放组的音量。一个播放单元组可以包括一个播放单元,也可以包括两个或者多个播放单元。Among them, since the playback units in each playback unit group correspond to the same user, the volume requirements of the users in the same playback unit group are the same; while different playback unit groups are aimed at different users, each user can be controlled separately. The volume of the playback group. A playback unit group may include one playback unit, or two or more playback units.
示例性地,如图5所示,播放设备是和终端设备10连接的线控耳机,播放设备包括两个播放单元,分别是受话器23和受话器24。用户B使用播放设备收听音乐,受话器23和受话器24均被用户B佩戴,受话器23和受话器24对应的用户的身份信息均是用户B的用户信息,所以可以确定受话器23和受话器24属于同一个播放单元组。又如图6所示,用户A和用户B同时使用播放设备收听音乐,受话器23和受话器24分别被用户B和用户A佩戴,相应地,受话器23对应的用户的身份信息是用户B的身份信息,受话器24对应的用户的身份信息是用户A的身份信息;所以可以确定受话器23和受话器24分别属于不同的播放单元组,进而可以分别控制每个受话器的音量,以满足用户A和用户B对音量的不同需求。Exemplarily, as shown in FIG. 5 , the playback device is a wire-controlled earphone connected to the terminal device 10 , and the playback device includes two playback units, namely a receiver 23 and a receiver 24 . User B uses a playback device to listen to music. Both the receiver 23 and the receiver 24 are worn by user B. The identity information of the user corresponding to the receiver 23 and the receiver 24 is the user information of user B, so it can be determined that the receiver 23 and the receiver 24 belong to the same player. unit group. As shown in Figure 6 again, user A and user B use the playback device to listen to music at the same time, receiver 23 and receiver 24 are worn by user B and user A respectively, and correspondingly, the identity information of the user corresponding to receiver 23 is the identity information of user B , the identity information of the user corresponding to the receiver 24 is the identity information of user A; so it can be determined that the receiver 23 and the receiver 24 belong to different playback unit groups respectively, and then the volume of each receiver can be controlled respectively to satisfy user A and user B. Different needs for volume.
可选地,如果所述用户的身份信息包括心率信息和体温信息,相应地,根据播放单元对应的身份信息确定播放单元组包括:Optionally, if the identity information of the user includes heart rate information and body temperature information, correspondingly, determining the playback unit group according to the identity information corresponding to the playback unit includes:
对于任意两个播放单元,如果所述两个播放单元分别对应的心率信息的心率误差在心率误差阈值内,以及所述两个播放单元分别对应的体温信息的体温误差在温差阈值内,则确定所述两个播放单元属于同一个播放单元组。For any two playback units, if the heart rate error of the heart rate information corresponding to the two playback units is within the heart rate error threshold, and the body temperature error of the body temperature information corresponding to the two playback units is within the temperature difference threshold, then determine The two playback units belong to the same playback unit group.
其中,两个播放单元分别对应的心率信息的心率误差,可以是所述两个心率信息的频率误差。所述心率误差阈值为判断是否为同一个人的心率的判断标准,可以是系统预设。示例性地,如果播放设备是耳机,则所述两个播放单元分别对应的心率信息为:分别测得的用户左耳区域和右耳区域的心率信息。如果是同一个用户,则两个心率信息应该是同步的,两个心率信息的心率误差应该在心率误差阈值内。而如果两个心率信息的心率误差超出了心率误差阈值,则表示两个心率信息对应不同的用户。Wherein, the heart rate error of the heart rate information respectively corresponding to the two playback units may be the frequency error of the two heart rate information. The heart rate error threshold is a criterion for judging whether it is the heart rate of the same person, which can be preset by the system. Exemplarily, if the playback device is an earphone, the heart rate information respectively corresponding to the two playback units is: respectively measured heart rate information of the user's left ear area and right ear area. If it is the same user, the two heart rate information should be synchronized, and the heart rate error of the two heart rate information should be within the heart rate error threshold. And if the heart rate error of the two heart rate information exceeds the heart rate error threshold, it means that the two heart rate information correspond to different users.
在确定了两个播放单元对应的心率信息的心率误差在心率误差阈值范围内时,进一步判断体温信息的体温误差是否在温差阈值范围内,如果两个播放单元测得的体温信息的误差也在温差阈值范围内,则可以进一步确定两个播放单元属于同一个播放组。根据心率信息和温度信息可以提高判断对应的用户是否为同一个用户的准确性。When it is determined that the heart rate error of the heart rate information corresponding to the two playback units is within the heart rate error threshold range, it is further judged whether the body temperature error of the body temperature information is within the temperature difference threshold range, if the error of the body temperature information measured by the two playback units is within If the temperature difference threshold is within the range, it can be further determined that the two playback units belong to the same playback group. According to the heart rate information and the temperature information, the accuracy of judging whether the corresponding user is the same user can be improved.
S133、分别控制每个播放单元组的音量。S133. Control the volume of each playback unit group respectively.
其中,在控制每个播放单元组的音量时,属于该播放单元组的播放单元的音量会被同步控制。Wherein, when controlling the volume of each playback unit group, the volume of the playback units belonging to the playback unit group will be controlled synchronously.
可选地,根据终端设备发送的音量控制指令分别控制每个播放单元组的音量;其中,所述播放设备用于和所述终端设备建立连接,并播放终端设备输出的音频数据。Optionally, the volume of each playback unit group is controlled respectively according to the volume control instruction sent by the terminal device; wherein the playback device is used to establish a connection with the terminal device and play audio data output by the terminal device.
其中,可以是用户通过终端设备的触摸屏或物理按键输入音量控制指令,以分别控制每个播放单元组的音量。如果是通过所述终端设备的触摸屏输入音量控制指令,则所述终端设备的触摸屏上显示有对应的音量调节UI(用户界面,User Interface)操作界面。如图5所示,在播放设备的两个受话器属于同一个播放单元组时,可以通过终端设备10的触摸屏上的音量控制条11来控制播放设备的两个受话器的音量。如图6所示,而在播放设备的两个受话器分别属于不同播放单元组时,可以通过终端设备10的触摸屏上的音量控制条11和音量控制条12分别控制播放设备的两个受话器的音量,以便用户A和用户B可以分别控制其使用的受话器。Wherein, the user may input a volume control instruction through a touch screen or a physical button of the terminal device, so as to control the volume of each playback unit group respectively. If the volume control instruction is input through the touch screen of the terminal device, a corresponding volume adjustment UI (User Interface, User Interface) operation interface is displayed on the touch screen of the terminal device. As shown in FIG. 5 , when the two receivers of the playback device belong to the same playback unit group, the volume of the two receivers of the playback device can be controlled through the volume control bar 11 on the touch screen of the terminal device 10 . As shown in Figure 6, when the two receivers of the playback device belong to different playback unit groups respectively, the volume of the two receivers of the playback device can be controlled respectively by the volume control bar 11 and the volume control bar 12 on the touch screen of the terminal device 10 , so that user A and user B can separately control the receivers they use.
本申请实施例通过根据播放单元对应的身份信息确定播放单元组;其中,每个播放单元组包括至少一个的播放单元,且所述至少一个的播放单元对应的身份信息都对应同一个用户,以及分别控制每个播放单元组的音量,可以对针对不同的用户的播放单元进行分别控制,满足了不同用户对播放单元的音量的需求,进一步提高了不同用户对播放单元的音量控制的效率。In the embodiment of the present application, the playback unit group is determined according to the identity information corresponding to the playback unit; wherein, each playback unit group includes at least one playback unit, and the identity information corresponding to the at least one playback unit corresponds to the same user, and By separately controlling the volume of each playback unit group, the playback units for different users can be controlled separately, which meets the volume requirements of different users for the playback unit, and further improves the volume control efficiency of different users for the playback unit.
图7为本申请实施例提供的另一种音量控制方法的流程示意图,在上述任意实施例所提供的技术方案的基础上,对分别控制每个播放单元组的音量的操作进行了优化,可选地,如图7所示,该方法包括:Fig. 7 is a schematic flowchart of another volume control method provided by the embodiment of the present application. On the basis of the technical solution provided by any of the above embodiments, the operation of controlling the volume of each playback unit group is optimized, which can Optionally, as shown in Figure 7, the method includes:
S140、在用户使用播放设备时,确定使用的播放单元;其中,所述播放设备包括至少两个播放单元。S140. When the user uses the playback device, determine the playback unit used; wherein the playback device includes at least two playback units.
其中,所述播放设备为耳机,所述播放单元为耳机的受话器,每个受话器上设置有对应的音量调节模块。Wherein, the playback device is an earphone, the playback unit is a receiver of the earphone, and each receiver is provided with a corresponding volume adjustment module.
所述耳机可以是线控耳机或无线耳机,可以是头戴式耳机,头戴式耳机包括头戴式线控耳机或头戴式无线耳机;头戴式无线耳机包括头戴式蓝牙耳机,关于耳机和受话器可以参考上文的相关描述,在此不再赘述。The earphone can be a wire-controlled earphone or a wireless earphone, can be a headset, and the headset includes a headset wire-controlled headset or a headset wireless headset; the headset wireless headset includes a headset Bluetooth headset. For the earphone and the receiver, reference may be made to the related description above, and details are not repeated here.
所述受话器上设置的音量调节模块可以是触摸调节模块或按键调节模块,音量调节模块的具体实施方式可以根据实际应用进行设置,在此不作限定。The volume adjustment module provided on the receiver can be a touch adjustment module or a button adjustment module, and the specific implementation of the volume adjustment module can be set according to actual applications, and is not limited here.
S141、确定每个使用的播放单元对应的用户的身份信息。S141. Determine the identity information of the user corresponding to each used playback unit.
S142、根据播放单元对应的身份信息确定播放单元组;其中,每个播放单元组包括至少一个的播放单元,且所述至少一个的播放单元对应的身份信息都对应同一个用户。S142. Determine a playback unit group according to the identity information corresponding to the playback unit; wherein, each playback unit group includes at least one playback unit, and the identity information corresponding to the at least one playback unit corresponds to the same user.
上述操作的具体实施方式可以参考上文的相关描述,在此不再赘述。For specific implementation manners of the above operations, reference may be made to the relevant description above, and details are not repeated here.
S143、如果两个受话器属于同一个播放单元组,则根据任一受话器对应的音量调节模块控制所述播放单元组的音量;如果两个受话器分别属于不同的播放单元组,则根据每个受话器对应的音量调节模块分别控制所述受话器的音量。S143. If the two receivers belong to the same playback unit group, control the volume of the playback unit group according to the volume adjustment module corresponding to any receiver; The volume adjustment module controls the volume of the receiver respectively.
其中,如果所述播放设备是耳机,用户可以将播放设备佩戴在身上,且可以通过受话器上设置的音量调节模块直接调解对应的受话器。如果两个受话器属于同一个播放单元,则表示两个受话器均是被同一个用户使用,则可以通过任一受话器上的音量调节模块来控制所述两个受话器的音量。如果两个受话器分别属于不同的播放单元组,则表示两个受话器分别被两个用户使用,则可以分别根据每个受话器上的音量调节模块来对应调节该受话器的音量。Wherein, if the playback device is an earphone, the user can wear the playback device on his body, and can directly adjust the corresponding receiver through the volume adjustment module provided on the receiver. If the two receivers belong to the same playback unit, it means that the two receivers are used by the same user, and the volume of the two receivers can be controlled by the volume adjustment module on any receiver. If the two receivers belong to different playback unit groups, it means that the two receivers are respectively used by two users, and the volume of the receiver can be adjusted correspondingly according to the volume adjustment module on each receiver.
示例性地,如果所述音量调节模块为触摸调节模块,则可以通过在耳机的受话器上执行预设触摸操作来控制对应的播放单元组的音量;如果所述音量调节模块为按键调节模块,则可以通过触摸耳机的受话器上的按键来控制对应的播放单元组的音量。如果所述音量调节模块为感应调节模块,可以通过在耳机的受话器上执行预设桥及操作来控制对应的播放单元组的音量。具体的音量控制方式可以根据音量调节模块的设置方式来确定,在此不作限定。Exemplarily, if the volume adjustment module is a touch adjustment module, the volume of the corresponding playback unit group can be controlled by performing a preset touch operation on the receiver of the earphone; if the volume adjustment module is a button adjustment module, then The volume of the corresponding playback unit group can be controlled by touching the buttons on the receiver of the earphone. If the volume adjustment module is an inductive adjustment module, the volume of the corresponding playback unit group can be controlled by performing a preset bridge operation on the receiver of the earphone. The specific volume control mode can be determined according to the setting mode of the volume adjustment module, which is not limited here.
本申请实施例通过如果耳机的两个受话器属于同一个播放单元组,则根据任一受话器对应的音量调节模块控制所述播放单元组的音量;如果两个受话器分别属于不同的播放单元组,则根据每个受话器对应的音量调节模块分别控制所述受话器的音量,可以使用户直接通过佩戴的耳机上的操作分别控制受话器的音量,提高用户调节音量的操作效率。In the embodiment of the present application, if the two receivers of the earphone belong to the same playback unit group, then control the volume of the playback unit group according to the volume adjustment module corresponding to any receiver; if the two receivers belong to different playback unit groups respectively, then According to the volume adjustment module corresponding to each receiver, the volume of the receivers is controlled separately, so that the user can directly control the volume of the receivers through the operation on the earphone worn, and improve the operation efficiency of the user in adjusting the volume.
图8为本申请实施例提供的一种音量控制装置的结构框图,该装置可以执行音量控制方法,如图8所示,该装置包括:FIG. 8 is a structural block diagram of a volume control device provided in an embodiment of the present application. The device can execute a volume control method. As shown in FIG. 8 , the device includes:
播放确定模块210,用于在用户使用播放设备时,确定使用的播放单元;其中,所述播放设备包括至少两个播放单元;The playback determination module 210 is configured to determine the playback unit used when the user uses the playback device; wherein the playback device includes at least two playback units;
身份确定模块211,用于确定每个使用的播放单元对应的用户的身份信息;An identity determining module 211, configured to determine the identity information of the user corresponding to each playing unit used;
音量控制模块212,用于根据每个播放单元对应的身份信息分别控制每个播放单元的音量。The volume control module 212 is configured to respectively control the volume of each playback unit according to the identity information corresponding to each playback unit.
本申请实施例中提供的一种音量控制装置,通过在用户使用播放设备时,确定使用的播放单元;其中,所述播放设备包括至少两个播放单元;确定每个使用的播放单元对应的用户的身份信息;根据每个播放单元对应的身份信息分别控制每个播放单元的音量。通过采用上述技术方案,可以根据每个播放单元对应的身份信息来控制播放单元的音量,可以满足用户对播放单元的音量控制的不同需求。A volume control device provided in an embodiment of the present application determines the playback unit used when the user uses the playback device; wherein the playback device includes at least two playback units; and determines the user corresponding to each playback unit used The identity information of each playback unit; the volume of each playback unit is controlled respectively according to the identity information corresponding to each playback unit. By adopting the above technical solution, the volume of the playback unit can be controlled according to the identity information corresponding to each playback unit, which can meet different demands of users on the volume control of the playback unit.
可选地,身份确定模块具体用于:Optionally, the identity determination module is specifically used for:
通过每个使用的播放单元获取对应的用户的生物特征信息,并根据所述生物特征信息确定所述用户的身份信息。The biometric information of the corresponding user is acquired through each used playing unit, and the identity information of the user is determined according to the biometric information.
可选地,身份确定模块具体用于:Optionally, the identity determination module is specifically used for:
通过每个使用的播放单元获取对应的用户的心率信息和/或体温信息,并将所述心率信息和/或体温信息确定为所述用户的身份信息。Obtain the heart rate information and/or body temperature information of the corresponding user through each playing unit used, and determine the heart rate information and/or body temperature information as the identity information of the user.
可选地,所述播放设备为耳机,所述播放单元为耳机的受话器;相应地,身份确定模块具体用于:Optionally, the playback device is an earphone, and the playback unit is a receiver of the earphone; correspondingly, the identity determination module is specifically used for:
通过每个工作的受话器上的耳朵信息采集装置采集所述用户的耳朵识别信息,并根据所述耳朵识别信息确定所述用户的身份信息。The user's ear identification information is collected by the ear information collection device on each working receiver, and the user's identity information is determined according to the ear identification information.
可选地,音量控制模块具体用于:Optionally, the volume control module is specifically used for:
播放单元组确定模块,用于根据播放单元对应的身份信息确定播放单元组;其中,每个播放单元组包括至少一个的播放单元,且所述至少一个的播放单元对应的身份信息都对应同一个用户;The playback unit group determination module is used to determine the playback unit group according to the identity information corresponding to the playback unit; wherein, each playback unit group includes at least one playback unit, and the identity information corresponding to the at least one playback unit corresponds to the same user;
单元组音量控制模块,用于分别控制每个播放单元组的音量。The unit group volume control module is used to control the volume of each playback unit group respectively.
可选地,所述播放设备为耳机,所述播放单元为耳机的受话器,每个受话器上设置有对应的音量调节模块;Optionally, the playback device is an earphone, the playback unit is a receiver of the earphone, and each receiver is provided with a corresponding volume adjustment module;
相应地,单元组音量控制模块具体用于:Correspondingly, the unit group volume control module is specifically used for:
如果两个受话器属于同一个播放单元组,则根据任一受话器对应的音量调节模块控制所述播放单元组的音量;If two receivers belong to the same playback unit group, then control the volume of the playback unit group according to the volume adjustment module corresponding to any receiver;
如果两个受话器分别属于不同的播放单元组,则根据每个受话器对应的音量调节模块分别控制所述受话器的音量。If the two receivers belong to different playback unit groups, respectively control the volume of the receivers according to the volume adjustment module corresponding to each receiver.
可选地,单元组音量控制模块具体用于:Optionally, the unit group volume control module is specifically used for:
根据终端设备发送的音量控制指令分别控制每个播放单元组的音量;其中,所述播放设备用于和所述终端设备建立连接,并播放终端设备输出的音频数据。The volume of each playback unit group is respectively controlled according to the volume control instruction sent by the terminal device; wherein the playback device is used to establish a connection with the terminal device and play audio data output by the terminal device.
可选地,如果所述用户的身份信息包括心率信息和体温信息;Optionally, if the user's identity information includes heart rate information and body temperature information;
相应地,播放单元组确定模块具体用于:Correspondingly, the playback unit group determination module is specifically used for:
对于任意两个播放单元,如果所述两个播放单元分别对应的心率信息的心率误差在心率误差阈值内,以及所述两个播放单元分别对应的体温信息的体温误差在温差阈值内,则确定所述两个播放单元属于同一个播放单元组。For any two playback units, if the heart rate error of the heart rate information corresponding to the two playback units is within the heart rate error threshold, and the body temperature error of the body temperature information corresponding to the two playback units is within the temperature difference threshold, then determine The two playback units belong to the same playback unit group.
本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的音量控制操作,还可以执行本申请任意实施例所提供的音量控制方法中的相关操作。A storage medium containing computer-executable instructions provided in an embodiment of the present application, the computer-executable instructions are not limited to the volume control operation described above, and can also perform related functions in the volume control method provided in any embodiment of the present application. operate.
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行音量控制方法,该方法包括:The embodiment of the present application also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to execute a volume control method when executed by a computer processor, and the method includes:
在用户使用播放设备时,确定使用的播放单元;其中,所述播放设备包括至少两个播放单元;When the user uses the playback device, determine the playback unit used; wherein the playback device includes at least two playback units;
确定每个使用的播放单元对应的用户的身份信息;Determine the identity information of the user corresponding to each playing unit used;
根据每个播放单元对应的身份信息分别控制每个播放单元的音量。The volume of each playback unit is controlled respectively according to the identity information corresponding to each playback unit.
存储介质——任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的第一计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到第一计算机系统。第二计算机系统可以提供程序指令给第一计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media such as CD-ROMs, floppy disks or tape drives; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc. ; non-volatile memory, such as flash memory, magnetic media (eg hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. Also, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network such as the Internet. The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems connected by a network. The storage medium may store program instructions (eg embodied as computer programs) executable by one or more processors.
本申请实施例提供了一种终端设备,该终端设备中可集成本申请实施例提供的音量控制装置。An embodiment of the present application provides a terminal device, in which the volume control device provided in the embodiment of the present application can be integrated.
图9为本申请实施例提供的一种终端设备的结构示意图,本申请实施例提供了一种终端设备30,包括存储器31,处理器32及存储在存储器31上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现上述实施例所述的音量控制方法。本申请实施例提供的终端设备,可以对现有的音量控制方式进行优化。FIG. 9 is a schematic structural diagram of a terminal device provided by the embodiment of the present application. The embodiment of the present application provides a terminal device 30, including a memory 31, a processor 32, and a computer stored on the memory 31 and capable of running on the processor. program, the processor implements the volume control method described in the above-mentioned embodiments when executing the computer program. The terminal device provided in the embodiment of the present application can optimize the existing volume control mode.
图10为本申请实施例提供的一种终端设备的结构示意图。如图10所示,该终端设备可以包括:壳体(图中未示出)、触摸屏(图中未示出)、触摸按键(图中未示出)、存储器301、中央处理器(Central Processing Unit,CPU)302(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU302和所述存储器301设置在所述电路板上;所述电源电路,用于为所述终端设备的各个电路或器件供电;所述存储器301,用于存储可执行程序代码;所述CPU302通过读取所述存储器301中存储的可执行程序代码来运行与所述可执行程序代码对应的计算机程序,以实现以下步骤:FIG. 10 is a schematic structural diagram of a terminal device provided in an embodiment of the present application. As shown in Figure 10, the terminal device may include: a housing (not shown in the figure), a touch screen (not shown in the figure), touch keys (not shown in the figure), a memory 301, a central processing unit (Central Processing Unit, CPU) 302 (also known as processor, hereinafter referred to as CPU), a circuit board (not shown in the figure) and a power circuit (not shown in the figure). The circuit board is placed inside the space surrounded by the housing; the CPU 302 and the memory 301 are arranged on the circuit board; the power supply circuit is used to supply power to each circuit or device of the terminal device The memory 301 is used to store executable program codes; the CPU302 executes a computer program corresponding to the executable program codes by reading the executable program codes stored in the memory 301, to achieve the following steps:
在用户使用播放设备时,确定使用的播放单元;其中,所述播放设备包括至少两个播放单元;When the user uses the playback device, determine the playback unit used; wherein the playback device includes at least two playback units;
确定每个使用的播放单元对应的用户的身份信息;Determine the identity information of the user corresponding to each playing unit used;
根据每个播放单元对应的身份信息分别控制每个播放单元的音量。The volume of each playback unit is controlled respectively according to the identity information corresponding to each playback unit.
所述终端设备还包括:外设接口303、RF(Radio Frequency,射频)电路305、音频电路306、扬声器311、电源管理芯片308、输入/输出(I/O)子系统309、触摸屏312、其他输入/控制设备310以及外部端口304,这些部件通过一个或多个通信总线或信号线307来通信。The terminal device also includes: peripheral interface 303, RF (Radio Frequency, radio frequency) circuit 305, audio circuit 306, speaker 311, power management chip 308, input/output (I/O) subsystem 309, touch screen 312, other Input/control devices 310 and external ports 304 , these components communicate via one or more communication buses or signal lines 307 .
应该理解的是,图示终端设备300仅仅是终端设备的一个范例,并且终端设备300可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated terminal device 300 is only an example of a terminal device, and the terminal device 300 may have more or fewer components than those shown in the figure, and two or more components may be combined, Or can have a different component configuration. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
下面就本实施例提供的用于实现音量控制的终端设备进行详细的描述,该终端设备以手机为例。The terminal device for implementing volume control provided in this embodiment will be described in detail below, and the terminal device is a mobile phone as an example.
存储器301,所述存储器301可以被CPU302、外设接口303等访问,所述存储器301可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 301, the memory 301 can be accessed by the CPU 302, the peripheral interface 303, etc., the memory 301 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.
外设接口303,所述外设接口303可以将设备的输入和输出外设连接到CPU302和存储器301。Peripheral interface 303 , which can connect the input and output peripherals of the device to CPU 302 and memory 301 .
I/O子系统309,所述I/O子系统309可以将设备上的输入输出外设,例如触摸屏312和其他输入/控制设备310,连接到外设接口303。I/O子系统309可以包括显示控制器3091和用于控制其他输入/控制设备310的一个或多个输入控制器3092。其中,一个或多个输入控制器3092从其他输入/控制设备310接收电信号或者向其他输入/控制设备310发送电信号,其他输入/控制设备310可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器3092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。The I/O subsystem 309 , the I/O subsystem 309 can connect input and output peripherals on the device, such as a touch screen 312 and other input/control devices 310 , to the peripheral interface 303 . I/O subsystem 309 may include a display controller 3091 and one or more input controllers 3092 for controlling other input/control devices 310 . Among them, one or more input controllers 3092 receive electrical signals from or send electrical signals to other input/control devices 310, which may include physical buttons (push buttons, rocker buttons, etc.) ), dials, slide switches, joysticks, click wheels. It should be noted that the input controller 3092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
触摸屏312,所述触摸屏312是用户终端设备与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。A touch screen 312, the touch screen 312 is an input interface and an output interface between the user terminal device and the user, and displays visual output to the user, and the visual output may include graphics, text, icons, videos, and the like.
I/O子系统309中的显示控制器3091从触摸屏312接收电信号或者向触摸屏312发送电信号。触摸屏312检测触摸屏上的接触,显示控制器3091将检测到的接触转换为与显示在触摸屏312上的用户界面对象的交互,即实现人机交互,显示在触摸屏312上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。The display controller 3091 in the I/O subsystem 309 receives electrical signals from the touch screen 312 or sends electrical signals to the touch screen 312 . The touch screen 312 detects the contact on the touch screen, and the display controller 3091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 312, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 312 can be a running Icons for games, icons for networking to appropriate networks, etc. It is worth noting that the device may also include an optical mouse, which is a touch-sensitive surface that does not display visual output, or that is an extension of a touch-sensitive surface formed by a touch screen.
RF电路305,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路305接收并发送RF信号,RF信号也称为电磁信号,RF电路305将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路305可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 305 is mainly used to establish communication between the mobile phone and the wireless network (that is, the network side), and realize data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. Specifically, the RF circuit 305 receives and sends RF signals, which are also called electromagnetic signals, and the RF circuit 305 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals to communicate. RF circuitry 305 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, Codec) Chipset, Subscriber Identity Module (Subscriber Identity Module, SIM) and so on.
音频电路306,主要用于从外设接口303接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器311。The audio circuit 306 is mainly used to receive audio data from the peripheral interface 303 , convert the audio data into electrical signals, and send the electrical signals to the speaker 311 .
扬声器311,用于将手机通过RF电路305从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 311 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 305 into sound and play the sound to the user.
电源管理芯片308,用于为CPU302、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 308 is used for power supply and power management for the hardware connected to the CPU 302 , the I/O subsystem and the peripheral interface.
本申请实施例提供的终端设备,可以对现有的音量控制方式进行优化。The terminal device provided in the embodiment of the present application can optimize the existing volume control mode.
上述实施例中提供的音量控制装置、存储介质及终端设备可执行本申请任意实施例所提供的音量控制方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的音量控制方法。The volume control device, storage medium, and terminal device provided in the above embodiments can execute the volume control method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details not exhaustively described in the foregoing embodiments, reference may be made to the volume control method provided in any embodiment of the present application.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments and technical principles used in this application. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application, and the present application The scope is determined by the scope of the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810668128.3ACN108632713B (en) | 2018-06-26 | 2018-06-26 | Volume control method and device, storage medium and terminal equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810668128.3ACN108632713B (en) | 2018-06-26 | 2018-06-26 | Volume control method and device, storage medium and terminal equipment |
| Publication Number | Publication Date |
|---|---|
| CN108632713Atrue CN108632713A (en) | 2018-10-09 |
| CN108632713B CN108632713B (en) | 2020-06-09 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810668128.3AExpired - Fee RelatedCN108632713B (en) | 2018-06-26 | 2018-06-26 | Volume control method and device, storage medium and terminal equipment |
| Country | Link |
|---|---|
| CN (1) | CN108632713B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110213682A (en)* | 2019-06-27 | 2019-09-06 | 温州众智科技有限公司 | A kind of intelligent sound |
| CN110324742A (en)* | 2019-07-01 | 2019-10-11 | Oppo广东移动通信有限公司 | Control method, earphone and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20020064118A (en)* | 2001-02-01 | 2002-08-07 | 엘지이노텍 주식회사 | Ear phone capable of hearing at the same time |
| US6600826B1 (en)* | 2001-07-06 | 2003-07-29 | Elius A. Xavier | Modularly expandible, multi-user audio headphone |
| CN101547387A (en)* | 2008-03-26 | 2009-09-30 | 鸿富锦精密工业(深圳)有限公司 | Earphone and audio display system using same |
| CN104159173A (en)* | 2014-08-27 | 2014-11-19 | 宇龙计算机通信科技(深圳)有限公司 | Earphone, earphone application method, earphone control method and device as well as mobile terminal |
| CN104581510A (en)* | 2015-01-22 | 2015-04-29 | 广东欧珀移动通信有限公司 | Speaker volume setting method and device |
| CN105050002A (en)* | 2015-08-05 | 2015-11-11 | 惠州Tcl移动通信有限公司 | Method and system for playing multimedia of intelligent terminal |
| CN105704602A (en)* | 2016-01-29 | 2016-06-22 | 宇龙计算机通信科技(深圳)有限公司 | Intelligent configuration method, device and earphone |
| CN105812980A (en)* | 2016-04-21 | 2016-07-27 | 歌尔声学股份有限公司 | Earphone |
| US9456265B2 (en)* | 2013-09-05 | 2016-09-27 | Lg Electronics Inc. | Electronic device and control method thereof |
| CN106131723A (en)* | 2016-04-28 | 2016-11-16 | 上海斐讯数据通信技术有限公司 | The control method of a kind of earphone, control device and earphone |
| CN106416290A (en)* | 2014-03-07 | 2017-02-15 | 美国思睿逻辑有限公司 | Systems and methods for enhancing performance of audio transducer based on detection of transducer status |
| CN107728924A (en)* | 2017-10-24 | 2018-02-23 | 柴雪 | A kind of audio amplifier grouping method and device |
| CN108111670A (en)* | 2017-11-28 | 2018-06-01 | 湖南海翼电子商务股份有限公司 | Method and device for automatically adjusting volume of bluetooth headset and bluetooth headset |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20020064118A (en)* | 2001-02-01 | 2002-08-07 | 엘지이노텍 주식회사 | Ear phone capable of hearing at the same time |
| US6600826B1 (en)* | 2001-07-06 | 2003-07-29 | Elius A. Xavier | Modularly expandible, multi-user audio headphone |
| CN101547387A (en)* | 2008-03-26 | 2009-09-30 | 鸿富锦精密工业(深圳)有限公司 | Earphone and audio display system using same |
| US9456265B2 (en)* | 2013-09-05 | 2016-09-27 | Lg Electronics Inc. | Electronic device and control method thereof |
| CN106416290A (en)* | 2014-03-07 | 2017-02-15 | 美国思睿逻辑有限公司 | Systems and methods for enhancing performance of audio transducer based on detection of transducer status |
| CN104159173A (en)* | 2014-08-27 | 2014-11-19 | 宇龙计算机通信科技(深圳)有限公司 | Earphone, earphone application method, earphone control method and device as well as mobile terminal |
| CN104581510A (en)* | 2015-01-22 | 2015-04-29 | 广东欧珀移动通信有限公司 | Speaker volume setting method and device |
| CN105050002A (en)* | 2015-08-05 | 2015-11-11 | 惠州Tcl移动通信有限公司 | Method and system for playing multimedia of intelligent terminal |
| CN105704602A (en)* | 2016-01-29 | 2016-06-22 | 宇龙计算机通信科技(深圳)有限公司 | Intelligent configuration method, device and earphone |
| CN105812980A (en)* | 2016-04-21 | 2016-07-27 | 歌尔声学股份有限公司 | Earphone |
| CN106131723A (en)* | 2016-04-28 | 2016-11-16 | 上海斐讯数据通信技术有限公司 | The control method of a kind of earphone, control device and earphone |
| CN107728924A (en)* | 2017-10-24 | 2018-02-23 | 柴雪 | A kind of audio amplifier grouping method and device |
| CN108111670A (en)* | 2017-11-28 | 2018-06-01 | 湖南海翼电子商务股份有限公司 | Method and device for automatically adjusting volume of bluetooth headset and bluetooth headset |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110213682A (en)* | 2019-06-27 | 2019-09-06 | 温州众智科技有限公司 | A kind of intelligent sound |
| CN110324742A (en)* | 2019-07-01 | 2019-10-11 | Oppo广东移动通信有限公司 | Control method, earphone and storage medium |
| Publication number | Publication date |
|---|---|
| CN108632713B (en) | 2020-06-09 |
| Publication | Publication Date | Title |
|---|---|---|
| CN108966080A (en) | Volume adjusting method and device, storage medium and terminal equipment | |
| US20210256979A1 (en) | Voice Control Method, Wearable Device, and Terminal | |
| WO2021013137A1 (en) | Voice wake-up method and electronic device | |
| CN108683798A (en) | A sound output control method and mobile terminal | |
| US20170263264A1 (en) | Method for recording sound of video-recorded object and mobile terminal | |
| CN108683968A (en) | Display control method and related products | |
| CN103889040B (en) | Emission control method, apparatus and system | |
| CN108766438A (en) | Man-machine interaction method and device, storage medium and intelligent terminal | |
| CN108491076B (en) | Display control method and related products | |
| CN107343076A (en) | Volume adjusting method and device, storage medium and mobile terminal | |
| WO2017181365A1 (en) | Earphone channel control method, related apparatus, and system | |
| US11212855B2 (en) | Method and terminal for controlling shared device | |
| CN108769850A (en) | Device control method and related products | |
| CN106911956A (en) | Audio data playback method, device and mobile terminal | |
| CN110460721B (en) | A startup method, device and mobile terminal | |
| CN106685459A (en) | Wearable device operation control method and wearable device | |
| CN109067965A (en) | Interpretation method, translating equipment, wearable device and storage medium | |
| WO2021103999A1 (en) | Method for recognizing touch operation and wearable apparatus | |
| CN107526569A (en) | A volume adjustment method, device, storage medium and mobile terminal | |
| CN107508979B (en) | Volume adjusting method, device, terminal and storage medium | |
| CN108632713B (en) | Volume control method and device, storage medium and terminal equipment | |
| CN106878915A (en) | Playing device control method, device, playing device, and mobile terminal | |
| CN110221696B (en) | Eyeball tracking method and related product | |
| CN108882112B (en) | Audio playback control method, device, storage medium and terminal device | |
| CN104536571B (en) | The method of controlling operation thereof and device of earphone |
| 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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20200609 | |
| CF01 | Termination of patent right due to non-payment of annual fee |