Display device and voice recognition method
By constructing and loading dynamic decoding graphs in speech recognition, new word collections are used to improve new word recognition speed, solve the problem of slow new word processing speed, and improve recognition accuracy and user experience.
Patent Information
- Application Number
- CN202410797978.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
During the speech recognition process, new words are processed slowly, resulting in a reduced user experience.
By constructing the first decoding map and the second decoding map, dynamically constructing the decoding map using category symbols, loading new word sets and inserting the decoding map during decoding, the recognition accuracy and speed of specific entities in specific sentence patterns are improved.
It achieves rapid recognition of new words in speech recognition, improves recognition speed and accuracy, and improves user experience.
Smart Images

Figure CN118828083A_ABST
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 speech recognition method. Background Art
[0002] Display devices are intelligent devices that can present user interfaces and support user interaction. Taking smart TVs as an example, smart TVs are based on Internet application technology, have open operating systems and chips, have open application platforms, can realize two-way human-computer interaction functions, and are TV products that integrate multiple functions such as audio and video, entertainment, and data to meet the diverse and personalized needs of users. Display devices can support voice interaction. Voice interaction refers to the process of information transmission between users and display devices through natural language to control the display device to perform interactive feedback.
[0003] During the voice interaction process, the display device can first obtain the voice data input by the user, then use the acoustic model and language model to process the voice data to identify the semantic information corresponding to the voice data, and then match the response instructions based on the semantic information, execute the response instructions and feedback the response results.
[0004] Among them, for temporary unregistered words, such as some recent hot words and proper nouns, the display device can collect relevant corpus and new words, retrain the language model, modify the dictionary and regenerate relevant resources, and then perform speech recognition online after re-construction. If the language model retraining time is relatively long, you can use the newly added corpus to train a small-scale language model, and then interpolate with the original language model to generate a new language model to identify the accuracy. However, the new word recognition method of retraining the language model has many resource changes and slow processing speed, which reduces the user experience. Summary of the invention
[0005] Embodiments of the present application provide a display device and a speech recognition method to solve the problem of slow processing speed of new words during speech recognition.
[0006] On the one hand, some embodiments of the present application provide a display device, including: a display, a sound collector, and a controller. The display is configured to display a user interface; the sound collector is configured to detect voice data input by a user; and the controller is configured to:
[0007] Responding to the voice interaction instruction, acquiring voice data;
[0008] Based on a first decoding graph, decoding is performed on the speech data to obtain a first decoding result, wherein an input label of at least one middle arc in the first decoding graph is set to a category symbol;
[0009] If the first decoding result includes a target path, a second decoding graph is loaded, wherein the target path is a path including an intermediate arc corresponding to the category symbol; and the second decoding graph is a decoding graph constructed by performing an expansion on the category symbol based on a new word set;
[0010] Based on the second decoding graph, decoding the speech data to obtain a second decoding result;
[0011] The first decoding result and the second decoding result are concatenated to obtain an optimal decoding path, wherein the optimal decoding path includes a word sequence with the highest probability of recognizing the speech data.
[0012] On the other hand, some embodiments of the present application provide a speech recognition method, applied to a display device, the speech recognition method comprising:
[0013] Responding to the voice interaction instruction, acquiring voice data;
[0014] Based on a first decoding graph, decoding is performed on the speech data to obtain a first decoding result, wherein an input label of at least one middle arc in the first decoding graph is set to a category symbol;
[0015] If the first decoding result includes a target path, a second decoding graph is loaded, wherein the target path is a path including an intermediate arc corresponding to the category symbol; and the second decoding graph is a decoding graph constructed by performing an expansion on the category symbol based on a new word set;
[0016] Based on the second decoding graph, decoding the speech data to obtain a second decoding result;
[0017] The first decoding result and the second decoding result are concatenated to obtain an optimal decoding path, wherein the optimal decoding path includes a word sequence with the highest probability of recognizing the speech data.
[0018] It can be seen from the above technical solutions that some embodiments of the present application provide a display device and a speech recognition method, which can obtain speech data in response to a speech interaction instruction. Based on the first decoding graph, the speech data is decoded to obtain a first decoding result. If the first decoding result contains a target path containing an intermediate arc corresponding to a category symbol, the second decoding graph is loaded, and based on the second decoding graph, the speech data is decoded to obtain a second decoding result; then the first decoding result and the second decoding result are spliced to obtain the optimal decoding path. Among them, the input label of at least one intermediate arc in the first decoding graph is set to a category symbol. The second decoding graph is a decoding graph constructed by extending the category symbol based on a new word set. The method can dynamically construct a decoding graph based on the current new word set, and dynamically insert a decoding graph during decoding to improve the recognition accuracy and recognition speed of a specific entity in a specific sentence. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] 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.
[0020] Figure 1 A schematic diagram showing usage scenarios of a display device in some embodiments of the present application;
[0021] Figure 2 A hardware configuration block diagram of a display device provided in some embodiments of the present application;
[0022] Figure 3 A schematic diagram of software configuration in a display device provided in some embodiments of the present application;
[0023] Figure 4 A schematic diagram of a voice interaction process provided for some embodiments of the present application;
[0024] Figure 5 A flowchart of a speech recognition method provided in some embodiments of the present application;
[0025] Figure 6 A schematic diagram of a second decoding diagram provided in some embodiments of the present application;
[0026] Figure 7 A schematic diagram of a process for obtaining text information through an interface configuration file provided in some embodiments of the present application;
[0027] Figure 8 A schematic diagram of a process for obtaining text information through OCR screenshots provided in some embodiments of the present application;
[0028] Fig. 9 A schematic diagram of a multi-round voice dialogue interaction process provided in some embodiments of the present application;
[0029] Fig.10 A schematic diagram of the processEmitting flow in a decoder provided in some embodiments of the present application;
[0030] Fig.11 A schematic diagram of the processNonEmitting process in a decoder provided in some embodiments of the present application;
[0031] Fig.12 A schematic diagram of a process of splicing decoding results provided in some embodiments of the present application;
[0032] Fig.13 Schematic diagram of a process for determining an optimal decoding path provided in some embodiments of the present application DETAILED DESCRIPTION
[0033] 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.
[0034] 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.
[0035] 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.
[0036] 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.
[0037] 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.
[0038] 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.
[0039] 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.
[0040] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the display device includes at least one of infrared protocol communication, Bluetooth protocol communication, and other short-range communication methods, and the display device 200 is controlled wirelessly or wired. The user may control the display device 200 by inputting user commands through buttons on the remote controller, voice input, control panel input, etc.
[0041] 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.
[0042] 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 .
[0043] 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.
[0044] 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.
[0045] Figure 2 A hardware configuration block diagram of a display device 200 provided for some embodiments of the present application.
[0046] 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.
[0047] 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.
[0048] The sound collector is used to convert the sound signal into an electrical signal so that the display device 200 can process and respond to the sound. In some embodiments, the sound collector can be built into the microphone component of the display device 200 to achieve far-field voice interaction. In some embodiments, the sound collector can be an audio collection device externally connected to the display device 200, such as an external microphone, a terminal device externally connected to the display device 200 and having an audio collection function, etc.
[0049] In some embodiments, for a display device 200 with a built-in or external sound collector, voice interaction can be performed based on the user voice collected by the sound collector. Among them, voice interaction is also called voice user interface (VUI) or voice interface, which is a human-computer interaction method that allows users to communicate with the display device 200 through voice commands. This interaction method can simulate language communication between users, allowing users to control devices, obtain information or perform tasks by speaking.
[0050] In some embodiments, voice interaction may involve natural language processing, speech recognition, speech synthesis, intent recognition, context understanding, interactive dialogue, and personalized services. Among them, natural language processing means that the voice interaction system of the display device 200 can understand and process natural language. Speech recognition is to convert the user's voice input into text information so that the display device 200 can understand and process it. Speech synthesis is to convert text information into speech output so that the display device 200 can output feedback results in audio form. Intent recognition means that the voice interaction system can recognize the user's intention and respond accordingly. Context understanding means that the voice interaction system can understand and generate responses based on the context of the conversation. Interactive dialogue means that the voice interaction system can have multiple rounds of dialogue with the user to complete tasks or provide information. Personalized service means that the voice interaction system can provide a personalized experience based on the user's preferences and historical interactions.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] 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).
[0057] 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.
[0058] In some embodiments, the user input interface 280 may be used to receive instructions from a user.
[0059] 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.
[0060] 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.
[0061] The operating system can be divided into different modules or layers according to the functions implemented, such as 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.
[0062] 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.
[0063] 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.
[0064] 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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] In some embodiments, based on the operating system of the display device 200, the display device 200 can support voice interaction functions through a voice assistant tool. Among them, the voice assistant tool is an artificial intelligence service integrated in the display device 200 or connected to the display device 200 through an external device (such as a remote control or an independent device). The voice assistant allows the user to control various functions of the display device 200 through voice commands, including but not limited to: channel switching, volume control, playback control, media resource search function, information query, application startup, smart home system control, voice recognition, multi-language support, interactive dialogue, etc.
[0070] Among them, channel switching means that the user can ask the voice assistant to switch to a specific channel or search for a specific program. Volume control means that the user can increase or decrease the volume through voice commands. Playback control means that the user can ask to play, pause, fast forward or rewind the content being played. The media search function means that the user can request the voice assistant to search for a specific movie, TV show, actor or director. The information query function means that the user can ask for information such as weather, news, sports scores, etc. The application launch function means that the user can ask to open a specific application or game. If the display device 200 is connected to a smart home system, the user can also control the operation of other devices in the smart home system through voice commands. Voice recognition means that the voice assistant can recognize the voice characteristics of different users and provide personalized services. Multilingual support means that some voice assistants support multiple languages to meet the needs of different users. Interactive dialogue means being able to have a dialogue with the user, answer questions or provide help.
[0071] In some embodiments, the voice assistant of the display device 200 can receive the user's voice command through a built-in or external microphone array, and process it through the built-in controller 250 or a smart device connected to the network where the display device 200 is located, so that the display device 200 has voice recognition capabilities. Among them, voice recognition, also known as automatic speech recognition (Automatic Speech Recognition, ASR), refers to the technology of converting human speech into computer (display device 200) readable text. It allows computers to understand and process spoken language, thereby realizing human-computer interaction.
[0072] like Figure 4 As shown, in some embodiments, the display device 200 may respectively perform steps such as audio collection, audio preprocessing, feature extraction, acoustic model matching, language model processing, and post-processing during the speech recognition process. The display device 200 may collect speech signals through a microphone or other device to perform audio collection. For the collected audio signals, the display device 200 may perform audio preprocessing such as noise reduction and echo removal on the original audio signals to improve the accuracy of speech recognition.
[0073] In some embodiments, during the speech recognition process, preprocessing of audio data may include denoising, echo removal, gain control, endpoint detection, etc. Among them, denoising is to use filters to remove background noise and improve the clarity of speech signals. Echo removal refers to eliminating echoes caused by sound wave reflections through waveform analysis algorithms to ensure the purity of speech signals. Gain control is to adjust the volume to keep the speech signal within an appropriate intensity range. Endpoint detection refers to determining the starting and ending points of speech in order to perform effective feature extraction.
[0074] For the preprocessed audio signal, the display device 200 performs feature extraction, that is, extracts features from the preprocessed audio, such as the Mel-frequency cepstral coefficient (MFCCs) method and other feature extraction methods. In some embodiments, when the display device 200 performs feature extraction, voice activity detection can be performed. Voice activity detection (VAD) is to accurately determine the starting point and ending point of speech from a signal containing speech, and is used to distinguish between speech and non-speech signals. Effective endpoint detection technology can not only reduce the amount of data collected in the speech recognition system and save processing time, but also eliminate the interference of silent or noisy segments.
[0075] In the process of voice activity detection, the starting point and the ending point of the voice can be determined based on voice feature recognition and extraction. In some embodiments, the voice features used to perform voice activity detection may include time domain features and frequency domain features. Among them, the time domain features include: energy fluctuation, zero crossing rate, maximum energy, minimum energy, etc. The frequency domain features include: fundamental frequency, spectrum composition, spectrum centroid, spectrum difference, spectrum density, spectrum attenuation, etc.;
[0076] In some embodiments, the display device 200 can use features such as energy, frequency domain, cepstrum, spectral difference, harmonics, and long-term information as features for voice activity detection VAD judgment. Among them, the energy-based feature calculation is simple, such as the energy zero-crossing rate, and the spectrum (spectrum, cepstrum, and spectral difference) based on the low signal-to-noise ratio (SNR) voice data processing process can obtain better results. For example, when the SNR is 0dB, the voice harmonic and long-term voice methods are more robust.
[0077] After completing feature extraction, the display device 200 may perform acoustic model matching, that is, use a trained acoustic model to match the extracted features to identify corresponding speech units (such as phonemes or words).
[0078] In some embodiments, in order to match a suitable speech recognition model, the display device 200 may perform model training in advance. The training of the speech recognition model is the core link to achieve high-precision recognition. The model training may include acoustic model training and speech model training, wherein the acoustic model training is used to map acoustic features to a model of speech units. The acoustic model may be a hidden Markov model (HMM) and a deep learning model, such as a convolutional neural network (CNN), a recurrent neural network (RNN), and a long short-term memory network (LSTM). Language model training is used to predict a probability model of a language sequence to improve the coherence and accuracy of recognition. The language model may include an n-gram model and a language model based on a neural network.
[0079] When training the model, it is necessary to obtain training data first. The training data is collected by collecting a large amount of annotated speech data for training acoustic models and language models. Among them, the training data is speech data with classification labels. In some embodiments, the training data can be an audio file, such as WAV, MP3 and other formats. In some embodiments, the training data can also be text data in the form of text transcription, that is, a text representation of the speech content, which is used to train the output of the model. In some embodiments, in addition to the original audio, the training data may also include feature vectors extracted from the audio, such as Mel frequency cepstral coefficients (MFCC). In some embodiments, the training data may contain additional annotation information, such as speaker information, emotional state, background noise type, etc. In some embodiments, the training data will include time alignment information, indicating the start and end time of specific words or phonemes in the audio. In some embodiments, in addition to speech and text, the training data may also include multimodal information such as video and images to enhance the understanding and recognition capabilities of the model.
[0080] After matching the acoustic model, the display device 200 can use the language model to score and sort the candidate speech unit sequences to determine the most likely text output and implement language model processing. For the recognition results output by the language model, the display device 200 can also perform further post-processing such as correction and optimization to improve the accuracy of speech recognition.
[0081] It can be seen that the display device 200 can be based on a threshold, a statistical model, or deep learning as a voice activity detection decision criterion. In some embodiments, for some voice processing models, voice activity decisions can be made based on statistical models, such as the VAD detection method based on the Gaussian mixture model in WebRTC and Speex. This type of method has a good detection effect on sound sources with a high signal-to-noise ratio, but has a poor judgment effect when the signal-to-noise ratio is low.
[0082] In some embodiments, some speech processing models can make speech activity decisions based on machine learning models. The idea of machine learning is to collect a large number of speech and non-speech samples for a given problem, and obtain the parameters of the decision model (based on a deep neural network) through a machine learning method, so that a neural network model can be used to make the final trained model closer to the real speech model.
[0083] In some embodiments, the machine learning-based voice activity detection algorithm can pre-collect and annotate the training set (audio set), extract appropriate neural network input parameters (features), and then use a deep neural network development tool to build a network model. The network structure can be a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), an improved deep learning network based on the U-Net architecture (Dual-Column U-Net, DCUNet), etc., as well as a combination of the above network structures. The display device 200 can select a suitable model and parameters as a deployment model based on the training results.
[0084] In some embodiments, the display device 200 can also perform speech recognition based on a token lexicon grammar (TLG) decoding graph. The speech recognition process based on the TLG decoding graph can convert the input speech into a machine-understandable text form. When performing speech recognition based on the TLG decoding graph, the display device 200 needs to perform speech data preprocessing first, that is, the display device 200 performs preprocessing such as denoising, enhancement and standardization on the received speech signal to reduce the impact of background noise and non-speech noise.
[0085] For the preprocessed speech signal, the display device 200 can perform acoustic feature extraction to extract acoustic features, such as Mel frequency cepstral coefficients, from the clear speech signal. The extracted acoustic features can be used as input for the subsequent acoustic model. Then the acoustic model is matched, and the extracted acoustic features are mapped to phonemes or state sequences using the acoustic model. Among them, the acoustic model can calculate the probability that a given speech frame corresponds to different states. While matching the acoustic model, the display device 200 also initializes the decoder, sets the initial state and possible starting probabilities. And load the language model and vocabulary, build a decoding network, and prepare for searching.
[0086] The display device 200 then performs state transition and probability calculation based on the acoustic model. Among them, in the speech recognition process based on the TLG decoding graph, state transition and probability calculation determine the accuracy and efficiency of decoding. The display device 200 can first perform state activation. In the TLG decoding graph, each state represents a specific acoustic or linguistic event. At a certain moment, according to the characteristics of the input speech signal, the decoder will activate some states, which represent the phonemes or word boundaries that may currently correspond. State activation is based on the output of the acoustic model, and the acoustic model maps the extracted speech features to pre-defined states.
[0087] After the execution state is activated, the display device 200 executes the state transfer again. After the state is activated, the decoder will consider all possible state transfers starting from the current activated state. Each transfer is associated with an intermediate arc, which is marked with the relevant phoneme label and probability score. In some embodiments, the decision of state transfer can be based on multiple factors, including acoustic model scores, language model scores, and the probability of previous states and arcs.
[0088] Based on the state transition results, the display device 200 can perform probability calculations. For each state transition, the decoder calculates a comprehensive probability score, which can reflect the possibility of reaching the next state through the transition given the current speech characteristics. In some embodiments, the probability score can be a combination of the probability output by the acoustic model and the probability predicted by the language model. When calculating, factors such as the probability of the pronunciation dictionary, the state start and end probability, etc. are also considered.
[0089] After calculating the comprehensive probability score, the display device 200 can perform dynamic programming and path search based on the TLG decoding graph. The decoder uses a dynamic programming method (such as the Viterbi algorithm) to find the optimal path. In the process of finding the optimal path, a list of active paths can be maintained and a cumulative probability score can be maintained for each path. At each step, the decoder updates this list, discards those paths with lower probabilities (pruning), and retains those paths with higher probabilities as candidates.
[0090] In some embodiments, the display device 200 may also perform beam search optimization. That is, in order to improve efficiency, the decoder may adopt a beam search strategy to retain only a number of state transition candidates with the highest probability scores. This can reduce the amount of calculation while minimizing the impact on the final result. Among them, the beam width is an adjustable parameter that can determine the number of candidate paths retained during the search process.
[0091] When the end of the speech signal is detected, the decoder stops searching and selects the state with the highest probability score from the currently active state as the end point. The decoder then backtracks along the best path to determine the sequence of recognized words. Therefore, the decoder outputs a path with the highest probability, which corresponds to a string of recognized words. These words are arranged in order to form the result of speech recognition.
[0092] In some embodiments, the display device 200 may also perform post-processing steps on the output results to improve the recognition results, such as through spelling checking, grammar correction, or context-related adjustments.
[0093] It can be seen that the TLG-based speech recognition process can combine acoustic and language information, and perform effective search and probability calculation through complex weighted finite state machines to achieve high-accuracy speech-to-text functions. By using computing resources and optimizing algorithms, real-time or near-real-time performance can be ensured.
[0094] Based on the speech recognition method provided in the above embodiment, the display device 200 can recognize the word text in the speech data. In some embodiments, the display device 200 can collect relevant corpus and new words, retrain the language model for temporary unregistered words, such as some recent hot words and proper nouns, and modify the dictionary and regenerate relevant resources at the same time, and then perform speech recognition online after re-construction. If the language model retraining time is relatively long, a small-scale language model can be trained using the newly added corpus, and then a new language model can be generated by interpolation with the original language model to identify the accuracy. However, the new word recognition method of retraining the language model has many resource changes, slow processing speed, and reduces the user experience.
[0095] In this regard, some embodiments of the present application provide a speech recognition method, which is applied to a display device 200 to improve the speech recognition speed of the display device 200. In order to meet the implementation of the speech recognition method, the display device 200 may include: a display 260, a sound collector, and a controller 250. Among them, the display 260 is configured to display a user interface. The sound collector is configured to detect the voice data input by the user. The controller 250 is configured to execute the program steps corresponding to the speech recognition method, including the following:
[0096] S100: Acquire voice data in response to a voice interaction instruction.
[0097] The display device 200 can receive voice interaction instructions input by the user during operation. The voice interaction instructions can be input through different interaction methods. In some embodiments, the user can input the voice interaction instructions through a trigger with a voice interaction function. That is, the user can input the voice interaction instructions by pressing the voice key on the control device 100 supporting the display device 200 and speaking the voice content while long pressing the voice key.
[0098] In some embodiments, the user can input a voice interaction instruction by saying the corresponding wake-up word of the voice assistant. For example, the user can first say "Xiao×Xiao×" to wake up the voice assistant function of the display device 200, and input a voice containing specific voice content such as "Play media A" within a set time period to input a voice interaction instruction.
[0099] In some embodiments, the display device 200 can display voice interaction controls in some user interfaces, and the user can control the focus cursor to select the voice interaction control, triggering the display device 200 to detect audio data and receive the user's voice input to input voice interaction instructions.
[0100] In some embodiments, the display device 200 may also obtain voice interaction instructions through an external device. For example, after the display device 200 establishes a Bluetooth connection with the mobile terminal, after the user runs a voice assistant that is the same as or has a linkage relationship with the display device 200 on the mobile terminal, the mobile terminal may collect the voice interaction instructions input by the user and send the voice interaction instructions to the display device 200, so that the display device 200 may obtain the voice interaction instructions.
[0101] It should be noted that the above-mentioned voice interaction instruction input method is only an example, and the user can input the voice interaction instruction based on different input methods according to the hardware configuration, connection method and specific purpose of the display device 200. Therefore, other input methods that can be associated with by those skilled in the art based on the voice interaction instruction input method provided in the above embodiment without creative work belong to the protection scope of this application.
[0102] After obtaining the voice interaction command input by the user, the display device 200 can obtain interactive voice data. The interactive voice data is the audio data received by the display device 200 through the sound collector. Since the voice data is input by the user within a period of time and has temporal continuity, in some embodiments, the display device 200 can frame the voice data after obtaining the voice data, that is, in voice processing, the continuous voice waveform is divided into short segments within a short time, and each small segment represents a voice snapshot within a short time. Based on this, the interactive voice data obtained by the display device 200 can include at least one frame of voice signal.
[0103] Depending on the different voice input methods of the user, the display device 200 may obtain the interactive voice data in different ways. In some embodiments, the interactive voice data may be input together with the voice interaction instruction. For example, when the user inputs the voice interaction instruction by pressing the voice button on the control device 100, the display device 200 may directly parse the interactive voice data from the voice interaction instruction.
[0104] In some embodiments, the interactive voice data may also have a sequential relationship with the input order of the voice interaction instruction. That is, the display device 200 may obtain the interactive voice data through the sound collector within a preset time after the user inputs the voice interaction instruction. For example, when the voice interaction instruction is the voice wake-up word "Xiao×Xiao×" input by the user, the display device 200 may detect the interactive voice data input by the user through the sound collector within 5 seconds after the user inputs the wake-up word.
[0105] S200: Based on a first decoding graph, decode the speech data to obtain a first decoding result.
[0106] When performing speech recognition, the display device 200 may construct a first decoding graph, wherein the input label of at least one middle arc in the first decoding graph is set to a category symbol. That is, the display device 200 constructs a main graph (top TLG) with special symbols. Some middle arc input labels in the first decoding graph use predefined category symbols, such as the label symbol of the input label #nonterm:teleplay_list, which can represent that the category corresponding to the noun is a TV series.
[0107] Based on the constructed first decoding graph, the display device 200 can perform decoding on the input voice data. In some embodiments, the display device 200 can first extract acoustic features from the voice data, and then call the acoustic model to use the acoustic model to map the acoustic features to a phoneme state sequence to generate a phoneme label set, wherein the acoustic model is a neural network model trained based on sample voice data.
[0108] Based on the phoneme tag set, state activation is performed in the first decoding graph to obtain a target activation state, and state transition is performed on the target activation state to obtain a transition result. Path planning is performed according to the transition result to generate a first decoding result. The transition result is associated with the intermediate arc, and the intermediate arc is marked with a relevant phoneme tag and a probability score.
[0109] S300: If the first decoding result includes a target path, load a second decoding graph.
[0110] Among them, the target path is a path containing the middle arc corresponding to the category symbol, that is, after determining the first decoding result according to the above steps, the display device 200 can detect the path of the middle arc in the first decoding result to determine whether the first decoding result contains a path containing the middle arc corresponding to the category symbol, that is, the target path.
[0111] For example, the voice data content input by the user is "I want to watch the hit drama ABC Legend". When decoding through the first decoding graph, since "ABC Legend" is a new word, the recognized text sequence cannot be directly obtained based on the first decoding graph. Therefore, the customized template in the first decoding graph, namely "I want to watch the hit drama #nonterm:teleplay_list", will be hit. At this time, the first decoding result includes a middle arc with the "#nonterm:teleplay_list" category symbol, and therefore, it is determined that the first decoding result includes the target path.
[0112] The second decoding graph is a decoding graph constructed by extending the category symbol based on the new word set. That is, the display device 200 can construct a second decoding graph (grammar TLG) based on the new word set. The constructed second decoding graph is an extension of the previously constructed first decoding graph top-TLG. For example, the above #nonterm:teleplay_list is extended to media asset names such as "ABC Legend" and "Drama DE", and the constructed grammar TLG graph is as follows: Figure 6 as shown, where “eps” stands for empty edge.
[0113] In some embodiments, in order to construct the second decoding graph, the display device 200 may obtain a new word set and construct the second decoding graph according to the new word set. The new word set may be a display device 200 that captures interface words in real time, or based on user history information, maintains a dedicated entity list, dynamically constructs a language model, and enhances the accuracy of entity recognition.
[0114] In some embodiments, the display device 200 may control the display 260 to display the user interface requested by the display instruction in response to the display instruction for displaying the user interface. And identify text information from the user interface. The text information is obtained by reading the interface configuration file of the user interface, or the text information is obtained by taking a screenshot of the user interface and identifying it from the screenshot image based on an optical character recognition algorithm. In some embodiments, the display device 200 may simultaneously obtain the text information by reading the interface configuration file of the user interface, and by taking a screenshot of the user interface and identifying it from the screenshot image based on an optical character recognition algorithm.
[0115] like Figure 7As shown, in some embodiments, in order to obtain a new word set, after the user inputs a power-on command through a remote control, the display device 200 can execute a power-on program and display a default home page interface after powering on. The home page interface may include at least one media asset recommendation position. In the media asset recommendation position, the display device 200 may display the latest media asset project name, such as "ABC Legends", etc., according to the current operating strategy. When displaying the home page, the display device 200 may first call the display template of the home page interface, and then request an interface configuration file from the server 400 based on the home page template. The server 400 may send an interface configuration file containing the media asset project name to the display device 200 according to the request sent by the display device 200 and in combination with the current operating strategy, so that the display device 200 can display the home page interface based on the home page template and the interface configuration file. After obtaining the interface configuration file, the display device 200 may first read the content of the interface configuration file to read text information in the interface configuration file.
[0116] like Figure 8 As shown, in some embodiments, after the display device 200 displays the home page interface according to the above embodiment, it can also call an optical character recognition (OCR) algorithm process and a screenshot process. The displayed home page interface is screenshoted through the screenshot process to obtain a screenshot image of the home page interface. The text content in the screenshot image is then recognized through the OCR algorithm process to obtain text information.
[0117] In the process of identifying and obtaining text information, the display device 200 may call a preset keyword thesaurus, wherein the keyword thesaurus may include keywords whose specific meanings can be identified by the display device 200. New words in the text information but not recorded in the preset keyword thesaurus are then extracted from the text information according to the preset keyword thesaurus to generate the new word set.
[0118] In some embodiments, in order to obtain a new word set, the display device 200 may obtain historical information in response to the voice interaction instruction, wherein the historical information includes at least one of dialogue history information and usage history information. Then, word segmentation is performed on the historical information to obtain a word segmentation result, and keywords are extracted from the word segmentation result to generate a keyword set. Then, new words are extracted from the keyword set according to a preset keyword thesaurus to generate the new word set, wherein the new words are keywords in the keyword set that are not recorded in the preset keyword thesaurus.
[0119] For example, Fig. 9As shown, the user performs voice interaction with the display device 200 through multiple rounds of dialogue, including the following contents: Question 1: "How to treat influenza B"; Answer 1: "Oseltamivir is a special medicine for treating influenza B"; Question 2: "What are the side effects of Oseltamivir". The display device 200 can obtain the dialogue history information in the multiple rounds of dialogue for Question 2, and can perform word segmentation on the historical information to obtain the following word segmentation result "Oseltamivir / is / a / special medicine / for / treating / influenza B", and then combined with the preset keyword word library, it can be determined that "Oseltamivir" is a new word.
[0120] After obtaining the new word set, the display device 200 can set a category symbol for the input label corresponding to at least one middle arc in the first decoding graph. Then extract a target new word from the new word set, wherein the target new word is any new word in the new word set that meets the category corresponding to the category symbol. Then construct a subgraph based on the target new word, and add the subgraph to the second decoding graph.
[0121] For example, based on the new word set, the display device 200 can expand the "#nonterm:teleplay_list" marked in the first decoding graph to a specific media asset name, that is, the display device 200 can extract keywords used to represent the media asset name from the new word set according to the category symbol "#nonterm:teleplay_list", such as "ABC Legend", etc. For the extracted media asset name, the display device 200 can dynamically load the text content to construct a new sub-graph, and then add the sub-graph to the second decoding graph to construct a grammar TLG decoding graph.
[0122] After constructing the second decoding graph based on the extracted keywords, the display device 200 needs to note that the dictionary index identifier (index) of the newly added word is always unique. To this end, after constructing the second decoding graph based on any target new word, the display device 200 can delete the target new word in the new word set. For example, after constructing the second decoding graph based on the new word "Oseltamivir", the display device 200 can add "Oseltamivir" to the preset keyword thesaurus and delete "Oseltamivir" from the new word set.
[0123] S400: Based on the second decoding graph, decode the speech data to obtain a second decoding result.
[0124] After loading the second decoding graph, the display device 200 can perform decoding on the speech data based on the second decoding graph to identify the new words in the speech data, that is, obtain a decoding path for the new word part in the speech data to obtain a second decoding result. The second decoding result includes a word sequence with the highest recognition probability of the new word part in the speech data.
[0125] In some embodiments, when the display device 200 decodes the voice data based on the TLG decoding graph, the processEmitting process and the processNonEmitting process can be executed in the decoder. The processEmitting process is responsible for processing the state transition of the emission arc, and the processNonEmitting process is complex to process the state transition of the non-emission arc.
[0126] ProcessEmitting refers to processing arcs that generate output symbols (such as phonemes or words) during state transitions. These arcs are associated with the actual language content because they directly correspond to the recognized units. During the decoding process, whenever an emission arc is encountered, ProcessEmitting calculates the probability score of the transition and updates the decoding path based on the likelihood provided by the acoustic model and the prior probability of the language model. Since the emission arc is directly associated with the output result, the accuracy of ProcessEmitting has an impact on the quality of the overall recognition result, enabling the decoder to correctly convert the audio signal into the corresponding text symbol.
[0127] like Fig.10 As shown, for the processEmitting process, the display device 200 can traverse the model state in the recognition decoding graph (TLG) to call the decoding graph decoding process according to the model state in the TLG decoding graph, wherein the model state is used to characterize the probability distribution of keywords in the voice data; the recognition decoding graph includes the first decoding graph, the second decoding graph and the third decoding graph. The first decoding graph is used to decode regular words in the voice data; the second decoding graph is used to decode new words in the voice data; and the third decoding graph is used to decode the wake-up word in the voice data.
[0128] That is, the display device 200 can identify the wake-up words, new words and regular words in the voice data based on three decoding graphs by traversing the model states in the decoding graph. The three decoding graphs are oneshot-tlg, grammar-tlg, and main-tlg (or top-tlg).
[0129] According to the decoding graph, the emitting arc processing function (ProcessEmitgingArc function) can be called, and the edges in the recognition decoding graph are processed by the emitting arc processing function to obtain the token on the edge. The emitting arc processing function is used to process the state transition of the emitting arc in the recognition decoding graph.
[0130] Then, a target decoding result is generated according to the token. The target decoding result includes a first decoding result obtained by decoding based on a first decoding graph, a second decoding result obtained by decoding based on the second decoding graph, and a third decoding result obtained by decoding based on a third decoding graph.
[0131] For example, for voice data with voice content "Xiaoxiao, who is the star of the ABC Legend" input by a user. When the display device 200 decodes, it can first determine that the voice data input by the user includes the wake-up word "Xiaoxiao" based on oneshot-tlg (the third decoding graph), that is, trigger the display device 200 to perform speech recognition through the wake-up word. Then, it decodes "who is the star of the ABC Legend" in the voice data based on main-tlg (the first decoding graph). Since it includes the new word "ABC Legend", the display device 200 will hit the intermediate arc of "#nonterm:teleplay_list - of - the - star - is - who", that is, determine that the first decoding result includes the target path. Therefore, the display device 200 can then load grammar-tlg (the second decoding graph) to recognize the new word "ABC Legend" in the voice data based on grammar-tlg. It can be seen that the display device 200 can obtain three decoding results after decoding based on the above three decoding graphs.
[0132] In some embodiments, when the display device 200 executes to generate a decoding result according to the token, it can also obtain the output type of the token; if the output type is a grammar type, process the emission arc through a symbol generation process and generate an output symbol corresponding to the emission arc; and add the output symbol to the first decoding graph; if the output type is a non-grammar type, output the emission arc and the token. That is, when the display device 200 generates a decoding result, it can judge whether a dynamically constructed decoding graph is triggered according to the token on the edge. If it enters the dynamic decoding graph, splice the decoding results corresponding to the first decoding graph and the second decoding graph. Among them, when decoding based on the second decoding graph, the main decoding graph is also decoding simultaneously, and finally the optimal decoding path is obtained through weights.
[0133] In contrast to ProcessEmitting, ProcessNonemitting processes state transitions that do not generate output symbols, i.e., non-emitting arcs. These transitions are used to represent silence or other state changes that do not require output. During the decoding process, non-emitting arcs allow the decoder to jump between different states without generating additional output. This is useful for processing fast continuous pronunciation, pauses, or background noise. Although non-emitting arcs do not directly affect the final word sequence output, they have an impact on maintaining the coherence of the decoding state and processing complex language phenomena. Therefore, the rational use of non-emitting arcs can significantly improve decoding performance and accuracy.
[0134] like Fig.11 As shown, in some embodiments, in the process of executing ProcessNonemitting, the display device 200 can enter different TLG graphs for decoding according to the state, that is, when the display device 200 executes ProcessNonemitting, it first traverses the state, and then decodes according to different decoding graphs. When the oneshot-tlg (third decoding graph) recognizes that the decoding of the wake-up word is completed, ProcessNonemitting crossfst can be called, and the third recognition result is output. Similarly, when the decoding of the new word is completed according to grammar-tlg (the second decoding graph), the second decoding result is also output by calling ProcessNonemitting crossfst, and the ProcessEmitgingArc function is called together with the first decoding graph to perform the output and splicing of subsequent decoding results. It should be noted that the non-transfer state jump is performed through processNonEmitting, and it is determined whether the decoding is completed.
[0135] S500: Concatenate the first decoding result and the second decoding result to obtain an optimal decoding path.
[0136] After obtaining the first decoding result and the second decoding result respectively through the above embodiment, the display device can splice the first decoding result and the second decoding result, that is, splice the decoding results of the regular words and the new words in the voice data to obtain the optimal decoding path. The optimal decoding path includes the word sequence with the highest recognition probability for the voice data.
[0137] like Fig.12As shown, in some embodiments, when the display device 200 splices the first decoding result and the second decoding result, it can calculate a first probability score of the first decoding result and a first weight according to the first probability score; and calculate a second probability score of the second decoding result and a second weight according to the second probability score. Then, the splicing probability is calculated based on the first weight and the second weight, and then the first decoding result and the second decoding result are spliced according to the splicing probability.
[0138] The obtained optimal decoding path (or optimal path) refers to the best sequence from the initial state to the final state of the acoustic model. The optimal decoding path can represent the most likely interpretation of the input audio data by the acoustic model. Therefore, based on the optimal decoding path, the correct text output can be determined, that is, by finding the optimal path, the most likely text output corresponding to the input audio data can be determined, and then the user's interaction with the system is determined. Based on the optimal decoding path, the performance of the acoustic model can also be evaluated, that is, by comparing the actual audio data and the predicted text output, the accuracy and performance of the acoustic model can be evaluated. If the optimal path is very close to the expected result, it is considered that the performance of the acoustic model is very good. The optimal decoding path can also be used to perform subsequent processing, that is, by determining the optimal path, further processing can be performed according to this path, such as language model processing, post-processing, etc., to improve the overall recognition accuracy.
[0139] like Fig.13 As shown, in some embodiments, if the target path is not included in the first decoding result, that is, when the display device 200 performs decoding according to the first decoding graph and does not find that the voice data input by the user includes new words, the decoding path in the first decoding result can be obtained (S1301), and the optimal decoding path (S1302) can be determined based on the probability score corresponding to the decoding path, and a response instruction for the voice data can be generated based on the optimal decoding path (S1303), and the response instruction can be executed (S1304).
[0140] That is, when the first decoding result does not include the target path with the middle arc corresponding to the category symbol, the display device 200 can determine the optimal decoding path directly according to the decoding path in the first decoding result without loading the second decoding graph. In order to obtain a suitable decoding path, in the process of determining the optimal decoding path, the probability score corresponding to the decoding path can be read. The probability score can be the classification probability calculated based on the acoustic model matching result and context information. And determine the decoding path with the highest probability score and the probability score greater than or equal to the score threshold as the optimal decoding path. Thereby obtaining the word sequence with the highest probability of recognizing the voice data, and performing a voice interaction response based on the obtained result.
[0141] It can be seen that the speech recognition method provided in the above embodiment can use the corpus of the fixed model to generate a small gammer, which is dynamically merged during decoding. Customized support for specific domain sentences is provided, and the general word error rate (Word Error Rate, WER) is not greatly affected. In addition, the grammar slots are preset through the pattern fusion sentence arpa. The HCLG of the word grammar generated by the dictionary is uploaded, and then the sub-grammar fst is dynamically expanded by graph search to improve the recognition accuracy and recognition speed of specific entities in specific sentences.
[0142] Based on the above-mentioned speech recognition method, some embodiments of the present application further provide a display device 200, including: a display 260, a sound collector, and a controller 250. The display 260 is configured to display a user interface; the sound collector is configured to detect the speech data input by the user; and the controller 250 is configured to execute the steps corresponding to the speech recognition method:
[0143] Responding to the voice interaction instruction, acquiring voice data;
[0144] Based on a first decoding graph, decoding is performed on the speech data to obtain a first decoding result, wherein an input label of at least one middle arc in the first decoding graph is set to a category symbol;
[0145] If the first decoding result includes a target path, a second decoding graph is loaded, wherein the target path is a path including an intermediate arc corresponding to the category symbol; and the second decoding graph is a decoding graph constructed by performing an expansion on the category symbol based on a new word set;
[0146] Based on the second decoding graph, decoding the speech data to obtain a second decoding result;
[0147] The first decoding result and the second decoding result are concatenated to obtain an optimal decoding path, wherein the optimal decoding path includes a word sequence with the highest probability of recognizing the speech data.
[0148] It can be seen from the above technical solutions that some embodiments of the present application provide a display device and a speech recognition method, which can obtain speech data in response to a speech interaction instruction. Based on the first decoding graph, the speech data is decoded to obtain a first decoding result. If the first decoding result contains a target path containing an intermediate arc corresponding to a category symbol, the second decoding graph is loaded, and based on the second decoding graph, the speech data is decoded to obtain a second decoding result; then the first decoding result and the second decoding result are spliced to obtain the optimal decoding path. Among them, the input label of at least one intermediate arc in the first decoding graph is set to a category symbol. The second decoding graph is a decoding graph constructed by extending the category symbol based on a new word set. The method can dynamically construct a decoding graph based on the current new word set, and dynamically insert a decoding graph during decoding to improve the recognition accuracy and recognition speed of a specific entity in a specific sentence.
[0149] 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.
[0150] 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.
[0151] 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.
[0152] 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 configured to display a user interface; A sound collector is configured to detect voice data input by a user; The controller is configured as: Responding to the voice interaction instruction, acquiring voice data; Based on a first decoding graph, decoding is performed on the speech data to obtain a first decoding result, wherein an input label of at least one middle arc in the first decoding graph is set to a category symbol; If the first decoding result includes a target path, loading a second decoding graph, the target path is a path including an intermediate arc corresponding to the category symbol; The second decoding graph is a decoding graph constructed by extending the category symbol based on a new word set; Based on the second decoding graph, decoding the speech data to obtain a second decoding result; The first decoding result and the second decoding result are concatenated to obtain an optimal decoding path, wherein the optimal decoding path includes a word sequence with the highest probability of recognizing the speech data.
2. The display device according to claim 1, characterized in that The controller is also configured to: In response to a display instruction for displaying a user interface, controlling the display to display the user interface requested by the display instruction; Identifying text information from the user interface, the text information being obtained by reading an interface configuration file of the user interface, and / or the text information being obtained by taking a screenshot of the user interface and identifying the screenshot based on an optical character recognition algorithm; New words are extracted from the recognized text information according to a preset keyword thesaurus to generate the new word set, wherein the new words are keywords in the recognized text information that are not recorded in the preset keyword thesaurus.
3. The display device according to claim 1, characterized in that The controller is also configured to: In response to the voice interaction instruction, acquiring history information, the history information comprising at least one of conversation history information and usage history information; Perform word segmentation on the historical information to obtain a word segmentation result; Extracting keywords from the word segmentation results to generate a keyword set; New words are extracted from the keyword set according to a preset keyword thesaurus to generate the new word set, wherein the new words are keywords in the keyword set that are not recorded in the preset keyword thesaurus.
4. The display device according to claim 2 or 3, characterized in that: The controller is also configured to: Setting a category symbol for an input label corresponding to at least one intermediate arc in the first decoding graph; Extracting a target new word from the new word set, wherein the target new word is any new word in the new word set that conforms to the category corresponding to the category symbol; constructing a subgraph based on the target new word, and adding the subgraph to the second decoding graph; The target new word in the new word set is deleted.
5. The display device according to claim 1, characterized in that The controller is also configured to: extracting acoustic features from the speech data; Calling an acoustic model, and using the acoustic model to map the acoustic features to a phoneme state sequence to generate a phoneme label set, wherein the acoustic model is a neural network model trained based on sample speech data; Based on the set of phoneme labels, performing state activation in the first decoding graph to obtain a target activation state; Performing state transfer on the target activation state to obtain a transfer result; Path planning is performed according to the transition result to generate a first decoding result, wherein the transition result is associated with the intermediate arc, and the intermediate arc is labeled with a relevant phoneme label and a probability score.
6. The display device according to claim 1, characterized in that The controller is also configured to: Traversing the model states in the recognition decoding graph, the model states being used to characterize the probability distribution of keywords in the speech data; the recognition decoding graph comprising the first decoding graph, the second decoding graph and the third decoding graph; Calling a transmission arc processing function, wherein the transmission arc processing function is used to process the state transition of the transmission arc in the recognition decoding graph; Processing the edge in the recognition decoding graph through the emission arc processing function to obtain the token on the edge; A target decoding result is generated according to the token, wherein the target decoding result includes a first decoding result obtained by decoding based on the first decoding graph, a second decoding result obtained by decoding based on the second decoding graph, and a third decoding result obtained by decoding based on the third decoding graph.
7. The display device according to claim 6, characterized in that The controller generates a target decoding result according to the token, and is further configured to: Get the output type of the token; If the output type is a grammatical type, processing the emission arc through a symbol generation process, and generating an output symbol corresponding to the emission arc; and, adding the output symbol to a first decoding graph; If the output type is a non-grammatical type, the emission arc and the token are output.
8. The display device according to claim 1, characterized in that The controller is also configured to: Calculating a first probability score of the first decoding result, and calculating a first weight according to the first probability score; Calculating a second probability score of the second decoding result, and calculating a second weight according to the second probability score; Calculate the splicing probability based on the first weight and the second weight; The first decoding result and the second decoding result are spliced according to the splicing probability.
9. The display device according to claim 1, characterized in that: The controller is also configured to: If the first decoding result does not include the target path, obtaining a decoding path in the first decoding result; Determining the optimal decoding path according to the probability score corresponding to the decoding path; A response instruction for the voice data is generated according to the optimal decoding path, and the response instruction is executed.
10. A speech recognition method, characterized in that: Applied to the display device according to any one of claims 1 to 9, the speech recognition method comprises: Responding to the voice interaction instruction, acquiring voice data; Based on a first decoding graph, decoding is performed on the speech data to obtain a first decoding result, wherein an input label of at least one middle arc in the first decoding graph is set to a category symbol; If the first decoding result includes a target path, a second decoding graph is loaded, wherein the target path is a path including an intermediate arc corresponding to the category symbol; and the second decoding graph is a decoding graph constructed by performing an expansion on the category symbol based on a new word set; Based on the second decoding graph, decoding the speech data to obtain a second decoding result; The first decoding result and the second decoding result are concatenated to obtain an optimal decoding path, wherein the optimal decoding path includes a word sequence with the highest probability of recognizing the speech data.
Citation Information
Patent Citations
Voice identification method and device, and voice identification engine
CN108288467A
Conference recording and transferring method and system, computer equipment and readable storage medium
CN113450803A
Speech recognition method and device, equipment and storage medium
CN114360499A
Speech recognition method, speech recognition system, computer equipment and storage medium
CN116665652A
Speech recognition method and apparatus, device, and storage medium
WO2023070803A1
Cited By
Voice wake-up method, device, equipment, medium and product
CN119993164A
