[go: up one dir, main page]

CN108683790B - Voice processing method and related product - Google Patents

Voice processing method and related product Download PDF

Info

Publication number
CN108683790B
CN108683790B CN201810368538.6A CN201810368538A CN108683790B CN 108683790 B CN108683790 B CN 108683790B CN 201810368538 A CN201810368538 A CN 201810368538A CN 108683790 B CN108683790 B CN 108683790B
Authority
CN
China
Prior art keywords
recording
target
sound signal
wearable device
head
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.)
Expired - Fee Related
Application number
CN201810368538.6A
Other languages
Chinese (zh)
Other versions
CN108683790A (en
Inventor
郭富豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810368538.6A priority Critical patent/CN108683790B/en
Publication of CN108683790A publication Critical patent/CN108683790A/en
Application granted granted Critical
Publication of CN108683790B publication Critical patent/CN108683790B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/64Automatic arrangements for answering calls; Automatic arrangements for recording messages for absent subscribers; Arrangements for recording conversations
    • H04M1/65Recording arrangements for recording a message from the calling party
    • H04M1/656Recording arrangements for recording a message from the calling party for recording conversations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/21Combinations with auxiliary equipment, e.g. with clocks or memoranda pads
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种语音处理方法及相关产品,应用于可穿戴设备,所述可穿戴设备佩戴于用户头部,所述方法包括:采集所述用户头部的运动参数;在所述运动参数满足预设条件时,生成录音指令;响应所述录音指令,执行录音操作。采用本申请实施例可依据用户头部运动,生成录音指令,实现录音功能,提升了可穿戴设备的智能性和便捷性,也提升了用户体验。

Figure 201810368538

The present application discloses a voice processing method and related products, which are applied to a wearable device. The wearable device is worn on a user's head. The method includes: collecting motion parameters of the user's head; When the preset conditions are met, a recording instruction is generated; in response to the recording instruction, a recording operation is performed. Using the embodiments of the present application, recording instructions can be generated according to the movement of the user's head, so as to realize the recording function, which improves the intelligence and convenience of the wearable device, and also improves the user experience.

Figure 201810368538

Description

语音处理方法及相关产品Speech processing method and related products

技术领域technical field

本申请涉及电子技术领域,尤其涉及一种语音处理方法及相关产品。The present application relates to the field of electronic technology, and in particular, to a voice processing method and related products.

背景技术Background technique

随着无线技术的成熟,无线耳机通过无线技术连接手机等电子设备的场景越来越多。人们可以通过无线耳机实现听音乐、打电话等各种功能。然而,目前的无线耳机较为单一,因此,降低了用户体验。With the maturity of wireless technology, there are more and more scenarios in which wireless headphones are connected to electronic devices such as mobile phones through wireless technology. People can listen to music, make calls and other functions through wireless earphones. However, the current wireless earphones are relatively simple, and thus, the user experience is degraded.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种语音处理方法及相关产品,可以实现录音功能,提升可穿戴设备的智能性和便捷性。Embodiments of the present application provide a voice processing method and related products, which can implement a recording function and improve the intelligence and convenience of a wearable device.

第一方面,本申请实施例提供一种可穿戴设备,应用于可穿戴设备,所述可穿戴设备佩戴于用户头部,所述可穿戴设备包括存储和处理电路,以及与所述存储和处理电路连接的传感器和音频组件,其中,In a first aspect, an embodiment of the present application provides a wearable device, which is applied to a wearable device, where the wearable device is worn on the head of a user, the wearable device includes a storage and processing circuit, and is connected with the storage and processing circuit circuit-connected sensor and audio components, where,

所述传感器,用于采集所述用户头部的运动参数;the sensor for collecting the motion parameters of the user's head;

所述存储和处理电路,用于在所述运动参数满足预设条件时,生成录音指令;The storage and processing circuit is used to generate a recording instruction when the motion parameter meets a preset condition;

所述音频组件,用于响应所述录音指令,执行录音操作。The audio component is configured to perform a recording operation in response to the recording instruction.

第二方面,本申请实施例提供一种语音处理方法,应用于可穿戴设备,所述可穿戴设备佩戴于用户头部,所述方法包括:In a second aspect, an embodiment of the present application provides a voice processing method, which is applied to a wearable device, where the wearable device is worn on the head of a user, and the method includes:

采集所述用户头部的运动参数;collecting motion parameters of the user's head;

在所述运动参数满足预设条件时,生成录音指令;When the motion parameter satisfies the preset condition, generating a recording instruction;

响应所述录音指令,执行录音操作。In response to the recording instruction, a recording operation is performed.

第三方面,本申请实施例提供一种语音处理装置,应用于可穿戴设备,所述可穿戴设备佩戴于用户头部,所述语音处理装置包括采集单元、生成单元和执行单元,其中:In a third aspect, an embodiment of the present application provides a voice processing device, which is applied to a wearable device, where the wearable device is worn on the head of a user, and the voice processing device includes a collection unit, a generation unit, and an execution unit, wherein:

所述采集单元,用于采集所述用户头部的运动参数;the collection unit, configured to collect motion parameters of the user's head;

所述生成单元,用于在所述运动参数满足预设条件时,生成录音指令;The generating unit is configured to generate a recording instruction when the motion parameter satisfies a preset condition;

所述执行单元,用于响应所述录音指令,执行录音操作。The execution unit is configured to perform a recording operation in response to the recording instruction.

第四方面,本申请实施例提供一种可穿戴设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第二方面任一方法中的步骤的指令。In a fourth aspect, embodiments of the present application provide a wearable device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory, and are configured by the above Executed by the processor, the above program includes instructions for executing steps in any method in the second aspect of the embodiments of the present application.

第五方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第二方面任一方法中所描述的部分或全部步骤。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the computer program as described in the first embodiment of the present application. Some or all of the steps described in either method of the second aspect.

第六方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第二方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a sixth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute as implemented in the present application. Examples include some or all of the steps described in any method of the second aspect. The computer program product may be a software installation package.

在本申请实施例中,可穿戴设备佩戴于用户头部,采集用户头部的运动参数,在运动参数满足预设条件时,生成录音指令,响应录音指令,执行录音操作,从而,依据用户头部运动,生成录音指令,实现录音功能,提升了可穿戴设备的智能性和便捷性,也提升了用户体验。In the embodiment of the present application, the wearable device is worn on the user's head, collects the motion parameters of the user's head, generates a recording instruction when the motion parameters meet the preset conditions, responds to the recording instruction, and performs a recording operation, thereby, according to the user's head It can generate recording instructions, realize the recording function, improve the intelligence and convenience of the wearable device, and also improve the user experience.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1A是本申请实施例公开的一种可穿戴设备的结构示意图;FIG. 1A is a schematic structural diagram of a wearable device disclosed in an embodiment of the present application;

图1B是本申请实施例公开的无线耳机的演示示意图;FIG. 1B is a schematic diagram of a demonstration of a wireless headset disclosed in an embodiment of the present application;

图1C是本申请实施例公开的一种语音处理的网络构架示意图;1C is a schematic diagram of a network architecture of a voice processing disclosed in an embodiment of the present application;

图1D是本申请实施例公开的一种语音处理方法的流程示意图;1D is a schematic flowchart of a speech processing method disclosed in an embodiment of the present application;

图2是本申请实施例公开的另一种语音处理方法的流程示意图;2 is a schematic flowchart of another voice processing method disclosed in an embodiment of the present application;

图3是本申请实施例公开的另一种可穿戴设备的结构示意图;3 is a schematic structural diagram of another wearable device disclosed in an embodiment of the present application;

图4A是本申请实施例公开的一种语音处理装置的结构示意图;4A is a schematic structural diagram of a voice processing apparatus disclosed in an embodiment of the present application;

图4B是本申请实施例公开的另一种语音处理装置的结构示意图。FIG. 4B is a schematic structural diagram of another voice processing apparatus disclosed in an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only The embodiments are part of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.

以下分别进行详细说明。Each of them will be described in detail below.

本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order . Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(UserEquipment,UE),移动台(Mobile Station,MS),终端设备(terminaldevice)等等。为方便描述,上面提到的设备统称为电子设备。Electronic devices may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to wireless modems, as well as various forms of user equipment (UE), mobile stations (Mobile Station, MS), terminal device (terminaldevice) and so on. For convenience of description, the devices mentioned above are collectively referred to as electronic devices.

可穿戴设备可以包括以下至少一种:无线耳机、脑电波采集装置、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、智能耳环/耳坠、智能助听器、智能发夹、智能眼镜等等。无线耳机可以通过如下技术实现通信:无线保真(wirelessfidelity,Wi-Fi)技术、蓝牙技术、可见光通信技术、不可见光通信技术(红外线通信技术、紫外线通信技术)等等。为了便于说明,以下实施例中的可穿戴设备以无线耳机为例进行说明。The wearable device may include at least one of the following: wireless earphones, brain wave collection devices, augmented reality (AR)/virtual reality (VR) devices, smart earrings/earrings, smart hearing aids, smart hair clips, smart glasses etc. Wireless headsets can communicate through the following technologies: wireless fidelity (Wi-Fi) technology, Bluetooth technology, visible light communication technology, invisible light communication technology (infrared communication technology, ultraviolet communication technology), and the like. For the convenience of description, the wearable device in the following embodiments is described by taking a wireless earphone as an example.

无线耳机可以为挂耳式耳机,也可以为耳塞式耳机,也可以为头戴式耳机,本申请实施例不做限定。The wireless earphone may be a hanging earphone, an earplug type earphone, or a headphone, which is not limited in the embodiment of the present application.

无线耳机可以收纳在耳机盒中,耳机盒可以包括:两个接收腔(第一接收腔和第二接收腔),该两个接收腔的大小和形状设计成接收一对无线耳机(第一无线耳机和第二无线耳机);设置在盒内的一个或多个耳机外壳磁性部件,上述一个或多个耳机外壳磁性部件用于将一对无线耳机磁性吸引且分别磁性固定到两个接收腔中。耳机盒还可以包括耳机盖。其中,第一接收腔的大小和形状设计成接收第一无线耳机,第二接收腔的大小和形状设计成接收第二无线耳机。无线耳机可以包括耳机外壳、设置在耳机外壳内的可循环充电的电池(例如,锂电池)、用于连接电池与充电装置的多个金属触点、包括驱动器单元和定向声音端口的扬声器组件,其中,驱动器单元包括磁体、音圈和隔膜,驱动器单元用于从定向声音端口发出声音,上述多个金属触点设置在耳机外壳的外部表面。在一种可能的实现方式中,无线耳机还可以包括触摸区,该触摸区可以位于在耳机外壳的外部表面,触摸区内设置有至少一个触摸传感器,用于检测触摸操作,触摸传感器可以包括电容传感器。当用户触摸触摸区时,至少一个电容传感器可以检测到自身电容的变化从而识别触摸操作。The wireless earphone can be accommodated in the earphone box, and the earphone box can include: two receiving cavities (a first receiving cavity and a second receiving cavity), the size and shape of the two receiving cavities are designed to receive a pair of wireless earphones (the first wireless earphone). earphones and second wireless earphones); one or more earphone shell magnetic parts provided in the box, the above-mentioned one or more earphone case magnetic parts are used to magnetically attract and magnetically fix a pair of wireless earphones into two receiving cavities respectively . The earphone case may also include an earphone cover. The size and shape of the first receiving cavity is designed to receive the first wireless earphone, and the size and shape of the second receiving cavity is designed to receive the second wireless earphone. A wireless headset may include a headset housing, a rechargeable battery (eg, a lithium battery) disposed within the headset housing, a plurality of metal contacts for connecting the battery to a charging device, a speaker assembly including a driver unit and a directional sound port, Wherein, the driver unit includes a magnet, a voice coil and a diaphragm, the driver unit is used to emit sound from the directional sound port, and the above-mentioned plurality of metal contacts are arranged on the outer surface of the earphone shell. In a possible implementation manner, the wireless headset may further include a touch area, and the touch area may be located on the outer surface of the earphone shell. At least one touch sensor is provided in the touch area for detecting a touch operation, and the touch sensor may include a capacitance sensor. When the user touches the touch area, at least one capacitive sensor can detect the change of its own capacitance so as to recognize the touch operation.

在一种可能的实现方式中,无线耳机还可以包括加速度传感器和三轴陀螺仪,加速度传感器和三轴陀螺仪可以设置在耳机外壳内,加速度传感器和三轴陀螺仪用于识别无线耳机的拿起动作和取下动作。In a possible implementation manner, the wireless headset may further include an acceleration sensor and a three-axis gyroscope, the acceleration sensor and the three-axis gyroscope may be arranged in the headset casing, and the acceleration sensor and the three-axis gyroscope are used to identify the holding of the wireless headset. Activate and remove.

在一种可能的实现方式中,无线耳机还可以包括至少一个气压传感器,气压传感器可以设置在耳机外壳的表面,用于在无线耳机佩戴后检测耳内气压。可以通过气压传感器检测无线耳机的佩戴松紧度。当检测到无线耳机佩戴较松时,无线耳机可以向与无线耳机连接的电子装置发送提示信息,以提示用户该无线耳机有掉落风险。In a possible implementation manner, the wireless earphone may further include at least one air pressure sensor, and the air pressure sensor may be arranged on the surface of the earphone shell, and is used to detect the air pressure in the ear after the wireless earphone is worn. The tightness of the wireless earphone can be detected by the air pressure sensor. When it is detected that the wireless earphone is loosely worn, the wireless earphone can send a prompt message to the electronic device connected to the wireless earphone to remind the user that the wireless earphone is at risk of falling.

请参阅图1A,图1A是本申请实施例公开的一种可穿戴设备的结构示意图,可穿戴设备100包括存储和处理电路110,以及与所述存储和处理电路110连接的传感器170、音频组件140,可选地,图1A所示的可穿戴设备的具体形态可参照图1B,其中,上述可穿戴设备100具体如下:Please refer to FIG. 1A . FIG. 1A is a schematic structural diagram of a wearable device disclosed in an embodiment of the present application. The wearable device 100 includes a storage and processing circuit 110 , a sensor 170 and an audio component connected to the storage and processing circuit 110 . 140. Optionally, for the specific form of the wearable device shown in FIG. 1A, refer to FIG. 1B, where the above-mentioned wearable device 100 is as follows:

可穿戴设备100可以包括控制电路,该控制电路可以包括存储和处理电路110。该存储和处理电路110可以存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路110中的处理电路可以用于控制可穿戴设备100的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字信号处理器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。Wearable device 100 may include control circuitry, which may include storage and processing circuitry 110 . The storage and processing circuit 110 may be memory, such as hard drive memory, non-volatile memory (such as flash memory or other electronically programmable read only memory used to form solid state drives, etc.), volatile memory (such as static or dynamic random access memory, etc.) memory, etc.), etc., which are not limited in the embodiments of the present application. Processing circuitry in storage and processing circuitry 110 may be used to control the operation of wearable device 100 . The processing circuit may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.

存储和处理电路110可用于运行可穿戴设备100中的软件,例如互联网浏览应用程序,互联网协议语音(voice over internet protocol,VOIP)电话呼叫应用程序,电子邮件应用程序,媒体播放应用程序,操作系统功能等。这些软件可以用于执行一些控制操作,例如,基于照相机的图像采集,基于环境光传感器的环境光测量,基于接近传感器的接近传感器测量,基于诸如发光二极管的状态指示灯等状态指示器实现的信息显示功能,基于触摸传感器的触摸事件检测,与在多个(例如分层的)显示器上显示信息相关联的功能,与执行无线通信功能相关联的操作,与收集和产生音频信号相关联的操作,与收集和处理按钮按压事件数据相关联的控制操作,以及可穿戴设备100中的其它功能等,本申请实施例不作限制。Storage and processing circuitry 110 may be used to run software in wearable device 100, such as internet browsing applications, voice over internet protocol (VOIP) phone calling applications, email applications, media playback applications, operating systems function, etc. These software can be used to perform some control operations, for example, camera-based image acquisition, ambient light measurement based on ambient light sensor, proximity sensor measurement based on proximity sensor, information based on status indicator implementation such as status indicators of light emitting diodes Display functions, touch sensor-based detection of touch events, functions associated with displaying information on multiple (eg, layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals , control operations associated with collecting and processing button press event data, and other functions in the wearable device 100, etc., are not limited in this embodiment of the present application.

可穿戴设备100还可以包括输入-输出电路150。输入-输出电路150可用于使可穿戴设备100实现数据的输入和输出,即允许可穿戴设备100从外部设备接收数据和也允许可穿戴设备100将数据从可穿戴设备100输出至外部设备。输入-输出电路150可以进一步包括传感器170。传感器170可以包括环境光传感器,基于光和电容的接近传感器,超声波传感器、雷达传感器、触摸传感器(例如,基于光触摸传感器和/或电容式触摸传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用),加速度传感器,和其它传感器等。Wearable device 100 may also include input-output circuitry 150 . The input-output circuit 150 may be used to enable the wearable device 100 to input and output data, ie, allowing the wearable device 100 to receive data from an external device and also allow the wearable device 100 to output data from the wearable device 100 to an external device. The input-output circuit 150 may further include a sensor 170 . Sensors 170 may include ambient light sensors, light and capacitance-based proximity sensors, ultrasonic sensors, radar sensors, touch sensors (eg, light-based touch sensors and/or capacitive touch sensors, where the touch sensor may be a touch-sensitive display). part, can also be used independently as a touch sensor structure), acceleration sensor, and other sensors.

输入-输出电路150还可以包括一个或多个显示器,例如显示器130。显示器130可以包括液晶显示器,有机发光二极管显示器,电子墨水显示器,等离子显示器,使用其它显示技术的显示器中一种或者几种的组合。显示器130可以包括触摸传感器阵列(即,显示器130可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控,压敏触摸,电阻触摸,光学触摸等,本申请实施例不作限制。Input-output circuitry 150 may also include one or more displays, such as display 130 . The display 130 may include one or a combination of a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, and displays using other display technologies. Display 130 may include an array of touch sensors (ie, display 130 may be a touch display). The touch sensor can be a capacitive touch sensor formed from an array of transparent touch sensor electrodes, such as indium tin oxide (ITO) electrodes, or can be a touch sensor formed using other touch technologies, such as sonic touch, pressure sensitive touch, resistive touch Touch, optical touch, etc., are not limited in the embodiments of the present application.

音频组件140可以用于为可穿戴设备100提供音频输入和输出功能。可穿戴设备100中的音频组件140可以包括扬声器,麦克风,蜂鸣器,音调发生器以及其它用于产生和检测声音的组件。Audio component 140 may be used to provide audio input and output functionality for wearable device 100 . Audio components 140 in wearable device 100 may include speakers, microphones, buzzers, tone generators, and other components for generating and detecting sounds.

通信电路120可以用于为可穿戴设备100提供与外部设备通信的能力。通信电路120可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。通信电路120中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路120中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(Near Field Communication,NFC)的电路。例如,通信电路120可以包括近场通信天线和近场通信收发器。通信电路120还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。Communication circuitry 120 may be used to provide wearable device 100 with the ability to communicate with external devices. Communication circuitry 120 may include analog and digital input-output interface circuitry, and wireless communication circuitry based on radio frequency signals and/or optical signals. Wireless communication circuitry in communication circuitry 120 may include radio frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless communication circuitry in the communication circuitry 120 may include circuitry for supporting Near Field Communication (NFC) by transmitting and receiving near-field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. Communication circuitry 120 may also include cellular telephone transceivers and antennas, wireless local area network transceiver circuits and antennas, and the like.

可穿戴设备100还可以进一步包括电池,电力管理电路和其它输入-输出单元160。输入-输出单元160可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。The wearable device 100 may further include a battery, power management circuits and other input-output units 160 . Input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.

用户可以通过输入-输出电路150输入命令来控制可穿戴设备100的操作,并且可以使用输入-输出电路150的输出数据以实现接收来自可穿戴设备100的状态信息和其它输出。The user may input commands through the input-output circuit 150 to control the operation of the wearable device 100 , and the output data of the input-output circuit 150 may be used to enable receiving status information and other outputs from the wearable device 100 .

基于上述图1A所描述的可穿戴设备,可以用于实现如下功能:Based on the wearable device described in Figure 1A above, it can be used to implement the following functions:

所述传感器170,用于采集所述用户头部的运动参数;The sensor 170 is used to collect motion parameters of the user's head;

所述存储和处理电路110,用于在所述运动参数满足预设条件时,生成录音指令;The storage and processing circuit 110 is configured to generate a recording instruction when the motion parameter meets a preset condition;

所述音频组件140,用于响应所述录音指令,执行录音操作。The audio component 140 is configured to perform a recording operation in response to the recording instruction.

在本申请实施例中,应用于可穿戴设备,该可穿戴设备佩戴于用户头部,采集用户头部的运动参数,在运动参数满足预设条件时,生成录音指令,响应录音指令,执行录音操作,从而,依据用户头部运动,生成录音指令,实现录音功能,提升了可穿戴设备的智能性和便捷性,也提升了用户体验。In the embodiment of the present application, it is applied to a wearable device, the wearable device is worn on the user's head, collects motion parameters of the user's head, and when the motion parameters meet preset conditions, generates a recording instruction, responds to the recording instruction, and executes the recording Therefore, according to the user's head movement, a recording instruction is generated to realize the recording function, which improves the intelligence and convenience of the wearable device, and also improves the user experience.

本申请实施例中,上述传感器170可以包括以下至少一种:加速度传感器、脑电波采集装置、接近传感器、光感传感器、超声波传感器、雷达传感器、压力传感器、温度传感器、位移传感器、神经传感器、肌肉传感器等等,音频组件140可以至少包括录音芯片和语音信号处理电路。In this embodiment of the present application, the sensor 170 may include at least one of the following: an acceleration sensor, a brain wave collection device, a proximity sensor, a light sensor, an ultrasonic sensor, a radar sensor, a pressure sensor, a temperature sensor, a displacement sensor, a nerve sensor, a muscle Sensors, etc., the audio component 140 may at least include a recording chip and a voice signal processing circuit.

在一个可能的示例中,所述运动参数包括第一头部器官的第一运动参数和第二头部器官的第二运动参数;In a possible example, the motion parameters include first motion parameters of the first head organ and second motion parameters of the second head organ;

在所述生成录音指令方面,所述存储和处理电路110具体用于:In the aspect of generating the recording instruction, the storage and processing circuit 110 is specifically used for:

按照预设的所述第一头部器官的运动参数与录音范围参数之间的第一映射关系,确定所述第一运动参数对应的目标录音范围参数;Determine the target recording range parameter corresponding to the first motion parameter according to the preset first mapping relationship between the motion parameter of the first head organ and the recording range parameter;

按照预设的所述第二头部器官的运动参数与录音对象之间的第二映射关系,确定所述第二运动参数对应的目标录音对象;According to the preset second mapping relationship between the motion parameters of the second head organ and the recording object, determine the target recording object corresponding to the second motion parameter;

依据所述目标录音范围参数和所述目标录音对象生成录音指令。A recording instruction is generated according to the target recording range parameter and the target recording object.

在一个可能的示例中所述运动参数包括:脸部肌肉运动的目标幅度和目标方向;所述存储和处理电路110还具体用于:In a possible example, the motion parameters include: target amplitude and target direction of facial muscle movement; the storage and processing circuit 110 is also specifically used for:

在所述目标幅度处于预设幅度范围和所述目标方向处于预设方向范围时,确定所述运动参数满足所述预设条件。When the target amplitude is within a preset amplitude range and the target direction is within a preset direction range, it is determined that the motion parameter satisfies the preset condition.

在一个可能的示例中,在所述执行录音操作方面,所述音频组件140具体用于:In a possible example, in the aspect of performing the recording operation, the audio component 140 is specifically configured to:

在接收到环境声音信号时,对所述环境声音信号进行滤波处理,得到参考声音信号;When receiving an ambient sound signal, filtering the ambient sound signal to obtain a reference sound signal;

对所述参考声音信号进行模数转换,得到目标声音信号;performing analog-to-digital conversion on the reference sound signal to obtain a target sound signal;

依据时间先后顺序将所述目标声音信号划分为多个声音信号片段;dividing the target sound signal into a plurality of sound signal segments according to time sequence;

分别确定所述多个声音信号片段中每一声音信号片段的能量值,得到多个能量值;respectively determining the energy value of each sound signal segment in the plurality of sound signal segments to obtain a plurality of energy values;

从所述多个能量值中选取大于预设能量阈值的目标能量值,并将所述目标能量值对应的声音信号片段按照时间先后顺序进行拼接,得到最终录音片段。A target energy value greater than a preset energy threshold is selected from the plurality of energy values, and the sound signal segments corresponding to the target energy value are spliced in chronological order to obtain a final recording segment.

在一个可能的示例中,所述可穿戴设备为无线耳机,所述无线耳机包括主耳机和从耳机,所述录音操作由所述主耳机和/或者所述从耳机实现。In a possible example, the wearable device is a wireless headset, the wireless headset includes a master headset and a slave headset, and the recording operation is implemented by the master headset and/or the slave headset.

基于上述图1A所描述的可穿戴设备,可用于执行如下语音处理方法,具体如下:Based on the wearable device described in FIG. 1A above, it can be used to execute the following voice processing methods, which are as follows:

所述传感器170采集所述用户头部的运动参数;the sensor 170 collects motion parameters of the user's head;

所述存储和处理电路110在所述运动参数满足预设条件时,生成录音指令;The storage and processing circuit 110 generates a recording instruction when the motion parameter satisfies a preset condition;

所述音频组件140响应所述录音指令,执行录音操作。The audio component 140 performs a recording operation in response to the recording instruction.

在一个可能的示例中,请参阅图1C,图1C是本申请实施例公开的一种语音处理的网络构架示意图。在图1C所示的语音处理的网络构架中,可以包括电子设备和可穿戴设备,其中,可穿戴设备可以通过无线网络(例如,蓝牙、红外线或无线保真(wireless fidelity,Wi-Fi)或者可见光通信技术或者不可见光通信技术)与电子设备通信连接。需要说明的是,无线耳机的数量可以是一个或二个,本申请实施例不作限定。在图1C所示的语音处理的网络构架中,可穿戴设备与电子设备可在一定距离范围内能够连接成功。以无线蓝牙耳机为例,如果无线蓝牙耳机,其最大功率容量为2.5mW,则无线蓝牙耳机与电子设备仅在10米左右的范围内能够连接成功,无线蓝牙耳机与电子设备之间的距离大于10米时,无线蓝牙耳机与电子设备一般会断开连接。电子设备可在一定范围内与可穿戴设备进行通信,可以通过电子设备控制可穿戴设备实现录音功能,或者,可穿戴设备录音之后,将已录音的音频文件传输给电子设备。In a possible example, please refer to FIG. 1C , which is a schematic diagram of a network architecture of a voice processing disclosed in an embodiment of the present application. In the network architecture of voice processing shown in FIG. 1C, electronic devices and wearable devices may be included, wherein the wearable devices may be connected through a wireless network (eg, Bluetooth, infrared, or wireless fidelity (Wi-Fi) or Visible light communication technology or invisible light communication technology) is communicatively connected with the electronic device. It should be noted that the number of wireless earphones may be one or two, which is not limited in this embodiment of the present application. In the voice processing network architecture shown in FIG. 1C , the wearable device and the electronic device can be successfully connected within a certain distance. Taking the wireless Bluetooth headset as an example, if the maximum power capacity of the wireless Bluetooth headset is 2.5mW, the wireless Bluetooth headset and the electronic device can only be successfully connected within a range of about 10 meters, and the distance between the wireless Bluetooth headset and the electronic device is greater than At 10 meters, the wireless Bluetooth headset is generally disconnected from the electronic device. The electronic device can communicate with the wearable device within a certain range, and the wearable device can be controlled by the electronic device to realize the recording function, or, after the wearable device is recorded, the recorded audio file can be transmitted to the electronic device.

基于上述图1A所描述的可穿戴设备,或者,基于图1C所描述的语音处理的网络架构,请参阅图1D,图1D是本申请实施例公开的一种语音处理方法的流程示意图。如图1D所示,应用于可穿戴设备,所述可穿戴设备佩戴于用户头部,该语音处理方法包括如下步骤。Based on the wearable device described in FIG. 1A , or based on the network architecture of voice processing described in FIG. 1C , please refer to FIG. 1D , which is a schematic flowchart of a voice processing method disclosed in an embodiment of the present application. As shown in FIG. 1D, applied to a wearable device, the wearable device is worn on the user's head, and the voice processing method includes the following steps.

101、采集所述用户头部的运动参数。101. Collect motion parameters of the user's head.

其中,上述用户头部的运动参数可以包括以下至少一种:肌肉运动参数、神经运动参数、眼部运动参数、头部运动参数、呼吸运动参数等等,Wherein, the movement parameters of the user's head may include at least one of the following: muscle movement parameters, nerve movement parameters, eye movement parameters, head movement parameters, breathing movement parameters, etc.,

可选地,肌肉运动参数可以包括面部表情,具体地,通过采集肌肉运动参数,通过肌肉运动参数分析出用户表情,又例如,肌肉运动参数还可以包括以下至少一种:肌肉运动方向、肌肉运动部位(例如,眼部肌肉、唇部肌肉、喉部肌肉、耳部肌肉等等)、肌肉运动幅度等等。Optionally, the muscle movement parameters may include facial expressions. Specifically, by collecting muscle movement parameters, the user's expression is analyzed through the muscle movement parameters. For another example, the muscle movement parameters may also include at least one of the following: muscle movement direction, muscle movement Location (eg, eye muscles, lip muscles, throat muscles, ear muscles, etc.), range of muscle movement, and the like.

可选地,神经运动参数可以包括以下至少一种:神经元类型(例如,语音类、动作类等等)、神经元运动活跃度(例如,可以采集用户脑电波,通过脑电波能量反映)、神经元运动区域(例如,左脑运动,右脑运动等)。Optionally, the neuromotor parameters may include at least one of the following: neuron type (for example, voice type, action type, etc.), neuron motor activity (for example, the user's brain waves can be collected and reflected by brain wave energy), Neuronal motor areas (eg, left-brain motor, right-brain motor, etc.).

可选地,眼部运动参数可以为以下至少一种:眨眼运动参数(单眼运动参数、双眼运动参数)、眼球运动参数(单眼球运动参数、双眼球运动参数),眨眼运动参数具体可为:眨眼次数、眨眼幅度(例如,闭眼和眯着眼,两者之间的眨眼幅度不一样),眼球运动参数具体可以为:眼球左右运动、眼球上下运动、眼球徘徊运动(例如,眼球上下来回运动或者眼球左右来回运动等等)、翻白眼等等。Optionally, the eye movement parameter can be at least one of the following: a blink movement parameter (monocular movement parameter, binocular movement parameter), an eye movement parameter (single eye movement parameter, binocular movement parameter), and the blink movement parameter may specifically be: The number of blinks, the blinking amplitude (for example, closing and squinting, the blinking amplitude between the two is different), and the eye movement parameters can specifically be: eye movement left and right, eye up and down movement, eye wandering movement (for example, eyeball up and down Movement or eye movement back and forth, etc.), eye rolls, etc.

可选地,头部运动参数可以包括以下至少一种:上下运动参数(例如,点头、低头、抬头、下蹲)、左右运动参数(例如,头部左偏、头部右偏)、头部转动参数(例如,头部向左顺时针转圈、头部向右顺时针转圈、头部向上顺时针转圈、头部向下顺时针转圈)。Optionally, the head motion parameters may include at least one of the following: up and down motion parameters (for example, nodding, bowing, looking up, squatting), left and right motion parameters (for example, head left, head right), head Rotation parameters (for example, head clockwise circle left, head clockwise circle right, head up clockwise circle, head down clockwise circle).

可选地,呼吸运动参数可以包括以下至少一种:呼吸次数、呼吸频率、呼吸幅度(例如,浅呼吸和深呼吸不一样)等等。Optionally, the breathing motion parameter may include at least one of the following: the number of breaths, the frequency of breathing, the amplitude of breathing (for example, shallow breathing and deep breathing are different), and the like.

102、在所述运动参数满足预设条件时,生成录音指令。102. Generate a recording instruction when the motion parameter satisfies a preset condition.

其中,上述预设条件可以由系统默认,或者,用户自行设置,例如,运动参数可以为点头次数,点头次数大于预设次数时,生成录音指令,预设次数可以由用户自行设置或者,系统默认。The above preset conditions can be set by the system by default, or set by the user. For example, the motion parameter can be the number of nods. When the number of nods is greater than the preset number, a recording instruction is generated, and the preset number can be set by the user. Alternatively, the system defaults .

可选地,所述运动参数包括第一头部器官的第一运动参数和第二头部器官的第二运动参数;上述步骤102,生成录音指令,可包括如下步骤:Optionally, the motion parameters include the first motion parameters of the first head organ and the second motion parameters of the second head organ; the above step 102, generating a recording instruction, may include the following steps:

21、按照预设的所述第一头部器官的运动参数与录音范围参数之间的第一映射关系,确定所述第一运动参数对应的目标录音范围参数;21. Determine the target recording range parameter corresponding to the first motion parameter according to the preset first mapping relationship between the motion parameter of the first head organ and the recording range parameter;

22、按照预设的所述第二头部器官的运动参数与录音对象之间的第二映射关系,确定所述第二运动参数对应的目标录音对象;22. Determine the target recording object corresponding to the second motion parameter according to the preset second mapping relationship between the motion parameter of the second head organ and the recording object;

23、依据所述目标录音范围参数和所述目标录音对象生成录音指令。23. Generate a recording instruction according to the target recording range parameter and the target recording object.

其中,上述第一头部器官、第二头部器官均可以包括但不仅限于以下至少一种:眼睛、鼻子、嘴巴、口腔、呼吸道、耳朵、脸颊眉毛等等。例如,上述第一头部器官可以为左眼、第二头部器官可以为右眼。上述录音范围参数可以包括:录音距离、录音方向、录音声音大小、录音声音频率、录音时长等等。录音对象可以理解为发声者的身份(例如,上课的时候,只录老师的声音,会议上,只录某人的声音),或者,发声者的数量(例如,5个人的声音),或者,发声者的类型(例如,人,猫,狗,风声等等)。Wherein, the above-mentioned first head organ and second head organ may include, but are not limited to, at least one of the following: eyes, nose, mouth, oral cavity, respiratory tract, ears, cheeks and eyebrows, and the like. For example, the first head organ may be the left eye, and the second head organ may be the right eye. The above-mentioned recording range parameters may include: recording distance, recording direction, recording sound volume, recording sound frequency, recording duration, and the like. The recording object can be understood as the identity of the speaker (for example, in class, only the teacher's voice is recorded, in the meeting, only one person's voice is recorded), or, the number of speakers (for example, 5 people's voices), or, Type of speaker (eg, human, cat, dog, wind, etc.).

可选地,录音距离可以理解为只对一定距离范围内的声音进行录音,例如,5米范围,具体实现中,可穿戴设备可以为无线耳机,无线耳机可以包括左耳机、右耳机、由于左耳机和右耳机均可以接收到环境声音,针对同一声音而言,左耳机和右耳机接收到的时间不一样,因此,可以通过两者之间的时间差,识别生源与无线耳机之间的距离,进而,实现对声音进行选择性录音。录音方向可以理解为只对来自一定方向的声音进行录音,声音为一种波形,其在传播过程中,沿着一定的轨迹传播,因此,存在传播方向。录音声音频率可以理解为只对一定频率范围的声音进行录音。录音时长可以理解为需要录音多长时间,例如,10分钟,则录音10分钟后,则可以停止录音。Optionally, the recording distance can be understood as recording only the sound within a certain distance range, for example, within a range of 5 meters. In the specific implementation, the wearable device can be a wireless headset, and the wireless headset can include a left Both the earphone and the right earphone can receive the ambient sound. For the same sound, the time received by the left earphone and the right earphone is different. Therefore, the distance between the student source and the wireless earphone can be identified by the time difference between the two. Furthermore, selective recording of sound is achieved. The recording direction can be understood as recording only the sound from a certain direction. The sound is a waveform, which propagates along a certain trajectory during the propagation process, so there is a propagation direction. The recording sound frequency can be understood as recording only the sound within a certain frequency range. The recording duration can be understood as how long the recording needs to be. For example, if it is 10 minutes, the recording can be stopped after 10 minutes of recording.

具体实现中,运动参数包括第一头部器官的第一运动参数和第二头部器官的第二运动参数,电子设备中可以预先存储预设的第一头部器官的运动参数与录音范围参数之间的第一映射关系,以及预设的第二头部器官的运动参数与录音对象之间的第二映射关系,进而,可以按照预设的第一头部器官的运动参数与录音范围参数之间的第一映射关系,确定第一运动参数对应的目标录音范围参数,按照预设的第二头部器官的运动参数与录音对象之间的第二映射关系,确定第二运动参数对应的目标录音对象,依据目标录音范围参数和目标录音对象生成录音指令,从而,针对目标录音范围参数和目标录音对象实现个性化录音,一方面可以减少内存消耗,另一方面,录音更加聚焦,便于后期处理,提升了用户体验。In specific implementation, the motion parameters include the first motion parameters of the first head organ and the second motion parameters of the second head organ, and the preset motion parameters and recording range parameters of the first head organ may be pre-stored in the electronic device and the preset second mapping relationship between the motion parameters of the second head organ and the recording object, and further, the preset motion parameters and recording range parameters of the first head organ can be Determine the target recording range parameter corresponding to the first motion parameter, according to the preset second mapping relationship between the motion parameter of the second head organ and the recording object, determine the corresponding second motion parameter. The target recording object generates recording instructions according to the target recording range parameters and the target recording object, so that personalized recording can be realized according to the target recording range parameters and the target recording object. processing to improve the user experience.

可选地,所述运动参数包括:脸部肌肉运动的目标幅度和目标方向;上述步骤101与步骤102之间,还可以包括如下步骤:Optionally, the motion parameters include: target amplitude and target direction of facial muscle movement; between the above steps 101 and 102, the following steps may also be included:

在所述目标幅度处于预设幅度范围和所述目标方向处于预设方向范围时,确定所述运动参数满足所述预设条件。When the target amplitude is within a preset amplitude range and the target direction is within a preset direction range, it is determined that the motion parameter satisfies the preset condition.

其中,上述预设幅度范围由用户自行设置或者,系统默认,预设方向范围也可以由用户自行设置或者系统默认。例如,用户向右噘嘴,则可以检测到噘嘴动作对应的幅度,以及方向,进而,识别出其是否满足预设条件,若满足预设条件,则可以生成录音指令,若不满足,则不能生成录音指令。如此,可以通过头部动作,快速生成录音指令,实现录音。Wherein, the above-mentioned preset amplitude range can be set by the user or the system defaults, and the preset direction range can also be set by the user or the system defaults. For example, if the user pouts to the right, the corresponding amplitude and direction of the pout can be detected, and then it can be identified whether it meets the preset conditions. If the preset conditions are met, a recording instruction can be generated. Recording commands cannot be generated. In this way, recording instructions can be quickly generated through head movements to realize recording.

103、响应所述录音指令,执行录音操作。103. In response to the recording instruction, perform a recording operation.

其中,可响应录音指令,按照录音指令的指示执行录音操作,如此,利用头部动作实现录音功能,大大提升了可穿戴设备的操作智能性和便捷性。Among them, the recording operation can be performed according to the instructions of the recording instruction in response to the recording instruction. In this way, the recording function is realized by using the head movement, which greatly improves the operational intelligence and convenience of the wearable device.

可选地,上述步骤103,执行录音操作,可包括如下步骤:Optionally, the above step 103, performing the recording operation, may include the following steps:

31、在接收到环境声音信号时,对所述环境声音信号进行滤波处理,得到参考声音信号;31. When an ambient sound signal is received, filter the ambient sound signal to obtain a reference sound signal;

32、对所述参考声音信号进行模数转换,得到目标声音信号;32. Perform analog-to-digital conversion on the reference sound signal to obtain a target sound signal;

33、依据时间先后顺序将所述目标声音信号划分为多个声音信号片段;33. Divide the target sound signal into a plurality of sound signal segments according to time sequence;

34、分别确定所述多个声音信号片段中每一声音信号片段的能量值,得到多个能量值;34. Determine the energy value of each sound signal segment in the plurality of sound signal segments, respectively, to obtain a plurality of energy values;

35、从所述多个能量值中选取大于预设能量阈值的目标能量值,并将所述目标能量值对应的声音信号片段按照时间先后顺序进行拼接,得到最终录音片段。35. Select a target energy value greater than a preset energy threshold from the plurality of energy values, and splicing the sound signal segments corresponding to the target energy value in chronological order to obtain a final recording segment.

其中,环境声音信号不仅包括不同人的声音,当然,还可以包括自然声音,即动物发出的声音,例如,风声、雨声以及其他声音等等,滤波处理可以包括以下至少一种:小波变换、中值滤波、双边滤波、带通滤波、低通滤波、高通滤波等等,预设能量阈值可以由用户自行设置,或者,系统默认。不同的声音其频率以及波形不一样,因此,可以在接收到环境声音信号之后,对环境声音信号进行滤波处理,得到参考声音信号,如此,可以过滤掉自然声音,紧接着,可以对参考声音信号进行模数转换,得到目标声音信号,依据时间先后顺序将目标声音信号划分为多个声音信号片段,分别确定每一声音信号片段的能量值,得到多个能量值,可以从多个能量值中选取大于预设能量阈值的目标能量值,低于预设能量阈值的声音片段可以理解为停顿(发声者并非每时每刻都在发声,也会停顿或者思考),进而,将目标能量值对应的声音信号片段按照时间先后顺序进行拼接,得到最终录音片段,如此,可以精准得到用户想要的录音,提升了用户体验。The ambient sound signal includes not only the sounds of different people, but also natural sounds, that is, sounds made by animals, such as wind, rain, and other sounds, and the filtering process may include at least one of the following: wavelet transform, Median filter, bilateral filter, band-pass filter, low-pass filter, high-pass filter, etc. The preset energy threshold can be set by the user, or the system defaults. Different sounds have different frequencies and waveforms. Therefore, after receiving the ambient sound signal, the ambient sound signal can be filtered to obtain the reference sound signal. In this way, the natural sound can be filtered out, and then the reference sound signal can be filtered. Perform analog-to-digital conversion to obtain the target sound signal, divide the target sound signal into a plurality of sound signal segments according to the time sequence, determine the energy value of each sound signal segment respectively, and obtain a plurality of energy values, which can be obtained from the plurality of energy values. Select the target energy value that is greater than the preset energy threshold, and the sound clips below the preset energy threshold can be understood as pauses (the speaker is not uttering sound all the time, but also pauses or thinks), and then, the target energy value corresponds to The sound signal segments are spliced in chronological order to obtain the final recording segment. In this way, the user's desired recording can be accurately obtained, which improves the user experience.

在本申请实施例中所描述的语音处理方法,应用于可穿戴设备,该可穿戴设备佩戴于用户头部,采集用户头部的运动参数,在运动参数满足预设条件时,生成录音指令,响应录音指令,执行录音操作,从而,依据用户头部运动,生成录音指令,实现录音功能,提升了可穿戴设备的智能性和便捷性,也提升了用户体验。The voice processing method described in the embodiment of the present application is applied to a wearable device, the wearable device is worn on the user's head, collects motion parameters of the user's head, and generates a recording instruction when the motion parameters meet preset conditions, In response to the recording instruction, the recording operation is performed, thereby, according to the user's head movement, the recording instruction is generated, and the recording function is realized, which improves the intelligence and convenience of the wearable device, and also improves the user experience.

在一个可能示例中,所述可穿戴设备为无线耳机,所述无线耳机包括主耳机和从耳机,所述录音操作由所述主耳机和/或者所述从耳机实现。如此,可以实现通过主耳机进行录音,或者,通过从耳机进行录音,或者,通过主耳机和从耳机实现录音。In a possible example, the wearable device is a wireless headset, the wireless headset includes a master headset and a slave headset, and the recording operation is implemented by the master headset and/or the slave headset. In this way, recording can be performed through the master earphone, or recording through the slave earphone, or recording through the master earphone and the slave earphone.

与上述一致地,请参阅图2,图2是本申请实施例公开的一种语音处理方法的流程示意图。如图2所示,应用于可穿戴设备,所述可穿戴设备佩戴于用户头部,该语音处理方法包括如下步骤。Consistent with the above, please refer to FIG. 2 , which is a schematic flowchart of a speech processing method disclosed in an embodiment of the present application. As shown in FIG. 2, applied to a wearable device, the wearable device is worn on the user's head, and the voice processing method includes the following steps.

201、可穿戴设备采集所述用户头部的运动参数,所述可穿戴设备包括主耳机和从耳机。201. A wearable device collects motion parameters of the user's head, where the wearable device includes a master headset and a slave headset.

202、所述可穿戴设备在所述运动参数满足预设条件时,生成录音指令。202. The wearable device generates a recording instruction when the motion parameter meets a preset condition.

203、所述可穿戴设备响应所述录音指令,控制所述主耳机和所述从耳机执行录音操作。203. In response to the recording instruction, the wearable device controls the master headset and the slave headset to perform a recording operation.

其中,上述步骤201-步骤203的具体描述可以参照上述图1D所描述的语音处理方法,在此不再赘述。The specific description of the above steps 201 to 203 may refer to the speech processing method described in the above-mentioned FIG. 1D , which will not be repeated here.

204、所述可穿戴设备在接听来电时,控制所述主耳机接听来电,所述从耳机继续执行录音操作。204. When the wearable device answers an incoming call, it controls the primary earphone to answer the incoming call, and the secondary earphone continues to perform a recording operation.

其中,在接听到来电时,可以控制主耳机接听来电,由从耳机继续执行录音操作,当然,在挂断来电之后,可以继续由主耳机、从耳机执行录音操作。如此,可以由俩耳机实现录音操作,也可以在来电时,由从耳机实现录音操作,提升了无线耳机录音的智能性和便捷性。Among them, when an incoming call is received, the main earphone can be controlled to answer the incoming call, and the secondary earphone can continue to perform the recording operation. Of course, after hanging up the call, the main earphone and the secondary earphone can continue to perform the recording operation. In this way, the recording operation can be realized by the two earphones, or the recording operation can be realized from the earphones when an incoming call is made, which improves the intelligence and convenience of the wireless earphone recording.

在一个可能示例中,所述可穿戴设备为无线耳机,所述无线耳机包括主耳机和从耳机,所述录音操作由所述主耳机和/或者所述从耳机实现。如此,可以实现通过主耳机进行录音,或者,通过从耳机进行录音,或者,通过主耳机和从耳机实现录音。In a possible example, the wearable device is a wireless headset, the wireless headset includes a master headset and a slave headset, and the recording operation is implemented by the master headset and/or the slave headset. In this way, recording can be performed through the master earphone, or recording through the slave earphone, or recording through the master earphone and the slave earphone.

在本申请实施例中所描述的语音处理方法,应用于可穿戴设备,可穿戴设备包括主耳机和从耳机,该可穿戴设备佩戴于用户头部,采集用户头部的运动参数,在运动参数满足预设条件时,生成录音指令,响应录音指令,控制主耳机和从耳机执行录音操作,在接听来电时,控制主耳机接听来电,从耳机继续执行录音操作,从而,依据用户头部运动,生成录音指令,实现录音功能,提升了可穿戴设备的智能性和便捷性,也提升了用户体验。The voice processing method described in the embodiments of the present application is applied to a wearable device. The wearable device includes a master earphone and a slave earphone. The wearable device is worn on the user's head and collects motion parameters of the user's head. When the preset conditions are met, generate a recording command, respond to the recording command, control the main earphone and the slave earphone to perform the recording operation, when answering a call, control the main earphone to answer the call, and continue to perform the recording operation from the earphone, thus, according to the user's head movement, Generate recording instructions and realize the recording function, which improves the intelligence and convenience of the wearable device, and also improves the user experience.

请参阅图3,图3是本申请实施例公开的另一种可穿戴设备的结构示意图,如图所示,该可穿戴设备包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行以下步骤的指令:Please refer to FIG. 3. FIG. 3 is a schematic structural diagram of another wearable device disclosed in an embodiment of the present application. As shown in the figure, the wearable device includes a processor, a memory, a communication interface, and one or more programs, wherein, The one or more programs described above are stored in the memory described above and are configured to be executed by the processor described above, the programs comprising instructions for performing the following steps:

采集所述用户头部的运动参数;collecting motion parameters of the user's head;

在所述运动参数满足预设条件时,生成录音指令;When the motion parameter satisfies the preset condition, generating a recording instruction;

响应所述录音指令,执行录音操作。In response to the recording instruction, a recording operation is performed.

在本申请实施例中所描述的可穿戴设备,该可穿戴设备佩戴于用户头部,采集用户头部的运动参数,在运动参数满足预设条件时,生成录音指令,响应录音指令,执行录音操作,从而,依据用户头部运动,生成录音指令,实现录音功能,提升了可穿戴设备的智能性和便捷性,也提升了用户体验。In the wearable device described in the embodiments of this application, the wearable device is worn on the user's head, collects motion parameters of the user's head, generates a recording instruction when the motion parameters meet the preset conditions, and executes the recording in response to the recording instruction. Therefore, according to the user's head movement, a recording instruction is generated to realize the recording function, which improves the intelligence and convenience of the wearable device, and also improves the user experience.

在一个可能示例中,所述运动参数包括第一头部器官的第一运动参数和第二头部器官的第二运动参数;In a possible example, the motion parameters include a first motion parameter of a first head organ and a second motion parameter of a second head organ;

在所述生成录音指令方面,上述程序包括用于执行以下步骤的指令:In terms of generating recording instructions, the above program includes instructions for performing the following steps:

按照预设的所述第一头部器官的运动参数与录音范围参数之间的第一映射关系,确定所述第一运动参数对应的目标录音范围参数;Determine the target recording range parameter corresponding to the first motion parameter according to the preset first mapping relationship between the motion parameter of the first head organ and the recording range parameter;

按照预设的所述第二头部器官的运动参数与录音对象之间的第二映射关系,确定所述第二运动参数对应的目标录音对象;According to the preset second mapping relationship between the motion parameters of the second head organ and the recording object, determine the target recording object corresponding to the second motion parameter;

依据所述目标录音范围参数和所述目标录音对象生成录音指令。A recording instruction is generated according to the target recording range parameter and the target recording object.

在一个可能示例中,所述运动参数包括:脸部肌肉运动的目标幅度和目标方向;上述程序还包括用于执行以下步骤的指令:In a possible example, the motion parameters include: target amplitude and target direction of facial muscle movement; the above program also includes instructions for performing the following steps:

在所述目标幅度处于预设幅度范围和所述目标方向处于预设方向范围时,确定所述运动参数满足所述预设条件。When the target amplitude is within a preset amplitude range and the target direction is within a preset direction range, it is determined that the motion parameter satisfies the preset condition.

在一个可能示例中,在所述执行录音操作方面,上述程序包括用于执行以下步骤的指令:In a possible example, in the aspect of performing the recording operation, the above program includes instructions for performing the following steps:

在接收到环境声音信号时,对所述环境声音信号进行滤波处理,得到参考声音信号;When receiving an ambient sound signal, filtering the ambient sound signal to obtain a reference sound signal;

对所述参考声音信号进行模数转换,得到目标声音信号;performing analog-to-digital conversion on the reference sound signal to obtain a target sound signal;

依据时间先后顺序将所述目标声音信号划分为多个声音信号片段;dividing the target sound signal into a plurality of sound signal segments according to time sequence;

分别确定所述多个声音信号片段中每一声音信号片段的能量值,得到多个能量值;respectively determining the energy value of each sound signal segment in the plurality of sound signal segments to obtain a plurality of energy values;

从所述多个能量值中选取大于预设能量阈值的目标能量值,并将所述目标能量值对应的声音信号片段按照时间先后顺序进行拼接,得到最终录音片段。A target energy value greater than a preset energy threshold is selected from the plurality of energy values, and the sound signal segments corresponding to the target energy value are spliced in chronological order to obtain a final recording segment.

在一个可能示例中,所述可穿戴设备为无线耳机,所述无线耳机包括主耳机和从耳机,所述录音操作由所述主耳机和/或者所述从耳机实现。In a possible example, the wearable device is a wireless headset, the wireless headset includes a master headset and a slave headset, and the recording operation is implemented by the master headset and/or the slave headset.

上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solutions of the embodiments of the present application from the perspective of the method-side execution process. It can be understood that, in order to realize the above-mentioned functions, the electronic device includes corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that the present application can be implemented in hardware or in the form of a combination of hardware and computer software, in combination with the units and algorithm steps of each example described in the embodiments provided herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

本申请实施例可以根据上述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, the electronic device may be divided into functional units according to the foregoing method examples. For example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and other division methods may be used in actual implementation.

请参阅图4A,图4A是本申请实施例公开的一种语音处理装置的结构示意图,应用于可穿戴设备,语音处理装置400包括采集单元401、生成单元402和执行单元403,其中:Please refer to FIG. 4A. FIG. 4A is a schematic structural diagram of a voice processing apparatus disclosed in an embodiment of the present application, which is applied to a wearable device. The voice processing apparatus 400 includes a collection unit 401, a generation unit 402, and an execution unit 403, wherein:

所述采集单元401,用于采集所述用户头部的运动参数;The collection unit 401 is configured to collect motion parameters of the user's head;

所述生成单元402,用于在所述运动参数满足预设条件时,生成录音指令;The generating unit 402 is configured to generate a recording instruction when the motion parameter satisfies a preset condition;

所述执行单元403,用于响应所述录音指令,执行录音操作。The executing unit 403 is configured to perform a recording operation in response to the recording instruction.

在一个可能示例中,所述运动参数包括第一头部器官的第一运动参数和第二头部器官的第二运动参数;In a possible example, the motion parameters include a first motion parameter of a first head organ and a second motion parameter of a second head organ;

所述生成录音指令,所述生成单元402具体用于:For generating the recording instruction, the generating unit 402 is specifically used for:

按照预设的所述第一头部器官的运动参数与录音范围参数之间的第一映射关系,确定所述第一运动参数对应的目标录音范围参数;According to the preset first mapping relationship between the motion parameter of the first head organ and the recording range parameter, the target recording range parameter corresponding to the first motion parameter is determined;

按照预设的所述第二头部器官的运动参数与录音对象之间的第二映射关系,确定所述第二运动参数对应的目标录音对象;According to the preset second mapping relationship between the motion parameters of the second head organ and the recording object, determine the target recording object corresponding to the second motion parameter;

依据所述目标录音范围参数和所述目标录音对象生成录音指令。A recording instruction is generated according to the target recording range parameter and the target recording object.

在一个可能示例中,所述运动参数包括:脸部肌肉运动的目标幅度和目标方向;如图4B,图4B为图4A所描述的语音处理装置的又一变型结构,其与图4A相比较,还可以包括:确定单元404,具体如下:In a possible example, the motion parameters include: target amplitude and target direction of facial muscle movement; FIG. 4B is another modified structure of the speech processing apparatus described in FIG. 4A , which is compared with FIG. 4A , may also include: a determining unit 404, specifically as follows:

所述确定单元404,用于在所述目标幅度处于预设幅度范围和所述目标方向处于预设方向范围时,确定所述运动参数满足所述预设条件。The determining unit 404 is configured to determine that the motion parameter satisfies the preset condition when the target amplitude is within a preset amplitude range and the target direction is within a preset direction range.

在一个可能示例中,在所述执行录音操作方面,所述执行单元403具体用于:In a possible example, in the aspect of executing the recording operation, the executing unit 403 is specifically configured to:

在接收到环境声音信号时,对所述环境声音信号进行滤波处理,得到参考声音信号;When receiving an ambient sound signal, filtering the ambient sound signal to obtain a reference sound signal;

对所述参考声音信号进行模数转换,得到目标声音信号;performing analog-to-digital conversion on the reference sound signal to obtain a target sound signal;

依据时间先后顺序将所述目标声音信号划分为多个声音信号片段;dividing the target sound signal into a plurality of sound signal segments according to time sequence;

分别确定所述多个声音信号片段中每一声音信号片段的能量值,得到多个能量值;respectively determining the energy value of each sound signal segment in the plurality of sound signal segments to obtain a plurality of energy values;

从所述多个能量值中选取大于预设能量阈值的目标能量值,并将所述目标能量值对应的声音信号片段按照时间先后顺序进行拼接,得到最终录音片段。A target energy value greater than a preset energy threshold is selected from the plurality of energy values, and the sound signal segments corresponding to the target energy value are spliced in chronological order to obtain a final recording segment.

在一个可能示例中,所述可穿戴设备为无线耳机,所述无线耳机包括主耳机和从耳机,所述录音操作由所述主耳机和/或者所述从耳机实现。In a possible example, the wearable device is a wireless headset, the wireless headset includes a master headset and a slave headset, and the recording operation is implemented by the master headset and/or the slave headset.

在本申请实施例中所描述的语音处理装置,应用于可穿戴设备,该可穿戴设备佩戴于用户头部,采集用户头部的运动参数,在运动参数满足预设条件时,生成录音指令,响应录音指令,执行录音操作,从而,依据用户头部运动,生成录音指令,实现录音功能,提升了可穿戴设备的智能性和便捷性,也提升了用户体验。The voice processing device described in the embodiments of the present application is applied to a wearable device, the wearable device is worn on the user's head, collects motion parameters of the user's head, and generates a recording instruction when the motion parameters meet preset conditions, In response to the recording instruction, the recording operation is performed, thereby, according to the user's head movement, the recording instruction is generated, and the recording function is realized, which improves the intelligence and convenience of the wearable device, and also improves the user experience.

本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括电子设备。Embodiments of the present application further provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute part or all of the steps of any method described in the above method embodiments , the above computer includes electronic equipment.

本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。Embodiments of the present application further provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute any one of the method embodiments described above. some or all of the steps of the method. The computer program product may be a software installation package, and the computer includes an electronic device.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a memory, Several instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above-mentioned methods in the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, referred to as: ROM), random access device (English: Random Access Memory, referred to as: RAM), magnetic disk or optical disk, etc.

以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实现方式及应用范围上均会有改变之处,综上上述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and the principles and implementations of the present application are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; at the same time, for Persons of ordinary skill in the art, based on the idea of the present application, may have changes in the specific implementation manner and application scope. In summary, the contents of this specification should not be construed as limitations on the present application.

Claims (11)

1.一种可穿戴设备,其特征在于,应用于可穿戴设备,所述可穿戴设备佩戴于用户头部,所述可穿戴设备包括存储和处理电路,以及与所述存储和处理电路连接的传感器和音频组件,其中,1. A wearable device, characterized in that, it is applied to a wearable device, the wearable device is worn on the head of a user, and the wearable device includes a storage and processing circuit, and a device connected to the storage and processing circuit. sensors and audio components, which, 所述传感器,用于采集所述用户头部的运动参数,其中,所述运动参数包括第一头部器官的第一运动参数和第二头部器官的第二运动参数;The sensor is used to collect motion parameters of the user's head, wherein the motion parameters include a first motion parameter of a first head organ and a second motion parameter of a second head organ; 所述存储和处理电路,用于在所述运动参数满足预设条件时,生成录音指令;The storage and processing circuit is used to generate a recording instruction when the motion parameter meets a preset condition; 所述音频组件,用于响应所述录音指令,执行录音操作;the audio component, configured to perform a recording operation in response to the recording instruction; 其中,在所述生成录音指令方面,所述存储和处理电路具体用于:Wherein, in the aspect of generating the recording instruction, the storage and processing circuit is specifically used for: 按照预设的所述第一头部器官的运动参数与录音范围参数之间的第一映射关系,确定所述第一运动参数对应的目标录音范围参数,其中,录音范围参数包括录音距离、录音方向、录音声音大小、录音频率、录音时长;According to the preset first mapping relationship between the motion parameter of the first head organ and the recording range parameter, the target recording range parameter corresponding to the first motion parameter is determined, wherein the recording range parameter includes the recording distance, the recording direction, recording volume, recording frequency, recording duration; 按照预设的所述第二头部器官的运动参数与录音对象之间的第二映射关系,确定所述第二运动参数对应的目标录音对象;According to the preset second mapping relationship between the motion parameters of the second head organ and the recording object, determine the target recording object corresponding to the second motion parameter; 依据所述目标录音范围参数和所述目标录音对象生成录音指令。A recording instruction is generated according to the target recording range parameter and the target recording object. 2.根据权利要求1所述的可穿戴设备,其特征在于,所述运动参数包括:脸部肌肉运动的目标幅度和目标方向;所述存储和处理电路还具体用于:2. The wearable device according to claim 1, wherein the motion parameters include: target amplitude and target direction of facial muscle movement; the storage and processing circuit is also specifically used for: 在所述目标幅度处于预设幅度范围和所述目标方向处于预设方向范围时,确定所述运动参数满足所述预设条件。When the target amplitude is within a preset amplitude range and the target direction is within a preset direction range, it is determined that the motion parameter satisfies the preset condition. 3.根据权利要求1所述的可穿戴设备,其特征在于,在所述执行录音操作方面,所述音频组件具体用于:3. The wearable device according to claim 1, wherein, in the aspect of performing the recording operation, the audio component is specifically used for: 在接收到环境声音信号时,对所述环境声音信号进行滤波处理,得到参考声音信号;When receiving an ambient sound signal, filtering the ambient sound signal to obtain a reference sound signal; 对所述参考声音信号进行模数转换,得到目标声音信号;performing analog-to-digital conversion on the reference sound signal to obtain a target sound signal; 依据时间先后顺序将所述目标声音信号划分为多个声音信号片段;dividing the target sound signal into a plurality of sound signal segments according to time sequence; 分别确定所述多个声音信号片段中每一声音信号片段的能量值,得到多个能量值;respectively determining the energy value of each sound signal segment in the plurality of sound signal segments to obtain a plurality of energy values; 从所述多个能量值中选取大于预设能量阈值的目标能量值,并将所述目标能量值对应的声音信号片段按照时间先后顺序进行拼接,得到最终录音片段。A target energy value greater than a preset energy threshold is selected from the plurality of energy values, and the sound signal segments corresponding to the target energy value are spliced in chronological order to obtain a final recording segment. 4.根据权利要求1-3任一项所述的可穿戴设备,其特征在于,所述可穿戴设备为无线耳机,所述无线耳机包括主耳机和从耳机,所述录音操作由所述主耳机和/或者所述从耳机实现。4. The wearable device according to any one of claims 1-3, wherein the wearable device is a wireless earphone, the wireless earphone comprises a master earphone and a slave earphone, and the recording operation is performed by the master earphone. The headset and/or the slave headset is implemented. 5.一种语音处理方法,其特征在于,应用于可穿戴设备,所述可穿戴设备佩戴于用户头部,所述方法包括:5. A voice processing method, characterized in that, applied to a wearable device, the wearable device being worn on a user's head, the method comprising: 采集所述用户头部的运动参数,其中,所述运动参数包括第一头部器官的第一运动参数和第二头部器官的第二运动参数;collecting motion parameters of the user's head, wherein the motion parameters include a first motion parameter of a first head organ and a second motion parameter of a second head organ; 在所述运动参数满足预设条件时,生成录音指令;When the motion parameter satisfies the preset condition, generating a recording instruction; 响应所述录音指令,执行录音操作;In response to the recording instruction, perform a recording operation; 其中,所述生成录音指令,包括:Wherein, the generating a recording instruction includes: 按照预设的所述第一头部器官的运动参数与录音范围参数之间的第一映射关系,确定所述第一运动参数对应的目标录音范围参数,其中,录音范围参数包括录音距离、录音方向、录音声音大小、录音频率、录音时长;According to the preset first mapping relationship between the motion parameter of the first head organ and the recording range parameter, the target recording range parameter corresponding to the first motion parameter is determined, wherein the recording range parameter includes the recording distance, the recording direction, recording volume, recording frequency, recording duration; 按照预设的所述第二头部器官的运动参数与录音对象之间的第二映射关系,确定所述第二运动参数对应的目标录音对象;According to the preset second mapping relationship between the motion parameters of the second head organ and the recording object, determine the target recording object corresponding to the second motion parameter; 依据所述目标录音范围参数和所述目标录音对象生成录音指令。A recording instruction is generated according to the target recording range parameter and the target recording object. 6.根据权利要求5所述的方法,其特征在于,所述运动参数包括:脸部肌肉运动的目标幅度和目标方向;所述方法还包括:6. The method according to claim 5, wherein the motion parameters include: target amplitude and target direction of facial muscle movement; the method further comprises: 在所述目标幅度处于预设幅度范围和所述目标方向处于预设方向范围时,确定所述运动参数满足所述预设条件。When the target amplitude is within a preset amplitude range and the target direction is within a preset direction range, it is determined that the motion parameter satisfies the preset condition. 7.根据权利要求5所述的方法,其特征在于,所述执行录音操作,包括:7. The method according to claim 5, wherein the performing a recording operation comprises: 在接收到环境声音信号时,对所述环境声音信号进行滤波处理,得到参考声音信号;When receiving an ambient sound signal, filtering the ambient sound signal to obtain a reference sound signal; 对所述参考声音信号进行模数转换,得到目标声音信号;performing analog-to-digital conversion on the reference sound signal to obtain a target sound signal; 依据时间先后顺序将所述目标声音信号划分为多个声音信号片段;dividing the target sound signal into a plurality of sound signal segments according to time sequence; 分别确定所述多个声音信号片段中每一声音信号片段的能量值,得到多个能量值;respectively determining the energy value of each sound signal segment in the plurality of sound signal segments to obtain a plurality of energy values; 从所述多个能量值中选取大于预设能量阈值的目标能量值,并将所述目标能量值对应的声音信号片段按照时间先后顺序进行拼接,得到最终录音片段。A target energy value greater than a preset energy threshold is selected from the plurality of energy values, and the sound signal segments corresponding to the target energy value are spliced in chronological order to obtain a final recording segment. 8.根据权利要求5-7任一项所述的方法,其特征在于,所述可穿戴设备为无线耳机,所述无线耳机包括主耳机和从耳机,所述录音操作由所述主耳机和/或者所述从耳机实现。8. The method according to any one of claims 5-7, wherein the wearable device is a wireless headset, the wireless headset comprises a master headset and a slave headset, and the recording operation is performed by the master headset and the slave headset. / or the implementation from the headset. 9.一种语音处理装置,其特征在于,应用于可穿戴设备,所述可穿戴设备佩戴于用户头部,所述语音处理装置包括采集单元、生成单元和执行单元,其中:9. A voice processing device, characterized in that it is applied to a wearable device, wherein the wearable device is worn on the head of a user, and the voice processing device comprises a collection unit, a generation unit and an execution unit, wherein: 所述采集单元,用于采集所述用户头部的运动参数,其中,所述运动参数包括第一头部器官的第一运动参数和第二头部器官的第二运动参数;the collection unit, configured to collect motion parameters of the user's head, wherein the motion parameters include a first motion parameter of a first head organ and a second motion parameter of a second head organ; 所述生成单元,用于在所述运动参数满足预设条件时,生成录音指令;The generating unit is configured to generate a recording instruction when the motion parameter satisfies a preset condition; 所述执行单元,用于响应所述录音指令,执行录音操作;The execution unit is configured to perform a recording operation in response to the recording instruction; 其中,所述生成单元具体用于:Wherein, the generating unit is specifically used for: 按照预设的所述第一头部器官的运动参数与录音范围参数之间的第一映射关系,确定所述第一运动参数对应的目标录音范围参数,其中,录音范围参数包括录音距离、录音方向、录音声音大小、录音频率、录音时长;According to the preset first mapping relationship between the motion parameter of the first head organ and the recording range parameter, the target recording range parameter corresponding to the first motion parameter is determined, wherein the recording range parameter includes the recording distance, the recording direction, recording volume, recording frequency, recording duration; 按照预设的所述第二头部器官的运动参数与录音对象之间的第二映射关系,确定所述第二运动参数对应的目标录音对象;According to the preset second mapping relationship between the motion parameters of the second head organ and the recording object, determine the target recording object corresponding to the second motion parameter; 依据所述目标录音范围参数和所述目标录音对象生成录音指令。A recording instruction is generated according to the target recording range parameter and the target recording object. 10.一种可穿戴设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求5-8任一项所述的方法中的步骤的指令。10. A wearable device, comprising a processor, a memory, a communication interface, and one or more programs, the one or more programs being stored in the memory and configured to be processed by the processor executable, the program comprising instructions for performing the steps in the method of any of claims 5-8. 11.一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求5-8任一项所述的方法。11. A computer-readable storage medium, characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 5-8.
CN201810368538.6A 2018-04-23 2018-04-23 Voice processing method and related product Expired - Fee Related CN108683790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810368538.6A CN108683790B (en) 2018-04-23 2018-04-23 Voice processing method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810368538.6A CN108683790B (en) 2018-04-23 2018-04-23 Voice processing method and related product

Publications (2)

Publication Number Publication Date
CN108683790A CN108683790A (en) 2018-10-19
CN108683790B true CN108683790B (en) 2020-09-22

Family

ID=63801248

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810368538.6A Expired - Fee Related CN108683790B (en) 2018-04-23 2018-04-23 Voice processing method and related product

Country Status (1)

Country Link
CN (1) CN108683790B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110286748A (en) * 2019-05-23 2019-09-27 深圳前海达闼云端智能科技有限公司 The function of headset equipment determines method, apparatus, system, medium and equipment
CN111488212A (en) * 2020-04-16 2020-08-04 歌尔科技有限公司 Recording method and device of wearable device and wearable device
CN112134989A (en) * 2020-10-23 2020-12-25 珠海格力电器股份有限公司 Recording method and device of terminal equipment
CN113709654B (en) * 2021-08-27 2024-08-06 维沃移动通信(杭州)有限公司 Recording method, recording device, recording apparatus, and readable storage medium
CN116168730B (en) * 2021-11-25 2025-03-25 上海博泰悦臻网络技术服务有限公司 A recording method and bluetooth interconnection system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102543063A (en) * 2011-12-07 2012-07-04 华南理工大学 Method for estimating speech speed of multiple speakers based on segmentation and clustering of speakers
CN104238732A (en) * 2013-06-24 2014-12-24 由田新技股份有限公司 Device, method and computer readable recording medium for detecting facial movements to generate signals
CN105161100A (en) * 2015-08-24 2015-12-16 联想(北京)有限公司 Control method and electronic device
CN106774914A (en) * 2016-12-26 2017-05-31 苏州欧菲光科技有限公司 The control method and Wearable of Wearable
CN107172526A (en) * 2017-07-19 2017-09-15 联想(北京)有限公司 A kind of intelligent earphone and control method
CN107678541A (en) * 2017-09-20 2018-02-09 深圳市科迈爱康科技有限公司 Intelligent glasses and its information gathering and transmission method, computer-readable recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102543063A (en) * 2011-12-07 2012-07-04 华南理工大学 Method for estimating speech speed of multiple speakers based on segmentation and clustering of speakers
CN104238732A (en) * 2013-06-24 2014-12-24 由田新技股份有限公司 Device, method and computer readable recording medium for detecting facial movements to generate signals
CN105161100A (en) * 2015-08-24 2015-12-16 联想(北京)有限公司 Control method and electronic device
CN106774914A (en) * 2016-12-26 2017-05-31 苏州欧菲光科技有限公司 The control method and Wearable of Wearable
CN107172526A (en) * 2017-07-19 2017-09-15 联想(北京)有限公司 A kind of intelligent earphone and control method
CN107678541A (en) * 2017-09-20 2018-02-09 深圳市科迈爱康科技有限公司 Intelligent glasses and its information gathering and transmission method, computer-readable recording medium

Also Published As

Publication number Publication date
CN108683790A (en) 2018-10-19

Similar Documents

Publication Publication Date Title
CN108683790B (en) Voice processing method and related product
CN108810693B (en) A wearable device and device control device and method thereof
CN108710615B (en) Translation method and related equipment
CN108683968A (en) Display control method and related products
CN108668009B (en) Input operation control method, device, terminal, earphone and readable storage medium
EP4459364A2 (en) Adapter for eyewear
CN108777827B (en) Wireless earphone, volume adjustment method and related products
CN109104684B (en) Microphone plugging detection method and related products
CN109429132A (en) Earphone system
CN108874130B (en) Playback control method and related products
CN108769850A (en) Device control method and related products
CN108959273B (en) Translation method, electronic device and storage medium
CN108391207A (en) Data processing method, device, terminal, earphone and readable storage medium
CN109005480A (en) Information processing method and related product
CN109067965B (en) Translation method, translation device, wearable device and storage medium
EP4206900A1 (en) Electronic device controlled on basis of sound data, and method for controlling electronic device on basis of sound data
CN109062535A (en) Sound production control method and device, electronic device and computer readable medium
CN108737923A (en) Volume adjusting method and related product
WO2023001195A1 (en) Smart glasses and control method therefor, and system
WO2020019857A1 (en) Microphone hole blocking detection method and related product
KR20220106643A (en) Electronic device controlled based on sound data and method of controlling electronic device based on sound data
CN108670275A (en) Signal processing method and related product
CN108668018B (en) Mobile terminal, volume control method and related products
US11579704B2 (en) Systems and methods for adaptive input thresholding
CN109039355A (en) Phonetic prompt method and Related product

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200922