TTS speech processing method, device, equipment and system

The TTS voice processing method is used to disseminate information in communities or industrial parks, using offline speech synthesis and distributed network automatic playback to solve the problems of low dissemination efficiency and high cost, and achieve efficient and automated information dissemination.

CN112863479BActive Publication Date: 2024-09-27HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110008812.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-05
Publication Date
2024-09-27
Estimated Expiration
2041-01-05

AI Technical Summary

Technical Problem

The information dissemination efficiency in communities or industrial parks is low, requires a lot of human resources and time, and the number of disseminations is limited. Existing technologies cannot effectively solve these problems.

Method used

The TTS speech processing method is used to perform offline speech synthesis on text information through the management machine device and automatically play it in the distributed network. The smart device plays the speech when the preset conditions are met, avoiding the cost of manual reading and online speech synthesis server.

Benefits of technology

It improves the efficiency of information dissemination, reduces costs, solves the problem of limited information dissemination times, and realizes automated information dissemination.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112863479B
    Figure CN112863479B
Patent Text Reader

Abstract

The embodiment of the present application provides a method, device, equipment and system for processing TTS voice, wherein the method includes: obtaining text information to be processed, performing offline voice synthesis processing on the text information according to preset voice synthesis rules to obtain TTS voice; if it is determined that the playback strategy of TTS voice is to play through the smart device in the distributed network, then sending the TTS voice to the smart device, so that the smart device plays the TTS voice when it is determined that the preset playback conditions are met. The embodiment of the present application improves the efficiency of information dissemination and solves the problem of limited number of current information dissemination times.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In the process of community or industrial park management, effective dissemination of information is crucial. At present, there are two main ways to disseminate information in communities or industrial parks: one is for managers to go door to door to publicize, and the other is for managers to read out information through a broadcasting system. However, both methods require a lot of human resources and time costs, not only the efficiency of information dissemination is low, but also the number of times the information is disseminated is greatly limited. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a method, device, equipment and system for processing TTS voice to achieve efficient dissemination of information.

[0004] To solve the above technical problems, the embodiments of the present application are implemented as follows:

[0005] In a first aspect, an embodiment of the present application provides a method for processing TTS speech, including:

[0006] Get the text information to be processed;

[0007] Performing offline speech synthesis processing on the text information according to preset speech synthesis rules to obtain TTS speech;

[0008] If it is determined that the playing strategy of the TTS voice is to play it through an intelligent device in the distributed network, the TTS voice is sent to the intelligent device, so that the intelligent device plays the TTS voice when it is determined that the preset playing conditions are met.

[0009] In a second aspect, an embodiment of the present application provides a TTS speech processing device, including:

[0010] A memory, used for storing speech synthesis rules;

[0011] The processor is used to obtain text information to be processed, perform offline speech synthesis processing on the text information according to the speech synthesis rule to obtain TTS speech; determine the playback strategy of the TTS speech, and if the playback strategy is to play through an intelligent device in the distributed network, send the TTS speech to the intelligent device, so that the intelligent device plays the TTS speech when it is determined that the preset playback conditions are met.

[0012] In a third aspect, an embodiment of the present application provides a TTS voice processing system, including: a management device and at least one intelligent device;

[0013] The management device is used to perform relevant processing of the TTS voice according to the above-mentioned TTS voice processing method;

[0014] The smart device receives the TTS voice sent by the management device, and plays the TTS voice if it is determined that the preset playing condition is met.

[0015] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a communication interface, a memory and a communication bus; wherein the processor, the communication interface, and the memory communicate with each other through the bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to implement the steps of the above-mentioned TTS voice processing method.

[0016] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned TTS speech processing method are implemented.

[0017] In the embodiment of the present application, the management machine device pre-forms a distributed network with at least one intelligent device. When the management machine device obtains the text information to be processed, it performs offline speech synthesis processing on the text information according to the preset speech synthesis rules to obtain TTS speech; if it is determined that the playback strategy of the TTS speech is to play through the intelligent device in the distributed network, the TTS speech is sent to the corresponding intelligent device, so that the intelligent device plays the TTS speech when it determines that the preset playback conditions are met. Therefore, by converting the text information into TTS speech and automatically playing the TTS speech based on the distributed network without manual reading, the efficiency of information dissemination is greatly improved; and the intelligent device can play the TTS speech when it determines that the playback conditions are met, which effectively solves the problem of limited current information dissemination times; furthermore, by performing offline speech synthesis processing on the text information, not only the cost of information dissemination is reduced, but also the problem of inability to perform speech synthesis due to the lack of a server for online speech synthesis is avoided. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] Figure 1A schematic diagram of a scenario of a TTS voice processing method provided in an embodiment of the present application;

[0020] Figure 2 A first flow chart of a method for processing TTS speech provided in an embodiment of the present application;

[0021] Figure 3 A second flow chart of a method for processing TTS speech provided in an embodiment of the present application;

[0022] Figure 4 A third flow chart of a method for processing TTS speech provided in an embodiment of the present application;

[0023] Figure 5 A fourth flow chart of a method for processing TTS speech provided in an embodiment of the present application;

[0024] Figure 6 A fifth flow chart of a method for processing TTS speech provided in an embodiment of the present application;

[0025] Figure 7 A sixth flow chart of a method for processing TTS speech provided in an embodiment of the present application;

[0026] Figure 8 A seventh flow chart of a TTS speech processing method provided in an embodiment of the present application

[0027] Fig. 9 A schematic diagram of the module composition of a TTS speech processing device provided in an embodiment of the present application;

[0028] Fig.10 A schematic diagram of a first composition of a TTS speech processing system provided in an embodiment of the present application;

[0029] Fig.11 A second schematic diagram of the composition of a TTS speech processing system provided in an embodiment of the present application;

[0030] Fig.12 A schematic diagram of the composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0032] Figure 1 A schematic diagram of an application scenario of a TTS speech processing method provided by one or more embodiments of the present application, such as Figure 1 As shown, the scenario includes: a management machine device, a routing device and at least one intelligent device. Among them, the management machine device is connected to the intelligent device through the routing device to form a distributed network. The management machine device has the functions of synthesis, management, distribution, and playback of TTS (Text To Speech) voices, and can also have the functions of inputting, querying and displaying text information; in actual applications, the management machine device can be an access control device, a video intercom device, an attendance device, etc. with the above functions. The intelligent device has the functions of playing and querying TTS voices, and can also have the functions of querying and displaying text information; in actual applications, the intelligent device can be an access control device, a video intercom device, an attendance device, etc. with the above functions. The above distributed network is deployed in communities, industrial parks, etc., which can realize the corresponding access control, attendance and other functions while realizing the efficient dissemination of information.

[0033] Specifically, when the management machine device obtains the text information to be processed, it performs offline speech synthesis processing on the obtained text information according to the preset speech synthesis rules to obtain TTS speech; determines the playback strategy of the TTS speech, and if the determined playback strategy is to play through the intelligent device in the distributed network, the TTS speech is sent to the corresponding intelligent device through the routing device; after the intelligent device receives the TTS speech, if it is determined that it meets the preset playback conditions, it plays the TTS speech. Therefore, by converting the text information into TTS speech and automatically playing the TTS speech based on the distributed network without manual reading, the efficiency of information dissemination is greatly improved; and the intelligent device can play the TTS speech when it determines that the playback conditions are met, which effectively solves the problem of limited number of current information dissemination times; furthermore, by performing offline speech synthesis processing on the text information, not only the cost of information dissemination is reduced, but also the problem of inability to perform speech synthesis due to the lack of a server for online speech synthesis is avoided.

[0034] It should be pointed out that the device types of management devices and intelligent devices are not limited to the above-mentioned access control devices, video intercom devices, attendance devices, etc., and can be set according to needs in actual applications.

[0035] Based on the above application scenario architecture, one or more embodiments of the present application provide a method for processing TTS speech. Figure 2 A flowchart of a method for processing TTS speech provided in one or more embodiments of the present application is provided. Figure 2 The method in can be Figure 1 Execute on the management machine device in . Figure 2 , the method may include the following steps:

[0036] Step 102, obtaining text information to be processed;

[0037] Specifically, an information processing request sent by a designated device is received, and the text information to be processed is obtained from the information processing request; or, an information processing request is obtained in response to an information processing operation of a user, and the text information to be processed is obtained from the information processing request.

[0038] Among them, the designated device can be a user's terminal device, such as a mobile phone, a platform computer, a portable notebook, etc.; it can also be a control device that is connected to the management machine device in communication, such as a server or a server cluster composed of multiple servers. Specifically, the user's terminal device is installed with a control program of the management machine device, which can be an independent application (Application, referred to as App) or a small program embedded in other applications. When the user needs to broadcast information, he can operate the control program in his terminal device, edit the corresponding text information, and submit the operation after the editing is completed (such as clicking the OK button, etc.); the terminal device responds to the user's submission operation, obtains the text information submitted by the user, and sends an information processing request to the management machine device according to the obtained text information; the management machine device receives the information processing request sent by the user's terminal device, and obtains the text information to be processed from the received information processing request. Alternatively, the control device sends an information processing request to the management machine device according to the obtained text information, and the management machine device receives the information processing request sent by the control device, and obtains the text information to be processed from the received information processing request. Alternatively, when the management machine device is provided with an input module, the user can operate the input module of the management machine device to input text information, and after completing the input, click a button such as OK or Submit to send an information processing request to the management machine device. The management machine device obtains the information processing request in response to the user's information processing operation, and obtains the text information to be processed from the information processing request.

[0039] Step 104, performing offline speech synthesis processing on the text information according to a preset speech synthesis rule to obtain TTS speech;

[0040] The offline speech synthesis processing in the embodiment of the present application refers to the speech synthesis processing performed locally on the management machine device; correspondingly, the online speech synthesis processing refers to the management machine device sending the acquired text information to be processed to the server through the network, and the server performs speech synthesis processing to obtain TTS speech, and sends the obtained TTS speech to the management machine device. Considering that in actual applications, the cost of deploying a server is high, not every community or industrial park will deploy a server. Based on this, in the embodiment of the present application, the management machine device performs offline speech synthesis processing on the text information according to the preset speech synthesis rules, which not only reduces the cost of information dissemination, but also avoids the problem of being unable to perform speech synthesis due to the lack of a server for online speech synthesis.

[0041] Step 106: If it is determined that the playing strategy of the TTS voice is to play through the smart device in the distributed network, the TTS voice is sent to the corresponding smart device, so that the smart device plays the TTS voice when it is determined that the preset playing conditions are met.

[0042] Among them, the playback strategy may include playback through smart devices in the distributed network, direct playback, suspended playback, etc. Playback through smart devices in the distributed network means sending the TTS voice to the corresponding smart device in the distributed network, and the smart device plays the TTS voice; direct playback means that the management device synthesizes the TTS voice and then plays it directly by itself; suspended playback means that playback processing is performed when the playback conditions are met. It should be pointed out that multiple playback strategies can be executed at the same time, such as the two playback strategies of playback through smart devices in the distributed network and direct playback can be executed at the same time. The networking method of the distributed network can be found in the above-mentioned related description, which will not be repeated here. The preset playback conditions can be set according to needs in actual applications, such as playing at preset time intervals, playing when the specified time is reached, etc.

[0043] In the embodiment of the present application, the management machine device pre-forms a distributed network with at least one intelligent device. When the management machine device obtains the text information to be processed, it performs offline speech synthesis processing on the text information according to the preset speech synthesis rules to obtain TTS speech; if it is determined that the playback strategy of the TTS speech is to play through the intelligent device in the distributed network, the TTS speech is sent to the corresponding intelligent device, so that the intelligent device plays the TTS speech when it determines that the preset playback conditions are met. Therefore, by converting the text information into TTS speech and automatically playing the TTS speech based on the distributed network without manual reading, the efficiency of information dissemination is greatly improved; and the intelligent device can play the TTS speech when it determines that the playback conditions are met, which effectively solves the problem of limited current information dissemination times; furthermore, by performing offline speech synthesis processing on the text information, not only the cost of information dissemination is reduced, but also the problem of inability to perform speech synthesis due to the lack of a server for online speech synthesis is avoided.

[0044] Considering that the computing resources of the management machine are limited, and the computing resources consumed by the speech synthesis processing are positively correlated with the length of the text information; in order to avoid the length of the text information to be processed being too long, the computing resources consumed in the speech synthesis process are too large, and the management machine device cannot support such consumption, resulting in speech synthesis failure and other problems, in one or more embodiments of the present application, the text information to be processed is subjected to segmented speech synthesis processing, specifically, Figure 3 As shown, step 104 may include the following steps 104-2 to 104-6:

[0045] Step 104-2, if it is determined that the length of the text information is greater than the first preset length, segment the text information according to a preset segmentation rule to obtain a plurality of sub-texts;

[0046] Furthermore, if it is determined that the length of the text information is not greater than the first preset length, the text information is subjected to offline speech synthesis processing to obtain corresponding TTS speech. The first preset length can be considered as the maximum length of the text information that can be processed by the management machine during a single speech synthesis processing.

[0047] Furthermore, when the playback strategy is to play through the smart devices in the distributed network, considering that the voice playback capabilities of smart devices are usually limited, when the length of the TTS voice exceeds the maximum voice playback length of the smart device for a single voice playback, there is a risk that the TTS voice cannot be played smoothly. Based on this, in one or more embodiments of the present application, the management device combines its own voice synthesis capabilities and the voice playback capabilities of the smart device to perform segmented voice synthesis processing. Specifically, Figure 4As shown, step 104-2 may include the following steps 104-22 to 104-26:

[0048] Step 104-22, if it is determined that the playback strategy of the TTS voice to be synthesized is to play it through the smart device in the distributed network, then determine the target text length corresponding to the maximum voice playback length of a single voice playback by the smart device;

[0049] Since different smart devices have different voice playback capabilities, in order to enable the management device to quickly determine the text length corresponding to the maximum voice playback length of a single voice playback by the smart device, in one or more embodiments of the present application, a correspondence between the device information of the smart device and the text length corresponding to the maximum voice playback length that the smart device can play can be pre-established. Accordingly, step 104-22 may include: the management device obtains the corresponding text length from the preset correspondence according to the device information of the smart device to which the TTS voice is to be sent, and determines the obtained text length as the target text length corresponding to the maximum voice playback length of a single voice playback by the smart device. Furthermore, when there are multiple smart devices to send TTS voices, the smallest text length among the obtained text lengths is determined as the target text length corresponding to the maximum voice playback length of a single voice playback by the smart device.

[0050] In one or more embodiments of the present application, the management device can also obtain the target text length from the smart device. Specifically, step 104-22 may include: sending a length acquisition request to the smart device to which the TTS voice is to be sent, receiving the text length sent by the smart device, and determining the received text length as the target text length corresponding to the maximum voice playback length of a single voice playback by the smart device. Furthermore, when there are multiple smart devices to which TTS voices are to be sent, the smallest text length among the received text lengths is determined as the target text length corresponding to the maximum voice playback length of a single voice playback by the smart device.

[0051] Step 104-24, comparing the first preset length with the target text length, and determining the smaller length as the standard length;

[0052] Step 104-26: if it is determined that the length of the text information is greater than the standard length, the text information is segmented according to a preset segmentation rule to obtain a plurality of sub-texts.

[0053] Therefore, when the length of the text information is greater than the standard length, the text information is segmented and processed, thereby performing segmented speech synthesis, which can meet the speech synthesis capability of the management device and the speech playback capability of the smart device.

[0054] Corresponding to steps 104-22 to 104-26, as Figure 4 As shown, step 106 may include the following steps 106-2:

[0055] Step 106-2, sending the TTS voice to the corresponding smart device, so that the smart device plays the TTS voice when it is determined that the preset playing condition is met.

[0056] Step 104-4, dividing the obtained subtext into a plurality of subtext sets according to a preset synthesis condition;

[0057] Step 104 - 6 , performing offline speech synthesis processing on the subtexts in each subtext set to obtain corresponding TTS speech.

[0058] Considering that in this information, punctuation marks can usually represent a relatively complete semantics, based on this, in one or more embodiments of the present application, segmentation processing is performed based on punctuation marks in the text information. Specifically, Figure 5 As shown, step 104-26 may include the following steps 104-262 and 104-264:

[0059] Step 104-262, determining whether the length of the text information is greater than the standard length, if yes, determining the text information as the text to be segmented, and executing step 104-264, otherwise, performing offline speech synthesis processing on the acquired text information to obtain TTS speech, and executing step 106-2;

[0060] The first preset length can be set as needed in actual applications, for example, the first preset length is 25 characters.

[0061] Step 104-264, detect punctuation marks in the text to be segmented in order from front to back, determine whether the detected punctuation marks are first preset marks, and if so, perform segmentation processing at the position where the punctuation marks are located to obtain corresponding sub-texts.

[0062] Specifically, each time a punctuation mark is detected in the text to be segmented, it is determined whether the detected punctuation mark is a mark in the first preset mark. If so, segmentation is performed at the position where the detected punctuation mark is located to obtain the corresponding sub-text; if not, the punctuation mark detection process is continued. The preset mark can be set as needed in actual applications. For example, the first preset mark includes a period, an exclamation mark, a semicolon, etc.

[0063] Furthermore, considering that in actual applications, the subtext obtained by segmentation according to the first preset symbol may be too long, based on this, segmentation is performed at the position where the punctuation mark is located in step 104-264 to obtain the corresponding subtext, which may include:

[0064] Determine whether the length of the text to be segmented before the punctuation mark exceeds the standard length; if so, determine the segmentation position in the text to be segmented according to a preset method, and perform segmentation processing at the determined segmentation position so that the length of the obtained sub-text does not exceed the standard length; if not, perform segmentation processing at the position where the punctuation mark is located to obtain the corresponding sub-text.

[0065] Specifically, when the first preset symbol is detected for the first time, the text information before the first preset symbol is determined as the text to be segmented; when the first preset symbol is not detected for the first time, the text between the currently detected first preset symbol and the first preset symbol detected last time is determined as the text to be segmented. In order to meet the text length requirement, in one or more embodiments of the present application, the aforementioned determination of the segmentation position in the text to be segmented according to a preset method may include: determining the segmentation position in the text to be segmented according to a standard length; specifically, determining the target text information of the standard length in the text to be segmented in a forward-to-backward order, determining the position after the last character of the target text information as the segmentation position, performing segmentation processing at the determined segmentation position, and obtaining the corresponding sub-text.

[0066] Further, considering that when determining the segmentation position in the text to be segmented according to the standard length, a certain word may be segmented into two parts, for example, for the word "today", the word "today" is in the currently obtained sub-text, and the word "day" is in the next sub-text, resulting in poor listening experience for the listener when TTS voice is played. And taking the first preset symbol as a period as an example, in actual applications, when the corresponding text is too long, there are usually punctuation marks such as commas and semicolons in the middle. Based on this, in order to avoid semantic splitting, in one or more embodiments of the present application, the aforementioned determination of the segmentation position in the text to be segmented according to a preset method may include: detecting whether the text to be segmented includes a second preset symbol, if the second preset symbol is included, and the length of the text to be segmented before the second preset symbol does not exceed the standard length, then the position where the second preset symbol is located is determined as the segmentation position. It should be pointed out that the method for determining the segmentation position in the text to be segmented is not limited to the above method, and can be set according to actual application needs, such as dividing the text to be segmented equally.

[0067] Furthermore, after determining the segmentation position in the text to be segmented and performing segmentation processing to obtain the corresponding sub-text, the position of the currently detected first preset symbol corresponding to the text to be segmented can be determined as the next segmentation position; or, when the length of the remaining text after the segmentation processing of the text to be segmented is less than the third preset length (such as 3 characters), continue to perform text detection processing, and when the next first preset symbol is detected, continue to process in the above manner.

[0068] Considering that the sub-text obtained by segmentation may have only a small number of characters, such as a sub-text of "Good morning", in order to avoid too many TTS voices, which is not conducive to the management of TTS voices, in one or more embodiments of the present application, the obtained sub-text is divided into multiple sub-text sets according to preset synthesis conditions. Specifically, Figure 6 As shown, step 104-4 may include the following steps 104-42 and 104-44:

[0069] Step 104-42, determining the sub-texts to be divided in sequence;

[0070] Step 104-44, in a forward-to-backward order, determine N subtexts whose total length is greater than the standard length and whose total length of the first N-1 subtexts is not greater than the standard length in the subtext to be divided, and divide the first N-1 subtexts into a subtext set; wherein N is an integer greater than 1;

[0071] In order to improve the response speed of information processing requests, optionally, in one or more embodiments of the present application, segmentation processing can be performed while dividing subtext sets and synthesizing TTS speech; that is, when each subtext is obtained, it is determined whether a corresponding subtext set can be divided, and when a corresponding subtext set is divided, the corresponding TTS speech offline synthesis processing is performed. Specifically, Figure 7 As shown, step 104-42 may include the following steps 104-422:

[0072] Step 104-422, determining the corresponding subtext obtained by the segmentation process as the current subtext, and determining whether there is an undivided subtext before the current subtext in a forward-to-backward order, if yes, determining the current subtext and the undivided subtext as the current subtext to be divided, otherwise determining the current subtext as the current subtext to be divided;

[0073] Corresponding to step 104-422, Figure 7 As shown, step 104-44 may include the following steps 104-44-2 and 104-44-4: step 104-6 may include the following steps 104-62 and 104-64:

[0074] Step 104-44-2, determine whether the total length of the subtext to be divided is greater than the standard length, if yes, execute step 104-44-4, otherwise return to step 104-264;

[0075] It should be noted that if there is only one sub-text to be divided at present, its length must not be greater than the standard length, so the process returns to step 104-264.

[0076] Step 104-44-4, dividing the first N-1 subtexts of the N subtexts to be divided into a subtext set;

[0077] For example, the current sub-texts to be divided are 3 sub-texts (i.e., N=3). In order from front to back, the length of the first sub-text to be divided is 15 characters, the length of the second sub-text to be divided is 8 characters, and the length of the third sub-text to be divided is 9 characters. The standard length is 25 characters, so the first sub-text to be divided and the second sub-text to be divided are divided into a sub-text set.

[0078] Step 104-62, performing offline speech synthesis processing on the obtained sub-text set to obtain the corresponding TTS speech,

[0079] Step 104-64, determining whether there is unsegmented text information, if yes, determining the unsegmented text information as the text to be segmented, and returning to step 104-264; otherwise, executing step 106-2;

[0080] It should be pointed out that in steps 104-264, after segmentation processing is performed at the location where the punctuation marks are located and the corresponding sub-text is obtained, a preset mark to be segmented can be added at the location where the punctuation marks are located, so that when the next segmentation processing is performed, the position of the mark to be segmented can be determined as the starting detection position, and the punctuation marks in the text information can be detected backward from the starting detection position.

[0081] The above is the process of determining whether a sub-text set can be obtained after each segmentation process, and performing offline speech synthesis processing when a sub-text set is obtained. Since offline speech synthesis processing is performed immediately after a sub-text set is obtained to obtain the corresponding TTS speech, the TTS speech can be played in a timely manner, thereby improving the response rate of information processing requests.

[0082] In one or more embodiments of the present application, when the response rate requirement for information processing requests is not very high, after the acquired text information is segmented to obtain all subtexts, each subtext is divided into sets, and corresponding offline speech synthesis processing is performed when each subtext set is obtained. Specifically, Figure 8 As shown, step 104-42 may include the following steps 104-424:

[0083] Step 104-424 determines whether it is the first time to perform the segmentation process on the sub-text set. If so, each sub-text obtained by the segmentation process is determined as the sub-text to be currently divided; otherwise, a sub-text with a preset to-be-divided mark is added to each sub-text obtained by the segmentation process, and the determined sub-text and each subsequent sub-text are determined as the sub-text to be currently divided in order from front to back.

[0084] Corresponding to step 104-424, step 104-44 may include the following steps 104-44-6 to 104-44-12, and step 104-6 may include the following steps 104-66:

[0085] Step 104-44-6, determining the first two subtexts in the subtext to be divided as the current subtext;

[0086] Step 104-44-8, determine whether the length of the current subtext is greater than the standard length, if yes, execute step 104-44-10, otherwise execute step 104-44-12;

[0087] Step 104-44-10, divide the first N-1 subtexts of the determined N current subtexts into a subset, determine whether there are subtexts to be divided after the Nth subtext of the N current subtexts, if so, add the preset to-be-divided marker to the Nth subtext, and execute step 104-66; otherwise, divide the Nth subtext into a subtext set, and use it as the last subtext set, and execute step 104-66.

[0088] Step 104-44-12, determine whether there is a subtext to be divided after the Nth subtext in the N current subtexts, if yes, determine the N current subtexts and the next subtext of the Nth subtext as the current subtext, and return to step 104-44-8; otherwise, divide the N current subtexts into a subtext set, and use it as the last subtext set, and execute step 104-66;

[0089] Step 104-66, performing offline speech synthesis processing on the obtained sub-text set to obtain corresponding TTS speech, and determining whether the obtained sub-text set is the last sub-text set, if yes, executing step S106, otherwise returning to step 104-424;

[0090] The above is the process of dividing the subtext set based on each subtext obtained by segmentation after the segmentation process is completed, and performing offline speech synthesis processing when a subtext set is obtained through the division process. Not only does it realize text-to-speech, but it can also meet the requirements of ensuring a certain synthesis rate of TTS speech when the response rate of information processing requests is not very high.

[0091] Furthermore, the offline synthesis processing of TTS speech is not limited to the above-mentioned execution when each subtext set is obtained. For the playback strategy such as suspended playback, since the requirement for the response rate of the information processing request is not high, after the subtexts are divided into subtext sets to obtain all subtext sets, offline speech synthesis processing can be performed on each obtained subtext set. The specific timing of offline speech synthesis processing can be set by oneself according to the actual application needs.

[0092] Therefore, by dividing the text information to be processed into multiple sub-texts, and dividing the sub-texts into sub-text sets, and performing offline speech synthesis processing on the sub-texts in each sub-text set, the corresponding TTS speech is obtained, which ensures that the text can be accurately converted into speech while meeting the requirements of high response rate.

[0093] Furthermore, in order to meet the demand for information promotion and play the TTS voice at an appropriate time, the following step S102 may further include: determining a play strategy for the TTS voice to be synthesized.

[0094] Specifically, when sending an information processing request to the management device, playback information can also be specified; accordingly, the management device determines whether the playback information is obtained, and if so, determines the playback strategy of the TTS voice to be synthesized based on the playback information; if not, the default playback strategy is determined as the playback strategy of the TTS voice to be synthesized.

[0095] The play information may include play strategy information, play time information, etc. The default play strategy can be set as needed in actual applications, such as the default play strategy is to play through smart devices in the distributed network.

[0096] Furthermore, considering that an industrial park is often large and can be divided into multiple areas, some information only needs to be promoted in a certain area; therefore, the user can also specify the device information of the smart device that plays the TTS voice in the playback information. Correspondingly, sending the TTS voice to the smart device in step 106 may include: determining the target smart device to be sent in the distributed network according to the playback information, and sending an information sending request to the routing device in the distributed network according to the device information of the target smart device and the TTS voice, so that the routing device sends the TTS voice to the target smart device. Specifically, the management machine device obtains the device information of the target smart device from the playback information, and sends an information sending request to the routing device in the distributed network according to the obtained device information and the TTS voice. The routing device sends the TTS voice to the smart device corresponding to the device information according to the received information sending request. Among them, the device information includes device identification, device IP address, etc.

[0097] Considering that some users may not be present when the smart device is playing TTS voice, in order to enable the absent users to query relevant information, in one or more embodiments of the present application, the method may further include: sending text information to the smart device, so that the smart device responds to the user's query request for the text information and displays the corresponding text information. The text information may be sent to the smart device at the same time as the TTS voice, or may be sent to the smart device separately.

[0098] Furthermore, when the smart device receives text information, it saves the received text information; when the user wants to query a certain text information, he operates the smart device to select the text information to be queried; the smart device responds to the user's query request for text information and displays the corresponding text information.

[0099] It should be pointed out that, since the storage space of the smart device is limited, and saving audio data requires a large storage space, the smart device will delete the TTS voice after playing the TTS voice sent by the management device. When the smart device has speech synthesis capability, the user can select the query method when operating the smart device to select the text information to be queried, such as querying in the form of text information, querying in the form of voice, etc.; accordingly, the smart device responds to the user's query operation. If it is determined to query in the form of voice, it will perform offline speech synthesis processing based on the corresponding text information to obtain TTS voice and play the obtained TTS voice. Among them, the process of offline speech synthesis processing by the smart device is similar to the process of offline speech synthesis processing by the aforementioned management device, except that when the smart device determines that the length of the text information is greater than the third preset length, the text information is segmented according to the preset segmentation rule to obtain multiple sub-texts; wherein the third preset length is the maximum length of the text information that can be processed by the smart device when performing speech synthesis processing at a single time.

[0100] Furthermore, considering that when the synthesized TTS voice reaches a certain length, the TTS voice can be played while the remaining TTS voice is synthesized to achieve a high response rate, based on this, in one or more embodiments of the present application, step 104-6 may also include: determining the length of the currently synthesized TTS voice, and if it is determined that the length of the synthesized TTS voice is not less than the second preset length, sending the currently synthesized TTS voice to the smart device. Specifically, if it is determined that the length of the synthesized TTS voice is not less than the second preset length and the playback strategy is to play through the smart device in the distributed network, the currently synthesized TTS voice is sent to the corresponding smart device.

[0101] Considering that smart devices often have format requirements when playing voices, based on this, sending TTS voices to the smart device may include: encoding the TTS voices to obtain TTS voices in a first preset format, and sending the TTS voices in the first preset format to the smart device. The first preset format can be set as needed in actual applications, such as MP3 format.

[0102] Since the play strategy may also be direct play, suspended play, etc., the method may further include:

[0103] If it is determined that the playing strategy of the TTS voice is direct play, the text information is saved and the TTS voice is played.

[0104] If it is determined that the playback strategy of the TTS voice is to postpone playback, the TTS voice is encoded to obtain a TTS voice in a second preset format; the TTS voice in the second preset format is saved; and if it is determined that the playback conditions of the TTS voice in the second preset format are met, the TTS voice in the second preset format is played. Among them, the second preset format may be the same as or different from the aforementioned first preset format, and it can be set according to needs in actual applications, such as both are MP3 formats, etc.; the playback conditions include receiving the playback instruction information sent by the designated device, reaching the designated playback time, etc. The playback processing of the TTS voice in the second preset format can be played directly, or it can be sent to the smart device in the distributed network so that the smart device plays it, etc.

[0105] It should be pointed out that when the playback strategy is direct playback, the speech synthesis capability of the smart device may not be considered during the processing of segmented speech synthesis, that is, the first preset length is determined as the target text length.

[0106] Furthermore, when the management machine device has the function of querying and displaying information, the method may further include: in response to a user's query request for text information, displaying corresponding text information.

[0107] In the embodiment of the present application, the management machine device pre-forms a distributed network with at least one intelligent device. When the management machine device obtains the text information to be processed, it performs offline speech synthesis processing on the text information according to the preset speech synthesis rules to obtain TTS speech; if it is determined that the playback strategy of the TTS speech is to play through the intelligent device in the distributed network, the TTS speech is sent to the corresponding intelligent device, so that the intelligent device plays the TTS speech when it determines that the preset playback conditions are met. Therefore, by converting the text information into TTS speech and automatically playing the TTS speech based on the distributed network without manual reading, the efficiency of information dissemination is greatly improved; and the intelligent device can play the TTS speech when it determines that the playback conditions are met, which effectively solves the problem of limited current information dissemination times; furthermore, by performing offline speech synthesis processing on the text information, not only the cost of information dissemination is reduced, but also the problem of inability to perform speech synthesis due to the lack of a server for online speech synthesis is avoided.

[0108] Based on the same technical concept, one or more embodiments of the present application also provide a TTS speech processing device, Fig. 9 One or more embodiments of the present application also provide a schematic diagram of the module composition of a TTS speech processing device, such as Fig. 9 As shown, the device comprises:

[0109] Memory 201, used for storing speech synthesis rules;

[0110] Processor 202 is used to obtain text information to be processed, perform offline speech synthesis processing on the text information according to the speech synthesis rule, and obtain TTS speech; if it is determined that the playback strategy of the TTS speech is to play it through an intelligent device in the distributed network, the TTS speech is sent to the intelligent device, so that the intelligent device plays the TTS speech when it is determined that the preset playback conditions are met.

[0111] The TTS voice processing device provided in the embodiment of the present application, when obtaining the text information to be processed, performs offline voice synthesis processing on the text information according to the preset voice synthesis rules to obtain TTS voice; if it is determined that the playback strategy of the TTS voice is to play through the intelligent device in the distributed network, the TTS voice is sent to the corresponding intelligent device, so that the intelligent device plays the TTS voice when it is determined that the preset playback conditions are met. Therefore, by converting the text information into TTS voice and automatically playing the TTS voice based on the distributed network without manual reading, the efficiency of information dissemination is greatly improved; and the intelligent device can play the TTS voice when it is determined that the playback conditions are met, which effectively solves the problem of limited current information dissemination times; furthermore, by performing offline voice synthesis processing on the text information, not only the cost of information dissemination is reduced, but also the problem of being unable to perform voice synthesis due to the lack of a server for online voice synthesis is avoided.

[0112] Optionally, the processor 202 receives an information processing request sent by a designated device, and obtains the text information to be processed from the information processing request; or,

[0113] An information processing request is obtained in response to an information processing operation of a user, and text information to be processed is obtained from the information processing request.

[0114] Optionally, the processor 202, if it is determined that the length of the text information is greater than a first preset length, segments the text information according to a preset segmentation rule to obtain a plurality of sub-texts;

[0115] Dividing the subtext into a plurality of subtext sets according to a preset synthesis condition;

[0116] Offline speech synthesis processing is performed on each subtext in the subtext set to obtain corresponding TTS speech.

[0117] Optionally, the processor 202 determines a target text length corresponding to a maximum voice playback length of a single voice playback by the smart device;

[0118] Comparing the first preset length with the target text length, and determining the smaller length as the standard length;

[0119] If it is determined that the length of the text information is greater than the standard length, the text information is segmented according to a preset segmentation rule to obtain a plurality of sub-texts.

[0120] Optionally, the processor 202 determines the text information as a text to be segmented, and detects punctuation marks in the text to be segmented in a sequence from front to back;

[0121] It is determined whether the detected punctuation mark is a first preset mark, and if so, segmentation is performed at the position where the punctuation mark is located to obtain a corresponding subtext.

[0122] Optionally, the processor 202 determines whether the length of the to-be-segmented text before the punctuation mark is greater than the standard length;

[0123] If yes, determining the segmentation position in the text to be segmented according to a preset method, and performing segmentation processing at the segmentation position so that the length of the obtained sub-text does not exceed the standard length;

[0124] If not, segmentation is performed at the location of the punctuation mark to obtain a corresponding sub-text.

[0125] Optionally, the processor 202 sequentially determines the subtexts to be divided currently;

[0126] Determine, in order from front to back, N subtexts in the subtext to be divided whose total length is greater than the standard length and whose total length of the first N-1 subtexts is not greater than the standard length; wherein N is an integer greater than 1;

[0127] The first N-1 subtexts are divided into a subtext set.

[0128] Optionally, the processor 202 determines the corresponding subtext obtained by the segmentation process as the current subtext;

[0129] Determine, in order from front to back, whether there is an undivided subtext before the current subtext;

[0130] If yes, the current subtext and the undivided subtext are determined as the current subtext to be divided;

[0131] If not, the current subtext is determined as the subtext to be divided.

[0132] Optionally, the processor 202 determines whether it is the first time to perform the division process of the subtext set;

[0133] If yes, each sub-text obtained by the segmentation process is determined as the sub-text to be currently segmented;

[0134] If not, then determining the subtexts with the preset to-be-divided mark added to each subtext obtained by the segmentation process, and determining the determined subtext and each subsequent subtext as the current subtext to be divided in order from front to back;

[0135] After dividing the first N-1 subtexts into a subtext set, the method further includes:

[0136] If it is determined that there is a sub-text to be divided after the Nth sub-text, a to-be-divided mark is added to the Nth sub-text.

[0137] Optionally, the processor 202 determines the length of the currently synthesized TTS speech;

[0138] If it is determined that the length of the currently synthesized TTS voice is not less than the second preset length, the currently synthesized TTS voice is sent to the smart device.

[0139] Optionally, the processor 202 encodes the TTS speech to obtain a TTS speech in a first preset format;

[0140] The TTS voice in the first preset format is sent to the smart device.

[0141] Optionally, the processor 202 sends the text information to the smart device, so that the smart device displays the text information in response to a user's query request for the text information.

[0142] Optionally, the processor 202 determines whether the playback information of the TTS voice is obtained;

[0143] If yes, determining the playback strategy of the TTS voice according to the playback information;

[0144] If not, the default playing strategy is determined as the playing strategy of the TTS voice.

[0145] Optionally, the processor 202 determines a target smart device to be sent in the distributed network according to the play information;

[0146] An information sending request is sent to a routing device in the distributed network according to the device information of the target smart device and the TTS voice, so that the routing device sends the TTS voice to the target smart device.

[0147] Optionally, the device further comprises: a speaker module;

[0148] The processor module saves the text information if it is determined that the play strategy is direct play;

[0149] The speaker module plays the TTS voice.

[0150] Optionally, the processor 202, if determining that the play strategy is to suspend play, encodes the TTS voice to obtain a TTS voice in a second preset format;

[0151] The memory 201 stores the TTS speech in the second preset format;

[0152] The processor 202 plays the TTS voice in the second preset format if it is determined that the playing condition of the TTS voice in the second preset format is met.

[0153] The TTS voice processing device provided in the embodiment of the present application, when obtaining the text information to be processed, performs offline voice synthesis processing on the text information according to the preset voice synthesis rules to obtain TTS voice; if it is determined that the playback strategy of the TTS voice is to play through the intelligent device in the distributed network, the TTS voice is sent to the corresponding intelligent device, so that the intelligent device plays the TTS voice when it is determined that the preset playback conditions are met. Therefore, by converting the text information into TTS voice and automatically playing the TTS voice based on the distributed network without manual reading, the efficiency of information dissemination is greatly improved; and the intelligent device can play the TTS voice when it is determined that the playback conditions are met, which effectively solves the problem of limited current information dissemination times; furthermore, by performing offline voice synthesis processing on the text information, not only the cost of information dissemination is reduced, but also the problem of being unable to perform voice synthesis due to the lack of a server for online voice synthesis is avoided.

[0154] In addition, for the above-mentioned device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. In addition, it should be noted that among the various components of the device of the present invention, the components are logically divided according to the functions to be implemented, but the present invention is not limited thereto, and the various components can be re-divided or combined as needed.

[0155] Based on the same technical concept, one or more embodiments of the present application also provide a TTS speech processing system. Fig.10 One or more embodiments of the present application also provide a schematic diagram of the composition of a TTS speech processing system, such as Fig.10 As shown, the system includes: a management device 301 and at least one intelligent device 302;

[0156] The management device 301 is used to perform relevant processing of the TTS speech according to the aforementioned TTS speech processing method;

[0157] The smart device 302 receives the TTS voice sent by the management device 301, and plays the TTS voice if it is determined to meet the preset playing conditions.

[0158] Alternatively, if Fig.11 As shown, the system further includes: a routing device 303, the management device 301 is connected to the intelligent device 302 through the routing device 303 to form a distributed network;

[0159] The management device 301 is specifically used to send the TTS voice obtained according to the aforementioned TTS voice processing method to the routing device 303;

[0160] The routing device 303 sends the received TTS voice to the smart device 302;

[0161] The smart device 302 receives the TTS voice sent by the routing device 303.

[0162] The TTS voice processing system provided in the embodiment of the present application, when obtaining the text information to be processed, performs offline voice synthesis processing on the text information according to the preset voice synthesis rules to obtain TTS voice; if it is determined that the playback strategy of the TTS voice is to play through the intelligent device in the distributed network, the TTS voice is sent to the corresponding intelligent device, so that the intelligent device plays the TTS voice when it is determined that the preset playback conditions are met. Therefore, by converting the text information into TTS voice and automatically playing the TTS voice based on the distributed network without manual reading, the efficiency of information dissemination is greatly improved; and the intelligent device can play the TTS voice when it is determined that the playback conditions are met, which effectively solves the problem of limited current information dissemination times; furthermore, by performing offline voice synthesis processing on the text information, not only the cost of information dissemination is reduced, but also the problem of inability to perform voice synthesis due to the lack of a server for online voice synthesis is avoided.

[0163] In addition, for the above-mentioned system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0164] Fig.12 This is a schematic diagram of a structure of an electronic device provided by an embodiment of the present invention, see Fig.12 , the electronic device includes a processor, an internal bus, a network interface, a memory and a non-volatile memory, and of course may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a TTS voice processing device at the logical level. Of course, in addition to software implementation methods, this application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0165] The network interface, processor and memory can be connected to each other through a bus system. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.12 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0166] The memory is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory may include read-only memory and random access memory, and provide instructions and data to the processor. The memory may include high-speed random access memory (RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage.

[0167] The processor is used to execute the program stored in the memory, and specifically perform:

[0168] Get the text information to be processed;

[0169] Performing offline speech synthesis processing on the text information according to preset speech synthesis rules to obtain TTS speech;

[0170] If it is determined that the playing strategy of the TTS voice is to play it through an intelligent device in the distributed network, the TTS voice is sent to the intelligent device, so that the intelligent device plays the TTS voice when it is determined that the preset playing conditions are met.

[0171] The above application Fig. 9The method performed by the TTS speech processing device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0172] Based on the same technical concept, the embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by an electronic device including multiple application programs, the electronic device executes Figures 1 to 8 A method for processing TTS speech provided by any corresponding embodiment.

[0173] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0174] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0175] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0176] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0177] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0178] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0179] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0180] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0181] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0182] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0183] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0184] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for processing TTS speech, characterized in that: include: Get the text information to be processed; Performing offline speech synthesis processing on the text information according to preset speech synthesis rules to obtain TTS speech; If it is determined that the playback strategy of the TTS voice is to play it through an intelligent device in the distributed network, the TTS voice is sent to the intelligent device, so that the intelligent device plays the TTS voice when it is determined that the preset playback conditions are met; The performing offline speech synthesis processing on the text information according to a preset speech synthesis rule to obtain TTS speech includes: If it is determined that the length of the text information is greater than the standard length, the text information is segmented according to a preset segmentation rule to obtain multiple sub-texts, the standard length is the smaller of a first preset length and a target text length, the first preset length is the maximum length of the text information that can be processed when the management machine performs a single speech synthesis process, and the target text length is the text length corresponding to the maximum voice playback length of a single voice playback by the smart device; Dividing the subtext into a plurality of subtext sets according to a preset synthesis condition; Offline speech synthesis processing is performed on each subtext in the subtext set to obtain corresponding TTS speech.

2. The method according to claim 1, characterized in that: The obtaining of the text information to be processed includes: receiving an information processing request sent by a designated device, and obtaining text information to be processed from the information processing request; or, An information processing request is obtained in response to an information processing operation of a user, and text information to be processed is obtained from the information processing request.

3. The method according to claim 1, characterized in that If it is determined that the length of the text information is greater than the standard length, the text information is segmented according to a preset segmentation rule to obtain a plurality of sub-texts, including: Determine a target text length corresponding to a maximum voice playback length of a single voice playback by the smart device; Comparing the first preset length with the target text length, and determining the smaller length as the standard length; If it is determined that the length of the text information is greater than the standard length, the text information is segmented according to a preset segmentation rule to obtain a plurality of sub-texts.

4. The method according to claim 3, characterized in that The segmentation process of the text information according to the preset segmentation rule to obtain a plurality of sub-texts includes: Determine the text information as the text to be segmented, and detect punctuation marks in the text to be segmented in a forward-to-backward order; It is determined whether the detected punctuation mark is a first preset mark, and if so, segmentation is performed at the position where the punctuation mark is located to obtain a corresponding subtext.

5. The method according to claim 4, characterized in that The segmentation process is performed at the position where the punctuation mark is located to obtain the corresponding sub-text, including: Determine whether the length of the text to be segmented before the punctuation mark is greater than the standard length; If yes, determining the segmentation position in the text to be segmented according to a preset method, and performing segmentation processing at the segmentation position so that the length of the obtained sub-text does not exceed the standard length; If not, segmentation is performed at the location of the punctuation mark to obtain a corresponding sub-text.

6. The method according to claim 4, characterized in that The step of dividing the subtext into a plurality of subtext sets according to a preset synthesis condition comprises: Determine the subtexts to be divided in sequence; Determine, in order from front to back, N subtexts in the subtext to be divided whose total length is greater than the standard length and whose total length of the first N-1 subtexts is not greater than the standard length; wherein N is an integer greater than 1; The first N-1 subtexts are divided into a subtext set.

7. The method according to claim 6, characterized in that The step of determining the subtext to be divided currently includes: Determining the corresponding subtext obtained by the segmentation process as the current subtext; Determine, in order from front to back, whether there is an undivided subtext before the current subtext; If yes, the current subtext and the undivided subtext are determined as the current subtext to be divided; If not, the current subtext is determined as the subtext to be divided.

8. The method according to claim 6, characterized in that The step of determining the subtext to be divided currently includes: Determining whether it is the first time to perform the division process of the subtext set; If yes, each sub-text obtained by the segmentation process is determined as the sub-text to be currently segmented; If not, then determining the subtexts with the preset to-be-divided mark added to each subtext obtained by the segmentation process, and determining the determined subtext and each subsequent subtext as the current subtext to be divided in order from front to back; After dividing the first N-1 subtexts into a subtext set, the method further includes: If it is determined that there is a sub-text to be divided after the Nth sub-text, a to-be-divided mark is added to the Nth sub-text.

9. The method according to claim 1, characterized in that: After obtaining the corresponding TTS voice, the method further includes: Determine the length of the currently synthesized TTS speech; If it is determined that the length of the currently synthesized TTS voice is not less than the second preset length, the currently synthesized TTS voice is sent to the smart device.

10. The method according to claim 1, characterized in that The sending the TTS voice to the smart device includes: Encoding the TTS speech to obtain a TTS speech in a first preset format; The TTS voice in the first preset format is sent to the smart device.

11. The method according to claim 1, characterized in that: The method further comprises: The text information is sent to the smart device, so that the smart device displays the text information in response to a user's query request for the text information.

12. The method according to claim 1, characterized in that The method further comprises: Determine whether the playback information of the TTS voice is obtained; If yes, determining the playback strategy of the TTS voice according to the playback information; If not, the default playing strategy is determined as the playing strategy of the TTS voice.

13. The method according to claim 1, characterized in that The method further comprises: If it is determined that the playing strategy of the TTS voice is direct playing, the text information is saved and the TTS voice is played.

14. The method according to claim 1, characterized in that The method further comprises: If it is determined that the playback strategy of the TTS voice is to suspend playback, encoding the TTS voice to obtain a TTS voice in a second preset format; saving the TTS voice in the second preset format; and, If it is determined that the playing condition of the TTS voice in the second preset format is met, the TTS voice in the second preset format is played.

15. A TTS speech processing device, characterized in that: include: A memory, used for storing speech synthesis rules; A processor is used to obtain text information to be processed, perform offline speech synthesis processing on the text information according to the speech synthesis rule to obtain TTS speech; if it is determined that the playback strategy of the TTS speech is to play it through an intelligent device in the distributed network, the TTS speech is sent to the intelligent device, so that the intelligent device plays the TTS speech when it is determined that the preset playback conditions are met; The performing offline speech synthesis processing on the text information according to the speech synthesis rule to obtain TTS speech includes: If it is determined that the length of the text information is greater than the standard length, the text information is segmented according to a preset segmentation rule to obtain multiple sub-texts, the standard length is the smaller of a first preset length and a target text length, the first preset length is the maximum length of the text information that can be processed when the management machine performs a single speech synthesis process, and the target text length is the text length corresponding to the maximum voice playback length of a single voice playback by the smart device; Dividing the subtext into a plurality of subtext sets according to a preset synthesis condition; Offline speech synthesis processing is performed on each subtext in the subtext set to obtain corresponding TTS speech.

16. A TTS speech processing system, characterized in that: include: A management device and at least one intelligent device; The management machine device is used to perform TTS speech related processing according to the method described in any one of claims 1 to 14; The smart device receives the TTS voice sent by the management device, and plays the TTS voice if it is determined that the preset playing condition is met.

17. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus; wherein the processor, the communication interface and the memory communicate with each other via the bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to implement the steps of the method described in any one of claims 1 to 14.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 14 are implemented.