A server, a display device and a digital human interaction method
By mapping user image data into three-dimensional space, generating three-dimensional anthropomorphic emotion editing, the problems of stiff digital human expressions and insufficient memory are solved, the user interaction experience is improved, and efficient digital human customization is achieved.
Patent Information
- Application Number
- CN202311267849.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-09-27
AI Technical Summary
In the context of customized digital human applications for individual customers, existing technologies require a single server to support tens of thousands of different users whose appearances are constantly changing. The memory cannot support the simultaneous loading of video frame data for tens of thousands of users, resulting in a poor user experience. Furthermore, the ability to express key point features based on two-dimensional intermediate states is limited, making it impossible to achieve fully lifelike expressions in digital humans, resulting in stiff expressions.
By mapping user image data into three-dimensional space, a three-dimensional anthropomorphic emotion editing is generated. Based on the broadcast text, image coefficient, and emotion coefficient sequence, digital human image data is generated, enabling controllable adjustment of facial expressions.
It improves the realism of digital human expressions, enhances the user interaction experience, solves the memory shortage problem, and enables efficient digital human customization.
Smart Images

Figure CN117809681B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of digital human interaction technology, and in particular to a server, a display device, and a digital human interaction method. Background Technology
[0002] Digital humans are virtual characters generated by computer programs and algorithms that can simulate human language, behavior, emotions, and other characteristics, possessing a high degree of intelligence and interactivity. Digital humans have already been applied in various industries, including cultural tourism, finance, live streaming, gaming, and film and entertainment. Different companies have their own set of virtual digital human process technologies to meet their business implementation needs, but due to resource and effectiveness limitations, these companies generally only offer deeply customized solutions for enterprise clients, lacking mature and reliable customized solutions for consumer-level individual clients.
[0003] In the scenario of customized digital humans for individual clients, a single server needs to support tens of thousands of different users, with their appearances changing constantly. Pre-made video frames are used and stored in memory for users to load and play. However, the sheer number of individual clients exceeds the memory's capacity to simultaneously load video frames from tens of thousands of users. Using temporary disk reads is time-consuming and severely impacts the user experience. Employing a driver based on keypoint-controlled single-frame images can help achieve customized digital humans for individual clients.
[0004] However, in the driving technology based on key point control of single-frame images, the ability to express key point features based on two-dimensional intermediate states is limited, making it impossible to achieve completely lifelike digital human expressions, resulting in relatively stiff expressions. Summary of the Invention
[0005] Some embodiments of this application provide a server, a display device, and a digital human interaction method. By mapping acquired user image data to a three-dimensional space, the expression can be controlled and adjusted in the three-dimensional space according to highly human-like emotional editing, making the digital human's expression more lifelike.
[0006] Firstly, some embodiments of this application provide a server configured as follows:
[0007] After receiving voice data input by the user from the display device, the system acquires the user's image data and determines the text to be read based on the voice data.
[0008] The user image data is mapped to three-dimensional space to obtain the image coefficient;
[0009] Determine the sentiment coefficient sequence;
[0010] Digital human image data is generated based on the broadcast text, the image coefficient, and the emotion coefficient sequence;
[0011] Generate broadcast audio based on the broadcast text;
[0012] The broadcast voice and the digital human image data are sent to the display device, so that the display device displays the digital human image based on the digital human image data and plays the broadcast voice.
[0013] In some embodiments, the server performs the generation of digital human image data based on the broadcast text, the image coefficient, and the emotion coefficient sequence, which is further configured to:
[0014] The text to be broadcast is input into the speech-driven model to obtain a sequence of mouth movement coefficients.
[0015] Digital human image data is generated based on the image coefficient, the emotion coefficient sequence, and the mouth movement coefficient sequence.
[0016] In some embodiments, the server performs the generation of digital human image data based on the broadcast text, the image coefficient, and the emotion coefficient sequence, which is further configured to:
[0017] Determine the sequence of head movement coefficients;
[0018] Digital human image data is generated based on the broadcast text, the image coefficient, the emotion coefficient sequence, and the head movement coefficient sequence.
[0019] In some embodiments, the server performs the determination of a sentiment coefficient sequence, which is further configured to:
[0020] Determine the emotional change sequence corresponding to the broadcast text;
[0021] The duration of the broadcast speech is determined based on the length of the broadcast text.
[0022] The emotional coefficient sequence is determined based on the emotional change sequence and the duration.
[0023] In some embodiments, the server performing the task of determining the emotional change sequence corresponding to the broadcast text is further configured to:
[0024] The speech data is input into the speech emotion classification model to obtain the emotion feature vector;
[0025] The emotional feature vector is input into the mapping model to obtain the emotional change sequence.
[0026] In some embodiments, the server performing the determination of the sentiment coefficient sequence based on the sentiment change sequence and the duration is further configured to:
[0027] If the duration is less than or equal to the target value, then a target number of emotion coefficients are removed from the emotion change sequence to obtain the emotion coefficient sequence. The target value is the total duration of the emotion change sequence, and the target number is determined by the duration, the target value, and the frame rate.
[0028] If the duration exceeds the target value, then a target number of emotion coefficients are inserted into the emotion change sequence to obtain the emotion coefficient sequence.
[0029] In some embodiments, the server performs the determination of the head action coefficient sequence, which is further configured to:
[0030] Determine the head movement change sequence corresponding to the broadcast text;
[0031] The duration of the broadcast speech is determined based on the length of the broadcast text.
[0032] The head movement coefficient sequence is determined based on the head movement change sequence and the duration.
[0033] In some embodiments, the server performs the function of determining the head movement coefficient sequence based on the head movement change sequence and the duration, which is further configured to:
[0034] If the duration is less than or equal to the target value, then a target number of head motion coefficients are removed from the head motion change sequence to obtain the head motion coefficient sequence. The target value is the total duration of the head motion change sequence. The target number is determined by the duration, the target value, and the frame rate.
[0035] If the duration is greater than the target value, then a target number of head movement coefficients are inserted into the head movement change sequence to obtain the head movement coefficient sequence.
[0036] Secondly, some embodiments of this application provide a display device, including:
[0037] The monitor is configured to display the user interface;
[0038] The communicator is configured to communicate data with the server;
[0039] The controller is configured as follows:
[0040] Receive voice data input by the user;
[0041] The voice data is sent to the server via the communicator;
[0042] Receive digital human image data and broadcast voice from the server based on the voice data;
[0043] Play the broadcast voice and display the digital human image based on the digital human image data.
[0044] Thirdly, some embodiments of this application provide a digital human interaction method, including:
[0045] After receiving voice data input by the user from the display device, the system acquires the user's image data and determines the text to be read based on the voice data.
[0046] The user image data is mapped to three-dimensional space to obtain the image coefficient;
[0047] Determine the sentiment coefficient sequence;
[0048] Digital human image data is generated based on the broadcast text, the image coefficient, and the emotion coefficient sequence;
[0049] Generate broadcast audio based on the broadcast text;
[0050] The broadcast voice and the digital human image data are sent to the display device, so that the display device displays the digital human image based on the digital human image data and plays the broadcast voice.
[0051] Some embodiments of this application provide a server, a display device, and a digital human interaction method. After receiving voice data input by a user from the display device, the method acquires user image data and determines a text to be played based on the voice data; maps the user image data to a three-dimensional space to obtain an image coefficient; determines an emotion coefficient sequence; generates digital human image data based on the text to be played, the image coefficient, and the emotion coefficient sequence; generates a voice message based on the text to be played; and sends the voice message and the digital human image data to the display device, so that the display device displays a digital human image based on the digital human image data and plays the voice message. By mapping the acquired user image data to a three-dimensional space, this application allows for controllable adjustment of facial expressions in three-dimensional space based on highly human-like emotion editing, making the digital human's expressions more lifelike. Attached Figure Description
[0052] Figure 1 An operational scenario between a display device and a control device according to some embodiments is illustrated;
[0053] Figure 2 A hardware configuration block diagram of a control device according to some embodiments is shown;
[0054] Figure 3 A hardware configuration block diagram of a display device according to some embodiments is shown;
[0055] Figure 4AA software configuration diagram of a display device according to some embodiments is shown;
[0056] Figure 4B A software configuration diagram of a display device according to some embodiments is shown;
[0057] Figure 5 A flowchart illustrating a digital human interaction according to some embodiments is shown;
[0058] Figure 6 A schematic diagram of a digital human entry interface provided according to some embodiments is shown;
[0059] Figure 7 A schematic diagram of a digital human selection interface provided according to some embodiments is shown;
[0060] Figure 8 A flowchart illustrating a display of a digital human interface according to some embodiments is shown;
[0061] Figure 9 A flowchart illustrating an example of adding a digital human interface according to some embodiments is shown;
[0062] Figure 10 A schematic diagram of a video recording preparation interface provided according to some embodiments is shown;
[0063] Figure 11 A schematic diagram of a tone setting interface provided according to some embodiments is shown;
[0064] Figure 12 A schematic diagram of an audio recording preparation interface provided according to some embodiments is shown;
[0065] Figure 13 A schematic diagram of a digital human naming interface provided according to some embodiments is shown;
[0066] Figure 14 A schematic diagram of another digital human selection interface provided according to some embodiments is shown;
[0067] Figure 15 A flowchart illustrating a digital human customization according to some embodiments is shown;
[0068] Figure 16 A flowchart of a voice interaction provided according to some embodiments is shown;
[0069] Figure 17 An overall architecture diagram is shown according to some embodiments;
[0070] Figure 18 A schematic diagram of a classification model provided according to some embodiments is shown;
[0071] Figure 19 A schematic diagram of a live data streaming process according to some embodiments is shown;
[0072] Figure 20 A schematic diagram of a user interface provided according to some embodiments is shown;
[0073] Figure 21 Another digital human interaction timing diagram is shown according to some embodiments;
[0074] Figure 22 A flowchart of a first type of digital human interaction provided according to some embodiments is shown;
[0075] Figure 23 A schematic diagram of a lip shape provided according to some embodiments is shown;
[0076] Figure 24 A schematic diagram of an image generation method provided according to some embodiments is shown;
[0077] Figure 25 A flowchart of a second type of digital human interaction provided according to some embodiments is shown;
[0078] Figure 26 A schematic diagram of facial key points provided according to some embodiments is shown;
[0079] Figure 27 A schematic diagram of the input and output of a keypoint blinking model provided according to some embodiments is shown;
[0080] Figure 28 A schematic diagram of an image generation model provided according to some embodiments is shown;
[0081] Figure 29 A flowchart of a third type of digital human interaction provided according to some embodiments is shown;
[0082] Figure 30 A schematic diagram of a speech feature extraction model provided according to some embodiments is shown;
[0083] Figure 31 A schematic diagram of a distraction attention network model provided according to some embodiments is shown;
[0084] Figure 32 A schematic diagram of a prior sentiment knowledge extraction model based on Mel spectrum is shown according to some embodiments;
[0085] Figure 33 A technical architecture diagram is shown according to some embodiments. Detailed Implementation
[0086] To make the objectives and implementation methods of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the exemplary embodiments described are only some embodiments of this application, and not all embodiments.
[0087] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.
[0088] The terms "first" and "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.
[0089] The term “comprising” and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.
[0090] The display device provided in this application can have various implementation forms, such as a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc. Figure 1 and Figure 2 This is one specific embodiment of the display device of this application.
[0091] Figure 1 This is a schematic diagram illustrating the operational scenario between the display device and the control unit according to the embodiment. Figure 1 As shown, the user can operate the display device 200 through the terminal 300 or the control device 100.
[0092] In some embodiments, the control device 100 may be a remote control. Communication between the remote control and the display device includes infrared protocol communication, Bluetooth protocol communication, and other short-range communication methods, controlling the display device 200 wirelessly or via wired means. Users can control the display device 200 by inputting user commands through buttons on the remote control, voice input, control panel input, etc.
[0093] In some embodiments, a terminal 300 (such as a mobile terminal, tablet computer, computer, laptop computer, etc.) may also be used to control the display device 200. For example, an application running on the terminal may be used to control the display device 200.
[0094] In some embodiments, the display device may receive instructions not through the aforementioned terminal or control device, but through touch or gestures.
[0095] In some embodiments, the display device 200 can also be controlled in ways other than the control device 100 and the terminal 300. For example, it can be controlled by directly receiving the user's voice commands through a module configured inside the display device 200 for acquiring voice commands, or it can be controlled by receiving the user's voice commands through a voice control device set outside the display device 200.
[0096] In some embodiments, the display device 200 also communicates with the server 400. The display device 200 may communicate via a local area network (LAN), wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactive features to the display device 200. The server 400 may be a cluster or multiple clusters, and may include one or more types of servers.
[0097] Figure 2 An exemplary block diagram of the configuration of the control device 100 according to an exemplary embodiment is shown. Figure 2 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive user input operation commands and convert the operation commands into commands that the display device 200 can recognize and respond to, thus acting as an intermediary for interaction between the user and the display device 200.
[0098] like Figure 3 The display device 200 includes at least one of the following: a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
[0099] In some embodiments, the controller includes a processor, a video processor, an audio processor, a graphics processor, RAM, ROM, and a first interface to an nth interface for input / output.
[0100] The display 260 includes a display screen assembly for presenting images, a driving assembly for driving image display, a component for receiving image signals from the controller output, and a user control UI interface for displaying video content, image content, menu control interface, and user control UI interface.
[0101] The display 260 can be an LCD display, an OLED display, or a projection display, and can also be a projection device and a projection screen.
[0102] The display 260 also includes a touch screen, which is used to receive input control commands from the user's fingers by sliding or clicking on the touch screen.
[0103] The communicator 220 is a component used to communicate with external devices or servers according to various communication protocol types. For example, the communicator may include at least one of the following: a Wi-Fi module, a Bluetooth module, a wired Ethernet module, other network communication protocol chips or near-field communication protocol chips, and an infrared receiver. The display device 200 can establish the transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.
[0104] The user interface can be used to receive control signals from the control device 100 (such as an infrared remote control).
[0105] Detector 230 is used to collect signals from the external environment or to interact with the external environment. For example, detector 230 includes a light receiver, a sensor for collecting ambient light intensity; or, detector 230 includes an image acquisition device, such as a camera, which can be used to collect external environmental scenes, user attributes, or user interaction gestures; or, detector 230 includes a sound acquisition device, such as a microphone, for receiving external sounds.
[0106] The external device interface 240 may include, but is not limited to, one or more of the following: High Definition Multimedia Interface (HDMI), analog or high-definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, etc. It may also be a composite input / output interface formed by multiple interfaces mentioned above.
[0107] The tuner / demodulator 210 receives broadcast television signals via wired or wireless means, and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals.
[0108] In some embodiments, the controller 250 and the tuner 210 may be located in different separate devices, that is, the tuner 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.
[0109] The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command to select a UI object to display on the monitor 260, the controller 250 can execute operations related to the object selected by the user command.
[0110] In some embodiments, the controller includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), a RAM (Random Access Memory), a ROM (Read-Only Memory), a first to an nth interface for input / output, a communication bus, etc.
[0111] Users can input commands through a graphical user interface (GUI) displayed on the monitor 260, and the user input interface receives the user input commands through the GUI. Alternatively, users can input commands by entering specific sounds or gestures, and the user input interface receives the user input commands by recognizing the sounds or gestures through sensors.
[0112] A "user interface" is the medium through which an application or operating system interacts and exchanges information with the user. It converts information from its internal form to a form that the user can accept. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be an icon, window, control, or other interface element displayed on the screen of an electronic device. Controls can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.
[0113] like Figure 4A As shown, the display device system is divided into three layers, from top to bottom: the application layer, the middleware layer, and the hardware layer.
[0114] The application layer mainly includes commonly used applications on TVs, as well as the application framework. The commonly used applications are mainly browser-based applications, such as HTML5 apps, and native apps.
[0115] An application framework is a complete program model that has all the basic functions required by standard application software, such as file access, data exchange, etc., as well as the user interface for these functions (toolbar, status bar, menu, dialog box).
[0116] Native apps can support online or offline access, push notifications, or access to local resources.
[0117] The middleware layer includes various television protocols, multimedia protocols, and system components. Middleware can use the basic services (functions) provided by system software to connect different parts of application systems or different applications on the network, achieving resource sharing and function sharing.
[0118] The hardware layer mainly includes the HAL interface, hardware, and drivers. The HAL interface is a unified interface for all TV chips, with the specific logic implemented by each chip. The drivers mainly include: audio driver, display driver, Bluetooth driver, camera driver, Wi-Fi driver, USB driver, HDMI driver, sensor drivers (such as fingerprint sensors, temperature sensors, pressure sensors, etc.), and power drivers.
[0119] See Figure 4B In some embodiments, the system is divided into four layers, from top to bottom: the Applications layer (referred to as the "Application Layer"), the Application Framework layer (referred to as the "Framework Layer"), the Android runtime and system library layer (referred to as the "System Runtime Layer"), and the kernel layer.
[0120] In some embodiments, at least one application runs in the application layer. These applications may be Windows programs, system settings programs, or clock programs that come with the operating system; they may also be applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the examples above.
[0121] The framework layer provides application programming interfaces (APIs) and a programming framework for applications. The application framework layer includes predefined functions. It acts as a central processing unit, determining the actions taken by applications within the application layer. Through the API, applications can access system resources and obtain system services during execution.
[0122] like Figure 4BAs shown, the application framework layer in this embodiment includes managers, content providers, etc., wherein the managers include at least one of the following modules: ActivityManager, which interacts with all activities running in the system; LocationManager, which provides access to system location services for system services or applications; PackageManager, which retrieves various information related to application packages currently installed on the device; NotificationManager, which controls the display and clearing of notification messages; and WindowManager, which manages icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.
[0123] In some embodiments, the Activity Manager manages the lifecycle of individual applications and common navigation and back functions, such as controlling application exit, opening, and back actions. The Window Manager manages all window programs, such as obtaining the screen size, determining if a status bar is present, locking the screen, capturing the screen, and controlling display window changes (e.g., shrinking the display window, shaking the display, distorting the display, etc.).
[0124] In some embodiments, the system runtime library layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system runs the C / C++ libraries contained in the system runtime library layer to implement the functions that the framework layer needs to perform.
[0125] In some embodiments, the kernel layer is a layer between hardware and software. For example... Figure 4B As shown, the kernel layer includes 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.
[0126] Digital humans are virtual characters generated by computer programs and algorithms that can simulate human language, behavior, emotions, and other characteristics, possessing a high degree of intelligence and interactivity. Digital humans have already been applied in various industries, including cultural tourism, finance, live streaming, gaming, and film and entertainment. Different companies have their own set of virtual digital human process technologies to meet their business implementation needs, but due to resource and effectiveness limitations, these companies generally only offer deeply customized solutions for enterprise clients, lacking mature and reliable customized solutions for consumer-level individual clients.
[0127] In the scenario of customized digital humans for individual clients, a single server needs to support tens of thousands of different users, with their appearances changing constantly. Pre-made video frames are used and stored in memory for users to load and play. However, the sheer number of individual clients exceeds the memory's capacity to simultaneously load video frames from tens of thousands of users. Using temporary disk reads is time-consuming and severely impacts the user experience. Employing a driver based on keypoint-controlled single-frame images can help achieve customized digital humans for individual clients.
[0128] However, in the driving technology based on key point control of single-frame images, the ability to express key point features based on two-dimensional intermediate states is limited, making it impossible to achieve completely lifelike digital human expressions, resulting in relatively stiff expressions.
[0129] This application provides a digital human interaction method, such as... Figure 5 As shown.
[0130] Step S501: Terminal 300 establishes an association with display device 200 through server 400;
[0131] In some embodiments, the server 400 establishes connection relationships with the display device 200 and the terminal 300 respectively, so that the display device 200 and the terminal 300 establish an association relationship.
[0132] The steps for server 400 to establish a connection with display device 200 include:
[0133] Server 400 establishes a long connection with display device 200;
[0134] The purpose of establishing a long connection between server 400 and display device 200 is that server 400 can push the customized status of the digital human to display device 200 in real time.
[0135] A persistent connection allows multiple data packets to be sent continuously over a single connection. During the connection's persistence, if no data packets are sent, both parties need to send link detection packets. Persistent connections require only one connection establishment for multiple communications, thus saving network overhead; they only require a single handshake and authentication to maintain communication, improving communication efficiency; and they enable bidirectional data transmission, allowing the server to proactively send customized digital human data to the display device, achieving real-time communication.
[0136] In some embodiments, after receiving a power-on message from the display device 200, the server 400 establishes a long connection with the display device 200.
[0137] In some embodiments, after receiving a message from the display device 200 that the voice digital human service has been enabled, the server 400 establishes a long connection with the display device 200.
[0138] In some embodiments, after receiving an instruction from the display device 200 to add a digital human, the server 400 establishes a long connection with the display device 200.
[0139] Server 400 receives request data sent by display device 200, wherein the request data includes the device identifier of display device 200.
[0140] After receiving the request data, the server 400 determines whether there is an identification code corresponding to the device identifier in the database. The identification code is used to represent the device information of the display device 200. The identification code can be several random numbers or letters, or it can be a barcode or a QR code.
[0141] If an identification code corresponding to the device identifier exists in the database, the identification code is sent to the display device 200 so that the display device 200 displays the identification code on the Add Digital Human interface.
[0142] If the identification code corresponding to the device identifier does not exist in the database, an identification code corresponding to the device identifier is created, the device identifier and the identification code are saved in the database, and the identification code is sent to the display device 200 so that the display device 200 displays the identification code on the Add Digital Human interface.
[0143] To clarify the interaction process of establishing a connection between server 400 and display device 200, the following embodiments are disclosed:
[0144] After receiving a user's instruction to open the digital human entry interface, the display device 200 controls the display 260 to display the digital human entry interface, which includes a voice-activated digital human control.
[0145] For example, such as Figure 6 As shown, the digital human entry interface includes a voice digital human control 61, a natural dialogue control 62, a wake-word-free control control 63, and a focus 64.
[0146] It should be noted that controls refer to visual objects displayed in various display areas of the user interface in the display device 200 to represent corresponding content such as icons, thumbnails, video clips, links, etc. These controls can provide users with various traditional program content received through data broadcasting, as well as various application and service content set by content manufacturers.
[0147] The presentation of controls can be diverse. For example, a control may include text content and / or an image used to display a thumbnail related to the text content, or a video clip related to the text. Alternatively, a control may be text and / or an icon for the application.
[0148] The focus point is used to indicate that any control has been selected. On one hand, the control can be selected or controlled by the user controlling the movement of the focus object displayed on the display device 200 according to input from the control device 100. For example, the user can use the up arrow keys on the control device 100 to control the movement of the focus object between controls to select and control the control. On the other hand, the focus object can be selected or controlled by the user controlling the movement of each control displayed on the display device 200 according to input from the control device 100. For example, the user can use the up arrow keys on the control device 100 to control all controls to move left and right simultaneously, so that the focus object is selected and controlled while maintaining its position.
[0149] The way a focus object is identified can vary. For example, it can be identified by zooming in on the item, by setting the background color of the item, or by changing the border, size, color, transparency, outline, and / or font of the text or image of the focused item.
[0150] After receiving a user's instruction to select a voice-activated digital human control, the display device 200 controls the display 260 to display a digital human selection interface. The digital human selection interface includes at least one digital human control and an add control. The digital human control is displayed with a digital human image and a name corresponding to the digital human image. The add control is used to add a new digital human image, voice, and name.
[0151] For example, in Figure 6 In the middle, after receiving a user's instruction to select the voice digital human control 61, the display device 200 displays the digital human selection interface. For example... Figure 7 As shown, the digital human selection interface includes a default avatar control 71, a penis control 72, a bottle control 73, an add control 74, and a focus point 75. Users can select the desired digital human to respond to voice commands by moving the focus point 75.
[0152] In some embodiments, the process of displaying a digital human interface on the display device 200 is as follows: Figure 8As shown. After receiving a user's instruction to open the digital human entry interface (homepage), the digital human application on display device 200 requests data from the voice zone. The voice zone obtains homepage configuration information (homepage data) from the operator and sends the homepage data to the digital human application, enabling the digital human application to control display 260 to display the digital human homepage. The digital human application can also directly send a digital human account request. Upon receiving the virtual digital human account request, the voice zone obtains preset data from the operator, such as default digital human account information, and simultaneously obtains cloud-stored digital human account data from the algorithm service of server 400. If there are default supplementary parameters, the voice zone sends the preset data, cloud-stored digital human account data, and supplementary parameters together to the digital human application, enabling the digital human application to control display 260 to display the digital human selection interface after receiving the instruction to display the digital human selection interface. After displaying the digital human homepage, the digital human application can also send a virtual digital human account request after receiving a user's instruction to display the digital human selection interface, and directly display the digital human selection interface after receiving the preset data, cloud-stored digital human account data, and supplementary parameters.
[0153] The voice zone, targeting server 400 and based on the operation support platform, enables configurable management of default data items and configuration items in the backend, and facilitates the protocol-based distribution of data required by display device 200. The voice zone connects the algorithm service interaction between display device 200 and server 400, acquiring data parameters reported by display device 200, parsing instructions, and completing the algorithm backend interaction transfer. It then parses and distributes the data to the backend storage, ultimately achieving a complete data integration process.
[0154] After receiving the user's instruction to select and add a control, the display device 200 sends request data carrying the device identifier of the display device 200 to the customized central control service of the server 400.
[0155] The customized central control service calls the target application's interface to determine if a corresponding identification code exists in the database. If the database contains such a code, it sends the code to the display device 200. If the database does not contain such a code, it creates the code and sends it to the display device 200. The target application refers to an application with identification code recognition functionality.
[0156] Display device 200 receives the identification code sent by server 400 and displays it on the Add Digital Human interface.
[0157] For example, in Figure 7 In the process, upon receiving the user's instruction to select and add control 74, display device 200 displays the "Add Digital Human" interface. For example... Figure 9 As shown, the interface for adding a digital human includes QR code 91.
[0158] The steps for server 400 to establish a connection with terminal 300 include:
[0159] Server 400 receives the identification code uploaded by terminal 300;
[0160] Determine whether a display device 200 corresponding to the identification code exists;
[0161] If a display device 200 corresponding to the identification code exists, an association is established between the terminal 300 and the display device 200 so that the data uploaded by the terminal 300 is processed by the server 400 and sent to the display device 200.
[0162] To clarify the interaction process of establishing a connection between server 400 and terminal 300, the following embodiments are disclosed:
[0163] After receiving a user's instruction to open the target application, terminal 300 launches the target application and displays its corresponding homepage interface. The homepage interface includes a scan control.
[0164] After receiving the user's instruction to select the scan control, the terminal 300 displays the scanning interface.
[0165] After scanning the identification code, such as a QR code, displayed on the display device 200, the terminal 300 uploads the identification code to the server 400. Users can point the camera of the terminal 300 at the identification code displayed on the digital human interface of the display device 200.
[0166] If the identification code is in the form of numbers or letters, the homepage interface includes an identification code control. After receiving the user's instruction to select the identification code control, the identification code input interface is displayed, and the numbers or letters displayed on the display device 200 are entered into the identification code input interface to upload the identification code to the server 400.
[0167] Server 400 determines whether a display device corresponding to the identification code exists. If a display device 200 corresponding to the identification code exists, an association is established between terminal 300 and display device 200, so that data uploaded by terminal 300 is processed by server 400 and sent to display device 200. If no display device 200 corresponding to the identification code exists, a recognition failure message is sent to terminal 300 so that terminal 300 displays an error message.
[0168] Once the server 400 confirms the existence of a display device 200 corresponding to the identification code, it sends a successful identification message to the terminal 300. The terminal 300 then displays a startup page, which initiates the digital human customization process.
[0169] In some embodiments, the launch page includes a digital human avatar selection interface. The digital human avatar selection interface includes at least one default avatar control and a custom avatar control. After receiving a user's instruction to select a custom avatar control, the terminal 300 displays a video recording preparation interface, which includes recording controls. For example, as shown... Figure 10 As shown, the video recording preparation interface includes video recording precautions 101 and a start recording control 102.
[0170] In some embodiments, the startup page may also be a video recording preparation interface.
[0171] In some embodiments, the step of establishing an association between the terminal 300 and the display device 200 through the server 400 includes:
[0172] Server 400 receives the user account and password uploaded by terminal 300 and, after verifying that the user account and password are correct, sends a login success message so that terminal 300 can obtain the data corresponding to the user account.
[0173] Server 400 receives the user account and password uploaded by display device 200. After verifying the user account and password are correct, it sends a login success message so that display device 200 can obtain the data corresponding to the user account. The user account logged into terminal 300 is the same as that logged into display device 200. Terminal 300 and display device 200 establish an association by logging into the same user account, so that data updated by terminal 300 can be synchronized to display device 200. For example, customized digital human-related data on terminal 300 can be synchronized to display device 200. Step S502: Terminal 300 uploads image data and audio data to server 400;
[0174] The image data includes videos or pictures taken by the user, videos or pictures selected by the user in the album, and videos or pictures downloaded from a URL.
[0175] In some embodiments, the terminal 300 will receive videos or pictures taken by the user and upload them to the server 400.
[0176] For example, in Figure 10 In the process, after receiving the user's instruction to select the start recording control 102, video is recorded using the media component video on the terminal 300. To avoid multiple recordings due to failed face detection, the recording interface displays suggested face positions, and the terminal 300 can perform preliminary face position detection. The recorded video can be previewed repeatedly after recording ends. After receiving the user's instruction to confirm upload, the user-recorded video is sent to the server 400.
[0177] In some embodiments, the terminal 300 can send the captured user photos to the server.
[0178] In some embodiments, terminal 300 may select a user photo or user video from the album and upload the user photo or user video to server 400.
[0179] Server 400 receives image data uploaded by the terminal;
[0180] Detect whether the facial landmarks in the image data are qualified;
[0181] After receiving image data uploaded by the terminal, the customized central control service calls the algorithm service to verify the face location.
[0182] If the face points in the image data are found to be qualified, an image detection qualified message is sent to terminal 300;
[0183] If a face location in the image data is found to be unqualified, an image detection failure message is sent to the terminal, prompting the user to re-upload the image via terminal 300.
[0184] Among them, face detection can use algorithms to detect whether the key points of a face are all within a specified area.
[0185] After receiving the image detection pass message, terminal 300 displays the online effects page.
[0186] On the online effects page, users can upload their original videos or photos to server 400 to use them as their digital avatars. Alternatively, they can choose their preferred effect style, drag or click on the effect intensity, and apply the effect to their video or photo before uploading it to server 400. During the effect creation process, users can touch the lower right corner of the effect image to compare it with the original image at any time. The effects creation process utilizes image preloading, monitors image resource loading progress, and sets image layer relationships.
[0187] After the image data passes facial recognition and is successfully uploaded to server 400, terminal 300 displays the tone setting interface. This interface includes at least one preset recommended tone control and a custom tone control.
[0188] Terminal 300 receives the user's instruction to select a preset recommended tone control, sends the corresponding identifier of the preset recommended tone to server 400, and displays the digital human naming interface.
[0189] In some embodiments, after receiving a user's instruction to select a custom tone control, the terminal 300 displays an audio recording selection interface, which includes adult controls and child controls.
[0190] For example, such as Figure 11 As shown, the tone setting interface includes a small control 111, a small control 112, and a custom tone control 113. Upon receiving user input to select the custom tone control 113, the audio recording preparation interface is displayed, as shown below. Figure 12 As shown. The audio recording selection interface includes recording notes 121, adult controls 122, and child controls 123. Upon receiving user input to select adult control 122 or child control 123, the corresponding process is initiated. Upon receiving user input to select Xiaowan control 111, the digital human naming interface is displayed, as shown... Figure 13 As shown.
[0191] After receiving the user's instruction to select an adult control, terminal 300 displays the ambient sound detection interface.
[0192] Terminal 300 collects ambient sounds for a preset duration and sends the user-recorded ambient sounds to server 400.
[0193] Server 400 receives environmental recordings uploaded by terminal 300;
[0194] Check if the environmental audio recording is up to standard;
[0195] After receiving the environmental recording audio uploaded by the terminal 300, the customized central control service calls the algorithm service to check whether the environmental recording audio is qualified.
[0196] The steps for checking whether the environmental audio recording is up to standard include:
[0197] Obtain the noise level of the recorded ambient sound;
[0198] Determine if the noise level exceeds a preset threshold;
[0199] If the noise level exceeds the preset threshold, the ambient sound recording is deemed unqualified.
[0200] If the noise level does not exceed the preset threshold, the ambient sound recording is deemed acceptable.
[0201] If the ambient sound recording is found to be acceptable, an ambient sound acceptance message and the target text required for recording the audio are sent to terminal 300.
[0202] If the ambient sound recording is found to be substandard, an ambient sound substandard message is sent to terminal 300, prompting terminal 300 to prompt the user to select a quiet space to re-record.
[0203] After receiving the ambient sound qualification message and the target text required for recording audio, the terminal 300 displays the target text, which can be selected to reflect the user's vocal characteristics.
[0204] Terminal 300 receives audio of the user reading the target text and sends the audio to server 400. Terminal 300 can send audio data of a preset duration to server 400 so that server 400 can send the recognition result back to terminal 300, thereby achieving real-time recognition of the text being read.
[0205] Server 400 receives audio from the user reading the target text;
[0206] Identify the user text corresponding to the audio;
[0207] Calculate the pass rate based on the target text and the user text;
[0208] The steps for calculating the pass rate based on the target text and the user text include:
[0209] Compare the target text with the user text to obtain the number of correct characters in the user text;
[0210] The pass rate is determined by the ratio of the number of correct words to the number of words in the target text.
[0211] Determine if the pass rate is less than the preset value;
[0212] If the pass rate is less than the preset value, a voice upload failure message is sent to terminal 300 so that terminal 300 prompts the user to re-record the audio of reading the target text;
[0213] In some embodiments, when identifying text being read in real time, the target text is compared with the user text to determine erroneous, over-read, and under-read text. The erroneous, over-read, and under-read text are marked and sent to the terminal 300 so that the terminal 300 displays the erroneous, over-read, and under-read text in different colors or fonts.
[0214] If the pass rate is not less than the preset value, a voice upload success message is sent to terminal 300 so that terminal 300 can display the next target text or voice recording completion information.
[0215] After the target text is read aloud a preset number of times and passes the test, the audio acquisition process ends, and the terminal 300 displays the digital human naming interface.
[0216] Server 400 receives audio data corresponding to a preset number of target texts.
[0217] After receiving the user's instruction to select the child control, the terminal 300 also displays the ambient sound detection interface. The ambient sound detection steps are the same as when selecting the adult control.
[0218] If the system detects that the user's recorded ambient sound is acceptable, a message indicating that the ambient sound is acceptable and the audio recording required for audio recording are sent to terminal 300.
[0219] Terminal 300 can automatically play the guided reading audio, which can be listened to repeatedly. When it receives a user's instruction to press the record button, it begins recording the user's reading aloud and sends the audio to server 400.
[0220] Server 400 receives the audio of the user repeating the text.
[0221] Identify the user text corresponding to the audio;
[0222] The pass rate is calculated based on the target text corresponding to the guided reading audio and the user text corresponding to the follow-up reading audio.
[0223] Determine if the pass rate is less than the preset value;
[0224] If the pass rate is less than the preset value, a voice upload failure message is sent to terminal 300 so that terminal 300 prompts the user to re-record the audio corresponding to the reading audio; when recognizing the text being read in real time, the target text is compared with the user's text to identify erroneous, over-read, and under-read text, and the erroneous, over-read, and under-read text are marked and sent to terminal 300 so that terminal 300 displays the erroneous, over-read, and under-read text in different colors or fonts.
[0225] If the pass rate is not less than the preset value, a voice upload success message will be sent to terminal 300 so that terminal 300 can play the next audio reading or a voice recording completion message.
[0226] After receiving the voice recording, the terminal 300 displays the digital human naming interface.
[0227] In some embodiments, after receiving a user's instruction to select a custom tone control, the terminal 300 may choose to upload a segment of audio data. Upon receiving the audio data, the server 400 detects the noise level. If the noise level exceeds a preset threshold, it sends an upload failure message to the terminal 300, prompting the user to re-upload. If the noise level does not exceed the preset threshold, it sends an upload success message to the terminal 300, causing the terminal 300 to display the digital human naming interface.
[0228] After receiving the digital name entered by the user, terminal 300 sends the digital name to server 400.
[0229] For example, such as Figure 13As shown in the figure, the digital human naming interface includes an input box 131, a wake-up word control 132, a creation completion control 133, and a trained digital human image 134. The wake-up word control 132 is used to determine whether to simultaneously set the name as a wake-up word for the display device. If the wake-up word control 132 is selected, the digital human name is set as the wake-up word for the display device 200. For example, the naming rules for a digital human set as the wake-up word for the display device are as follows: the length is 4-5 Chinese characters, avoid using reduplicated words (such as "Xiao Xiao Le Le"), avoid using colloquial words (such as "I'm back"), and avoid containing sensitive words. If the wake-up word control 132 is not selected, the digital human name is not set as the wake-up word for the display device 200. For example, the naming rules for a digital human not set as the wake-up word for the display device 200 are as follows: the maximum length is 5 characters, Chinese, English, and numbers can be used, and sensitive words should be avoided. The names of digital humans created by one display device or one user account cannot be repeated.
[0230] After receiving an instruction from the user to select the creation completion control 133, the name of the digital human is sent to the server 400. After detecting that the name of the digital human sent by the user has passed the review, the server 400 sends a message indicating successful creation to the terminal 300. The terminal 300 may display prompt information indicating successful creation. After detecting that the name of the digital human sent by the user has not passed the review, the server 400 sends a message indicating failed creation and the reason for the failure to the terminal 300. The terminal 300 may display the reason for the creation failure and prompt information for renaming.
[0231] Step S503: The server 400 determines digital human image data based on the image data, and determines digital human voice features based on the audio data.
[0232] Image preprocessing is performed on the second-level video or user photos uploaded by the user to obtain digital human image data. Image preprocessing is the process of separating each image and sending it to the recognition module for recognition. In image analysis, it is the processing performed before feature extraction, segmentation, and matching of the input image. The main purpose of image preprocessing is to eliminate irrelevant information in the image, restore useful real information, enhance the detectability of relevant information, and simplify data to the greatest extent, thereby improving the reliability of feature extraction, image segmentation, matching, and recognition. The embodiments of the present application implement a customized interactive image with high fidelity and high definition through related algorithms.
[0233] In some embodiments, the digital human image data includes a 2D digital human image and facial key point coordinate information, which provides data support for the driving of digital human voice key points.
[0234] In some embodiments, the digital human image data includes digital human parameters, such as 3D BS (Blend Shape) parameters. These digital human parameters provide offsets for key facial points based on a base model, enabling the display device 200 to draw a digital human image based on the base model and the digital human parameters.
[0235] A voice cloning model is trained using user-uploaded audio data to obtain timbre parameters that match the user's voice. During speech synthesis, the text to be read can be input into the voice cloning model with embedded timbre parameters to obtain the readout speech that matches the user's voice.
[0236] To support digital human voice interaction, this application adds phoneme duration prediction to the general speech synthesis architecture to drive the facial key points of the digital human. To support digital human image customization, a small-sample timbre customization is achieved based on a multi-speaker speech synthesis model. By using 1-10 user speech samples and fine-tuning a small number of model parameters, human voice cloning is achieved.
[0237] Digital avatars can be either real-life or cartoon-like, or both can be created simultaneously.
[0238] When server 400 receives image data (without detected face points) uploaded by terminal 300, it can notify the system to train the user's real-life or cartoon avatar. That is, avatar training and face point detection occur simultaneously. If face point detection fails, avatar training is terminated. If face point detection is successful, the waiting time for digital human training can be shortened.
[0239] In some embodiments, the server 400 sends the trained real-life and cartoon images to the terminal 300 so that the terminal 300 can display the digital human images and provide them to the user for selection.
[0240] After receiving and displaying the trained real-life image, the terminal 300 can provide users with options to beautify the image, add special effects, create cartoon images, and re-record videos, so that users can obtain the digital human image they want.
[0241] Step S504: The server 400 sends the digital human image data to the display device 200 that has established a relationship with the terminal 300, so that the display device 200 displays the digital human image data.
[0242] In some embodiments, the digital human image can be displayed directly on the digital human selection interface after a 2D digital human image is received.
[0243] In some embodiments, after receiving the digital human parameters, a digital human image is drawn based on the base model and the digital human parameters, and the digital human image is displayed on the digital human selection interface.
[0244] In some embodiments, the server 400 may also send the digital human name corresponding to the digital human image data to the display device 200 that has established an association with the terminal 300, so that the display device 200 displays the digital human name at the corresponding position of the digital human image.
[0245] In some embodiments, after receiving the digital human name uploaded by the terminal 300, the server 400 sends the initial image and the digital human name to the display device 200 and displays them on the digital human selection interface. The digital human is identified as "Training in Progress" and may also indicate the training time. For example, the digital human selection interface looks like this: Figure 14 As shown. After training is complete, the server 400 sends the final image obtained from the training to the display device 200 to update the display.
[0246] In some embodiments, target speech (e.g., a greeting) generated based on the digital human's voice features can also be sent to the display device 200 so that when the user moves the focus to the control corresponding to the digital human, the speech corresponding to the digital human's timbre can be played. For example, in Figure 7 When the focus 75 moves to the Dingding control 72, the voice with Dingding's tone, "Hello, I am Dingding," is played.
[0247] In some embodiments, target speech is generated based on the digital human's voice features, and a key point sequence is determined based on the target speech. Image data is synthesized based on the key point sequence and the digital human image data. The image data and target speech are sent to the display device 200 and saved locally by the display device 200. The digital human control is displayed with the first frame (first parameter) or a specified frame (specified parameter) in the image data, or the image is drawn and displayed based on the first parameter or specified parameter in the image data. When the user moves the focus to the digital human control, the image and target speech are played.
[0248] In some embodiments, when the display device 200 displays a digital human selection interface, it receives user input instructions to manage the digital human.
[0249] In response to user input instructions to manage digital humans, the control display 260 displays a digital human management interface, which includes at least one delete control, modify control, and disable control corresponding to a digital human.
[0250] If a user inputs a command to select the delete control, then delete the relevant data corresponding to that digital person.
[0251] If a user inputs a command to disable the control, the relevant data for that digital human is retained and marked as disabled.
[0252] If a user inputs a command to select and modify the control, the control display 260 displays the modification identification code. After scanning the modification identification code through the terminal 300, the user's video or photo can be re-uploaded to the terminal 300 to change the digital human's appearance, and / or the user's audio can be re-uploaded to change the digital human's voice characteristics, and / or the digital human's name / wake word can be changed on the terminal 300.
[0253] It should be noted that during the digital human customization process described above, users can exit the process at any time. The target application on terminal 300 records and caches data from the server in real time, recording every instance of user data. When a user re-enters the process, the target application retrieves the previously recorded data from the server, facilitating continued operation and avoiding re-recording. If the user is not satisfied with the recording, they can also choose to re-record at any time.
[0254] The embodiments of this application do not restrict the order of video recording, audio recording, and digital human naming.
[0255] In some embodiments, a schematic diagram of digital human interaction is shown as follows: Figure 15 As shown in the diagram. Display device 200 displays a QR code. After terminal 300 scans the QR code, it receives the user's recorded video and audio. Terminal 300 sends the recorded video and audio to server 400. Server 400 uses voice cloning technology and image preprocessing technology to obtain customized data for the digital human, including the digital human's appearance and voice characteristics. Server 400 sends the digital human's appearance to both terminal 300 and display device 200. Display device 200 displays the digital human's appearance on the user interface.
[0256] In some embodiments, the display device 200 and the terminal 300 do not need to establish an association relationship. Figure 9The digital human addition interface also includes a local upload control 92. Upon receiving user input to select the local upload control 92, the camera on the display device 200 is activated to capture the user's image data. Alternatively, local video and images can be displayed, allowing the user to select locally stored image data. This image data is then uploaded to the server 400, where it performs face detection and digital human image data generation. The display device 200 then displays the digital human image based on the data sent by the server 400. Similarly, ambient sound can be collected via the display device 200's sound collector and sent to the server 400 for ambient sound detection. The display device 200's sound collector or the voice acquisition function of the control device 100 can also transmit audio of user-read target text to the server 400, where the server 400 generates digital human voice features.
[0257] This application embodiment further improves some functions of server 400. Server 400 performs the following steps, such as... Figure 16 As shown.
[0258] Step S1601: Receive voice data input by the user from the display device 200;
[0259] After starting the digital human interaction program, the display device 200 receives voice data input by the user.
[0260] In some embodiments, the step of activating a digital human interaction program includes:
[0261] When displaying the user interface, display device 200 receives instructions from the user to select the control corresponding to the digital human application. The user interface includes the control corresponding to the application installed on display device 200.
[0262] In response to the user's input command to select the digital human and apply the corresponding control, display as follows: Figure 6 The digital human entry interface shown.
[0263] In response to the user's instruction to select the natural dialogue control 62, the digital human interaction program is launched, waiting for the user to input voice data through the control device 100 or to control the sound collector to begin collecting the user's voice data. Natural dialogue includes a chat mode, allowing the user to chat with the digital human.
[0264] In some embodiments, the step of activating a digital human interaction program includes:
[0265] Receives environmental voice data collected by a sound acquisition device;
[0266] When the ambient voice data is detected to be greater than or equal to the preset volume or the ambient voice data sound signal duration is greater than or equal to the preset threshold, it is determined whether the ambient voice data includes the wake word corresponding to the digital human.
[0267] If the ambient voice data includes the wake word corresponding to the digital human, the digital human interaction program is started, the sound collector is controlled to start collecting the user's voice data, and the voice receiving box is displayed in the floating layer of the current user interface.
[0268] If the ambient voice data does not include the wake word corresponding to the digital human, the operation of displaying the voice receiver box will not be performed.
[0269] In some embodiments, the digital human interaction program and the voice assistant can be installed simultaneously on the display device 200. The device can receive a user's instruction to set the digital human interaction program as the default interaction program, and then set the digital human interaction program as the default interaction program. Received voice data can be sent to the digital human interaction program, which in turn sends the voice data to the server 400. Alternatively, the digital human interaction program can receive voice data and send it to the server 400.
[0270] In some embodiments, after the digital human interaction program is started, voice data input by the user pressing the voice key of the control device 100 is received.
[0271] Specifically, voice data collection begins after the user starts pressing the voice button on the control device 100 and ends after the user stops pressing the voice button on the control device 100.
[0272] In some embodiments, after the digital human interaction program is launched, when the voice receiver box is displayed in the floating layer of the current user interface, the sound collector is controlled to start collecting the user's input voice data. If no voice data is received for a long time, the digital human interaction program can be closed and the voice receiver box can be de-displayed.
[0273] In some embodiments, the display device 200 receives voice data input by the user and sends the voice data along with a digital human identifier selected by the user to the server 400. The digital human identifier is used to represent the digital human's appearance, voice characteristics, and name, etc.
[0274] In some embodiments, after receiving voice data input by the user, the display device 200 sends the voice data and the device identifier of the display device 200 to the server 400. The server 400 retrieves the digital human identifier corresponding to the device identifier from the database. It should be noted that when the display device 200 detects that the user has changed the digital human identifier of the display device 200, it sends the changed digital human identifier to the server 400, so that the server 400 changes the digital human identifier corresponding to the device identifier in the database to the modified digital human identifier. In this embodiment, the user does not need to upload the digital human identifier each time; it can be directly obtained from the database.
[0275] In some embodiments, the user can, for example, Figure 7 The digital human selection interface shown displays digital human images; select the digital human you wish to use.
[0276] In some embodiments, each created digital human has a unique digital human name that can be set as a wake word, which can be used to determine the digital human selected by the user based on the wake word included in the ambient voice data.
[0277] In some embodiments, the voice data input by the user received by the display device 200 is essentially streaming audio data. After receiving the voice data, the display device 200 sends it to the sound processing module for acoustic processing. The sound processing module performs acoustic processing, including sound source localization, noise reduction, and sound quality enhancement. Sound source localization is used to enhance or preserve the signal of the target speaker in situations involving multiple speakers, suppress the signals of other speakers, track the speaker, and perform subsequent speech orientation pickup. Noise reduction is used to remove environmental noise from the voice data. Sound quality enhancement is used to increase the intensity of the speaker's voice when it is low. The purpose of acoustic processing is to obtain a relatively clean and clear voice of the target speaker from the voice data. The acoustically processed voice data is then sent to the server 400.
[0278] In some embodiments, after receiving voice data input by the user, the display device 200 directly sends it to the server 400, whereby the server 400 performs acoustic processing on the voice data and sends the acoustically processed voice data to a semantic service. After processing the received voice data, such as performing speech recognition and semantic understanding, the server 400 sends the processed voice data back to the display device 200.
[0279] Step S1602: Recognize the speech text corresponding to the speech data;
[0280] After receiving voice data, the semantic service of server 400 uses speech recognition technology to identify the corresponding voice text.
[0281] Step S1603: Determine the emotion type and emotion cause based on the voice text;
[0282] like Figure 17 As shown, server 400 includes a dialogue emotion recognition module, which is functionally divided into several sub-modules, including a text-based emotion classification module, an emotion classification module, an emotion cause extraction module, a common sense knowledge acquisition module based on a common sense knowledge graph, an emotion disambiguation module for different modalities, and an emotion reasoning module that integrates social common sense. Finally, it outputs the emotion type and emotion cause after comprehensive decision-making as the result of the emotion recognition module, providing a basis and support for downstream emotion dialogue management and emotion expression.
[0283] In some embodiments, the emotion type includes Level 1 emotion.
[0284] In some embodiments, emotion types include primary emotion and secondary emotion. Primary emotion is an emotion category, while secondary emotion is a combination of primary emotion and emotional information such as event, psychological state, or intensity of emotion.
[0285] The dialogue emotion recognition module supports two types of text input: one type of text or both types of text can be input simultaneously.
[0286] 1) Natural Language Text: The speech text obtained by the server's 400 speech recognition engine (ASR) from the speech data. For a user's input natural language query request, the system identifies the user's emotion and the cause or event leading to that emotion. For example, for the input query = "I feel so tired from working overtime every day", the recognition result is: Level 1 emotion label = {sad}, Level 2 emotion sublabel = {state_tired}, and emotion reason causalSpan = {I'm so tired from working overtime}.
[0287] 2) Structured Text Data: Results from the server's 400-modal recognition engine. User emotions and events, based on multimodal recognition of images and sounds such as gestures, body movements, facial expressions, and voiceprint features, are input into the system in structured text format. For example, in a fitness scenario, if a user's accuracy in following exercises is low, the input would be: emotion_label = {sad}, sublabel = {state_tired}, event = {High error rate in sports movements}.
[0288] The sentiment classification module performs a primary classification of user requests (voice and text) to obtain a primary sentiment level. The required sentiment categories are defined based on the actual usage scenario. For example, by analyzing a large amount of user logs, the sentiment categories are defined as happy, sad, angry, and ambiguous. The primary classifier is a typical NLP (Natural Language Processing) classification task, using neural network models such as RNNs (Recurrent Neural Networks) and LSTMs (Long Short-Term Memory), or based on pre-trained models such as BERT and Electra, fine-tuning the weights of linear layers and activation functions to implement the sentiment classifier. Voice and text are input into the primary classifier to obtain the primary sentiment level.
[0289] In some embodiments, the emotion classification module includes an emotion secondary classifier. The emotion secondary classification can be defined as an independent category system, implemented as a general multi-classification task. Inputting spoken text into the emotion secondary classifier yields a secondary emotion (feeling).
[0290] In some embodiments, based on the primary emotion classification, further information contained in the dialogue is mined to perform more granular dialogue emotion recognition, and user requests are classified into secondary categories from the perspective of psychological state. The secondary and primary classifications are defined as a hierarchical emotion system, and each primary emotion is further broken down into secondary emotions that combine the event in the scenario, psychological state, and emotional intensity. For example, the primary emotion "anger" can be subdivided into: anger-event-traffic jam, anger-state-annoyance, etc.; "happiness" can be subdivided into: happiness-event-romantic, happiness-state-excitement, etc.; and "ambiguity" can be subdivided into: ambiguity-state-awkwardness, ambiguity-state-confusion, etc.
[0291] Emotion categories can be designed by referring to general classifications and combining them with product application scenarios and task requirements. For example, 36 secondary emotions can be defined.
[0292] The advantage of adopting a hierarchical emotion system is that there is a progressive relationship between first-level and second-level emotions. The results of first-level emotion classification can be used as prior knowledge for second-level emotions and added to the classifier, thereby improving the accuracy and robustness of fine-grained emotion classification.
[0293] like Figure 18As shown, the secondary sentiment classifier model includes a tokenizer, a Transformer encoder (encoder layer), and a linear classifier. The tokenizer and encoder layer can utilize a pre-trained language model, BERT. The primary sentiment categories are pre-added as special tokens to the tokenizer's vocabulary. The model is trained using sentiment-annotated data, and the weights of the linear classifier are fine-tuned to obtain the secondary sentiment classifier.
[0294] The primary sentiment level is concatenated with the voice text and then input into the secondary sentiment classifier to obtain the secondary sentiment level.
[0295] For example, if the primary emotion is anger and the voice text is "There's traffic again today, every Monday is so frustrating", the concatenated data "[angry] There's traffic again today, every Monday is so frustrating" is input into the secondary emotion classifier, and the secondary emotion is anger-event-traffic jam.
[0296] The sentiment reasoning extraction module can extract sentiment reasoning text fragments from dialogues. Sentiment reasoning extraction can be handled through a sequence labeling task. For example, the sentence to be labeled is segmented and encoded into word vectors, then input into the model for computation. The model uses a structure consisting of a 12-layer Transformer Encoder and a single CRF (Conditional Random Field) layer. The output of the previous layer serves as the input to the next, and the sequence of labels with the highest probability is obtained as the prediction result. For example, for the query (voice text) = "I feel so tired from working overtime every day", the sentiment reasoning result is {"O", "O", "O", "B-Causal", "I-Causal", "I-Causal", "I-Causal", "O", "O", "O", "O"}. B-Causal represents the start word of the sentiment reason, I-Causal represents the middle word of the sentiment reason, and O represents a non-sentiment reason word.
[0297] Based on the open-source, large-scale common-sense knowledge base ATOMIC (which covers reasoning knowledge tuples related to social aspects centered on events and connects various entities with nine relationships, including both events and mental states related to a certain event), a large number of event triples related to product usage scenarios are added to serve as the basic common-sense knowledge base for the emotional dialogue system.
[0298] In some embodiments, if no emotional cause is extracted after inputting the voice text into the emotional cause extraction module, i.e., the voice text contains only non-emotional cause words, then the voice text is input into the common sense knowledge acquisition module. The common sense knowledge acquisition module identifies events in the voice text and queries the causal relationship (event triple) of the events in social common sense. This causal relationship serves as the basis for subsequent comprehensive reasoning and the formulation of dialogue strategies.
[0299] In some embodiments, a knowledge reasoning model is pre-trained based on a commonsense base. Based on events identified in the dialogue, the reasoning model is used to represent different relationships, which are then used as psychological knowledge and event knowledge, respectively, and input into an emotion classification model or an empathy response model as the dialogue representation of the downstream model that enhances external knowledge.
[0300] For example, the spoken text "I failed my exam today" itself contains no emotion words, making it easy for emotion classification models to ignore the hidden emotion and fail to extract the emotional reason. However, with the help of a commonsense graph, the event "[x failed the exam]" can be queried to find triples such as (failed the exam, xReact, frustrated) and (failed the exam, xWant, received comfort). This information is then fed into the comprehensive reasoning submodule to correct the emotion recognition result, or the knowledge representation obtained from the pre-trained model can be fed into the emotion classification model, thus correctly identifying the emotion and emotional reason of the sentence "I failed my exam today".
[0301] In some embodiments, after receiving structured text data sent by the display device 200, the server 400 is processed by the common sense knowledge acquisition module.
[0302] After detecting a specific event, display device 200 will proactively send the event as structured text data to server 400. For example, if display device 200 detects that the user's accuracy rate in following a fitness exercise is lower than a preset value, it will send the information about fitness and low accuracy rate to server 400. The common sense knowledge acquisition module can then use the event of accuracy rate to find causal relationships and determine the emotion type and cause.
[0303] In some embodiments, the emotion recognition module may further include a non-textual modality-based emotion module, such as a voice emotion recognition module, an image emotion recognition module, and a physiological signal emotion recognition module.
[0304] The speech emotion recognition module identifies the speaker's emotional state by analyzing the tone, audio features, and speech content in the speech data. For example, by analyzing features such as pitch, volume, and speech rate in the speech data, it can determine whether the speaker is angry, happy, sad, or neutral.
[0305] Image emotion recognition modules identify a person's emotional state by analyzing facial expression features in facial images or videos. For example, by analyzing the movement and changes in facial features such as the eyes, eyebrows, and mouth, it is possible to determine whether a person is angry, happy, sad, or surprised.
[0306] The physiological signal emotion recognition module identifies a person's emotional state by analyzing physiological signals such as heart rate, skin conductance, and brain waves. For example, by monitoring changes in heart rate, it can determine whether a person is tense, relaxed, or excited.
[0307] In most cases, the emotions obtained by different modal emotion recognition modules are consistent. However, when the emotions are inconsistent, an emotion disambiguation module is needed to perform disambiguation processing.
[0308] The steps of affect disambiguation include:
[0309] Obtain the first-level emotion from the first modality emotion recognition module and the second-level emotion from the second modality emotion recognition module;
[0310] Determine whether the first-level emotion and the second-level emotion are opposite in polarity; where opposite polarity means that the positive and negative polarities are opposite.
[0311] If the first-level emotion and the second-level emotion are opposite in polarity, then the results of the first-modal emotion recognition module and the second-modal emotion recognition module are compared in terms of priority.
[0312] If the priority of the result from the first modality emotion recognition module is greater than the priority of the result from the second modality emotion recognition module, then the output first-level emotion is determined as the first-level emotion.
[0313] If the priority of the result from the first modality emotion recognition module is lower than the priority of the result from the second modality emotion recognition module, then the output first-level emotion is determined to be the second-level emotion.
[0314] If the first-level emotion and the second-level emotion are not opposite in polarity, the first-level emotion and the second-level emotion are merged, and the output first-level emotion is the merged emotion. This is based on the strategy of intermodal emotional complementarity.
[0315] For example, the voice text is "You're so great~", classified as "happy". The image emotion recognition module identifies "rolling eyes", classified as "angry". Based on everyday experience, in such cases, facial expressions often reflect the true inner thoughts and emotions. Therefore, the image emotion recognition module's result takes priority over the text emotion recognition module. Thus, the output primary emotion is "angry". If the emotion recognition result for one modality is "ambiguous", while other modalities identify "happy", the "ambiguous" and "happy" emotions can be fused to make the emotion between "ambiguous" and "happy". This can be represented by emotion intensity. For example, the emotion intensity for ambiguity is 0, the emotion intensity for happiness is 1 (strong), and the emotion intensity between "ambiguous" and "happy" is 0.33 (moderate) or 0.66 (normal).
[0316] The emotion reasoning module is essentially a decision-making submodule of the entire emotion cognition module. Its main function is to summarize the results of the aforementioned submodules, combine the primary emotions, secondary emotions and emotional causes identified in multiple modal dialogues, and the event tuple information retrieved from the social commonsense graph, and make a comprehensive decision on the primary emotions, secondary emotions and emotional causes to be output to the downstream modules.
[0317] The sentiment reasoning module primarily integrates information and makes decisions when there is a discrepancy between the sentiment classification and the sentiment in common sense. The decision-making method prioritizes the sub-modules of the sentiment cognition module. When inconsistencies arise, the result with the higher priority takes precedence. For example, the voice text is "I failed my exam today," with a sentiment classification of "neutral." However, by querying the common sense graph, we get (failed exam, xReact, frustrated). From a common sense perspective, the sentiment at this moment is "frustrated." The sentiment priority in common sense is higher than the sentiment priority in the text. This is mapped to the primary sentiment tagging system, resulting in the final output: {User sentiment category: sad, secondary sentiment: sad-event-exam, reason for emotion: failed exam}.
[0318] In some embodiments, the speech text includes the current speech text.
[0319] In some embodiments, the voice text includes the current voice text and a preset number of previous voice texts and replies. For example, the voice text includes the current voice text and the voice texts of the two previous voice texts and their replies. These are concatenated together.
[0320] In some embodiments, the voice text includes the current voice text and historical voice text and responses for a preset duration prior to the current voice text. For example, the voice text includes the current voice text and the voice text and responses within the previous 3 seconds of the current voice text.
[0321] In some embodiments, the voice text includes the current voice text and a preset number of previous voice texts and replies within a preset time period prior to the current voice text. For example, the voice text includes the current voice text and the last three voice texts and replies within the previous 3 seconds of the current voice text.
[0322] Step S1604: Determine the response sentiment and response strategy based on the voice text and sentiment type;
[0323] like Figure 17 As shown, server 400 includes a dialogue management module. Dialogue Management (DM) is a crucial central control module in task-oriented human-computer dialogue technology frameworks, typically comprising two sub-modules: Dialogue State Tracing (DST) and Dialogue Policy Learning (DPL). In real-life interpersonal interactions, a comfortable conversation requires not only mutual interest in the content but also emotional resonance. Therefore, emotional dialogue systems also need such a central control module to bridge the gap: upstream, it connects to the emotional cognition module and the semantic understanding engine (referring to the natural language understanding module in traditional dialogue systems); downstream, it initiates the corresponding response generation module.
[0324] In addition to tracking user intent, slot information, and decision-making system dialogue actions, this application also considers incorporating emotional factors. Furthermore, to make the dialogue more personalized, we also used user profile features and system personas, ultimately determining the emotional state and response strategy that the emotional dialogue system should adopt. Emotional dialogue management remains comprised of the two sub-modules: DST and DPL.
[0325] Emotional Dialogue State Tracking: Based on the emotional cognition module's assessment of the user's emotions, combined with the dialogue context and user preferences, the system predicts the next emotional state the dialogue system will adopt. For example, it designs 17 response emotions, such as excitement, pride, sadness, worry, curiosity, disappointment, and self-blame. The system reuses the emotional framework from the user's emotional cognition, including primary and secondary emotions. Additionally, it tracks the decision-making basis as the cause of the state. Besides the emotional state classification task, because the previous module displays highly interpretable information about user emotions and their causes, the online system can also track emotional states by carefully designing a series of logical rules, integrating semantic understanding results, business query results, and user personality traits.
[0326] ② Learning Empathic Response Strategies: Simply providing emotional responses is far from sufficient to convey "I understand you" to the user. While appropriately expressing anger can aid empathy, empathy doesn't always rely solely on emotion. For instance, asking questions is a common empathic response strategy in psychology. Psychologists often use questioning to communicate with clients, encouraging them to reveal more of their true thoughts and simultaneously signaling "I'm listening" and "I care about your experience." This application can design empathic response strategies with different granularities based on the capabilities of the downstream NLG (Natural Language Generation) module. For example, it defines 14 response strategies, including comforting, praising, suggesting, questioning, and objecting, and designs a classification task to calculate the confidence level of each strategy.
[0327] In some embodiments, the step of determining the response emotion and response strategy based on the voice text and emotion type includes:
[0328] The mapping table is used to find the corresponding response emotion and response strategy for the first-level emotion or the second-level emotion. The mapping table includes the mapping relationship between the first-level emotion, the second-level emotion, the response emotion, and the response strategy.
[0329] The mapping relationship in the mapping table is many-to-many, meaning that there are multiple system response emotions and response strategies as candidates for user emotions.
[0330] For example, the mapping table is shown in Table 1.
[0331] Table 1
[0332] Level 1 Emotion Secondary Emotion Responding to emotions Response strategy happy Happy - Events - Romance excited bless sad Sadness - State - Exhaustion Worry comfort angry Angry - Incident - Being Scolded Self-blame suggestion Vague neutral curious Question
[0333] If the secondary emotion is sadness-state-exhaustion, then the corresponding emotion to respond to is worry, and the response strategy is to offer comfort. If the primary emotion is ambiguous, then the corresponding emotion to respond to is curiosity, and the response strategy is to ask questions.
[0334] In some embodiments, the response emotion, emotion intensity, and response strategy corresponding to the first-level emotion or the second-level emotion are looked up in a mapping table. The mapping table includes the mapping relationship between the first-level emotion, the second-level emotion, the response emotion, the emotion intensity, and the response strategy.
[0335] For example, the mapping table is shown in Table 2.
[0336] Table 1
[0337] Level 1 Emotion Secondary Emotion Responding to emotions Emotional intensity Response strategy happy Happy - Events - Romance excited strong bless sad Sadness - State - Exhaustion Worry normal comfort angry Angry - Incident - Being Scolded Self-blame strong suggestion Vague neutral curious generally Question
[0338] In some embodiments, the step of determining the response emotion and response strategy based on the voice text and emotion type includes:
[0339] Obtain user profiles or system personas. User profiles are personality tags determined based on users’ historical voice conversations, while system personas are personality tags set by users.
[0340] Obtain the mapping table corresponding to user profiles or system personas;
[0341] Find the corresponding response emotion and response strategy in the mapping table for the first-level emotion or the second-level emotion.
[0342] Different mapping tables are set up for different personality types. For example, by querying user profiles or system personas, if the personality tag is "impatient, short-tempered," the mapping table for "impatient, short-tempered" will not include responses with an inquisitive tone such as "curiosity," or empathic reactions with "anger," or response strategies like "asking questions," to avoid causing user impatience and exacerbating negative emotions. If the dialogue system's persona is set to "gentle and intellectual," or the user's personality tag is "optimistic, chatty," then the mapping table will include more responses with different emotions and strategies.
[0343] In some embodiments, the step of determining the response emotion and response strategy based on the voice text and emotion type includes:
[0344] Obtain personality tags corresponding to user profiles or system personas;
[0345] Find the corresponding personality tag, and the corresponding response emotion and response strategy for the primary or secondary emotion in the mapping table. The mapping table includes the mapping relationships between primary emotion, secondary emotion, response emotion, response strategy, and personality tag.
[0346] For example, the mapping table is shown in Table 3.
[0347] Table 3
[0348] Level 1 Emotion Secondary Emotion Responding to emotions Response strategy Personality Tags happy Happy - Events - Romance excited bless Gentle and intellectual, quick-tempered... happy Happy - Events - Romance excited Question Gentle and intellectual, optimistic... sad Sadness - State - Exhaustion Worry comfort Gentle and intellectual, optimistic... angry Angry - Incident - Being Scolded Self-blame suggestion Gentle and intellectual, optimistic... Vague neutral curious Question Gentle and intellectual, optimistic...
[0349] If the secondary emotion is "Happy-Event-Romance" and the personality tag is "Optimistic," then the response emotion should be "Excited," and the response strategy should be "Asking a Question." If the secondary emotion is "Happy-Event-Romance" and the personality tag is "Quick-tempered," then the response emotion should be "Excited," and the response strategy should be "Blessing."
[0350] In some embodiments, the step of determining the response emotion and response strategy based on the voice text and emotion type includes:
[0351] Obtain the business requirement identifier;
[0352] Understand the user's intent, such as watching a movie, listening to music, checking the weather, or controlling devices. If the user's business need is met, set the business need flag to a preset value, such as 1. If the user's business need cannot be met, set the business need flag to a non-preset value, such as 0. That is, a business need flag of the preset value indicates that the user's business need has been fulfilled, and a business need flag of the non-preset value indicates that the user's business need has not been fulfilled.
[0353] Determine if the business requirement identifier is a preset value;
[0354] If the business requirement is identified as a preset value, then look up the response sentiment and response strategy corresponding to the first-level sentiment or second-level sentiment in the mapping table;
[0355] If the business requirement identifier is not a preset value, then the response sentiment and response strategy are determined to be preset sentiments and preset strategies. Preset sentiments are the response sentiments corresponding to the incomplete business requirement, such as sadness or self-blame. Preset strategies are the response strategies corresponding to the incomplete business requirement, such as suggestions.
[0356] For example, if the voice text is "I'm so happy today, can you order a bouquet of flowers to be delivered to my home?", and the user's emotion is "happy", then if the system supports this skill and finds a flower delivery service, the user can reply with "excited" or "happy" according to the general emotion mapping. However, if the system does not support flower delivery or does not find a relevant service, then the reply emotion should be adjusted to "sad", "blame", or something similar to express apology to the user.
[0357] In some embodiments, the step of determining the response emotion and response strategy based on the voice text and emotion type includes:
[0358] Find the candidate response sentiment and candidate response strategy corresponding to the first-level sentiment or second-level sentiment in the mapping table;
[0359] The response sentiment that is most similar to the response sentiment of the previous voice text among the candidate response sentiments is determined as the response sentiment of the current voice text;
[0360] The response strategy corresponding to the emotional tone of the response in this voice text is determined as the response strategy for this voice text.
[0361] During continuous conversations with users, it is necessary to control the speed of change in response emotions. Response emotions should not be randomly selected from the candidate set to avoid giving users the feeling of being "unpredictable." Instead, a pre-designed emotional state transition rule should be followed, using a similar emotion or a vague emotion from the previous round to transition the state.
[0362] For example, if the previous voice-to-text response was "happy," and the candidate responses are "sad" and "ambiguous," then "ambiguous" should be selected as the response for this time.
[0363] In some embodiments, the step of determining the response emotion and response strategy based on the voice text and emotion type includes:
[0364] Obtain user profiles or system personas;
[0365] If the user profile or system persona represents the target personality, then look up the candidate response emotions and candidate response strategies corresponding to the primary or secondary emotions in the mapping table; the target personality can refer to a mature, stable, or introverted personality.
[0366] The response sentiment that is most similar to the response sentiment of the previous voice text among the candidate response sentiments is determined as the response sentiment of the current voice text;
[0367] The response strategy corresponding to the emotional tone of the response in this voice text is determined as the response strategy for this voice text.
[0368] In some embodiments, the step of determining the response emotion and response strategy based on the voice text and emotion type includes:
[0369] Input the voice text and the first-level sentiment into the first linear layer classifier to obtain the response sentiment;
[0370] The voice text and secondary sentiment are input into the second linear layer classifier to obtain the response strategy.
[0371] The structures of the first linear classifier and the second linear classifier are as follows: Figure 18 As shown.
[0372] Determine response sentiment through categorization tasks:
[0373] Input: input = {[CLS][Emo1]q1[SEP][rEmo1]r1[SEP][Emo2]q2[SEP]}, where [CLS] and [SEP] are special tokens in the vocabulary. The output vector corresponding to [CLS] serves as the semantic representation of the entire context and is input into a linear layer to train a classification task. [SEP] is the separator between two sentences. Emoi and qi represent the first-level sentiment and text input, while rEmoi and ri represent the system's response sentiment and response phrase. The input is a variable-length sequence. When the user makes their first request, input = {[CLS][Emo1]q1[SEP]}. After the user has already had a conversation with the system, the input becomes input = {[CLS][Emo1]q1[SEP][rEmo1]r1[SEP][Emo2]q2[SEP]}. For example: {[cls][angry] Traffic jam again today, it's so annoying every Monday [SEP][angry] Yeah, I would be angry too [SEP][sad] I'm so tired right now [SEP]}.
[0374] Output: The emotion category the system will respond to in the next round, such as [sympathy].
[0375] Determine response strategies by classifying tasks:
[0376] The input is: [CLS] Current user request in the conversation [SEP] Secondary sentiment [SEP] Whether the cause is known [SEP]. For example, input = {[CLS] Traffic jam again today, it's always so annoying on Mondays [SEP] Angry - Event - Traffic jam [SEP] Yes [SEP]}
[0377] Output: System response strategy.
[0378] Step S1605: Input the speech text, sentiment type, sentiment reason, response sentiment, and response strategy into the generative pre-trained Transformer model to obtain the broadcast text;
[0379] like Figure 17 As shown, server 400 includes an emotion expression module. This module generates emotionally charged dialogue response text, synthesizes emotionally charged speech and audio, and controls the digital human's facial expressions, enabling the dialogue system to express emotions like a human. Empathic response text generation is a typical NLG task. Specifically, it generates targeted responses based on the system's emotional state and empathic response strategy determined by the dialogue management module, as well as the emotion type and cause identified by the emotion cognition module. The biggest difference between empathic response generation and traditional NLG modules in dialogue systems is that empathic response generation not only focuses on the relevance of the dialogue content but also emphasizes communication strategies, emotional states, and considers the system's persona.
[0380] Empathic response generation in text modalities is very similar to natural language generation tasks in traditional dialogue systems. The best-performing NLG is achieved by fine-tuning a pre-trained model based on the GPT (Generative Pre-Trained Transformer) structure on a dialogue generation dataset, or by using task prompts on large models such as GPT-3.5 and GPT-4. Because large models have weak emotional expression capabilities and are overly sensitive to prompts, this application uses a fine-tuning method on a pre-trained model GPT-2. However, in addition to regular dialogue text, the model's input also includes secondary emotions (user_emotion_sublabel) and emotional reasons (emo_cause_span) obtained from the emotion cognition module, and response emotions (reply_emotion_label) and response policies (empathy_reply_policy) obtained from the dialogue management module. These are concatenated to the dialogue text {tok1 tok2 tok3 tok4} via [SEP], i.e., input = {[CLS]tok1 tok2 tok3tok4[SEP]user_emotion_sublabel[SEP]emo_cause_span[SEP]reply_emotion_label[SEP]empathy_reply_policy[SEP]}, and then fed into a GPT-2 structured model for training. Among them, GPT is an autoregressive mechanism that generates characters one by one during prediction. The input is equivalent to giving the text a beginning, and then predicting the next character based on the existing sequence until the terminator is predicted or the preset maximum length is reached.
[0381] The speech text, secondary sentiment, sentiment reasons, response sentiment, and response strategy are input into a generative pre-trained Transformer model to obtain the broadcast text.
[0382] In some embodiments, after determining the emotion type and the emotion reason, it is determined whether the emotion type and the emotion reason are the target emotion type and the target emotion reason; the target emotion type and the target emotion reason refer to the emotion type and the emotion reason that occur frequently (above a threshold) as determined from the user logs.
[0383] If the sentiment type and sentiment reason are the target sentiment type and target sentiment reason, the corresponding broadcast text is retrieved from the response template; the broadcast text in the response template is manually created and updated regularly.
[0384] If the emotion type and emotion reason are not the target emotion type and target emotion reason, proceed with the step of determining the response emotion and response strategy based on the spoken text and the emotion type.
[0385] The embodiments of this application save time on the reasoning of the empathic response generation model, while making the dialogue system responses more secure and controllable.
[0386] This application's embodiments, based on the traditional chatbot's ability to fully understand user intent, can also accurately locate the user's emotions and the reasons for those emotions. By leveraging and fusing multimodal emotional features, logically consistent emotional responses are deduced based on common sense, resulting in appropriate replies and improving the emotional relevance of the dialogue.
[0387] Step S1606: Synthesize the broadcast speech based on the broadcast text;
[0388] In some embodiments, the broadcast speech is synthesized based on preset speech features and the broadcast text.
[0389] In some embodiments, the broadcast speech is synthesized based on the speech features corresponding to the digital human identifier and the broadcast text.
[0390] The process involves inputting the text to be broadcast into a pre-trained voice cloning model corresponding to the digital human identifier, resulting in broadcast speech with the digital human's timbre. The broadcast speech is a sequence of audio frames.
[0391] In some embodiments, emotionally charged speech is synthesized based on the speech features corresponding to the digital human identifier, the emotion of the response, and the broadcast text.
[0392] In some embodiments, after synthesizing the broadcast speech, a sequence of key points is determined based on the broadcast speech;
[0393] The process involves denoising and other data preprocessing of the broadcast speech to obtain speech features. These speech features are then input into an encoder to obtain high-level semantic features. These high-level semantic features are then input into a decoder, which combines the real keypoint sequences to generate predicted keypoint sequences, thus generating digital human body movements.
[0394] Digital human image data is synthesized based on key point sequences and digital human image data.
[0395] In some embodiments, after synthesizing the broadcast speech, a key point sequence is determined based on the broadcast text and the emotional response.
[0396] Digital human image data is synthesized based on key point sequences and digital human image data.
[0397] In some embodiments, after synthesizing the spoken speech, a digital human parameter sequence is determined based on the spoken text and the emotional response. The digital human parameter sequence includes parameters such as the digital human image, lip shape, facial expressions, and movements. Digital human image data is then synthesized based on the digital human parameter sequence and the digital human basic model.
[0398] In some embodiments, digital human image data is a sequence of digital human image frames. Digital human data includes all image frame sequences and audio frame sequences.
[0399] In some embodiments, digital human data includes a base model (preprocessed image or cartoon image), a sequence of digital human parameters, and a sequence of audio frames.
[0400] Step S1607: Send the broadcast voice to the display device so that the display device plays the broadcast voice.
[0401] In some embodiments, server 400 sends the broadcast voice to display device 200, and display device 200 plays the broadcast voice.
[0402] In some embodiments, the digital human image data is a sequence of digital human image frames. The streaming control service uses the live streaming channel to encode the digital human image frame sequence and the broadcast voice, and then pushes them to the live streaming room to complete the digital human streaming.
[0403] In some embodiments, the live data streaming process is as follows: Figure 19 As shown. Terminal 300 sends a request to establish a live streaming channel, creates a live streaming room, and sends the live streaming room to the streaming control service. The streaming control service sends the live streaming data, including the driving image frame sequence and the broadcast voice, to the display device 200 via the live streaming channel in a live streaming pull manner, where it is played by the display device 200.
[0404] The streaming control service is an important part of the digital human's driving display and terminal presentation. It is responsible for driving and displaying the virtual image, reflecting the overall customization and driving effect of the digital human.
[0405] The streaming control service receives three types of requests from the display device: 1) restart: The streaming control service interrupts the current video playback, re-applies for a room instance, verifies the validity and sensitivity of the customized image, records the instance status, creates a live room and publishes a broadcast, and completes the live broadcast preparation actions; 2) query: The streaming control service asynchronously processes the request content, performs actions such as speech synthesis, key point prediction, image synthesis, and live room streaming, until the image frame group and audio frame group are pushed out, completes the live playback, destroys the room, and reclaims the instance; 3) stop: The streaming control service interrupts the current video playback, destroys the room, and reclaims the instance.
[0406] To ensure the real-time nature of the digital human-driven system, live streaming technology is used to synthesize digital human data from the received request content in real time and push it to the live streaming room, enabling instant playback on the playback end.
[0407] In addition, the push streaming control service uses an instance pool mechanism. A unique instance is requested for each instance with the same verification information. The instance pool automatically reclaims instances that are no longer in use to make them available to other devices. Instances that experience anomalies or remain unclaimed for an extended period are automatically detected and destroyed by the instance pool, and new instances are created to ensure a healthy number of instances in the pool.
[0408] The display device 200 receives the encoded digital human image frame sequence and the broadcast voice, injects them into the decoder for decoding, and synchronously plays the decoded image frames and broadcast voice, i.e., the digital human's image and voice.
[0409] In some embodiments, the digital human image data includes digital human parameters and a base model. The server 400 sends the digital human image data and the broadcast voice to the display device 200, which draws and renders the digital human image based on the digital human image data, and displays the drawn digital human image synchronously while the broadcast voice is played.
[0410] In some embodiments, after recognizing the voice data, the server 400, in addition to the digital human data, also sends request user interface data or media asset data, etc., from the voice data. The display device 200 displays the user interface data sent by the server 400 and displays the digital human data at a designated location. For example, when a user inputs "How's the weather today?", the user interface of the display device 200 displays as follows: Figure 20 As shown.
[0411] In some embodiments, the digital human image is displayed in the user interface layer.
[0412] In some embodiments, the digital human image is displayed as an overlay on top of the user interface layer.
[0413] In some embodiments, the user interface layer is located above the video layer. The digital human image is displayed in a preset area of the video layer, and a target area is drawn in the user interface layer. The target area is transparent, and the preset area and the target area coincide so that the digital human image in the video layer can be displayed to the user.
[0414] In some embodiments, the digital human interaction sequence diagram is as follows: Figure 21As shown. After receiving voice data, display device 200 sends the voice data to the semantic service, which then sends the semantic results back to display device 200. Display device 200 initiates a request to the streaming control service. Upon response, the streaming control service generates image synthesis data through speech synthesis, keypoint prediction, and image synthesis services, and pushes the image synthesis data and audio data to the live broadcast room. Display device 200 can obtain live broadcast data from the live broadcast room. When the push queue is empty, the streaming control service automatically ends the streaming and exits the live broadcast room. If display device 200 detects a timeout due to no action, it ends the live broadcast and exits the live broadcast room.
[0415] This application embodiment supports providing enterprise and individual users with the capability for high-fidelity customization of general-purpose digital humans with small sample sizes and low resource consumption, and provides a novel anthropomorphic intelligent interaction system based on replicating the digital human image and voice. The digital human image includes 2D real-life images, 2D cartoon images, and 3D near-real-life images. Users enter the terminal customization process by scanning a QR code through an application. A personalized digital human image is customized by collecting the user's second-level video information / selfie image information, and a personalized voice is customized by collecting 1-10 sentences of audio data from the user, achieving personalized digital human voice customization. After customization, the image and voice can be selected and switched through the display device 200, providing voice and text-based interaction using the selected image and voice. During the interaction, the display device 200 receives user requests, and the response (broadcast text) is generated by perception and cognition algorithms based on semantic understanding, speech analysis, and empathy understanding. The response is output in video and audio form through the digital human image and voice. The audio and video data are generated by algorithms such as speech synthesis, face-driven processing, and image generation, and are coordinated and forwarded to the target display device by the push streaming control service, completing one interaction.
[0416] This application employs deep learning technology to accurately identify users' emotions, recognizing fine-grained emotions based on psychological states and thematic events, as well as the reasons behind those emotions. Simultaneously, the system adopts a strategy based on active listening and appropriate questioning to generate targeted and emotionally logical system responses, providing users with a personalized and warm interactive experience.
[0417] This application embodiment further improves some functions of server 400. Server 400 performs the following steps, such as... Figure 22 As shown.
[0418] Step S2201: Receive voice data input by the user from the display device 200;
[0419] Step S2202: Acquire user image data and determine the text to be read based on voice data;
[0420] Server 400 is equipped with an avatar database. This database stores avatar data uploaded by users, and digital avatar identifiers, user accounts, or device identifiers of display device 200 can be stored in correspondence with this avatar data. The corresponding avatar data can be retrieved based on the digital avatar identifier, user account, or device identifier uploaded by display device 200.
[0421] In some embodiments, the image data is a single-frame image of a face, which can be directly obtained from user image data (single-frame face images). Single-frame face images can be uploaded directly by the user, or they can be images uploaded by the user that have undergone processing such as portrait matting and face enhancement. Single-frame face images can also be images from video data uploaded by the user that have undergone processing such as target image frame selection, portrait matting, and face enhancement. Single-frame face images can also be stylized (cartoonized) images uploaded by the user.
[0422] In some embodiments, the image data is video data containing a face, and the step of acquiring user image data includes:
[0423] Acquire video data;
[0424] The target image frame is selected from the video data. In this frame, the human head is centered, the eyes are open, and the facial contours and features are complete. The target image frame represents user image data.
[0425] After receiving voice data, the semantic service of server 400 uses speech recognition technology to identify the corresponding text content. It then performs semantic understanding, business distribution, vertical domain parsing, and text generation on the text content to obtain the broadcast text.
[0426] Step S2203: Map the user image data to three-dimensional space to obtain the image coefficient;
[0427] The user image data is a single-frame face image. The single-frame face image is mapped to a 3D BS (Blend Shape) dimension.
[0428] For example, 3D BS coefficients include four parts: α (image coefficient), β (expression coefficient), γ (mouth movement coefficient), and θ (head movement coefficient). Among them,
[0429] α∈R 100 The task identity is controlled by 100 sets of BS coefficients, and the face shape, such as male or female, fat or thin, can be controlled by adjusting α (refer to the Flame model).
[0430] β∈R 100Use 100 sets of BS coefficients to control facial expressions. Adjusting β can control facial expressions, such as closing the left eye or raising the eyebrows (refer to Flame settings).
[0431] γ∈R 20 It uses 20 sets of mouth-related BS controls to control speech-related mouth movements, and adjusting γ can adjust the lip shape for pronunciation, such as Figure 23 As shown, the first image in the upper left corner shows the mouth shape of the phoneme 'a'.
[0432] θ∈R 6 It uses 6 sets of head motion parameters, and adjusting θ can adjust head movements such as tilting the head up, tilting the head down, and turning the head.
[0433] This application embodiment utilizes 226 sets of 3D BS coefficients [α, β, γ, θ] to characterize the 3D mesh information of different speakers (α), different facial expressions (β), different speech content (γ), and different head movements (θ).
[0434] Image-to-3D space mapping can employ technologies such as 3DMM (3D Morphable models) and EMOCA (Emotion Driven Monocular Face Capture and Animation). Its main function is to map a single frame of RGB image to 3D coefficients (image coefficients and expression coefficients), and then reconstruct the 3D coefficients into a mesh structure in 3D space using BS radix templates.
[0435] Taking the EMOCA algorithm as an example, the input is a single-frame face image, and the output is an image coefficient α0 and an expression coefficient β0. β0 is the coefficient corresponding to a neutral expression. If the user's expression in a single-frame face image is not neutral, it needs to be adjusted to a neutral expression, i.e., the expression coefficient is set to β0.
[0436] Step S2204: Determine the sentiment coefficient sequence;
[0437] The digital human's facial expressions are controlled through an expression coefficient β.
[0438] In some embodiments, the step of determining the sentiment coefficient sequence includes:
[0439] Determine the emotional change sequence corresponding to the broadcast text;
[0440] In some embodiments, a database of pre-set emotion change sequences is provided, for example, human expressions are divided into seven emotions: surprise, sadness, anger, fear, happiness, disgust, and neutrality, with each emotion represented by a set of emotion change sequences {β0β1……β}. n...β1β0} indicates that, to satisfy the continuity of emotional changes, the emotional sequence starts at β0 and ends at β0. Before determining the emotional coefficient sequence corresponding to the broadcast text, the emotional type (response emotion) corresponding to the broadcast text is determined based on the user's input voice data. The steps for determining the response emotion have been described in detail above in this application and will not be repeated here. After determining the emotional type corresponding to the broadcast text, the emotional change sequence corresponding to that emotional type is directly retrieved from the database.
[0441] In some embodiments, the step of determining the emotional change sequence corresponding to the broadcast text includes:
[0442] Inputting speech data into a speech emotion classification model yields emotion feature vectors;
[0443] By inputting the emotional feature vector into the mapping model, a sequence of emotional changes is obtained.
[0444] Speech data contains user emotional information. An emotional feature vector E can be obtained through a speech emotion classification model or pre-synthesis emotional embedding labels. To control β using E, a mapping model from the emotional feature vector E to β needs to be trained. This model can use an MLP (Multilayer Perceptron) architecture or a Transformer architecture. Emotional labels control the emotional tone of β. The emotional change sequence is {β0β1……βn……β1β0}.
[0445] It should be added that the training method for the sentiment feature vector to β mapping model is as follows:
[0446] 1) Data preparation: Select a model with acting talent and record 6 hours of neutral speech data, 1 hour of each of the six expressions (joy, anger, sorrow, and surprise), and use parallel speech data for emotional data.
[0447] 2) Data processing: The expression coefficient β is obtained frame by frame using 3DMM or EMOCA model. Parallel data of different emotional states are aligned in time dimension using the DTW (Dynamic Time Warping) algorithm.
[0448] 3) Emotional label preset: Emotional labels are set in a one-hot manner, and neutrality and the other six emotions are represented by a [7] dimensional vector. For example, happiness is represented by [0,1,0,0,0,0,0], and neutrality is represented by [1,0,0,0,0,0,0].
[0449] 4) Mapping model: The Transformer structure is adopted, which can be referenced from the Fastspeech speech synthesis model.
[0450] 5) Training: Input neutral β + sentiment label, use the sentiment label corresponding to sentiment β as label, loss is calculated by comparing label β and output β to obtain MSE (mean squared error), and controlled by sentiment discriminator.
[0451] During the interactive call, it is necessary to determine the length T of the broadcast speech and perform frame skipping or linear interpolation on a certain emotional sequence to satisfy the extraction sequence frame β. select Length = T. The final sentiment coefficient sequence is β. T ={β0β1……β T}
[0452] The duration of the broadcast speech is determined based on the length of the broadcast text.
[0453] The emotional coefficient sequence is determined based on the emotional change sequence and its duration.
[0454] The steps for determining the sentiment coefficient sequence based on the sentiment change sequence and its duration include:
[0455] Determine whether the duration of the broadcast speech is less than or equal to a target value, where the target value is the total duration of the emotional change sequence displayed;
[0456] If the duration of the broadcast speech is less than or equal to the target value, then the target number of emotional coefficients are removed from the emotional change sequence to obtain an emotional coefficient sequence, wherein the target number is determined by the duration, the target value, and the frame rate.
[0457] Target quantity = |Voice playback duration - Target value| × Frame rate;
[0458] A target number of sentiment coefficients can be randomly removed from the sentiment change sequence, or a target number of sentiment coefficients can be removed from the sentiment change sequence at fixed intervals.
[0459] For example, the target value is 2 seconds, the spoken audio duration is 1.6 seconds, the frame rate is 25 fps, and the emotional change sequence includes 50 beta coefficients. The target number = |spoken audio duration - target value| × frame rate = |2 - 1.6| × 25 = 10. Ten beta coefficients can be randomly removed from the 50, or one beta coefficient can be removed every five beta coefficients, leaving a sequence of 40 beta coefficients representing the emotional coefficients.
[0460] If the duration of the broadcast speech exceeds the target value, then insert the target number of emotion coefficients into the emotion change sequence to obtain the emotion coefficient sequence.
[0461] A coefficient identical to the previous (or next) emotional coefficient can be added at a random position in the emotional change sequence. Alternatively, an intermediate value of the coefficient corresponding to the position before or after the current position can be added at a fixed or random position in the emotional change sequence.
[0462] For example, the target value is 2 seconds, the spoken audio duration is 2.4 seconds, the frame rate is 25 fps, and the emotional change sequence includes 50 beta coefficients. The target number = |spoken audio duration - target value| × frame rate = |2 - 2.4| × 25 = 10. Ten more beta coefficients can be randomly added to the 50, or one beta coefficient can be added every five beta coefficients, leaving a sequence of 60 beta coefficients for emotional changes.
[0463] In some embodiments, if the duration of the broadcast speech is greater than the target value, it is determined whether the duration of the broadcast speech is less than or equal to the limit value, where the limit value is the longest time supported by the emotion coefficient sequence.
[0464] If the duration of the broadcast speech is less than or equal to the limit value, insert the target number of emotion coefficients into the emotion change sequence to obtain the emotion coefficient sequence.
[0465] If the duration of the broadcast speech exceeds the limit, the emotional coefficient sequence is determined based on the duration of the broadcast speech. The determination method is to start from the first emotional coefficient in the emotional change sequence and select sequentially. After selecting the last emotional coefficient, start again from the first emotional coefficient and continue selecting sequentially until the duration of the broadcast speech is reached.
[0466] For example, the target value is 3 seconds, the spoken audio is 4 seconds, the frame rate is 25 fps, and the emotion change sequence includes 50 beta coefficients. The emotion coefficient sequence is 50 + 50 beta coefficients, i.e., emotion change sequence + emotion change sequence.
[0467] In some embodiments, the step of determining the sentiment coefficient sequence includes:
[0468] Inputting speech data into a speech emotion classification model yields emotion feature vectors;
[0469] The emotional feature vector and the duration of the broadcast speech are input into the mapping model to obtain the emotional coefficient sequence.
[0470] An emotion feature vector E can be obtained through a speech emotion classification model or pre-synthesis emotion embedding labels. To control β with E, a mapping model from the emotion feature vector E and the duration of the broadcast speech to β needs to be trained to obtain β corresponding to the broadcast duration. T ={β0β1……β T This model can be implemented using an MLP layer architecture or a Transformer architecture. The emotional connotation of β is controlled by sentiment labels. Duration labels are added to the training input of the mapping model in step 5).
[0471] Step S2205: Generate digital human image data based on the broadcast text, image coefficient, and emotion coefficient sequence;
[0472] The steps of generating digital human image data based on broadcast text, avatar coefficient, and emotion coefficient sequence include:
[0473] inputting the broadcast text into a voice driving model to obtain a mouth movement coefficient sequence;
[0474] In the embodiment of the present application, phoneme driving is used to generate the mouth movement coefficient γ related to the speech content in the 3D BS coefficient. The deep learning network adopts the speech synthesis network architecture FastSpeech2, the input is text content, and the output is γ T coefficient sequence {γ0γ1……γ T}
[0475] 1) Phoneme time dimension alignment: the phoneme interval ct∈{"pad", " / ", "AA0"…"x", "z", "zh"}, a total of 67 English phonemes, 120 Chinese phonemes plus 4 special symbols (space, mute, padding, prosodic boundary), a total of 191. The length of a segment of speech data T, with a sampling rate of 16000, is firstly processed into MFCC (Mel Frequency Cepstrum Coefficient), with a time window of 200 and a dimension of 39, to obtain the MFCC[T*80,39] dimension, and the speech corresponding text is discretized into a phoneme list Phonemes such as "你好"->{eos n i2 h aa3 uu3 eos}. Then, the Viterbi forced alignment of MFCC[T*80,39] and the corresponding Phonemes based on TDNN (Time Delay Neural Network) is performed to obtain the time list Durations {n1, n2...nm} of the corresponding Phonemes, where m is the same as the length of Phonemes, n1+n2+...nm=T*80.
[0476] 2) 3D BSγ space alignment: the collected Mesh data frame rate is 25Fps. Firstly, the Mesh point surface structure is standardized, and then the mesh structure is aligned in the spatial dimension. The alignment method is to firstly scale the mesh to a space with a certain value range according to a certain proportion, and then select a standard face (the central axis of the eyes and nose is at x=0), and all key points achieve the maximum overlap with the 8 sets of anchor points on the eye corners and nose bridge of the standard face through rotation and translation, and finally obtain the spatially aligned Mesh parameter BS[T*25,226] (226 includes α100, β100, γ20, θ6), and select γ as the training Label.
[0477] 3) Audio-visual alignment: Through the above two steps, obtain Phonemes({eos n i2 h aa3 uu3 eos})Durations{n1, n2…nm}(n1+n2+…nm=T*80) and BS[T*25,20]. Before entering the model, 80*T and 25*T need to be aligned in the time dimension. This can be achieved by using bilinear interpolation to map the 25*T*20 keypoints to 80*T*20BS, thus obtaining the input required for the model: Input{Phonemes, Durations, BS}.
[0478] 4) BS-driven: The phoneme-driven model uses the FastSpeech model based on the Transformer structure. The training data is extracted from four-dimensional data collection to form Input{Phonemes, Durations, BS}. The input data are: Phonemes{ph1, ph2...phm}, Durations{n1, n2...nm}, and BS[T*80, 20]. The output is the offset of BS relative to the reference BS in the Delta[T*80, 20] dimension. The loss is set to Delta + reference and BS to calculate MSE.
[0479] 5) A speech-driven model is obtained through training.
[0480] The system inputs the text to be read, finds the corresponding phoneme sequence (Phoneme) and time list (Duration) from the phoneme library, and inputs them into the speech-driven model to obtain the facial landmark offset of the corresponding speech segment, i.e., the mouth action coefficient sequence γ. T ={γ0γ1……γ T}
[0481] Digital human image data is generated based on image coefficient, emotion coefficient sequence, and mouth movement coefficient sequence.
[0482] In some embodiments, digital human image data includes image coefficients, emotion coefficient sequences, mouth movement coefficient sequences, and user image data.
[0483] In some embodiments, the step of generating digital human image data based on image coefficients, emotion coefficient sequences, and mouth movement coefficient sequences includes:
[0484] The user's image data is input into the encoder to obtain the encoded features;
[0485] The image generation network is input with image coefficients, emotion coefficient sequences, mouth movement coefficient sequences, and encoded features to obtain the driving image frame sequence, i.e., digital human image data.
[0486] like Figure 24 As shown, in obtaining the image coefficient / sequence α T ={α0α0……α0}, sentiment coefficient sequence β T ={β0β1……β T} and mouth movement coefficient sequence γ T ={γ0γ1……γ T Afterwards, the user image data is encoded using an encoder to obtain coded features F0, where the encoder can be a VGG (Visual Geometry Group) encoder. F0, α T ,β T and γ T The input is fed into an image generation network to obtain a sequence of driving image frames. The image generation network can be a Face-vid2vid network or a Generator layer of a StyleGAN (Generative Adversarial Network) series of networks.
[0487] In some embodiments, α T ={α0α0……α0}、β T ={β0β1……β T} and γ T ={γ0γ1……γ T The parameters are summed to obtain the final BS parameters, and a driving image frame sequence is generated based on the final BS parameters.
[0488] In some embodiments, the step of generating digital human image data based on a sequence of broadcast text, image coefficients, and emotion coefficients includes:
[0489] Determine the sequence of head movement coefficients;
[0490] In 3D space, head movement is controlled by the θ coefficient.
[0491] The steps for determining the head motion coefficient sequence include:
[0492] Determine the sequence of head movement changes corresponding to the broadcast text;
[0493] A pre-set head movement database is provided, including head nodding (up and down), head shaking (left and right), and head twisting (left and right). The head movement database includes at least one set of head movement variation sequences, each containing a sequence corresponding to at least one movement. Each set of head movement sequences can be represented by {θ0θ1……θ}. n ...θ1θ0} represents a set of head movement change sequences that can be randomly or specifically selected from the head movement database.
[0494] During the interactive call, it is necessary to determine the length T of the broadcast speech and perform frame skipping or linear interpolation on a certain head movement change sequence to ensure that the length of the extracted sequence frame θselect is equal to T. The final head movement coefficient sequence is θ. T ={θ0θ1……θ T}
[0495] The duration of the broadcast speech is determined based on the length of the broadcast text.
[0496] The head movement coefficient sequence is determined based on the head movement change sequence and the duration.
[0497] The steps for determining the head movement coefficient sequence based on the head movement change sequence and the duration include:
[0498] Determine whether the duration of the broadcast speech is less than or equal to a target value, where the target value is the total duration of the head motion coefficient sequence displayed;
[0499] If the duration of the broadcast speech is less than or equal to the target value, the target number of emotion coefficients is removed from the head movement change sequence to obtain a head movement coefficient sequence, wherein the target number is determined by the duration, the target value, and the frame rate.
[0500] Target quantity = |Voice playback duration - Target value| × Frame rate;
[0501] A target number of head motion coefficients can be randomly removed from a head motion change sequence, or a target number of head motion coefficients can be removed from a head motion change sequence at fixed intervals.
[0502] For example, the target value is 2 seconds, the voice broadcast is 1.6 seconds, the frame rate is 25 fps, and the head movement change sequence includes 50 theta coefficients. The target number = |voice broadcast duration - target value| × frame rate = |2 - 1.6| × 25 = 10. Ten theta coefficients can be randomly removed from the 50, or one theta coefficient can be removed every five theta coefficients, leaving a head movement coefficient sequence of 40 theta coefficients.
[0503] If the duration of the broadcast speech exceeds the target value, the target number of head motion coefficients are inserted into the head motion change sequence to obtain the head motion coefficient sequence.
[0504] A coefficient identical to the previous (or next) head movement coefficient can be added at a random position in the head movement change sequence. Alternatively, an intermediate value of the coefficient corresponding to the position before or after the current position can be added at a fixed or random position in the head movement change sequence.
[0505] For example, the target value is 2 seconds, the spoken audio duration is 2.4 seconds, the frame rate is 25 fps, and the head movement change sequence includes 50 theta coefficients. The target number = |spoken audio duration - target value| × frame rate = |2 - 2.4| × 25 = 10. Ten more theta coefficients can be randomly added to the 50, or one theta coefficient can be added every five theta coefficients, leaving a head movement coefficient sequence of 60 theta coefficients.
[0506] In some embodiments, if the duration of the broadcast speech is greater than the target value, it is determined whether the duration of the broadcast speech is less than or equal to the limit value, where the limit value is the maximum duration supported by the head motion coefficient sequence.
[0507] If the duration of the broadcast speech is less than or equal to the limit value, insert the target number of head motion coefficients into the head motion change sequence to obtain the head motion coefficient sequence.
[0508] If the duration of the broadcast speech exceeds the limit, the head action coefficient sequence is determined based on the duration of the broadcast speech. The determination method is to start from the first head action coefficient in the head action change sequence and select them sequentially. After selecting the last head action coefficient, the selection starts again from the first head action coefficient and continues sequentially until the duration of the broadcast speech is reached.
[0509] For example, the target duration is 3 seconds, the spoken audio duration is 4 seconds, the frame rate is 25 fps, and the head movement change sequence includes 50 theta coefficients. The head movement coefficient sequence is 50 + 50 theta coefficients, i.e., head movement change sequence + head movement change sequence. Alternatively, two different sets of head movement change sequences can be randomly selected.
[0510] Digital human image data is generated based on the broadcast text, image coefficient, emotion coefficient sequence, and head movement coefficient sequence.
[0511] The steps for generating digital human image data based on broadcast text, image coefficients, emotion coefficient sequences, and head movement coefficient sequences include:
[0512] The text to be broadcast is input into the speech-driven model to obtain a sequence of mouth movement coefficients.
[0513] Digital human image data is generated based on image coefficients, emotion coefficient sequences, mouth movement coefficient sequences, and head movement coefficient sequences.
[0514] In some embodiments, digital human image data includes image coefficients, emotion coefficient sequences, mouth movement coefficient sequences, head movement coefficient sequences, and user image data.
[0515] In some embodiments, the step of generating digital human image data based on image coefficients, emotion coefficient sequences, mouth movement coefficient sequences, and head movement coefficient sequences includes:
[0516] The user's image data is input into the encoder to obtain the encoded features;
[0517] The image generation network is input with image coefficients, emotion coefficient sequences, mouth movement coefficient sequences, head movement coefficient sequences, and encoded features to obtain the driving image frame sequence, i.e., digital human image data.
[0518] like Figure 24 As shown, in obtaining the image coefficient / sequence α T ={α0α0……α0}, sentiment coefficient sequence β T ={β0β1……β T Mouth movement coefficient sequence γ T ={γ0γ1……γ T}, Head motion coefficient sequence θ T ={θ0θ1……θ T After that, the user image data is encoded by an encoder to obtain the encoded features F0, and F0, α T ,β T γ T θ T The input is fed into the image generation network to obtain the driving image frame sequence.
[0519] In some embodiments, α T ={α0α0……α0}、β T ={β0β1……β T}、γ T ={γ0γ1……γ T} and θ T ={θ0θ1……θ T The parameters are summed to obtain the final BS parameters, and a driving image frame sequence is generated based on the final BS parameters.
[0520] Step S2206: Generate broadcast speech based on the broadcast text;
[0521] In some embodiments, the broadcast speech is synthesized based on preset speech features and the broadcast text.
[0522] In some embodiments, the broadcast speech is synthesized based on the speech features corresponding to the digital human identifier and the broadcast text;
[0523] Step S2207: Send the broadcast voice and digital human image data to the display device 200 so that the display device 200 plays the broadcast voice and displays the digital human image based on the digital human image data.
[0524] In some embodiments, digital human image data includes a sequence of driving image frames, playback of the driving image frames, and voice broadcast.
[0525] In some embodiments, the digital human image data includes image coefficients, emotion coefficient sequences, mouth movement coefficient sequences, head movement coefficient sequences, and user image data. The display device 200 inputs the user image data into an encoder to obtain encoded features; it then inputs the image coefficients, emotion coefficient sequences, mouth movement coefficient sequences, head movement coefficient sequences, and encoded features into an image generation network to obtain a driving image frame sequence, plays the driving image frames, and broadcasts speech.
[0526] This application provides a method for controlling the movement and emotion of a digital human head using a three-dimensional topological structure as an intermediate state. First, a single-frame image of the user is acquired. Then, a 3D reconstruction algorithm is used to map the image to a 3D Black-Scholes (BS) parameter space. In this BS space, head movements and facial expressions can be controllably adjusted. Next, an image generation deep learning architecture is used to train a mapping model from the BS space to the final image. Ultimately, highly human-like emotion and head movement editing of a single-frame image is achieved, effectively increasing the expressive capabilities of the digital human.
[0527] This application embodiment further improves some functions of server 400. Server 400 performs the following steps, such as... Figure 25 As shown.
[0528] Step S2501: Receive voice data input by the user from the display device 200;
[0529] Step S2502: Obtain user image data and the original key point data corresponding to the user image data, and determine the broadcast text based on the voice data;
[0530] The original key point data can be stored together with the user's image data in the image database. The original key point data is 3D key point data.
[0531] The MediaPipe Face Mesh algorithm is used to detect facial landmarks. This algorithm obtains the surface and depth of the face through machine learning and draws the face mesh structure using 468 landmarks.
[0532] This application embodiment selects 153 key points from 468 key points that are strongly related to facial movements such as expressions and pronunciation, specifically including: facial contour (36), mouth (40), eyes (30), eyebrows (22), nose (25), etc. Figure 26 As shown.
[0533] Step S2503: Determine the sentiment of the response based on the voice data;
[0534] The methods for determining the emotions in a response have been detailed above, and will not be repeated here.
[0535] Step S2504: Map the broadcast text and the emotional input of the reply to the emotional speech-driven model to obtain the emotional speech key point sequence, wherein the emotional speech key point sequence is a sequence of key points related to facial expressions and pronunciation;
[0536] Taking seven emotions—neutral, happy, sad, angry, surprised, contemptuous, and fear—as examples, the data processing and training process of the emotion mapping speech-driven model is as follows:
[0537] 1) Record parallel corpora. Speakers say the same sentence in different emotional states. Record 4 hours of neutral corpora (1 hour of parallel corpora), 1 hour * 6 emotional states, for a total of 10 hours of training data.
[0538] 2) Parallel corpus alignment: The length of pronunciation varies significantly depending on the speaker's emotional state. This application uses the Dynamic Time Warping (DTW) algorithm to align parallel corpora at the speech level. The aligned data corresponds to visual pixels of different emotional states under the same phoneme state.
[0539] 3) The parallel corpus pairs processed by 2) contain: neutral state keypoints Fls[N,153*3], sentiment state keypoints Flse[N,153*3], and sentiment state labels Labels[N,7]. Here, N is the length of the aligned sequence, and the sentiment state labels adopt the one-hot method. Therefore, a 7-dimensional feature vector is used to represent six sentiments plus neutral sentiment.
[0540] 4) The model uses a Fastspeech (speech synthesis model) encoder, with inputs Fls[N,153*3] and Labels[N,7]. Labels[N,7] are processed by the MLP layer activity L. hidden [N,153*3].
[0541] ⑤L hidden [N,153*3] and Fls[N,153*3] are concatenated together and passed through the Fastspeech Encoder layer to obtain the output Out[N153*3].
[0542] ⑥Out[N, 153*3] and Fls e Calculate the MSE loss for [N, 153*3], and adjust the model parameters through backpropagation until the training process converges.
[0543] By mapping the broadcast text and the emotional input of the response to the speech-driven model, a sequence of emotional speech key points is obtained.
[0544] In some embodiments, the emotion and intensity of the response are determined based on voice data;
[0545] The methods for determining the intensity of emotion have been described in detail above, and will not be repeated here.
[0546] The broadcast text, response sentiment, and sentiment intensity are input into the sentiment mapping speech-driven model to obtain a sequence of sentiment speech key points.
[0547] Recorded data is used during the training of the emotion mapping speech-driven model. During recording, the model is required to express the same emotion using three different intensities. For example, the emotion of happiness can be divided into three states: neutral, normal, and strong. These values are multiplied as parameters in the latent space of the emotion encoding model during training, such as neutral: 0.33, normal: 0.66, and strong: 1. The trained model can then input the spoken text, the response emotion, and the emotion intensity into the emotion mapping speech-driven model to obtain a sequence of emotional speech key points.
[0548] Step S2505: Replace the corresponding emotional speech key point sequence with the original key point sequence to generate a face key point sequence. The original key point sequence includes multiple original key point data.
[0549] The original keypoint sequence is a sequence composed of multiple original keypoint data points. The original keypoint sequence has the same number of keypoint data groups as the emotional speech keypoint sequence. The number of emotional speech keypoints is less than or equal to the number of original keypoints.
[0550] Replacing the emotional speech key point sequence with the original key point sequence means replacing the emotional speech key point data at the same position in the sequence with the original key point data. During the replacement, the key point data representing the same key point in the original key point data is replaced with the emotional speech key point data.
[0551] For example, both the emotional speech keypoint sequence and the original keypoint sequence have 10 sets of keypoint data. The first set in the emotional speech keypoint sequence includes 20 keypoint data (such as eye coordinates, mouth coordinates, etc.), while the first set in the original keypoint sequence includes 153 keypoint data (such as eye coordinates, nose coordinates, etc.). Only the 20 keypoint data from the first set in the emotional speech keypoint sequence are replaced in the first set of data in the original keypoint sequence. The replacement rule is that data with the same eye location is replaced, while the remaining 133 keypoint data remain unchanged.
[0552] While a certain blinking sequence can be obtained through geometric design, since the artificially designed blinking sequence is based on the linear change of key point positions, it is difficult to obtain a blinking segment that is consistent with the real state, resulting in unnatural blinking.
[0553] To address the above technical issues, in this embodiment of the application, before replacing the corresponding emotional speech key point sequence with the original key point sequence to generate the facial key point sequence, the server performs the following:
[0554] Determine the blink key point sequence, where the blink key point sequence is a sequence of key points related to blinking;
[0555] The steps to determine the sequence of key blink points include:
[0556] Copy the original keypoint data into multiple copies;
[0557] Multiple raw keypoint data are input into the keypoint blinking model to obtain a blinking keypoint sequence. The keypoint blinking model is trained based on a speech synthesis model and with the upper and lower eyelid height as a condition.
[0558] The data processing and training process of the key blink model is as follows:
[0559] A keypoint blinking model is built using deep learning. The model input is... Figure 27 Input a sequence of non-blinking key points, and output the following: Figure 27 The label row contains a sequence of blinking states. The training data is characterized by the data collector keeping their head absolutely still, and each video frame containing only one natural blink.
[0560] Collect 100 videos of different people blinking, with a male-to-female ratio of 1:1. Extract keypoint sequences from the videos, then normalize the keypoint sequences to obtain labels. If the keypoint sequence contains N frames, copy the keypoints of the first frame of this sequence N times as input.
[0561] To improve model robustness, the data needs to be augmented to a certain extent. The approach is to use the StyleGAN stylistic adversarial generative network to obtain cartoon-style clips with different eye sizes from the existing video data, and then add these clips to the training data.
[0562] The key-point blinking model needs to take non-blinking segments as input and output blinking segments, while also making appropriate predictions for relevant areas such as eyebrows and cheeks. Temporal models such as RNNs (Recurrent Neural Networks) and LSTMs (Long Short-Term Memory Networks) can be selected. The Fastspeech Encoder speech synthesis model is used, and the height of the upper and lower eyelids is added as a generation condition as needed. The specific training process is as follows:
[0563] 1) Construct the input keypoint sequence Fls i Fls of keypoint sequences [N,153,3] and Label[N,153,3] l Calculate and obtain Fls l The corresponding upper and lower eyelid height feature sequences H[N,1]
[0564] 2) Set the batch size to b, and obtain the model input data Inp[b, M, 153*3], H[b, M, 1] and GroundTruth Gt[b, M, 153*3], where M is the maximum value among b N values, and other positions less than N are padded with zeros. H[b, M, 1] is the upper and lower eyelid height sequence obtained corresponding to inp.
[0565] 3) H[b,M,1] is transformed into H through two MLP dimensions. hidden [b,M,153*3]. H hidden [b,M,153*3] represents the latent space features, which are expanded to H[b,M,1] dimension using an MLP model. hidden [b,M,153*3].
[0566] 4)H hidden The input is concatenated with Inp[b, M, 153*3] and fed into the Fastspeech encoder layer to obtain the output Out[b, M, 153*3].
[0567] 5) Calculate the MSE loss using Out[b, M, 153*3] and Gt[b, M, 153*3], and adjust the model parameters through backpropagation until the training process converges.
[0568] Get the preset blink position;
[0569] In some embodiments, the blink position can be set randomly, but the interval between two blink positions must be greater than the length of the blink keypoint sequence, i.e., the two blink keypoint sequences cannot overlap. It must also be ensured that the blink keypoint sequence is complete.
[0570] In some embodiments, the blink position can be fixed, for example, a blink position can be set at preset intervals.
[0571] At least one target region is determined in the original keypoint sequence based on the preset blink position, wherein the target region is used to replace the blink keypoint sequence;
[0572] In some embodiments, after determining the preset blink position, the target length is the target region, and the target length is the length of the blink key point sequence.
[0573] In some embodiments, the target length before the preset blink position is determined as the target region, and the target length is the length of the blink key point sequence.
[0574] In some embodiments, the target region is determined to be the length before and after the preset blink position, and the target length is the length of the blink key point sequence / 2.
[0575] Replace the blink keypoint sequence with the target area of the original keypoint sequence to obtain the blink keypoint sequence.
[0576] Replacing the blinking key point sequence with the original key point sequence means replacing the emotional speech key point data at the same position in the sequence with the original key point data.
[0577] After obtaining the key point sequence after blinking, the broadcast text and the emotional input of the reply are mapped to the emotional speech-driven model to obtain the emotional speech key point sequence. The emotional speech key point sequence is then replaced with the corresponding key point sequence after blinking to generate the facial key point sequence.
[0578] Facial key points are mostly 2D data, and it is difficult to obtain natural and smooth head movements based on 2D data, resulting in stiff head movements.
[0579] To address the above issues, this application embodiment, after inputting the broadcast text and response emotions into an emotion-mapped speech-driven model to obtain an emotion-voice key point sequence, executes the following on server 400:
[0580] The emotional speech key point sequence is replaced with the original key point sequence or the key point sequence after blinking to generate the emotionally processed key point sequence.
[0581] Obtain the head motion affine matrix fitting sequence;
[0582] The steps for obtaining the head motion affine matrix fitting sequence include:
[0583] After extracting and normalizing the key point data from the preset video, a head motion reference key point sequence is obtained;
[0584] Standard key point data were selected from the head movement reference key point sequence, where the standard key point data were key point data of frontal face, expressionless face, and no blinking face;
[0585] A data fitting algorithm is used to obtain the head motion affine matrix fitting sequence from the standard keypoint data to the head motion reference keypoint sequence;
[0586] Store the head motion affine matrix fitting sequence to a preset address;
[0587] Obtain the head motion affine matrix fitting sequence from the preset address.
[0588] A facial landmark sequence is generated based on the head motion affine matrix fitting sequence and the key point sequence after emotion processing.
[0589] The head motion sequence embedding method is as follows:
[0590] Coordinate system definition: The coordinate system of the key points of the face is designed with the tip of the nose as the origin, the straight line passing through the origin and perpendicular to the face plane as the X-axis, the Y-axis passing through the origin and parallel to the straight line where the corners of the eyes are located, and the Z-axis passing through the origin and orthogonal to the X and Y axes, so as to achieve natural and smooth head movements in the dimension of key points.
[0591] Affine matrix: The affine matrix is defined as the transformation matrix from the standard state keypoint Fls to the transformed keypoint Fls'. The transformation includes four aspects: rotation along the X-axis, rotation along the Y-axis, rotation along the Z-axis, and translation. These four combinations of transformations can usually be represented by the affine matrix D[3,4].
[0592] Matrix fitting and applications: Matrix fitting and practical applications can be divided into the following steps:
[0593] 1) Select a suitable head-movement video clip, which can be a host's broadcast or an interactive segment between the host and the anchor.
[0594] 2) Extract the coordinates of key points in the video clips and perform normalization operations to obtain the head motion reference key point sequence Fls. ref [N,153*3].
[0595] 3) In Fls ref Select a frame of standard key points Fls from [N, 153*3] stand [1,153*3], generally refers to redundant key information such as a frontal face with no expression and blinking.
[0596] 4) Use the data fitting algorithm in Scikit-learn to obtain the data from FLS. stand [1,153*3] to Fls ref The affine matrix sequence D of [N, 153*3] ref [N,3,4].
[0597] 5) D ref The [N,3,4] cross product is applied to the emotionally processed keypoint sequence, giving the digital human the exact same head movements as the selected video.
[0598] In some embodiments, the sequence embedding order is set to blink-emotion-head movement. Since the blink keypoint sequence involves fewer keypoints and has a smaller range of variation, it is embedded first. Head movement involves more keypoints and has a larger range of variation, so it is adjusted last to ensure that the obtained image is more accurate.
[0599] Step S2506: Generate digital human image data based on user image data and facial key point sequences;
[0600] In some embodiments, the digital human image data is a sequence of digital human image frames. The step of generating digital human image data based on user image data and facial landmark sequences includes:
[0601] User image data and facial landmark sequences are input into the image generation model to obtain digital human image data.
[0602] Image generation models such as Figure 28 As shown, the model comprises four parts: an encoding structure, a decoding structure, a generator, and a discriminator. During training, keypoint sequences are obtained using a face keypoint detection algorithm. The training data includes hundreds of thousands of selected images from Celeb2 and FFHQ. The loss includes discriminator loss, generator loss, etc. The gradient function is Adam, and the learning rate is set to 10⁻³-10⁻⁵. The cosine function is used to adjust the learning rate according to the epoch. Initial usable performance was achieved in approximately 20 hours on an Nvidia-A100 graphics card.
[0603] User image data and facial landmark sequences are input into the image generation model to obtain digital human image sequence frames.
[0604] In some embodiments, digital human image data includes user image data and facial landmark sequences.
[0605] Step S2507: Generate broadcast speech based on the broadcast text;
[0606] Step S2508: Send the broadcast voice and digital human image data to the display device 200 so that the display device 200 plays the broadcast voice and displays the digital human image based on the digital human image data.
[0607] In some embodiments, the digital human image data includes a sequence of digital human image frames. The display device 200 plays the digital human image frames and broadcasts voice.
[0608] In some embodiments, the digital human image data includes user image data and a sequence of facial key points. The display device 200 inputs the user image data and the sequence of facial key points into an image generation model to obtain a sequence of digital human image frames, plays the digital human image frames, and broadcasts voice.
[0609] This application's embodiments, through in-depth analysis of the expressive power of facial key points, progressively increase the information content contained in the key point sequence, ultimately achieving control over facial expressions, head movements, blinking, and other detailed information through key points. Based on the Transformer model and parallel corpus training, it achieves the conversion from neutral facial expression key points to different expression styles such as joy, anger, and sorrow, with controllable intensity. Based on 3D key points and an affine matrix nonlinear fitting algorithm, it achieves natural and smooth head movements such as turning the head, shaking the head, and twisting the head. Based on a time series generation scheme, it inputs a segment of eye-opening key points for training and outputs a blinking key point sequence segment of corresponding length, achieving natural and coherent blinking movements.
[0610] This application embodiment further improves some functions of server 400. Server 400 performs the following steps, such as... Figure 29 As shown.
[0611] Step S2901: Receive voice data input by the user from the display device 200;
[0612] Step S2902: Determine the broadcast voice based on the voice data;
[0613] Step S2903: Extract the speech features of the broadcast speech;
[0614] Server 400 includes a speech feature extraction module. This module extracts speech features from the broadcast speech based on an Encoder-Decoder structure. Encoder-Decoder speech feature extraction modules include Wenet and wav2vec2.0. Taking wav2vec2.0 as an example, it serves as the base network to extract speech feature data. The wav2vec 2.0 model proposes an end-to-end self-supervised pre-training architecture for speech recognition tasks; simply adding a linear layer for fine-tuning achieves state-of-the-art results on various speech recognition tasks. The pre-trained wav2vec2.0 model's encoder is used to extract speech features. Since the wav2vec2.0 model already has high accuracy on ASR, the speech features output by the encoder have good semantic meaning.
[0615] wav2vec2.0 model, such as Figure 30As shown, the broadcast speech passes through CNN Blocks (convolutional neural network blocks), LayerNorm (normalization layer), Dropout_feature, Post_conv (post-convolution), LayerNorm (normalization layer), and Transformer to obtain Final feature vectors, i.e., speech features. CNN Blocks include GELU (Gaussian Error Linear Unit), GroupNorm (group normalization), and Conv1d (one-dimensional convolution). Post_conv includes GELU, GroupNorm, and Conv1d.
[0616] Step S2904: Determine lip shape parameters based on speech features;
[0617] In some embodiments, a deep learning-based speech-driven model is used to map speech features to lip-shape parameters. The speech-driven model includes an encoder and a decoder. Speech features are input into the encoder to obtain high-level semantic features, and these high-level semantic features are input into the decoder, which generates lip-shape parameters corresponding to the speech features.
[0618] Lip shape parameters include FLAME model lip shape parameters.
[0619] The FLAME model is a general-purpose 3D face model. Its input is a parameter vector containing shape, pose, and expression parameters, and its output is a 3D face mesh. The expression parameters in the FLAME model can represent changes in facial expressions, such as smiling, frowning, and opening the mouth. Therefore, the advantages of the FLAME model in emotional expression can be used to complete voice-driven 3D facial animation.
[0620] FLAME borrows the representation method of the SMPL (Skinned Multi-Person Linear) body model, based on LBS (linear blend skinning) and combined with blendshapes as its representation. It contains 5023 vertices and 4 joints. Specifically, FLAME divides the human head into four parts: left eyeball, right eyeball, chin, and neck. These four parts can be rotated around custom "joints" to form new 3D representations. The parameters of the FLAME model are of three types: shape, pose, and expression, which can be represented as β∈R. |β| , θ∈R |θ| , The FLAME model can be understood as a mapping that takes the above three parameters as input and outputs a 3D model. Where N represents the number of vertices (5023). Because the FLAME model explicitly models neck rotation and eye rotation through LBS, and can represent a wide range of facial expressions, the FLAME model has a significant advantage in completing face reconstruction tasks.
[0621] FLAME parameter learning uses a decoder to decode the input speech features or emotional expression features into corresponding FLAME parameters.
[0622] In some embodiments, the decoder for FLAME lip-sync parameter learning consists of two parts: biased causal multi-head self-attention with periodic positional encoding (PPE) for generalizing longer input sequences; and biased cross-modal multi-head attention for aligning audio motion modalities. During training, the encoder transforms the raw audio X into a sequence of corresponding visual frames A. Τ The decoder uses A Τ Compared to past facial parameters Given the condition, predict the facial motion sequence of the current frame. The specific expression is as follows:
[0623]
[0624] Where f1 is the decoder mentioned above, A Τ Represents the audio characteristics at time T. This represents the facial parameters learned at time T-1.
[0625] Step S2905: Determine the emotion parameters and acquire user image data;
[0626] In some embodiments, the step of determining the emotion parameter includes
[0627] Determine the emotional tone of the response based on voice data;
[0628] The steps for determining the emotional response have been described in detail above, and will not be repeated here.
[0629] Determine the emotional parameters based on the sentiment of the responses.
[0630] By transmitting text or speech, and receiving emotional input from responses, the emotional parameter learning module can obtain emotional parameters. These emotional parameters are those of the FLAME model.
[0631] In some embodiments, the step of determining the emotion parameter includes
[0632] Determine prior emotional knowledge;
[0633] During the training phase, in order for the model to be able to encode and decode the emotional changes in the input speech, frame-level emotional information can be obtained using an emotion recognition model as prior emotional knowledge to facilitate model training.
[0634] In some embodiments, the step of determining prior emotional knowledge includes:
[0635] Acquire user facial data collected by the display device;
[0636] While the user inputs voice data, the display device 200 can activate the camera to collect the user's facial data, and then send the user's facial data to the server 400.
[0637] User facial data is input into a distributed attention network model to obtain prior emotional knowledge. The distributed attention network model includes a feature clustering network, a multi-head attention network, and an attention fusion network.
[0638] A method for extracting prior emotion knowledge from 2D images: Compared to audio signal data, 2D image data is easier to decode into reliable emotional information, and the model is also easier to learn. This method uses an existing DAN (Dispersed Attention Network) network model and a pre-trained model to extract prior emotion knowledge from images. As shown in Figure 31, the DAN network model includes a Feature Clustering Network (FCN), a Multi-head Cross-Attention Network (MAN), and an Attention Fusion Network. First, the Feature Clustering Network extracts and clusters the emotion knowledge, applying affinity loss to increase the difference between classes and reduce the variance within classes. Second, a Multi-head Attention Network is established, simultaneously focusing on multiple facial regions through a series of Spatial Attention (SA) and Channel Attention (CA) units. Finally, the Attention Fusion Network modulates the attention map feature vector and output class confidence by strengthening the differences between attention levels. Since the final output of this network model is the confidence score of the emotion category, which cannot represent the prior knowledge of emotion, it is necessary to take the network output before the softmax layer in the attention fusion network as the prior knowledge of emotion.
[0639] In some embodiments, the step of determining prior emotional knowledge includes:
[0640] Extract the Mel spectrum of the broadcast speech;
[0641] The mel spectrum is processed through a convolutional neural network and a feature aggregation unit to obtain semantic features;
[0642] The semantic features are processed through a bidirectional gated recursive unit and a global-local attention module to obtain the characteristic features;
[0643] Obtain common features from speech features;
[0644] Common features and specific features are fused through an interactive attention module to obtain fused features;
[0645] Common features, specific features, and fused features are input into the classifier to obtain prior sentiment knowledge.
[0646] Prior sentiment knowledge extraction methods based on speech Mel spectrum: such as Figure 32 As shown, the preprocessed log-Mel spectrum of the broadcast speech audio signal is used as input features. This is then processed by a convolutional neural network and a feature aggregation unit to extract emotion-related semantic features. Subsequently, emotion-related characteristic features Y are obtained through a Bi-GRU (Bidirectional Gated Recurrent Unit) and a global-local attention module. The Wav2Vec2.0 pre-trained model learns a common representation X from the broadcast speech through self-supervised learning and transfers it to the speech emotion recognition task through fine-tuning. Then, in the joint network, the common and characteristic features obtained from the pre-trained model and the spectrum-based model are fused through different interactive attention modules to better utilize the emotional information in the speech. Finally, the obtained common features, characteristic features, and fused features are all passed through a classifier to generate speech emotion recognition predictions. Since the predicted content is also the confidence level of the emotion category, the input before the classifier is used as prior knowledge of the emotion.
[0647] Prior emotional knowledge and speech features are input into the emotion predictor to obtain emotional expression features;
[0648] After acquiring prior knowledge of sentiment, it is used as ground truth (fact base) to predict and extract sentiment representations from speech features through a Bi-LSTM (Bidirectional Long Short-Term Memory) network. The loss function during the training process of this network is designed to maximize the mutual information between the predicted sentiment representation and the prior sentiment knowledge.
[0649] Emotional parameters are determined based on the characteristics of emotional expression.
[0650] The emotional expression features are input into the emotional parameter learning module to obtain the emotional parameters.
[0651] Among them, FLAME sentiment parameter learning: in the sentiment feature vector M output by the sentiment predictor TFor a 7-dimensional (for example, the emotion categories include neutral, angry, disgusted, afraid, happy, sad, and surprised) emotion vector, it needs to be projected into the embedding space through a learnable 2D matrix W before being input into a CNN network f2 to decode and generate the corresponding emotion Flame parameters. The specific representation is as follows:
[0652]
[0653] This application proposes two different methods for extracting prior emotional knowledge from speech. By combining Mel spectrum data of the speech or 2D video data of the speaker with a pre-trained emotion recognition model, prior emotional knowledge is extracted as the ground truth for the emotion predictor, guiding the entire training process of the speech emotion predictor. This prior emotional knowledge enables the output of the emotion predictor to have more accurate emotional semantic features, thereby improving the accuracy of the FLAME emotion parameters output by the emotion enhancement network.
[0654] In some embodiments, the step of determining the emotion parameter includes:
[0655] Determine prior emotional knowledge;
[0656] The prior emotional knowledge and the speech features are input into the emotional predictor to obtain emotional expression features;
[0657] To obtain emotional intensity;
[0658] In some embodiments, the emotional intensity can be set by the user and saved to a preset address, and the emotional intensity can be retrieved from the preset address.
[0659] In some embodiments, the intensity of emotion is determined based on voice data. The steps for determining the intensity of emotion have been described in detail above and will not be repeated here.
[0660] Determine the emotional intensity expression characteristics based on emotional expression features and emotional intensity;
[0661] The step of determining the emotional intensity expression features based on emotional expression characteristics and emotional intensity includes:
[0662] Calculate the distance between the emotion expression features and multiple emotion cluster centers, where the emotion cluster centers are obtained by clustering the prior emotion knowledge vectors of different emotions and samples;
[0663] Determine the minimum distance in the distance analysis and the sentiment cluster center corresponding to the minimum distance;
[0664] The emotional intensity expression features are determined based on the emotional expression characteristics, emotional intensity, minimum distance, and the emotional cluster center corresponding to the minimum distance.
[0665] The server includes an added emotion level control module. Users can input a personalized emotion control level ε. Upon receiving a personalized emotion level ε and a broadcast voice test, the server extracts the emotion expression features A from the voice feature extraction and emotion predictor outputs. test Then, the personalized emotional intensity expression characteristics are obtained through the following steps:
[0666] Clustering is performed on all emotions and the prior sentiment knowledge vectors of all samples during the training phase to obtain the cluster center {C} for each emotion. i Let i = 0, ..., 6, where i represents the index of the emotion type, 0 represents a neutral emotion, and the others are, in order, anger, disgust, fear, happiness, sadness, and surprise. i For each corresponding emotion cluster center, calculate C. i The distance D between i = 1, ..., 6 and the neutral sentiment cluster center i , i = 1, ..., 6.
[0667] The sentiment expression features A output by the sentiment predictor test Calculate its relationship with each cluster center C i The distance d between i = 1, ..., 6 i And determine the d with the smallest distance. i and the corresponding C i As the emotion center most similar to this speech signal.
[0668] The intensity of emotional expression characteristics controlled by the degree of personalization are calculated using the following formula:
[0669] A_(test,final)=A_test+(ε-(1-d_i / D_i))C_i.
[0670]
[0671] Emotional parameters are determined based on the characteristics of emotional intensity expression.
[0672] The emotional intensity expression features are input into the emotional parameter learning module to obtain emotional parameters.
[0673] In order to make the generated facial emotions more personalized, this application embodiment adds an emotion level control module in the prediction stage. Based on the emotional characteristics predicted by the emotion predictor and the cluster centers of each emotion label, a personalized emotional level voice emotion expression is obtained according to the different emotional expression needs of users. Then it is input into the emotion parameter learning module, so that the final generated facial emotion animation is more natural, vivid and personalized.
[0674] Step S2906: Generate digital human image data based on user image data, emotion parameters, and lip-sync parameters;
[0675] In some embodiments, the digital human image data includes a sequence of digital human image frames. The step of generating digital human image data based on user image data, emotion parameters, and lip-sync parameters includes:
[0676] The emotional parameters and the lip-shape parameters are fused to obtain the fused parameters;
[0677] After the decoder obtains the lip-sync parameters and emotion parameters, since the two are largely independent, they can be fused using a summation method as follows:
[0678]
[0679] Digital human image data, i.e., digital human image frame sequence, is generated based on user image data and fusion parameters.
[0680] The FLAME parameters received at time T Then, the trained FLAME model can be used to... Converted into corresponding 3D facial vertices
[0681]
[0682] To improve the accuracy of driving lip movements and facial expressions, the loss function throughout the training process is expressed as follows:
[0683]
[0684] Among them lip mask and face mask Y represents the vertex mask for the mouth region and the face region respectively (the mask is 1 if the vertex belongs to the face region, otherwise 0). t Let represent the truth vector (5023*3 dimensions) of all facial vertices at time t. The vector represents the predicted values of all facial vertices at time t (5023*3 dimensions). α and β represent the loss weights (between 0 and 1) of the vertices in the face and mouth regions, which can be set according to the actual driving effect.
[0685] In some embodiments, digital human image data includes user image data and fusion parameters.
[0686] This application's embodiments predict the speaker's emotional characteristics from audio data, and then decode them into FLAME expression parameters through an emotion parameter learning module. The FLAME expression parameters and the learned speech lip-sync FLAME parameters are then combined and input into a differentiable rendering module to generate a 3D facial animation. This method maintains high-precision speech-lip synchronization while also providing good facial expression representation, thus enabling the customization and control of emotions during inference.
[0687] Step S2907: Send the broadcast voice and the digital human image data to the display device 200, so that the display device 200 plays the broadcast voice and displays the digital human image based on the digital human image data.
[0688] In some embodiments, the digital human image data includes a sequence of digital human image frames. The display device 200 plays the digital human image frames and broadcasts voice.
[0689] In some embodiments, the digital human image data includes user image data and fusion parameters. The display device 200 generates a sequence of digital human image frames based on the user image data and fusion parameters, plays the digital human image frames, and broadcasts voice.
[0690] Technical architecture diagram as follows Figure 33 As shown. After extracting the Mel spectrum from the input speech, it is input into a pre-trained emotion recognition model, or image data is input into the pre-trained emotion recognition model to obtain prior emotion knowledge. After extracting the speech features from the input speech, the speech features are input into the emotion predictor and the lip-sync parameter learning model within the parameter learning model, respectively. The emotion predictor determines emotion expression features based on the speech features and prior emotion knowledge. On one hand, the emotion expression features can be directly input into the emotion parameter learning model within the parameter learning model; on the other hand, the emotion expression features can be input into the emotion intensity control module. The emotion intensity control module, after acquiring the emotion control level and emotion expression features, outputs emotion intensity expression features to the emotion parameter learning model. The emotion parameter learning model determines emotion parameters based on the emotion expression features or emotion intensity expression features. The lip-sync parameter learning model determines lip-sync parameters based on the speech features. The parameter learning model fuses the emotion parameters and lip-sync parameters to obtain fused parameters. The parameter-driven module generates a 3D emotion animation sequence based on the fused parameters.
[0691] In some embodiments, after receiving voice data input by the user from the display device, the voice features of the voice data are extracted, lip-shape parameters and emotion parameters are determined based on the voice features, and user image data is acquired; digital human image data is generated based on the user image data, emotion parameters, and lip-shape parameters, which can achieve the effect of digital human learning the user's speech.
[0692] This application embodiment uses speech Mel-spectrum data or speaker videos and a pre-trained emotion recognition model to obtain prior emotion knowledge. Then, guided by this prior emotion knowledge, an audio emotion predictor is trained to obtain the emotional expression features of the speech. These emotional expression features are input into a neural network to decode into FLAME emotion parameters, which are then combined with learned lip-sync FLAME parameters and used to generate a 3D face animation through differentiable rendering. This application embodiment also adds an emotion level control module, which can generate personalized emotion feature expressions based on the predicted speech emotion features and the prior knowledge clustering centers of each emotion label, making the generated digital human image more vivid and personalized.
[0693] Some embodiments of this application provide a digital human interaction method. The method is applicable to a server 400, which is configured to: after receiving voice data input by a user from a display device, acquire user image data and determine a text to be played based on the voice data; map the user image data to a three-dimensional space to obtain an image coefficient; determine an emotion coefficient sequence; generate digital human image data based on the text to be played, the image coefficient, and the emotion coefficient sequence; generate a voice message based on the text to be played; and send the voice message and the digital human image data to the display device, so that the display device displays a digital human image based on the digital human image data and plays the voice message. By mapping the acquired user image data to a three-dimensional space, this application allows for controllable adjustment of facial expressions in three-dimensional space based on highly human-like emotion editing, making the digital human's expressions more lifelike.
[0694] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
[0695] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the described embodiments and various different variations of embodiments suitable for specific use considerations.
Claims
1. A server, characterized in that, Configured as: After receiving voice data input by the user from the display device, the system acquires the user's image data and determines the text to be read based on the voice data. The user image data is mapped to a three-dimensional space to obtain image coefficients. The user image data is a single-frame face image. The single-frame face image is mapped to a three-dimensional BS dimension to obtain three-dimensional BS coefficients. The three-dimensional BS coefficients include image coefficients, expression coefficients, mouth movement coefficients, and head movement coefficients, wherein the image coefficients are the coefficients that control the shape of the human face in the three-dimensional BS coefficients; Determine the emotional change sequence corresponding to the broadcast text; determine the duration of the broadcast speech based on the text length of the broadcast text; determine the emotional coefficient sequence based on the emotional change sequence and the duration; The determination of the emotional change sequence corresponding to the broadcast text is further configured as follows: inputting the voice data into a voice emotion classification model to obtain an emotion feature vector; inputting the emotion feature vector into a mapping model to obtain an emotion change sequence; The emotional coefficient sequence, determined based on the emotional change sequence and the duration, is further configured as follows: If the duration is less than or equal to the target value, then a target number of emotion coefficients are removed from the emotion change sequence to obtain the emotion coefficient sequence. The target value is the total duration of the emotion change sequence, and the target number is determined by the duration, the target value, and the frame rate. If the duration exceeds the target value, then a target number of emotion coefficients are inserted into the emotion change sequence to obtain the emotion coefficient sequence; Digital human image data is generated based on the broadcast text, the image coefficient, and the emotion coefficient sequence. Specifically, the broadcast text is input into a speech-driven model to obtain a mouth movement coefficient sequence; the user image data is input into an encoder to obtain encoded features; and the image coefficient, the emotion coefficient sequence, the mouth movement coefficient sequence, and the encoded features are input into an image generation network to obtain a driving image frame sequence, which serves as the digital human image data. Generate broadcast audio based on the broadcast text; The broadcast voice and the digital human image data are sent to the display device, so that the display device plays the broadcast voice and displays the digital human image based on the digital human image data.
2. The server according to claim 1, characterized in that, The server, which generates digital human image data based on the broadcast text, the image coefficient, and the emotion coefficient sequence, is further configured to: Determine the sequence of head movement coefficients; Digital human image data is generated based on the broadcast text, the image coefficient, the emotion coefficient sequence, and the head movement coefficient sequence.
3. The server according to claim 2, characterized in that, The server executes the determination of the head action coefficient sequence, and is further configured as follows: Determine the head movement change sequence corresponding to the broadcast text; The duration of the broadcast speech is determined based on the length of the broadcast text. The head movement coefficient sequence is determined based on the head movement change sequence and the duration.
4. The server according to claim 3, characterized in that, The server executes the determination of the head movement coefficient sequence based on the head movement change sequence and the duration, and is further configured to: If the duration is less than or equal to the target value, then a target number of head motion coefficients are removed from the head motion change sequence to obtain the head motion coefficient sequence. The target value is the total duration of the head motion change sequence. The target number is determined by the duration, the target value, and the frame rate. If the duration is greater than the target value, then a target number of head movement coefficients are inserted into the head movement change sequence to obtain the head movement coefficient sequence.
5. A display device, characterized in that, include: The monitor is configured to display the user interface; A communicator configured to communicate data with a server as described in any one of claims 1-4; The controller is configured as follows: Receive voice data input by the user; The voice data is sent to the server via the communicator; Receive digital human image data and broadcast voice from the server based on the voice data; Play the broadcast voice and display the digital human image based on the digital human image data.
6. A digital human interaction method, characterized in that, include: After receiving voice data input by the user from the display device, the system acquires the user's image data and determines the text to be read based on the voice data. The user image data is mapped to a three-dimensional space to obtain image coefficients. The user image data is a single-frame face image. The single-frame face image is mapped to a three-dimensional BS dimension to obtain three-dimensional BS coefficients. The three-dimensional BS coefficients include image coefficients, expression coefficients, mouth movement coefficients, and head movement coefficients, wherein the image coefficients are the coefficients that control the shape of the human face in the three-dimensional BS coefficients; Determine the emotional change sequence corresponding to the broadcast text; determine the duration of the broadcast speech based on the text length of the broadcast text; determine the emotional coefficient sequence based on the emotional change sequence and the duration; The determination of the emotional change sequence corresponding to the broadcast text is further configured as follows: inputting the voice data into a voice emotion classification model to obtain an emotion feature vector; inputting the emotion feature vector into a mapping model to obtain an emotion change sequence; The emotional coefficient sequence, determined based on the emotional change sequence and the duration, is further configured as follows: If the duration is less than or equal to the target value, then a target number of emotion coefficients are removed from the emotion change sequence to obtain the emotion coefficient sequence. The target value is the total duration of the emotion change sequence, and the target number is determined by the duration, the target value, and the frame rate. If the duration exceeds the target value, then a target number of emotion coefficients are inserted into the emotion change sequence to obtain the emotion coefficient sequence; Digital human image data is generated based on the broadcast text, the image coefficient, and the emotion coefficient sequence. Specifically, the broadcast text is input into a speech-driven model to obtain a mouth movement coefficient sequence; the user image data is input into an encoder to obtain encoded features; and the image coefficient, the emotion coefficient sequence, the mouth movement coefficient sequence, and the encoded features are input into an image generation network to obtain a driving image frame sequence, which serves as the digital human image data. Generate broadcast audio based on the broadcast text; The broadcast voice and the digital human image data are sent to the display device, so that the display device displays the digital human image based on the digital human image data and plays the broadcast voice.
Citation Information
Patent Citations
Video processing method, device and system, terminal equipment and storage medium
CN110688911A
Server, display device and virtual digital human interaction method
CN116185191A
Motion synthesis method and device, terminal and storage medium
CN116704083A
