Voice processing method and electronic equipment

By using wake word enhancement and voiceprint recognition in electronic devices, combined with dynamic language models and tail point detection, the problem of recognition errors caused by interference in far-field voice interaction is solved, and the recognition accuracy of voice commands and the efficiency of human-computer interaction are improved. reliability.

CN118737140APending Publication Date: 2024-10-01HISENSE VISUAL TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410734441.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In complex far-field acoustic environments, it is difficult for electronic devices to accurately recognize and respond to voice commands, leading to errors or failures in human-computer interaction, mainly due to the influence of noise, electronic human voices and other interference factors.

Method used

By adopting a wake word recognition and enhancement mechanism in electronic devices, the target human voice is locked and voiceprint recognition is performed, combined with the dynamic language model and tail point detection mechanism, to suppress interference and improve the recognition accuracy of voice commands.

Benefits of technology

It significantly improves the accuracy of recognition and response of electronic devices to voice commands, reduces false responses and missed responses, and enhances the reliability and performance of human-computer interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737140A_ABST
    Figure CN118737140A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a voice processing method and electronic equipment. The method comprises the following steps: performing wake-up word recognition on a voice signal collected by a voice collector; when a wake-up word is recognized from the voice signal, enhancing a target human voice making the wake-up word; performing voiceprint recognition on the enhanced target human voice, and determining a target sounding object; and extracting a voice instruction of a target sounding object from the voice signal, and responding to the voice instruction. Therefore, the electronic equipment identifies and enhances the wake-up word, locks the target sounding object and establishes the strong relevance between the wake-up word and the sounding object of the voice instruction, so that the voice instruction is accurately identified and responded, and the performance of a man-machine interaction system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of speech technology, and in particular to a speech processing method and electronic equipment. Background Art

[0002] Electronic devices can support human-computer interaction functions. Human-computer interaction functions support users to wake up voice assistants, send voice commands to electronic devices, have conversations and ask questions with electronic devices, etc., so that users can quickly acquire knowledge and control devices.

[0003] In some complex human-computer interaction scenarios, for example, when a user performs far-field voice interaction with an electronic device in a living room environment, since the living room is a public area in the home, the far-field acoustic environment is complex and has many interference factors, resulting in the possibility that the voice signal is mixed with noise, electronic human voices, multiple user voices, etc. In this way, the electronic device cannot accurately recognize and respond to voice commands, resulting in problems such as false responses and no responses, causing errors or even failures in human-computer interaction. Summary of the invention

[0004] The embodiments of the present application provide a voice processing method and an electronic device to improve the accuracy of the electronic device in recognizing and responding to voice commands.

[0005] In a first aspect, an embodiment of the present application provides an electronic device, including:

[0006] A sound collector, used to collect voice signals input by users;

[0007] Controller, which performs:

[0008] Perform wake-up word recognition on the voice signal collected by the sound collector;

[0009] When a wake-up word is recognized from the voice signal, enhancing the target human voice that utters the wake-up word;

[0010] Performing voiceprint recognition on the enhanced target human voice to determine the target voice speaker;

[0011] Extract the voice command of the target sounding object from the voice signal and respond to the voice command.

[0012] In some embodiments, the controller is also used to execute: obtaining a human-computer dialogue history, segmenting the human-computer dialogue history, and obtaining historical dialogue segmentations; the human-computer dialogue history includes historical dialogue content between the user and the electronic device; constructing a user vocabulary based on device-specific words of the electronic device, the historical dialogue segmentations and usage history; wherein the device-specific words are words related to the hardware and software configuration of the electronic device, and the usage history contains associated words generated when the user uses the electronic device; constructing a dynamic language model based on the user vocabulary; and generating a personalized language model based on the dynamic language model and the basic language model.

[0013] In some embodiments, before responding to the voice instruction, the controller is further configured to perform: recognizing the voice instruction based on the acoustic model and the personalized language model to convert the voice instruction into a target text.

[0014] In some embodiments, before responding to the voice command, the controller is also used to execute: calling an end point set and a non-end point set; wherein the end point set includes a complete and unambiguous instruction text input by the user in history, and the non-end point set includes an incomplete instruction text generated by the electronic device in different services; if the end point set includes the target text, it is determined that the voice signal has reached the end point, and the sound collector is controlled to stop collecting voice signals; if the end point set does not include the target text, and the non-end point set includes the target text, it is determined that the voice signal has not reached the end point, and the sound collector is controlled to continue collecting voice signals.

[0015] In some embodiments, before responding to the voice instruction, the controller is also used to execute: if the non-tail point set does not include the target text, using an tail point discrimination model to extract the voice features of the voice instruction; using the tail point discrimination model to encode the conversation history, and splicing the encoded conversation history and the voice features to obtain context features; based on the context features, if it is determined that the voice signal has reached the tail point, controlling the sound collector to stop collecting the voice signal; based on the context features, if it is determined that the voice signal has not reached the tail point, controlling the sound collector to continue collecting the voice signal.

[0016] In some embodiments, after determining that the voice signal reaches the end point, the controller is also used to execute: performing general rejection judgment on the target text to determine whether the target text is fluent; if the target text is not fluent, refusing to respond to the voice instruction; if the target text is fluent, performing business rejection judgment on the target text to determine whether the voice instruction contains a clear business intent; if the voice instruction includes a clear business intent, allowing the voice instruction to be responded to.

[0017] In some embodiments, after controlling the sound collector to stop collecting voice signals, the controller is also used to execute: if the voice instruction does not include a clear business intent, performing non-interactive rejection judgment based on the context of the conversation history to determine whether the voice instruction contains a non-interactive intent; wherein the non-interactive intent is the intention conveyed by the user to other interactive objects other than the electronic device; if the voice instruction does not contain the non-interactive intent, allowing the voice instruction to be responded to; if the voice instruction contains the non-interactive intent, refusing to respond to the voice instruction.

[0018] In some embodiments, the electronic device also includes an audio output device, and the controller responds to the voice command, including: obtaining a first reply sentence of the machine; adding an interjection to the first reply sentence according to the context of the conversation history to obtain a second reply sentence; setting a prosodic feature for the second reply sentence, the prosodic feature being used to characterize the tone, intonation, speaking speed and conversation atmosphere of the sentence presentation; performing speech synthesis according to the second reply sentence and the prosodic feature to convert it into a reply audio of the machine; and controlling the audio output device to broadcast the reply audio.

[0019] In some embodiments, the electronic device also includes an audio output device, and the controller is also used to execute: when it is determined that the voice signal has not reached the end point, predicting the probability distribution of feedback words, the probability distribution of feedback words including at least one feedback word to be output and the probability value of the feedback word to be output; obtaining the target feedback word corresponding to the maximum probability value; and controlling the audio output device to broadcast the target feedback word.

[0020] In a second aspect, the embodiment of the present application further provides a speech processing method, including:

[0021] Perform wake-up word recognition on the voice signal collected by the sound collector;

[0022] When a wake-up word is recognized from the voice signal, enhancing the target human voice that utters the wake-up word;

[0023] Performing voiceprint recognition on the enhanced target human voice to determine the target voice speaker;

[0024] Extract the voice command of the target sounding object from the voice signal and respond to the voice command.

[0025] In a third aspect, some embodiments of the present application further provide a computer storage medium, in which program instructions are stored. When the program instructions are executed on a computer, the computer executes the methods involved in the above aspects and their various implementations.

[0026] In the above various embodiments of the present application, the wake-up word is identified for the voice signal input by the user, and the user who issued the wake-up word is locked as the target sound object. Since there may be interference such as noise, electronic human voice and other non-target human voices in the environmental scene, these sounds are mixed in the voice signal, which can easily lead to errors in voice command recognition and false response problems. Therefore, when the wake-up word is recognized, the present application will enhance the target human voice that issues the wake-up word, so that the target human voice is more prominent in the voice signal, thereby suppressing other interfering sounds, and accurately locking the identity of the target sound object by performing voiceprint recognition on the target human voice, so that the electronic device can extract the voice command of the target sound object from the voice signal and respond, and establish a strong correlation between the wake-up word and the sound object of the voice command through wake-up word recognition and enhancement, so as to accurately identify and respond to voice commands, and improve the accuracy and performance of the voice command response of the human-computer interaction system. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] 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.

[0028] Figure 1 An operation scenario diagram of voice service processing provided in some embodiments of the present application;

[0029] Figure 2 A hardware configuration block diagram of an electronic device provided in some embodiments of the present application;

[0030] Figure 3 A software architecture configuration block diagram of a server and an electronic device provided in some embodiments of the present application;

[0031] Figure 4 A schematic diagram of a full-duplex voice processing architecture provided for some embodiments of the present application;

[0032] Figure 5 A schematic diagram of a full-duplex voice interaction architecture provided for some embodiments of the present application;

[0033] Figure 6 A schematic diagram of a wake-up word enhancement mechanism provided in some embodiments of the present application;

[0034] Figure 7 A schematic diagram of a target vocal extraction mechanism provided for some embodiments of the present application.

[0035] Figure 8 A schematic diagram of a speech recognition enhancement mechanism provided in some embodiments of the present application;

[0036] Fig. 9 A schematic diagram of a tail point detection mechanism provided in some embodiments of the present application;

[0037] Fig.10 A schematic diagram of a non-interactive rejection mechanism provided for some embodiments of the present application;

[0038] Fig.11 A schematic diagram of a speech synthesis mechanism provided in some embodiments of the present application;

[0039] Fig.12 A schematic diagram of a non-final word insertion prediction mechanism for speech provided in some embodiments of the present application. DETAILED DESCRIPTION

[0040] 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.

[0041] 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 ordinary and common meanings.

[0042] 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.

[0043] 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.

[0044] 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.

[0045] In the embodiments of the present application, electronic devices generally refer to devices with voice processing and service processing capabilities. For example, electronic devices include but are not limited to smart TVs, mobile terminals, computers, audio equipment, Bluetooth audio, wearable devices, virtual reality devices, augmented reality devices, etc.

[0046] Figure 1 An operational scenario diagram for voice service processing provided in some embodiments of the present application.

[0047] like Figure 1 As shown, the operation scenario may include a server 100 and an electronic device 200, and the electronic device 200 exemplarily includes a smart TV 200a, a mobile terminal 200b, a smart speaker 200c, etc.

[0048] In the present application, the server 100 and the electronic device 200 can exchange data through a variety of communication methods. The electronic device 200 can be allowed to communicate through a local area network (LAN), a wireless local area network (WLAN) or other networks. The server 100 can provide the electronic device 200 with semantic analysis and intent recognition results, various business-related data and other content. Exemplarily, the electronic device 200 and the server 100 can exchange information and data, and receive software program updates, etc.

[0049] The server 100 may be a server that provides various services, such as a background server that provides support for voice data collected by the electronic device 200. The server 100 may perform speech processing such as semantic analysis and intent recognition on the received voice and other data, and feed back the processing results (e.g., voice text, intent instructions, etc.) to the electronic device 200. The server 100 may also respond to the service request of the electronic device 200 and send the corresponding service data (e.g., application data, media data, etc.) to the electronic device 200. The server 100 may be a server cluster or multiple server clusters, and may include one or more types of servers.

[0050] The electronic device 200 may be a hardware device or a software device. When the electronic device 200 is a hardware device, it may be various electronic devices with sound collection and processing functions, including but not limited to: smart TVs, smart refrigerators, smart air conditioners, smart speakers and other home appliances, smart phones, tablet computers, e-book readers, smart watches, smart game consoles, computers, AI devices, robots, smart cars and other terminal devices.

[0051] When the electronic device 200 is a software device, it may include at least one software functional module / service / model (e.g., sound collection module, voice service, voice processing model, language model, acoustic model, etc.), and the software device may be applied to the hardware electronic devices listed above to enable the electronic device 200 to have independent voice processing capabilities. The software device may be implemented as multiple software or software modules (e.g., used to provide sound collection services), or as a single software or software module. No specific limitation is made here.

[0052] It should be noted that the voice processing method provided in the embodiment of the present application can be executed independently by the electronic device end, or it can be completed based on the communication interaction between the server 100 and the electronic device 200.

[0053] Figure 2 A hardware configuration block diagram of an electronic device provided for some embodiments of the present application.

[0054] like Figure 2 As shown, the electronic device 200 may include but is not limited to at least one of a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a user input interface 280, a memory, and a power supply. The controller 250 may include: a central processing unit, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and at least one of a first interface to an nth interface for input / output.

[0055] The display 260 includes a display screen component for presenting images, a driving component for driving image display, a component for receiving image signals output from the controller 250, and a component for displaying video content, image content, and a menu control interface and a user control UI interface. The display 260 can be a liquid crystal display, an OLED display, and a projection display, and can also be a projection device and a projection screen.

[0056] The communication device 220 is a component for communicating with an external device or the server 100 according to various communication protocol types. For example, the communication device 220 may include: a Wifi module, a Bluetooth module, a wired Ethernet module, or other network communication protocol chips or near field communication protocol chips, and at least one of an infrared receiver. The electronic device 200 can establish a communication connection with the server 100 through the communication device 220 to achieve the sending and receiving of control signals and data signals.

[0057] The user input interface 280 may be used to receive external control signals, such as operations input by a user based on a user interface.

[0058] The detector 230 can be used to collect signals from the external environment or interact with the outside. For example, the detector 230 may include a sound collector, which may be an independent microphone for collecting near-field voice data, or the sound collector may be a microphone array, which includes a plurality of microphone units arranged in a certain layout for collecting far-field voice data in the external environment.

[0059] A microphone, also called a "microphone" or "microphone", can be used to collect sounds emitted by a user and convert sound signals into electrical signals. The electronic device 200 can be provided with at least one microphone. In some embodiments, the electronic device 200 can be provided with two microphones, which can not only collect sound signals but also realize noise reduction. The electronic device 200 can also be provided with three, four or more microphones, and a microphone array can be provided to realize functions such as far-field sound signal collection, noise reduction, sound source identification, and directional recording.

[0060] The sound collector may be built into the electronic device 200, or connected to the electronic device 200 by wired or wireless means (such as Bluetooth connection, etc.). Of course, the embodiment of the present application does not limit the installation position of the sound collector on the electronic device 200. Alternatively, the electronic device 200 may not include a microphone, that is, the above-mentioned microphone is not provided in the electronic device 200. The electronic device 200 may be connected to an external microphone through some interface (for example: USB interface), and the external microphone may be fixed to any position on the electronic device 200 through an external fixing (for example: a microphone holder with a clip).

[0061] The controller 250 can control the task execution, voice processing and response to the user's operation or voice command of the electronic device 200 through various software programs stored in the memory 270. The controller 250 is used to control the overall operation of the electronic device 200.

[0062] The controller 250 may include: a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), RAM (Random Access Memory, RAM), ROM (Read-Only Memory, ROM), a first interface to an nth interface for input / output, a communication bus (Bus), etc.

[0063] The audio output device 270 is used to play sound. For example, in a multi-round voice conversation, the machine's reply statement can be voice broadcasted through the audio output device 270. The audio output device 270 can be a built-in speaker of the electronic device 200, or a playback device (such as a speaker, a Bluetooth speaker, etc.) connected to the electronic device 200 by wire or wireless means.

[0064] The electronic device 200 may have different software configurations under different device types and operating systems. Figure 3 A block diagram of the software architecture configuration of the server and electronic device provided for some embodiments of the present application.

[0065] Take the electronic device 200 configured with the Android operating system as an example. Figure 3 As shown, the electronic device 200 can be logically divided into an application layer (hereinafter referred to as "application layer 21"), a kernel layer 22 and a hardware layer 23. The server 100 includes but is not limited to a communication control module 101, an intention recognition module 102 and a data storage module 103.

[0066] In some embodiments, Figure 3 As shown, the hardware layer 23 may include Figure 2 Examples include a communication device 220, a detector 230, a controller 250, and a display 260.

[0067] In some embodiments, Figure 3 As shown, the application layer 21 runs one or more application programs. The application can be a system application or a third-party application. For example, the application layer 21 can include a voice application, which can provide a voice interaction interface and related voice services. The voice application can interact with the communication control module 101 to achieve the connection between the electronic device 200 and the server 100.

[0068] In some embodiments, the voice application can also be configured to use software modules or models (such as language models, acoustic models, etc.) to process the user voice collected by the sound collector. The voice processing process includes but is not limited to: voice signal preprocessing, voice wake-up recognition, voice wake-up enhancement, voiceprint recognition, semantic recognition, intent recognition, end point detection of multi-round voice conversations, non-interaction rejection, speech synthesis, etc.

[0069] The kernel layer 22 serves as software middleware between the hardware layer 23 and the application layer 21 and is used to manage and control hardware resources and software resources.

[0070] In some embodiments, the kernel layer 22 includes a detector driver, which may include a microphone driver, and the microphone driver is used to send voice data collected by the microphone to the voice application running in the application layer 21. When the voice application in the electronic device 200 is started and the electronic device 200 has established a communication connection with the server 100, the microphone driver is used to send the voice data of the user input collected by the microphone in the detector 230 to the voice application. Afterwards, the voice application can send the voice data to the intent recognition module 102 in the server 100; the intent recognition module 102 is used to input the voice data sent by the electronic device 200 into the intent recognition model, which can be a model configured with algorithms such as voice processing and intent recognition, and is used to output the user intent indicated by the voice data, for example, the user intent is "turn on the air conditioner."

[0071] Figure 4 A schematic diagram of a full-duplex voice processing architecture provided for some embodiments of the present application. The interactive network architecture can realize a voice dialogue between a user and a machine, and the voice dialogue can be in the form of a single round or multiple rounds of dialogue.

[0072] like Figure 4 As shown, the electronic device is used to receive the sound emitted by the user and output the response / reply result of the sound content. The speech recognition module (Automatic Speech Recognition, ASR) is deployed with a speech recognition service for recognizing audio as text; the semantic understanding module (Natural Language Understanding, NLU) is deployed with a natural language understanding service for semantically parsing the text; the business management module is deployed with a business instruction management service for providing business instructions, such as dialogue management (Dialog Management, DM); the language generation module (Natural Language Generation, NLG) is deployed with a language generation service for converting the instructions for the electronic device to execute into text language; the speech synthesis module (Text To Speech, TTS) is deployed with a speech synthesis service for converting the text language corresponding to the instruction into sound and sending it to the audio output device 270 for broadcast. In one embodiment, Figure 4 In the illustrated architecture, there may be multiple physical devices deployed with different business services, or one or more functional services may be integrated into one or more physical devices.

[0073] In some embodiments, the following Figure 4 The processing process of the architecture shown is described by way of example, taking the information input into the electronic device as a query statement input by voice as an example:

[0074] [Speech Recognition]

[0075] After receiving the query statement input by the user's voice, the electronic device can perform noise reduction processing and feature extraction on the audio of the query statement. The noise reduction processing here may include steps such as removing echoes and environmental noise.

[0076] [Semantic understanding]

[0077] Using acoustic models and language models, the identified candidate texts and associated context information are understood by natural language, and the texts are parsed into structured, machine-readable information, such as business domain, intent, word segmentation slots, etc. to express semantics. The executable intent is obtained to determine the intent confidence score. The semantic understanding module selects one or more candidate executable intents based on the determined intent confidence score.

[0078] [Business Management]

[0079] Based on the semantic analysis results of the query text, the semantic understanding module sends query instructions to the corresponding business management module to obtain the query results given by the business service, execute the actions required to "complete" the user's final request, and provide feedback on the device execution instructions corresponding to the query results.

[0080] [Language Generation]

[0081] Natural language generation is configured to generate language text from information or instructions. It can be specifically divided into chat type, task type, knowledge question and answer type and recommendation type. Among them, NLG in chat-type dialogue is to perform intent recognition and sentiment analysis based on the context, and then generate open replies; task-type dialogues need to generate dialogue replies based on learned strategies, and general replies include clarifying needs, guiding users, asking, confirming, and ending dialogues; knowledge question and answer dialogues generate the knowledge (knowledge, entities, fragments, etc.) required by users based on question type recognition and classification, information retrieval or text matching; in recommendation-type dialogue systems, interest matching and candidate recommendation content ranking are performed based on user hobbies, and then content recommended to users is generated.

[0082] [Speech Synthesis]

[0083] The speech synthesis module is configured to present speech output to the user. The speech synthesis processing module synthesizes speech output based on the text provided by the digital assistant. For example, the generated dialogue response is in the form of a text string. The speech synthesis module converts the text string into an audible speech output.

[0084] It should be noted that Figure 4 The architecture shown is only an example and does not limit the protection scope of the present application. In the embodiments of the present application, other architectures may also be used to implement similar functions, for example: all or part of the above process may be completed by the electronic device end.

[0085] In some embodiments, the voice interaction scenario may include near-field voice and far-field voice, wherein near-field voice refers to the voice interaction between the user and the sound collector at close range, such as the user holding a smart phone and inputting voice commands, the user long pressing the voice button of the remote control to input voice commands to the smart TV, etc. Far-field voice is a voice interaction performed at a relatively long distance, for example, the user issues a voice command in scenes such as a conference room, classroom, smart home (such as a living room), and the sound collection device configured in the scene (such as a microphone array) captures the user's voice signal, and the voice system processes and responds to the voice signal, and finally executes the program or action indicated by the voice signal. The above embodiments can solve the processing and response of conventional near-field voice and far-field voice.

[0086] In some special and complex environmental scenarios, the accuracy of the voice processing solution in the above embodiment is low, which may cause voice interaction failure or error. Taking the living room in a home scenario as an example, the living room is a public area in the home, and the far-field acoustic environment is complex. Users usually speak far away from the electronic device (for example, 3 to 5 meters). During the far-field transmission process, the voice signal quality is poor and is easily affected by noise and room reverberation.

[0087] When user 1 is interacting with an electronic device (such as a smart TV) by voice, there may be other family members in the living room, at least one family member other than user 1 may be speaking, and other devices (such as smart speakers) may be playing electronic human voices. These sounds will be picked up by the microphone array, and the dialogue system cannot make accurate voice processing and responses, which may cause multiple rounds of dialogue to fail. In addition, during the process of voice interaction with the electronic device, user 1 may suddenly change to communicating with user 2, resulting in interruption of voice interaction. The voice processing scheme of the above embodiment cannot perform "non-interactive rejection", that is, refuse to recognize and respond to non-interactive intentions during the dialogue between user 1 and the electronic device. Non-interactive intentions are the content of the dialogue between user 1 and user 2.

[0088] In order to cope with many complex interference factors in multi-round conversation scenarios based on far-field voice and improve the accuracy of voice processing, the embodiment of the present application provides a "full-duplex voice interaction". The "full-duplex voice interaction" includes at least one of the following features:

[0089] (1) No need to wake up during multiple consecutive rounds of conversations.

[0090] (2) Listen while speaking and interrupt at any time. During a conversation, the dialogue system needs to accurately identify the switching of dialogue turns, respond and reply when the user completes the voice input, keep listening when the user interrupts the voice or the voice is incoherent, and avoid interference from environmental noise, non-target human voices, and non-interactive voices.

[0091] (3) One-to-one interaction. Full-duplex voice interaction is mainly one-to-one interaction. The dialogue system only interacts with one target user at any time, and other voices and noise are regarded as interference factors.

[0092] (4) Combine user usage history and conversation context to improve the accuracy of speech recognition.

[0093] (5) Improve the accuracy of tail point detection to achieve rapid response and delayed listening to user voice.

[0094] (6) Implement non-interactive rejection and refuse to respond to dialogue commands with non-interactive intentions, thereby avoiding incorrect responses.

[0095] (7) According to the user's historical conversations and context, set the machine's reply sentences with interjections that match the conversation scenario, and set the rhythm of the machine's reply sentences, so as to realize the anthropomorphism of the machine's reply and improve the effect of human-machine dialogue. Among them, rhythm can express the tone, intonation, atmosphere, emotion, rhythm, etc. of the sentence.

[0096] Figure 5 A schematic diagram of a full-duplex voice interaction architecture provided for some embodiments of the present application.

[0097] In some embodiments, see Figure 5 The full-duplex voice interaction architecture can be applied to human-computer interaction systems / dialogue systems, including a sound collector 51, a voice preprocessing module 52, a voice wake-up module 53a, a wake-up enhancement module 53b, a voiceprint module 54, a human voice extraction module 55, a voice recognition module 56, a tail point detection module 57, a non-interactive rejection module 58 and a speech synthesis module 59.

[0098] In some embodiments, the sound collector 51 may be configured as a microphone array, which is used to collect voice signals in a far-field environment.

[0099] In some embodiments, the speech preprocessing module 52 is used to preprocess the speech signal. For example, for far-field speech signals, the preprocessing includes but is not limited to: echo cancellation, sound source localization, beamforming, speech noise reduction, automatic gain, etc.

[0100] In some embodiments, the voice wake-up module 53a is used to wake up the voice assistant of the human-computer interaction system for the first time in the round-by-round voice dialogue. The wake-up enhancement module 53b is used to recognize and enhance the wake-up word from the voice signal.

[0101] When users have a human-computer dialogue with electronic devices, they can use one-shot voice interaction. One-shot voice interaction is presented as "wake-up word + voice command". For example, the user says "Xiao A Xiao A, play a song I remember", where "Xiao A Xiao A" is the wake-up word and "play a song I remember" is the voice command containing the interaction intention. When the user inputs a one-shot voice signal, it may be interfered by the surrounding noise, electronic human voice and other human voices, resulting in misrecognition of the one-shot voice signal.

[0102] In order to suppress interference, the embodiment of the present application provides a wake-up enhancement module 53b. The wake-up enhancement module 53b is used to identify the wake-up word from the one-shot voice signal, enhance the target human voice that speaks the wake-up word, and suppress or filter out the interference sound so that the target human voice can be significantly distinguished from the interference sound in the one-shot voice signal.

[0103] Figure 6A schematic diagram of a wake-up word enhancement mechanism provided for some embodiments of the present application.

[0104] In some embodiments, see Figure 6 After the wake-up enhancement module 53b recognizes the wake-up word from the one-shot voice signal, it extracts a voice segment containing the wake-up word. The voice segment has a certain duration (eg, 1.5 seconds).

[0105] In some embodiments, see Figure 6 , the wake-up enhancement module 53b can be configured with a wake-up word enhancement model, and the extracted voice segment is input into the wake-up word enhancement model. The wake-up word enhancement model can perform a short-time Fourier transform on the voice segment to obtain the original amplitude spectrum, which is used to characterize the change of signal amplitude with frequency, and then perform a one-dimensional convolution on the original amplitude spectrum and input it into the self-attention module. The self-attention module performs Self-Attention processing from the time dimension and the frequency dimension in turn, and finally undergoes a one-dimensional convolution processing to obtain a mask with the same dimension as the amplitude spectrum. The original amplitude spectrum is multiplied by the mask to obtain an enhanced amplitude spectrum (abbreviated as: enhanced amplitude spectrum), which is used by the voiceprint module 54 to extract the voiceprint information of the target voice.

[0106] Among them, mask is a mask (also called a mask), which is equivalent to "covering" the original amplitude spectrum with a mask, thereby masking some specific elements (such as noise, non-target human voice, etc.), playing a role similar to a filter, by suppressing or filtering interference sounds such as noise and non-target human voice in the voice segment, so as to enhance the target human voice that speaks the wake-up word. The wake-up enhancement module 53b sends the enhanced amplitude spectrum to the voiceprint module 54.

[0107] In some embodiments, the voiceprint module 54 is used to obtain the target voiceprint information from the enhanced target human voice according to the enhanced amplitude spectrum. Voiceprint is the sound wave spectrum that carries language information. Since each person's vocal organs and vocalization methods are different, the voiceprint features are unique, and the voicer's identity can be accurately identified using the voiceprint. In a far-field voice interaction environment, the voiceprint information includes but is not limited to: voiceprint features, sound source angle, sound source distance, the channel to which the sound source belongs, etc.

[0108] In some embodiments, the human voice extraction module 55 is used to extract the target human voice from the speech signal collected by the microphone array according to the target voiceprint information provided by the voiceprint module 54. The target voiceprint information is used to lock the target sound object, and the target human voice is the sound emitted by the target sound object.

[0109] In this way, through the wake-up enhancement module 53b, the voiceprint module 54 and the voice extraction module 55, the noise and other interferences in the far-field environment can be suppressed. It is not necessary to completely eliminate the interference, but it is necessary to retain the target voice to the greatest extent so as to perform speech recognition on the target voice later. Based on the one-shot wake-up word, the voiceprint information of the target voice is extracted instantly, and the target sounding object is recorded and locked. There is no need for the target sounding object to register the voiceprint in advance, which simplifies the difficulty of user use.

[0110] Figure 7 A schematic diagram of a target vocal extraction mechanism provided for some embodiments of the present application.

[0111] In a multi-round conversation scenario based on full-duplex far-field voice, the user's first sentence generally adopts a one-shot structure of "wake-up word + voice command", so that repeated wake-ups can be avoided in subsequent consecutive multi-round conversations. Figure 7 As shown, the wake-up enhancement module 53b and the voiceprint module 54 only infer once in the first sentence one-shot. After locking the target sound-making object, the human voice extraction module 55 needs to perform streaming inference on the voice signal collected by the microphone array to accurately extract the target human voice from the dynamically input voice signal.

[0112] like Figure 7 As shown, when the user starts to input a one-shot voice signal, he or she generally speaks the wake-up word first, and then speaks a voice command containing the interactive intention, such as "Xiao A Xiao A, play what I remember". The wake-up enhancement module 53b recognizes and enhances the wake-up word, and the voiceprint module 54 extracts the target voiceprint information based on the human voice signal containing the wake-up word. Afterwards, when the user speaks a voice command, the voice command is dynamically input in real time, such as "play"... "play me"... "play what I remember"... "play what I remember", so the human voice extraction module 55 needs to stream extract the target human voice that matches the target voiceprint information from the dynamically input voice command, thereby obtaining the voice command of the target sounding object.

[0113] In some embodiments, the speech recognition module 56 is used to perform speech recognition on the target human voice extracted by the human voice extraction module 55, so as to convert the target human voice from audio to text content understandable by a machine. The speech recognition module 56 generally includes an acoustic model and a language model.

[0114] In some embodiments, the acoustic model is to link the observed features of the speech signal with the speech modeling unit of the sentence, and output the probability distribution of the text corresponding to the speech signal. The category of the acoustic model is not limited, for example, the HMM model (Hidden Markov Model) can be used.

[0115] In some embodiments, a language model is used for text processing. By modeling the transition probabilities between characters and words through a large amount of text, the language model outputs the candidate text with the highest probability. For example, when the user inputs "nihao", the candidate text with the highest probability is usually "你好" instead of "尼毫".

[0116] In a continuous multi-round conversation scenario, the conversation fields, topics, and business types are extensive. The user may ask questions about the conversation content, which may involve proper nouns. For example, User 1 asks "How to treat influenza?", and the machine answers "Drug X is a specific medicine for treating influenza". Then User 1 continues to ask "What are the side effects of Drug X?". The specialized vocabulary in the medical field such as influenza and Drug X also belongs to the historical conversation between humans and machines. In the embodiments of the present application, the language model is dynamically adjusted to enhance the speech recognition ability and improve the accuracy of the speech recognition module 56 in recognizing specific words.

[0117] Figure 8 It is a schematic diagram of the speech recognition enhancement mechanism provided by some embodiments of the present application.

[0118] Referring to Figure 8 , based on the historical conversation between humans and machines of the user and electronic device A, the speech recognition module 56 obtains the device-specific words, conversation history, and usage history of electronic device A.

[0119] In some embodiments, the device-specific words are the words related to the software, hardware, and operations of electronic device A, such as "HDMI1", "screen mirroring", "settings menu", "return", "exit", etc. The device-specific words are not fixed. For example, after electronic device A executes system upgrade, application upgrade and other programs, the device-specific words may change and expand.

[0120] In some embodiments, the conversation history is the historical chat record of the human-machine conversation. For example, User 1 asks "How to treat influenza?", the machine answers "Drug X is a specific medicine for treating influenza", and User 1 asks "What are the side effects of Drug X?". The conversation history accumulates dynamically along with the human-machine conversation.

[0121] In some embodiments, the usage history is the record of the user's usage behavior of electronic device A, including but not limited to: historical search records, historical viewing records, historical browsing records, historical playback records, etc. These records are usually associated with specific words (abbreviation: associated words). For example, the associated word of the historical search record is the search keyword, and the associated word of the historical viewing record is the media asset name. The usage history accumulates dynamically along with the user's usage and control of the device.

[0122] In some embodiments, continue to refer to Figure 8Since the conversation history includes multiple conversation sentences between the human and the machine, the speech recognition module 56 can segment the conversation history to extract the noun entities contained in the conversation history, and build a user vocabulary based on the device-specific words, conversation history segmentation and associated words in the usage history, and build a dynamic language model based on the user vocabulary. The "dynamic" attribute of the dynamic language model is reflected in the dynamic expansion along with the device performance, conversation history and usage history, thereby providing a richer vocabulary and dictionary for the text processing of the speech model and improving the accuracy of speech recognition.

[0123] In some embodiments, continue to refer to Figure 8 , the speech recognition module 56 merges the decoding paths of the dynamic language model and the basic language model to form a personalized language model, and controls the acoustic model and the personalized language model to process the target human voice in turn, and finally converts the target human voice into text. Among them, the basic language model can select a general large language model, and the basic language model involves a vocabulary under different fields, professions, themes and businesses. In this way, the personalized language model covers general proprietary vocabulary, device-specific words, human-computer dialogue history and user usage history, etc., which can enhance the speech recognition effect of named entities.

[0124] In some embodiments, since the target human voice is collected, extracted and recognized in a streaming dynamic manner, tail point detection is required after speech recognition of the target human voice. Tail point detection refers to determining whether the sentence of the target human voice reaches the tail point to determine whether the user has completed the voice input of a round of conversation.

[0125] In some embodiments, the tail point detection module 57 is used to perform tail point detection based on the target text output by the speech recognition module 56 to determine whether the target sounding object has completed a round of dialogue input. If the tail point detection module 57 determines that the tail point has been reached, the human-computer interaction system can control the microphone array to stop receiving sound, and respond to the voice command or make the machine reply. If the user's oral expression is incoherent, or the user pauses speaking due to hesitation and thinking, the tail point detection module 57 determines that the tail point has not been reached, and the human-computer interaction system needs to continue listening, continue to collect, extract and recognize the target human voice until the tail point condition is met.

[0126] Fig. 9 A schematic diagram of a tail point detection mechanism provided for some embodiments of the present application.

[0127] In some embodiments, see Fig. 9The tail point detection module 57 can count the usage data and business data of the electronic device to maintain the tail point set and the non-tail point set. Among them, the tail point set includes complete and unambiguous command texts commonly used by users, such as "shut down", "turn on the TV", "turn on the air conditioner", "cooling", "temperature 22 degrees", "recommend popular songs", etc. The tail point set includes common and high-frequency incomplete command texts in different devices and services. For example, incomplete sentences such as "I want to listen", "I want to watch", "play", etc. are generated when users order media resources in smart TV services. The tail point set and the non-tail point set are mutually exclusive. The role of the two is to reduce the resource consumption of the dialogue system, improve maintainability, and improve the accuracy and efficiency of tail point detection.

[0128] In some embodiments, see Fig. 9 , the speech recognition module 56 can send the speech recognition data of the target human voice to the tail point detection module 57, and the speech recognition data includes the speech instruction + the recognized target text. The tail point detection module 57 obtains the target text from the speech recognition data and determines whether the tail point set contains the target text. If the tail point set contains the target text, it is determined that the tail point has been reached, and the human-computer interaction system controls the microphone array to stop receiving sound to respond to the current voice instruction.

[0129] In some embodiments, see Fig. 9 If the tail point set does not contain the target text, the tail point detection module 57 continues to determine whether the non-tail point set contains the target text. If the non-tail point set contains the target text, indicating that the tail point has not been reached, the human-computer interaction system extends the waiting time, maintains the listening state, continues to collect, extract and recognize the target human voice, and continues to perform tail point detection until the tail point condition is met.

[0130] In some embodiments, the tail point detection module 57 can also pre-train a tail point discrimination model, which is a bimodal model constructed based on the human-computer dialogue history, and is used to perform tail point detection based on the context of the dialogue history. If the non-tail point set does not contain the target text, the tail point detection module 57 obtains the voice instruction from the speech recognition data and sends the voice instruction to the tail point discrimination model.

[0131] In some embodiments, see Fig. 9 The tail point discrimination model may include a language feature extraction model and a first language model. The language feature extraction model is used to extract the first voice feature contained in the voice instruction. The language feature extraction model may use an acoustic model, an unsupervised training voice model, etc.

[0132] In some embodiments, the first language model is used to encode the conversation history, and then the encoded conversation history and the first voice feature are sequentially spliced, and the spliced ​​second voice feature is used as the "previous context / previous context". The first language model can use a pre-trained language model based on BERT, GPT, etc. In theory, the use of a pre-trained language model can improve the generalization ability of the human-computer interaction system, but the language extraction model and the first language model can also be replaced by a non-pre-trained custom network model.

[0133] In some embodiments, see Fig. 9 The first language model makes an end point decision based on the contextual semantic relationship. For example, the conversation history is user 1 "How to reduce fever?", the machine "Paracetaminophen is a special medicine for treating fever", and the first voice feature is user 1 "Paracetaminophen, um". The user may pause "um" because of thinking about the name of the medicine, resulting in an incomplete name of the medicine (paracetamol). In this way, the first language model determines that the end point has not been reached, and the human-computer interaction system prolongs the waiting time and maintains the listening state.

[0134] If user 1 continues to input "paracetamol, um, what are the side effects of paracetamol?", the first language model determines that the end point has been reached based on the contextual semantic relationship, that is, the user has entered a complete and unambiguous dialogue sentence, then the human-computer interaction system can control the microphone array to stop receiving sound, and respond to the current voice command, and respond to the side effects of paracetamol. Through the above end point detection mechanism, the accuracy of end point detection can be improved, the command response speed of the human-computer interaction system can be improved, and the success rate of dialogue can be improved.

[0135] Through the wake-up enhancement and the extraction and locking of the target voice in the aforementioned embodiment, background noise, electronic voices and other non-target voices can be suppressed to a great extent. When performing tail point detection and determining that the tail point has been reached, the command containing the intention issued by the target sound-emitting object can be obtained and responded to. Assuming that the target sound-emitting object is user 1, when user 1 inputs one-shot to wake up the human-computer interaction system for the first time, it can be considered that user 1 has a clear interactive intention. In the subsequent multiple rounds of dialogue, user 1 may suddenly interrupt the dialogue with the machine and communicate with other users (such as user 2). In this way, the dialogue content between user 1 and user 2 will also be collected, extracted and recognized, so that the voice command of user 1 is mixed with non-interactive intentions.

[0136] For ease of description, in the process of multiple rounds of human-computer dialogue between the target sound-emitting object and electronic device A, the embodiment of the present application refers to the intention conveyed by the target sound-emitting object to electronic device A as "interactive intention", and the intention conveyed by the target sound-emitting object to other objects as "non-interactive intention". Among them, the so-called other objects are other people (i.e., non-target sound-emitting objects) other than electronic device A, animals (such as pets such as cats and dogs), devices (such as electronic device B), etc.

[0137] For example, during multiple rounds of dialogue between user 1 and electronic device A, in the first round, user 1 asked, "How is influenza treated?" (end dot), and electronic device A answered, "Drug X is a specific medicine for treating influenza." In the second round, user 1 turned to user 2 and said, "Mom, what are we having for dinner?" (end dot). Through these multiple rounds of dialogue, it can be seen that in the first round of dialogue, user 1's voice conveyed the interactive intention, intending to ask the machine about the treatment of influenza; in the second round of dialogue, user 1's real interactive object switched to user 2, intending to ask user 2 what to eat for dinner. In this way, the voice of user 1 collected by the human-computer interaction system conveyed a non-interactive intention.

[0138] In some embodiments, in order to prevent the human-computer interaction system from erroneously responding to a voice command containing a non-interactive intention, when a round of user speech reaches the end point, the end point detection module 57 sends the target text corresponding to the voice command to the non-interactive rejection module 58. The non-interactive rejection module 58 is used to identify whether the target text contains a non-interactive intention, and if it does not contain a non-interactive intention, it allows the voice command to be responded to, otherwise, if it contains a non-interactive intention, it refuses to respond to the voice command.

[0139] Fig.10 A schematic diagram of a non-interactive recognition rejection mechanism provided for some embodiments of the present application.

[0140] In some embodiments, see Fig.10 The non-interactive rejection module 58 may include a general rejection submodule 58a and a business rejection submodule 58b.

[0141] In some embodiments, see Fig.10 The general rejection submodule 58a is used to detect the fluency of the target text and reject the voice instructions with incoherent text, that is, refuse to respond to the voice instructions with incoherent text. When the text is incoherent, it may not be possible to convey a clear and unambiguous interaction intention, so the general rejection submodule 58a will block the response to such voice instructions, thereby avoiding the problem of wrong response.

[0142] In some embodiments, see Fig.10 The business rejection submodule 58b is used to identify whether the target text contains a matching and clear business intent according to the business scenario. For example, in the business scenario of a smart TV playing film and television content, if the target text is "Mom, what's for dinner?", it is obvious that the intent conveyed by the target text does not match the business scenario. The business rejection submodule 58b can reject the voice command, so that the human-computer interaction system does not respond or reply to "What's for dinner?".

[0143] For another example, in the business scenario of a smart TV playing a movie or TV content, if the target text is "I remember", it is obvious that the business intention conveyed by the target text is not clear / ambiguous. The user may want to search for the song "I remember", or it may just be a literal expression. To ensure the normal playback of the movie or TV content, the business rejection submodule 58b can reject the voice command, so that the human-computer interaction system does not respond or reply to "I remember". If the target text is "Play the song I remember", the target text conveys a clear business intention, and the business rejection submodule 58b allows the response to the voice command, so that the human-computer interaction system plays the song "I remember" in response to the voice command.

[0144] The main functions of the general rejection submodule 58a and the business rejection submodule 58b are to reduce the load of the human-computer interaction system and quickly support business applications. Among them, the business rejection submodule 58b can be dynamically configured and updated according to different business scenarios and business types to adapt to the interaction intention recognition of multiple businesses.

[0145] When the business rejection submodule 58b recognizes that the target text does not contain a matching and clear business intent, it cannot be fully guaranteed that the voice command conveys a non-interactive intent. For example, the business rejection submodule 58b may not cover the business scope indicated by the voice command. If the voice command is directly rejected, a false rejection problem may occur, resulting in the voice command containing interactive intent being missed, thereby causing the human-computer interaction to fail.

[0146] In some embodiments, see Fig.10 The non-interactive rejection module 58 may also be configured with a second language model 58c, and the second language model 58c is used to make a non-interactive rejection decision based on the conversation history and contextual semantic relationship.

[0147] For example, in the first round, user 1 asked, "How to treat influenza?" The machine answered, "X drug is a special medicine for treating influenza." In the second round, user 1 asked, "Mom, what do you want for dinner?" The second language model 58c can calculate the correlation (or degree of association) between the second round of user speech and the conversation history according to the context. Since "What do you want for dinner?" is irrelevant to "influenza" and "X drug" involved in the conversation history, the correlation / degree of association between the two is low (may be lower than a preset threshold), and the second language model 58c determines that the second round of user speech contains non-interaction intent, and then rejects the voice command input by the second round of user, so that the human-computer interaction system does not respond to the voice command.

[0148] For another example, in the first round, user 1 asks: "How to treat influenza?", and electronic device A answers: "X drug is a special medicine for treating influenza", and in the second round, user 1 asks: "What are the side effects of X drug?". The second language model 58c can calculate the correlation (or association) between the second round of user speech and the conversation history according to the context. Since "What are the side effects of X drug?" is related to "X drug" involved in the previous sentence in the conversation history, the correlation / association between the two is relatively high (greater than a preset threshold), the second language model 58c determines that the second round of user speech contains an interaction intention, and does not reject the voice command input by the second round of user, so that the human-computer interaction system responds to the voice command and inquires and answers about the side effects of X drug.

[0149] In this way, through the general rejection submodule 58a, the business rejection submodule 58b and the second language model 58c, the non-interactive rejection module 58 can reject voice commands with incoherent text, unclear business intentions and inconsistent with the context of the dialogue history, avoid false responses and missed responses of the human-computer interaction system, improve the accuracy of human-computer interaction, and enhance the ability to resist interference with voice commands containing non-interactive intentions.

[0150] In a multi-round human-computer dialogue scenario, the machine will respond and reply to the user. For example, user 1 said: "Play the song I remember", and the machine replied: "I will play ZL's I remember for you"; for another example, user 1 asked: "How to treat influenza?", and the machine replied: "X drug is a special medicine for treating influenza". The human-computer interaction system can control the audio output device to broadcast the machine's reply sentence to realize human-computer voice dialogue. When the machine replies, the context, intonation and tone of the dialogue history are not considered. The machine only broadcasts mechanically without conveying any emotions and language rhythm, which affects the user's human-computer interaction experience.

[0151] In some embodiments, for a voice instruction that is not rejected by the non-interactive rejection module 58, the human-computer interaction system responds to the voice instruction and obtains a text sentence (hereinafter referred to as the first reply sentence) for replying to the voice instruction. For example, user 1 asks: "How to treat influenza?", and the first reply sentence output by the machine is: "X drug is a special medicine for treating influenza". The method for obtaining the first reply sentence is not limited. For example, a pre-trained third language model can be used, and the target text corresponding to the voice instruction can be input into the third language model, and the third language model outputs the first reply sentence.

[0152] In some embodiments, the speech synthesis module 59 is used to add an interjection that conforms to the context of the dialogue to the first reply sentence of the machine according to the dialogue history, obtain a second reply sentence, and set a prosodic feature that conforms to the context of the dialogue for the second reply sentence. The speech synthesis module 59 synthesizes the second reply sentence from text into audio according to the prosodic feature, and the human-computer interaction system controls the audio output device to play the audio, so that the machine reply has more anthropomorphic expressiveness, can convey emotions that conform to the context of the dialogue to the user, and enhance the user's experience of human-computer dialogue.

[0153] In some embodiments, the speech synthesis module 59 may include a fourth language model, which is used to add matching interjections to the first reply tone according to the conversation history. The fourth language model is not limited, and a pre-trained language model based on BERT or other dedicated network models based on self-attention mechanisms may be used. Interjections include but are not limited to modal particles such as "um", "ah", "yeah", "hey", "wow", and colloquial conjunctions such as "that", "this", "then", and "but".

[0154] In some embodiments, the speech synthesis module 59 can determine the prosodic features of the speech broadcast based on the conversation history and the text content of the second reply sentence. The prosodic features of different conversation contexts and different text presentations may be different. Prosodic features include but are not limited to: extension (lengthening of tone / intonation), stress (emphasis of tone / intonation), light reading (lightening of tone / intonation), fast reading (acceleration of tone / intonation), pause, etc. Prosodic features characterize the tone, intonation, speech speed, and conversation atmosphere of the sentence presentation.

[0155] Fig.11 A schematic diagram of a speech synthesis mechanism provided for some embodiments of the present application.

[0156] In some embodiments, see Fig.11 , user 1 said: "I am very tired at work today", and the first reply sentence originally output by the machine is "I recommend a comedy movie for you". The speech synthesis module 59 can use the fourth language model. Based on the context of the dialogue history, since user 1 feels tired and hard, the machine needs to "think" about how to make user 1 physically and mentally relaxed and happy, and thus considers recommending a comedy movie for user 1. The second reply sentence example output by the fourth language model is "Well, then I recommend a comedy movie for you". Among them, "Well" and "That" are newly added interjections, "Well" expresses that the machine is thinking, and "That" is used to connect the decision made by the machine after thinking.

[0157] In some embodiments, the fourth language model can also mark the state of the parentheses in the second reply sentence, such as " Hmm [Thinking] , That [language connection] Let me recommend you a comedy movie."

[0158] In some embodiments, referring to Fig.11 , the speech synthesis module 59 may set prosodic features for the text content and status markers of the second reply statement based on the context of the conversation history, and mark the prosodic features for the text content of the second reply statement. For example, for "Um [thinking], then [linguistic connection] let me recommend a comedy movie for you", an example of prosodic feature marking is "Um {extend} , then {Quick Read} let me {pause} recommend a comedy {Reread} movie for you".

[0159] In the above example, "Um {elongation}" presents the state that the machine is thinking by elongating the tone / intonation, "then {fast reading}" presents the state of transition and connection by accelerating the tone / intonation, "you {pause}" presents the state of making a choice and giving a suggestion by pausing the tone / intonation, and "comedy {stress}" presents the state of strongly recommending and suggesting by intensifying the tone / intonation. It should be noted that the inserted words will not change the original semantics and content expression of the sentence.

[0160] In some embodiments, referring to Fig.11 , the speech synthesis module 59 may be configured with a speech synthesis model. Input the text content and prosodic feature markers of the second reply statement into the speech synthesis model. The speech synthesis model synthesizes the text content into an audio carrying specific prosodic features, transmits the audio to the audio output device, and then the audio output device plays the audio. In this way, the user can hear the speech information with prosody and anthropomorphic tone output by the machine. Among them, the text content of the second reply statement may be text features including phonemes and characters.

[0161] In some embodiments, when the speech synthesis model synthesizes audio, for polyphonic characters in Chinese characters, the same Chinese character may have different pronunciations, and different pronunciations may express different meanings. For example, the character "um" may include (fourth tone), ńg (second tone) and ňg (third tone), where (fourth tone) generally expresses affirmation, confirmation and agreement, ńg (second tone) generally expresses questions and doubts, and ňg (third tone) can express surprise, hesitation, thinking, etc.

[0162] In some embodiments, when the fourth language model adds inserted words, if the inserted words contain polyphonic characters, when the speech synthesis model synthesizes audio, it can determine the pronunciation matching the character using the meaning and emotion indicated by the status markers (such as Hmm [Thinking] ). For example, "um" generally expresses [thinking] through ňg (third tone).

[0163] In some embodiments, if the reply statement of the machine contains polyphonic characters, the speech synthesis module 59 can also mark the pronunciations of the polyphonic characters. For example, for "嗯 {extend, ňg} ,那 {Quick Read} 我为您 {pause} 推荐一部喜剧 {Reread} 电影吧", when the speech synthesis model synthesizes the audio, it synthesizes the pronunciation of the character "嗯" with an extended tone / intonation rhythm and the pronunciation of ňg (third tone), so as to improve the accuracy of speech synthesis.

[0164] In some embodiments, when the speech synthesis model synthesizes the audio, if it encounters a polyphonic character, it can output the pronunciation probability distribution of the polyphonic character according to factors such as the dialogue history, status markers, and prosodic features, and synthesize the pronunciation of the polyphonic character based on the pronunciation with the highest probability. For example, for the sentence "嗯,那我为您推荐一部喜剧电影吧", the pronunciation probability distribution example output by the speech synthesis model for the character "嗯" is: {嗯ňg_思考:0.7,嗯 _确认:0.2,嗯ńg_疑问:0.1}, where the pronunciation of ňg (third tone) expressing thinking has the highest probability (0.7), so the speech synthesis model synthesizes the pronunciation of the character "嗯" with the pronunciation of ňg (third tone).

[0165] In some embodiments, the speech synthesis module 59 can predict insertions during the full-duplex interaction process, so as to give the user timely and appropriate speech feedback. For example, when the machine agrees with the user's opinion, it makes a positive speech feedback by inserting "嗯 "; when the user's intention statement is unclear, it makes a speech feedback expressing doubt / confusion by inserting "嗯(ńg)". In this way, the machine language can be made more rhythmic and anthropomorphic, and it can also cover up the problem of incoherence in the dialogue caused by the round-trip switching and the delay of the man-machine exchange system.

[0166] In some embodiments, when the tail point detection module 57 detects that the user's speech input is in a non-tail point state, the man-machine interaction system extends the waiting time and continues to listen, so as to avoid the problem of misidentifying the tail point caused by factors such as the user's slow speech speed and incoherence of speech. In this scenario state, the man-machine interaction system can control the speech synthesis module 59 to perform insertion prediction when it determines that the preset conditions are met.

[0167] Fig.12 It is a schematic diagram of the insertion prediction mechanism when the speech is not at the tail point provided by some embodiments of this application.

[0168] 如 Fig.12For example, the machine: "I recommend you to listen to Lin XX's songs", user 1: "Lin XX's songs are very good", user 1 may suddenly interrupt or freeze when saying the word "good", so the tail point detection module 57 determines that the voice input of user 1 is not completed (that is, not the tail point). If the preset conditions are met, the tail point detection module 57 can send a voice feedback instruction to the speech synthesis module 59. In response to the voice feedback instruction, the speech synthesis module 59 predicts the insertion words (also known as feedback words) according to the conversation history between the machine and user 1, such as inserting the word "hmm". An example of the probability distribution of insertion words is {hmm}. _affirmation: 0.7, umm, _question: 0.2, umm, _hesitation: 0.1}, the speech synthesis module 59 can randomly sample and output an interjection (such as umm, _), or sample and output the interjection with the highest probability (such as umm, ).

[0169] In some embodiments, the interjections during non-end point voice feedback can be recorded in advance without the need for immediate online synthesis, thereby reducing voice feedback delay and improving the response speed of voice feedback.

[0170] In some embodiments, the tail point detection module 57 may start a timer when a non-tail point state is detected, and the timer may count up or count down from a threshold time. If the count-up time exceeds the threshold time, or the remaining time of the countdown is reset to zero, and the user 1 still does not continue to speak, that is, a timeout without voice input event is triggered, and the tail point detection module 57 detects the occurrence of the timeout without voice input event and determines that the preset condition is met. The preset condition is not limited to the examples of the embodiments of the present application.

[0171] The full-duplex voice processing architecture provided in the embodiment of the present application locks the voiceprint features of the target sounding object through wake-up word enhancement and voiceprint recognition, so as to accurately extract the human voice of the target sounding object, thereby eliminating the interference of environmental noise, electronic human voice and non-target human voice. By constructing a dynamic language model and a personalized language model, voice recognition is more adaptable to changes in electronic devices, conversation history and user usage history, and the accuracy of voice recognition in related business and scenario fields is improved. Through the tail point set and non-tail point set, as well as the tail point discrimination of the first language model based on the conversation history, the misidentification of the tail point is avoided and the accuracy of the tail point detection is improved. Through non-interactive rejection, the anti-interference ability of the human-computer interaction system for the target human voice containing non-interactive intentions is improved, and the false response and missed response of voice commands are avoided. Through the prediction of interjections and the setting of rhythmic features, the synthesized machine voice is made more humanized, and the human-computer interaction experience and feelings are improved.

[0172] Through the full-duplex voice processing architecture, the performance of the human-computer interaction system can be improved, and more efficient and accurate voice processing can be achieved. It should be noted that the functional modules and module software program configurations involved in the full-duplex voice processing architecture are not limited to the embodiments of the present application. This field can add, delete and replace the modules of the full-duplex voice processing architecture according to the use environment, business scenarios, human-computer interaction performance requirements, etc., and adjust the software programs configured by the relevant modules and the functional flow between modules. The language models configured in different modules in the architecture (such as the first language model, the second language model, etc.) can be independent models, or these language models can be merged into a large language model, which can have all the functions of the first language model, the second language model, the third language model and the fourth language model.

[0173] In addition, the modules in the full-duplex voice processing architecture can also be integrated and functionally integrated. For example, the architecture can include only a single voice processing module, which is configured with all the functions of a sound collector 51, a voice preprocessing module 52, a wake-up enhancement module 53b, a voiceprint module 54, a human voice extraction module 55, a voice recognition module 56, a tail point detection module 57, a non-interactive rejection module 58 and a voice synthesis module 59.

[0174] Some embodiments of the present application also provide an electronic device, which includes a sound collector and a controller. The sound collector is used to collect voice signals input by a user, and the controller implements the voice processing logic and human-computer interaction logic configured by running a full-duplex voice interaction architecture.

[0175] Some embodiments of the present application also provide a human-computer interaction system, which implements the voice processing logic and human-computer interaction logic configured by running a full-duplex voice interaction architecture.

[0176] Some embodiments of the present application also provide a speech processing device, which may include the above-mentioned sound collector 51, speech preprocessing module 52, wake-up enhancement module 53b, voiceprint module 54, human voice extraction module 55, speech recognition module 56, tail point detection module 57, non-interactive rejection module 58 and speech synthesis module 59.

[0177] Some embodiments of the present application also provide a computer storage medium, which can store a program. When the program is executed, it can include the program steps involved in the voice processing logic and human-computer interaction logic implemented by the full-duplex voice interaction architecture. Among them, the computer storage medium can be a disk, an optical disk, a read-only memory (English: Read-Only Memory, referred to as ROM) or a random access memory (English: Random Access Memory, referred to as RAM), etc.

[0178] 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.

[0179] 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. According to the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are intended to better explain the content of this disclosure, so that those skilled in the art can better use the embodiments.

Claims

1. An electronic device, characterized in that: include: A sound collector, used to collect voice signals input by users; Controller, which performs: Performing wake-up word recognition on the voice signal collected by the sound collector; When a wake-up word is recognized from the voice signal, enhancing the target human voice that utters the wake-up word; Performing voiceprint recognition on the enhanced target human voice to determine the target voice speaker; Extract the voice command of the target sounding object from the voice signal and respond to the voice command.

2. The electronic device according to claim 1, characterized in that: The controller is also used to execute: Acquire a human-computer dialogue history, and segment the human-computer dialogue history to obtain historical dialogue segmentations; the human-computer dialogue history includes historical dialogue contents between the user and the electronic device; Constructing a user vocabulary based on the device-specific words of the electronic device, the historical conversation segmentation words and the usage history; wherein the device-specific words are words related to the hardware and software configuration of the electronic device, and the usage history contains associated words generated when the user uses the electronic device; Build a dynamic language model based on the user vocabulary; A personalized language model is generated according to the dynamic language model and the basic language model.

3. The electronic device according to claim 2, characterized in that: Before responding to the voice command, the controller is further configured to execute: The voice instruction is recognized according to the acoustic model and the personalized language model to convert the voice instruction into a target text.

4. The electronic device according to claim 3, characterized in that: Before responding to the voice command, the controller is further configured to execute: Calling an end point set and a non-end point set; wherein the end point set includes a complete and unambiguous instruction text input by the user in history, and the non-end point set includes an incomplete instruction text generated by the electronic device in different services; If the tail point set includes the target text, determining that the voice signal reaches the tail point, and controlling the sound collector to stop collecting the voice signal; If the tail point set does not include the target text, and the non-tail point set includes the target text, it is determined that the speech signal has not reached the tail point, and the sound collector is controlled to continue collecting the speech signal.

5. The electronic device according to claim 4, characterized in that: Before responding to the voice command, the controller is further configured to execute: If the non-end point set does not include the target text, extracting the voice features of the voice instruction using an end point discrimination model; Encoding the conversation history using the tail point discrimination model, and concatenating the encoded conversation history with the speech feature to obtain a context feature; If it is determined according to the context feature that the voice signal reaches an end point, controlling the sound collector to stop collecting the voice signal; If it is determined according to the context feature that the voice signal has not reached the end point, the sound collector is controlled to continue collecting the voice signal.

6. The electronic device according to claim 4 or 5, characterized in that: After determining that the voice signal reaches the end point, the controller is further configured to execute: Performing general rejection discrimination on the target text to determine whether the target text is fluent; If the target text is not fluent, refusing to respond to the voice command; If the target text is fluent, performing a business rejection judgment on the target text to determine whether the voice instruction contains a clear business intention; If the voice command includes a clear business intention, responding to the voice command is allowed.

7. The electronic device according to claim 6, characterized in that: After controlling the sound collector to stop collecting voice signals, the controller is further configured to execute: If the voice instruction does not include a clear business intent, a non-interactive rejection discrimination is performed based on the context of the conversation history to determine whether the voice instruction includes a non-interactive intent; wherein the non-interactive intent is an intention transmitted by the user to other interactive objects other than the electronic device; If the voice command does not include the non-interaction intention, allowing a response to the voice command; If the voice command includes the non-interaction intention, refuse to respond to the voice command.

8. The electronic device according to claim 1, characterized in that: The electronic device further comprises an audio output device, and the controller responds to the voice command, comprising: Get the machine's first reply statement; According to the context of the conversation history, an interjection is added to the first reply statement to obtain a second reply statement; Setting a prosodic feature for the second reply sentence, wherein the prosodic feature is used to characterize the tone, intonation, speech speed and conversation atmosphere of the sentence; Performing speech synthesis according to the second reply sentence and the prosodic features to convert the speech into a machine reply audio; The audio output device is controlled to broadcast the reply audio.

9. The electronic device according to claim 4 or 5, characterized in that: The electronic device further includes an audio output device, and the controller is further configured to execute: When it is determined that the speech signal has not reached the end point, predicting a probability distribution of feedback words, the probability distribution of feedback words including at least one feedback word to be output and a probability value of the feedback word to be output; Get the target feedback corresponding to the maximum probability value; The audio output device is controlled to broadcast the target feedback language.

10. A speech processing method, characterized in that: include: Perform wake-up word recognition on the voice signal collected by the sound collector; When a wake-up word is recognized from the voice signal, enhancing the target human voice that utters the wake-up word; Performing voiceprint recognition on the enhanced target human voice to determine the target voice speaker; Extract the voice command of the target sounding object from the voice signal and respond to the voice command.

Citation Information

Cited By

  • Dialogue interaction method and device based on voice recognition

    CN119446141A

  • A voice recognition-based dialog interaction method and device

    CN119446141B