Display device and instruction recognition method based on wake-up word voiceprint
By using the speech extraction model to identify wake words and extract target voiceprint vectors in the display device, the problem of inaccurate command word recognition in noisy environments is solved, accurate recognition and response to target user instructions are achieved, and the voiceprint registration process is simplified. .
Patent Information
- Application Number
- CN202410772645.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-06
AI Technical Summary
It is difficult for display devices to accurately recognize command words in noisy environments, especially in environments where multiple people are speaking. Noise interference leads to inaccurate command recognition.
The wake word audio is identified through the speech extraction model and the target voiceprint vector is extracted. Based on the voiceprint vector, the target instruction word audio is extracted from the audio to be extracted, and control instructions are generated to respond to the user interface, reducing noise interference and improving recognition accuracy.
It effectively reduces the noise interference in command word recognition in noisy environments and improves the display device's recognition accuracy of target user commands without the need for voiceprint registration in advance.
Smart Images

Figure CN118609575A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of display devices, and in particular to a display device and a command recognition method based on a wake-up word voiceprint. Background Art
[0002] When the display device does not receive control commands for a long time, it can switch from working mode to standby mode to save power. In standby mode, the display device will continue to detect the voice signal in the environment where the display device is located. The user can use the voice wake-up function (KWS, KeyWord Spotting) to say the wake-up word preset by the display device. When the display device recognizes the audio waveform containing the wake-up word in the voice signal, it will switch from standby mode to working mode to achieve voice wake-up.
[0003] In order to improve the efficiency of controlling the display device, the user can continuously say the wake-up word and the command word so that after waking up the display device, the display device can perform interactive actions in accordance with the command word. When the display device is in an environment where multiple people are speaking, voices or noise other than the target speaker will affect the display device's recognition of the command words. At this time, the display device can identify the target speaker's voiceprint and extract the target speaker's voice audio from the audio based on the voiceprint, thereby improving the recognition of the target speaker's command words. However, this method requires the target speaker to be registered with the voiceprint in advance. When the display device obtains the voice of multiple registered speakers, it is impossible to effectively extract command words for the target speaker. Summary of the invention
[0004] The present application provides a display device and a command recognition method based on a wake-up word voiceprint to solve the problem that the display device cannot accurately recognize command words in a noisy environment.
[0005] In a first aspect, some embodiments of the present application provide a display device, the display device comprising a display, a memory, a sound collector and a controller, the display being used to display a user interface, the memory being used to store a speech extraction model, the speech extraction model being trained based on sample data, the sample data comprising a wake-up word audio and a command word audio from the same sound source; the sound collector being configured to acquire audio data; and the controller being configured to:
[0006] After acquiring the audio to be extracted through the sound collector, identifying the wake-up word audio in the audio to be extracted through the speech extraction model;
[0007] Extracting a target voiceprint vector of the wake-up word audio through the voice extraction model;
[0008] Extracting a target instruction word audio from the audio to be extracted according to the target voiceprint vector, wherein the target instruction word audio is an instruction word audio whose voiceprint vector has a similarity with the target voiceprint vector greater than or equal to a similarity threshold;
[0009] A control instruction is generated according to the target instruction word audio, and, in response to the control instruction, the display is controlled to display a target user interface after executing the control instruction.
[0010] In some embodiments, the speech extraction model includes a first module, the first module is configured to extract a target voiceprint vector of the wake-up word audio, and the controller is further configured to:
[0011] Acquire a sample data set, wherein the sample data set includes a sample wake-up word audio, a sample command word audio, and an interference command word audio;
[0012] The first to-be-trained module is used to respectively extract the voiceprint vectors of the sample wake-up word audio, the sample instruction word audio, and the interference instruction word audio to obtain a wake-up word voiceprint vector, an instruction word voiceprint vector, and an interference word voiceprint vector;
[0013] Calculating a first similarity value between the wake-up word voiceprint vector and the instruction word voiceprint vector according to a first loss function, and calculating a second similarity value between the wake-up word voiceprint vector and the interference word voiceprint vector according to the first loss function;
[0014] When the first similarity value is greater than the second similarity value, the model parameters of the first module are output according to the current training parameters of the first module to be trained.
[0015] In some embodiments, the speech extraction model further includes a second module, wherein the second module is configured to extract a target instruction word audio from the audio to be extracted according to the target voiceprint vector, and the controller is further configured to:
[0016] Superimposing the sample wake-up word audio, the sample instruction word audio and the interference instruction word audio to obtain a superimposed sample audio;
[0017] Extracting a superimposed voiceprint vector of the superimposed sample audio;
[0018] Inputting the superimposed voiceprint vector and the wake-up word voiceprint vector into a first learner, and outputting the first learner vector through the first learner, wherein the first learner is configured to filter out other voiceprint vectors except the wake-up word voiceprint vector in the superimposed voiceprint vector;
[0019] extracting training instruction word audio from the superimposed sample audio according to the first learner vector;
[0020] Calculate the loss value of the training instruction word audio and the instruction word label according to a second loss function;
[0021] If the loss value is greater than or equal to the determination threshold, the model parameters of the second module are output according to the current training parameters of the first learner.
[0022] In some embodiments, after the controller executes the step of extracting the superimposed voiceprint vector of the superimposed sample audio, the controller is further configured to:
[0023] Inputting the superimposed voiceprint vector and the instruction word voiceprint vector into a second learner, and outputting a second learner vector through the second learner, wherein the second learner is configured to filter out other voiceprint vectors except the instruction word voiceprint vector in the superimposed voiceprint vector;
[0024] extracting training instruction word audio from the superimposed sample audio according to the second learner vector;
[0025] Calculate the loss value of the training instruction word audio and the instruction word label according to a second loss function;
[0026] If the loss value is greater than or equal to the determination threshold, the model parameters of the second module are output according to the current training parameters of the second learner.
[0027] In some embodiments, the controller is further configured to:
[0028] Setting a first weight value of the first loss function and a second weight value of the second loss function;
[0029] Performing weighted summation on the first loss function and the second loss function according to the first weight value and the second weight value to obtain a weighted summation result;
[0030] The training parameters of the first module and the training parameters of the second module are updated according to the weighted summation result.
[0031] In some embodiments, the controller performs superposition of the sample wake-up word audio, the sample instruction word audio, and the interference instruction word audio, and is configured to:
[0032] Set the signal-to-noise ratio;
[0033] Determine, according to the signal-to-noise ratio, the amount of superposition of the interfering instruction word audio based on the sample amounts of the sample wake-up word audio and the sample instruction word audio;
[0034] The sample wake-up word audio, the sample instruction word audio and the interference instruction word audio are superimposed according to the superposition amount.
[0035] In some embodiments, the first module includes an encoder and a voiceprint extractor, and the controller is further configured to:
[0036] Encode the wake-up word audio by the encoder to obtain the wake-up word audio code;
[0037] The causal dependency of the wake-up word audio encoding is extracted by the voiceprint encoder, and the target voiceprint vector is obtained according to the causal dependency.
[0038] In some embodiments, the controller performs encoding of the wake-up word audio by the encoder, and is configured to:
[0039] Setting a first convolution kernel, a second convolution kernel and a third convolution kernel in a convolution layer of the encoder, wherein the first convolution kernel is larger than the second convolution kernel, and the second convolution kernel is larger than the third convolution kernel;
[0040] Extracting long-time audio features of the wake-up word audio through the first convolution kernel, extracting medium-time audio features of the wake-up word audio through the second convolution kernel, and extracting short-time audio features of the wake-up word audio through the third convolution kernel;
[0041] Encoding the long-time audio features, medium-time audio features and short-time audio features to obtain long-time audio codes, medium-time audio codes and short-time audio codes;
[0042] The long-time audio code, the medium-time audio code and the short-time audio code are concatenated to obtain the wake-up word audio code.
[0043] In some embodiments, the controller executes extracting the training instruction word audio from the superimposed sample audio according to the first learner vector, and is configured to:
[0044] Acquire multi-scale features of the superimposed sample audio;
[0045] Calculating the product of the multi-scale feature and the first learner vector to obtain a multi-scale audio vector;
[0046] Performing transposed convolution on the multi-scale audio vector to obtain a time-domain audio signal;
[0047] The training instruction word audio is generated according to the time domain audio signal.
[0048] In a second aspect, some embodiments of the present application further provide a method for command recognition based on a wake-up word voiceprint, which is applied to the display device described in the first aspect, and the method includes:
[0049] After acquiring the audio to be extracted through the sound collector, identifying the wake-up word audio in the audio to be extracted through the speech extraction model;
[0050] Extracting a target voiceprint vector of the wake-up word audio through the voice extraction model;
[0051] Extracting a target instruction word audio from the audio to be extracted according to the target voiceprint vector, wherein the target instruction word audio is an instruction word audio whose voiceprint vector has a similarity with the target voiceprint vector greater than or equal to a similarity threshold;
[0052] A control instruction is generated according to the target instruction word audio, and, in response to the control instruction, the display is controlled to display a target user interface after executing the control instruction.
[0053] It can be seen from the above technical solutions that the present application provides a display device and a command recognition method based on a wake-up word voiceprint, wherein the method obtains the audio to be extracted through a sound collector, identifies the wake-up word audio in the audio to be extracted through a voice extraction model, extracts the target voiceprint vector of the wake-up word audio through the voice extraction model, extracts the target command word audio from the audio to be extracted according to the target voiceprint vector, generates a control instruction according to the target command word audio, and, in response to the control instruction, controls the display to display the target user interface after executing the control instruction. By identifying the voiceprint vector corresponding to the wake-up word audio, and obtaining the valid command word audio based on the voiceprint vector to generate the corresponding control instruction, the interference of other command word audio in the audio to be extracted on the valid command word audio is reduced, thereby improving the accuracy of the display device in recognizing commands. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1 A schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application;
[0056] Figure 2 A schematic diagram of the hardware configuration of a display device provided in some embodiments of the present application;
[0057] Figure 3 A schematic diagram of software configuration of a display device provided in some embodiments of the present application;
[0058] Figure 4 A flowchart of a user waking up a display device in some embodiments of the present application;
[0059] Figure 5A flowchart of a display device executing a voiceprint extraction instruction provided in some embodiments of the present application;
[0060] Figure 6 A flowchart of a display device extracting target instruction word audio provided in some embodiments of the present application;
[0061] Figure 7 A timing flow chart of extracting control instructions during the wake-up process of a display device provided in some embodiments of the present application;
[0062] Figure 8 A neural network structure diagram of a first module of a speech extraction model in a display device in some embodiments of the present application;
[0063] Fig. 9 A flowchart of a neural network training of a first module of a speech extraction model in a display device in some embodiments of the present application;
[0064] Fig.10 A neural network structure diagram of a second module of a speech extraction model in a display device in some embodiments of the present application;
[0065] Fig.11 A flowchart of performing weighted summation when training a speech extraction model for a display device in some embodiments of the present application;
[0066] Fig.12 A flowchart of encoding wake-up word audio by a display device in some embodiments of the present application. DETAILED DESCRIPTION
[0067] The following embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following embodiments do not represent all implementations consistent with the present application. They are only examples of systems and methods consistent with some aspects of the present application as detailed in the claims.
[0068] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0069] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.
[0070] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.
[0071] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0072] In the embodiment of the present application, the display device 200 generally refers to a device with image display and data processing capabilities. For example, the display device 200 includes but is not limited to a smart TV, a mobile terminal, a computer, a monitor, an advertising screen, a wearable device, a virtual reality device, an augmented reality device, etc.
[0073] Figure 1 This is a schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application. Figure 1 As shown in FIG. 1 , a user can operate the display device 200 through touch operation, the mobile terminal 300 and the control device 100. The control device 100 is used to receive operation instructions input by the user and convert the operation instructions into control instructions that can be recognized and responded to by the display device 200. For example, the control device 100 can be a remote controller, a stylus pen, a handle, etc.
[0074] The mobile terminal 300 can be used as a control device for performing human-computer interaction between the user and the display device 200. The mobile terminal 300 can also be used as a communication device for establishing a communication connection with the display device 200 and performing data interaction. In some embodiments, the mobile terminal 300 can install software applications with the display device 200, and achieve connection and communication through a network communication protocol to achieve the purpose of one-to-one control operation and data communication. The audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 to achieve a synchronous display function.
[0075] In some embodiments, the mobile terminal 300 or other electronic devices may also simulate the functions of the control device 100 by running an application program for controlling the display device 200 .
[0076] like Figure 1 As also shown in FIG. 4 , the display device 200 also communicates data with the server 400 through various communication methods. The display device 200 may be allowed to communicate and connect through a local area network (LAN), a wireless local area network (WLAN), and other networks.
[0077] The display device 200 may provide a broadcast receiving television function, and may also additionally provide an intelligent network television function with a computer support function, including but not limited to network television, smart television, Internet Protocol television (IPTV), and the like.
[0078] Figure 2 Some embodiments of the present application provide Figure 1 2 is a block diagram of the hardware configuration of the display device 200.
[0079] In some embodiments, the display device 200 may include at least one of a tuner 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface.
[0080] In some embodiments, the detector 230 is used to collect signals of the external environment or external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.
[0081] In some embodiments, the display 260 includes a display function component for presenting a picture, and a driving component for driving an image display. The display 260 is used to receive an image signal output from the controller 250 for display. For example, the display 260 can be used to display video content, image content, and components of a menu control interface and a user control UI interface.
[0082] In some embodiments, the communication device 220 is a component for communicating with an external device or server 400 according to various communication protocol types. The display device 200 may be provided with a plurality of communication devices 220 according to different supported communication modes. For example, when the display device 200 supports wireless network communication, the display device 200 may be provided with a communication device 220 including a WiFi function. When the display device 200 supports Bluetooth connection communication, the display device 200 needs to be provided with a communication device 220 including a Bluetooth function.
[0083] The communication device 220 can enable the display device 200 to communicate with the external device or server 400 by wireless or wired connection. Among them, the wired connection can connect the display device 200 with the external device through components such as data cables and interfaces. The wireless connection can connect the display device 200 with the external device through wireless signals or wireless networks. The display device 200 can establish a connection relationship with the external device directly, or indirectly establish a connection relationship through a gateway, a router, a connection device, etc.
[0084] In some embodiments, the controller 250 may include at least one of a central processing unit, a video processor, an audio processor, a graphics processor, and a power processor, and a first interface to an nth interface for input / output. The controller 250 controls the operation of the display device and responds to the user's operation through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200.
[0085] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0086] In some embodiments, the user may input a user command through a graphical user interface (GUI) displayed on the display 260 , and the user input interface receives the user input command through the graphical user interface (GUI).
[0087] In some embodiments, the audio output device 270 may be a local speaker of the display device 200, or may be an external audio output device of the display device 200. In particular, for the external audio output device of the display device 200, the display device 200 may also be provided with an external audio output terminal, and the audio output device may be connected to the display device 200 through the external audio output terminal to output the sound of the display device 200.
[0088] In some embodiments, the user input interface 280 may be used to receive instructions from a user.
[0089] In order to perform user interaction, in some embodiments, the display device 200 may run an operating system. The operating system is a computer program for managing and controlling hardware resources and software resources in the display device 200. The operating system can control the display device to provide a user interface, for example, the operating system can directly control the display device to provide a user interface, or can provide a user interface by running an application program. The operating system also allows the user to interact with the display device 200.
[0090] It should be noted that the operating system may be a native operating system based on a specific operating platform, or a third-party operating system deeply customized based on a specific operating platform, or an independent operating system specially developed for the display device.
[0091] The operating system can be divided into different modules or layers according to the functions implemented, for example Figure 3As shown, in some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the system library layer and the kernel layer.
[0092] In some embodiments, the application layer is used to provide services and interfaces for applications so that the display device 200 can run applications and interact with users based on the applications. At least one application can be run in the application layer, and these applications can be window programs, system settings programs, clock programs, etc. that come with the operating system; they can also be applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.
[0093] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Through the API interface, applications can access system resources and obtain system services during execution.
[0094] like Figure 3 As shown, in the embodiment of the present application, the application framework layer includes a view system, managers, content providers, etc., wherein the view system can design and implement the interface and interaction of the application, and the view system includes lists, grids, text boxes, buttons, etc. The manager includes at least one of the following modules: an activity manager for interacting with all activities running in the system; a location manager for providing system services or applications with access to system location services; a package manager for retrieving various information related to the application package currently installed on the device; a notification manager for controlling the display and clearing of notification messages; and a window manager for managing icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.
[0095] In some embodiments, the activity manager is used to manage the life cycle of each application and the usual navigation back function, such as controlling the exit, opening, and back of the application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling the display window changes, for example, reducing the display window, shaking the display, distorting the display, etc.
[0096] In some embodiments, the system runtime layer can provide support for the framework layer. When the framework layer is used, the operating system will run the instruction library contained in the system runtime layer, such as the C / C++ instruction library, to implement the functions to be implemented by the framework layer.
[0097] In some embodiments, the kernel layer is a functional layer between the hardware and software of the display device 200. The kernel layer can implement functions such as hardware abstraction, multitasking, and memory management. Figure 3 As shown, the kernel layer may be configured with hardware drivers, and the drivers included in the kernel layer may be at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.
[0098] It should be noted that the above example is only a simple division of the operating system functions and does not constitute a limitation on the specific operating system form of the display device 200 in the embodiment of the present application. Depending on factors such as the function of the display device and the type of operating system, the number of levels and specific level types contained in the operating system may be expressed in other forms.
[0099] In some embodiments, the display device 200 can enter the standby mode after a preset period of time in the non-operating state to suspend the executing application program, so that the display device 200 is in a low-power operation state, and the power consumption of the display device 200 is reduced. When the display device 200 is in the standby state, the user can send a wake-up instruction to switch the display device 200 from the standby mode to the working mode. The wake-up instruction can be any control instruction. For example, when the user clicks a button of the control device 100, the control device 100 can generate a wake-up instruction according to the corresponding button, and send the wake-up instruction to the display device 200 to wake up the display device 200. After receiving the wake-up instruction, the display device 200 in the standby mode switches to the working mode and continues to run the application program at the program progress before suspension.
[0100] The display device 200 may also have a voice interaction function. For this purpose, the wake-up instruction may also be a voice instruction. The user may use the voice wake-up function (KWS, KeyWord Spotting) to speak the wake-up word preset by the display device 200 to generate a wake-up instruction to wake up the display device 200.
[0101] In the above wake-up process, if Figure 4 As shown, the display device 200 can obtain the wake-up word audio spoken by the user through the sound collector, and perform voice recognition on the wake-up word audio to calculate the matching degree between the voice recognition result and the wake-up word text. When the matching degree is greater than or equal to the preset matching degree threshold, the controller 250 can wake up the display device 200 according to the wake-up instruction. If the matching degree is less than the preset matching degree threshold, it means that the user speaks the wrong wake-up word audio and cannot wake up the display device 200.
[0102] Based on the above scenario, in order to improve the interaction efficiency of the display device 200, the user can continue to speak the control command immediately after speaking the wake-up command. The display device 200 can first respond to the wake-up command, switch from the standby mode to the working mode, and then continue to respond to the control command and execute the corresponding interaction effect.
[0103] In order to distinguish from other users, this embodiment defines the user who continuously speaks the wake-up command and the control command as the target user. When the display device 200 is in a noisy environment, the audio corresponding to the noise or the control commands issued by other users at the same time will overlap with the audio of the control commands issued by the target user, affecting the display device 200's recognition effect of the control commands issued by the target user, thereby executing the wrong control commands and reducing the accuracy of command recognition.
[0104] In order to accurately identify control instructions, the display device 200 can register the voiceprint vector input by the target user. When the display device 200 is in an environment where multiple users are speaking, the control instructions issued by the target user can be identified through the voiceprint vector of the target user to perform corresponding interactive actions. However, this instruction recognition method requires the target user to register and interact with the display device 200 for voiceprints, and cannot be quickly applied to unregistered users. In addition, when the display device 200 obtains voice audio of multiple registered users, it cannot accurately extract effective control instructions.
[0105] Some embodiments of the present application provide a display device 200 to improve the recognition accuracy of voice control commands issued by a user without registering a voiceprint. The display device 200 includes a display 260, a memory, a sound collector, and a controller 250, wherein the display 260 is used to display a user interface. The memory is used to store a speech extraction model, which is trained based on sample data, and the sample data includes wake-up word audio and instruction word audio from the same sound source. The sound collector is used to obtain audio data. The controller 250 is configured to execute a command recognition method based on a wake-up word voiceprint.
[0106] Figure 5 A flowchart of a method for command recognition based on wake-up word voiceprint provided in an embodiment of the present application. Figure 5 , the method comprises the following contents:
[0107] S100: After obtaining the audio to be extracted through the sound collector, the wake-up word audio is identified in the audio to be extracted through the speech extraction model.
[0108] After the display device 200 switches to the standby mode, the sound collector can be started to obtain audio data of the area where the display device 200 is located, that is, the audio to be extracted. The display device 200 can recognize the wake-up word audio in the audio to be extracted through the speech recognition model.
[0109] In the process of recognizing the wake-up word audio, the speech recognition model can perform characteristic sound detection on the audio to be extracted to determine the wake-up word audio in the audio to be extracted, wherein the characteristic sound can include the voice signal of a specific instruction word, a sound event, etc. Taking the characteristic sound as a human voice signal as an example, when the display device 200 detects that the audio to be extracted includes human voice audio, the human voice audio can be extracted and the audio text of the human voice audio can be voice recognized, and the display device 200 is awakened according to the matching degree between the audio text and the wake-up word text. When the matching degree is greater than or equal to the matching degree threshold, the display device 200 can add a wake-up mark to the human voice audio to indicate that the human voice audio is the wake-up word audio. When the matching degree is less than the matching degree threshold, it means that the user has said the wrong wake-up word content, or because the noise in the area where the display device 200 is located is large, the output audio text does not match the wake-up word text, resulting in failure to wake up the display device 200.
[0110] After the human voice audio is recognized by the speech extraction model, noise reduction processing can also be performed on the human voice audio, for example, beam suppression is performed on the human voice audio to enhance the human voice signal in the same receiving direction as the sound collector to reduce the interference of other noise signals outside the receiving direction. The display device 200 can also perform noise analysis on the human voice audio during the noise reduction process to obtain an analysis result. The analysis result may include noise types, for example, background noise, such as noise emitted by a cooling device inside the display device 200, environmental noise, such as echoes generated in the area where the display device 200 is located, or attenuation of sound signals according to distance. In order to improve the accuracy of extracting human voice audio, the display device 200 can also perform corresponding noise reduction processing operations on the audio to be extracted when obtaining the audio to be extracted.
[0111] S200: Extracting the target voiceprint vector of the wake-up word audio through the speech extraction model.
[0112] After recognizing the wake-up word audio, the display device 200 can extract the target voiceprint vector of the wake-up word audio through the speech extraction model to distinguish the user corresponding to the target voiceprint vector from other users.
[0113] In the process of extracting voiceprint vectors, the speech extraction model can extract the voiceprint features of the wake-up word audio. The voiceprint features may include the pitch, timbre, volume, speaking speed, pronunciation habits, etc. After obtaining the voiceprint features, the target voiceprint vector can be generated according to the voiceprint features.
[0114] S300: Extracting target instruction word audio from the audio to be extracted according to the target voiceprint vector.
[0115] The target command word audio is a command word audio whose similarity between the voiceprint vector and the target voiceprint vector is greater than or equal to the similarity threshold. After recognizing the wake-up word audio, the display device 200 has switched from the standby mode to the working mode, and at this time, the display device 200 can recognize the command word audio.
[0116] like Figure 6As shown, when the instruction word audio is recognized, in order to determine the sound source of the instruction word audio, the display device 200 can extract the voiceprint vector of the instruction word audio and calculate the similarity between the voiceprint vector of the instruction word audio and the target voiceprint vector. When the similarity is greater than or equal to the similarity threshold, it can be determined that the instruction word audio and the wake-up word audio are from the same sound source, and the instruction word audio is the target instruction word audio, thereby reducing the display device 200 responding to other instruction word audios other than the target instruction word audio, and improving the accuracy of the display device 200 in extracting instructions. The audio to be extracted may include multiple instruction word audios. The target voiceprint vector can be used to extract the instruction word audio that is the same or similar to the voiceprint vector of the wake-up word and respond as the target instruction word audio. For instruction word audios that are less than the similarity threshold, the display device 200 can refuse to respond.
[0117] S400: Generate a control instruction according to the target instruction word audio, and, in response to the control instruction, control the display to display a target user interface after executing the control instruction.
[0118] The display device 200 can input the target instruction word audio into the speech recognition model to output the audio text of the target instruction word audio through the speech recognition model, and parse the semantic keywords of the audio text, so as to generate the corresponding control instruction according to the semantic keywords. The display device 200 can respond to the control instruction and display the target user interface after executing the control instruction.
[0119] For example, the target instruction word audio is "please play a song". After performing speech recognition on the target instruction word audio, the semantic keywords "play" and "song" of the audio text "please play a song" are parsed, and an audio play instruction is generated according to the semantic keywords "play" and "song". In response to the audio play instruction, the display device 200 runs the audio player program, synchronously generates an audio play interface, and controls the display 260 to display the audio play interface.
[0120] In some embodiments, Figure 7 As shown, the user can speak the wake-up word audio and the instruction word audio continuously, that is, the display device 200 can extract the target voiceprint vector before waking up or in the wake-up instruction process when determining that the audio text of the wake-up word audio corresponds to the wake-up word audio, and identify the target instruction word audio according to the target voiceprint vector to generate a control instruction, so that after the display device 200 is fully awakened, it directly responds to the control instruction generated by the target instruction word audio, reducing the time to generate instructions and improving the efficiency of instruction response. The user can also speak the wake-up word audio first, so that the display device 200 switches from standby mode to working mode before speaking the instruction word audio, that is, when the display device 200 is fully awakened, it identifies the target instruction word audio according to the target voiceprint vector.
[0121] In the above process, if the speech extraction model of the display device 200 wants to achieve the technical effect in the above embodiment, it is also necessary to perform a specific training process on it.
[0122] In some embodiments, the speech extraction model may include a first module, the first module is used to extract a target voiceprint vector of the wake-up word audio. The first module includes an encoder and a voiceprint extractor, the encoder is used to encode the wake-up word audio to output the wake-up word audio code.
[0123] During the encoding process, the encoder can obtain the spectral features and time domain information in the wake-up word audio, and extract the acoustic features in the wake-up word audio based on the spectral features and time domain information, such as Mel-frequency cepstral coefficients (MFCC), linear prediction coefficients (LPC), etc. After obtaining the acoustic features, the encoder can encode the acoustic features to learn the acoustic relationship between the acoustic features, and map the acoustic relationship to a low-dimensional vector space to obtain the wake-up word audio encoding.
[0124] The voiceprint encoder can extract dependencies between sequences of wake-up word audio codes, wherein the voiceprint encoder includes a preset number of attention mechanism modules, and the attention mechanism modules are used to extract dependencies between the wake-up word audio codes.
[0125] In some embodiments, the attention mechanism module can extract the causal dependency of the wake-up word audio encoding through the causal attention mechanism, and generate the target voiceprint vector based on the causal dependency. To this end, the attention mechanism module can include a casual-transformer and a relu activation function, wherein the casual-transformer can perform streaming reasoning on the wake-up word audio encoding by obtaining the causality between the current sequence and the previous sequence of the wake-up word audio encoding, so as to extract the causal dependency of the wake-up word audio encoding in real time, and generate the target voiceprint vector based on the causal dependency, thereby improving the real-time and accuracy of the target voiceprint vector extraction. The relu activation function is used to add nonlinear characteristics to alleviate the problem of gradient disappearance when obtaining causal dependencies.
[0126] The training process of the speech extraction model also includes the training process of the first module. Figure 8 This is a network structure diagram of the first module in the embodiment of the present application. Fig. 9 This is a training flow chart of the first module in the embodiment of this application. Figure 8 and Fig. 9 , the display device 200 is further configured to perform the following method during the process of training the speech extraction model:
[0127] 5001: Obtain a sample data set, where the sample data set is used to train a speech extraction model. The sample data set may include a sample wake-up word audio, a sample command word audio, and an interference command word audio, wherein the sample wake-up word audio and the sample command word audio are derived from the same sound source, and the interference command word audio is derived from other sound sources different from the sample wake-up word audio.
[0128] The sample wake-up word audio, sample instruction word audio and interference instruction word audio can be obtained from the historical voice records of the display device 200, or can be obtained by pre-recording. In order to distinguish between two different sound sources, different character recording sample data sets can be used. For example, the sample wake-up word audio and the sample instruction word audio are recorded by the first character, and the interference word audio is recorded by the second character. The voiceprint similarity between the voiceprint features of the first character and the voiceprint features of the second task can be less than the first voiceprint similarity threshold, or the voiceprint similarity between the voiceprint features of the first character and the voiceprint features of the second task can also be greater than the voiceprint similarity threshold, so as to train the voice extraction model to have the ability to distinguish between similar voiceprint features and different voiceprint features.
[0129] 5002: Extract the voiceprint vectors of the sample wake-up word audio, the sample command word audio and the interference command word audio respectively through the first module to be trained to obtain the wake-up word voiceprint vector, the command word voiceprint vector and the interference word voiceprint vector.
[0130] The first module to be trained is a first module that has not been trained to convergence and has the same neural network structure as the first module. The first module to be trained can continuously update the model parameters of the first module during the training process of the speech extraction model.
[0131] In some embodiments, the first module to be trained includes an encoder and a voiceprint extractor. During the training process, the encoder can encode the input sample wake-up word audio, sample instruction word audio, and interference instruction word audio respectively to obtain the sample wake-up word code, sample instruction word code, and interference instruction word code, and then extract the voiceprint vectors of the sample wake-up word code, sample instruction word code, and interference instruction word code through the voiceprint extractor to obtain the wake-up word voiceprint vector, instruction word voiceprint vector, and interference word voiceprint vector. Among them, the encoding process of the sample wake-up word audio, sample instruction word audio, and interference instruction word audio can refer to the encoding process of the first module in the application process of the speech extraction model, and the embodiments of this application will not be repeated.
[0132] 5003: Calculate a first similarity value between the wake-up word voiceprint vector and the instruction word voiceprint vector according to a first loss function, and calculate a second similarity value between the wake-up word voiceprint vector and the interference word voiceprint vector according to the first loss function.
[0133] After extracting the wake-up word voiceprint vector, the instruction word voiceprint vector, and the interference word voiceprint vector, the first loss function can be used to determine the ability of the first module to be trained to extract voiceprint vectors.
[0134] In some embodiments, the first loss function may be a triplet loss function, which may reduce the distance between voiceprint vectors of the same category in the embedding space and increase the distance between voiceprint vectors of different categories in the embedding space during voiceprint extraction. The embedding space may be a low-dimensional vector space, which includes multiple data points, each of which is mapped to a vector, and these vectors are used to capture key features and semantic information in the sample data set.
[0135] The triplet loss function is expressed as follows:
[0136] L=max(d(a,p)-d(a,n)+margin,0);
[0137] Among them, L is the triplet loss function. The input of the triplet loss function is a triplet, including an anchor example (Anchor), a positive example (Positive), and a negative example (Negative). a is the anchor example, which is a sample used as a reference, that is, the wake-up word voiceprint vector; p is a positive example, which is a sample of the same voiceprint category as a, that is, the command word voiceprint vector; n is a negative example, which is a sample of a different voiceprint category, that is, the interference word voiceprint vector, and margin is a constant greater than 0.
[0138] In some embodiments, in order to improve the calculation efficiency of the triplet loss function during the training process, the first module to be trained can calculate the first similarity value between the wake-up word voiceprint vector and the instruction word voiceprint vector through the triplet loss function, and calculate the second similarity value between the wake-up word voiceprint vector and the interference word voiceprint vector through the triplet loss function. In the sample data set, the sample wake-up word audio and the sample instruction word audio are derived from the same sound source, so the first similarity value is used to represent the distance between the wake-up word voiceprint vector and the instruction word voiceprint vector in the embedding space. The sample wake-up word audio and the interference instruction word audio are derived from different sound sources, so the second similarity value is used to represent the distance between the wake-up word voiceprint vector and the interference word instruction vector in the embedding space.
[0139] 5004: When the first similarity value is greater than the second similarity value, output the model parameters of the first module according to the current training parameters of the first module to be trained.
[0140] During the training of the first module to be trained, the triplet loss function will reduce the distance between the wake-up word voiceprint vector and the instruction word voiceprint vector in the embedding space according to the training progress, that is, increase the first similarity value. At the same time, the triplet loss function will increase the distance between the wake-up word voiceprint vector and the interference word voiceprint vector in the embedding space, that is, reduce the second similarity value.
[0141] When the first similarity value is greater than the second similarity value, it means that the first module to be trained can distinguish the wake-up word voiceprint vector and the instruction word voiceprint vector from the mixed audio of the sample wake-up word audio, the sample instruction word audio and the interference instruction word audio according to the voiceprint vector, and distinguish the interference word voiceprint vector, and the controller 250 can output the model parameters of the first module according to the current training parameters of the first module to be trained. When the first module is set with preferred model parameters, when the first similarity value is greater than the second similarity value, the controller 250 can also continue to perform iterative training on the first module to be trained according to the preferred model parameters to improve the performance of the first module.
[0142] When the first similarity value is less than or equal to the second similarity value, the current parameters of the first module to be trained cannot classify and distinguish the voiceprint vectors. Therefore, the controller 250 can perform iterative training on the first module to be trained to update the model parameters of the first model to be trained.
[0143] In some embodiments, the speech extraction model also includes a second module, which is used to extract the target instruction word audio from the audio to be extracted according to the target voiceprint vector. The second module includes an encoder, a learner, a voiceprint extractor and a decoder, wherein the learner can be a Mask learner, which is a model trained by masking part of the information of the input data to learn the structure of the audio data and improve the training efficiency of the speech extraction model. The Mask learner may include the casual-transformer and relu activation functions in the voiceprint extractor. The structural features and implementation methods of the casual-transformer and relu activation functions can be found in the aforementioned part, and this application will not go into details.
[0144] The training process of the speech extraction model also includes the training process of the second module. During the training process, the object to be executed is the second module to be trained, that is, the second module that has not been trained to convergence. The second module to be trained has the same neural network structure as the second module, such as Fig.10 As shown, during the training process of the second module, the controller 250 is further configured to:
[0145] The sample wake-up word audio, the sample command word audio and the interference command word audio in the sample data set are obtained, and the above audios are superimposed to obtain the superimposed sample audio.
[0146] Among them, since the sample wake-up word audio and the sample instruction word audio are continuous audio, during the superposition process, the controller 250 can superimpose the interference instruction word audio on the sample wake-up word audio and the sample instruction word audio. The interference instruction word audio can be superimposed only with the sample wake-up word audio, or only with the sample instruction word audio, or superimposed at the interval position between the sample wake-up word audio and the sample instruction word audio, that is, superimposed with part of the audio of the sample wake-up word audio and part of the audio of the sample instruction word audio at the same time.
[0147] In some embodiments, the controller 250 can superimpose the first number of interfering instruction word audios with the second number of sample wake-up word audios and the second number of sample instruction word audios according to the signal-to-noise ratio. The signal-to-noise ratio is the ratio of a sound signal to a noise signal. The larger the signal-to-noise ratio, the smaller the noise in the sound signal, and the smaller the signal-to-noise ratio, the greater the noise in the sound signal. In this embodiment, the signal-to-noise ratio is used to represent the ratio of the interfering instruction word audio in the sample wake-up word audio and the sample instruction word audio. The controller 250 can select the signal-to-noise ratio within a preset signal-to-noise ratio range, where the unit of the signal-to-noise ratio is decibel (dB). For example, the signal-to-noise ratio range can be 0dB, 5dB, 10dB, 15dB, 20dB, 25dB and other numerical ranges.
[0148] According to the signal-to-noise ratio, the controller 250 can determine the superposition amount of the interfering instruction word audio, that is, the first amount, according to the sample amount of the sample wake-up word audio and the sample instruction word audio, that is, the second amount. For example, when the signal-to-noise ratio is 10dB, it means that the proportion of the interfering instruction word audio in the sample wake-up word audio and the sample instruction word audio is 0.1, that is, the sample amount of the sample wake-up word audio and the sample instruction word audio is ten times the superposition amount of the interfering instruction word audio. The controller 250 can superimpose the sample wake-up word audio, the sample instruction word audio, and the interfering instruction word audio according to the superposition amount to obtain the superimposed sample audio.
[0149] In some embodiments, in addition to the interference instruction word audio, the noise audio can also be superimposed with the sample wake-up word audio and the sample instruction word audio according to the signal-to-noise ratio. The noise audio can be the echo noise of the far-field simulation, the house impulse response noise, or the internal device noise of the display device 200. The controller 250 can superimpose the interference instruction word audio and the noise audio on the sample wake-up word audio and the sample instruction word audio as a whole, wherein the superposition method of the noise audio can be added as a whole, that is, the noise audio is added synchronously according to the audio track of the sample wake-up word audio and the sample instruction word audio. The noise audio can also perform the same superposition method as the interference instruction word audio, which is not repeated in this application.
[0150] After obtaining the superimposed audio, the controller 250 may encode the superimposed sample audio through an encoder to obtain the superimposed audio code, and extract the voiceprint vector of the superimposed audio code through a voiceprint extractor to obtain the superimposed voiceprint vector. The implementation method and technical effect of extracting the superimposed voiceprint vector can refer to the aforementioned voiceprint vector extraction process, which will not be described in detail in this embodiment.
[0151] In order to improve the training convergence speed of the second module to be trained and increase the prediction accuracy of the second module to be trained, the Teaching Force training strategy can be adopted in the process of training the second module to be trained, that is, in the training process, prediction is made based on real data to make the training process more stable.
[0152] Exemplarily, the wake-up word voiceprint vector is used as real data. During the training process of the second module to be trained, the controller 250 can input the superimposed voiceprint vector into the first learner, and at the same time, the wake-up word voiceprint vector extracted during the training of the first module is synchronously input into the first learner as real data. The first learner is configured to filter out other voiceprint vectors except the wake-up word voiceprint vector in the superimposed voiceprint vector to enhance the wake-up word voiceprint vector in the superimposed voiceprint vector, reduce the influence of other voiceprint vectors and noise on the wake-up word voiceprint vector, and thus output the first learner vector.
[0153] The second module to be trained can perform a product calculation on the superimposed sample audio and the first learner vector to extract a training instruction word vector from the superimposed sample audio according to the first learner vector, and decode the training instruction word vector through a decoder to obtain the training instruction word audio.
[0154] After obtaining the training instruction word audio, the controller 250 can calculate the loss value of the training instruction word audio and the instruction word label through the second loss function, and the instruction word label represents the true value of the instruction word audio, which is used to judge the training performance of the second module to be trained. In some embodiments, the second loss function can be a SI-SNR loss function, and the expression of the SI-SNR loss function is shown as follows:
[0155]
[0156] in, is the training instruction word audio, s is the sample instruction word audio, and T is the transposed symbol.
[0157] If the loss value is greater than or equal to the judgment threshold, it means that the second module to be trained obtains the training instruction word audio to meet the output standard, and the controller 250 can output the model parameters of the second module according to the current training parameters of the first learner. If the loss value is less than the judgment threshold, it means that the second module to be trained obtains the training instruction word audio to meet the output standard, and the controller 250 iteratively trains the second module to be trained.
[0158] In some embodiments, since the sample instruction word audio and the sample wake-up word audio come from the same sound source, the controller 250 can also input the superimposed voiceprint vector and the instruction word voiceprint vector into the second learner, wherein the second learner is the same as the first learner, and the second module can include a learner, that is, the second learner is the first learner, or it can include two learners to execute the Teaching Force training strategy according to the wake-up word voiceprint vector and the instruction word voiceprint vector respectively.
[0159] The second learner is configured to filter out other voiceprint vectors except the instruction word voiceprint vector in the superimposed voiceprint vector, thereby outputting a second learner vector. The second module to be trained can perform calculations based on the second learner vector and the superimposed samples to obtain the training instruction word audio. The steps of obtaining the training instruction word audio can refer to the aforementioned embodiment of obtaining the training instruction word audio based on the superimposed sample audio and the first learner vector, and this application will not go into details.
[0160] The controller 250 can calculate the loss value of the training instruction word audio and the instruction word label according to the second loss function. If the loss value is greater than or equal to the judgment threshold, it means that the second module to be trained obtains the training instruction word audio to meet the output standard, and then outputs the model parameters of the second module according to the current training parameters of the second learner. If the loss value is less than the judgment threshold, iteratively train the second module to be trained.
[0161] In some embodiments, Fig.11 As shown, the model parameters of the speech extraction module can be adjusted according to the weight value of the loss function. To this end, the controller 250 can also set the first weight value of the first loss function and the second weight value of the second loss function. In the process of allocating weight values, the controller 250 can evenly allocate weights, that is, the first weight value and the second weight value are equal, and manually adjust the weights or adaptively adjust the weights to determine the first weight value and the second weight value.
[0162] After setting the first weight value and the second weight value, the controller 250 performs weighted summation on the first loss function and the second loss function according to the first weight value and the second weight value, and obtains the weighted summation result. It should be noted that the speech extraction model performs multi-task training during the training process, and in addition to the training process of the first module and the second module, other training processes may also be included. Therefore, in addition to the first loss function and the second loss function, other loss functions may also be included. For example, the speech extraction model may also be cascaded with the ASR model (ASR, Automatic Speech Recognition, automatic speech recognition). During the cascade training process, the controller 250 may also perform adjustment on the weighted summation result of the first loss function and the second loss function according to the third loss function of the ASR model, so as to update the training parameters of the first module and the training parameters of the second module according to the weighted summation result. The third loss function may be one of a plurality of loss functions, for example, a CTC loss function, a mean square error loss function, or an absolute value error loss function.
[0163] In some embodiments, the encoder can also be a multi-scale encoder, which can extract audio features from different scales to achieve multi-scale encoding. The multi-scale encoder includes a convolutional layer for extracting local features of audio data. Since the speech extraction model includes multiple encoding processes during the training process and the application process, the embodiment of the present application only uses the process of encoding the wake-up word audio by the speech extraction model during the application process as an exemplary illustration. Other encoding processes can refer to each other, and the embodiment of the present application will not be repeated.
[0164] The convolution layer of the multi-scale encoder may include multiple convolution kernels. The convolution layer can extract local audio features of the wake-up word audio through multiple convolution kernels, and fuse the local audio features through weighted summation, attention mechanism or splicing to complete the encoding process of the wake-up word audio.
[0165] In some embodiments, Fig.12 As shown, the convolution layer includes a first convolution kernel, a second convolution kernel, and a third convolution kernel, wherein the first convolution kernel is larger than the second convolution kernel, the second convolution kernel is larger than the third convolution kernel, and the convolution layer can extract the long-term audio features of the wake-up word audio through the first convolution layer, extract the medium-term audio features of the wake-up word audio through the second convolution layer, and extract the short-term audio features of the wake-up word audio through the third convolution layer. By setting convolution kernels of different sizes, local features of different scales are focused on during the convolution process, thereby improving the accuracy of the speech extraction model in acquiring audio features.
[0166] After completing the extraction of long-time audio features, medium-time audio features and short-time audio features, the convolution layer encodes the long-time audio features, medium-time audio features and short-time audio features respectively, and concatenates the codes to obtain long-time audio codes, medium-time audio codes and short-time audio codes, thereby obtaining the wake-up word audio code.
[0167] In some embodiments, in the process of extracting the training instruction word audio according to the first learner vector, the controller 250 is further configured to obtain multi-scale features of the superimposed sample audio through a multi-scale encoder, wherein the multi-scale features include long-time audio features, medium-time audio features, and short-time audio features, thereby calculating the product of the multi-scale features and the first learner vector to obtain a multi-scale audio vector. After obtaining the multi-scale audio vector, the controller 250 can perform a transposed convolution on the multi-scale audio vector through a decoder to perform a decoding operation on the multi-scale audio vector to obtain a time domain audio signal, thereby generating the training instruction word audio.
[0168] Some embodiments of the present application also provide a method for command recognition of wake-up word voiceprint, which is applied to a display device 200. The display device 200 should at least include a display 260, a memory, a sound collector and a controller 250. The display 260 is used to display a user interface, and the memory is used to store a voice extraction model. The voice extraction model is trained based on sample data, and the sample data includes a wake-up word audio and a command word audio from the same sound source; the sound collector is configured to obtain audio data, and the method includes:
[0169] S100: After obtaining the audio to be extracted through the sound collector, identifying the wake-up word audio in the audio to be extracted through the speech extraction model;
[0170] S200: Extracting a target voiceprint vector of the wake-up word audio by using the voice extraction model;
[0171] S300: extracting a target instruction word audio from the audio to be extracted according to the target voiceprint vector;
[0172] The target instruction word audio is an instruction word audio whose voiceprint vector has a similarity with the target voiceprint vector that is greater than or equal to a similarity threshold;
[0173] S400: Generate a control instruction according to the target instruction word audio, and, in response to the control instruction, control the display to display a target user interface after executing the control instruction.
[0174] It can be seen from the above technical solutions that the present application provides a display device and a command recognition method based on a wake-up word voiceprint, wherein the method obtains the audio to be extracted through a sound collector, identifies the wake-up word audio in the audio to be extracted through a voice extraction model, extracts the target voiceprint vector of the wake-up word audio through the voice extraction model, extracts the target command word audio from the audio to be extracted according to the target voiceprint vector, generates a control instruction according to the target command word audio, and, in response to the control instruction, controls the display to display the target user interface after executing the control instruction. By identifying the voiceprint vector corresponding to the wake-up word audio, and obtaining the valid command word audio based on the voiceprint vector to generate the corresponding control instruction, the interference of other command word audio in the audio to be extracted on the valid command word audio is reduced, thereby improving the accuracy of the display device in recognizing commands.
[0175] The same and similar parts between the various embodiments in this specification can be referenced to each other and will not be described again here.
[0176] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention or certain parts of the embodiments.
[0177] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0178] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.
Claims
1. A display device, characterized in that: include: A display, for displaying a user interface; A memory, used to store a speech extraction model, wherein the speech extraction model is trained based on sample data, wherein the sample data includes a wake-up word audio and a command word audio from the same sound source; A sound collector is configured to obtain audio data; The controller is configured as: After acquiring the audio to be extracted through the sound collector, identifying the wake-up word audio in the audio to be extracted through the speech extraction model; Extracting a target voiceprint vector of the wake-up word audio through the voice extraction model; Extracting a target instruction word audio from the audio to be extracted according to the target voiceprint vector, wherein the target instruction word audio is an instruction word audio whose voiceprint vector has a similarity with the target voiceprint vector greater than or equal to a similarity threshold; A control instruction is generated according to the target instruction word audio, and, in response to the control instruction, the display is controlled to display a target user interface after executing the control instruction.
2. The display device according to claim 1, characterized in that The speech extraction model includes a first module, wherein the first module is configured to extract a target voiceprint vector of the wake-up word audio, and the controller is further configured to: Acquire a sample data set, wherein the sample data set includes a sample wake-up word audio, a sample command word audio, and an interference command word audio; The first to-be-trained module is used to respectively extract the voiceprint vectors of the sample wake-up word audio, the sample instruction word audio, and the interference instruction word audio to obtain a wake-up word voiceprint vector, an instruction word voiceprint vector, and an interference word voiceprint vector; Calculating a first similarity value between the wake-up word voiceprint vector and the instruction word voiceprint vector according to a first loss function, and calculating a second similarity value between the wake-up word voiceprint vector and the interference word voiceprint vector according to the first loss function; When the first similarity value is greater than the second similarity value, the model parameters of the first module are output according to the current training parameters of the first module to be trained.
3. The display device according to claim 2, characterized in that The speech extraction model further includes a second module, which is configured to extract a target instruction word audio from the audio to be extracted according to the target voiceprint vector, and the controller is further configured to: Superimposing the sample wake-up word audio, the sample instruction word audio and the interference instruction word audio to obtain a superimposed sample audio; Extracting the superimposed voiceprint vector of the superimposed sample audio; Inputting the superimposed voiceprint vector and the wake-up word voiceprint vector into a first learner, and outputting the first learner vector through the first learner, wherein the first learner is configured to filter out other voiceprint vectors except the wake-up word voiceprint vector in the superimposed voiceprint vector; extracting training instruction word audio from the superimposed sample audio according to the first learner vector; Calculate the loss value of the training instruction word audio and the instruction word label according to a second loss function; If the loss value is greater than or equal to the determination threshold, the model parameters of the second module are output according to the current training parameters of the first learner.
4. The display device according to claim 3, characterized in that After the controller executes the step of extracting the superimposed voiceprint vector of the superimposed sample audio, the controller is further configured to: Inputting the superimposed voiceprint vector and the instruction word voiceprint vector into a second learner, and outputting a second learner vector through the second learner, wherein the second learner is configured to filter out other voiceprint vectors except the instruction word voiceprint vector in the superimposed voiceprint vector; extracting training instruction word audio from the superimposed sample audio according to the second learner vector; Calculate the loss value of the training instruction word audio and the instruction word label according to a second loss function; If the loss value is greater than or equal to the determination threshold, the model parameters of the second module are output according to the current training parameters of the second learner.
5. The display device according to claim 3, characterized in that The controller is also configured to: Setting a first weight value of the first loss function and a second weight value of the second loss function; Performing weighted summation on the first loss function and the second loss function according to the first weight value and the second weight value to obtain a weighted summation result; The training parameters of the first module and the training parameters of the second module are updated according to the weighted summation result.
6. The display device according to claim 3, characterized in that The controller performs superposition of the sample wake-up word audio, the sample instruction word audio and the interference instruction word audio, and is configured as follows: Set the signal-to-noise ratio; Determine, according to the signal-to-noise ratio, the amount of superposition of the interfering instruction word audio based on the sample amounts of the sample wake-up word audio and the sample instruction word audio; The sample wake-up word audio, the sample instruction word audio and the interference instruction word audio are superimposed according to the superposition amount.
7. The display device according to claim 2, characterized in that The first module includes an encoder and a voiceprint extractor, and the controller is further configured to: Encode the wake-up word audio by the encoder to obtain the wake-up word audio code; The causal dependency of the wake-up word audio encoding is extracted by the voiceprint encoder, and the target voiceprint vector is obtained according to the causal dependency.
8. The display device according to claim 7, characterized in that The controller executes encoding of the wake-up word audio by the encoder, and is configured to: Setting a first convolution kernel, a second convolution kernel and a third convolution kernel in a convolution layer of the encoder, wherein the first convolution kernel is larger than the second convolution kernel, and the second convolution kernel is larger than the third convolution kernel; Extracting long-time audio features of the wake-up word audio through the first convolution kernel, extracting medium-time audio features of the wake-up word audio through the second convolution kernel, and extracting short-time audio features of the wake-up word audio through the third convolution kernel; Encoding the long-time audio features, medium-time audio features and short-time audio features to obtain long-time audio codes, medium-time audio codes and short-time audio codes; The long-time audio code, the medium-time audio code and the short-time audio code are concatenated to obtain the wake-up word audio code.
9. The display device according to claim 3, characterized in that: The controller executes extracting the training instruction word audio from the superimposed sample audio according to the first learner vector, and is configured to: Acquire multi-scale features of the superimposed sample audio; Calculating the product of the multi-scale feature and the first learner vector to obtain a multi-scale audio vector; Performing transposed convolution on the multi-scale audio vector to obtain a time-domain audio signal; The training instruction word audio is generated according to the time domain audio signal.
10. A command recognition method based on wake-up word voiceprint, characterized in that: Applied to a display device, the display device includes a display, a memory, a sound collector and a controller, the display is used to display a user interface, the memory is used to store a speech extraction model, the speech extraction model is trained according to sample data, and the sample data includes a wake-up word audio and a command word audio from the same sound source; The sound collector is configured to acquire audio data, and the method comprises: After acquiring the audio to be extracted through the sound collector, identifying the wake-up word audio in the audio to be extracted through the speech extraction model; Extracting a target voiceprint vector of the wake-up word audio through the voice extraction model; Extracting a target instruction word audio from the audio to be extracted according to the target voiceprint vector, wherein the target instruction word audio is an instruction word audio whose voiceprint vector has a similarity with the target voiceprint vector greater than or equal to a similarity threshold; A control instruction is generated according to the target instruction word audio, and, in response to the control instruction, the display is controlled to display a target user interface after executing the control instruction.
Citation Information
Cited By
Voice interaction method and related equipment
CN119380728A
