CN111880988B - Voiceprint wake-up log collection method and device - Google Patents
Voiceprint wake-up log collection method and device Download PDFInfo
- Publication number
- CN111880988B CN111880988B CN202010659084.5A CN202010659084A CN111880988B CN 111880988 B CN111880988 B CN 111880988B CN 202010659084 A CN202010659084 A CN 202010659084A CN 111880988 B CN111880988 B CN 111880988B
- Authority
- CN
- China
- Prior art keywords
- wake
- voiceprint
- log
- voiceprint wake
- mark
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/22—Procedures used during a speech recognition process, e.g. man-machine dialogue
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L17/00—Speaker identification or verification techniques
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L17/00—Speaker identification or verification techniques
- G10L17/06—Decision making techniques; Pattern matching strategies
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/22—Procedures used during a speech recognition process, e.g. man-machine dialogue
- G10L2015/223—Execution procedure of a spoken command
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Business, Economics & Management (AREA)
- Game Theory and Decision Science (AREA)
- Computational Linguistics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
本发明实施例公开了一种声纹唤醒日志收集方法及装置,涉及日志收集技术领域,解决现有技术中存在的收集的声纹唤醒日志缺乏标记的问题。该方法包括:接收声纹唤醒输入;对声纹唤醒输入进行声纹唤醒验证;在声纹唤醒验证未通过的情况下,获取第一接收结果;第一接收结果为在第一预设时长内接收到了唤醒输入,或者在第一预设时长内未接收到唤醒输入;在声纹唤醒验证通过的情况下,获取第二接收结果;第二接收结果为在第二预设时长内接收到了有效控制指令,或者在第二预设时长内未接收到有效控制指令;生成声纹唤醒日志,并根据第一接收结果或第二接收结果确定声纹唤醒日志的标记。本发明实施例用于声纹唤醒日志的收集。
The embodiment of the invention discloses a method and a device for collecting voiceprint wake-up logs, which relate to the technical field of log collection and solve the problem of lack of marks in the collected voiceprint wake-up logs in the prior art. The method includes: receiving a voiceprint wake-up input; performing voiceprint wake-up verification on the voiceprint wake-up input; if the voiceprint wake-up verification fails, acquiring a first reception result; the first reception result is within a first preset duration The wake-up input is received, or the wake-up input is not received within the first preset duration; if the voiceprint wake-up verification is passed, the second reception result is obtained; the second reception result is received within the second preset duration. control instructions, or no valid control instructions are received within a second preset time period; a voiceprint wake-up log is generated, and a mark of the voiceprint wake-up log is determined according to the first reception result or the second reception result. The embodiment of the present invention is used for the collection of voiceprint wake-up logs.
Description
技术领域technical field
本发明实施例涉及日志收集技术领域,尤其涉及一种声纹唤醒日志收集方法及装置。The embodiments of the present invention relate to the technical field of log collection, and in particular, to a method and device for collecting voiceprint wake-up logs.
背景技术Background technique
声纹特征是人体重要生物特征之一,具有较强的个体特殊性,常用于声纹识别、声纹认证等领域作为身份认证的一种特征。随着语音处理技术的快速发展,声纹唤醒技术已经广泛应用于支持语音唤醒功能的终端产品中。在声纹唤醒设备的研发过程中,为了提升用户体验,研发工程师需要大量的声纹唤醒日志用于分析用户误唤醒和正常唤醒数据,以根据误唤醒和正常唤醒数据调整算法阈值或者确定算法模型的优化方向。The voiceprint feature is one of the important biological characteristics of the human body and has strong individual specificity. It is often used in voiceprint recognition, voiceprint authentication and other fields as a feature of identity authentication. With the rapid development of voice processing technology, voiceprint wake-up technology has been widely used in terminal products that support the voice wake-up function. In the research and development process of voiceprint wake-up devices, in order to improve user experience, R&D engineers need a large number of voiceprint wake-up logs to analyze user false wake-up and normal wake-up data, so as to adjust the algorithm threshold or determine the algorithm model based on false wake-up and normal wake-up data direction of optimization.
目前虽然已可以基于声纹唤醒设备的上传的工作日志收集到声纹唤醒日志,然而收集的声纹唤醒日志缺乏标记,无法直接用于算法模型的优化或者算法阈值的调整,需要先对收集的声纹唤醒日志进行标记,然后才可以用于算法模型的优化或者算法阈值的调整。现有技术中对声纹唤醒日志进行标记的方式主要包括两种,一种为通过人工对声纹唤醒日志进行标记,另一种为通过标记算法对声纹唤醒日志进行标记。通过人工对声纹唤醒日志进行标记,需要耗费大量的人力且效率十分低下,无法适应海量声纹唤醒日志收集的需求。通过标记算法对声纹唤醒日志进行标记虽然可以提升对声纹唤醒日志的标记效率,但是由于缺乏用户确认,无法保证声纹唤醒日志的标记的精确性。At present, although voiceprint wake-up logs can be collected based on the uploaded work logs of voiceprint wake-up devices, the collected voiceprint wake-up logs lack marks and cannot be directly used for algorithm model optimization or algorithm threshold adjustment. Voiceprint wake-up logs are marked before they can be used to optimize the algorithm model or adjust the algorithm threshold. In the prior art, there are mainly two ways to mark the voiceprint wake-up log, one is to manually mark the voiceprint wake-up log, and the other is to mark the voiceprint wake-up log through a marking algorithm. Manually marking voiceprint wake-up logs requires a lot of manpower and is very inefficient, and cannot meet the needs of massive voiceprint wake-up log collection. Although marking the voiceprint wake-up log by the marking algorithm can improve the marking efficiency of the voiceprint wake-up log, due to the lack of user confirmation, the accuracy of marking the voiceprint wake-up log cannot be guaranteed.
发明内容Contents of the invention
本发明实施例提供一种唤醒日志收集方法及装置,用以解决现有技术中存在的收集的声纹唤醒日志缺乏标记,无法直接用于算法模型的优化或者算法阈值的调整的问题。Embodiments of the present invention provide a wake-up log collection method and device to solve the problem in the prior art that the collected voiceprint wake-up logs lack marks and cannot be directly used for algorithm model optimization or algorithm threshold adjustment.
为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above-mentioned technical problems, the embodiment of the present invention is implemented as follows:
第一方面,本发明实施例提供一种声纹唤醒日志收集方法,包括:In the first aspect, the embodiment of the present invention provides a voiceprint wake-up log collection method, including:
接收声纹唤醒输入;Receive voiceprint wake-up input;
对所述声纹唤醒输入进行声纹唤醒验证;Perform voiceprint wake-up verification on the voiceprint wake-up input;
在所述声纹唤醒验证未通过的情况下,获取第一接收结果;所述第一接收结果为在第一预设时长内接收到了唤醒输入,或者在所述第一预设时长内未接收到唤醒输入;In the case that the voiceprint wake-up verification fails, a first receiving result is obtained; the first receiving result is that a wake-up input is received within a first preset time length, or is not received within the first preset time length to wake-up input;
在所述声纹唤醒验证通过的情况下,获取第二接收结果;所述第二接收结果为在第二预设时长内接收到了有效控制指令,或者在所述第二预设时长内未接收到有效控制指令;In the case that the voiceprint wake-up verification is passed, a second receiving result is obtained; the second receiving result is that a valid control instruction is received within a second preset time period, or is not received within the second preset time period To effective control instructions;
生成声纹唤醒日志,并根据所述第一接收结果或所述第二接收结果确定所述声纹唤醒日志的标记。A voiceprint wakeup log is generated, and a mark of the voiceprint wakeup log is determined according to the first receiving result or the second receiving result.
第二方面,提供一种声纹唤醒日志收集装置,包括:In the second aspect, a voiceprint wake-up log collection device is provided, including:
接收单元,用于接收声纹唤醒输入;The receiving unit is used to receive voiceprint wake-up input;
验证单元,对所述声纹唤醒输入进行声纹唤醒验证;The verification unit is configured to perform voiceprint wake-up verification on the voiceprint wake-up input;
第一获取单元,用于在所述声纹唤醒验证未通过的情况下,获取第一接收结果;所述第一接收结果为在第一预设时长内接收到了唤醒输入,或者在所述第一预设时长内未接收到唤醒输入;The first acquiring unit is configured to acquire a first receiving result when the voiceprint wake-up verification fails; the first receiving result is that a wake-up input is received within a first preset time period, or the first receiving result is A wake-up input is not received within a preset period of time;
第二获取单元,用于在所述声纹唤醒验证通过的情况下,获取第二接收结果;所述第二接收结果为在第二预设时长内接收到了有效控制指令,或者在所述第二预设时长内未接收到有效控制指令;The second acquiring unit is configured to acquire a second receiving result when the voiceprint wake-up verification is passed; the second receiving result is that a valid control instruction is received within a second preset time period, or within the second preset time period 2. No valid control command is received within the preset time period;
生成单元,用于生成声纹唤醒日志;A generating unit, configured to generate a voiceprint wake-up log;
标记单元,用于根据所述第一接收结果或所述第二接收结果确定所述声纹唤醒日志的标记。A marking unit, configured to determine a mark of the voiceprint wake-up log according to the first receiving result or the second receiving result.
第三方面,提供一种终端设备,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第一方面所述的声纹唤醒日志收集方法的步骤。In a third aspect, a terminal device is provided, including: a processor, a memory, and a computer program stored on the memory and operable on the processor, when the computer program is executed by the processor, the In one aspect, the steps of the voiceprint wake-up log collection method.
第四方面,提供一种计算机可读存储介质,包括:所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的声纹唤醒日志收集方法的步骤。In a fourth aspect, a computer-readable storage medium is provided, including: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the voiceprint wake-up log collection method as described in the first aspect is implemented A step of.
本发明实施例提供的声纹唤醒日志收集方法在接收声纹唤醒输入后,先对所述声纹唤醒输入进行声纹唤醒验证,并在所述声纹唤醒验证未通过的情况下,获取为在第一预设时长内接收到了唤醒输入或者为在所述第一预设时长内未接收到唤醒输入的第一接收结果,在所述声纹唤醒验证通过的情况下,获取为在第二预设时长内接收到了有效控制指令或者为在所述第二预设时长内未接收到有效控制指令的第二接收结果,最后生成声纹唤醒日志,并根据所述第一接收结果或所述第二接收结果确定所述声纹唤醒日志的标记。由于本发明实施例可以根据声纹唤醒验证的通过情况获取第一接收结果或第二接收结果,并根据第一接收结果或第二接收结果确定生成的声纹唤醒日志的标记,因此本发明实施例可以自动对声纹唤醒日志进行标记,使收集的声纹唤醒日志具有标识,进而使收集的声纹唤醒日志可以直接用于算法模型的优化或者算法阈值的调整。In the voiceprint wake-up log collection method provided by the embodiment of the present invention, after receiving the voiceprint wake-up input, the voiceprint wake-up verification is first performed on the voiceprint wake-up input, and if the voiceprint wake-up verification fails, the acquisition is A wake-up input is received within the first preset time period or the first reception result is that no wake-up input is received within the first preset time length. If the voiceprint wake-up verification is passed, it is obtained as A valid control command is received within a preset time period or a second reception result of not receiving a valid control command within the second preset time period, and finally a voiceprint wake-up log is generated, and according to the first reception result or the The second receiving result determines the mark of the voiceprint wake-up log. Since the embodiment of the present invention can obtain the first receiving result or the second receiving result according to the passing of the voiceprint wake-up verification, and determine the mark of the generated voiceprint wake-up log according to the first receiving result or the second receiving result, the implementation of the present invention For example, the voiceprint wake-up log can be automatically marked, so that the collected voiceprint wake-up log has an identification, and then the collected voiceprint wake-up log can be directly used for the optimization of the algorithm model or the adjustment of the algorithm threshold.
附图说明Description of drawings
图1为本发明实施例提供的声纹唤醒日志收集方法的步骤流程图一;FIG. 1 is a flow chart 1 of steps of a voiceprint wake-up log collection method provided by an embodiment of the present invention;
图2为本发明实施例提供的支持声纹唤醒的终端设备结构示意图;FIG. 2 is a schematic structural diagram of a terminal device supporting voiceprint wake-up provided by an embodiment of the present invention;
图3为本发明实施例提供的声纹唤醒日志收集方法的步骤流程图二;FIG. 3 is a flow chart 2 of the steps of the voiceprint wake-up log collection method provided by the embodiment of the present invention;
图4为本发明实施例提供的声纹唤醒日志收集方法的步骤流程图三;FIG. 4 is a flow chart three of steps of the voiceprint wake-up log collection method provided by the embodiment of the present invention;
图5为本发明实施例提供的声纹唤醒日志收集装置结构示意图一;Fig. 5 is a schematic structural diagram of a voiceprint wake-up log collection device provided by an embodiment of the present invention;
图6为本发明实施例提供的声纹唤醒日志收集装置结构示意图二;FIG. 6 is a second structural schematic diagram of a voiceprint wake-up log collection device provided by an embodiment of the present invention;
图7为本发明实施例提供的终端设备的硬件结构示意图。FIG. 7 is a schematic diagram of a hardware structure of a terminal device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一设备和第二设备等是用于区别不同的设备,而不是用于描述设备的特定顺序。The terms "first" and "second" in the specification and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of objects. For example, first device, second device, etc. are used to distinguish different devices, not to describe a specific order of devices.
需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used for example, illustration or illustration. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present invention shall not be construed as being more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
本发明实施例中的终端设备可以是智能外设、移动终端设备,也可以为非移动终端设备。移动终端设备可以为终端设备、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动终端设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本发明实施例不作具体限定。The terminal device in the embodiment of the present invention may be an intelligent peripheral device, a mobile terminal device, or a non-mobile terminal device. The mobile terminal device can be a terminal device, a tablet computer, a notebook computer, a handheld computer, a vehicle terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA). ), etc.; the non-mobile terminal device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which are not specifically limited in this embodiment of the present invention.
本发明实施例提供的声纹唤醒日志收集方法,可以由声纹唤醒日志收集装置作为执行主体,也可以终端设备作为执行主体来实现。The voiceprint wake-up log collection method provided by the embodiment of the present invention can be implemented by a voiceprint wake-up log collection device as an execution subject, or by a terminal device as an execution subject.
需要说明的是,本发明实施例中的声纹唤醒日志收集装置可以是一个终端设备,也可以是内置在终端设备中的功能模块或者功能实体。It should be noted that the apparatus for collecting voiceprint wake-up logs in the embodiment of the present invention may be a terminal device, or may be a functional module or a functional entity built in the terminal device.
本发明实施例提供一种声纹唤醒日志收集方法,如图1所示,该声纹唤醒日志收集方法包括如下步骤S101至S105:An embodiment of the present invention provides a voiceprint wake-up log collection method. As shown in FIG. 1, the voiceprint wake-up log collection method includes the following steps S101 to S105:
S101、接收声纹唤醒输入。S101. Receive voiceprint wake-up input.
本发明实施例中的声纹唤醒输入为语音输入,该语音输入可以为终端设备所属用户输入的用于唤醒终端设备的语音输入,也可以为终端设备所属用户输入误输入的语音输入,还可以为其它用户或物体误输入的语音输入。The voiceprint wake-up input in the embodiment of the present invention is a voice input, and the voice input may be a voice input input by a user of the terminal device to wake up the terminal device, or a voice input entered by mistake by a user of the terminal device, or Speech input by mistake for another user or object.
S102、对声纹唤醒输入进行声纹唤醒验证。S102. Perform voiceprint wakeup verification on the voiceprint wakeup input.
示例性的,参照图2所示,终端设备可以包括:一级验证模块21、二级验证模块22以及声纹验证模块23。其中,一级验证模块21运行在低功耗数字处理器(Digital SignalProcessor,DSP)上面,二级验证模块22与声纹验证模块23运行在终端设备的中央处理器(Ccentral Processing Unit,CPU)上面。在待机状态下,一级验证模块21始终处于启动状态,监听和接收声音信息,并确定接收到的信息中是否具有声纹唤醒输入。二级验证模块22和声纹验证模块23,只有在一级验证模块21确定具有声纹唤醒输入后,才会启动并进一步对声纹唤醒输入进行声纹唤醒验证,当二级验证模块22确定声纹唤醒输入包含唤醒词,且声纹验证模块23确定声纹唤醒输入的声纹与预置声纹匹配,则确定声纹唤醒验证通过,进而唤醒终端设备;而若二级验证模块22确定声纹唤醒输入不包含唤醒词,或者虽然二级验证模块22确定声纹唤醒输入包含唤醒词,但声纹验证模块23确定声纹唤醒输入的声纹与预置声纹不匹配,则确定声纹唤醒验证未通过,不唤醒终端设备。Exemplarily, as shown in FIG. 2 , the terminal device may include: a
在上述步骤S102中,若声纹唤醒验证未通过,则执行如下步骤S103;若声纹唤醒验证通过,则执行如下步骤S104。In the above step S102, if the voiceprint wake-up verification fails, the following step S103 is performed; if the voiceprint wake-up verification passes, the following step S104 is performed.
S103、获取第一接收结果。S103. Acquire a first receiving result.
其中,第一接收结果为在第一预设时长内接收到了唤醒输入,或者在第一预设时长内未接收到唤醒输入。Wherein, the first receiving result is that the wake-up input is received within the first preset time period, or the wake-up input is not received within the first preset time period.
具体的,可以在声纹唤醒验证未通过时,立即启动一个计时器,并设置计时器的时长为第一预设时长。在计时器计时结束前,持续监测是否再次接收到了唤醒输入;若在计时器计时结束前再次接收到了唤醒输入,则确定第一结果为在第一预设时长内接收到了唤醒输入,若在计时器计时结束后仍未接收到唤醒输入,则确定第一结果为在第一预设时长内未接收到唤醒输入。Specifically, when the voiceprint wake-up verification fails, a timer can be started immediately, and the duration of the timer can be set to the first preset duration. Before the timer timing ends, continuously monitor whether the wake-up input is received again; if the wake-up input is received again before the timer timing ends, the first result is determined to be that the wake-up input is received within the first preset duration. If the wake-up input is not received after the countdown of the timer expires, the first result of determination is that the wake-up input is not received within the first preset time period.
示例性的,第一预设时长可以为15秒。Exemplarily, the first preset duration may be 15 seconds.
需要说明的是,在第一预设时长内接收的唤醒输入可以为再次输入的声纹唤醒输入,也可以为其它方式的唤醒输入,例如:用户通过终端设备上的按键输入的唤醒输入,或者用户通过特定动作输入的唤醒输入。It should be noted that the wake-up input received within the first preset time period may be a voiceprint wake-up input input again, or other wake-up input, for example: a wake-up input input by the user through a button on the terminal device, or A wakeup input entered by the user through a specific action.
S104、获取第二接收结果。S104. Acquire a second receiving result.
其中,第二接收结果为在第二预设时长内接收到了有效控制指令,或者在第二预设时长内未接收到有效控制指令。Wherein, the second receiving result is that a valid control command is received within a second preset time period, or no valid control command is received within a second preset time period.
具体的,可以在声纹唤醒验证通过时,立即启动一个计时器,并设置计时器的时长为第二预设时长。在计时器计时结束前,持续监测是否接收到了有效控制指令;若在计时器计时结束前接收到了有效控制指令,则确定第二结果为在第二预设时长内接收到了有效控制指令,若在计时器计时结束后仍未接收到有效控制指令,则确定第二结果为在第二预设时长内未接收到有效控制指令。Specifically, when the voiceprint wake-up verification is passed, a timer can be started immediately, and the duration of the timer can be set to the second preset duration. Before the timer ends, continuously monitor whether an effective control instruction is received; if an effective control instruction is received before the timer ends, the second result is determined to be that an effective control instruction has been received within the second preset duration, if in If the effective control instruction is not received after the timer expires, the second result is determined to be that no effective control instruction is received within the second preset time period.
示例性的,第二预设时长可以为5秒。Exemplarily, the second preset duration may be 5 seconds.
本发明实施例中的有效控制指令是指终端设备可以理解的控制指令,包括终端设备可以理解但无法执行的控制指令。例如:终端设备为智能音箱,控制指令为“我要看电视机”,智能音箱能够理解控制指令的意图为控制电视机打开,但没有智能音箱能够控制的电视机,这种情况下虽然终端设备无法执行该控制指令,但并影响控制指令的有效性。The valid control instructions in the embodiments of the present invention refer to control instructions that the terminal device can understand, including control instructions that the terminal device can understand but cannot execute. For example: the terminal device is a smart speaker, and the control command is "I want to watch TV", the smart speaker can understand the intention of the control command to turn on the TV, but there is no TV that the smart speaker can control. The control command cannot be executed, but it does not affect the validity of the control command.
S105、生成声纹唤醒日志,并根据第一接收结果或第二接收结果确定声纹唤醒日志的标记。S105. Generate a voiceprint wakeup log, and determine a mark of the voiceprint wakeup log according to the first receiving result or the second receiving result.
需要说明的是,本发明实施例提供的声纹唤醒日志收集方法还可以基于用户需求对终端设备是否进行声纹唤醒日志收集进行配置,若配置终端设备进行声纹唤醒日志收集,则执行上述实施例提供的声纹唤醒日志收集方法,若配置终端设备不进行声纹唤醒日志收集,则终端设备响应声纹唤醒输入以及执行控制指令,但不进行声纹唤醒日志收集。It should be noted that the voiceprint wake-up log collection method provided by the embodiment of the present invention can also configure whether the terminal device collects voiceprint wake-up logs based on user requirements. If the terminal device is configured to collect voiceprint wake-up logs, the above implementation In the voiceprint wake-up log collection method provided in the example, if the terminal device is configured not to collect voiceprint wake-up logs, the terminal device responds to the voiceprint wake-up input and executes control commands, but does not collect voiceprint wake-up logs.
在本发明实施例提供的声纹唤醒日志收集方法在接收声纹唤醒输入后,先对声纹唤醒输入进行声纹唤醒验证,并在声纹唤醒验证未通过的情况下,获取为在第一预设时长内接收到了唤醒输入或者为在第一预设时长内未接收到唤醒输入的第一接收结果,在声纹唤醒验证通过的情况下,获取为在第二预设时长内接收到了有效控制指令或者为在第二预设时长内未接收到有效控制指令的第二接收结果,最后生成声纹唤醒日志,并根据第一接收结果或第二接收结果确定声纹唤醒日志的标记。由于本发明实施例可以根据声纹唤醒验证的通过情况获取第一接收结果或第二接收结果,并根据第一接收结果或第二接收结果确定生成的声纹唤醒日志的标记,因此本发明实施例可以自动对声纹唤醒日志进行标记,使收集的声纹唤醒日志具有标识,进而使收集的声纹唤醒日志可以直接用于算法模型的优化或者算法阈值的调整。In the voiceprint wake-up log collection method provided by the embodiment of the present invention, after the voiceprint wake-up input is received, the voiceprint wake-up verification is first performed on the voiceprint wake-up input, and if the voiceprint wake-up verification fails, it is obtained as the first Received the wake-up input within the preset time period or received the first reception result of not receiving the wake-up input within the first preset time period. The control instruction or the second reception result that no effective control instruction is received within the second preset time period, and finally generate a voiceprint wake-up log, and determine the mark of the voiceprint wake-up log according to the first reception result or the second reception result. Since the embodiment of the present invention can obtain the first receiving result or the second receiving result according to the passing of the voiceprint wake-up verification, and determine the mark of the generated voiceprint wake-up log according to the first receiving result or the second receiving result, the implementation of the present invention For example, the voiceprint wake-up log can be automatically marked, so that the collected voiceprint wake-up log has an identification, and then the collected voiceprint wake-up log can be directly used for the optimization of the algorithm model or the adjustment of the algorithm threshold.
以下对上述步骤S105(生成声纹唤醒日志,并根据第一接收结果或第二接收结果确定声纹唤醒日志的标记)的具体实现方式以及原理进行详细说明。参照图3所示,生成声纹唤醒日志,并根据第一接收结果或第二接收结果确定声纹唤醒日志的标记,包括:The specific implementation and principle of the above step S105 (generating a voiceprint wakeup log, and determining the flag of the voiceprint wakeup log according to the first receiving result or the second receiving result) will be described in detail below. Referring to Fig. 3, generate a voiceprint wake-up log, and determine the mark of the voiceprint wake-up log according to the first receiving result or the second receiving result, including:
方式一、method one,
在第一接收结果为在第一预设时长内接收到了唤醒输入的情况下,执行如下步骤S301。When the first receiving result is that the wake-up input is received within the first preset time period, the following step S301 is performed.
S301、生成声纹唤醒日志,并确定声纹唤醒日志的标记为第一标记。S301. Generate a voiceprint wake-up log, and determine the mark of the voiceprint wake-up log as the first mark.
其中,第一标记用于标记想要唤醒终端设备但未成功唤醒终端设备的声纹唤醒日志。Wherein, the first mark is used to mark the voiceprint wake-up log that wants to wake up the terminal device but fails to wake up the terminal device.
一般情况下,当用户想要唤醒终端设备时,若向终端设备输入了声纹唤醒输入但未能成功将终端设备唤醒,则用户很可能会在短时间内采用相同方式或其他方式再对终端设备进行唤醒。在上述实施例中,终端设备先接收到一次未通过声纹唤醒验证的声纹唤醒输入,然后又在第一预设时长(很短时间)内接收到了另一次唤醒输入,因此第一次接收到的声纹唤醒输入很可能是用户想要唤醒终端设备但未能通过声纹唤醒验证的声纹唤醒输入,因此确定声纹唤醒日志的标记为第一标记。Generally speaking, when the user wants to wake up the terminal device, if the voiceprint wake-up input is input to the terminal device but fails to wake up the terminal device, the user is likely to use the same method or other methods to wake up the terminal device in a short time. The device wakes up. In the above embodiment, the terminal device first receives a voiceprint wake-up input that fails the voiceprint wake-up verification, and then receives another wake-up input within the first preset time period (very short time), so the first time it receives The received voiceprint wake-up input is likely to be the voiceprint wake-up input that the user wants to wake up the terminal device but fails the voiceprint wake-up verification, so it is determined that the mark of the voiceprint wake-up log is the first mark.
基于标记为第一标记的声纹唤醒日志可以对算法模型进行优化或者对算法阈值的调整,从而使声纹唤醒输入更加容易通过声纹唤醒验证。Based on the voiceprint wake-up log marked as the first mark, the algorithm model can be optimized or the algorithm threshold can be adjusted, so that the voiceprint wake-up input is easier to pass the voiceprint wake-up verification.
方式二、Method two,
在第一接收结果为在第一预设时长内未接收到唤醒输入的情况下,执行如下步骤S302。When the first receiving result is that no wake-up input is received within the first preset time period, the following step S302 is performed.
S302、生成声纹唤醒日志,并确定声纹唤醒日志的标记为第二标记。S302. Generate a voiceprint wake-up log, and determine a flag of the voiceprint wake-up log as a second flag.
其中,第二标记用于标记声纹唤醒验证未通过的误唤醒声纹唤醒日志。Wherein, the second mark is used to mark false wake-up voiceprint wake-up logs that fail the voiceprint wake-up verification.
同样,当用户想要唤醒终端设备时,若向终端设备输入了声纹唤醒输入但未能成功将终端设备唤醒,则用户很可能会在短时间内采用相同方式或其他方式再对终端设备进行唤醒。在上述实施例中,终端设备接收到一次未通过声纹唤醒验证的声纹唤醒输入,终端设备被成功唤醒,但用户未继续对终端设备进行唤醒,因此接收到的声纹唤醒输入很可能是误将终端设备所属用户发出的不包含唤醒词的声音,或其它用户或物体误发出的声音确定为了声纹唤醒输入,因此确定声纹唤醒日志的标记为第二标记。Similarly, when the user wants to wake up the terminal device, if the voiceprint wake-up input is input to the terminal device but fails to wake up the terminal device, the user is likely to use the same method or other methods to wake up the terminal device in a short time. wake. In the above embodiment, the terminal device received a voiceprint wake-up input that failed the voiceprint wake-up verification, and the terminal device was successfully woken up, but the user did not continue to wake up the terminal device, so the received voiceprint wake-up input is likely to be The sound that does not contain the wake-up word from the user to which the terminal device belongs, or the sound that is mistakenly made by other users or objects is determined as the voiceprint wake-up input, so the mark of the voiceprint wake-up log is determined as the second mark.
基于标记为第二标记的声纹唤醒日志可以对算法模型进行优化或者对算法阈值的调整,从而使声纹唤醒输入的认定更加严格,避免频繁启动对唤醒词、声纹的验证,进而节省终端设备的功耗。Based on the voiceprint wake-up log marked as the second mark, the algorithm model can be optimized or the algorithm threshold can be adjusted, so as to make the recognition of the voiceprint wake-up input more stringent, avoid frequently starting the verification of the wake-up word and voiceprint, and thus save the terminal The power consumption of the device.
方式三、Method three,
在第二接收结果为在第二预设时长内接收到了有效控制指令的情况下,执行如下步骤S303。When the second receiving result is that a valid control instruction is received within the second preset time period, the following step S303 is performed.
S303、生成声纹唤醒日志,并确定声纹唤醒日志的标记为第三标记。S303. Generate a voiceprint wakeup log, and determine that the flag of the voiceprint wakeup log is a third flag.
其中,第三标记用于标记正常唤醒终端设备的声纹唤醒日志。Wherein, the third mark is used to mark the voiceprint wake-up log of the terminal device being woken up normally.
一般情况下,当用户成功唤醒终端设备后,用户会紧接着向终端设备输入控制指令,若终端设备被成功唤醒,但在一段时间内并未接收到用户输入的控制指令,则终端设备很可能是被误唤醒的。在上述实施例中,声纹唤醒输入通过了声纹唤醒验证,终端设备被成功唤醒,且在第二预设时长内接收到了有效控制指令,因此确定声纹唤醒日志的标记为第三标记。Generally, when the user successfully wakes up the terminal device, the user will immediately input a control command to the terminal device. If the terminal device is successfully woken up but does not receive the control command input by the user within a period of time, the terminal device is likely to was awakened by mistake. In the above embodiment, the voiceprint wakeup input passes the voiceprint wakeup verification, the terminal device is successfully woken up, and a valid control command is received within the second preset time period, so the flag of the voiceprint wakeup log is determined to be the third flag.
方式四、Method 4.
在第二接收结果为在第二预设时长内未接收到有效控制指令的情况下,执行如下步骤S304。When the second receiving result is that no valid control instruction is received within the second preset time period, the following step S304 is performed.
S304、生成声纹唤醒日志,并确定声纹唤醒日志的标记为第四标记。S304. Generate a voiceprint wakeup log, and determine that the flag of the voiceprint wakeup log is a fourth flag.
其中,第四标记用于标记声纹唤醒验证通过的误唤醒声纹唤醒日志。Wherein, the fourth mark is used to mark the wake-up log of the false wake-up voiceprint that has passed the voiceprint wake-up verification.
同样,当用户成功唤醒终端设备后,用户会紧接着向终端设备输入控制指令,若终端设备被成功唤醒,但在一段时间内并未接收到用户输入的控制指令,则终端设备很可能是被误唤醒的。在上述实施例中,声纹唤醒输入通过了声纹唤醒验证,终端设备被成功唤醒,但在第二预设时长内未接收到有效控制指令,因此确定声纹唤醒日志的标记为第四标记。Similarly, when the user successfully wakes up the terminal device, the user will immediately input a control command to the terminal device. If the terminal device is successfully woken up but does not receive the control command input by the user within a period of time, the terminal device is likely to be activated. awakened by mistake. In the above embodiment, the voiceprint wake-up input has passed the voiceprint wake-up verification, and the terminal device is successfully woken up, but no valid control command is received within the second preset time period, so the flag of the voiceprint wake-up log is determined to be the fourth flag .
基于标记为第四标记的声纹唤醒日志可以对算法模型进行优化或者对算法阈值的调整,从而使声纹唤醒验证更加严格,避免频繁唤醒终端设备,进而节省终端设备的功耗并提升用户体验。Based on the voiceprint wake-up log marked as the fourth mark, the algorithm model can be optimized or the algorithm threshold can be adjusted, so as to make the voiceprint wake-up verification more stringent, avoid frequent wake-up of the terminal device, and thus save the power consumption of the terminal device and improve the user experience. .
作为本发明实施例一种可选的实施方式,在上述实施例的基础上,本案发明实施例提供的声纹唤醒日志收集方法还包括:对收集的声纹唤醒日志进行上传。参照图4所示,对收集的声纹唤醒日志进行上传的方法流程包括:As an optional implementation manner of the embodiment of the present invention, on the basis of the foregoing embodiments, the voiceprint wake-up log collection method provided by the embodiment of the present invention further includes: uploading the collected voiceprint wake-up logs. Referring to Figure 4, the method flow for uploading the collected voiceprint wake-up log includes:
S401、确定当前网络状态是否为预设网络状态。S401. Determine whether the current network state is a preset network state.
可选的,预设网络状态可以为接入WIFI、接入移动网络、网络信号质量达到阈值网络信号质量中的至少一种。Optionally, the preset network status may be at least one of access to WIFI, access to a mobile network, and network signal quality reaching a threshold network signal quality.
在上述步骤S401中,若确定当前网络状态为预设网络状态,则执行如下步骤S402,若确定当前网络状态不为预设网络状态,则执行如下步骤S403及后续步骤。In the above step S401, if it is determined that the current network state is the default network state, then perform the following step S402; if it is determined that the current network state is not the default network state, then perform the following step S403 and subsequent steps.
S402、上传本地存储的所有声纹唤醒日志和声纹唤醒日志的标记,并删除已上传的声纹唤醒日志和声纹唤醒日志的标记。S402. Upload all locally stored voiceprint wake-up logs and marks of the voiceprint wake-up logs, and delete the uploaded voiceprint wake-up logs and marks of the voiceprint wake-up logs.
S403、判断本地存储的声纹唤醒日志的数量是否大于预设阈值。S403. Determine whether the number of voiceprint wake-up logs stored locally is greater than a preset threshold.
在上述步骤S403中,若本地存储的声纹唤醒日志的数量大于预设阈值,则执行如下步骤S404,而若本地存储的声纹唤醒日志的数量小于或等于预设阈值,可以确定声纹唤醒日志的存储并未占用过多存储空间,无需对声纹唤醒日志进行处理。In the above step S403, if the number of locally stored voiceprint wake-up logs is greater than the preset threshold, the following step S404 is performed, and if the number of locally stored voiceprint wake-up logs is less than or equal to the preset threshold, it can be determined that the voiceprint wake-up The storage of the log does not take up too much storage space, and there is no need to process the voiceprint wake-up log.
S404、删除本地存储的声纹唤醒日志中时间戳最早的声纹唤醒日志日志。S404. Delete the voiceprint wakeup log with the earliest time stamp among the locally stored voiceprint wakeup logs.
当本地存储的声纹唤醒日志的数量大于预设阈值时,删除本地存储的声纹唤醒日志中时间戳最早的声纹唤醒日志,可以避免声纹唤醒日志的存储过多占用存储空间,进而避免声纹唤醒日志的收集影响终端设备的性能。When the number of voiceprint wake-up logs stored locally is greater than the preset threshold, delete the voiceprint wake-up log with the earliest time stamp in the locally stored voiceprint wake-up logs, which can avoid excessive storage of voiceprint wake-up logs, thereby avoiding The collection of voiceprint wake-up logs affects the performance of terminal devices.
基于同一发明构思,作为对上述方法的实现,本发明实施例还提供了一种执行上述方法实施例提供的声纹唤醒日志收集方法的声纹唤醒日志收集装置,该实施例与前述方法实施例对应,为便于阅读,本实施例不再对前述方法实施例中的细节内容进行逐一赘述,但应当明确,本实施例中的声纹唤醒日志收集装置能够对应实现前述方法实施例中的全部内容。Based on the same inventive concept, as an implementation of the above method, an embodiment of the present invention also provides a voiceprint wakeup log collection device that implements the voiceprint wakeup log collection method provided by the above method embodiment. This embodiment is the same as the aforementioned method embodiment Correspondingly, for ease of reading, this embodiment does not repeat the details of the foregoing method embodiments one by one, but it should be clear that the voiceprint wake-up log collection device in this embodiment can correspondingly implement all the content in the foregoing method embodiments .
图5为本发明实施例提供的声纹唤醒日志收集装置的结构示意图,参照图5所示,本发明实施例提供的声纹唤醒日志收集装置500包括:FIG. 5 is a schematic structural diagram of a voiceprint wake-up log collection device provided in an embodiment of the present invention. Referring to FIG. 5 , the voiceprint wake-up
接收单元51,用于接收声纹唤醒输入;A receiving
验证单元52,对声纹唤醒输入进行声纹唤醒验证;The
第一获取单元53,用于在声纹唤醒验证未通过的情况下,获取第一接收结果;第一接收结果为在第一预设时长内接收到了唤醒输入,或者在第一预设时长内未接收到唤醒输入;The first acquiring
第二获取单元54,用于在声纹唤醒验证通过的情况下,获取第二接收结果;第二接收结果为在第二预设时长内接收到了有效控制指令,或者在第二预设时长内未接收到有效控制指令;The second acquiring
生成单元55,用于生成声纹唤醒日志;A generating
标记单元56,用于根据第一接收结果或第二接收结果确定声纹唤醒日志的标记。The marking
作为本发明实施例一种可选的实施方式,标记单元56,具体用于在第一接收结果为在第一预设时长内接收到了唤醒输入的情况下,确定声纹唤醒日志的标记为第一标记;As an optional implementation of the embodiment of the present invention, the marking
其中,第一标记用于标记想要唤醒终端设备但未成功唤醒终端设备的声纹唤醒日志。Wherein, the first mark is used to mark the voiceprint wake-up log that wants to wake up the terminal device but fails to wake up the terminal device.
作为本发明实施例一种可选的实施方式,标记单元56,具体用于在第一接收结果为在第一预设时长内未接收到唤醒输入的情况下,确定声纹唤醒日志的标记为第二标记;As an optional implementation of the embodiment of the present invention, the marking
其中,第二标记用于标记声纹唤醒验证未通过的误唤醒声纹唤醒日志。Wherein, the second mark is used to mark false wake-up voiceprint wake-up logs that fail the voiceprint wake-up verification.
作为本发明实施例一种可选的实施方式,标记单元56,具体用于在第二接收结果为在第二预设时长内接收到了有效控制指令的情况下,确定声纹唤醒日志的标记为第三标记;As an optional implementation of the embodiment of the present invention, the marking
其中,第三标记用于标记正常唤醒终端设备的声纹唤醒日志。Wherein, the third mark is used to mark the voiceprint wake-up log of the terminal device being woken up normally.
作为本发明实施例一种可选的实施方式,标记单元56,具体用于在第二接收结果为在第二预设时长内未接收到有效控制指令的情况下,确定声纹唤醒日志的标记为第四标记;As an optional implementation of the embodiment of the present invention, the marking
其中,第四标记用于标记声纹唤醒验证通过的误唤醒声纹唤醒日志。Wherein, the fourth mark is used to mark the wake-up log of the false wake-up voiceprint that has passed the voiceprint wake-up verification.
作为本发明实施例一种可选的实施方式,参照图6所示,声纹唤醒日志收集装置500还包括:As an optional implementation of the embodiment of the present invention, referring to FIG. 6 , the voiceprint wake-up
处理单元57,用于在生成声纹唤醒日志,并根据第一接收结果或第二接收结果确定声纹唤醒日志的标记之后,确定当前网络状态是否为预设网络状态;The
发送单元58,用于在确定当前网络状态为预设网络状态的情况下,上传本地存储的所有声纹唤醒日志和声纹唤醒日志的标记;The sending
删除单元59,用于删除已上传的声纹唤醒日志和声纹唤醒日志的标记。The
作为本发明实施例一种可选的实施方式,处理单元57,还用于在确定当前网络状态不为预设网络状态的情况下,判断本地存储的声纹唤醒日志的数量是否大于预设阈值;As an optional implementation of the embodiment of the present invention, the
删除单元59,还用于在本地存储的声纹唤醒日志的数量大于预设阈值,的情况下,删除本地存储的声纹唤醒日志中时间戳最早的声纹唤醒日志日志。The
本发明实施例提供的声纹唤醒日志收集装置在通过接收单元接收到声纹唤醒输入后,先通过验证单元对声纹唤醒输入进行声纹唤醒验证,并在声纹唤醒验证未通过的情况下,通过第一获取单元获取为在第一预设时长内接收到了唤醒输入或者为在第一预设时长内未接收到唤醒输入的第一接收结果,在声纹唤醒验证通过的情况下,通过第二获取单元获取为在第二预设时长内接收到了有效控制指令或者为在第二预设时长内未接收到有效控制指令的第二接收结果,最后生成单元生成声纹唤醒日志,标记单元根据第一接收结果或第二接收结果确定声纹唤醒日志的标记。由于本发明实施例可以根据声纹唤醒验证的通过情况获取第一接收结果或第二接收结果,并根据第一接收结果或第二接收结果确定生成的声纹唤醒日志的标记,因此本发明实施例可以自动对声纹唤醒日志进行标记,使收集的声纹唤醒日志具有标识,进而使收集的声纹唤醒日志可以直接用于算法模型的优化或者算法阈值的调整。The voiceprint wake-up log collection device provided by the embodiment of the present invention, after receiving the voiceprint wake-up input through the receiving unit, first performs voiceprint wake-up verification on the voiceprint wake-up input through the verification unit, and if the voiceprint wake-up verification fails , the first receiving result is acquired by the first acquisition unit as the wake-up input is received within the first preset time period or the wake-up input is not received within the first preset time length, and when the voiceprint wake-up verification passes, through The second acquisition unit acquires the second receiving result of receiving an effective control instruction within the second preset time length or not receiving an effective control instruction within the second preset time length, and finally the generation unit generates a voiceprint wake-up log, and the marking unit Determine the mark of the voiceprint wake-up log according to the first receiving result or the second receiving result. Since the embodiment of the present invention can obtain the first receiving result or the second receiving result according to the passing of the voiceprint wake-up verification, and determine the mark of the generated voiceprint wake-up log according to the first receiving result or the second receiving result, the implementation of the present invention For example, the voiceprint wake-up log can be automatically marked, so that the collected voiceprint wake-up log has an identification, and then the collected voiceprint wake-up log can be directly used for the optimization of the algorithm model or the adjustment of the algorithm threshold.
图7为实现本发明各个实施例的一种终端设备的硬件结构示意图,如图7所示,该终端设备700包括但不限于:射频(radio frequency,RF)电路710、存储器720、输入单元730、显示单元740、传感器750、音频电路760、无线保真(wireless fidelity,WiFi)模块770、处理器780、以及电源790等部件。其中,射频电路710包括接收器710和发送器712。本领域技术人员可以理解,图7中示出的终端设备结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。7 is a schematic diagram of a hardware structure of a terminal device implementing various embodiments of the present invention. As shown in FIG. , a
RF电路710可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器780处理;另外,将设计上行的数据发送给基站。通常,RF电路710包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noiseamplifier,LNA)、双工器等。此外,RF电路710还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(globalsystem of mobile communication,GSM)、通用分组无线服务(general packet radioservice,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。The
存储器720可用于存储软件程序以及模块,处理器780通过运行存储在存储器720的软件程序以及模块,从而执行终端设备的各种功能应用以及数据处理。存储器720可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器720可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
输入单元730可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的键信号输入。具体地,输入单元730可包括触控面板731以及其他输入设备732。触控面板731,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板731上或在触控面板731附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板731可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器780,并能接收处理器780发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种实现触控面板731。除了触控面板731,输入单元730还可以包括其他输入设备732。具体地,其他输入设备732可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The
显示单元740可用于显示由用户输入的信息或提供给用户的信息以及终端设备的各种菜单。显示单元740可包括显示面板741,可选的,可以采用液晶显示器(liquidcrystal display,LCD)、有机发光二极管(organic light-Emitting diode,OLED)等形式来配置显示面板741。进一步的,触控面板731可覆盖显示面板741,当触控面板731检测到在其上或附近的触摸操作后,传送给处理器780以确定触摸事件的,随后处理器780根据触摸事件的在显示面板741上提供相应的视觉输出。虽然在图7中,触控面板731与显示面板741是作为两个独立的部件来实现终端设备的输入和输入功能,但是在某些实施例中,可以将触控面板731与显示面板741集成而实现终端设备的输入和输出功能。The
终端设备还可包括至少一种传感器750,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板741的亮度,接近传感器可在终端设备移动到耳边时,关闭显示面板741和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。本发明实施例中,该终端设备可以包括加速度传感器、深度传感器或者距离传感器等。The terminal device may also include at least one
音频电路760、扬声器761,传声器762可提供用户与终端设备之间的音频接口。音频电路760可将接收到的音频数据转换后的电信号,传输到扬声器761,由扬声器761转换为声音信号输出;另一方面,传声器762将收集的声音信号转换为电信号,由音频电路760接收后转换为音频数据,再将音频数据输出处理器780处理后,经RF电路710以发送给比如另一终端设备,或者将音频数据输出至存储器720以便进一步处理。The
WiFi属于短距离无线传输技术,终端设备通过WiFi模块770可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图7示出了WiFi模块770,但是可以理解的是,其并不属于终端设备的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The terminal device can help users send and receive emails, browse web pages, and access streaming media through the
处理器780是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器720内的软件程序和/或模块,以及调用存储在存储器720内的数据,执行终端设备的各种功能和处理数据,从而对终端设备进行整体监控。可选的,处理器780可包括一个或多个处理单元;优选的,处理器780可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器780中。The
终端设备还包括给各个部件供电的电源790(比如电池),优选的,电源可以通过电源管理系统与处理器780逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。尽管未示出,终端设备还可以包括摄像头、蓝牙模块等,在此不再赘述。The terminal device also includes a power supply 790 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the
本发明实施例中,上述传声器762具体用于接收声纹唤醒输入;处理器780用于对声纹唤醒输入进行声纹唤醒验证;传声器762还用于在处理器780确定声纹唤醒验证未通过的情况下,获取第一接收结果,以及在处理器780确定声纹唤醒验证通过的情况下,获取第二接收结果;处理器780还用于生成声纹唤醒日志以及根据第一接收结果或第二接收结果确定声纹唤醒日志的标记;In the embodiment of the present invention, the above-mentioned
其中,第一接收结果为在第一预设时长内接收到了唤醒输入,或者在第一预设时长内未接收到唤醒输入;第二接收结果为在第二预设时长内接收到了有效控制指令,或者在第二预设时长内未接收到有效控制指令。Wherein, the first receiving result is that the wake-up input is received within the first preset time length, or the wake-up input is not received within the first preset time length; the second receiving result is that a valid control instruction is received within the second preset time length , or no valid control instruction is received within the second preset time period.
作为本发明实施例一种可选的实施方式,处理器780,具体用于在第一接收结果为在第一预设时长内接收到了唤醒输入的情况下,确定声纹唤醒日志的标记为第一标记;As an optional implementation manner of the embodiment of the present invention, the
其中,第一标记用于标记想要唤醒终端设备但未成功唤醒终端设备的声纹唤醒日志。Wherein, the first mark is used to mark the voiceprint wake-up log that wants to wake up the terminal device but fails to wake up the terminal device.
作为本发明实施例一种可选的实施方式,处理器780,具体用于在第一接收结果为在第一预设时长内未接收到唤醒输入的情况下,确定声纹唤醒日志的标记为第二标记;As an optional implementation manner of the embodiment of the present invention, the
其中,第二标记用于标记声纹唤醒验证未通过的误唤醒声纹唤醒日志。Wherein, the second mark is used to mark false wake-up voiceprint wake-up logs that fail the voiceprint wake-up verification.
作为本发明实施例一种可选的实施方式,处理器780,具体用于在第二接收结果为在第二预设时长内接收到了有效控制指令的情况下,确定声纹唤醒日志的标记为第三标记;As an optional implementation manner of the embodiment of the present invention, the
其中,第三标记用于标记正常唤醒终端设备的声纹唤醒日志。Wherein, the third mark is used to mark the voiceprint wake-up log of the terminal device being woken up normally.
作为本发明实施例一种可选的实施方式,处理器780,具体用于在第二接收结果为在第二预设时长内未接收到有效控制指令的情况下,确定声纹唤醒日志的标记为第四标记;As an optional implementation of the embodiment of the present invention, the
其中,第四标记用于标记声纹唤醒验证通过的误唤醒声纹唤醒日志。Wherein, the fourth mark is used to mark the wake-up log of the false wake-up voiceprint that has passed the voiceprint wake-up verification.
作为本发明实施例一种可选的实施方式,射频电路710,具体用于在生成声纹唤醒日志,并根据第一接收结果或第二接收结果确定声纹唤醒日志的标记之后,确定当前网络状态是否为预设网络状态,以及在确定当前网络状态为预设网络状态的情况下,上传本地存储的所有声纹唤醒日志和声纹唤醒日志的标记;As an optional implementation of the embodiment of the present invention, the
存储器720,具体用于删除已上传的声纹唤醒日志和声纹唤醒日志的标记。The
作为本发明实施例一种可选的实施方式,处理器780,射频电路77还用于在确定当前网络状态不为预设网络状态的情况下,判断本地存储的声纹唤醒日志的数量是否大于预设阈值;As an optional implementation of the embodiment of the present invention, the
存储器720,还用于在本地存储的声纹唤醒日志的数量大于预设阈值,的情况下,删除本地存储的声纹唤醒日志中时间戳最早的声纹唤醒日志日志。The
本发明实施例还提供一种终端设备,该终端设备可以包括:处理器,存储器以及存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时可以实现上述方法实施例提供的声纹唤醒日志收集方法,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention also provides a terminal device. The terminal device may include: a processor, a memory, and a computer program stored in the memory and operable on the processor. When the computer program is executed by the processor, the above method can be implemented. The voiceprint wake-up log collection method provided in the example can achieve the same technical effect. To avoid repetition, it will not be repeated here.
本发明实施例提供一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现上述方法实施例提供的声纹唤醒日志收集方法。An embodiment of the present invention provides a computer-readable storage medium, which is characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the voiceprint wake-up log collection method provided by the above method embodiment is implemented.
本发明实施例中提供的第一设备,第二设备,以及存储介质与上述方法实施例中提供的声纹唤醒日志收集方法可以达到相同的技术效果,为避免重复,这里不再赘述其技术效果。The first device, the second device, and the storage medium provided in the embodiment of the present invention can achieve the same technical effect as the voiceprint wake-up log collection method provided in the above method embodiment. In order to avoid repetition, the technical effect will not be repeated here. .
其中,该计算机可读存储介质可以为只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods of various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, without departing from the gist of the present invention and the protection scope of the claims, many forms can also be made, all of which belong to the protection of the present invention.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010659084.5A CN111880988B (en) | 2020-07-09 | 2020-07-09 | Voiceprint wake-up log collection method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010659084.5A CN111880988B (en) | 2020-07-09 | 2020-07-09 | Voiceprint wake-up log collection method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111880988A CN111880988A (en) | 2020-11-03 |
| CN111880988B true CN111880988B (en) | 2022-11-04 |
Family
ID=73150980
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010659084.5A Active CN111880988B (en) | 2020-07-09 | 2020-07-09 | Voiceprint wake-up log collection method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111880988B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112499016A (en) * | 2020-11-17 | 2021-03-16 | 苏州中科先进技术研究院有限公司 | Garbage recycling method and device of intelligent garbage can and intelligent garbage can |
| CN115346535A (en) * | 2022-08-12 | 2022-11-15 | 携程旅游信息技术(上海)有限公司 | Method, system, equipment and medium for building multi-level voiceprint library |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106815507A (en) * | 2015-11-30 | 2017-06-09 | 中兴通讯股份有限公司 | Voice wakes up implementation method, device and terminal |
| CN108335696A (en) * | 2018-02-09 | 2018-07-27 | 百度在线网络技术(北京)有限公司 | Voice awakening method and device |
| CN110570861A (en) * | 2019-09-24 | 2019-12-13 | Oppo广东移动通信有限公司 | Method, apparatus, terminal device and readable storage medium for voice wake-up |
| CN110634468A (en) * | 2019-09-11 | 2019-12-31 | 中国联合网络通信集团有限公司 | Voice wake-up method, device, equipment and computer-readable storage medium |
| CN111210817A (en) * | 2019-12-30 | 2020-05-29 | 深圳市优必选科技股份有限公司 | Data processing method and device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11074912B2 (en) * | 2018-10-23 | 2021-07-27 | Polycom, Inc. | Identifying a valid wake input |
-
2020
- 2020-07-09 CN CN202010659084.5A patent/CN111880988B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106815507A (en) * | 2015-11-30 | 2017-06-09 | 中兴通讯股份有限公司 | Voice wakes up implementation method, device and terminal |
| CN108335696A (en) * | 2018-02-09 | 2018-07-27 | 百度在线网络技术(北京)有限公司 | Voice awakening method and device |
| CN110634468A (en) * | 2019-09-11 | 2019-12-31 | 中国联合网络通信集团有限公司 | Voice wake-up method, device, equipment and computer-readable storage medium |
| CN110570861A (en) * | 2019-09-24 | 2019-12-13 | Oppo广东移动通信有限公司 | Method, apparatus, terminal device and readable storage medium for voice wake-up |
| CN111210817A (en) * | 2019-12-30 | 2020-05-29 | 深圳市优必选科技股份有限公司 | Data processing method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111880988A (en) | 2020-11-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR102354275B1 (en) | Speech recognition method and apparatus, and storage medium | |
| CN110300970B (en) | Unlocking control method and related product | |
| WO2017008569A1 (en) | Message updating method, apparatus, and terminal | |
| CN106293308B (en) | Screen unlocking method and device | |
| CN104375886B (en) | Information processing method, device and electronic equipment | |
| CN107025399B (en) | Unlock control method and related products | |
| CN107122649B (en) | Unlocking control method, mobile terminal and computer-readable storage medium | |
| HK1204373A1 (en) | A launch control method and apparatus for application programs | |
| CN108881778B (en) | A wearable device-based video output method and wearable device | |
| CN107015703A (en) | Unlock control method and related products | |
| WO2019104712A1 (en) | Communication method, wearable device, mobile terminal and system | |
| CN111580911A (en) | Operation prompting method and device for terminal, storage medium and terminal | |
| CN107194223B (en) | Fingerprint identification area display method and related products | |
| CN111880988B (en) | Voiceprint wake-up log collection method and device | |
| CN107193472A (en) | Solve lock control method and Related product | |
| CN107659718B (en) | Method, device, mobile terminal and storage medium for controlling mobile terminal | |
| CN108810261B (en) | Antenna switching method in call and related product | |
| CN108874111B (en) | Battery over-discharge protection control method and mobile terminal | |
| CN108366167B (en) | A kind of message reminding method and mobile terminal | |
| WO2016172878A1 (en) | Terminal control method and apparatus, and terminal device | |
| CN110277097B (en) | Data processing method and related equipment | |
| CN107194226A (en) | Unlock control method and related products | |
| CN106714149B (en) | Wireless network access method, device and terminal equipment | |
| CN107197086B (en) | Unlock control method and related products | |
| CN106911837A (en) | The method of adjustment and device of the tinkle of bells |
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 |
