A method for automatic generation of emergency language

By analyzing the word attention and sentence importance in the emergency text, assigning word sentiment values, and using amplitude and speech speed adjustment functions to generate speech, the problem of difficulty in emphasizing key information in the existing technology is solved, and the system can be used in emergencies. information transmission effect.

CN118675500BActive Publication Date: 2024-10-25JINAN ZHENGFAN ELECTRONIC TECHNOLOGY CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202411147725.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-10-25
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

The existing speech synthesis system cannot effectively emphasize key information in emergency situations and cannot meet the urgency and importance requirements of information transmission.

Method used

By splitting the emergency language text into sentences, the word sentiment value of each word is calculated, and based on the amplitude adjustment function and the speaking speed adjustment function, the amplitude and speaking speed of the speech are configured, and divided into abnormal amplitude segments and abnormal speech speed segments. and normal segments, optimized to generate accentuated speech.

Benefits of technology

While maintaining the naturalness of speech, the generated speech can comfortably emphasize key information, improve the urgency and importance of information transmission, and ensure the comfort of the listener.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675500B_ABST
    Figure CN118675500B_ABST
Patent Text Reader

Abstract

The invention discloses an automatic generation method of emergency language, which belongs to the technical field of speech processing. The invention analyzes the word attention and sentence importance in the emergency text, allocates the word emotion value of each word, and according to the word emotion value of each word, through the amplitude adjustment function and the speech speed adjustment function, gives amplitude and speech speed to each word, considers the comfort of the audience, screens out the abnormal amplitude segment and the abnormal speech speed segment, and optimizes the abnormal amplitude segment and the abnormal speech speed segment, so that the generated speech maintains naturalness while also making the audience feel comfortable. The invention considers the word emotion value of each word and the speech comfort at the same time, so that the generated emergency language speech has the ability to emphasize key information and makes the audience comfortable at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of speech processing, and in particular to an automatic generation method of emergency language. Background Art

[0002] With the development of artificial intelligence and speech synthesis technology, automatic speech generation has become an important means of information transmission. In emergency situations, such as natural disasters, accident sites, or safety warnings, it is crucial to convey key information in a timely and accurate manner. Traditional speech synthesis systems usually focus on the naturalness and clarity of speech, but in emergency situations, in addition to these basic requirements, it is also necessary to ensure that the urgency and importance of information can be effectively conveyed.

[0003] Existing speech synthesis systems often lack sufficient consideration of the characteristics of emergency language. For example, in an emergency, certain key words need to be emphasized to attract the audience's attention, but traditional systems may not be able to do this. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the present invention provides an automatic generation method for emergency speech, which solves the problem that the prior speech synthesis technology lacks the ability to emphasize key information.

[0005] In order to achieve the above-mentioned purpose of the invention, the technical solution adopted by the present invention is: a method for automatically generating emergency language, comprising the following steps:

[0006] S1. Split the emergency language text into sentences;

[0007] S2. Get the sentiment value of each word according to the word attention and sentence importance in each sentence;

[0008] S3, according to the emotion value of each word, based on the amplitude adjustment function and the speech rate adjustment function, configuring the amplitude and speech rate of the corresponding word in the speech to be generated;

[0009] S4, dividing the speech to be generated into an abnormal amplitude segment, an abnormal speech rate segment and a normal segment according to the amplitude and speech rate of the corresponding words in the speech to be generated;

[0010] S5. Optimize the abnormal amplitude segments and abnormal speech speed segments, combine them with the normal segments, and generate emergency language speech.

[0011] The beneficial effects of the present invention are as follows: the present invention analyzes the word attention and sentence importance in the emergency text, allocates the word emotion value of each word, assigns amplitude and speech speed to each word according to the word emotion value of each word through the amplitude adjustment function and the speech speed adjustment function, screens out abnormal amplitude segments and abnormal speech speed segments in consideration of the comfort of the audience, optimizes the abnormal amplitude segments and abnormal speech speed segments, so that the generated speech maintains naturalness while also making the audience feel comfortable. The present invention considers the word emotion value of each word and the speech comfort at the same time, so that the generated emergency language speech has the ability to emphasize key information while making the audience comfortable.

[0012] Furthermore, the S2 comprises the following sub-steps:

[0013] S21, counting the number of times a word in each sentence appears in the emergency language text;

[0014] S22, calculating the word attention according to the number of word occurrences and word importance;

[0015] S23, accumulating the attention of each word in each sentence to obtain the sentence importance;

[0016] S24, assigning a basic sentiment value to each sentence according to the sentence importance;

[0017] S25. Calculate the word sentiment value according to the basic sentiment value and word attention of each sentence.

[0018] The beneficial effect of the above further scheme is: the present invention calculates the word attention according to the number of word occurrences and the word importance, thereby obtaining the sentence importance of each sentence of text, assigns a basic emotion value to each sentence of text, and then combines the word attention to obtain the word emotion value of each word, reflecting the importance of each word in the speech.

[0019] Furthermore, the formula for calculating the word attention in S22 is: , among which, Words m is the attention of the mth word, R m is the number of occurrences of the mth word in the emergency language text, Z m is the importance of the mth word, m is a positive integer, Z th is the word importance threshold.

[0020] The beneficial effect of the above further scheme is: when the present invention calculates the word attention, when the word importance is lower than the word importance threshold, the word may belong to a commonly used connecting word, etc., and the assigned word attention is 0; when the word importance is greater than the word importance threshold, the higher the number of times the word appears, the higher the word attention.

[0021] Furthermore, the formula for allocating the basic emotion value in S24 is: , where E i is the basic sentiment value of the i-th sentence, S i is the sentence importance of the i-th sentence, i is a positive integer, N is the number of sentences in the emergency language text, and H is the length of the sentiment value.

[0022] The beneficial effect of the above further solution is that the present invention allocates a basic emotion value to each sentence of text according to the proportion of the sentence importance of each sentence of text.

[0023] Furthermore, the formula for calculating the word sentiment value in S25 is: , where C m is the sentiment value of the mth word in each sentence, Words m is the attention of the mth word, E i is the basic sentiment value of the i-th sentence, ε is the denominator coefficient, and m is a positive integer.

[0024] The beneficial effect of the above further solution is: the present invention assigns a basic emotion value to each sentence text, and then assigns different word emotion values ​​based on the attention of each word, so that different keywords have different word emotion values.

[0025] Furthermore, the expression of the amplitude adjustment function in S3 is: , where F m is the amplitude of the mth word in the speech to be generated, C m is the sentiment value of the mth word in each sentence, F o is the basic amplitude, e is the natural constant, μ1 is the first adjustment coefficient;

[0026] The expression of the speech rate adjustment function in S3 is: , where v m is the speaking speed of the mth word in the speech to be generated, V o is the basic speaking speed, and μ2 is the second adjustment coefficient.

[0027] The beneficial effects of the above-mentioned further scheme are as follows: the present invention constructs an amplitude adjustment function to realize the allocation of different amplitudes according to the word emotion values ​​of different words, so that words with high word emotion values ​​have high amplitudes, and constructs a speaking speed adjustment function to realize the allocation of different speaking speeds according to the word emotion values ​​of different words, so that words with high word emotion values ​​have a slower explanation speed.

[0028] Furthermore, the S4 comprises the following sub-steps:

[0029] S41, setting a sliding window with a length of L, sliding the sliding window on the speech to be generated, and covering L words each time the sliding window slides;

[0030] S42, calculating the amplitude variation coefficient and the speech rate variation coefficient at each sliding;

[0031] S43, when the amplitude variation coefficient is greater than the first threshold, marking the speech segment under the sliding window as an amplitude abnormal segment;

[0032] S44, when the speech rate variation coefficient is greater than a second threshold, marking the speech segment under the sliding window as an abnormal speech rate segment;

[0033] S45. When the amplitude variation coefficient is less than or equal to the first threshold value, and the speech rate variation coefficient is less than or equal to the second threshold value, mark the speech segment under the sliding window as a normal segment.

[0034] Furthermore, the formulas for calculating the amplitude variation coefficient and the speech rate variation coefficient in S42 are: , where α is the amplitude change coefficient or speech rate change coefficient, X m is the amplitude of the mth word in the sliding window or the speaking rate of the mth word in the sliding window, m is a positive integer, and || is an absolute value operation.

[0035] The beneficial effect of the above further scheme is: the sliding window of the present invention advances one word distance each time, and according to the L words covered by the sliding window after each sliding of the sliding window, the amplitude change coefficient and the speech rate change coefficient of the L words are calculated to find the segments where the amplitude or speech rate changes dramatically.

[0036] Furthermore, the S5 comprises the following sub-steps:

[0037] S51, performing amplitude optimization processing on the amplitude abnormal segment according to the amplitude variation coefficient of the amplitude abnormal segment;

[0038] S52, performing speech speed optimization processing on the abnormal speech speed segment according to the speech speed variation coefficient of the abnormal speech speed segment;

[0039] S53. Generate emergency speech based on the optimized amplitude and speech rate combined with the amplitude and speech rate of the normal segment.

[0040] Furthermore, the formula for the optimization process in S51 is: ,in, is the optimized amplitude of the mth word, is the amplitude of the mth word covered by the sliding window in the amplitude anomaly segment, α F is the amplitude variation coefficient, m is a positive integer;

[0041] The formula for the optimization process in S52 is: ,in, The optimized speaking speed for the mth word, is the speech rate of the mth word covered by the sliding window in the abnormal speech rate segment, α v is the speech rate variation coefficient.

[0042] The beneficial effect of the above further scheme is: the present invention combines the amplitude of the word and the mean under the sliding window according to the amplitude variation coefficient of the amplitude abnormal segment , optimize the amplitude of the abnormal amplitude segment to make the overall change smooth. The present invention combines the speech rate of the abnormal speech rate segment with the average value under the sliding window. , optimize the speech speed of abnormal segments to make the overall change smoother. Improve the comfort of the audience by adjusting the speech speed and amplitude. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 Flowchart of a method for automatically generating emergency language. DETAILED DESCRIPTION

[0044] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0045] like Figure 1 As shown, a method for automatically generating emergency language includes the following steps:

[0046] S1. Split the emergency language text into sentences;

[0047] S2. Get the sentiment value of each word according to the word attention and sentence importance in each sentence;

[0048] S3, according to the emotion value of each word, based on the amplitude adjustment function and the speech rate adjustment function, configuring the amplitude and speech rate of the corresponding word in the speech to be generated;

[0049] S4, dividing the speech to be generated into an abnormal amplitude segment, an abnormal speech rate segment and a normal segment according to the amplitude and speech rate of the corresponding words in the speech to be generated;

[0050] S5. Optimize the abnormal amplitude segments and abnormal speech speed segments, combine them with the normal segments, and generate emergency language speech.

[0051] The S2 comprises the following sub-steps:

[0052] S21, counting the number of times a word in each sentence appears in the emergency language text;

[0053] S22, calculating the word attention according to the number of word occurrences and word importance;

[0054] S23, accumulating the attention of each word in each sentence to obtain the sentence importance;

[0055] S24, assigning a basic sentiment value to each sentence according to the sentence importance;

[0056] S25. Calculate the word sentiment value according to the basic sentiment value and word attention of each sentence.

[0057] The present invention calculates word attention according to the number of word occurrences and word importance, thereby obtaining the sentence importance of each sentence of text, assigns a basic emotion value to each sentence of text, and then combines the word attention to obtain the word emotion value of each word, reflecting the importance of each word in the speech.

[0058] In this embodiment, word importance is manually marked and set.

[0059] The formula for calculating the word attention in S22 is: , among which, Words m is the attention of the mth word, R m is the number of occurrences of the mth word in the emergency language text, Z m is the importance of the mth word, m is a positive integer, Z th is the word importance threshold.

[0060] When calculating word attention, the present invention, when the word importance is lower than the word importance threshold, the word may be a commonly used connecting word, etc., and the assigned word attention is 0. When the word importance is greater than the word importance threshold, the higher the number of occurrences of the word, the higher the word attention.

[0061] The present invention sets the word importance threshold to filter out interference from non-important words. In this embodiment, the word importance threshold is set according to demand.

[0062] The formula for allocating the basic emotion value in S24 is: , where E i is the basic sentiment value of the i-th sentence, S i is the sentence importance of the i-th sentence, i is a positive integer, N is the number of sentences in the emergency language text, and H is the length of the sentiment value.

[0063] The present invention allocates a basic emotion value to each sentence according to the proportion of the sentence importance of each sentence.

[0064] In this embodiment, the length of the emotion value is set according to demand.

[0065] The formula for calculating the word sentiment value in S25 is: , where C m is the sentiment value of the mth word in each sentence, Words m is the attention of the mth word, Ei is the basic sentiment value of the i-th sentence, ε is the denominator coefficient, and m is a positive integer.

[0066] In this embodiment, the denominator coefficient is used to adjust the size of the denominator.

[0067] The present invention allocates a basic emotion value to each sentence text, and then allocates different word emotion values ​​in combination with the attention degree of each word, so that different keywords have different word emotion values.

[0068] The expression of the amplitude adjustment function in S3 is: , where F m is the amplitude of the mth word in the speech to be generated, C m is the sentiment value of the mth word in each sentence, F o is the basic amplitude, e is the natural constant, μ1 is the first adjustment coefficient;

[0069] The expression of the speech rate adjustment function in S3 is: , where v m is the speaking speed of the mth word in the speech to be generated, V o is the basic speaking speed, and μ2 is the second adjustment coefficient.

[0070] In this embodiment, 0<μ1<1, 0<μ2<1.

[0071] The present invention constructs an amplitude adjustment function to allocate different amplitudes according to the word emotion values ​​of different words, so that words with high word emotion values ​​have high amplitudes. It also constructs a speech speed adjustment function to allocate different speech speeds according to the word emotion values ​​of different words, so that words with high word emotion values ​​have a slower explanation speed.

[0072] The S4 comprises the following sub-steps:

[0073] S41, setting a sliding window with a length of L, sliding the sliding window on the speech to be generated, and covering L words each time the sliding window slides;

[0074] S42, calculating the amplitude variation coefficient and the speech rate variation coefficient at each sliding;

[0075] S43, when the amplitude variation coefficient is greater than the first threshold, marking the speech segment under the sliding window as an amplitude abnormal segment;

[0076] S44, when the speech rate variation coefficient is greater than a second threshold, marking the speech segment under the sliding window as an abnormal speech rate segment;

[0077] S45. When the amplitude variation coefficient is less than or equal to the first threshold value, and the speech rate variation coefficient is less than or equal to the second threshold value, mark the speech segment under the sliding window as a normal segment.

[0078] The first threshold is a threshold set for the amplitude variation coefficient, and the second threshold is a threshold set for the speech rate variation coefficient. In this embodiment, the first threshold and the second threshold are specifically set based on experiments or experience.

[0079] The formulas for calculating the amplitude variation coefficient and the speech rate variation coefficient in S42 are: , where α is the amplitude change coefficient or speech rate change coefficient, X m is the amplitude of the mth word in the sliding window or the speaking rate of the mth word in the sliding window, m is a positive integer, and || is an absolute value operation.

[0080] The sliding window of the present invention advances one word distance each time, and according to the L words covered by the sliding window after each sliding of the sliding window, the amplitude change coefficient and the speech rate change coefficient of the L words are calculated to find the segment with drastic change in amplitude or speech rate.

[0081] In this embodiment, L is a positive integer, which is 3, 4 or 5.

[0082] The S5 comprises the following sub-steps:

[0083] S51, performing amplitude optimization processing on the amplitude abnormal segment according to the amplitude variation coefficient of the amplitude abnormal segment;

[0084] S52, performing speech speed optimization processing on the abnormal speech speed segment according to the speech speed variation coefficient of the abnormal speech speed segment;

[0085] S53. Generate emergency speech based on the optimized amplitude and speech rate combined with the amplitude and speech rate of the normal segment.

[0086] The formula for the optimization process in S51 is: ,in, is the optimized amplitude of the mth word, is the amplitude of the mth word covered by the sliding window in the amplitude anomaly segment, α F is the amplitude variation coefficient, m is a positive integer;

[0087] The formula for the optimization process in S52 is: ,in, The optimized speaking speed for the mth word, is the speech rate of the mth word covered by the sliding window in the abnormal speech rate segment, α v is the speech rate variation coefficient.

[0088] The present invention combines the amplitude of the word and the mean under the sliding window according to the amplitude variation coefficient of the amplitude abnormal segment , optimize the amplitude of the abnormal amplitude segment to make the overall change smooth. The present invention combines the speech rate of the abnormal speech rate segment with the average value under the sliding window. , optimize the speech speed of abnormal segments to make the overall change smoother. Improve the comfort of the audience by adjusting the speech speed and amplitude.

[0089] The present invention analyzes the word attention and sentence importance in the emergency text, allocates the word emotion value of each word, and according to the word emotion value of each word, gives amplitude and speech speed to each word through the amplitude adjustment function and the speech speed adjustment function, and considers the comfort of the audience to screen out the abnormal amplitude segment and the abnormal speech speed segment, and optimizes the abnormal amplitude segment and the abnormal speech speed segment, so that the generated speech can maintain naturalness while also making the audience feel comfortable. The present invention considers the word emotion value of each word and the speech comfort at the same time, so that the generated emergency language speech has the ability to emphasize key information and makes the audience comfortable at the same time.

[0090] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for automatically generating emergency language, characterized in that: The following steps are involved: S1. Split the emergency language text into sentences; S2. Get the sentiment value of each word according to the word attention and sentence importance in each sentence; S3, according to the emotion value of each word, based on the amplitude adjustment function and the speech rate adjustment function, configuring the amplitude and speech rate of the corresponding word in the speech to be generated; S4, dividing the speech to be generated into an abnormal amplitude segment, an abnormal speech rate segment and a normal segment according to the amplitude and speech rate of the corresponding words in the speech to be generated; S5, optimizing the abnormal amplitude segment and the abnormal speech speed segment, combining them with the normal segment, and generating emergency language speech; The S2 comprises the following sub-steps: S21, counting the number of times a word in each sentence appears in the emergency language text; S22, calculating the word attention according to the number of word occurrences and the word importance, wherein the word importance is set by manual annotation; S23, accumulating the attention of each word in each sentence to obtain the sentence importance; S24, assigning a basic sentiment value to each sentence according to the sentence importance; S25, calculating the word sentiment value according to the basic sentiment value and word attention of each sentence; The formula for calculating the word attention in S22 is: , among which, Words m is the attention of the mth word, R m is the number of occurrences of the mth word in the emergency language text, Z m is the importance of the mth word, m is a positive integer, Z th is the word importance threshold; The formula for allocating the basic emotion value in S24 is: , where E i is the basic sentiment value of the i-th sentence, S i is the sentence importance of the i-th sentence text, i is a positive integer, N is the number of sentences in the emergency language text, and H is the length of the sentiment value; The formula for calculating the word sentiment value in S25 is: , where C m is the sentiment value of the mth word in each sentence, Words m is the attention of the mth word, E i is the basic sentiment value of the i-th sentence, ε is the denominator coefficient, and m is a positive integer.

2. The method for automatically generating emergency language according to claim 1, characterized in that: The expression of the amplitude adjustment function in S3 is: , where F m is the amplitude of the mth word in the speech to be generated, C m is the sentiment value of the mth word in each sentence, F o is the basic amplitude, e is the natural constant, μ1 is the first adjustment coefficient; The expression of the speech rate adjustment function in S3 is: , where v m is the speaking speed of the mth word in the speech to be generated, V o is the basic speaking speed, and μ2 is the second adjustment coefficient.

3. The method for automatically generating emergency language according to claim 1, characterized in that: The S4 comprises the following sub-steps: S41, setting a sliding window with a length of L, sliding the sliding window on the speech to be generated, and covering L words each time the sliding window slides; S42, calculating the amplitude variation coefficient and the speech rate variation coefficient at each sliding; S43, when the amplitude variation coefficient is greater than the first threshold, marking the speech segment under the sliding window as an amplitude abnormal segment; S44, when the speech rate variation coefficient is greater than a second threshold, marking the speech segment under the sliding window as an abnormal speech rate segment; S45. When the amplitude variation coefficient is less than or equal to the first threshold value, and the speech rate variation coefficient is less than or equal to the second threshold value, mark the speech segment under the sliding window as a normal segment.

4. The method for automatically generating emergency language according to claim 3, characterized in that: The formulas for calculating the amplitude variation coefficient and the speech rate variation coefficient in S42 are: , where α is the amplitude change coefficient or speech rate change coefficient, X m is the amplitude of the mth word in the sliding window or the speaking rate of the mth word in the sliding window, m is a positive integer, and || is an absolute value operation.

5. The method for automatically generating emergency language according to claim 3, characterized in that: The S5 comprises the following sub-steps: S51, performing amplitude optimization processing on the amplitude abnormal segment according to the amplitude variation coefficient of the amplitude abnormal segment; S52, performing speech speed optimization processing on the abnormal speech speed segment according to the speech speed variation coefficient of the abnormal speech speed segment; S53. Generate emergency speech based on the optimized amplitude and speech rate combined with the amplitude and speech rate of the normal segment.

6. The method for automatically generating emergency language according to claim 5, characterized in that: The formula for the optimization process in S51 is: ,in, is the optimized amplitude of the mth word, is the amplitude of the mth word covered by the sliding window in the amplitude anomaly segment, α F is the amplitude variation coefficient, m is a positive integer; The formula for the optimization process in S52 is: ,in, The optimized speaking speed for the mth word, is the speech rate of the mth word covered by the sliding window in the abnormal speech rate segment, α v is the speech rate variation coefficient.

Citation Information

Patent Citations

  • Voice abstract forming method and voice abstract forming system for conference

    CN108305632A

  • Corpus keyword automatic extraction algorithm based on data mining

    CN110377724A

  • Audio processing method and device

    CN111739536A

  • Emergency broadcast audio processing system and operation method thereof

    CN112349268A

  • Speech-generation device, server, control system, control method, and program

    CN112740170A