Voice care method, device, system and storage medium

Through language habits and timbre imitation models, voice broadcasts similar to those of parents are generated, which solves the problem that the existing voice escort system of infant care equipment cannot adapt to parents' voices, and improves the affinity and care effect of the system.

CN113223493BActive Publication Date: 2024-09-20TCL TECHNOLOGY GROUP CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010067039.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-20
Publication Date
2024-09-20
Estimated Expiration
2040-01-20

AI Technical Summary

Technical Problem

The voice escort system of existing infant care equipment cannot perform voice broadcasts based on the parents' voices and cannot imitate the parents' language habits, causing infants and young children to become uncomfortable and affecting the care effect.

Method used

The language habit imitation model and the timbre imitation model are used to obtain the voice broadcast trigger information and generate the audio information to be broadcast that is similar to the timbre and language habits of the associated user (parent) to realize the voice broadcast.

Benefits of technology

The adaptability of the voice escort system is improved, making it easier for infants and young children to accept it, reducing the care pressure on parents and enhancing the affinity of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113223493B
    Figure CN113223493B
Patent Text Reader

Abstract

The embodiments of the present application are applicable to the field of artificial intelligence technology, and disclose a voice care method, device, system, and computer-readable storage medium, wherein the method includes: obtaining voice broadcast trigger information; generating audio information to be broadcast through a language habit imitation model and / or a timbre imitation model according to the voice broadcast trigger information; and playing the audio information to be broadcast. After obtaining the voice broadcast trigger information, the embodiments of the present application use the language habit imitation model and the timbre imitation model to imitate the language habits and timbre of the associated user, so that the timbre and language habits of the audio information to be broadcast are more similar to the timbre and language habits of the associated user than a certain threshold, so as to improve the voice care effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of artificial intelligence technology, and in particular, relates to a voice care method, device, system and computer-readable storage medium. Background Art

[0002] With the continuous development of society, the demand for infant products is also increasing day by day.

[0003] Infant care equipment is one of many infant products. At present, infant care equipment generally has the function of monitoring infant physiological parameters or voice accompanying function. Infant care equipment with voice accompanying function on the market generally broadcasts corresponding feedback voice according to the infant's voice, and the feedback voice broadcast is generally pre-recorded by humans.

[0004] Infants and young children are very sensitive to their parents' voices. If a stranger's voice appears, they will be afraid and resist, and may keep crying, or even cause unsafe things to happen. As a result, infants and young children are not very receptive to such products, and thus cannot realize the function of taking care of children, and cannot effectively help parents share the pressure. In other words, the voice care system on the market has the following two defects: it cannot broadcast voice according to the parents' timbre; it cannot imitate the language habits of any parent. Similarly, the voice care system for non-infants and young children also has the above problems. Summary of the invention

[0005] The embodiments of the present application provide a voice care method, device, system and computer-readable storage medium to solve the problem that the existing voice care system cannot perform voice broadcast according to the voice of the user related to the target object.

[0006] In a first aspect, an embodiment of the present application provides a voice care method, comprising:

[0007] Get voice broadcast trigger information;

[0008] According to the voice broadcast trigger information, the audio information to be broadcast is generated through a language habit imitation model and / or a timbre imitation model;

[0009] Play the audio information to be broadcasted.

[0010] It can be seen that after the voice broadcast trigger information is obtained, the language habit imitation model and the timbre imitation model are used to imitate the language habits and timbre of the associated user, so that the timbre and language habits of the audio information to be broadcast are the same as those of the associated user.

[0011] Exemplarily, when the target object is an infant and the associated user of the infant is the infant's parent, the method provided in the embodiment of the present application can be used to broadcast the corresponding audio information by imitating the timbre and language habits of the infant's parent.

[0012] In combination with the first aspect, in a possible implementation manner, the voice broadcast trigger information is voice information of the target object;

[0013] According to the voice broadcast trigger information, the audio information to be broadcast is generated by using a language habit imitation model and / or the timbre imitation model, including:

[0014] Converting the speech information into target text information;

[0015] Obtaining response sentence information corresponding to the voice information according to the target text information and the language habit imitation model;

[0016] Converting the response sentence information into target audio information;

[0017] Inputting the target audio information into the timbre imitation model to obtain the audio information to be broadcast output by the timbre imitation model;

[0018] The degree of similarity between the timbre and / or language habit of the audio information to be broadcast and the timbre and / or language habit of the associated user of the target object is greater than or equal to a preset threshold.

[0019] In combination with the first aspect, in a possible implementation manner, the language habit imitation model is a model including a Transformer-XL model and an RNN generation model;

[0020] According to the target text information and the language habit imitation model, the response sentence information corresponding to the voice information is obtained, including:

[0021] Encoding the target text information to obtain encoding information, wherein the encoding information includes a vector representation of each character, a position encoding of each character, and a label in each sentence;

[0022] Inputting target encoded information into the Transformer-XL model to obtain an output result of the Transformer-XL model, wherein the target encoded information is encoded information obtained after performing a data hiding operation on the encoded information;

[0023] The output result and the label are input into the RNN generation model to obtain the response sentence information output by the RNN generation model.

[0024] In combination with the first aspect, in a possible implementation, the timbre imitation model is a generator in a generative adversarial network;

[0025] Inputting the target audio information into the timbre imitation model to obtain the audio information to be broadcast output by the timbre imitation model includes:

[0026] Inputting the target audio information into the generator, so that the generator performs Fourier transform on the target audio information to obtain a spectrogram, and then generates pseudo speech data through a convolution layer and a pooling layer;

[0027] The pseudo voice data output by the generator is obtained, where the pseudo voice data is the audio information to be broadcasted.

[0028] In combination with the first aspect, in a possible implementation, the timbre imitation model is specifically a generator in a generative adversarial network, and the generative adversarial network model includes a generator and a discriminator;

[0029] The training process of the timbre imitation model specifically includes:

[0030] Acquire corpus data of non-associated users and corpus data of the associated users;

[0031] Inputting the corpus data of the associated user and the corpus data of the unassociated user into the discriminator, training the discriminator to obtain a trained discriminator, wherein the timbre discrimination accuracy of the trained discriminator reaches a preset value;

[0032] Generate pseudo corpus data by the generator;

[0033] Inputting the pseudo corpus data into the trained discriminator to obtain a discrimination result;

[0034] When the discrimination result is consistent, the generator training is completed; when the discrimination result is inconsistent, the generator is returned to generate pseudo corpus data; the pseudo corpus data is input into the trained discriminator to obtain the discrimination result.

[0035] In combination with the first aspect, in a possible implementation manner, it is characterized in that the method further includes:

[0036] Collecting conversation data of the associated users;

[0037] The language habit imitation model is trained using the conversation data.

[0038] In combination with the first aspect, in a possible implementation manner, obtaining voice broadcast trigger information includes:

[0039] Trigger a voice broadcast task at a fixed time, and read the voice broadcast trigger information corresponding to the voice broadcast task;

[0040] or

[0041] Monitor the status of the target object;

[0042] When the state of the target object meets the preset state, the state information of the target object is collected through the sensor, and the state information is voice broadcast trigger information.

[0043] In a second aspect, an embodiment of the present application provides a voice care system, including a trigger information collection device, a voice care device connected to the trigger information collection device, and a voice broadcast device connected to the voice care device;

[0044] The trigger information acquisition device is used to collect voice broadcast trigger information;

[0045] The voice care device is used to execute the method described in any one of the first aspects above.

[0046] In a third aspect, an embodiment of the present application provides a voice care device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in any one of the first aspects above when executing the computer program.

[0047] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the first aspects above is implemented.

[0048] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a voice care device, the voice care device executes any one of the methods described in the first aspect.

[0049] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0051] Figure 1 A flowchart of a voice care method provided in an embodiment of the present application;

[0052] Figure 2 A schematic flow chart of the training process of the timbre imitation model provided in the embodiment of the present application;

[0053] Figure 3 A schematic diagram of the generator training process provided in an embodiment of the present application;

[0054] Figure 4 A schematic block diagram of the process of generating audio information to be broadcast provided in an embodiment of the present application;

[0055] Figure 5 A schematic diagram of the encoding process of the encoder provided in an embodiment of the present application;

[0056] Figure 6 A schematic diagram of a self-attention module provided in an embodiment of the present application;

[0057] Figure 7 A structural block diagram of a voice care device provided in an embodiment of the present application;

[0058] Figure 8 A schematic diagram of the structure of a voice care device provided in an embodiment of the present application;

[0059] Fig. 9 A schematic block diagram of the structure of a voice care system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures and technologies are provided to facilitate a thorough understanding of the embodiments of the present application.

[0061] However, it should be clear to those skilled in the art that the present application can be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obstructing the description of the present application with unnecessary details.

[0062] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0063] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0064] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0065] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0066] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0067] The voice care method provided in the embodiment of the present application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc. The embodiment of the present application does not impose any restrictions on the specific type of terminal devices.

[0068] See also Figure 1 , is a schematic flow chart of a voice care method provided in an embodiment of the present application, the method may include the following steps:

[0069] Step S101, obtaining voice broadcast trigger information.

[0070] It should be noted that the above-mentioned voice broadcast triggering information refers to information used to trigger voice broadcast, that is, after receiving or collecting such information, the voice broadcast process is carried out.

[0071] The voice broadcast trigger information may include active trigger information and passive trigger information. Active triggering is generally a user setting a fixed trigger task to perform the corresponding task at a specific time or place. For example, the target object of care is an infant, and the user sets a timed trigger task as: at 10 o'clock in the evening, broadcast the audio information of "Baby, it's time to go to bed". Passive triggering may include state monitoring triggering and target object voice triggering. Target object voice triggering means that after the system collects the sound of the target object, the voice broadcast process is triggered. State monitoring triggering refers to real-time monitoring of the relevant state of the target object. When the target state is detected, the voice broadcast process is triggered. For example, when the target object is an infant, the image of the infant is collected in real time through an image sensor. When the infant is detected to climb to a high place, the voice broadcast process is triggered. For another example, when the target object is an infant, the sound shell value of the infant is monitored in real time through a sound shell detection device. When the sound shell value exceeds a certain threshold, it is considered that the infant is crying and the voice broadcast process is triggered.

[0072] In other words, in some embodiments, the process of obtaining the voice broadcast trigger information may include: timing triggering the voice broadcast task, and reading the voice broadcast trigger information corresponding to the voice broadcast task. For example, set the voice broadcast at 10 pm to let the child go to bed.

[0073] In other embodiments, the above process of obtaining voice broadcast trigger information may include: monitoring the state of the target object; when the state of the target object meets the preset state, collecting the state information of the target object through a sensor, and the state information is the voice broadcast trigger information.

[0074] The state of the target object can be any, for example, a sound state and a safe state, etc. The preset state is a pre-set state. When the target object is detected to be in the preset state, information in the current state is collected.

[0075] The target object mentioned above refers to the object being cared for, which may be an infant or a non-infant, and is not limited here.

[0076] Of course, the method for obtaining and triggering the above-mentioned voice broadcast trigger information is not limited to those mentioned above and is not limited here.

[0077] Step S102: Generate audio information to be broadcasted according to the voice broadcast trigger information by using a language habit imitation model and / or a timbre imitation model.

[0078] It should be noted that, in addition to triggering the voice broadcast process, the above-mentioned voice broadcast trigger information can also carry relevant information of the voice broadcast. For example, when the target object is an infant, when the voice broadcast trigger information is the voice information of the infant, the corresponding response sentence can be generated according to the voice information, and then the response sentence can be broadcast by imitating the timbre and language habits of the associated user. For another example, when the voice broadcast trigger information is the information corresponding to the timed voice broadcast task, the corresponding broadcast text information is obtained according to the voice broadcast trigger information, and the corresponding audio information is generated according to the broadcast text information, and then the audio information is broadcast by imitating the timbre and language habits of the associated user.

[0079] The degree of similarity between the timbre and / or language habit of the audio information to be broadcast and the timbre and / or language habit of the associated user of the target object is greater than or equal to a preset threshold. The preset threshold can be set as needed. Among them, the degree of similarity between the timbre of the audio information to be broadcast and the timbre of the associated user is greater than or equal to the preset threshold, and the degree of similarity between the language habit of the audio information to be broadcast and the language habit of the associated user is greater than or equal to the preset threshold.

[0080] The associated users of the above-mentioned target object generally refer to the relatives or guardians of the target object. For example, when the target object is an infant, the associated users of the target object are the parents, grandparents, or grandparents of the infant. The language habits of the associated users can be imitated by the language habit imitation model, and the timbre of the associated users can be imitated by the timbre imitation model. In the embodiments of the present application, the language habit imitation model or the timbre imitation model can be used alone, or the language habit imitation model and the timbre imitation model can be used. In comparison, the timbre and language habits of the audio information to be broadcast are the same as the timbre and language habits of the associated users, and the voice care effect is better.

[0081] The above-mentioned language habit imitation model is specifically a G-Transformer-XL (Generator by Transformer-XL) model, which may include a Transformer-XL model and an RNN generation model. The above-mentioned timbre imitation model is specifically a generator of a generative adversarial network, which is specifically a full-sequence convolutional neural network. Both the language habit imitation model and the timbre imitation model are pre-trained models. The training data set of the language habit imitation model is based on the collected daily conversation data of associated users, or the specific conversation data of associated users. The training data set of the timbre imitation model is the collected voice data of associated users and the voice data of strangers.

[0082] The following will introduce the training process of the G-Transformer-XL model and the generator respectively.

[0083] Generator training process

[0084] Generative Adversarial Networks (GAN) consists of a generator (Generative Model) and a discriminator (Discriminative Model).

[0085] See also Figure 2 The flowchart of the training process of the timbre imitation model shown in FIG. 1 is a schematic flowchart of the training process of the timbre imitation model. The training process of the timbre imitation model may include the following steps:

[0086] Step S201: Acquire corpus data of unrelated users and corpus data of related users.

[0087] It should be noted that the above-mentioned associated users may refer to the associated users of the target object, who are generally the relatives or guardians of the target object. For example, when the target object is an infant, the associated users of the target object are the parents of the infant. Unassociated users are users corresponding to associated users, and are generally strangers to the target object.

[0088] Step S202: input the corpus data of the associated user and the corpus data of the unassociated user into the discriminator, train the discriminator, and obtain a trained discriminator, wherein the timbre discrimination accuracy of the trained discriminator reaches a preset value.

[0089] Specifically, a large amount of corpus data of associated users and corpus data of unassociated users are input into the discriminator, and the discriminator is trained to determine the accuracy of whether the input audio data is the timbre of the associated user. When the discriminator's discrimination accuracy reaches a preset value, the discriminator training can be considered completed.

[0090] Step S203: Generate pseudo corpus data through a generator.

[0091] Specifically, through TTS technology, the corresponding text data is converted into audio data, and the audio data is input into the generator. The generator first performs Fourier transform on the time domain speech signal to obtain the speech spectrogram, and takes time and frequency as the two dimensions of input. Through the combination of convolutional layer and pooling layer, the whole sentence of speech is modeled to generate the above-mentioned pseudo corpus data.

[0092] Step S204: input the pseudo corpus data and the corpus data of the associated user into the trained discriminator to obtain a discrimination result.

[0093] Step S205: When the discrimination result is consistent, the generator training is completed; when the discrimination result is inconsistent, return to generate pseudo corpus data through the generator; input the pseudo corpus data into the trained discriminator to obtain the discrimination result, that is, return to the above steps S204 and S205.

[0094] Specifically, the pseudo corpus data generated by the generator and the corpus data of the associated user are input into the trained discriminator to obtain the discrimination result output by the discriminator. When the discrimination result is consistent, it indicates that the discriminator cannot distinguish the pseudo corpus data from the corpus data of the associated user, indicating that the timbre of the pseudo corpus data generated by the generator is very similar to the timbre of the associated user. When the discrimination result is inconsistent, it indicates that the discriminator can distinguish the pseudo corpus data from the corpus data of the associated user, indicating that the timbre of the pseudo corpus data generated by the generator is quite different from the timbre of the associated user. At this time, the generator continues to generate new pseudo corpus data, and then inputs it into the discriminator for discrimination until the discriminator cannot distinguish the pseudo corpus data from the corpus data of the associated user.

[0095] In order to better introduce the training process of the generator, Figure 3 The schematic diagram of the generator training process is shown for introduction.

[0096] like Figure 3 As shown, pseudo corpus data is generated by the generator, and the pseudo corpus data and real corpus data are input into the trained discriminator, where the real corpus data is the voice of the parents. The discriminator outputs a discrimination result, which is specifically "True" or "False". "True" means that the discriminator believes that the timbre of the input pseudo corpus data is the same as the timbre of the parents' voices, and the generator training is completed. "False" means that the discriminator believes that the input pseudo corpus data is different from the parents' voices, and the generator continues to generate new corpus data to execute the above training process.

[0097] G-Transformer-XL model training process

[0098] The G-Transformer-XL model specifically includes a Transformer-XL model and an RNN generation model. The training of the model can be unsupervised training, and can be specifically trained by collecting daily conversation data of associated users, for example, the daily conversation content of parents at home, without the need to construct additional conversation content. That is, in some embodiments, the above method can also include: collecting conversation data of associated users; using the conversation data to train the language habit imitation model.

[0099] It should be noted that the language habit imitation model can be continuously trained based on the collected conversation data to continuously update and optimize the language habit imitation model. For example, when the system is in a non-triggered state and collects daily conversation data of parents of infants and young children, model training is performed based on the collected conversation data.

[0100] Specifically, the collected audio information is converted into text information through STT technology, the text information is encoded, and the encoded information is input into the Transformer-XL model after hiding 10% of the data to obtain the encoding vector output by the Transformer-XL model. Then, the encoding vector and the text of each sentence are compared. <cls>The label is input into the RNN generation model to generate a response sentence.

[0101] After introducing the G-Transformer-XL model and the training process of the generator, the following describes the process of using the trained model for voice imitation.

[0102] In some embodiments, the voice broadcast trigger information is infant voice information, and more specifically, the target object's voice information is the target object's conversation data.

[0103] See also Figure 4 The schematic flow chart of the process of generating the audio information to be broadcast is shown. The process of generating the audio information to be broadcast according to the voice broadcast trigger information through the language habit imitation model and / or the timbre imitation model may include:

[0104] Step S401: Convert voice information into target text information.

[0105] Step S402: Obtain response sentence information corresponding to the voice information based on the target text information and the language habit imitation model.

[0106] Furthermore, the language habit imitation model is a model including a Transformer-XL model and an RNN generation model; in this case, the process of obtaining the response sentence information corresponding to the voice information of the target object according to the target text information and the language habit imitation model may include:

[0107] The target text information is encoded to obtain encoding information, which includes the vector representation of each character, the position encoding of each character and the label in each sentence; the target encoding information is input into the Transformer-XL model to obtain the output result of the Transformer-XL model, and the target encoding information is the encoding information obtained after performing a data hiding operation on the encoding information; the output result and the label are input into the RNN generation model to obtain the response sentence information output by the RNN generation model.

[0108] The specific process can include two major steps.

[0109] first step:

[0110] After the audio information is converted into the target text information through STT technology, the target text information is encoded to obtain the encoded information. During the encoding process, each word is represented by a vector of a specific dimension, and the position code of each word is added. The position code can indicate the relative position of each word in the sentence. It is also added at the beginning of each sentence. <cls>After performing the data hiding operation on the encoded information, the target encoded information is obtained, that is, the encoded information needs to mask out 10% of the data for prediction.

[0111] After the target encoding information is input into the Transformer-XL model, the Transformer-XL model divides the input data into shorter parts (called segments), and the output of each segment's Encoder block (built by self-attention) is marked as h t,i , t represents the t-th time step in the segment, i represents the i-th Encoder Block in the t-th time step, and the specific process can be found in Figure 5 Schematic diagram of the encoding process of the encoder shown. Figure 6 The schematic diagram of the self-attention module shown in the figure multiplies the vector obtained by the Embedding operation by three different matrices, respectively denoted as W k , W v , W q , get q, k, v; then complete a self-attention Multi-Self-Ateention through softmax normalization operation. Each self-attention has its own W k , W v , W q , combine the output of Multi-Self-Ateention as the output of this Encoder block.

[0112] Among them, except for the last Encoder block, h -1,i Set to an all-zero vector with the same dimension as the hidden output of the previous segment. When in the first segment, except for the first Encoder Block, set h -1,i-1 and h 0,i-1 Combined with the input to the i-th Encoder Block; except for the last Encoder Block, each output h 0,i Make a backup for later use; at any time t (t! = 1), except for the first EncoderBlock, h -1,i-1 and h t,i-1 Combine the input to the i-th Encoder Block; for all but the last EncoderBlock, each output h t,i Make a backup.

[0113] The encoding of some characters in the input encoded data is hidden, so the information of such data cannot be leaked in the model calculation. In the vector calculated by Attention, the value to be hidden is set to negative infinity.

[0114] Finally, predict the masked words and take h *,-1 Represents the output of the last encoder block in any time step of each segment. *,-1 After the linear transformation, we normalize the softmax to make it a probability whose sum is one, so that we take the one with the highest probability as our prediction.

[0115] Step 2:

[0116] The output of the first step <cls>The encoding of the label is represented by h 0,-1 , 0 means <cls>Located at the first position of each segment, -1 indicates that the last encoder block is used as the initial input of the second step RNN generation model. The RNN generation model adopts the GRU-RNN structure, that is, the sequence model RNN is composed of GRU. 0,-1 As the initial state input, at each moment the hidden state of the previous moment and the output prediction of the previous moment are used as input. The prediction result is similar to the prediction step of the first step, so as to obtain the response sentence.

[0117] For example, the target object is an infant, and the specific audio information of the infant is "Mom, where are you?" After the system collects the audio information, it first converts it into text information, then encodes the text information, and then inputs it into the Transformer-XL model and the RNN generation model to generate the answer sentence of "Mom, where are you?" The language habits of the generated answer sentence are the same as those of the parents of the infant.

[0118] Step S403: convert the response statement information into target audio information.

[0119] Step S404: input the target audio information into the timbre imitation model to obtain the audio information to be broadcast output by the timbre imitation model. The timbre and / or language habits of the audio information to be broadcast are similar to the timbre and / or language habits of the associated user of the target object to a degree greater than or equal to a preset threshold.

[0120] Specifically, when the timbre imitation model is a generator in a generative adversarial network, the process of inputting the target audio information into the timbre imitation model and obtaining the audio information to be broadcast output by the timbre imitation model may include:

[0121] The target audio information is input into the generator so that the generator performs Fourier transform on the target audio information to obtain a spectrogram, and then generates pseudo speech data through a convolutional layer and a pooling layer; the pseudo speech data output by the generator is obtained, and the pseudo speech data is the audio information to be broadcast.

[0122] After the response sentence information is converted into the target audio information through TTS technology, a pre-trained generator is needed to imitate the timbre. The target audio information is input into the generator, which, after a series of processing, outputs the generated pseudo-speech data, which is the audio information to be broadcast.

[0123] It is understandable that the generator is pre-trained, and the timbre of the generated pseudo voice data is the same as the timbre of the associated user. Thus, the to-be-broadcasted audio information having the same timbre and language habits as those of the associated user can be generated.

[0124] It should be noted that the above describes the specific process of generating the audio information to be broadcasted with the same timbre and language habits. In some other embodiments, only the audio information to be broadcasted with the same timbre or language habits may be generated, and the specific generation process is similar to the above, which will not be repeated here.

[0125] Step S103: play the audio information to be broadcast.

[0126] Specifically, after the audio information to be broadcast is generated, the audio information can be broadcasted through a voice playback device.

[0127] It can be seen that after the voice broadcast trigger information is obtained, the language habit imitation model and the timbre imitation model are used to imitate the language habits and timbre of the associated user, so that the timbre and language habits of the audio information to be broadcast are similar or identical to the timbre and language habits of the associated user, so as to improve the voice care effect. Exemplarily, when the target object is an infant and the associated user of the infant is the infant's parent, the method provided in the embodiment of the present application can imitate the timbre and language habits of the infant's parent to broadcast the corresponding audio information.

[0128] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0129] Corresponding to the voice care method described in the above embodiment, Figure 7 A structural block diagram of a voice care device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0130] Reference Figure 7 , the device comprises:

[0131] The trigger information acquisition module 71 is used to acquire the voice broadcast trigger information;

[0132] A generating module 72, for generating the audio information to be broadcasted according to the voice broadcast triggering information through a language habit imitation model and / or a timbre imitation model;

[0133] The playing module 73 is used to play the audio information to be broadcasted.

[0134] In a possible implementation, the voice broadcast trigger information is the voice information of the target object; and the above-mentioned generation module is specifically used for:

[0135] Convert voice information into target text information;

[0136] According to the target text information and the language habit imitation model, the response sentence information corresponding to the voice information is obtained;

[0137] Converting response sentence information into target audio information;

[0138] The target audio information is input into the timbre imitation model to obtain the audio information to be broadcast output by the timbre imitation model, and the degree of similarity between the timbre and / or language habits of the audio information to be broadcast and the timbre and / or language habits of the associated user of the target object is greater than or equal to a preset threshold.

[0139] In a possible implementation, the language habit imitation model is a model including a Transformer-XL model and an RNN generation model;

[0140] The above generation module is specifically used for:

[0141] According to the target text information and the language habit imitation model, the response sentence information corresponding to the voice information is obtained, including:

[0142] Encode the target text information to obtain encoding information, which includes the vector representation of each word, the position encoding of each word and the label in each sentence;

[0143] Inputting the target encoded information into the Transformer-XL model to obtain the output result of the Transformer-XL model, where the target encoded information is the encoded information obtained after performing a data hiding operation on the encoded information;

[0144] The output results and labels are input into the RNN generation model to obtain the response sentence information output by the RNN generation model.

[0145] In a possible implementation, the timbre imitation model is a generator in a generative adversarial network;

[0146] The above generation module is specifically used for:

[0147] Inputting the target audio information into the timbre imitation model to obtain the audio information to be broadcast output by the timbre imitation model, including:

[0148] Input the target audio information into the generator so that the generator performs Fourier transform on the target audio information to obtain a spectrogram, and then generates pseudo speech data through a convolutional layer and a pooling layer;

[0149] The pseudo voice data output by the generator is obtained, where the pseudo voice data is the audio information to be broadcast.

[0150] In a possible implementation, the timbre imitation model is specifically a generator in a generative adversarial network, and the generative adversarial network model includes a generator and a discriminator;

[0151] The above device also includes a generator training module, which is specifically used to:

[0152] Obtaining corpus data of unrelated users and corpus data of related users;

[0153] Inputting the corpus data of the associated user and the corpus data of the unassociated user into the discriminator, training the discriminator, and obtaining a trained discriminator, wherein the timbre discrimination accuracy of the trained discriminator reaches a preset value;

[0154] Generate pseudo corpus data through the generator;

[0155] Input the pseudo corpus data into the trained discriminator to obtain the discrimination result;

[0156] When the discrimination result is consistent, the generator training is completed. When the discrimination result is inconsistent, the generator is returned to generate pseudo corpus data; the pseudo corpus data is input into the trained discriminator to obtain the discrimination result.

[0157] In a possible implementation, the above device may further include a language habit imitation model training module, which is specifically used to:

[0158] Collecting conversation data of associated users;

[0159] Use conversation data to train a language habit imitation model.

[0160] In a possible implementation, the trigger information is specifically used for:

[0161] Trigger the voice broadcast task regularly and read the voice broadcast trigger information corresponding to the voice broadcast task;

[0162] Alternatively, monitoring the status of a target object;

[0163] When the state of the target object meets the preset state, the state information of the target object is collected through the sensor, and the state information is the voice broadcast trigger information.

[0164] It should be noted that the above-mentioned voice care device corresponds one-to-one with the above-mentioned voice care method. For related introduction, please refer to the corresponding content above and will not be repeated here.

[0165] The above-mentioned voice care device has the function of implementing the above-mentioned voice care method, which can be implemented through hardware or through hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions, and the modules can be software and / or hardware.

[0166] Figure 8 This is a schematic diagram of the structure of a voice care device provided in one embodiment of the present application. Figure 8 As shown, the voice care device 8 of this embodiment includes: at least one processor 80, a memory 81, and a computer program 82 stored in the memory 81 and executable on the at least one processor 80, and when the processor 80 executes the computer program 82, the steps in any of the above-mentioned method embodiments are implemented.

[0167] The voice care device 8 can be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The voice care device can include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art can understand that Figure 8 It is only an example of the voice care device 8 and does not constitute a limitation of the voice care device 8. It can include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it can also include input and output devices, network access devices, etc.

[0168] The processor 80 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0169] In some embodiments, the memory 81 may be an internal storage unit of the voice care device 8, such as a hard disk or memory of the voice care device 8. In other embodiments, the memory 81 may also be an external storage device of the voice care device 8, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the voice care device 8. Further, the memory 81 may also include both the internal storage unit of the voice care device 8 and an external storage device. The memory 81 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 81 may also be used to temporarily store data that has been output or is to be output.

[0170] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices and units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0171] See also Fig. 9 The structure schematic block diagram of a voice care system shown in FIG. 1 includes a trigger information acquisition device 91, a voice care device 92 connected to the trigger information acquisition device, and a voice broadcast device 93 connected to the voice care device;

[0172] The trigger information acquisition device is used to collect voice broadcast trigger information;

[0173] The voice care device is used to perform any of the methods described in the above voice care method embodiments. Figure 8 The device shown, or the voice care device has Figure 7 The functional modules are shown.

[0174] It should be noted that the above-mentioned trigger information collection device may include but is not limited to one or more of a visual capture monitor, a voice wake-up device, a sound shell detector and an infrared sensor.

[0175] It should be noted that the relevant processing flow of the above-mentioned voice care device can be found in the corresponding content above, which will not be repeated here.

[0176] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0177] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0178] An embodiment of the present application provides a computer program product. When the computer program product runs on a voice care device, the voice care device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0179] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0180] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0181] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0182] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0183] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0184] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.< / cls> < / cls> < / cls> < / cls>

Claims

1. A voice care method, characterized in that: include: Get voice broadcast trigger information; According to the voice broadcast trigger information, the audio information to be broadcast is generated through the language habit imitation model and the timbre imitation model; Playing the audio information to be broadcasted; Among them, according to the voice broadcast trigger information, the audio information to be broadcast is generated through the language habit imitation model and the timbre imitation model, including: Convert voice information into target text information; Obtaining response sentence information corresponding to the voice information according to the target text information and the language habit imitation model; Converting the response sentence information into target audio information; Inputting the target audio information into the timbre imitation model to obtain the audio information to be broadcast output by the timbre imitation model; The degree of similarity between the timbre and language habits of the audio information to be broadcast and the timbre and language habits of the associated user of the target object is greater than or equal to a preset threshold; The language habit imitation model is a model including a Transformer-XL model and an RNN generation model; According to the target text information and the language habit imitation model, the response sentence information corresponding to the voice information is obtained, including: Encoding the target text information to obtain encoding information, wherein the encoding information includes a vector representation of each character, a position encoding of each character, and a label in each sentence; Inputting target encoded information into the Transformer-XL model to obtain an output result of the Transformer-XL model, wherein the target encoded information is encoded information obtained after performing a data hiding operation on the encoded information; The output result and the label are input into the RNN generation model to obtain the response sentence information output by the RNN generation model.

2. The method according to claim 1, characterized in that The timbre imitation model is a generator in a generative adversarial network; Inputting the target audio information into the timbre imitation model to obtain the audio information to be broadcast output by the timbre imitation model includes: Inputting the target audio information into the generator, so that the generator performs Fourier transform on the target audio information to obtain a spectrogram, and then generates pseudo speech data through a convolution layer and a pooling layer; The pseudo voice data output by the generator is obtained, where the pseudo voice data is the audio information to be broadcasted.

3. The method according to claim 1, characterized in that The timbre imitation model is specifically a generator in a generative adversarial network, and the generative adversarial network model includes a generator and a discriminator; The training process of the timbre imitation model specifically includes: Acquire corpus data of non-associated users and corpus data of the associated users; Inputting the corpus data of the associated user and the corpus data of the unassociated user into the discriminator, training the discriminator to obtain a trained discriminator, wherein the timbre discrimination accuracy of the trained discriminator reaches a preset value; Generate pseudo corpus data by the generator; Inputting the pseudo corpus data into the trained discriminator to obtain a discrimination result; When the discrimination result is consistent, the generator training is completed; when the discrimination result is inconsistent, the generator is returned to generate pseudo corpus data; the pseudo corpus data is input into the trained discriminator to obtain the discrimination result.

4. The method according to claim 1, characterized in that The method further comprises: Collecting conversation data of the associated users; The language habit imitation model is trained using the conversation data.

5. The method according to claim 1, characterized in that The step of obtaining voice broadcast trigger information includes: Trigger a voice broadcast task at a fixed time, and read the voice broadcast trigger information corresponding to the voice broadcast task; or Monitor the status of the target object; When the state of the target object meets the preset state, the state information of the target object is collected through the sensor, and the state information is voice broadcast trigger information.

6. A voice care system, characterized in that: It includes a trigger information collection device, a voice care device connected to the trigger information collection device, and a voice broadcasting device connected to the voice care device; The trigger information acquisition device is used to collect voice broadcast trigger information; The voice care device is used to execute the method described in any one of claims 1 to 5 above.

7. A voice care device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.