CN111930339B - Device control method, device, storage medium and electronic device - Google Patents
Device control method, device, storage medium and electronic device Download PDFInfo
- Publication number
- CN111930339B CN111930339B CN202010839654.9A CN202010839654A CN111930339B CN 111930339 B CN111930339 B CN 111930339B CN 202010839654 A CN202010839654 A CN 202010839654A CN 111930339 B CN111930339 B CN 111930339B
- Authority
- CN
- China
- Prior art keywords
- wearable device
- audio
- audio output
- users
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/38—Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
- H04B1/3827—Portable transceivers
- H04B1/385—Transceivers carried on the body, e.g. in helmets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/38—Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
- H04B1/3827—Portable transceivers
- H04B1/385—Transceivers carried on the body, e.g. in helmets
- H04B2001/3866—Transceivers carried on the body, e.g. in helmets carried on the head
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域Technical Field
本申请属于电子设备技术领域,尤其涉及一种设备控制方法、装置、存储介质及电子设备。The present application belongs to the technical field of electronic equipment, and in particular, relates to a device control method, apparatus, storage medium and electronic equipment.
背景技术Background technique
随着技术的发展,智能可穿戴设备开始涌现并逐渐成熟起来。目前常见的一类智能可穿戴设备包括头戴式智能设备,如智能眼镜、智能头盔、智能头带等。这些智能可穿戴设备不仅仅是一种硬件设备,还可以通过软件支持以及数据交互、云端交互来实现强大的功能,如音频播放等。然而,相关技术中,可穿戴设备在输出音频时对用户隐私的保护能力较差。With the development of technology, smart wearable devices have begun to emerge and gradually mature. Currently, a common type of smart wearable devices includes head-mounted smart devices, such as smart glasses, smart helmets, smart headbands, etc. These smart wearable devices are not just hardware devices, but can also achieve powerful functions such as audio playback through software support, data interaction, and cloud interaction. However, in related technologies, wearable devices have poor protection capabilities for user privacy when outputting audio.
发明内容Summary of the invention
本申请实施例提供一种设备控制方法、装置、存储介质及电子设备,可以提高可穿戴设备在输出音频时对用户隐私的保护能力。The embodiments of the present application provide a device control method, apparatus, storage medium, and electronic device, which can improve the ability of a wearable device to protect user privacy when outputting audio.
第一方面,本申请实施例提供一种设备控制方法,应用于可穿戴设备,所述可穿戴设备至少包括第一音频输出器件和第二音频输出器件,所述第一音频输出器件设置在对应于左耳一侧,所述第二音频输出器件设置在对应于右耳一侧,所述方法包括:In a first aspect, an embodiment of the present application provides a device control method, which is applied to a wearable device, wherein the wearable device includes at least a first audio output device and a second audio output device, wherein the first audio output device is arranged on a side corresponding to a left ear, and the second audio output device is arranged on a side corresponding to a right ear, and the method includes:
响应于音频输出指令,获取所述可穿戴设备的使用环境的信息,所述使用环境的信息包括在左耳一侧以及右耳一侧是否出现其它用户;In response to the audio output instruction, obtaining information about the use environment of the wearable device, wherein the information about the use environment includes whether other users appear on the left ear side and the right ear side;
若所述可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,则控制所述第一音频输出器件输出音频;If the usage environment of the wearable device includes other users appearing only on the right ear, controlling the first audio output device to output audio;
若所述可穿戴设备的使用环境包括仅在左耳一侧出现其他用户,则控制所述第二音频输出器件输出音频。If the usage environment of the wearable device includes other users appearing only on the left ear side, the second audio output device is controlled to output audio.
第二方面,本申请实施例提供一种设备控制装置,应用于可穿戴设备,所述可穿戴设备至少包括第一音频输出器件和第二音频输出器件,所述第一音频输出器件设置在对应于左耳一侧,所述第二音频输出器件设置在对应于右耳一侧,所述装置包括:In a second aspect, an embodiment of the present application provides a device control apparatus, which is applied to a wearable device, wherein the wearable device includes at least a first audio output device and a second audio output device, wherein the first audio output device is arranged on a side corresponding to a left ear, and the second audio output device is arranged on a side corresponding to a right ear, and the apparatus includes:
获取模块,用于响应于音频输出指令,获取所述可穿戴设备的使用环境的信息,所述使用环境的信息包括在左耳一侧以及右耳一侧是否出现其它用户;an acquisition module, configured to acquire information about a use environment of the wearable device in response to an audio output instruction, wherein the information about the use environment includes whether other users appear on the left ear side and the right ear side;
第一控制模块,用于若所述可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,则控制所述第一音频输出器件输出音频;A first control module, configured to control the first audio output device to output audio if the use environment of the wearable device includes other users appearing only on the right ear side;
第二控制模块,用于若所述可穿戴设备的使用环境包括仅在左耳一侧出现其他用户,则控制所述第二音频输出器件输出音频。The second control module is used to control the second audio output device to output audio if the usage environment of the wearable device includes other users appearing only on the left ear side.
第三方面,本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行本申请实施例提供的设备控制方法中的流程。In a third aspect, an embodiment of the present application provides a storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the process in the device control method provided by the embodiment of the present application.
第四方面,本申请实施例还提供一种可穿戴设备,包括存储器、处理器、第一音频输出器件和第二音频输出器件,所述第一音频输出器件设置在对应于左耳一侧,所述第二音频输出器件设置在对应于右耳一侧,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本申请实施例提供的设备控制方法中的流程。In a fourth aspect, an embodiment of the present application also provides a wearable device, including a memory, a processor, a first audio output device and a second audio output device, wherein the first audio output device is arranged on a side corresponding to a left ear, and the second audio output device is arranged on a side corresponding to a right ear, and the processor is used to execute the process in the device control method provided in the embodiment of the present application by calling a computer program stored in the memory.
本申请实施例中,可穿戴设备可以在仅右耳一侧出现其他用户时仅控制第一音频输出器件单独输出音频,而在仅左耳一侧出现其他用户时仅控制第二音频输出器件单独输出音频。相比于相关技术中当播放音频时可穿戴设备的所有音频输出器件都会输出音频的方式,由于本申请实施例可以根据可穿戴设备的使用环境来单独控制第一音频输出器件输出音频或者单独控制第二音频输出器件输出音频,因此本申请实施例可以有效避免输出的音频被其他用户听到,从而提高可穿戴设备在输出音频时对用户隐私的保护能力。In the embodiment of the present application, the wearable device can control only the first audio output device to output audio alone when other users appear only on the right ear side, and only control the second audio output device to output audio alone when other users appear only on the left ear side. Compared with the method in the related art that all audio output devices of the wearable device output audio when playing audio, since the embodiment of the present application can control the first audio output device to output audio alone or control the second audio output device to output audio alone according to the use environment of the wearable device, the embodiment of the present application can effectively prevent the output audio from being heard by other users, thereby improving the wearable device's ability to protect user privacy when outputting audio.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其有益效果显而易见。The technical solution and beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.
图1是本申请实施例提供的设备控制方法的流程示意图。FIG1 is a flow chart of a device control method provided in an embodiment of the present application.
图2是本申请实施例提供的设备控制方法的另一流程示意图。FIG. 2 is another schematic flow chart of the device control method provided in an embodiment of the present application.
图3是本申请实施例提供的设备控制方法的又一流程示意图。FIG. 3 is another schematic flow chart of the device control method provided in an embodiment of the present application.
图4至图10是本申请实施例提供的设备控制方法的场景示意图。4 to 10 are scenario schematic diagrams of the device control method provided in the embodiments of the present application.
图11是本申请实施例提供的设备控制装置的结构示意图。FIG. 11 is a schematic diagram of the structure of the device control device provided in an embodiment of the present application.
图12是本申请实施例提供的电子设备的结构示意图。FIG. 12 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
图13是本申请实施例提供的电子设备的另一结构示意图。FIG. 13 is another schematic diagram of the structure of the electronic device provided in an embodiment of the present application.
具体实施方式Detailed ways
请参照图示,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, where the same component symbols represent the same components. The principle of the present application is illustrated by implementing it in an appropriate computing environment. The following description is based on the illustrated specific embodiments of the present application, which should not be considered as limiting other specific embodiments of the present application that are not described in detail herein.
可以理解的是,本申请实施例的执行主体可以是诸如智能手机或平板电脑等的电子设备。It is understandable that the execution subject of the embodiments of the present application may be an electronic device such as a smart phone or a tablet computer.
请参阅图1,图1是本申请实施例提供的设备控制方法的流程示意图。该设备控制方法可以应用于可穿戴设备,该可穿戴设备至少包括第一音频输出器件和第二音频输出器件。该第一音频输出器件设置在对应于左耳一侧,该第二音频输出器件设置在对应于右耳一侧。也即,当可穿戴设备被用户穿戴时,第一音频输出器件可以位于用户的左耳一侧,第二音频输出器件可以位于用户的右耳一侧。Please refer to Figure 1, which is a flow chart of the device control method provided in an embodiment of the present application. The device control method can be applied to a wearable device, which includes at least a first audio output device and a second audio output device. The first audio output device is arranged on a side corresponding to the left ear, and the second audio output device is arranged on a side corresponding to the right ear. That is, when the wearable device is worn by a user, the first audio output device can be located on the left ear side of the user, and the second audio output device can be located on the right ear side of the user.
在一些实施方式中,音频输出器件可以包括诸如扬声器(speaker)等电声换能器件。In some embodiments, the audio output device may include an electroacoustic transducer device such as a speaker.
本申请实施例提供的设备控制方法的流程可以包括:The process of the device control method provided in the embodiment of the present application may include:
101、响应于音频输出指令,获取可穿戴设备的使用环境的信息,该使用环境的信息包括在左耳一侧以及右耳一侧是否出现其它用户。101. In response to an audio output instruction, obtain information about a use environment of the wearable device, where the information about the use environment includes whether other users appear on the left ear and the right ear.
随着技术的发展,智能可穿戴设备开始涌现并逐渐成熟起来。目前常见的一类智能可穿戴设备包括头戴式智能设备,如智能眼镜、智能头盔、智能头带等。这些智能可穿戴设备不仅仅是一种硬件设备,还可以通过软件支持以及数据交互、云端交互来实现强大的功能,如音频播放等。然而,相关技术中,可穿戴设备在输出音频时对用户隐私的保护能力较差。比如,相关技术中可穿戴设备在输出音频时所有的扬声器都会同时输出音频,当所有的扬声器都同时输出音频时,容易因“漏音”而泄露用户隐私。With the development of technology, smart wearable devices have begun to emerge and gradually mature. Currently, a common type of smart wearable devices includes head-mounted smart devices, such as smart glasses, smart helmets, smart headbands, etc. These smart wearable devices are not just a hardware device, but can also achieve powerful functions such as audio playback through software support, data interaction, and cloud interaction. However, in the related art, wearable devices have poor protection capabilities for user privacy when outputting audio. For example, in the related art, when a wearable device outputs audio, all speakers will output audio at the same time. When all speakers output audio at the same time, it is easy to leak user privacy due to "sound leakage".
在本申请实施例中,比如,响应于音频输出指令,即当需要输出音频时,可穿戴设备可以先获取其当前的使用环境的信息,该使用环境的信息可以包括在左耳一侧以及右耳一侧是否出现除该可穿戴设备的当前使用者之外的其它用户。In an embodiment of the present application, for example, in response to an audio output instruction, that is, when audio output is required, the wearable device can first obtain information about its current usage environment, and the information about the usage environment may include whether other users besides the current user of the wearable device appear on the left ear and the right ear.
在获取到使用环境的信息后,电子设备可以检测是否仅在右耳一侧出现其他用户或者仅在左耳一侧出现其他用户。After acquiring the information of the use environment, the electronic device can detect whether other users appear only on the right ear side or other users appear only on the left ear side.
如果检测到可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,那么可以进入102的流程中。If it is detected that the usage environment of the wearable device includes other users appearing only on the right ear side, the process of 102 can be entered.
如果检测到可穿戴设备的使用环境包括仅在左耳一侧出现其他用户,那么可以进入103的流程中。If it is detected that the usage environment of the wearable device includes other users appearing only on the left ear side, the process of 103 can be entered.
102、若可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,则控制第一音频输出器件输出音频。102. If the usage environment of the wearable device includes other users appearing only on the right ear side, control the first audio output device to output audio.
比如,在获取到使用环境的信息后,可穿戴设备检测到仅在右耳一侧出现其他用户,而在左耳一侧没有出现其他用户,那么可穿戴设备可以仅控制第一音频输出器件单独输出音频,而第二音频输出器件则可以不输出音频。For example, after obtaining information about the usage environment, the wearable device detects that other users appear only on the right ear side but not on the left ear side. Then the wearable device can only control the first audio output device to output audio alone, while the second audio output device may not output audio.
103、若可穿戴设备的使用环境包括仅在左耳一侧出现其他用户,则控制第二音频输出器件输出音频。103. If the usage environment of the wearable device includes other users appearing only on the left ear, control the second audio output device to output audio.
比如,在获取到使用环境的信息后,可穿戴设备检测到仅在左耳一侧出现其他用户,而在右耳一侧没有出现其他用户,那么可穿戴设备可以仅控制第二音频输出器件输出音频,而第一音频输出器件则不输出音频。For example, after obtaining information about the usage environment, the wearable device detects that other users appear only on the left ear side but not on the right ear side. Then the wearable device can only control the second audio output device to output audio, while the first audio output device does not output audio.
可以理解的是,本申请实施例中,可穿戴设备可以在仅右耳一侧出现其他用户时仅控制第一音频输出器件单独输出音频,而在仅左耳一侧出现其他用户时仅控制第二音频输出器件单独输出音频。相比于相关技术中当播放音频时可穿戴设备的所有音频输出器件都会输出音频的方式,由于本申请实施例可以根据可穿戴设备的使用环境来单独控制第一音频输出器件输出音频或者单独控制第二音频输出器件输出音频,因此本申请实施例可以有效避免输出的音频被其他用户听到,从而提高可穿戴设备在输出音频时对用户隐私的保护能力。It is understandable that in the embodiment of the present application, the wearable device can control only the first audio output device to output audio alone when other users appear only on the right ear side, and only control the second audio output device to output audio alone when other users appear only on the left ear side. Compared with the method in the related art that all audio output devices of the wearable device output audio when playing audio, since the embodiment of the present application can control the first audio output device to output audio alone or control the second audio output device to output audio alone according to the use environment of the wearable device, the embodiment of the present application can effectively prevent the output audio from being heard by other users, thereby improving the wearable device's ability to protect user privacy when outputting audio.
请参阅图2,图2为本申请实施例提供的设备控制方法的另一流程示意图。该设备控制方法可以应用于可穿戴设备,该可穿戴设备至少包括第一音频输出器件和第二音频输出器件。该第一音频输出器件设置在对应于左耳一侧,该第二音频输出器件设置在对应于右耳一侧。也即,当可穿戴设备被用户穿戴时,第一音频输出器件可以位于用户的左耳一侧,第二音频输出器件可以位于用户的右耳一侧。Please refer to Figure 2, which is another flow chart of the device control method provided in an embodiment of the present application. The device control method can be applied to a wearable device, which includes at least a first audio output device and a second audio output device. The first audio output device is arranged on a side corresponding to the left ear, and the second audio output device is arranged on a side corresponding to the right ear. That is, when the wearable device is worn by a user, the first audio output device can be located on the left ear side of the user, and the second audio output device can be located on the right ear side of the user.
在一些实施方式中,音频输出器件可以包括诸如扬声器(speaker)等电声换能器件。In some embodiments, the audio output device may include an electroacoustic transducer device such as a speaker.
本申请实施例提供的设备控制方法的流程可以包括:The process of the device control method provided in the embodiment of the present application may include:
201、响应于音频输出指令,获取可穿戴设备的使用环境的信息,该使用环境的信息包括在左耳一侧以及右耳一侧是否出现其它用户。201. In response to an audio output instruction, obtain information about a use environment of the wearable device, where the information about the use environment includes whether other users appear on the left ear and the right ear.
比如,响应于音频输出指令,即当需要输出音频时,可穿戴设备可以先获取其当前的使用环境的信息。For example, in response to an audio output instruction, that is, when audio output is required, the wearable device can first obtain information about its current usage environment.
在本实施例中,使用环境的信息可以包括在左耳一侧以及右耳一侧是否出现除可穿戴设备的使用者(即当前用户)之外的其它用户。当然,使用环境的信息还可以包括其它信息,本申请实施例对此不做具体限定。In this embodiment, the information of the use environment may include whether other users other than the user of the wearable device (i.e., the current user) appear on the left ear and the right ear. Of course, the information of the use environment may also include other information, which is not specifically limited in the embodiment of the present application.
在获取到可穿戴设备的使用环境的信息后,该可穿戴设备可以检测其使用环境是否为仅在右耳一侧出现其它用户或者仅在左耳一侧出现其它用户。并且,可穿戴设备还可以同时检测该可穿戴设备进行的是否为通话业务。After obtaining the information of the use environment of the wearable device, the wearable device can detect whether the use environment is that other users appear only on the right ear side or other users appear only on the left ear side. In addition, the wearable device can also simultaneously detect whether the wearable device is performing a call service.
需要说明的是,如果可穿戴设备可以单独进行通话业务,那么可穿戴设备进行通话业务可以是指可穿戴设备接通来电或拨通电话。如果可穿戴设备不可以单独进行通话业务,那么可穿戴设备进行通话业务可以是指与可穿戴设备连接的智能手机接通来电或拨通来电,智能手机将通话语音的数据发送至可穿戴设备,并通过可穿戴设备向当前用户播放通话语音或采集当前用户的通话语音。即,此时可穿戴设备属于通话业务中的耳机的角色。It should be noted that if the wearable device can perform call services independently, then the wearable device performing call services can refer to the wearable device answering or dialing a call. If the wearable device cannot perform call services independently, then the wearable device performing call services can refer to the smartphone connected to the wearable device answering or dialing a call, and the smartphone sends the call voice data to the wearable device, and plays the call voice to the current user or collects the call voice of the current user through the wearable device. That is, at this time, the wearable device plays the role of a headset in the call service.
如果检测到可穿戴设备进行的是通话业务并且仅在右耳一侧出现其它用户,那么可以进入202的流程中。If it is detected that the wearable device is performing a call service and other users appear only on the right ear side, the process of 202 may be entered.
如果检测到可穿戴设备进行的是通话业务并且仅在左耳一侧出现其它用户,那么可以进入203的流程中。If it is detected that the wearable device is performing a call service and other users appear only on the left ear side, the process of 203 may be entered.
202、若可穿戴设备进行的是通话业务且该可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,则控制第一音频输出器件输出音频。202. If the wearable device is performing a call service and the usage environment of the wearable device includes other users appearing only on the right ear side, control the first audio output device to output audio.
比如,可穿戴设备检测到其当前进行的是通话业务,并且仅在当前用户的右耳一侧出现有其它用户,而在当前用户的左耳一侧没有出现其他用户,那么电子设备可以仅控制设置于用户左耳一侧的第一音频输出器件单独输出音频。For example, the wearable device detects that it is currently conducting a call service, and there are other users only on the right ear side of the current user, but no other users on the left ear side of the current user, then the electronic device can only control the first audio output device set on the left ear side of the user to output audio alone.
在一种实施方式中,202的流程还可以包括:若可穿戴设备的使用环境为仅在用户的右耳一侧的预设范围内出现其他用户,而在用户的左耳一侧的预设范围内没有出现其它用户,并且进行的是通话业务,那么可穿戴设备可以仅控制设置于用户左耳一侧的第一音频输出器件单独输出音频,而设置于用户右耳一侧的第二音频输出器件则可以不输出音频。In one embodiment, the process of 202 may also include: if the usage environment of the wearable device is that other users appear only within the preset range on the right ear side of the user, and no other users appear within the preset range on the left ear side of the user, and a call service is being conducted, then the wearable device may only control the first audio output device set on the left ear side of the user to output audio alone, while the second audio output device set on the right ear side of the user may not output audio.
可以理解的是,当仅在用户的右耳一侧出现其它用户,而在用户的左耳一侧未出现其它用户的情况下,本申请实施例可以仅控制设置于用户左耳一侧的第一音频输出器件单独输出音频,而设置于用户右耳一侧的第二音频输出器件则不输出音频。通过这种方式可以有效地使发声声源远离右耳一侧的其它用户,这样一方面可以使发声声源距离该其它用户较远从而在声音衰减较多的情况下有效避免该其它用户听到通话语音,另一方面也可以利用当前用户头部的屏蔽作用阻挡声音传播从而有效避免该其它用户听到通话语音。因此,本申请实施例还可以起到加强通话隐私保护的效果。It is understandable that when other users appear only on the right ear of the user, but not on the left ear of the user, the embodiment of the present application can only control the first audio output device arranged on the left ear of the user to output audio alone, while the second audio output device arranged on the right ear of the user does not output audio. In this way, the sound source can be effectively kept away from other users on the right ear. On the one hand, the sound source can be kept far away from the other user, thereby effectively preventing the other user from hearing the call voice when the sound attenuation is large. On the other hand, the shielding effect of the current user's head can be used to block the sound propagation, thereby effectively preventing the other user from hearing the call voice. Therefore, the embodiment of the present application can also enhance the privacy protection of calls.
在一些实施方式中,预设范围可以是如1米或1.5米或0.8米等数值。那么,比如,若可穿戴设备的使用环境为仅在用户的右耳一侧的1米范围内出现其他用户,而在用户的左耳一侧的1米范围内没有出现其它用户,并且进行的是通话业务,那么可穿戴设备可以仅控制设置于用户左耳一侧的第一音频输出器件单独输出音频,而设置于用户右耳一侧的第二音频输出器件则可以不输出音频。In some embodiments, the preset range may be a value such as 1 meter, 1.5 meters, or 0.8 meters. For example, if the wearable device is used in an environment where other users appear only within 1 meter of the user's right ear, and no other users appear within 1 meter of the user's left ear, and a call service is being conducted, the wearable device may only control the first audio output device disposed on the user's left ear to output audio alone, while the second audio output device disposed on the user's right ear may not output audio.
203、若可穿戴设备进行的是通话业务且该可穿戴设备的使用环境包括仅在左耳一侧出现其他用户,则控制第二音频输出器件输出音频。203. If the wearable device is performing a call service and the usage environment of the wearable device includes other users appearing only on the left ear side, control the second audio output device to output audio.
比如,可穿戴设备检测到其当前进行的是通话业务,并且仅在当前用户的左耳一侧出现有其它用户,而在当前用户的右耳一侧没有出现其他用户,那么电子设备可以仅控制设置于用户右耳一侧的第二音频输出器件单独输出音频。For example, the wearable device detects that it is currently conducting a call service, and there are other users only on the left ear side of the current user, but no other users on the right ear side of the current user, then the electronic device can only control the second audio output device set on the right ear side of the user to output audio alone.
在一种实施方式中,203的流程还可以包括:若可穿戴设备的使用环境为仅在用户的左耳一侧的预设范围内出现其他用户,而在用户的右耳一侧的预设范围内没有出现其它用户,并且进行的是通话业务,那么可穿戴设备可以仅控制设置于用户右耳一侧的第二音频输出器件单独输出音频,而设置于用户左耳一侧的第一音频输出器件则可以不输出音频。In one embodiment, the process of 203 may also include: if the usage environment of the wearable device is that other users appear only within the preset range on the left ear side of the user, and no other users appear within the preset range on the right ear side of the user, and a call service is being conducted, then the wearable device may only control the second audio output device set on the right ear side of the user to output audio alone, while the first audio output device set on the left ear side of the user may not output audio.
可以理解的是,当仅在用户的左耳一侧出现其它用户,而在用户的右耳一侧未出现其它用户的情况下,本申请实施例可以仅控制设置于用户右耳一侧的第二音频输出器件单独输出音频,而设置于用户左耳一侧的第一音频输出器件则不输出音频。通过这种方式可以有效地使发声声源远离左耳一侧的其它用户,这样一方面可以使发声声源距离该其它用户较远从而在声音衰减较多的情况下有效避免该其它用户听到通话语音,另一方面也可以利用当前用户头部的屏蔽作用阻挡声音传播从而有效避免该其它用户听到通话语音。因此,本申请实施例还可以其它加强通话隐私保护的效果。It is understandable that when other users appear only on the left ear of the user, but not on the right ear of the user, the embodiment of the present application can only control the second audio output device disposed on the right ear of the user to output audio alone, while the first audio output device disposed on the left ear of the user does not output audio. In this way, the sound source can be effectively kept away from other users on the left ear. On the one hand, the sound source can be kept far away from the other user, thereby effectively preventing the other user from hearing the call voice when the sound attenuation is large. On the other hand, the shielding effect of the current user's head can be used to block the sound propagation, thereby effectively preventing the other user from hearing the call voice. Therefore, the embodiment of the present application can also enhance the privacy protection of calls.
在一些实施方式中,预设范围可以是如1米或1.5米或0.8米等数值。那么,比如,若可穿戴设备的使用环境为仅在用户的左耳一侧的1米范围内出现其他用户,而在用户的右耳一侧的1米范围内没有出现其它用户,并且进行的是通话业务,那么可穿戴设备可以仅控制设置于用户右耳一侧的第二音频输出器件单独输出音频,而设置于用户左耳一侧的第一音频输出器件则可以不输出音频。In some embodiments, the preset range may be a value such as 1 meter, 1.5 meters, or 0.8 meters. For example, if the wearable device is used in an environment where other users appear only within 1 meter of the left ear of the user, and no other users appear within 1 meter of the right ear of the user, and a call service is being conducted, the wearable device may only control the second audio output device disposed on the right ear of the user to output audio alone, while the first audio output device disposed on the left ear of the user may not output audio.
请参阅图3,图3为本申请实施例提供的设备控制方法的又一流程示意图。该设备控制方法可以应用于可穿戴设备,该可穿戴设备至少包括第一音频输出器件和第二音频输出器件。该第一音频输出器件设置在对应于左耳一侧,该第二音频输出器件设置在对应于右耳一侧。也即,当可穿戴设备被用户穿戴时,第一音频输出器件可以位于用户的左耳一侧,第二音频输出器件可以位于用户的右耳一侧。Please refer to Figure 3, which is another flow chart of the device control method provided in an embodiment of the present application. The device control method can be applied to a wearable device, which includes at least a first audio output device and a second audio output device. The first audio output device is arranged on a side corresponding to the left ear, and the second audio output device is arranged on a side corresponding to the right ear. That is, when the wearable device is worn by a user, the first audio output device can be located on the left ear side of the user, and the second audio output device can be located on the right ear side of the user.
在一些实施方式中,音频输出器件可以包括诸如扬声器(speaker)等电声换能器件。In some embodiments, the audio output device may include an electroacoustic transducer device such as a speaker.
本申请实施例提供的设备控制方法的流程可以包括:The process of the device control method provided in the embodiment of the present application may include:
301、响应于音频输出指令,获取可穿戴设备的使用环境的信息,该使用环境的信息包括在左耳一侧以及右耳一侧是否出现其它用户。301. In response to an audio output instruction, obtain information about a use environment of the wearable device, where the information about the use environment includes whether other users appear on the left ear and the right ear.
比如,响应于音频输出指令,即当需要输出音频时,可穿戴设备可以先获取其当前的使用环境的信息。For example, in response to an audio output instruction, that is, when audio output is required, the wearable device can first obtain information about its current usage environment.
在本实施例中,使用环境的信息可以包括在左耳一侧以及右耳一侧是否出现除可穿戴设备的使用者(即当前用户)之外的其它用户。当然,使用环境的信息还可以包括其它信息,本申请实施例对此不做具体限定。In this embodiment, the information of the use environment may include whether other users other than the user of the wearable device (i.e., the current user) appear on the left ear and the right ear. Of course, the information of the use environment may also include other information, which is not specifically limited in the embodiment of the present application.
302、若输出的音频为音乐文件,则将该音乐文件的左声道音频和右声道音频混合成单声道音频。302. If the output audio is a music file, mix the left channel audio and the right channel audio of the music file into a mono audio.
比如,电子设备还可以检测需要输出的音频是否为音乐文件。For example, the electronic device can also detect whether the audio to be output is a music file.
如果检测到需要输出的音频为音乐文件,那么可穿戴设备可以将该音乐文件的左声道音频和右声道音频混合(Mix)成单声道音频。If it is detected that the audio to be output is a music file, the wearable device can mix the left channel audio and the right channel audio of the music file into a mono audio.
如果检测到需要说出的音频不是音乐文件,那么可穿戴设备可以执行其它操作。If it is detected that the audio to be spoken is not a music file, the wearable device can perform other operations.
在获取到可穿戴设备的使用环境的信息后,该可穿戴设备可以检测其使用环境是否为仅在右耳一侧出现其它用户或者仅在左耳一侧出现其它用户。After obtaining the information of the use environment of the wearable device, the wearable device can detect whether the use environment is that other users appear only on the right ear side or other users appear only on the left ear side.
如果检测到仅在右耳一侧出现其它用户,那么可以进入303的流程中。If it is detected that other users appear only on the right ear side, the process of 303 may be entered.
如果检测到仅在左耳一侧出现其它用户,那么可以进入304的流程中。If it is detected that other users appear only on the left ear side, the process of 304 may be entered.
303、若可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,则控制第一音频输出器件输出混合而成的单声道音频。303. If the usage environment of the wearable device includes other users appearing only on the right ear side, control the first audio output device to output the mixed mono audio.
比如,可穿戴设备检测到仅在当前用户的右耳一侧出现有其它用户,而在当前用户的左耳一侧没有出现其他用户,那么电子设备可以仅控制设置于用户左耳一侧的第一音频输出器件单独输出混合而成的单声道音频。For example, if the wearable device detects that other users appear only on the right ear of the current user, but not on the left ear of the current user, the electronic device can only control the first audio output device set on the left ear of the user to output the mixed mono audio alone.
在一种实施方式中,303的流程可以包括:若可穿戴设备的使用环境为仅在用户的右耳一侧的预设范围内出现其他用户,而在用户的左耳一侧的预设范围内没有出现其它用户,那么可穿戴设备可以仅控制设置于用户左耳一侧的第一音频输出器件单独输出混合而成的单声道音频,而设置于用户右耳一侧的第二音频输出器件则可以不输出音频。In one embodiment, the process of 303 may include: if the usage environment of the wearable device is that other users appear only within a preset range on the right ear side of the user, and no other users appear within the preset range on the left ear side of the user, then the wearable device can only control the first audio output device set on the left ear side of the user to output the mixed mono audio alone, while the second audio output device set on the right ear side of the user may not output audio.
可以理解的是,当仅在用户的右耳一侧出现其它用户,而在用户的左耳一侧未出现其它用户的情况下,本申请实施例可以仅控制设置于用户左耳一侧的第一音频输出器件单独输出音频,而设置于用户右耳一侧的第二音频输出器件则不输出音频。通过这种方式可以有效地使发声声源远离右耳一侧的其它用户,这样一方面可以使发声声源距离该其它用户较远从而在声音衰减较多的情况下有效避免该其它用户听到音乐的声音,另一方面也可以利用当前用户头部的屏蔽作用阻挡声音传播从而有效避免该其它用户听到音乐的声音。因此,本申请实施例还可以有效避免播放音乐时打扰到其它用户。It is understandable that when other users appear only on the right ear side of the user, but not on the left ear side of the user, the embodiment of the present application can only control the first audio output device arranged on the left ear side of the user to output audio alone, while the second audio output device arranged on the right ear side of the user does not output audio. In this way, the sound source can be effectively kept away from other users on the right ear side. On the one hand, the sound source can be kept far away from the other user, thereby effectively preventing the other user from hearing the sound of the music when the sound attenuation is large. On the other hand, the shielding effect of the current user's head can be used to block the sound propagation, thereby effectively preventing the other user from hearing the sound of the music. Therefore, the embodiment of the present application can also effectively avoid disturbing other users when playing music.
304、若可穿戴设备的使用环境包括仅在左耳一侧出现其他用户,则控制第二音频输出器件输出混合而成的单声道音频。304. If the usage environment of the wearable device includes other users appearing only on the left ear side, control the second audio output device to output the mixed mono audio.
比如,可穿戴设备检测到仅在当前用户的左耳一侧出现有其它用户,而在当前用户的右耳一侧没有出现其他用户,那么电子设备可以仅控制设置于用户右耳一侧的第二音频输出器件单独输出混合而成的单声道音频。For example, if the wearable device detects that other users appear only on the left ear of the current user, but not on the right ear of the current user, the electronic device can only control the second audio output device set on the right ear of the user to output the mixed mono audio alone.
在一种实施方式中,304的流程还可以包括:若可穿戴设备的使用环境为仅在用户的左耳一侧的预设范围内出现其他用户,而在用户的右耳一侧的预设范围内没有出现其它用户,那么可穿戴设备可以仅控制设置于用户右耳一侧的第二音频输出器件单独输出混合而成的单声道音频,而设置于用户左耳一侧的第一音频输出器件则可以不输出音频。In one embodiment, the process of 304 may also include: if the usage environment of the wearable device is that other users appear only within a preset range on the left ear side of the user, and no other users appear within the preset range on the right ear side of the user, then the wearable device can only control the second audio output device set on the right ear side of the user to output the mixed mono audio separately, while the first audio output device set on the left ear side of the user may not output audio.
可以理解的是,当仅在用户的左耳一侧出现其它用户,而在用户的右耳一侧未出现其它用户的情况下,本申请实施例可以仅控制设置于用户右耳一侧的第二音频输出器件单独输出混合而成的单声道音频,而设置于用户左耳一侧的第一音频输出器件则不输出音频。通过这种方式可以有效地使发声声源远离左耳一侧的其它用户,这样一方面可以使发声声源距离该其它用户较远从而在声音衰减较多的情况下有效避免该其它用户听到音乐的声音,另一方面也可以利用当前用户头部的屏蔽作用阻挡声音传播从而有效避免该其它用户听到音乐的声音。因此,本申请实施例还可以有效避免播放音乐时打扰到其它用户。It is understandable that when other users appear only on the left ear side of the user, but not on the right ear side of the user, the embodiment of the present application can only control the second audio output device disposed on the right ear side of the user to output the mixed mono audio alone, while the first audio output device disposed on the left ear side of the user does not output audio. In this way, the sound source can be effectively kept away from other users on the left ear side. On the one hand, the sound source can be kept far away from the other user, thereby effectively preventing the other user from hearing the sound of the music when the sound attenuation is high. On the other hand, the shielding effect of the current user's head can be used to block the sound propagation, thereby effectively preventing the other user from hearing the sound of the music. Therefore, the embodiment of the present application can also effectively avoid disturbing other users when playing music.
在一种实施方式中,可穿戴设备还可以包括麦克风,那么可穿戴设备获取的使用环境的信息可以包括:通过麦克风获取的周围环境的噪声值。In one implementation, the wearable device may further include a microphone, and the information about the use environment acquired by the wearable device may include: a noise value of the surrounding environment acquired by the microphone.
那么,302流程中的若输出的音频为音乐文件,则将该音乐文件的左声道音频和右声道音频混合成单声道音频,包括:若噪声值小于预设阈值且输出的音频为音乐文件,则将该音乐文件的左声道音频和右声道音频混合成单声道音频。Then, in the 302 process, if the output audio is a music file, the left channel audio and the right channel audio of the music file are mixed into a mono audio, including: if the noise value is less than a preset threshold and the output audio is a music file, the left channel audio and the right channel audio of the music file are mixed into a mono audio.
比如,可穿戴设备检测到周围环境的噪声值小于预设阈值,那么可以认为该可穿戴设备所处的环境为一个安静的环境。在这种情况下,可穿戴设备可以将需要输出的音乐文件的左声道音频和右声道音频混合成单声道音频。之后,若可穿戴设备的使用环境为仅在右耳一侧出现其他用户,则该可穿戴设备可以控制设置于用户左耳一侧的第一音频输出器件单独输出混合而成的单声道音频,而设置于用户右耳一侧的第二音频输出器件则不输出任何音频。若可穿戴设备的使用环境为仅在左耳一侧出现其他用户,则可穿戴设备可以控制设置于用户右耳一侧的第二音频输出器件输出混合而成的单声道音频,而设置于用户左耳一侧的第一音频输出器件则可以不输出任何音频。For example, if the wearable device detects that the noise value of the surrounding environment is less than a preset threshold, then the environment in which the wearable device is located can be considered to be a quiet environment. In this case, the wearable device can mix the left channel audio and the right channel audio of the music file to be output into a mono audio. Afterwards, if the use environment of the wearable device is that other users appear only on the right ear side, the wearable device can control the first audio output device set on the left ear side of the user to output the mixed mono audio alone, while the second audio output device set on the right ear side of the user does not output any audio. If the use environment of the wearable device is that other users appear only on the left ear side, the wearable device can control the second audio output device set on the right ear side of the user to output the mixed mono audio, while the first audio output device set on the left ear side of the user may not output any audio.
可以理解的是,通过上述方式,可以在安静的环境中,有效避免可穿戴设备的当前用户因播放音乐而打扰到其它用户。It can be understood that, through the above method, it is possible to effectively prevent the current user of the wearable device from disturbing other users due to playing music in a quiet environment.
在一种实施方式中,可穿戴设备还可以包括第一摄像模组和第二摄像模组,该第一摄像模组可以设置在对应于左耳一侧,该第二摄像模组可以设置在对应于右耳一侧。那么,可穿戴设备可以通过该第一摄像模组拍摄的图像检测左耳一侧是否出现其他用户,并通过该第二摄像模组拍摄的图像检测右耳一侧是否出现其他用户。In one embodiment, the wearable device may further include a first camera module and a second camera module, wherein the first camera module may be arranged at a side corresponding to the left ear, and the second camera module may be arranged at a side corresponding to the right ear. Then, the wearable device may detect whether other users appear at the left ear side through images captured by the first camera module, and detect whether other users appear at the right ear side through images captured by the second camera module.
比如,可穿戴设备可以通过设置在对应于用户左耳一侧的第一摄像模组拍摄到的图像来检测用户的左耳一侧是否出现其它用户,并通过设置在对应于用户右耳一侧的第二摄像模组拍摄到的图像来检测用户右耳一侧是否出现其它用户。例如,如果第一摄像模组拍摄到的图像中出现人像,那么可以确定左耳一侧出现其它用户。如果第二摄像模组拍摄到的图像中出现人像,那么可以确定右耳一侧出现其它用户。For example, the wearable device can detect whether other users appear on the left ear side of the user through the image captured by the first camera module corresponding to the left ear side of the user, and detect whether other users appear on the right ear side of the user through the image captured by the second camera module corresponding to the right ear side of the user. For example, if a portrait appears in the image captured by the first camera module, it can be determined that other users appear on the left ear side. If a portrait appears in the image captured by the second camera module, it can be determined that other users appear on the right ear side.
在一种实施方式中,第一摄像模组和第二摄像模组还可以是深度摄像模组,即可穿戴设备可以计算出第一摄像模组和第二摄像模组拍摄到的图像中的人像的深度信息,并根据该深度信息计算出其它用户与可穿戴设备的距离。根据其它用户与可穿戴设备的距离,该可穿戴设备就可以检测到在用户的左耳一侧的预设范围内是否出现其它用户,或者在用户的右耳一侧的预设范围内是否出现其它用户。In one embodiment, the first camera module and the second camera module may also be depth camera modules, that is, the wearable device may calculate the depth information of the portrait in the image captured by the first camera module and the second camera module, and calculate the distance between other users and the wearable device based on the depth information. Based on the distance between other users and the wearable device, the wearable device may detect whether other users appear within a preset range on the left ear side of the user, or whether other users appear within a preset range on the right ear side of the user.
在另一种实施方式中,还可以通过如下方式来获取可穿戴设备的使用环境的信息:In another implementation, the information about the use environment of the wearable device may also be obtained in the following manner:
比如,可穿戴设备还可以包括传感器,该传感器可以用于接收由用户输入的手势信息。For example, the wearable device may further include a sensor, which may be used to receive gesture information input by a user.
那么,获取可穿戴设备的使用环境的信息,可以包括:通过传感器接收由用户输入的手势信息,其中,当该传感器接收到预设第一手势时,确定该可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,当该传感器接收到预设第二手势时,确定该可穿戴设备的使用环境包括仅在左耳一侧出现其他用户。Then, obtaining information about the usage environment of the wearable device may include: receiving gesture information input by the user through a sensor, wherein, when the sensor receives a preset first gesture, determining that the usage environment of the wearable device includes other users appearing only on the right ear side, and when the sensor receives a preset second gesture, determining that the usage environment of the wearable device includes other users appearing only on the left ear side.
比如,可穿戴设备上可以设置一个传感器,该传感器可以用于接收用户的手势信息,比如该传感器可以接收用户的敲击、触摸(如按压或滑动)等手势操作。那么,可穿戴设备的当前用户可以通过向传感器发出相应的手势来向可穿戴设备输入对应的使用环境的信息。例如,在可穿戴设备的当前用户判断出仅在右侧出现其它用户时,该当前用户可以向传感器发出预设第一手势,从而向可穿戴设备输入仅在右侧有其它用户的环境信息。又如,在可穿戴设备的当前用户判断出仅在左侧出现其它用户时,该当前用户可以向传感器发出预设第二手势,从而向可穿戴设备输入仅在左侧有其它用户的环境信息。For example, a sensor may be provided on the wearable device, and the sensor may be used to receive gesture information of the user, for example, the sensor may receive gesture operations such as tapping, touching (such as pressing or sliding) by the user. Then, the current user of the wearable device may input information of the corresponding usage environment to the wearable device by sending corresponding gestures to the sensor. For example, when the current user of the wearable device determines that other users appear only on the right side, the current user may send a preset first gesture to the sensor, thereby inputting environmental information that other users appear only on the right side to the wearable device. For another example, when the current user of the wearable device determines that other users appear only on the left side, the current user may send a preset second gesture to the sensor, thereby inputting environmental information that other users appear only on the left side to the wearable device.
例如,预设第一手势可以为敲击一下传感器,预设第二手势可以为敲击两下传感器,等等。或者,预设第一手势可以为短按触摸传感器,预设第二手势可以为长按触摸传感器,等等。For example, the preset first gesture may be tapping the sensor once, the preset second gesture may be tapping the sensor twice, etc. Alternatively, the preset first gesture may be short pressing the touch sensor, the preset second gesture may be long pressing the touch sensor, etc.
在又一种实施方式中,还可以通过如下方式来获取可穿戴设备的使用环境的信息:In another embodiment, the information of the use environment of the wearable device can also be obtained in the following manner:
比如,可穿戴设备可以包括第一传感器和第二传感器,该第一传感器设置在对应于左耳一侧,该第二传感器设置在对应于右耳一侧,该第一传感器和第二传感器均可以用于接收由用户输入的手势信息。For example, the wearable device may include a first sensor and a second sensor, wherein the first sensor is disposed on a side corresponding to a left ear, and the second sensor is disposed on a side corresponding to a right ear, and both the first sensor and the second sensor may be used to receive gesture information input by a user.
那么,获取可穿戴设备的使用环境的信息,可以包括:若第一传感器接收到的由用户输入的手势和预设触发手势匹配,则确定出该可穿戴设备的使用环境包括仅在右耳一侧出现其他用户;若第二传感器接收到的由用户输入的手势和预设触发手势匹配,则确定出可穿戴设备的使用环境包括仅在左耳一侧出现其他用户。Then, obtaining information about the usage environment of the wearable device may include: if the gesture input by the user and received by the first sensor matches the preset trigger gesture, it is determined that the usage environment of the wearable device includes other users appearing only on the right ear side; if the gesture input by the user and received by the second sensor matches the preset trigger gesture, it is determined that the usage environment of the wearable device includes other users appearing only on the left ear side.
例如,可穿戴设备上可以设置两个传感器,分别为第一传感器和第二传感器。该第一传感器可以设置在对应于左耳一侧,该第二传感器可以设置在对应于右耳一侧。该第一传感器和第二传感器都可以用于接收用户的手势信息,比如第一传感器和第二传感器都可以接收用户的敲击、触摸(如按压或滑动)等手势操作。For example, two sensors may be provided on the wearable device, namely a first sensor and a second sensor. The first sensor may be provided on a side corresponding to the left ear, and the second sensor may be provided on a side corresponding to the right ear. Both the first sensor and the second sensor may be used to receive gesture information of the user, for example, the first sensor and the second sensor may receive gesture operations such as tapping, touching (such as pressing or sliding) of the user.
那么,可穿戴设备的当前用户可以通过向第一传感器或第二传感器发出相应的手势来向可穿戴设备输入对应的使用环境的信息。例如,在可穿戴设备的当前用户判断出仅在右侧出现其它用户时,该当前用户可以向第一传感器发出一个预设触发手势,从而向可穿戴设备输入仅在右侧有其它用户的环境信息。又如,在可穿戴设备的当前用户判断出仅在左侧出现其它用户时,该当前用户可以向第二传感器发出预设触发手势,从而向可穿戴设备输入仅在左侧有其它用户的环境信息。Then, the current user of the wearable device can input the corresponding use environment information to the wearable device by sending a corresponding gesture to the first sensor or the second sensor. For example, when the current user of the wearable device determines that other users appear only on the right side, the current user can send a preset trigger gesture to the first sensor, thereby inputting the environment information that other users appear only on the right side to the wearable device. For another example, when the current user of the wearable device determines that other users appear only on the left side, the current user can send a preset trigger gesture to the second sensor, thereby inputting the environment information that other users appear only on the left side to the wearable device.
在一些实施方式中,预设触发手势可以为对传感器敲击一次或者预设触发手势可以为滑动操作,等等。In some implementations, the preset trigger gesture may be tapping the sensor once or the preset trigger gesture may be a sliding operation, and so on.
请参阅图4至图10,图4至图10为本申请实施例提供的设备控制方法的场景示意图。Please refer to Figures 4 to 10, which are scene schematic diagrams of the device control method provided in the embodiments of the present application.
本实施例中,可穿戴设备例如可以为智能眼镜。该智能眼镜的示意图可以如图4所示。请参阅图4,在智能眼镜10的左右两条镜腿上分别设置有第一扬声器1以及第二扬声器2。其中第一扬声器和第二扬声器安装在镜腿内部。在对应于第一扬声器1的位置还设置有第一出声孔3。在对应于第二扬声器2的位置还设置有第二出声孔(未图示)。在智能眼镜10的右侧镜腿的上侧可以设置有第一麦克风4,在镜腿的下侧可以设置有第二麦克风(未图示)。In this embodiment, the wearable device may be, for example, smart glasses. A schematic diagram of the smart glasses may be shown in FIG4 . Referring to FIG4 , a first speaker 1 and a second speaker 2 are respectively provided on the left and right temples of the smart glasses 10. The first speaker and the second speaker are installed inside the temples. A first sound outlet 3 is also provided at a position corresponding to the first speaker 1. A second sound outlet (not shown) is also provided at a position corresponding to the second speaker 2. A first microphone 4 may be provided on the upper side of the right temple of the smart glasses 10, and a second microphone (not shown) may be provided on the lower side of the temple.
智能眼镜10可以用于播放音频,比如,智能眼镜10可以从智能手机20处接收音频文件,并播放该音频文件。例如,在当前用户佩戴智能眼镜的情况下,该当前用户使用智能手机进行来电通话,那么智能手机可以将来电对方的通话语音对应的音频数据传输至智能眼镜,并由智能眼镜通过第一扬声器和第一出声孔播放给当前用户听。此外,智能眼镜也可以通过第一麦克风和第二麦克风采集当前用户的通话语音,并将该当前用户的通话语音的数据发送至智能手机,再由智能手机通过通信网络传输至通话对方。The smart glasses 10 can be used to play audio. For example, the smart glasses 10 can receive an audio file from a smartphone 20 and play the audio file. For example, when the current user is wearing smart glasses and the current user uses a smartphone to make an incoming call, the smartphone can transmit the audio data corresponding to the call voice of the other party to the smart glasses, and the smart glasses can play it to the current user through the first speaker and the first sound outlet. In addition, the smart glasses can also collect the call voice of the current user through the first microphone and the second microphone, and send the call voice data of the current user to the smartphone, and then the smartphone transmits it to the other party through the communication network.
例如,智能眼镜的音频播放系统的结构示意图可以如图5所示。智能眼镜的主控芯片(SOC)可以从智能手机处接收来电对方的通话语音对应的音频数据,并将该音频数据传输至音频功率放大器,通话语音对应的音频信号经音频功率放大器放大处理后再传输至扬声器进行播放。其中,音频功率放大器可以包括对应于左耳一侧的第一音频功率放大器以及对应于右耳一侧的第二音频功率放大器,扬声器也包括对应于左耳一侧的第一扬声器以及对应于右耳一侧的第二扬声器。For example, the structural diagram of the audio playback system of the smart glasses can be shown in Figure 5. The main control chip (SOC) of the smart glasses can receive the audio data corresponding to the call voice of the caller from the smart phone, and transmit the audio data to the audio power amplifier. The audio signal corresponding to the call voice is amplified and processed by the audio power amplifier and then transmitted to the speaker for playback. Among them, the audio power amplifier may include a first audio power amplifier corresponding to the left ear side and a second audio power amplifier corresponding to the right ear side, and the speaker also includes a first speaker corresponding to the left ear side and a second speaker corresponding to the right ear side.
比如,当前用户佩戴了智能眼镜,该智能眼镜和当前用户的智能手机建立了数据传输连接。例如,此时智能手机接收到当前用户的好友的来电,该当前用户接通了该来电。在进行通话的过程中,当前用户5发现其右侧有其它人6存在并且该其他人6比较靠近当前用户5,该场景可以如图6所示。在这种情况下,为了避免通话语音外泄,当前用户可以敲击一次第一传感器。智能眼镜通过第一传感器接收到来自用户的敲击手势后,可以将该敲击手势和预设触发手势进行匹配。例如,预设触发手势为敲击一次的手势。那么,此时智能眼镜可以仅控制设置在左耳一侧的第一扬声器输出通话语音,而设置在右耳一侧的第二扬声器则不输出通话语音。此时,智能眼镜的音频播放系统的状态示意图可以如图7所示,即第二音频功率放大器、第二扬声器对应的播放通路被断开。For example, the current user wears smart glasses, and the smart glasses establish a data transmission connection with the current user's smartphone. For example, at this time, the smartphone receives a call from the current user's friend, and the current user answers the call. During the call, the current user 5 finds that there is another person 6 on his right side and the other person 6 is relatively close to the current user 5. The scene can be shown in Figure 6. In this case, in order to avoid the leakage of the call voice, the current user can tap the first sensor once. After the smart glasses receive the tapping gesture from the user through the first sensor, the tapping gesture can be matched with the preset trigger gesture. For example, the preset trigger gesture is a gesture of tapping once. Then, at this time, the smart glasses can only control the first speaker set on the left ear side to output the call voice, while the second speaker set on the right ear side does not output the call voice. At this time, the state diagram of the audio playback system of the smart glasses can be shown in Figure 7, that is, the playback path corresponding to the second audio power amplifier and the second speaker is disconnected.
又如,在进行通话的过程中,当前用户5发现其左侧有其它人7存在并且该其他人7比较靠近当前用户5,该场景可以如图8所示。在这种情况下,为了避免通话语音外泄,当前用户可以敲击一次第二传感器。智能眼镜通过第二传感器接收到来自用户的敲击手势后,可以将该敲击手势和预设触发手势进行匹配。例如,预设触发手势为敲击一次的手势。那么,此时智能眼镜可以仅控制设置在右耳一侧的第二扬声器输出通话语音,而设置在左耳一侧的第一扬声器则不输出通话语音。此时,智能眼镜的音频播放系统的状态示意图可以如图9所示,即第一音频功率放大器、第一扬声器对应的播放通路被断开。For another example, during a call, the current user 5 finds that there is another person 7 on his left side and the other person 7 is relatively close to the current user 5. This scene can be shown in Figure 8. In this case, in order to avoid leakage of call voice, the current user can tap the second sensor once. After the smart glasses receive the tapping gesture from the user through the second sensor, the tapping gesture can be matched with the preset trigger gesture. For example, the preset trigger gesture is a gesture of tapping once. Then, at this time, the smart glasses can only control the second speaker set on the right ear side to output the call voice, while the first speaker set on the left ear side does not output the call voice. At this time, the state diagram of the audio playback system of the smart glasses can be shown in Figure 9, that is, the playback path corresponding to the first audio power amplifier and the first speaker is disconnected.
再如,在结束通话后,当前用户进入安静的办公区域,并且当前用户利用智能手机打开了音乐应用,并点播了多首歌曲。此时,当前用户发现其左侧位置坐着其他同事。在这种情况下,为了避免播放的歌声打扰到其它同事,当前用户敲击一次第二传感器。智能眼镜通过第二传感器接收到来自用户的敲击手势后,可以将该敲击手势和预设触发手势进行匹配。例如,预设触发手势为敲击一次的手势。那么,此时智能眼镜可以将歌曲的左声道音频和右声道音频混合成单声道音频,并仅控制设置在右耳一侧的第二扬声器输出混合而成的歌声,而设置在左耳一侧的第一扬声器则不输出歌声。此时,智能眼镜的音频播放系统的状态示意图可以如图10所示,即第一音频功率放大器、第一扬声器对应的播放通路被断开。For another example, after ending the call, the current user enters a quiet office area, and the current user opens the music application using a smart phone and orders multiple songs. At this time, the current user finds that other colleagues are sitting on his left. In this case, in order to avoid disturbing other colleagues with the played songs, the current user taps the second sensor once. After the smart glasses receive the tapping gesture from the user through the second sensor, the tapping gesture can be matched with the preset trigger gesture. For example, the preset trigger gesture is a gesture of tapping once. Then, at this time, the smart glasses can mix the left channel audio and the right channel audio of the song into mono audio, and only control the second speaker set on the right ear side to output the mixed song, while the first speaker set on the left ear side does not output the song. At this time, the state diagram of the audio playback system of the smart glasses can be as shown in Figure 10, that is, the playback path corresponding to the first audio power amplifier and the first speaker is disconnected.
请参阅图11,图11为本申请实施例提供的设备控制装置的结构示意图。该设备控制装置可以应用于可穿戴设备,所述可穿戴设备至少包括第一音频输出器件和第二音频输出器件,所述第一音频输出器件设置在对应于左耳一侧,所述第二音频输出器件设置在对应于右耳一侧。设备控制装置300可以包括:获取模块301,第一控制模块302,第二控制模块303。Please refer to FIG11, which is a schematic diagram of the structure of the device control device provided in the embodiment of the present application. The device control device can be applied to a wearable device, wherein the wearable device at least includes a first audio output device and a second audio output device, wherein the first audio output device is arranged on a side corresponding to the left ear, and the second audio output device is arranged on a side corresponding to the right ear. The device control device 300 may include: an acquisition module 301, a first control module 302, and a second control module 303.
获取模块301,用于响应于音频输出指令,获取所述可穿戴设备的使用环境的信息,所述使用环境的信息包括在左耳一侧以及右耳一侧是否出现其它用户;An acquisition module 301 is used to acquire information about a use environment of the wearable device in response to an audio output instruction, wherein the information about the use environment includes whether other users appear on the left ear and the right ear;
第一控制模块302,用于若所述可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,则控制所述第一音频输出器件输出音频;A first control module 302 is configured to control the first audio output device to output audio if the use environment of the wearable device includes other users appearing only on the right ear side;
第二控制模块303,用于若所述可穿戴设备的使用环境包括仅在左耳一侧出现其他用户,则控制所述第二音频输出器件输出音频。The second control module 303 is used to control the second audio output device to output audio if the usage environment of the wearable device includes other users appearing only on the left ear.
在一种实施方式中,所述第一控制模块302用于:若所述可穿戴设备进行的是通话业务且所述可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,则控制所述第一音频输出器件输出音频;In one implementation, the first control module 302 is used to: if the wearable device is performing a call service and the use environment of the wearable device includes other users appearing only on the right ear, control the first audio output device to output audio;
所述第二控制模块303用于:若所述可穿戴设备进行的是通话业务且所述可穿戴设备的使用环境包括仅在左耳一侧出现其他用户,则控制所述第二音频输出器件输出音频。The second control module 303 is used to: if the wearable device is performing a call service and the use environment of the wearable device includes other users appearing only on the left ear, control the second audio output device to output audio.
在一种实施方式中,所述获取模块301还用于:若输出的音频为音乐文件,则将所述音乐文件的左声道音频和右声道音频混合成单声道音频。In one implementation, the acquisition module 301 is further configured to: if the output audio is a music file, mix the left channel audio and the right channel audio of the music file into a mono audio.
那么,所述第一控制模块302用于:若所述可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,则控制所述第一音频输出器件输出混合而成的所述单声道音频。Then, the first control module 302 is used to: if the usage environment of the wearable device includes other users appearing only on the right ear side, control the first audio output device to output the mixed mono audio.
所述第二控制模块303用于:若所述可穿戴设备的使用环境包括仅在左耳一侧出现其他用户,则控制所述第二音频输出器件输出混合而成的所述单声道音频。The second control module 303 is used to: if the usage environment of the wearable device includes other users appearing only on the left ear side, control the second audio output device to output the mixed mono audio.
在一种实施方式中,所述可穿戴设备还包括麦克风,所述使用环境的信息还包括:通过所述麦克风获取的周围环境的噪声值。In one implementation, the wearable device further includes a microphone, and the information about the usage environment further includes: a noise value of the surrounding environment obtained by the microphone.
所述获取模块301还用于:若所述噪声值小于预设阈值且输出的音频为音乐文件,则将所述音乐文件的左声道音频和右声道音频混合成单声道音频。The acquisition module 301 is further configured to: if the noise value is less than a preset threshold and the output audio is a music file, mix the left channel audio and the right channel audio of the music file into a mono audio.
在一种实施方式中,所述可穿戴设备还包括第一摄像模组和第二摄像模组,所述第一摄像模组设置在对应于左耳一侧,所述第二摄像模组设置在对应于右耳一侧。In one embodiment, the wearable device further includes a first camera module and a second camera module, wherein the first camera module is arranged on a side corresponding to a left ear, and the second camera module is arranged on a side corresponding to a right ear.
那么,所述获取模块301还用于:通过所述第一摄像模组拍摄的图像检测左耳一侧是否出现其他用户,通过所述第二摄像模组拍摄的图像检测右耳一侧是否出现其他用户。Then, the acquisition module 301 is also used to: detect whether there is other users on the left ear side through the image taken by the first camera module, and detect whether there is other users on the right ear side through the image taken by the second camera module.
在一种实施方式中,所述可穿戴设备还包括传感器,所述传感器用于接收由用户输入的手势信息。In one embodiment, the wearable device further includes a sensor, and the sensor is used to receive gesture information input by a user.
那么,所述获取模块301用于:通过所述传感器接收由用户输入的手势信息,其中,当所述传感器接收到预设第一手势时,确定所述可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,当所述传感器接收到预设第二手势时,确定所述可穿戴设备的使用环境包括仅在左耳一侧出现其他用户。Then, the acquisition module 301 is used to: receive gesture information input by the user through the sensor, wherein, when the sensor receives a preset first gesture, it is determined that the use environment of the wearable device includes other users appearing only on the right ear side; when the sensor receives a preset second gesture, it is determined that the use environment of the wearable device includes other users appearing only on the left ear side.
在一种实施方式中,所述可穿戴设备还包括第一传感器和第二传感器,所述第一传感器设置在对应于左耳一侧,所述第二传感器设置在对应于右耳一侧,所述第一传感器和第二传感器用于接收由用户输入的手势信息。In one embodiment, the wearable device further includes a first sensor and a second sensor, wherein the first sensor is arranged on a side corresponding to a left ear, and the second sensor is arranged on a side corresponding to a right ear, and the first sensor and the second sensor are used to receive gesture information input by a user.
那么,所述获取模块301还用于:若所述第一传感器接收到的由用户输入的手势和预设触发手势匹配,则确定所述可穿戴设备的使用环境包括仅在右耳一侧出现其他用户;若所述第二传感器接收到的由用户输入的手势和预设触发手势匹配,则确定所述可穿戴设备的使用环境包括仅在左耳一侧出现其他用户。Then, the acquisition module 301 is also used for: if the gesture input by the user and received by the first sensor matches the preset trigger gesture, then determining that the usage environment of the wearable device includes other users appearing only on the right ear side; if the gesture input by the user and received by the second sensor matches the preset trigger gesture, then determining that the usage environment of the wearable device includes other users appearing only on the left ear side.
在一种实施方式中,所述第一控制模块302用于:若所述可穿戴设备的使用环境包括仅在右耳一侧的预设范围内出现其他用户,则控制所述第一音频输出器件输出音频。In one implementation, the first control module 302 is used to control the first audio output device to output audio if the usage environment of the wearable device includes other users appearing only within a preset range on the right ear side.
所述第二获取模块303用于:若所述可穿戴设备的使用环境包括仅在左耳一侧的预设范围内出现其他用户,则控制所述第二音频输出器件输出音频。The second acquisition module 303 is used to: if the use environment of the wearable device includes other users appearing only within a preset range on the left ear side, control the second audio output device to output audio.
本申请实施例提供一种计算机可读的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行如本实施例提供的设备控制方法中的流程。An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed on a computer, the computer executes the process in the device control method provided in this embodiment.
本申请实施例还提供一种可穿戴设备,包括存储器、处理器、第一音频输出器件、第二音频输出器件,所述第一音频输出器件设置在对应于左耳一侧,所述第二音频输出器件设置在对应于右耳一侧,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本实施例提供的设备控制方法中的流程。An embodiment of the present application also provides a wearable device, including a memory, a processor, a first audio output device, and a second audio output device, wherein the first audio output device is arranged on a side corresponding to a left ear, and the second audio output device is arranged on a side corresponding to a right ear, and the processor is used to execute the process in the device control method provided in this embodiment by calling a computer program stored in the memory.
例如,上述可穿戴设备可以是诸如平板电脑或者智能手机等移动终端。请参阅图12,图12为本申请实施例提供的可穿戴设备的结构示意图。For example, the wearable device may be a mobile terminal such as a tablet computer or a smart phone. Please refer to FIG12 , which is a schematic diagram of the structure of a wearable device provided in an embodiment of the present application.
该可穿戴设备400可以包括音频输出模组401、存储器402、处理器403等部件。本领域技术人员可以理解,图12中示出的可穿戴设备结构并不构成对可穿戴设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The wearable device 400 may include components such as an audio output module 401, a memory 402, and a processor 403. Those skilled in the art will appreciate that the wearable device structure shown in FIG. 12 does not limit the wearable device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.
音频输出模组401可以包括第一音频输出器件和第二音频输出器件。该第一音频输出器件设置在对应于左耳一侧,该第二音频输出器件设置在对应于右耳一侧。该第一音频输出器件和第二音频输出器件可以均为扬声器等。The audio output module 401 may include a first audio output device and a second audio output device. The first audio output device is arranged on the side corresponding to the left ear, and the second audio output device is arranged on the side corresponding to the right ear. The first audio output device and the second audio output device may both be speakers, etc.
存储器402可用于存储应用程序和数据。存储器402存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器403通过运行存储在存储器402的应用程序,从而执行各种功能应用以及数据处理。The memory 402 may be used to store applications and data. The applications stored in the memory 402 include executable codes. The applications may be composed of various functional modules. The processor 403 executes various functional applications and data processing by running the applications stored in the memory 402.
处理器403是可穿戴设备的控制中心,利用各种接口和线路连接整个可穿戴设备的各个部分,通过运行或执行存储在存储器402内的应用程序,以及调用存储在存储器402内的数据,执行可穿戴设备的各种功能和处理数据,从而对可穿戴设备进行整体监控。The processor 403 is the control center of the wearable device. It uses various interfaces and lines to connect the various parts of the entire wearable device. By running or executing applications stored in the memory 402 and calling data stored in the memory 402, it executes various functions of the wearable device and processes data, thereby monitoring the wearable device as a whole.
在本实施例中,可穿戴设备中的处理器403会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器402中,并由处理器403来运行存储在存储器402中的应用程序,从而执行:In this embodiment, the processor 403 in the wearable device loads the executable code corresponding to the process of one or more applications into the memory 402 according to the following instructions, and the processor 403 runs the application stored in the memory 402 to execute:
响应于音频输出指令,获取所述可穿戴设备的使用环境的信息,所述使用环境的信息包括在左耳一侧以及右耳一侧是否出现其它用户;In response to the audio output instruction, obtaining information about the use environment of the wearable device, wherein the information about the use environment includes whether other users appear on the left ear side and the right ear side;
若所述可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,则控制所述第一音频输出器件输出音频;If the usage environment of the wearable device includes other users appearing only on the right ear, controlling the first audio output device to output audio;
若所述可穿戴设备的使用环境包括仅在左耳一侧出现其他用户,则控制所述第二音频输出器件输出音频。If the usage environment of the wearable device includes other users appearing only on the left ear side, the second audio output device is controlled to output audio.
请参阅图13,可穿戴设备400可以包括音频输出模组401、存储器402、处理器403、电池404、功率放大器405、麦克风406等部件。Please refer to FIG. 13 , the wearable device 400 may include components such as an audio output module 401 , a memory 402 , a processor 403 , a battery 404 , a power amplifier 405 , and a microphone 406 .
音频输出模组401可以包括第一音频输出器件和第二音频输出器件。该第一音频输出器件设置在对应于左耳一侧,该第二音频输出器件设置在对应于右耳一侧。该第一音频输出器件和第二音频输出器件可以均为扬声器等。The audio output module 401 may include a first audio output device and a second audio output device. The first audio output device is arranged on the side corresponding to the left ear, and the second audio output device is arranged on the side corresponding to the right ear. The first audio output device and the second audio output device may both be speakers, etc.
存储器402可用于存储应用程序和数据。存储器402存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器403通过运行存储在存储器402的应用程序,从而执行各种功能应用以及数据处理。The memory 402 may be used to store applications and data. The applications stored in the memory 402 include executable codes. The applications may be composed of various functional modules. The processor 403 executes various functional applications and data processing by running the applications stored in the memory 402.
处理器403是可穿戴设备的控制中心,利用各种接口和线路连接整个可穿戴设备的各个部分,通过运行或执行存储在存储器402内的应用程序,以及调用存储在存储器402内的数据,执行可穿戴设备的各种功能和处理数据,从而对可穿戴设备进行整体监控。The processor 403 is the control center of the wearable device. It uses various interfaces and lines to connect various parts of the entire wearable device. By running or executing applications stored in the memory 402 and calling data stored in the memory 402, it executes various functions of the wearable device and processes data, thereby monitoring the wearable device as a whole.
电池404可以为可穿戴设备的各个器件和模块提供电力支持,从而保证各个器件和模块的正常运行。The battery 404 can provide power support for various components and modules of the wearable device, thereby ensuring the normal operation of each component and module.
功率放大器405可以用于在产生声音的输出元件上增大音频功率,重建输入的音频信号。The power amplifier 405 may be used to increase the audio power at the sound generating output element, reconstructing the input audio signal.
麦克风406可以用于拾取周围环境中的声音信号等。The microphone 406 may be used to pick up sound signals in the surrounding environment.
在本实施例中,可穿戴设备中的处理器403会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器402中,并由处理器403来运行存储在存储器402中的应用程序,从而执行:In this embodiment, the processor 403 in the wearable device loads the executable code corresponding to the process of one or more applications into the memory 402 according to the following instructions, and the processor 403 runs the application stored in the memory 402 to execute:
响应于音频输出指令,获取所述可穿戴设备的使用环境的信息,所述使用环境的信息包括在左耳一侧以及右耳一侧是否出现其它用户;In response to the audio output instruction, obtaining information about the use environment of the wearable device, wherein the information about the use environment includes whether other users appear on the left ear side and the right ear side;
若所述可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,则控制所述第一音频输出器件输出音频;If the usage environment of the wearable device includes other users appearing only on the right ear, controlling the first audio output device to output audio;
若所述可穿戴设备的使用环境包括仅在左耳一侧出现其他用户,则控制所述第二音频输出器件输出音频。If the usage environment of the wearable device includes other users appearing only on the left ear side, the second audio output device is controlled to output audio.
在一种实施方式中,所述处理器403可以用于执行:若所述可穿戴设备进行的是通话业务且所述可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,则控制所述第一音频输出器件输出音频;若所述可穿戴设备进行的是通话业务且所述可穿戴设备的使用环境包括仅在左耳一侧出现其他用户,则控制所述第二音频输出器件输出音频。In one embodiment, the processor 403 can be used to execute: if the wearable device is performing a call service and the usage environment of the wearable device includes other users appearing only on the right ear side, then control the first audio output device to output audio; if the wearable device is performing a call service and the usage environment of the wearable device includes other users appearing only on the left ear side, then control the second audio output device to output audio.
在一种实施方式中,所述处理器403可以用于执行:若输出的音频为音乐文件,则将所述音乐文件的左声道音频和右声道音频混合成单声道音频;若所述可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,则控制所述第一音频输出器件输出混合而成的所述单声道音频;若所述可穿戴设备的使用环境包括仅在左耳一侧出现其他用户,则控制所述第二音频输出器件输出混合而成的所述单声道音频。In one embodiment, the processor 403 can be used to execute: if the output audio is a music file, the left channel audio and the right channel audio of the music file are mixed into mono audio; if the use environment of the wearable device includes other users appearing only on the right ear side, the first audio output device is controlled to output the mixed mono audio; if the use environment of the wearable device includes other users appearing only on the left ear side, the second audio output device is controlled to output the mixed mono audio.
在一种实施方式中,所述可穿戴设备还包括麦克风,所述使用环境的信息还包括:通过所述麦克风获取的周围环境的噪声值。In one implementation, the wearable device further includes a microphone, and the information about the usage environment further includes: a noise value of the surrounding environment obtained by the microphone.
那么,所述处理器403执行所述若输出的音频为音乐文件,则将所述音乐文件的左声道音频和右声道音频混合成单声道音频时,可以执行:若所述噪声值小于预设阈值且输出的音频为音乐文件,则将所述音乐文件的左声道音频和右声道音频混合成单声道音频。Then, when the processor 403 executes the step of mixing the left channel audio and the right channel audio of the music file into a mono audio if the output audio is a music file, it can execute the step of: if the noise value is less than a preset threshold and the output audio is a music file, mixing the left channel audio and the right channel audio of the music file into a mono audio.
在一种实施方式中,所述可穿戴设备还包括第一摄像模组和第二摄像模组,所述第一摄像模组设置在对应于左耳一侧,所述第二摄像模组设置在对应于右耳一侧。In one embodiment, the wearable device further includes a first camera module and a second camera module, wherein the first camera module is arranged on a side corresponding to a left ear, and the second camera module is arranged on a side corresponding to a right ear.
那么,所述处理器403用于执行:通过所述第一摄像模组拍摄的图像检测左耳一侧是否出现其他用户,通过所述第二摄像模组拍摄的图像检测右耳一侧是否出现其他用户。Then, the processor 403 is used to execute: detecting whether other users appear on the left ear side through the image taken by the first camera module, and detecting whether other users appear on the right ear side through the image taken by the second camera module.
在一种实施方式中,所述可穿戴设备还包括传感器,所述传感器用于接收由用户输入的手势信息。In one embodiment, the wearable device further includes a sensor, and the sensor is used to receive gesture information input by a user.
那么,所述处理器403执行所述获取所述可穿戴设备的使用环境的信息时,可以执行:通过所述传感器接收由用户输入的手势信息,其中,当所述传感器接收到预设第一手势时,确定所述可穿戴设备的使用环境包括仅在右耳一侧出现其他用户,当所述传感器接收到预设第二手势时,确定所述可穿戴设备的使用环境包括仅在左耳一侧出现其他用户。Then, when the processor 403 executes the acquisition of information on the usage environment of the wearable device, it can execute: receiving gesture information input by the user through the sensor, wherein, when the sensor receives a preset first gesture, determining that the usage environment of the wearable device includes other users appearing only on the right ear side, and when the sensor receives a preset second gesture, determining that the usage environment of the wearable device includes other users appearing only on the left ear side.
在一种实施方式中,所述可穿戴设备还包括第一传感器和第二传感器,所述第一传感器设置在对应于左耳一侧,所述第二传感器设置在对应于右耳一侧,所述第一传感器和第二传感器用于接收由用户输入的手势信息。In one embodiment, the wearable device further includes a first sensor and a second sensor, wherein the first sensor is arranged on a side corresponding to a left ear, and the second sensor is arranged on a side corresponding to a right ear, and the first sensor and the second sensor are used to receive gesture information input by a user.
那么,所述处理器403执行所述获取所述可穿戴设备的使用环境的信息时,可以执行:若所述第一传感器接收到的由用户输入的手势和预设触发手势匹配,则确定所述可穿戴设备的使用环境包括仅在右耳一侧出现其他用户;若所述第二传感器接收到的由用户输入的手势和预设触发手势匹配,则确定所述可穿戴设备的使用环境包括仅在左耳一侧出现其他用户。Then, when the processor 403 executes the acquisition of information on the usage environment of the wearable device, it can execute: if the gesture input by the user and received by the first sensor matches the preset trigger gesture, it is determined that the usage environment of the wearable device includes other users appearing only on the right ear side; if the gesture input by the user and received by the second sensor matches the preset trigger gesture, it is determined that the usage environment of the wearable device includes other users appearing only on the left ear side.
在一种实施方式中,所述处理器403可以用于执行:若所述可穿戴设备的使用环境包括仅在右耳一侧的预设范围内出现其他用户,则控制所述第一音频输出器件输出音频;若所述可穿戴设备的使用环境包括仅在左耳一侧的预设范围内出现其他用户,则控制所述第二音频输出器件输出音频。In one embodiment, the processor 403 can be used to execute: if the use environment of the wearable device includes other users appearing only within a preset range on the right ear side, then control the first audio output device to output audio; if the use environment of the wearable device includes other users appearing only within a preset range on the left ear side, then control the second audio output device to output audio.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对设备控制方法的详细描述,此处不再赘述。In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, please refer to the detailed description of the device control method above, and will not be repeated here.
本申请实施例提供的所述设备控制装置与上文实施例中的设备控制方法属于同一构思,在所述设备控制装置上可以运行所述设备控制方法实施例中提供的任一方法,其具体实现过程详见所述设备控制方法实施例,此处不再赘述。The device control apparatus provided in the embodiment of the present application belongs to the same concept as the device control method in the above embodiment. Any method provided in the device control method embodiment can be run on the device control apparatus. The specific implementation process is detailed in the device control method embodiment and will not be repeated here.
需要说明的是,对本申请实施例所述设备控制方法而言,本领域普通技术人员可以理解实现本申请实施例所述设备控制方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在存储器中,并被至少一个处理器执行,在执行过程中可包括如所述设备控制方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that, for the device control method described in the embodiment of the present application, a person of ordinary skill in the art can understand that all or part of the process of implementing the device control method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and the execution process may include the process of the embodiment of the device control method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.
对本申请实施例的所述设备控制装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the device control device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.
以上对本申请实施例所提供的一种设备控制方法、装置、存储介质以及可穿戴设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above is a detailed introduction to a device control method, apparatus, storage medium and wearable device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010839654.9A CN111930339B (en) | 2020-08-19 | 2020-08-19 | Device control method, device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010839654.9A CN111930339B (en) | 2020-08-19 | 2020-08-19 | Device control method, device, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111930339A CN111930339A (en) | 2020-11-13 |
CN111930339B true CN111930339B (en) | 2024-04-12 |
Family
ID=73305497
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010839654.9A Active CN111930339B (en) | 2020-08-19 | 2020-08-19 | Device control method, device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111930339B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116009694A (en) * | 2022-12-26 | 2023-04-25 | 维沃移动通信有限公司 | Wearable device and control method thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106851451A (en) * | 2016-12-26 | 2017-06-13 | 努比亚技术有限公司 | A kind of earpiece volume control method and device |
CN108683980A (en) * | 2018-05-31 | 2018-10-19 | 维沃移动通信有限公司 | An audio signal transmission method and mobile terminal |
CN110290262A (en) * | 2019-06-14 | 2019-09-27 | 华为技术有限公司 | A kind of call method and terminal device |
CN110602696A (en) * | 2019-10-30 | 2019-12-20 | 维沃移动通信有限公司 | Conversation privacy protection method and electronic equipment |
WO2020088158A1 (en) * | 2018-11-01 | 2020-05-07 | 歌尔股份有限公司 | Headset and playing method therefor |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11128275B2 (en) * | 2013-10-10 | 2021-09-21 | Voyetra Turtle Beach, Inc. | Method and system for a headset with integrated environment sensors |
-
2020
- 2020-08-19 CN CN202010839654.9A patent/CN111930339B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106851451A (en) * | 2016-12-26 | 2017-06-13 | 努比亚技术有限公司 | A kind of earpiece volume control method and device |
CN108683980A (en) * | 2018-05-31 | 2018-10-19 | 维沃移动通信有限公司 | An audio signal transmission method and mobile terminal |
WO2020088158A1 (en) * | 2018-11-01 | 2020-05-07 | 歌尔股份有限公司 | Headset and playing method therefor |
CN110290262A (en) * | 2019-06-14 | 2019-09-27 | 华为技术有限公司 | A kind of call method and terminal device |
CN110602696A (en) * | 2019-10-30 | 2019-12-20 | 维沃移动通信有限公司 | Conversation privacy protection method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111930339A (en) | 2020-11-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12229473B2 (en) | Changing companion communication device behavior based on status of wearable device | |
US11251763B2 (en) | Audio signal adjustment method, storage medium, and terminal | |
CN107509153B (en) | Detection method and device of sound playing device, storage medium and terminal | |
US20220415333A1 (en) | Using audio watermarks to identify co-located terminals in a multi-terminal session | |
US20170318374A1 (en) | Headset, an apparatus and a method with automatic selective voice pass-through | |
CN109040446B (en) | Call processing method and related products | |
CN109360549B (en) | Data processing method, wearable device and device for data processing | |
US20220076688A1 (en) | Method and apparatus for optimizing sound quality for instant messaging | |
CN108418968B (en) | Voice call data processing method and device, storage medium and mobile terminal | |
US20170195817A1 (en) | Simultaneous Binaural Presentation of Multiple Audio Streams | |
US20250133364A1 (en) | Automatic Acoustic Handoff | |
CN114466283A (en) | Audio collection method, device, electronic device and peripheral component method | |
CN108449497B (en) | Voice call data processing method and device, storage medium and mobile terminal | |
CN111930339B (en) | Device control method, device, storage medium and electronic device | |
CN113596662B (en) | Method for suppressing howling, device for suppressing howling, earphone, and storage medium | |
WO2025118959A1 (en) | Audio transmission method and apparatus, terminal and readable storage medium | |
CN109348021B (en) | Mobile terminal and audio playing method | |
CN111556406B (en) | Audio processing method, audio processing device and earphone | |
CN114785886A (en) | Call method using multiple audio devices and electronic device | |
US10896666B2 (en) | Noise cancellation with variable distance | |
CN104754120A (en) | Terminal | |
WO2024119926A1 (en) | Earphone fitting degree detection method and earphone | |
CN114630240A (en) | Directional filter generation method, audio processing method, device and storage medium | |
CN115190212A (en) | Call noise reduction method, device, headset device and medium based on headset device | |
HK40000380A (en) | Call processing method and related products |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |