Voice call method, terminal and storage medium

By acquiring the portrait image and driving the virtual video when the terminal detects the voice call operation, it solves the problem of the single voice call method in the existing system, realizes virtual video output, and improves user experience and interactivity.

CN117478818BActive Publication Date: 2024-08-23HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311799935.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2024-08-23
Estimated Expiration
2043-12-26

AI Technical Summary

Technical Problem

The existing voice call method is single and lacks visual interaction, making it difficult to meet user needs.

Method used

By acquiring the portrait image when the terminal detects a voice call operation, and driving the virtual video based on the voice data sent by the remote call device, the body posture of the portrait is updated in real time to form a real-time continuous virtual video output.

Benefits of technology

It improves the flexibility and user experience of voice calls, enables users to intuitively feel the expressions of remote users, and enhances the interactivity of voice calls.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117478818B
    Figure CN117478818B
Patent Text Reader

Abstract

The present application discloses a voice call method, terminal and storage medium, and belongs to the field of terminal technology. The method includes: if the terminal detects a voice call operation, then when the virtual video function is turned on, a portrait image is obtained, and voice data sent by a remote call device is obtained; the portrait image is driven according to the obtained voice data to obtain a virtual video; and the virtual video is displayed during the voice call. The portrait in the virtual video in the present application can simulate the posture of the remote user when making the corresponding voice. In this way, during the voice call, the user can intuitively feel the expression of the remote user by watching the virtual video, thereby improving the flexibility of the voice call and improving the user's voice call experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a voice call method, a terminal and a storage medium. Background Art

[0002] With the continuous development of terminal technology, terminals such as mobile phones and tablet computers have become an indispensable part of people's daily lives. People can use these terminals to conveniently talk with relatives and friends far away.

[0003] Currently, users can use terminals to make voice calls with other people, such as through the network or operator services. However, the current voice call process only has pure voice output, and the call mode is single. Summary of the invention

[0004] The present application provides a voice call method, a terminal and a storage medium, which can improve the flexibility of voice calls and enhance the user's voice call experience.

[0005] In a first aspect, a voice call method is provided. In the method, if a terminal detects a voice call operation, a portrait image is obtained and voice data sent by a remote call device is obtained when a virtual video function is turned on. The portrait image is driven according to the obtained voice data to obtain a virtual video. The virtual video is displayed during the voice call.

[0006] The voice call operation is an operation for connecting a voice call between the terminal and a remote call device. After the terminal detects the voice call operation, the terminal and the remote call device start a voice call, such as a voice call through an operator service or a network.

[0007] It should be noted that the operation of the terminal obtaining the portrait image can be performed when it is determined that the virtual video function is in the on state when the voice call operation is detected, or it can be performed when it is detected that the virtual video function is switched from the off state to the on state during the voice call.

[0008] The operation of the terminal obtaining the voice data sent by the remote call device can be performed continuously when the virtual video function is turned on, that is, when the virtual video function is turned on, the terminal can continuously obtain the voice data sent by the remote call device during the voice call.

[0009] In the present application, the portrait image can be continuously driven by the voice of the remote user during a voice call to form a real-time continuous virtual video output. The posture of the portrait in the virtual video satisfies the voice input, that is, the portrait in the virtual video can simulate the posture that the remote user will have when making the voice. In this way, during the voice call, the user can intuitively feel the expression of the remote user by watching the virtual video, thereby improving the flexibility of the voice call and improving the user's voice call experience.

[0010] Optionally, the virtual video function in the present application can be turned on and off by a virtual video switch. Specifically, if the terminal detects that the virtual video switch is turned on, the virtual video function is switched from the off state to the on state; if the terminal detects that the virtual video switch is turned off, the virtual video function is switched from the on state to the off state.

[0011] For example, the virtual video switch can be directly set on the voice call interface, or the virtual video switch can also be displayed in a floating manner on the upper layer of the voice call interface. In this way, the user can conveniently turn on or off the virtual video switch when making a voice call.

[0012] And / or, the virtual video switch can be set in the notification bar. In this case, the user can pull down in the terminal to open the notification bar, and then choose to turn on or off the virtual video switch in the notification bar according to needs.

[0013] And / or, the virtual video switch can be set in the setting item. In this case, the user can open the setting item in the terminal, and then choose to turn on or off the virtual video switch in the setting item according to the needs.

[0014] Optionally, the operation of the terminal acquiring the portrait image may be: acquiring identity information of a remote user; and acquiring a portrait image corresponding to the identity information of the remote user.

[0015] The remote user identity information is used to indicate the identity of the remote user communicating with the terminal. For example, the remote user identity information may be the name of the remote user, or may be the occupation information of the remote user.

[0016] As an example, the operation of the terminal obtaining the remote user identity information may be: if the call number is a stored contact number, then obtaining the contact name corresponding to the contact number, and the contact name is the remote user identity information. Correspondingly, the operation of the terminal obtaining the portrait image corresponding to the remote user identity information may be: searching for the portrait image marked with the contact name from the gallery.

[0017] It should be noted that the user can mark the images in the gallery, such as the user can mark the name, nickname, etc. of the portrait contained in the image. Then, after obtaining the contact name, the terminal can search for images marked with the contact name in the gallery. If only one image is found, this image can be used as the portrait image used in this virtual video; if multiple images are found, the image with the most recent storage time among the multiple images can be used as the portrait image used in this virtual video, or the image in the collection state among the multiple images can be used as the portrait image used in this virtual video, or an image can be randomly selected from the multiple images as the portrait image used in this virtual video.

[0018] As another example, the operation of the terminal obtaining the remote user identity information may be: if the call account has a note name, the note name is determined as the remote user identity information. Correspondingly, the operation of the terminal obtaining the portrait image corresponding to the remote user identity information may be: searching for the portrait image marked with the note name from the gallery.

[0019] If the call account has a note name, then the note name is likely to be a name or nickname that the user has specially noted for the remote user. In this case, the user is likely to mark the image containing the remote user's portrait in the gallery with the same name or nickname. Therefore, the terminal can try to find the image marked with the note name from the gallery.

[0020] As another example, the operation of the terminal obtaining the remote user identity information may be: determining occupation information according to the voice data sent by the remote call device, and the occupation information is the remote user identity information. Correspondingly, the operation of the terminal obtaining the portrait image corresponding to the remote user identity information may be: obtaining the portrait image corresponding to the occupation information from the server, or obtaining the portrait image corresponding to the occupation information from the preset image set stored in the terminal.

[0021] Among them, the operation of the terminal determining the occupational information based on the voice data sent by the remote call device can be: the terminal performs voice recognition on the voice data to obtain text information; if the text information contains preset keywords, the occupational information corresponding to the preset keywords contained in the text information is obtained.

[0022] The preset keywords can be pre-set, and one or more preset keywords can be pre-set in the terminal. In addition, the terminal can pre-set a correspondence between the preset keywords and the occupation information, and the correspondence includes the occupation information corresponding to each preset keyword in the one or more preset keywords.

[0023] If the text information includes any preset keyword, the terminal can obtain the occupation information corresponding to the preset keyword from the corresponding relationship between the preset keyword and the occupation information.

[0024] The operation of the terminal obtaining the portrait image corresponding to the occupation information from the server may be: the terminal sends a portrait acquisition request to the server, and the portrait acquisition request carries the occupation information. After receiving the portrait acquisition request, the server may obtain the portrait image corresponding to the occupation information from the stored preset image set. Afterwards, the server may send the portrait image to the terminal. The terminal may receive the portrait image.

[0025] The preset image set can be set in advance. The preset image set may include portrait images of various professions. For example, the portrait images of various professions in the preset image set may be collected from the Internet or generated by a generative model.

[0026] In some implementations, the preset image set may be stored in the terminal. In this case, after obtaining the occupation information, the terminal may directly obtain the portrait image corresponding to the occupation information from the preset image set stored in the terminal.

[0027] It should be noted that according to common call scenarios, the remote user is more likely to introduce his or her occupation in the early stage of the call, and less likely to introduce his or her occupation in the later stage of the call. Therefore, in this application, the terminal can determine the occupation information based on the voice data at the early stage of the call.

[0028] Specifically, in some cases, if the terminal determines that the virtual video function is turned on when detecting the voice call operation, it can determine the occupational information based on the voice data sent by the remote call device within the first preset time after the voice call starts.

[0029] That is to say, the terminal can try to determine the occupation information in real time based on the voice data obtained from the remote call device within the first preset time period after the voice call starts, until the occupation information is determined.

[0030] If the terminal has not determined the occupational information within the first preset time after the start of the voice call, the occupational information will no longer be determined after the first preset time after the start of the voice call. This is because the occupation of the remote user is usually introduced at the beginning of the voice call. If the occupational information is not determined based on the voice data at the beginning of the voice call, the probability of determining the occupational information based on the voice data later is also very small. Therefore, in order to avoid meaningless resource consumption, in this application, if the occupational information is not determined within the first preset time after the start of the voice call, it will no longer be determined later to save processing resources.

[0031] In other cases, if the terminal determines that the virtual video function is in the off state when detecting the voice call operation, then when it detects that the virtual video function is switched from the off state to the on state during the voice call, the occupational information is determined based on the voice data sent by the remote call device within the first preset time period from the current moment.

[0032] If the user turns on the virtual video function during a voice call, the terminal can try to determine the occupation information in real time according to the acquired voice data of the remote call device within the first preset time after the virtual video function is turned on, until the occupation information is determined. If the terminal has not determined the occupation information within the first preset time after the virtual video function is turned on, the terminal will no longer determine the occupation information after the first preset time after the virtual video function is turned on, so as to save processing resources.

[0033] In some other cases, if the terminal determines that the virtual video function is in an off state when detecting the voice call operation, when detecting that the virtual video function is switched from an off state to an on state during the voice call, if the current call duration is less than or equal to the second preset duration, the occupation information is determined according to the voice data sent by the remote call device within the first preset duration from the current moment. If the current call duration is greater than the second preset duration, the occupation information is no longer determined.

[0034] If the current call duration is less than or equal to the second preset duration, it means that the voice call has not been going on for too long. In this case, the terminal can try to determine the occupation information based on the voice data of the remote call device.

[0035] If the current call duration is longer than the second preset duration, it means that the voice call has been going on for a long time, and the probability that the terminal can determine the occupation information based on the voice data of the remote call device is very small. Therefore, in order to avoid meaningless resource consumption, in this application, the occupation information is no longer determined when the current call duration is longer than the second preset duration, so as to save processing resources.

[0036] Optionally, the operation of the terminal to obtain a portrait image can be: if a trigger operation on the gallery entrance is detected, a portrait selection interface is displayed, and the portrait selection interface includes multiple images in the gallery; if a selection operation on one of the multiple images is received, this image is determined as the portrait image.

[0037] The triggering operation and the selecting operation can both be performed by the user. The user can select an image from the gallery as a portrait image by triggering the gallery entrance.

[0038] Optionally, after the terminal obtains the portrait image, before driving the portrait image according to the voice data, the portrait image may be preprocessed. The preprocessing operation is used to highlight the portrait in the portrait image. For example, the preprocessing operation may include a portrait cropping operation, a background blur operation, and the like.

[0039] Optionally, the voice data includes multiple voice segments, and each two adjacent voice segments in the multiple voice segments have an overlapping portion. In this case, the terminal drives the portrait image according to the voice data to obtain the virtual video. The operation may be: driving the portrait image according to each voice segment in the multiple voice segments to obtain multiple target portrait images, and the multiple target portrait images are the virtual video.

[0040] The terminal can display each target portrait image obtained by the terminal. After multiple target portrait images are displayed continuously, a video effect is formed, which is called virtual video in this application.

[0041] Since every two adjacent voice segments in the multiple voice segments have overlapping parts, when the multiple target portrait images obtained by driving the portrait image according to the multiple voice segments are displayed, the postures of the portraits in the multiple target portrait images are relatively smooth and natural, which can improve the viewing effect of the virtual video.

[0042] Optionally, the terminal drives the portrait image according to each of the multiple voice segments, and the operation of obtaining multiple target portrait images can be: obtaining a first human body key point feature corresponding to the portrait image and an image feature of the portrait image; each time a voice segment is obtained, obtaining a second human body key point feature corresponding to the voice segment according to the first human body key point feature and the voice segment; obtaining a target portrait image according to the image feature, the first human body key point feature and the second human body key point feature.

[0043] The first human body key point feature is used to characterize the human body key point of the portrait contained in the portrait image, and may include position information of the human body key point, etc.

[0044] The second human key point feature is used to characterize the human key point corresponding to the posture that the person in the portrait image is likely to have when uttering the voice clip, and may include position information of the human key point, etc.

[0045] For example, the image feature, the first human body key point feature, and the second human body key point feature may all be two-dimensional features, or may all be three-dimensional features.

[0046] The human body key points of the portrait contained in the target portrait image meet the human body key point constraints corresponding to the first human body key point features and the second human body key point features, and the human body key point features of the portrait contained in the target portrait image are generally close to the second human body key point features.

[0047] Optionally, the terminal may not only obtain the first human body key point features corresponding to the portrait image and the image features of the portrait image, but may also obtain the first emotion information corresponding to the portrait image.

[0048] In this case, the terminal can obtain a target portrait image based on the image features, the first human key point features, and the second human key point features by: obtaining the second emotion information corresponding to the voice segment; and obtaining a target portrait image based on the image features, the first human key point features, the second human key point features, the first emotion information, and the second emotion information.

[0049] The first emotion information is used to indicate the emotion of the person included in the portrait image. The purpose of providing the first emotion information is to remove the original facial expression of the person included in the portrait image so as to reconstruct a more accurate facial expression.

[0050] The second emotion information is used to indicate the emotion of the person who made the speech segment. The purpose of providing the second emotion information is to reconstruct the corresponding facial expression.

[0051] In the present application, a target portrait image is acquired based on the image features, the first human key point features, the second human key point features, the first emotion information and the second emotion information, so that the facial expression of the acquired target portrait image can be more natural and accurate.

[0052] In a second aspect, a voice call device is provided, which has the function of implementing the voice call method in the first aspect. The voice call device includes at least one module, and the at least one module is used to implement the voice call method provided in the first aspect.

[0053] In a third aspect, a terminal is provided, wherein the structure of the terminal includes a processor and a memory, wherein the memory is used to store a program that supports the terminal to execute the voice call method provided in the first aspect, and to store data involved in implementing the voice call method in the first aspect. The processor is configured to execute the program stored in the memory. The terminal may also include a communication bus, wherein the communication bus is used to establish a connection between the processor and the memory.

[0054] In a fourth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is executed on a computer, the computer executes the voice call method described in the first aspect.

[0055] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the voice call method described in the first aspect.

[0056] The technical effects obtained by the above-mentioned second, third, fourth and fifth aspects are similar to the technical effects obtained by the corresponding technical means in the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 is a schematic diagram of a virtual video provided in an embodiment of the present application;

[0058] Figure 2 is a schematic diagram of a voice call interface provided in an embodiment of the present application;

[0059] Figure 3 is a schematic diagram of another voice call interface provided in an embodiment of the present application;

[0060] Figure 4 is a schematic diagram of a virtual video switch provided in an embodiment of the present application;

[0061] Figure 5 is a schematic diagram of another virtual video switch provided in an embodiment of the present application;

[0062] Figure 6 is a flow chart of a voice call method provided by an embodiment of the present application;

[0063] Figure 7 is a schematic diagram of a gallery entrance provided in an embodiment of the present application;

[0064] Figure 8 is a schematic diagram of another gallery entrance provided in an embodiment of the present application;

[0065] Fig. 9 is a schematic diagram of a virtual video function provided by an embodiment of the present application;

[0066] Fig.10 is a schematic diagram of another virtual video function provided by an embodiment of the present application;

[0067] Fig.11 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;

[0068] Fig.12 It is a block diagram of a software system of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0069] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0070] It should be understood that the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different.

[0071] The phrases such as "one embodiment" or "some embodiments" described in the present application mean that the specific features, structures or characteristics described in the embodiment are included in one or more embodiments of the present application. Therefore, the phrases such as "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments" that appear in the differences in the present application do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. In addition, the terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0072] The application scenarios involved in the embodiments of the present application are described below.

[0073] Currently, people can make voice calls with their relatives and friends through mobile phones, tablet computers and other terminals.

[0074] As an example, the voice call may be a voice call established through an operator service, such as a second generation mobile communication technology (2G) voice call, a third generation mobile communication technology (3G) voice call, a fourth generation mobile communication technology (4G) voice call, a fifth generation mobile communication technology (5G) voice call, etc. For example, a user can use a mobile phone to directly dial other people's phone numbers, or answer calls from other people's phone numbers.

[0075] As another example, the voice call may be a voice call established through a network. For example, a user may initiate a voice call request to another person's account, or receive a voice call request from another person's account, through an application installed in a mobile phone.

[0076] However, currently, voice calls only have pure voice output, and the calling mode is single, which is difficult to meet user needs. If you choose a video call, it is also difficult to bring a good experience because video transmission often relies on a large amount of cellular data and is easy to leak personal privacy.

[0077] To this end, an embodiment of the present application provides a voice call method, which can continuously drive a portrait image through the voice of a remote user during a voice call to form a real-time continuous virtual video output. The posture of the portrait in the virtual video satisfies the voice input, that is, the portrait in the virtual video can simulate the posture that the remote user will have when uttering the voice. In this way, during the voice call, the local user can intuitively feel the expression of the remote user by watching the virtual video, thereby improving the flexibility of the voice call and improving the user's voice call experience.

[0078] The function of displaying a virtual video provided in the embodiment of the present application may be referred to as a virtual video function. Figure 1 As shown, the virtual video is formed by driving a portrait image through voice, and the portrait in the virtual video is used to simulate the posture that the user will have when uttering the voice.

[0079] The portrait described in the embodiments of the present application may be an image including a person's head, or may be an image including a person's upper body (such as the head, shoulders, hands, etc.), or may be an image including a person's entire body (such as the head, shoulders, hands, legs, feet, etc.), and the embodiments of the present application are not limited to this.

[0080] The posture described in the embodiments of the present application refers to the posture of a person. For example, the posture may include facial expressions (including but not limited to the expressions of eyebrows, eyes, mouth, chin, etc. on the face), body postures (including but not limited to standing posture, sitting posture, walking posture, etc.), body movements (including but not limited to head movements, shoulder movements, gestures, leg and foot movements, etc.), etc., and the embodiments of the present application do not limit this.

[0081] In some embodiments, the virtual video function in the embodiments of the present application can be turned on and off by a virtual video switch. If the user turns on the virtual video switch, the virtual video function can be switched from an off state to an on state; if the user turns off the virtual video switch, the virtual video function can be switched from an on state to an off state.

[0082] For example, the virtual video switch can be directly set on the voice call interface, or the virtual video switch can also be displayed in a floating manner on the upper layer of the voice call interface. In this way, the user can conveniently turn on or off the virtual video switch when making a voice call.

[0083] And / or, the virtual video switch can be set in the notification bar. In this case, the user can pull down in the terminal to open the notification bar, and then choose to turn on or off the virtual video switch in the notification bar according to needs.

[0084] And / or, the virtual video switch can be set in the setting item. In this case, the user can open the setting item in the terminal, and then choose to turn on or off the virtual video switch in the setting item according to the needs.

[0085] The virtual video function provided in the embodiment of the present application can be applicable to voice calls established through operator services, and can also be applicable to voice calls established through the network.

[0086] The voice call interface of these two voice call modes may be slightly different. For example, Figure 2 It is a voice call interface 200 corresponding to a voice call established through an operator service. The voice call interface 200 can display information such as the contact name, contact number, and call duration. The voice call interface 200 can also include buttons such as a recording button, a mute button, and a contact list button. For example, Figure 3 It is a voice call interface 300 corresponding to a voice call established through a network. The voice call interface 300 can display information such as a contact portrait, a contact name, and a call duration. The voice call interface 300 can also include buttons such as a microphone button, a hang-up button, and a speaker button.

[0087] Next, the implementation of the virtual video switch in the voice call established through the operator service is exemplified. The implementation of the virtual video switch in the voice call established through the network is similar to the implementation of the virtual video switch in the voice call established through the operator service, and the embodiments of the present application will not be repeated here.

[0088] In some embodiments, a subscriber identification module (SIM) card may be installed in the terminal. The SIM card may use operator services, and the terminal may make voice calls through the SIM card.

[0089] In this case, if the user wants to have a voice call with a certain person, the user can dial the phone number of the person through the SIM card installed in the terminal. After the other party answers the call, the user can have a voice call with the other party.

[0090] Alternatively, if someone wants to have a voice call with the user, they can dial the user's phone number. The terminal can receive the incoming call through the SIM card. After the user answers the call, the user can have a voice call with the other party.

[0091] It should be noted that after one device makes a call to another device, if the other device answers the call, the voice call between the two devices is connected, and the two devices can then start the voice call.

[0092] For example, Figure 4 Figure (a) in the figure is a schematic diagram of a voice call interface 200 after the voice call is connected. The voice call interface 200 may include buttons such as a recording button, a mute button, and a contact list button. In the embodiment of the present application, the voice call interface 200 may also include a virtual video switch 201. The user can turn on or off the virtual video switch 201 during the voice call.

[0093] If the user turns on the virtual video switch 201 during a voice call, such as clicking Figure 4 The virtual video switch 201 shown in FIG. (a) in FIG. 1 is turned on, and the virtual video function is switched from the off state to the on state. In this case, during the subsequent voice call, if Figure 4 As shown in FIG. 2( b ), a virtual video 203 may be displayed in the voice call interface 200 .

[0094] If the user turns off the virtual video switch 201 during a voice call, such as clicking Figure 4 The virtual video switch 201 shown in FIG. (b) in FIG. 1 is turned on, and the virtual video function is switched from the on state to the off state. In this case, during the subsequent voice call, if Figure 4As shown in FIG. 5( c ) , the virtual video 203 is no longer displayed in the voice call interface 200 .

[0095] Optionally, when the virtual video switch 201 is set on the voice call interface 200, when the voice call is just connected, that is, when the voice call just starts, the virtual call switch 201 can be in a closed state by default. The user chooses whether to turn on the virtual call switch 201 during the voice call to use the virtual video function.

[0096] For example, Figure 5 Figure (a) in the figure is a schematic diagram of a voice call interface 200 after the voice call is connected. The voice call interface 200 may include buttons such as a recording button, a mute button, and a contact list button. In the embodiment of the present application, the virtual video switch 201 may be displayed in a floating manner on the upper layer of the voice call interface 200. The user may turn on or off the virtual video switch 201 during the voice call.

[0097] If the user turns on the virtual video switch 201 during a voice call, such as clicking Figure 5 The virtual video switch 201 shown in FIG. (a) in FIG. 1 is used to switch the virtual video function from the off state to the on state. Figure 5 As shown in FIG. 2( b ), the user can jump from the voice call interface 200 to the virtual video interface 400 . In the subsequent voice call process, the virtual video 203 can be displayed in the virtual video interface 400 . In addition, the virtual video switch 201 can be displayed in a floating manner on the upper layer of the virtual video interface 400 .

[0098] If the user turns off the virtual video switch 201 during a voice call, such as clicking Figure 5 The virtual video switch 201 shown in FIG. (b) in FIG. 1 is used to switch the virtual video function from the on state to the off state. In this case, if Figure 5 As shown in FIG. 5( c ), the user can jump back to the voice call interface 200 from the virtual video interface 400 , and the virtual video 203 is no longer displayed during the subsequent voice call process. In addition, the virtual video switch 201 can still be displayed in a floating manner on the upper layer of the voice call interface 200 .

[0099] Optionally, when the virtual video switch 201 is displayed in a floating state on the upper layer of the voice call interface 200, when the voice call is just connected, that is, when the voice call just begins, the virtual call switch 201 can be in a closed state by default. The user chooses whether to turn on the virtual call switch 201 during the voice call to use the virtual video function.

[0100] For example, if the virtual video switch is set in the notification bar and / or the setting item, the user can turn on or off the virtual video switch in the notification bar or the setting item in advance to turn on or off the virtual video function.

[0101] In this case, if the virtual video function is turned on when the voice call is connected, the virtual video is directly displayed on the voice call interface or the virtual video is displayed by jumping from the voice call interface to the virtual video interface. If the virtual video function is turned off when the voice call is connected, the virtual video is not displayed.

[0102] During a call, users can also turn on or off the virtual video switch in the notification bar or settings to turn on or off the virtual video function.

[0103] During a call, if the virtual video function is switched from on to off, the virtual video will no longer be displayed during subsequent voice calls. For example, if the virtual video is displayed on the voice call interface, when the virtual video function is switched from on to off, the virtual video will no longer be displayed on the voice call interface. For another example, if the virtual video is displayed from the voice call interface to the virtual video interface, when the virtual video function is switched from on to off, the interface will jump back to the voice call interface from the virtual video interface so that the virtual video will no longer be displayed.

[0104] During a call, if the virtual video function is switched from off to on, the virtual video will be displayed during the subsequent voice call, such as displaying the virtual video on the voice call interface, or displaying the virtual video by jumping from the voice call interface to the virtual video interface.

[0105] Optionally, the virtual video switch in the notification bar and / or the setting item may be in an off state by default. The user may manually turn on the virtual video switch according to their needs, and may also manually turn off the virtual video switch after turning on the virtual video switch.

[0106] The voice call method provided in the embodiment of the present application is explained in detail below.

[0107] Figure 6 is a flow chart of a voice call method provided by an embodiment of the present application. Figure 6 , the method may include the following steps:

[0108] Step 601: If the terminal detects a voice call operation, the terminal obtains a portrait image and voice data sent by a remote call device when the virtual video function is turned on.

[0109] The voice call operation is an operation for connecting the voice call between the terminal and the remote call device. After the terminal detects the voice call operation, the terminal and the remote call device start a voice call, such as a voice call through an operator service or a network.

[0110] For example, if the terminal calls the remote call device, such as dialing the phone number of the remote call device, or initiating a voice call request to the account logged in by the remote call device, the voice call operation detected by the terminal may be an answering operation of the remote call device.

[0111] For another example, if the terminal receives an incoming call from the remote call device, such as the remote call device dials the terminal's phone number, or the remote call device initiates a voice call request to the account logged in by the terminal, the voice call operation detected by the terminal may be an answering operation of the terminal.

[0112] When the terminal detects the voice call operation, it can determine whether the virtual video function is in an on state. If the terminal determines that the virtual video function is in an on state when the voice call operation is detected, the portrait image and the voice data sent by the remote call device can be directly obtained after the voice call starts; if the terminal determines that the virtual video function is in an off state when the voice call operation is detected, the terminal obtains the portrait image and the voice data sent by the remote call device if it detects that the virtual video function is switched from an off state to an on state during the voice call.

[0113] It should be noted that the operation of the terminal obtaining the portrait image can be performed when it is determined that the virtual video function is in the on state when the voice call operation is detected, or it can be performed when it is detected that the virtual video function is switched from the off state to the on state during the voice call.

[0114] The operation of the terminal obtaining the voice data sent by the remote call device can be performed continuously when the virtual video function is turned on, that is, when the virtual video function is turned on, the terminal can continuously obtain the voice data sent by the remote call device during the voice call.

[0115] Optionally, the virtual video function can be turned on and off by a virtual video switch, and the virtual video switch can be turned on or off by the user. For example, if the terminal detects that the virtual video switch is turned on, the virtual video function is switched from an off state to an on state; if the terminal detects that the virtual video switch is turned off, the virtual video function is switched from an on state to an off state. The specific implementation of the virtual video switch has been described in detail in the previous embodiment, and the embodiments of the present application will not be repeated here.

[0116] The portrait image is an image containing a portrait of a person. For example, the portrait image may be an image containing a person's head, or an image containing a person's upper body (such as a head, shoulders, hands, etc.), or an image containing a person's entire body (such as a head, shoulders, hands, legs, feet, etc.), which is not limited in the embodiments of the present application.

[0117] In some embodiments, the operation of the terminal acquiring the portrait image may include the following two methods:

[0118] The first method: the terminal obtains the identity information of the remote user, and obtains the portrait image corresponding to the identity information of the remote user.

[0119] The remote user identity information is used to indicate the identity of the remote user talking to the terminal. For example, the remote user identity information may be the name of the remote user, or may be the occupation information of the remote user, etc., which is not limited in the present embodiment of the application.

[0120] As an example, the operation of the terminal obtaining the remote user identity information may be: if the call number is a stored contact number, then obtaining the contact name corresponding to the contact number, and the contact name is the remote user identity information. Correspondingly, the operation of the terminal obtaining the portrait image corresponding to the remote user identity information may be: searching for the portrait image marked with the contact name from the gallery.

[0121] If the terminal and the remote call device are conducting a voice call through an operator service, the call number is the phone number of the remote call device. In this case, if the call number is a contact number stored in the terminal's address book, the contact name stored corresponding to the contact number can be obtained. In this case, the terminal can try to find a portrait image marked with the contact name from multiple images stored in the gallery.

[0122] It should be noted that the user can mark the images in the gallery, such as the user can mark the name, nickname, etc. of the portrait contained in the image. Then, after obtaining the contact name, the terminal can search for images marked with the contact name in the gallery. If only one image is found, this image can be used as the portrait image used in this virtual video; if multiple images are found, the image with the most recent storage time among the multiple images can be used as the portrait image used in this virtual video, or the image in the collection state among the multiple images can be used as the portrait image used in this virtual video, or an image can be randomly selected from the multiple images as the portrait image used in this virtual video. Of course, an image can also be selected from the multiple images in other ways as the portrait image used in this virtual video, and the embodiments of the present application are not limited to this.

[0123] As another example, the operation of the terminal obtaining the remote user identity information may be: if the call account has a note name, the note name is determined as the remote user identity information. Correspondingly, the operation of the terminal obtaining the portrait image corresponding to the remote user identity information may be: searching for the portrait image marked with the note name from the gallery.

[0124] If the terminal and the remote call device conduct a voice call through the network, then the call account is the account logged in by the remote call device. In this case, if the call account has a remark name, then the remark name is likely to be a name or nickname that the user specially remarked for the remote user, etc. In this case, the user is likely to mark the image containing the portrait of the remote user in the gallery with the same name or nickname, etc. Thus, the terminal can try to find an image marked with the remark name from the gallery. If only one image is found, this image can be used as the portrait image used in this virtual video; if multiple images are found, the image with the most recent storage time among the multiple images can be used as the portrait image used in this virtual video, or the image in the collection state among the multiple images can be used as the portrait image used in this virtual video, or an image can be randomly selected from the multiple images as the portrait image used in this virtual video. Of course, one image can also be selected from the multiple images in other ways as the portrait image used in this virtual video, and the embodiment of the present application is not limited to this.

[0125] As another example, the operation of the terminal obtaining the remote user identity information may be: determining occupation information according to the voice data sent by the remote call device, and the occupation information is the remote user identity information. Correspondingly, the operation of the terminal obtaining the portrait image corresponding to the remote user identity information may be: obtaining the portrait image corresponding to the occupation information from the server, or obtaining the portrait image corresponding to the occupation information from the preset image set stored in the terminal.

[0126] The occupational information may include various common occupations, such as deliverymen, couriers, salesmen, intermediaries, etc., which is not limited in the embodiments of the present application.

[0127] Among them, the operation of the terminal determining the occupational information based on the voice data sent by the remote call device can be: the terminal performs voice recognition on the voice data to obtain text information; if the text information contains preset keywords, the occupational information corresponding to the preset keywords contained in the text information is obtained.

[0128] By performing speech recognition on the voice data, real-time conversion of speech to text can be achieved, and then occupational information can be determined through keywords.

[0129] The preset keywords can be pre-set, and one or more preset keywords can be pre-set in the terminal. In addition, the terminal can pre-set a correspondence between the preset keywords and the occupation information, and the correspondence includes the occupation information corresponding to each preset keyword in the one or more preset keywords.

[0130] If the text information includes any preset keyword, the terminal can obtain the occupation information corresponding to the preset keyword from the corresponding relationship between the preset keyword and the occupation information.

[0131] For example, the preset keywords include: real estate, sales department, house viewing, etc. The occupational information corresponding to the three preset keywords of real estate, sales department, and real estate is all real estate service personnel. Assuming that the text information obtained after voice recognition of the voice data is "I am xx from xx real estate", "I am xx from xx sales department", or "You came to see the house last time, xx", then the occupational information determined based on this is all real estate service personnel.

[0132] Optionally, the terminal may also analyze whether the source of the voice data is female or male to obtain gender information. The gender information may also be included in the remote user identity information.

[0133] The operation of the terminal obtaining the portrait image corresponding to the occupation information from the server may be: the terminal sends a portrait acquisition request to the server, the portrait acquisition request carries the occupation information and may further carry the gender information. After receiving the portrait acquisition request, the server may obtain the portrait image corresponding to the occupation information from a stored preset image set, or may obtain the portrait image corresponding to the occupation information and the gender information from a stored preset image set. Afterwards, the server may send the portrait image to the terminal. The terminal may receive the portrait image.

[0134] The preset image set can be set in advance. The preset image set may include portrait images of various professions. Optionally, for each profession, the preset image set may include portrait images of men of the profession and portrait images of women of the profession.

[0135] For example, the portrait images of various professions in the preset image set can be collected from the Internet or generated by a generation model, which is not limited in the embodiments of the present application.

[0136] The generation model can generate a corresponding image based on the text description. Specifically, for any occupation, the text description information of the occupation can be input into the generation model, and after obtaining the portrait image output by the generation model, the portrait image is stored in the preset image set as the portrait image of the occupation. For example, the generation model can be a stable diffusion model, etc., which is not limited in the embodiments of the present application.

[0137] In some implementations, a preset image set may be stored in the terminal. In this case, after obtaining the occupation information, the terminal may directly obtain a portrait image corresponding to the occupation information, or obtain a portrait image corresponding to the occupation information and the gender information, from the preset image set stored in the terminal.

[0138] In some embodiments, according to common call scenarios, the remote user is more likely to introduce his or her occupation in the early stage of the call, and less likely to introduce his or her occupation in the later stage of the call. Therefore, in the embodiment of the present application, the terminal may determine the occupation information according to the voice data in the early stage of the call.

[0139] Specifically, in some cases, if the terminal determines that the virtual video function is on when detecting the voice call operation, it can determine the occupational information based on the voice data sent by the remote call device within the first preset time after the voice call starts. The specific determination operation can be referred to the previous description and will not be repeated here.

[0140] That is to say, the terminal can try to determine the occupation information in real time based on the voice data acquired from the remote call device within the first preset time period after the voice call starts, until the occupation information is determined.

[0141] If the terminal has not determined the occupational information within the first preset time after the start of the voice call, the occupational information will no longer be determined after the first preset time after the start of the voice call. This is because the occupation of the remote user is usually introduced at the beginning of the voice call. If the occupational information is not determined based on the voice data at the beginning of the voice call, the probability of determining the occupational information based on the voice data later is also very small. Therefore, in order to avoid meaningless resource consumption, in the embodiment of the present application, if the occupational information is not determined within the first preset time after the start of the voice call, it will no longer be determined later to save processing resources.

[0142] The first preset duration can be set in advance. For example, the first preset duration can be 5 seconds, 7 seconds, 10 seconds, etc., which is not limited in the embodiment of the present application.

[0143] In other cases, if the terminal determines that the virtual video function is in the off state when detecting the voice call operation, then when it detects that the virtual video function is switched from the off state to the on state during the voice call, the occupational information is determined based on the voice data sent by the remote call device within the first preset time period from the current moment. The specific determination operation can be referred to the previous description and will not be repeated here.

[0144] If the user turns on the virtual video function during a voice call, the terminal can try to determine the occupation information in real time according to the acquired voice data of the remote call device within the first preset time after the virtual video function is turned on, until the occupation information is determined. If the terminal has not determined the occupation information within the first preset time after the virtual video function is turned on, the terminal will no longer determine the occupation information after the first preset time after the virtual video function is turned on, so as to save processing resources.

[0145] In some other cases, if the terminal determines that the virtual video function is in an off state when detecting the voice call operation, then when the virtual video function is detected to be switched from an off state to an on state during the voice call, if the current call duration is less than or equal to the second preset duration, the occupation information is determined according to the voice data sent by the remote call device within the first preset duration from the current moment. The specific determination operation can be referred to the above description and will not be repeated here. If the current call duration is greater than the second preset duration, the occupation information is no longer determined.

[0146] The second preset duration can be set in advance. Optionally, the second preset duration can be greater than the first preset duration. For example, the second preset duration can be 30 seconds, 35 seconds, etc., which is not limited in the embodiment of the present application.

[0147] If the current call duration is less than or equal to the second preset duration, it means that the voice call has not been going on for too long. In this case, the terminal can try to determine the occupation information based on the voice data of the remote call device.

[0148] If the current call duration is longer than the second preset duration, it means that the voice call has been going on for a long time, and the probability that the terminal can determine the occupation information based on the voice data of the remote call device is very small. Therefore, in order to avoid meaningless resource consumption, in the embodiment of the present application, the occupation information is no longer determined when the current call duration is longer than the second preset duration, so as to save processing resources.

[0149] In the first method mentioned above, in some possible implementations, if the terminal and the remote call device conduct a voice call through an operator service, then when the call number is not a stored contact number, the terminal can determine the occupational information based on the voice data sent by the remote call device and obtain a portrait image corresponding to the occupational information.

[0150] When the call number is a stored contact number, the terminal can not only search the gallery for a portrait image marked with the contact name corresponding to the contact number, but also determine the occupational information based on the voice data sent by the remote call device and obtain the portrait image corresponding to the occupational information.

[0151] In this case, if the terminal finds a portrait image marked with the contact name from the gallery, but fails to determine the occupational information, the terminal can use the portrait image found from the gallery as the portrait image used in this virtual video. If the terminal does not find a portrait image marked with the contact name from the gallery, but determines the occupational information and obtains the portrait image corresponding to the occupational information, the terminal can use the portrait image corresponding to the occupational information as the portrait image used in this virtual video. If the terminal not only finds a portrait image marked with the contact name from the gallery, but also determines the occupational information and obtains the portrait image corresponding to the occupational information, the terminal can select one of them as the portrait image used in this virtual video, such as selecting the portrait image found from the gallery as the portrait image used in this virtual video.

[0152] In other possible implementations, if the terminal and the remote call device conduct a voice call through the network, then if there is no remark name for the call account, the terminal can determine the occupational information based on the voice data sent by the remote call device and obtain a portrait image corresponding to the occupational information.

[0153] When there is a remark name for the call account, the terminal can not only search for a portrait image marked with the remark name from the gallery, but also determine the occupational information based on the voice data sent by the remote call device and obtain the portrait image corresponding to the occupational information.

[0154] In this case, if the terminal finds a portrait image marked with the remark name from the gallery, but fails to determine the occupational information, the terminal can use the portrait image found from the gallery as the portrait image used in this virtual video. If the terminal does not find a portrait image marked with the remark name from the gallery, but determines the occupational information and obtains the portrait image corresponding to the occupational information, the terminal can use the portrait image corresponding to the occupational information as the portrait image used in this virtual video. If the terminal not only finds a portrait image marked with the remark name from the gallery, but also determines the occupational information and obtains the portrait image corresponding to the occupational information, the terminal can select one of them as the portrait image used in this virtual video, such as selecting the portrait image found from the gallery as the portrait image used in this virtual video.

[0155] The second method: If the terminal detects a trigger operation on the gallery entrance in the voice call interface or the virtual video interface, a portrait selection interface is displayed, which may include multiple images in the gallery; if the terminal receives a selection operation on one of the multiple images, this image is determined as a portrait image and returns to the voice call interface or the virtual video interface.

[0156] The triggering operation and the selecting operation can both be performed by the user. The user can select an image from the gallery as a portrait image by triggering the gallery entrance.

[0157] As an example, Figure 7 As shown in FIG. 2 (a), the voice call interface 200 may include not only a virtual video switch 201, but also a gallery entry (i.e., the portrait selection button in the figure) 202. In this case, the user can turn on the virtual video function by clicking the virtual video switch 201, and then the user can click the gallery entry 202. In response to the triggering operation on the gallery entry 202, as shown in FIG. Figure 7 As shown in FIG. 5( b ), the terminal may display a portrait selection interface 500, which may display multiple images in the gallery. The user may select an image from the multiple images displayed in the portrait selection interface 500 and click an OK button. In response to the selection operation of the image, Figure 7 As shown in FIG. 2( c ), the terminal returns to the voice call interface 200 , and displays a virtual video 203 in the voice call interface 200 according to the image (ie, the above-mentioned portrait image).

[0158] As another example, Figure 8As shown in FIG. 1 (a), a virtual video switch 201 may be displayed in a floating manner on the upper layer of the voice call interface 300. In this case, the user may turn on the virtual video function by clicking the virtual video switch 201. In response to the turning-on operation of the virtual video switch 201, as shown in FIG. Figure 8 As shown in FIG. 2( b ), the terminal may display a virtual video interface 400, a virtual video switch 201 may be displayed in a floating manner on the upper layer of the virtual video interface 400, and the virtual video interface 400 may include a gallery entrance (i.e., a select portrait button in the figure) 202. The user may click on the gallery entrance 202. In response to the triggering operation on the gallery entrance 202, as shown in FIG. Figure 8 As shown in FIG. 5( c ) of FIG. 5 , the terminal may display a portrait selection interface 500, which may display multiple images in the gallery. The user may select an image from the multiple images displayed in the portrait selection interface 500 and click an OK button. In response to the selection operation of the image, Figure 8 As shown in FIG. 5( d ) , the terminal returns to the virtual video interface 400 , and displays the virtual video 203 in the virtual video interface 400 according to the image (ie the above-mentioned portrait image).

[0159] It should be noted that during a voice call, when the virtual video function is turned on, the user can adjust the portrait image used in the virtual video. That is, after the user selects an image from the gallery as a portrait image through the gallery entrance, during a subsequent voice call, the user can also reselect an image from the gallery as a portrait image through the gallery entrance. In this case, the terminal can display the virtual video based on the most recently selected portrait image.

[0160] In some embodiments, the first method and the second method mentioned above can be flexibly combined.

[0161] Specifically, during a voice call, when the virtual video function is turned on, if the terminal does not obtain a portrait image through the second method, and the terminal obtains a portrait image through the first method, the terminal can first display a virtual video based on the portrait image obtained through the first method. Once the terminal obtains a portrait image through the second method, the terminal can switch to displaying a virtual video based on the portrait image obtained through the second method to meet user needs.

[0162] If the terminal does not obtain a portrait image through the first method and does not obtain a portrait image through the second method, then in order to ensure the normal operation of the virtual video function, the terminal can display a reminder message, which is used to remind the user to select a portrait. After the user sees the reminder message, he can select an image from the gallery as the portrait image through the gallery entrance.

[0163] Step 602: The terminal drives the portrait image according to the voice data to obtain a virtual video, and displays the virtual video during the voice call.

[0164] The terminal drives the portrait image according to the voice data, which means that the posture of the portrait in the portrait image is continuously adjusted according to the voice data to form a real-time continuous virtual video output. The portrait in the virtual video can simulate the posture that the remote user will have when making a corresponding voice. In this way, during a voice call, the user can intuitively feel the expression of the remote user by watching the virtual video, thereby improving the flexibility of the voice call and improving the user's voice call experience.

[0165] During a voice call, when the virtual video function is turned on, the terminal can continuously obtain voice data sent by the remote call device.

[0166] Optionally, the terminal may divide the acquired voice data into a plurality of voice segments. The plurality of voice segments are in time sequence.

[0167] The duration of each voice segment in the multiple voice segments is the same, and can be the third preset duration. The third preset duration can be set in advance. For example, the third preset duration can be 40 milliseconds, 50 milliseconds, etc., which is not limited in the embodiment of the present application.

[0168] Every two adjacent voice segments in the multiple voice segments have an overlapping part, and the duration of the overlapping part of every two adjacent voice segments is the same, such as 10 milliseconds, 15 milliseconds, etc., which is not limited in this embodiment of the present application.

[0169] For example, for a segment of speech data, the speech data from 0 milliseconds to 40 milliseconds in the segment can be determined as the first speech segment, the speech data from 30 milliseconds to 70 milliseconds can be determined as the second speech segment, the speech data from 60 milliseconds to 100 milliseconds can be determined as the third speech segment, and so on. In this way, every two adjacent speech segments will have 10 milliseconds of speech data overlapped.

[0170] Optionally, after acquiring the portrait image, the terminal may perform a preprocessing operation on the portrait image before driving the portrait image according to the voice data.

[0171] The preprocessing operation is used to highlight the portrait in the portrait image. For example, the preprocessing operation may include a portrait cropping operation, a background blurring operation, etc., which is not limited in the embodiment of the present application.

[0172] The portrait cropping operation refers to cropping a portion containing the portrait from the portrait image. For example, the portrait cropping operation may be: firstly performing image segmentation on the portrait image to determine the portrait portion in the portrait image; determining a circumscribed rectangular area of ​​the portrait portion in the portrait image, and cropping the image within the circumscribed rectangular area from the portrait image to obtain a new portrait image.

[0173] The background blurring operation refers to blurring the background part of the portrait image except the portrait. For example, after a new portrait image is obtained through the portrait cropping operation, the background part of the portrait image can be blurred.

[0174] In some embodiments, the operation of step 602 may be: the terminal drives the portrait image according to each voice segment in the multiple voice segments to obtain multiple target portrait images, and the multiple target portrait images are virtual videos.

[0175] The terminal can display each target portrait image obtained. After multiple target portrait images are displayed continuously, a video effect is formed, which is called a virtual video in the embodiment of the present application.

[0176] Since every two adjacent voice segments in the multiple voice segments have overlapping parts, when the multiple target portrait images obtained by driving the portrait image according to the multiple voice segments are displayed, the postures of the portraits in the multiple target portrait images are relatively smooth and natural, which can improve the viewing effect of the virtual video.

[0177] Optionally, the terminal drives the portrait image according to each of the multiple voice segments, and the operation of obtaining multiple target portrait images can be: obtaining a first human body key point feature corresponding to the portrait image; each time a voice segment is obtained, obtaining a second human body key point feature corresponding to the voice segment according to the first human body key point feature and the voice segment; obtaining a target portrait image according to the portrait image, the first human body key point feature and the second human body key point feature.

[0178] The first human body key point feature is used to characterize the human body key point of the portrait contained in the portrait image, and may include position information of the human body key point, etc.

[0179] The second human key point feature is used to characterize the human key point corresponding to the posture that the person in the portrait image is likely to have when uttering the voice clip, and may include position information of the human key point, etc.

[0180] For example, the key points of the human body may include key points of facial features and facial contours, various joints of the human body, various joints of the hands, and the like.

[0181] For example, the first human body key point feature and the second human body key point feature may both be two-dimensional (2D) features, or may both be three-dimensional (3D) features, which is not limited in the embodiments of the present application.

[0182] For example, the 3D feature can be determined based on neural radiance fields (Nerf) and generative adversarial networks (GAN) technology. The 3D feature can be information of three mutually perpendicular feature planes (Triplane) in space.

[0183] In some embodiments, the operation of the terminal obtaining the first human key point feature corresponding to the portrait image may be: the terminal inputs the portrait image into the first neural network model, obtains the human key point feature output by the first neural network model, and the human key point feature is the first human key point feature.

[0184] The first neural network model is used to extract key features of the human body of the portrait image. Optionally, the first neural network model can be a lightweight neural network model. For example, the first neural network model can be a lightweight convolutional neural network model, or can be a lightweight Transformer neural network model, etc., which is not limited in the embodiments of the present application.

[0185] For example, the first neural network model may be obtained by training the terminal. Alternatively, the first neural network model may be obtained by training other devices, and the other devices may send the trained first neural network model to the terminal for use.

[0186] For example, the operation of training to obtain the first neural network model may be: obtaining a plurality of first training samples, and training the neural network model using the plurality of first training samples to obtain the first neural network model.

[0187] The plurality of first training samples may be pre-set. Each of the plurality of first training samples includes a sample image and a sample tag, the sample image includes a human portrait, and the sample tag is a human body key point feature of the human portrait included in the sample image. That is, the input data in each of the plurality of first training samples is a sample image including a human portrait, and the sample tag is a human body key point feature of the human portrait.

[0188] The neural network model may include multiple network layers, including an input layer, multiple hidden layers, and an output layer. The input layer is responsible for receiving input data; the output layer is responsible for outputting processed data; multiple hidden layers are located between the input layer and the output layer and are responsible for processing data, and the multiple hidden layers are invisible to the outside. For example, the neural network model may be a deep neural network model, etc.

[0189] When the neural network model is trained using the multiple first training samples, for each of the multiple first training samples, the input data in the first training sample can be input into the neural network model to obtain output data; the loss value between the output data and the sample label in the first training sample is determined by the loss function; and the parameters in the neural network model are adjusted according to the loss value. After the parameters in the neural network model are adjusted based on each of the multiple first training samples, the neural network model with the adjusted parameters is the first neural network model.

[0190] Among them, the operation of adjusting the parameters in the neural network model according to the loss value can refer to the relevant technology, and the embodiments of the present application will not be elaborated in detail.

[0191] In some embodiments, the operation of the terminal obtaining the second human key point feature corresponding to the voice segment based on the first human key point feature and the voice segment can be: inputting the first human key point feature and the voice segment into the second neural network model, obtaining the human key point feature output by the second neural network model, and the human key point feature is the second human key point feature.

[0192] The second neural network model is used to estimate the human key point features corresponding to the posture of the human figure corresponding to the first human key point features when the voice clip is uttered. Optionally, the second neural network model can be a lightweight neural network model. For example, the second neural network model can be a lightweight convolutional neural network model, or can be a lightweight Transformer neural network model, etc., which is not limited in the embodiments of the present application.

[0193] For example, the second neural network model may be obtained by training the terminal. Alternatively, the second neural network model may be obtained by training other devices, and the other devices may send the trained second neural network model to the terminal for use.

[0194] For example, the operation of training to obtain the second neural network model may be: obtaining a plurality of second training samples, and training the neural network model using the plurality of second training samples to obtain the second neural network model.

[0195] The plurality of second training samples may be pre-set. Each of the plurality of second training samples includes input data and a sample tag, the input data includes key features of a human body and a voice of a certain person, and the sample tag is the key features of a human body corresponding to the posture of the person when the person pronounces the voice.

[0196] The operation of training the neural network model using the multiple second training samples to obtain the second neural network model is similar to the operation of training the neural network model using the multiple first training samples to obtain the first neural network model as described above, and will not be described in detail in the embodiments of the present application.

[0197] In some embodiments, the terminal may acquire a target portrait image according to the portrait image, the first human key point feature and the second human key point feature in the following four ways.

[0198] The first method: the terminal inputs the portrait image, the first human body key point feature and the second human body key point feature into a third neural network model to obtain a target portrait image output by the third neural network model.

[0199] The first human key point feature is the initial human key point feature of the portrait contained in the portrait image. The second human key point feature is the new human key point feature of the portrait estimated based on the speech segment.

[0200] The third neural network model is used to adjust the portrait in the portrait image according to the initial human key point feature and the new human key point feature to obtain a target portrait image. The human key points of the portrait included in the target portrait image meet the human key point constraints corresponding to the initial human key point feature and the new human key point feature, and the human key point features of the portrait included in the target portrait image are generally close to the new human key point feature.

[0201] As an example, if the first human key point feature and the second human key point feature are both 3D features, then after the portrait image, the first human key point feature and the second human key point feature are input into the third neural network model, a 3D portrait model will be constructed inside the third neural network model, and the 3D portrait model will be projected and rendered into a 2D portrait image under a specific perspective and then output.

[0202] Optionally, the third neural network model may be a lightweight neural network model. For example, the third neural network model may be a lightweight convolutional neural network model, or may be a lightweight Transformer neural network model, etc., which is not limited in the embodiments of the present application.

[0203] For example, the third neural network model may be obtained by training the terminal. Alternatively, the third neural network model may be obtained by training other devices, and the other devices may send the trained third neural network model to the terminal for use.

[0204] For example, the operation of training to obtain the third neural network model may be: obtaining a plurality of third training samples, and training the neural network model using the plurality of third training samples to obtain the third neural network model.

[0205] The plurality of third training samples may be pre-set. Each of the plurality of third training samples includes input data and a sample tag, wherein the input data includes a certain portrait image and key features of the human body of the portrait contained in the portrait image and key features of the human body corresponding to the posture of the portrait when the portrait is uttering the speech, and the sample tag is the portrait image of the portrait when the portrait is uttering the speech.

[0206] The operation of training the neural network model using the multiple third training samples to obtain the third neural network model is similar to the operation of training the neural network model using the multiple first training samples to obtain the first neural network model as described above, and will not be described in detail in the embodiments of the present application.

[0207] The second method: the terminal obtains image features of the portrait image, inputs the image features, first human key point features and second human key point features into a fourth neural network model, and obtains a target portrait image output by the fourth neural network model.

[0208] For example, the image feature may include features such as facial texture and skin color of the portrait contained in the portrait image, which is not limited in the embodiments of the present application. The image feature may be a 2D feature or a 3D feature, which is not limited in the embodiments of the present application. For example, the 3D feature may be determined based on Nerf and GAN technology. The 3D feature may be Triplane information.

[0209] Optionally, the terminal may input the portrait image into a fifth neural network model to obtain image features output by the fifth neural network model. The fifth neural network model is used to extract image features. Optionally, the fifth neural network model may be a lightweight neural network model. For example, the fifth neural network model may be a lightweight convolutional neural network model, or may be a lightweight Transformer neural network model, etc., which is not limited in the embodiments of the present application.

[0210] The fourth neural network model is used to generate a target portrait image according to the image feature, the first human key point feature and the second human key point feature. The human key points of the portrait contained in the target portrait image meet the human key point constraints corresponding to the first human key point feature and the second human key point feature, and the human key point features of the portrait contained in the target portrait image are generally close to the second human key point features.

[0211] As an example, if the image feature, the first human key point feature and the second human key point feature are all 3D features, then after the image feature, the first human key point feature and the second human key point feature are input into the fourth neural network model, a 3D portrait model will be constructed inside the fourth neural network model, and the 3D portrait model will be projected and rendered into a 2D portrait image under a specific perspective and then output.

[0212] Optionally, the fourth neural network model may be a lightweight neural network model. For example, the fourth neural network model may be a lightweight convolutional neural network model, or may be a lightweight Transformer neural network model, etc., which is not limited in the embodiments of the present application.

[0213] For example, the fourth neural network model may be obtained by training the terminal. Alternatively, the fourth neural network model may be obtained by training other devices, and the other devices may send the trained fourth neural network model to the terminal for use.

[0214] For example, the operation of training to obtain the fourth neural network model may be: obtaining a plurality of fourth training samples, and training the neural network model using the plurality of fourth training samples to obtain the fourth neural network model.

[0215] The plurality of fourth training samples may be pre-set. Each of the plurality of fourth training samples includes input data and a sample tag, wherein the input data includes image features of a certain portrait image, human body key point features of the portrait contained in the portrait image, and human body key point features corresponding to the posture of the portrait when the portrait makes a speech, and the sample tag is the portrait image of the portrait when the portrait makes the speech.

[0216] The operation of training the neural network model using the multiple fourth training samples to obtain the fourth neural network model is similar to the operation of training the neural network model using the multiple first training samples to obtain the first neural network model as described above, and will not be described in detail in the embodiments of the present application.

[0217] The third method: the terminal obtains the first emotion information corresponding to the portrait image and the second emotion information corresponding to the voice clip, and inputs the portrait image, the first human body key point feature, the second human body key point feature, the first emotion information and the second emotion information into the sixth neural network model to obtain the target portrait image output by the sixth neural network model.

[0218] The first emotion information is used to indicate the emotion of the portrait contained in the portrait image. Providing the first emotion information to the sixth neural network model can enable the sixth neural network model to remove the original facial expression of the portrait contained in the portrait image so as to reconstruct a more accurate facial expression.

[0219] The second emotion information is used to indicate the emotion of the person who made the speech segment. The second emotion information is provided to the sixth neural network model so that the sixth neural network model can reconstruct the facial expression of the person.

[0220] The emotional information may include happiness, sadness, fear, surprise, interest, anger, contempt, shyness, etc., which is not limited in the embodiments of the present application.

[0221] The sixth neural network model is used to adjust the portrait in the portrait image according to the first human key point feature, the second human key point feature, the first emotional information, and the second emotional information to obtain a target portrait image. The human key points of the portrait included in the target portrait image meet the human key point constraints corresponding to the first human key point feature and the second human key point feature, and the human key point features of the portrait included in the target portrait image are generally close to the second human key point feature. The emotion expressed by the facial expression of the portrait included in the target portrait image is the emotion indicated by the second emotional information.

[0222] As an example, if the first human key point feature and the second human key point feature are both 3D features, then after the portrait image, the first human key point feature, the second human key point feature, the first emotion information and the second emotion information are input into the sixth neural network model, a 3D portrait model will be constructed inside the sixth neural network model, and the 3D portrait model will be projected and rendered into a 2D portrait image under a specific perspective and then output.

[0223] Optionally, the sixth neural network model may be a lightweight neural network model. For example, the sixth neural network model may be a lightweight convolutional neural network model, or may be a lightweight Transformer neural network model, etc., which is not limited in the embodiments of the present application.

[0224] For example, the sixth neural network model may be obtained by training the terminal. Alternatively, the sixth neural network model may be obtained by training other devices, and the other devices may send the trained sixth neural network model to the terminal for use.

[0225] For example, the operation of training to obtain the sixth neural network model may be: obtaining multiple sixth training samples, and training the neural network model using the multiple sixth training samples to obtain the sixth neural network model.

[0226] The plurality of sixth training samples may be pre-set. Each of the plurality of sixth training samples includes input data and a sample tag, the input data including a certain portrait image, key features of the human body of the portrait contained in the portrait image and key features of the human body corresponding to the posture of the portrait when the portrait speaks, emotional information of the portrait contained in the portrait image and emotional information of the portrait when the portrait speaks, and the sample tag is the portrait image of the portrait when the portrait speaks.

[0227] The operation of training the neural network model using the multiple sixth training samples to obtain the sixth neural network model is similar to the operation of training the neural network model using the multiple first training samples to obtain the first neural network model as described above, and will not be described in detail in the embodiments of the present application.

[0228] In some embodiments, the terminal may input the portrait image into a first emotion recognition model to obtain emotion information output by the first emotion recognition model, where the emotion information is first emotion information.

[0229] The first emotion recognition model is used to recognize the emotion of the person contained in the portrait image. The first emotion recognition model can be a lightweight neural network model. For example, the first emotion recognition model can be a lightweight convolutional neural network model, or can be a lightweight Transformer neural network model, etc., which is not limited in the embodiments of the present application.

[0230] For example, the first emotion recognition model may be obtained by training the terminal. Alternatively, the first emotion recognition model may be obtained by training other devices, and the other devices may send the trained first emotion recognition model to the terminal for use.

[0231] For example, the operation of training to obtain the first emotion recognition model may be: obtaining multiple training samples, and using the multiple training samples to train the neural network model to obtain the first emotion recognition model. The multiple training samples may be pre-set. Each training sample in the multiple training samples includes input data and a sample tag, the input data is a portrait image, and the sample tag is the emotion information of the portrait contained in the portrait image.

[0232] The operation of using the multiple training samples to train the neural network model to obtain the first emotion recognition model is similar to the operation of using the multiple first training samples to train the neural network model to obtain the first neural network model as described above, and the embodiments of the present application will not be repeated here.

[0233] In some embodiments, the terminal may input the voice segment into a second emotion recognition model to obtain emotion information output by the second emotion recognition model, where the emotion information is the second emotion information.

[0234] The second emotion recognition model is used to recognize the emotion of the person who makes the speech. The second emotion recognition model can be a lightweight neural network model. For example, the second emotion recognition model can be a lightweight convolutional neural network model, or can be a lightweight Transformer neural network model, etc., which is not limited in the embodiments of the present application.

[0235] For example, the second emotion recognition model may be obtained by training the terminal. Alternatively, the second emotion recognition model may be obtained by training other devices, and the other devices may send the trained second emotion recognition model to the terminal for use.

[0236] For example, the operation of training to obtain the second emotion recognition model may be: obtaining multiple training samples, and using the multiple training samples to train the neural network model to obtain the second emotion recognition model. The multiple training samples may be pre-set. Each training sample in the multiple training samples includes input data and a sample tag, the input data is speech, and the sample tag is the emotion information of the person who makes the speech.

[0237] The operation of using the multiple training samples to train the neural network model to obtain the second emotion recognition model is similar to the operation of using the multiple first training samples to train the neural network model to obtain the first neural network model as described above, and the embodiments of the present application will not be described in detail.

[0238] The fourth method: the terminal obtains the image features of the portrait image and the first emotion information corresponding to the portrait image, and obtains the second emotion information corresponding to the voice clip, and inputs the image features, the first human body key point features, the second human body key point features, the first emotion information, and the second emotion information into the seventh neural network model to obtain the target portrait image output by the seventh neural network model.

[0239] The seventh neural network model is used to generate a target portrait image according to the image feature, the first human key point feature, the second human key point feature, the first emotional information and the second emotional information. The human key points of the portrait contained in the target portrait image meet the human key point constraints corresponding to the first human key point feature and the second human key point feature, and the human key point features of the portrait contained in the target portrait image are generally close to the second human key point feature. The emotion expressed by the facial expression of the portrait contained in the target portrait image is the emotion indicated by the second emotional information.

[0240] As an example, if the image feature, the first human key point feature and the second human key point feature are all 3D features, then after the image feature, the first human key point feature, the second human key point feature, the first emotion information and the second emotion information are input into the seventh neural network model, a 3D portrait model will be constructed inside the seventh neural network model, and the 3D portrait model will be projected and rendered into a 2D portrait image under a specific perspective and then output.

[0241] Optionally, the seventh neural network model may be a lightweight neural network model. For example, the seventh neural network model may be a lightweight convolutional neural network model, or may be a lightweight Transformer neural network model, etc., which is not limited in the embodiments of the present application.

[0242] For example, the seventh neural network model may be obtained by training the terminal. Alternatively, the seventh neural network model may be obtained by training other devices, and the other devices may send the trained seventh neural network model to the terminal for use.

[0243] For example, the operation of training to obtain the seventh neural network model may be: obtaining multiple seventh training samples, and training the neural network model using the multiple seventh training samples to obtain the seventh neural network model.

[0244] The plurality of seventh training samples may be pre-set. Each of the plurality of seventh training samples includes input data and a sample tag, the input data including image features of a certain portrait image, key features of the human body of the portrait contained in the portrait image and key features of the human body corresponding to the posture of the portrait when the portrait speaks, emotional information of the portrait contained in the portrait image and emotional information of the portrait when the portrait speaks, and the sample tag is the portrait image of the portrait when the portrait speaks.

[0245] The operation of using the multiple seventh training samples to train the neural network model to obtain the seventh neural network model is similar to the operation of using the multiple first training samples to train the neural network model to obtain the first neural network model as described above, and the embodiments of the present application will not be described in detail.

[0246] It should be noted that, in some embodiments, in order to meet the real-time requirements of virtual video during voice calls, the neural network models used in the embodiments of the present application (i.e., the first to seventh neural network models, and the first emotion recognition model and the second emotion recognition model) can all be lightweight neural network models. This lightweight is reflected in that these neural network models can be carried on the neural network processing unit (NPU) or graphics processing unit (GPU) in the terminal, and can perform real-time computing and processing in the terminal, such as outputting more than 24 frames per second.

[0247] For ease of understanding, the following Fig. 9 and Fig.10 To exemplarily illustrate the virtual video function provided in the embodiment of the present application.

[0248] like Fig. 9 As shown, first, voice data is acquired. The voice data may be voice data sent by a remote call device. The voice data may include multiple voice segments.

[0249] Secondly, obtain a portrait image. As an example, the speech recognizer can perform speech recognition on the acquired voice data to obtain text information, and determine the occupation information based on the text information. After that, the portrait image corresponding to the occupation information can be obtained from the cloud or locally. Optionally, the speech recognizer can be used only at the beginning of the voice call, and the operation can be terminated after the occupation information is determined. As another example, based on the contact information (such as the contact name corresponding to the call number, or the note name of the call account), an image marked with the contact information can be searched from the gallery as a portrait image. As another example, the user can select an image from the gallery as a portrait image.

[0250] After the portrait image is obtained through the above operations, the obtained portrait image can be called an initial portrait image. The initial portrait image can be pre-processed, such as performing a portrait cropping operation and a background blur operation, to obtain a new portrait image for subsequent processes.

[0251] Afterwards, according to the voice-driven image algorithm, each of the multiple voice segments drives the portrait image to obtain multiple target portrait images, that is, to obtain a virtual video. The virtual video can then be displayed.

[0252] In some embodiments, Fig.10As shown, the speech-driven image algorithm can be: the key point recognizer obtains the first human key point feature corresponding to the portrait image, and optionally, the key point recognizer is only run once for the portrait image. The posture estimator obtains the second human key point feature corresponding to the voice segment based on the first human key point feature and a voice segment, and the posture estimator needs to be run for each voice segment. The image emotion recognizer obtains the first emotion information corresponding to the portrait image, and optionally, the image emotion recognizer is only run once for the portrait image. The speech emotion recognizer obtains the second emotion information corresponding to the voice segment, and the speech emotion recognizer needs to be run for each voice segment. The image encoder obtains the image feature of the portrait image, and optionally, the image encoder is only run once for the portrait image. The image reconstructor generates the target portrait image based on the image feature, the first human key point feature, the second human key point feature, the first emotion information, and the second emotion information.

[0253] It should be noted that the virtual video function provided in the embodiment of the present application can be applied not only to voice call scenarios, but also to other scenarios.

[0254] For example, the virtual video function can be applied to a voice message scenario. The voice message can be a voice message in a text message received by the terminal, or a voice message sent by other accounts received by an instant messaging application installed in the terminal.

[0255] In this case, a virtual video switch can be set for the voice message scene, and the user can turn on or off the virtual video switch to turn on or off the virtual video function in the voice message scene. After the terminal receives the voice message, when the virtual video function in the voice message scene is turned on, the portrait image can be driven according to the voice data in the voice message to obtain a virtual video for display. In this way, the voice message is read aloud in the form of a virtual portrait, thereby realizing the visualization of the voice message and improving the user experience.

[0256] Specifically, after receiving a voice message, the terminal can first obtain a portrait image. For example, if the voice message is a voice message in a text message, then when the number sending the text message is a stored contact number, the terminal can obtain the contact name corresponding to the contact number, and then search for an image marked with the contact name from the gallery as a portrait image; if the voice message is a voice message sent by another account received in an instant messaging application, then when the other account has a note name, the terminal can search for an image marked with the note name from the gallery as a portrait image. Alternatively, the terminal can use a preset image as a portrait image, which can be a default setting of the terminal, or can be selected by the user in advance from the gallery.

[0257] Afterwards, the terminal can drive the portrait image according to the voice data in the voice message to obtain a virtual video for display. The specific operation is similar to the operation of step 602 above, and the embodiment of the present application will not be repeated here.

[0258] For example, the virtual video function can be applied in a voicemail scenario.

[0259] In this case, a virtual video switch can be set for the voicemail scenario, and the user can turn on or off the virtual video switch to turn on or off the virtual video function in the voicemail scenario. After the terminal receives the voicemail, when the virtual video function in the voicemail scenario is turned on, the portrait image can be driven according to the voice data in the voicemail to obtain a virtual video for display. In this way, the voicemail is read aloud in the form of a virtual portrait, thereby realizing the visualization of the voicemail and improving the user experience.

[0260] Specifically, after receiving the voicemail, the terminal can first obtain a portrait image. For example, if the account that sent the voicemail has a note name, the terminal can search for an image marked with the note name from the gallery as the portrait image. Alternatively, the terminal can use a preset image as the portrait image, which can be a default setting of the terminal or can be selected by the user from the gallery in advance.

[0261] Afterwards, the terminal can drive the portrait image according to the voice data in the voicemail to obtain a virtual video for display. The specific operation is similar to the operation of step 602 above, and the embodiment of the present application will not be repeated here.

[0262] For example, the virtual video function can be applied to various interactive entertainment scenarios. For example, when the terminal receives a segment of voice data recorded by the user through a microphone, the preset portrait image can be driven according to the segment of voice data to obtain a virtual video for display. The specific operation is similar to the operation of step 602 above, and the embodiment of the present application will not be repeated. In this way, the user's own recorded voice is read aloud in the form of a virtual portrait, which improves the fun.

[0263] The terminal involved in the embodiment of the present application is described below.

[0264] Fig.11 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. Fig.11The terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a SIM card interface 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0265] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal 100. In other embodiments of the present application, the terminal 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0266] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a GPU, an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or an NPU, etc. Different processing units may be independent devices or integrated into one or more processors.

[0267] The controller may be the nerve center and command center of the terminal 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0268] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0269] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0270] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the terminal 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created by the terminal 100 during use (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0271] The wireless communication function of the terminal 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0272] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied on the terminal 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0273] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the terminal 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0274] The terminal 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0275] The terminal 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.

[0276] The terminal 100 can implement audio functions, such as music playing and recording, through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D and the application processor.

[0277] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the terminal 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The terminal 100 can support 1 or N SIM card interfaces, where N is an integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The terminal 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal 100 and cannot be separated from the terminal 100.

[0278] Next, the software system of the terminal 100 will be described.

[0279] The software system of the terminal 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system of the layered architecture is used as an example to exemplify the software system of the terminal 100.

[0280] Fig.12 1 is a block diagram of a software system of a terminal 100 provided in an embodiment of the present application. Fig.12 The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into an application layer, an application framework layer, an Android runtime (AndroidRuntime) and a system layer, and a kernel layer.

[0281] The application layer can include a series of application packages. Fig.12 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, virtual video, Bluetooth, music, video, short message, etc.

[0282] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Fig.12As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc. The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make these data accessible to applications. These data may include videos, images, audio, dialed and received calls, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build the display interface of the application. The display interface can be composed of one or more views, for example, including a view for displaying a text message notification icon, a view for displaying text, and a view for displaying pictures. The phone manager is used to provide communication functions of the terminal 100, such as management of call status (including connected, hung up, etc.). The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc. The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of an icon or scroll bar text, such as a notification of an application running in the background. The notification manager can also be a notification that appears on the screen in the form of a dialog window, such as a text message in the status bar, a reminder sound, an electronic device vibrating, an indicator light flashing, etc.

[0283] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0284] The system layer can include multiple functional modules, such as: surface manager, media library, 3D graphics processing library (such as: OpenGL ES), 2D graphics engine (such as: SGL), etc. The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc. The 2D graphics engine is a drawing engine for 2D drawing.

[0285] The kernel layer is the layer between hardware and software. The kernel layer can include display drivers, camera drivers, audio drivers, sensor drivers, etc.

[0286] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (such as: coaxial cable, optical fiber, data subscriber line (Digital Subscriber Line, DSL)) or wireless (such as: infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a digital versatile disc (DVD)), or a semiconductor medium (such as a solid state disk (SSD)).

[0287] The above are optional embodiments provided for the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the technical scope disclosed in the present application shall be included in the protection scope of the present application.

Claims

1. A voice call method, characterized in that: The method comprises: If a voice call operation is detected, then in a case where the virtual video function is in an on state when the voice call operation is detected, voice data sent by the remote call device is obtained, the voice data including a plurality of voice segments, and each two adjacent voice segments in the plurality of voice segments have an overlapping portion; If the call number is a stored contact number, obtain the contact name corresponding to the contact number, and search for a portrait image marked with the contact name from the gallery; and within a first preset time after the start of the voice call, determine the occupation information according to the voice data, and send a portrait acquisition request carrying the occupation information to the server when the occupation information is determined; If a portrait image marked with the contact name is found in the gallery, and the occupation information is not determined, the portrait image found in the gallery is used as the portrait image used in this virtual video; if the portrait image marked with the contact name is not found in the gallery, and the portrait image sent by the server is received, the received portrait image is used as the portrait image used in this virtual video; if the portrait image marked with the contact name is found in the gallery, and the portrait image sent by the server is received, the portrait image found in the gallery is used as the portrait image used in this virtual video; if the portrait image marked with the contact name is not found in the gallery, and the portrait image sent by the server is not received, then if the user does not select a portrait image through the gallery entrance after the voice call starts, a reminder message for reminding the user to select a portrait is displayed, and if a trigger operation on the gallery entrance is detected, a portrait selection interface including multiple images in the gallery is displayed, and if a selection operation on one of the multiple images is received, the one image is determined as the portrait image used in this virtual video; performing a portrait cropping operation and a background blurring operation on the portrait image in sequence to obtain a processed portrait image, wherein the portrait cropping operation refers to cropping a portion including the portrait from the portrait image, and the background blurring operation refers to blurring a background portion other than the portrait in the portrait image; Acquire first human key point features corresponding to the processed portrait image and image features of the processed portrait image, and input the processed portrait image into a first emotion recognition model to obtain first emotion information output by the first emotion recognition model, wherein the first emotion information is used to indicate the emotion of the portrait contained in the processed portrait image; Whenever a voice segment is obtained, a second human key point feature corresponding to the voice segment is obtained according to the first human key point feature and the voice segment, and the voice segment is input into a second emotion recognition model to obtain second emotion information output by the second emotion recognition model, where the second emotion information is used to indicate an emotion of a person who emits the voice segment; Inputting the image features, the first human key point features, the second human key point features, the first emotion information and the second emotion information into a seventh neural network model to obtain a target portrait image output by the seventh neural network model, wherein the seventh neural network model is used to remove the original facial expression of the portrait in the processed portrait image according to the first emotion information, and is used to reconstruct the facial expression of the portrait in the target portrait image according to the second emotion information; Each time a target portrait image is obtained, the target portrait image is displayed during the voice call.

2. The method according to claim 1, characterized in that The method further comprises: If it is detected that the virtual video switch is turned on, the virtual video function is switched from an off state to an on state; If it is detected that the virtual video switch is turned off, the virtual video function is switched from an on state to an off state; The virtual video switch is arranged on the voice call interface, or the virtual video switch is displayed floatingly on the upper layer of the voice call interface, or the virtual video switch is arranged on the notification bar.

3. The method according to claim 1, characterized in that The determining of occupation information according to the voice data comprises: Performing speech recognition on the speech data to obtain text information; If the text information contains preset keywords, the occupation information corresponding to the preset keywords contained in the text information is obtained.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: If the virtual video function is in an off state when the voice call operation is detected, then when it is detected that the virtual video function is switched from an off state to an on state during the voice call, the occupational information is determined based on the voice data within the first preset time period from the current moment, and a portrait acquisition request carrying the occupational information is sent to the server.

5. The method according to claim 4, characterized in that The determining of occupation information according to the voice data within the first preset time period from the current moment includes: When the current call duration is less than or equal to the second preset duration, the occupation information is determined based on the voice data within the first preset duration starting from the current moment.

6. The method according to any one of claims 1 to 3, characterized in that: The first human body key point feature, the second human body key point feature and the image feature are all two-dimensional features or three-dimensional features.

7. A terminal, characterized in that: The terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method according to any one of claims 1 to 6 when executed by the processor.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 6.