A method and device for controlling digital human broadcasting style
Through diversified control based on the digital human broadcasting style, the problem in the existing technology that the similarity of the digital human AIGC voice control model affects the user experience is solved, diversified digital human broadcasting style output is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202311568987.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-22
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-11-22
AI Technical Summary
In terms of voice control, existing digital human AIGC technology has problems such as increased audio data collection requirements and model similarity affecting user experience, making it difficult to meet diverse broadcasting needs.
By determining the program type based on the content to be broadcast, selecting a matching broadcast style, obtaining the speech rate and pause settings of the digital human model associated with the style, performing speech synthesis of word segmentation audio, building an audio library and calculating the matching degree to select the most suitable audio to achieve voice output in different program scenarios.
It realizes diversified broadcast style control of different digital human models, improves user experience, makes model pronunciation more consistent with program scenes, and meets diverse needs.
Smart Images

Figure CN117558259B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of video processing technology, and in particular relates to a method and device for controlling the broadcasting style of a digital human. Background Art
[0002] The video technology of digital human AIGC is gradually being applied in many industries such as e-commerce, advertising, news broadcasting, training, education, etc. The current development direction of digital human AIGC technology is to make digital humans closer to real people, which is mainly reflected in two aspects: one is posture control and the other is voice control.
[0003] In terms of voice control, it is usually necessary to collect more audio data to build an audio library, but this still cannot meet the needs of the increasing number of digital human models. Most digital human models still have similarities in voice processing, which affects the user experience. Summary of the invention
[0004] In order to solve at least one of the above technical problems, the present application provides a method and device for controlling the broadcasting style of a digital human, which are used to perform voice control output based on the broadcasting style of the digital human.
[0005] The first aspect of the present application is a method for controlling the broadcasting style of a digital human, which mainly includes:
[0006] Determining the type of program to be broadcasted by the digital human based on the content to be broadcasted;
[0007] Selecting a broadcasting style that matches the program type, wherein the broadcasting style is used to characterize the broadcasting intonation of different program types;
[0008] Determine a digital human model that needs to be reported from a plurality of digital human models associated with the reporting style;
[0009] Obtaining the speech speed setting value and pause setting value of the selected digital human model;
[0010] Selecting audio of each word segment of the content to be broadcast according to the speech speed setting value, the pause setting value and the broadcast style;
[0011] Perform speech synthesis on the word segmentation audio.
[0012] Preferably, determining a digital human model that needs to be reported from a plurality of digital human models associated with the reporting style comprises:
[0013] Determine whether the program corresponding to the content to be broadcast has a designated digital human model. If so, directly select the designated digital human model. If not, randomly select a digital human model from multiple digital human models associated with the broadcast style.
[0014] Preferably, the step of selecting the audio segments of the content to be broadcast further includes constructing an audio library, and the step of constructing the audio library includes:
[0015] Perform word segmentation and part-of-speech tagging on the original text used to construct the audio library;
[0016] Collect the sound through the voice collection device and cut out the audio of each word;
[0017] According to the broadcast style probabilities corresponding to different original texts, the broadcast style probabilities are assigned to each word segmentation audio in the original text, and the broadcast style vectors of each word segmentation audio are constructed;
[0018] The speaking speed of each audio of the same word segment is adjusted respectively to expand the number of audios of the word segment.
[0019] Preferably, the audio of each word segment of the selected content to be broadcast includes:
[0020] Step S511, determining a corresponding audio set according to the text content of the segmented words;
[0021] Step S512: For each selected audio in the audio set, the matching degree between the selected audio and the digital human model with the set speech speed setting value, pause setting value and broadcasting style is calculated according to the attribute value of the selected audio;
[0022] Step S513: Select the audio with the smallest matching degree as the output audio of the word segmentation.
[0023] Preferably, calculating the matching degree y includes:
[0024]
[0025] Among them, a is the part of speech of the selected audio, a1 is the part of speech of the target program text to be broadcast, b is the speech speed of the selected audio, b1 is the speech speed setting value of the selected digital human model, b2 is the pause setting value of the selected digital human model, c i are the values in the broadcast style vector of the audio to be selected, d i are the values in the broadcast style vector of the selected digital human model. x1, x2, x3 are part of speech, speaking speed, and broadcast style weight respectively, and n is the number of broadcast styles.
[0026] In a second aspect of the present application, a digital human broadcasting style control device mainly comprises:
[0027] A program type determination module, used to determine the type of program to be broadcasted by the digital human based on the content to be broadcasted;
[0028] A broadcast style determination module, used to select a broadcast style that matches the program type, wherein the broadcast style is used to characterize the broadcast tone of different program types;
[0029] A digital human model selection module, used to determine a digital human model that needs to be reported from a plurality of digital human models associated with the reporting style;
[0030] A digital human model attribute determination module is used to obtain a speech speed setting value and a pause setting value of the selected digital human model;
[0031] A word segmentation audio selection module, used to select each word segmentation audio of the content to be broadcast according to the speech speed setting value, the pause setting value and the broadcast style;
[0032] The audio synthesis module is used to perform speech synthesis on the word segmentation audio.
[0033] Preferably, the digital human model selection module includes:
[0034] The designated digital human model query module is used to determine whether the program corresponding to the content to be broadcast has a designated digital human model. If the designated digital human model exists, the designated digital human model is directly selected. If the designated digital human model does not exist, a digital human model is randomly selected from multiple digital human models associated with the broadcast style.
[0035] Preferably, the digital human broadcasting style control device further includes an audio library construction module, and the audio library construction module includes:
[0036] A word segmentation unit, which is used to segment and tag the original text used to construct the audio library;
[0037] The audio cutting unit is used to collect sound through a voice collection device and cut out the audio of each word;
[0038] A broadcast style vector assignment unit is used to assign the broadcast style probability to each word segmentation audio in the original text according to the broadcast style probability corresponding to different original texts, so as to construct a broadcast style vector for each word segmentation audio;
[0039] The audio quantity expansion unit is used to adjust the speaking speed of each audio of the same word segmentation and expand the number of audios of the word segmentation.
[0040] Preferably, the word segmentation audio selection module includes:
[0041] An audio set determination unit, used to determine a corresponding audio set according to the text content of the segmented words;
[0042] A matching degree calculation unit, configured to calculate, for each selected audio in the audio set, a matching degree between the selected audio and a digital human model having a set speech speed setting value, a pause setting value, and a broadcasting style according to its attribute value;
[0043] The audio selection unit is used to select the audio with the smallest matching degree as the output audio of the word segmentation.
[0044] Preferably, in the matching degree calculation unit, calculating the matching degree y includes:
[0045]
[0046] Among them, a is the part of speech of the selected audio, a1 is the part of speech of the target program text to be broadcast, b is the speech speed of the selected audio, b1 is the speech speed setting value of the selected digital human model, b2 is the pause setting value of the selected digital human model, c i are the values in the broadcast style vector of the audio to be selected, d i are the values in the broadcast style vector of the selected digital human model. x1, x2, x3 are the part of speech, speech speed and broadcast style weights respectively, and n is the number of broadcast styles.
[0047] In a third aspect of the present application, a computer system includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-mentioned digital human broadcasting style control method.
[0048] A fourth aspect of the present application is a readable storage medium, which stores a computer program. When the computer program is executed by a processor, it is used to implement the above-mentioned digital human broadcast style control method.
[0049] This application can control different digital human models and broadcast in different voices, which can make the model pronunciation more in line with the program scene and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a flow chart of an implementation of the digital human broadcasting style control method of the present application.
[0051] Figure 2 A schematic diagram of the structure of a computer device of a terminal or server suitable for implementing an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical scheme and advantages of the implementation of this application clearer, the technical scheme in the implementation of this application will be described in more detail in combination with the drawings in the implementation of this application. In the drawings, the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The described implementation is a part of the implementation of this application, not all of the implementations. The implementation described below with reference to the drawings is exemplary and is intended to be used to explain this application, and cannot be understood as a limitation on this application. Based on the implementation in this application, all other implementations obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. The implementation of this application is described in detail below in combination with the drawings.
[0053] According to the first aspect of the present application, a method for controlling the broadcasting style of a digital human is provided, such as Figure 1 As shown, it mainly includes:
[0054] Step S100: determining the type of program to be broadcasted by the digital human based on the content to be broadcasted.
[0055] The program types of the present application include multiple types, such as news programs or entertainment programs divided by media types, and programs for young people, elderly people, men, women, and pregnant women divided by audience groups.
[0056] In this step, the program type can be manually specified based on the specific content of the program, or it can be automatically identified by a machine. For example, in some optional implementations, a program type identification model is trained based on a convolutional neural network (CNN), and the program type identification model identifies the specific program type. The specific steps for constructing the program type identification model are as follows:
[0057] Step S101: Acquire training data, wherein the training data includes input and expected output, the input is text data, and the expected output is the program type corresponding to the input text.
[0058] Step S102: Set the vocabulary size and sequence length.
[0059] Step S103: Use Tokenizer to perform text preprocessing.
[0060] In step S102 and step S103, Tokenizer is a class used to vectorize text and convert text into a sequence. When processing language and text, computers cannot understand the meaning of text. Usually, a word (a single Chinese character or word) is converted into a positive integer, and a text is turned into a sequence. The sequence is then vectorized, and the vectorized data is sent to the model for processing. Tokenizer allows two methods to vectorize a text corpus: convert each text into an integer sequence (each integer is an index in the dictionary), or convert it into a vector, where the coefficient of each token can be a binary value, word frequency, TF-IDF weight, etc.
[0061] Step S104: Create a CNN model.
[0062] Step S105: compile and train the model.
[0063] In the above steps S104 and S105, the preprocessed text is input into the CNN model for training to obtain a program type recognition model. Specifically, the preprocessed text is input into the CNN model with initial given parameters, and the output is obtained through calculation. The output is compared with the expected output, and the comparison result is used to modify the given parameters in the CNN model until the difference between the output and the expected output is within a threshold range, or all the training data has been used up.
[0064] After the above training, a better program type recognition model can be obtained. After the specified text is input, or the system reads the text content to be broadcast, it will automatically give the specific program type.
[0065] Step S200: Select a broadcast style that matches the program type, where the broadcast style is used to characterize the broadcast intonation of different program types.
[0066] Different types of information have different broadcasting styles. For example, in news programs, the announcer should use a serious and steady tone to show the seriousness and authority of the news, while in entertainment programs, the announcer can use a relaxed and lively tone to enhance entertainment and affinity. According to the cultural background, language habits and psychological needs of the audience, for example, in programs for young people, the announcer can use popular language, music and cultural elements to attract the attention of young audiences.
[0067] In this step, the database at least includes a reporting style search table, in which different reporting styles corresponding to different information types are pre-stored. The corresponding reporting style can be directly output by querying the database according to the type of information to be reported.
[0068] In some optional implementations, the broadcasting style of the digital human model is generally represented by a broadcasting style vector, and each value in the vector represents the proportion of the broadcasting style at the corresponding position. For example, for an embodiment with four broadcasting styles of [serious, steady, light, and soothing], for a digital human model in which seriousness accounts for 50%, steadiness accounts for 50%, and the rest is 0, the broadcasting style vector of the digital human model is [0.5, 0.5, 0, 0].
[0069] In addition, in actual operation, step S100 and step S200 can be combined, and a broadcast style recognition model can be directly trained based on a convolutional neural network (CNN), and its principle is similar to the construction method of the program type recognition model in step S100, and only the expected output is changed. In this way, the broadcast style can be directly obtained according to the content to be broadcast.
[0070] Step S300: Determine a digital human model that needs to be reported from a plurality of digital human models associated with the reporting style.
[0071] In some optional implementations, determining a digital human model that needs to be announced from a plurality of digital human models associated with the announcement style includes:
[0072] Determine whether the program corresponding to the content to be broadcast has a designated digital human model. If the designated digital human model exists, directly select the designated digital human model. If the designated digital human model does not exist, randomly select a digital human model from multiple digital human models associated with the broadcast style, wherein the multiple digital human models associated with the broadcast style refer to a set of digital human models whose proportion in the broadcast style vector is not less than that of other broadcast styles.
[0073] In this embodiment, at the system construction level, multiple digital human models are usually set up, and these digital human models are used to broadcast different programs, for example, digital human model A broadcasts program A, digital human model B broadcasts program B, and it is also possible that digital human model A broadcasts multiple programs such as A1 and A2, but it is customary that the broadcasting style of a certain digital human model needs to be solidified to prevent the audience from role-playing and affecting the experience. The number of broadcasting styles is generally limited, usually set to less than ten, but there are many digital human models, so this application sets multiple digital human models under each broadcasting style. When broadcasting, if the program does not specify a digital human model for broadcasting, a digital human model can be randomly selected according to the situation. If the program has a designated digital human model for broadcasting, the digital human model can be directly selected.
[0074] Step S400: Obtain the speech rate setting value and pause setting value of the selected digital human model.
[0075] In the present application, the speech rate setting value and the pause setting value are fixed in the digital human model, and are used to indicate the sentence output speed of the digital human model and the pause time between sentences.
[0076] In some optional implementations, the speech rate setting value and the pause setting value are represented by percentages, and the larger the percentage value, the faster the speech rate and the shorter the pause time.
[0077] According to the above description, different digital human models of the present application are distinguished by broadcasting style, speech speed and pause. Selecting a digital human model is actually selecting different broadcasting styles, different speech speed attributes and different pause attributes for voice output. The broadcasting style is usually selected by the system according to the program type, and the speech speed and pause attributes can be specified by the console.
[0078] Step S500: Select the audio of each word segment of the content to be broadcast according to the speech speed setting value, the pause setting value and the broadcast style.
[0079] In this step, a specific voice is selected in the audio library.
[0080] Here we need to build an audio library first. The audio library stores multiple audio data corresponding to each word segmentation, that is, each word segmentation corresponds to an audio set, and each audio in the audio set has different attributes. The specific steps include the following:
[0081] Step S501: segment and tag the original text used to construct the audio library. Segment and tag the original text to be broadcast based on the existing hidden Markov model, convert the segmentation result into text form, and separate each word by a specific separator, such as "#".
[0082] Step S502, collect sound through voice collection equipment, and then obtain the start and end time points corresponding to each word in the audio according to the interval and frequency characteristics in the recording data, combined with the word segmentation results obtained in the above steps, and then cut out the audio of the corresponding word, save it as PCM format audio, and build the corresponding relationship between word segmentation and audio. The more sound resources collected, the more complete the constructed word segmentation-audio. Each word segmentation can correspond to multiple audios with different tones and speech speeds, which are used to represent different emotions or different parts of speech. Here, two attributes, text content and part of speech, are first added to each audio of each word segmentation.
[0083] Step S503: assign the broadcast style probability to each word segmentation audio in the original text according to the broadcast style probability corresponding to different original texts, and construct a broadcast style vector for each word segmentation audio.
[0084] For example, the broadcasting style includes four categories: serious, steady, brisk, and soothing. A piece of original text is marked as seriousness accounting for 70%, steady accounting for 30%, and the rest is 0. In the collected speech corresponding to the original text, the audio broadcasting style attribute of each word is set to the vector [0.7, 0.3, 0, 0].
[0085] Step S504: adjust the speech speed of each audio of the same segmentation to expand the number of audios. Here, the audio can be processed by interpolation to increase the audio duration, or the audio can be discretized according to a set step length to reduce the audio duration. This step adds a speech speed attribute to each audio of each segmentation, and the same audio is divided into at least fast, medium and slow speeds to form three expanded audios.
[0086] Through the above steps, a large number of segmented audios are stored in the audio library, and each segmented audio has four attributes: text content, part of speech, speaking speed, and broadcasting style.
[0087] In an alternative implementation, each participle may also be assigned with sentiment attributes and sentence attributes, where sentiment attributes are, for example, happiness, anger, sadness, or joy, and sentence attributes are, for example, interrogative sentences and exclamatory sentences. It is understandable that the pronunciation of each participle is different under different sentence structures and different emotions, so adding the above two attributes is more helpful in providing rich and emotional speech.
[0088] Based on the audio library constructed above, in step S500, selecting each word segmentation audio of the content to be broadcast specifically includes:
[0089] Step S511, determining a corresponding audio set according to the text content of the segmented words;
[0090] Step S512: For each selected audio in the audio set, the matching degree between the selected audio and the digital human model with the set speech speed setting value, pause setting value and broadcasting style is calculated according to the attribute value of the selected audio;
[0091] Step S513: Select the audio with the smallest matching degree as the output audio of the word segmentation.
[0092] In some optional implementations, in step S512, calculating the matching degree y includes:
[0093]
[0094] Among them, a is the part of speech of the selected audio, a1 is the part of speech of the target program text to be broadcast, b is the speech speed of the selected audio, b1 is the speech speed setting value of the selected digital human model, b2 is the pause setting value of the selected digital human model, c i are the values in the broadcast style vector of the audio to be selected, d iare the values in the broadcast style vector of the selected digital human model. x1, x2, x3 are the part of speech, speech speed and broadcast style weights respectively, and n is the number of broadcast styles.
[0095] Step S600: Perform speech synthesis on the word segmentation audio.
[0096] The second aspect of the present application provides a digital human broadcasting style control device corresponding to the above method, mainly comprising:
[0097] A program type determination module, used to determine the type of program to be broadcasted by the digital human based on the content to be broadcasted;
[0098] A broadcast style determination module, used to select a broadcast style that matches the program type, wherein the broadcast style is used to characterize the broadcast tone of different program types;
[0099] A digital human model selection module, used to determine a digital human model that needs to be reported from a plurality of digital human models associated with the reporting style;
[0100] A digital human model attribute determination module is used to obtain a speech speed setting value and a pause setting value of the selected digital human model;
[0101] A word segmentation audio selection module, used to select each word segmentation audio of the content to be broadcast according to the speech speed setting value, the pause setting value and the broadcast style;
[0102] The audio synthesis module is used to perform speech synthesis on the word segmentation audio.
[0103] In some optional implementations, the digital human model selection module includes:
[0104] The designated digital human model query module is used to determine whether the program corresponding to the content to be broadcast has a designated digital human model. If the designated digital human model exists, the designated digital human model is directly selected. If the designated digital human model does not exist, a digital human model is randomly selected from multiple digital human models associated with the broadcast style.
[0105] In some optional implementations, the digital human broadcasting style control device further includes an audio library construction module, and the audio library construction module includes:
[0106] A word segmentation unit, which is used to segment and tag the original text used to construct the audio library;
[0107] The audio cutting unit is used to collect sound through a voice collection device and cut out the audio of each word;
[0108] A broadcast style vector assignment unit is used to assign the broadcast style probability to each word segmentation audio in the original text according to the broadcast style probability corresponding to different original texts, so as to construct a broadcast style vector for each word segmentation audio;
[0109] The audio quantity expansion unit is used to adjust the speaking speed of each audio of the same word segmentation and expand the number of audios of the word segmentation.
[0110] In some optional implementations, the word segmentation audio selection module includes:
[0111] An audio set determination unit, used to determine a corresponding audio set according to the text content of the segmented words;
[0112] A matching degree calculation unit, configured to calculate, for each selected audio in the audio set, a matching degree between the selected audio and a digital human model having a set speech speed setting value, a pause setting value, and a broadcasting style according to its attribute value;
[0113] The audio selection unit is used to select the audio with the smallest matching degree as the output audio of the word segmentation.
[0114] In some optional implementations, in the matching degree calculation unit, calculating the matching degree y includes:
[0115]
[0116] Among them, a is the part of speech of the selected audio, a1 is the part of speech of the target program text to be broadcast, b is the speech speed of the selected audio, b1 is the speech speed setting value of the selected digital human model, b2 is the pause setting value of the selected digital human model, c i are the values in the broadcast style vector of the audio to be selected, d i are the values in the broadcast style vector of the selected digital human model. x1, x2, x3 are the part of speech, speech speed and broadcast style weights respectively, and n is the number of broadcast styles.
[0117] According to a third aspect of the present application, a computer system includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-mentioned digital human broadcasting style control method.
[0118] According to a fourth aspect of the present application, a readable storage medium stores a computer program, and when the computer program is executed by a processor, it is used to implement the above-mentioned digital human broadcast style control method.
[0119] Reference below Figure 2 It shows a schematic diagram of the structure of a computer device 800 suitable for implementing the embodiments of the present application. Figure 2The computer device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0120] like Figure 2 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage portion 708 into a random access memory (RAM) 803. Various programs and data required for the operation of the device 800 are also stored in the RAM 803. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0121] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.
[0122] In particular, according to the embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above functions defined in the method of the present application are executed. It should be noted that the computer storage medium of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, - but not limited to - a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, an apparatus or a device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, an apparatus or a device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0123] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0124] The modules or units involved in the embodiments described in this application may be implemented by software or hardware. The modules or units described may also be set in a processor, and the names of these modules or units do not constitute limitations on the modules or units themselves in some cases.
[0125] The computer-readable storage medium provided in the fourth aspect of the present application may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed by the device, the data is processed according to the above method.
[0126] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for controlling the broadcasting style of a digital human, characterized in that: include: Determining the type of program to be broadcasted by the digital human based on the content to be broadcasted; Selecting a broadcasting style that matches the program type, wherein the broadcasting style is used to characterize the broadcasting intonation of different program types; Determine a digital human model that needs to be reported from a plurality of digital human models associated with the reporting style; Obtaining the speech speed setting value and pause setting value of the selected digital human model; Selecting audio of each word segment of the content to be broadcast according to the speech speed setting value, the pause setting value and the broadcast style; Perform speech synthesis on the word segmentation audio; The step of selecting the audio of each word of the content to be broadcast further includes constructing an audio library, and the step of constructing the audio library includes: Perform word segmentation and part-of-speech tagging on the original text used to construct the audio library; Collect the sound through the voice collection device and cut out the audio of each word; According to the broadcast style probabilities corresponding to different original texts, the broadcast style probabilities are assigned to each word segmentation audio in the original text, and a broadcast style vector of each word segmentation audio is constructed; Adjust the speech speed of each audio of the same word segmentation to expand the number of audios of the word segmentation; The audio of each word segment of the content to be broadcasted includes: Step S511, determining a corresponding audio set according to the text content of the segmented words; Step S512: For each selected audio in the audio set, the matching degree between the selected audio and the digital human model with the set speech speed setting value, pause setting value and broadcasting style is calculated according to the attribute value of the selected audio; Step S513: Select the audio with the smallest matching degree as the output audio of the word segmentation; Calculating the matching degree y includes: Among them, a is the part of speech of the selected audio, a1 is the part of speech of the target program text to be broadcast, b is the speech speed of the selected audio, b1 is the speech speed setting value of the selected digital human model, b2 is the pause setting value of the selected digital human model, c i is the i-th parameter value in the broadcast style vector of the selected audio, d i is the i-th parameter value in the broadcast style vector of the selected digital human model, x1, x2, x3 are part of speech, speaking speed, and broadcast style weight respectively, and n is the number of broadcast styles.
2. The method for controlling the broadcasting style of a digital human as claimed in claim 1, characterized in that: Determining a digital human model that needs to be announced from a plurality of digital human models associated with the announcement style includes: Determine whether the program corresponding to the content to be broadcast has a designated digital human model. If so, directly select the designated digital human model. If not, randomly select a digital human model from multiple digital human models associated with the broadcast style.
3. A digital human broadcasting style control device, characterized in that: include: A program type determination module, used to determine the type of program to be broadcasted by the digital human based on the content to be broadcasted; A broadcast style determination module, used to select a broadcast style that matches the program type, wherein the broadcast style is used to characterize the broadcast tone of different program types; A digital human model selection module, used to determine a digital human model that needs to be reported from a plurality of digital human models associated with the reporting style; A digital human model attribute determination module is used to obtain a speech speed setting value and a pause setting value of the selected digital human model; A word segmentation audio selection module is used to select each word segmentation audio of the content to be broadcast according to the speech speed setting value, the pause setting value and the broadcast style; An audio synthesis module, used to perform speech synthesis on the word segmentation audio; The digital human broadcasting style control device further includes an audio library construction module, and the audio library construction module includes: A word segmentation unit, which is used to segment and tag the original text used to construct the audio library; The audio cutting unit is used to collect sound through a voice collection device and cut out the audio of each word; A broadcast style vector assignment unit is used to assign the broadcast style probability to each word segmentation audio in the original text according to the broadcast style probability corresponding to different original texts, so as to construct a broadcast style vector for each word segmentation audio; An audio quantity expansion unit is used to adjust the speech speed of each audio of the same word segmentation to expand the number of audios of the word segmentation; The word segmentation audio selection module includes: An audio set determination unit, used to determine a corresponding audio set according to the text content of the segmented words; A matching degree calculation unit, configured to calculate, for each selected audio in the audio set, a matching degree between the selected audio and a digital human model having a set speech speed setting value, a pause setting value, and a broadcasting style according to its attribute value; An audio selection unit, used for selecting the audio with the smallest matching degree as the output audio of the word segmentation; In the matching degree calculation unit, calculating the matching degree y includes: Among them, a is the part of speech of the selected audio, a1 is the part of speech of the target program text to be broadcast, b is the speech speed of the selected audio, b1 is the speech speed setting value of the selected digital human model, b2 is the pause setting value of the selected digital human model, c i is the i-th parameter value in the broadcast style vector of the selected audio, d i is the i-th parameter value in the broadcast style vector of the selected digital human model, x1, x2, x3 are the part of speech, speaking speed and broadcast style weights respectively, and n is the number of broadcast styles.
4. The digital human broadcasting style control device as claimed in claim 3, characterized in that: The digital human model selection module includes: The designated digital human model query module is used to determine whether the program corresponding to the content to be broadcast has a designated digital human model. If the designated digital human model exists, the designated digital human model is directly selected. If the designated digital human model does not exist, a digital human model is randomly selected from multiple digital human models associated with the broadcast style.
Citation Information
Patent Citations
Data processing method and device
CN114999449A
Sound-based digital human image generation method and related device thereof
CN115985303A
