Voice data segment division method and voice evaluation method
Through the method of speech pause interval segmentation and sentence weight assignment, the problem of inaccurate speech evaluation in teaching scenarios in the existing technology is solved, and accurate evaluation of the teacher's spoken pronunciation is achieved, which is suitable for ordinary teaching scenarios.
Patent Information
- Application Number
- CN202410679850.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-06
AI Technical Summary
Existing speech evaluation devices are mainly used for examinations, and it is difficult to accurately evaluate the teacher's spoken pronunciation in ordinary teaching scenarios. Especially when facing long speech data, arbitrary cutting may lead to inaccurate evaluation results.
The audio data is segmented through the speech pause intervals to generate natural speech segments, which are weighted according to the length of the sentence and evaluated based on the speech evaluation model to ensure the accuracy of the evaluation results.
It achieves accurate evaluation of teachers’ spoken pronunciation in teaching scenarios, is suitable for ordinary spoken pronunciation evaluation devices, and meets the evaluation needs of classroom environments.
Smart Images

Figure CN118609596A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of audio processing, and more specifically, to a method for segmenting speech data, a speech segment speech evaluation method, a speech evaluation method, a device, a equipment and a storage medium. Background Art
[0002] With the development of intelligent voice technology, it has been applied to various fields, especially teaching scenarios. In teaching scenarios, intelligent voice technology is used to evaluate students' spoken pronunciation and obtain students' pronunciation evaluation. Similarly, it can also evaluate teachers' spoken pronunciation and obtain teachers' pronunciation evaluation.
[0003] However, the above-mentioned methods of evaluating pronunciation are almost all concentrated in special examinations. For teachers, oral pronunciation during normal classes is more important and has a greater impact on the quality of classes.
[0004] Therefore, there is an urgent need for a method that can be used to evaluate the spoken pronunciation of teachers during class based on a common spoken pronunciation evaluation device. Summary of the invention
[0005] In order to overcome at least one of the defects of the above-mentioned prior art, the present invention provides a method for segmenting speech data, a method for evaluating speech segments, a speech evaluation method, an apparatus, a device and a storage medium. The technical solution adopted by the present invention is as follows.
[0006] In a first aspect, the present invention provides a method for segmenting speech data, comprising:
[0007] receiving voice data;
[0008] Get the predefined speech pause interval duration range;
[0009] Finding the speech pause position in the speech data based on the speech pause interval duration range;
[0010] The speech data is segmented according to the speech pause positions to obtain independent speech segments.
[0011] In one embodiment, it further includes:
[0012] Count the number of words in each speech segment;
[0013] When the number of words in a single voice segment is less than a preset threshold, the voice segment with fewer words than the preset threshold is merged with an adjacent voice segment to regenerate the voice segment so that the number of words in all voice segments is not less than the preset threshold.
[0014] In one implementation, the preset threshold is 300 to 500 words.
[0015] In a second aspect, the present invention provides a method for evaluating speech fragment speech, comprising:
[0016] Get the voice clip;
[0017] The speech segment is fed into the speech evaluation model to obtain the sentence evaluation score of each sentence in the speech segment;
[0018] According to the total number of words in the speech segment and the number of words in each sentence, the weight of each sentence is obtained;
[0019] According to the sentence evaluation score of each sentence and the weight of each sentence, the evaluation result of the speech segment is obtained.
[0020] In one embodiment, the process of deriving the weight of each sentence according to the total number of words in the speech segment and the number of words in each sentence includes:
[0021] Calculate the proportion of the number of words in each sentence to the total number of words in the speech segment;
[0022] The weight of each sentence is obtained according to the proportion of the number of words in each sentence in the total number of words in the voice segment.
[0023] In a third aspect, the present invention provides a speech evaluation method, comprising:
[0024] receiving voice data;
[0025] Using the above-mentioned voice data segmentation method to divide the received voice data into segments to obtain voice segments;
[0026] Using the speech segment speech evaluation method described above to evaluate each speech segment, obtaining an evaluation result of each speech segment;
[0027] According to the total number of words in the voice data and the number of words in each voice segment, the weight of each voice segment is obtained;
[0028] The evaluation result of the speech data is obtained according to the evaluation result of each speech segment and the weight of each speech segment.
[0029] In one embodiment, the process of deriving the weight of each speech segment according to the total number of words in the speech data and the number of words in each speech segment includes:
[0030] Calculate the proportion of the number of words in each voice segment to the total number of words in the voice data;
[0031] The weight of each voice segment is obtained according to the proportion of the number of words in each voice segment in the total number of words in the voice data.
[0032] In a fourth aspect, the present invention provides a device for segmenting speech data, comprising:
[0033] An acquisition module, used for receiving voice data and acquiring a predefined voice pause interval duration range;
[0034] A search module, used for finding the speech pause position in the speech data based on the speech pause interval duration range;
[0035] The segmentation module is used to segment the voice data according to the voice pause positions to obtain independent voice segments.
[0036] In a fifth aspect, the present invention provides a speech segment speech evaluation device, comprising:
[0037] An acquisition module, used to acquire voice clips;
[0038] An evaluation module, used to send the speech segment into the speech evaluation model to obtain a sentence evaluation score of each sentence in the speech segment;
[0039] A calculation module, used for obtaining the weight of each sentence according to the total number of words in the speech segment and the number of words in each sentence;
[0040] The generation module is used to obtain the evaluation result of the speech segment according to the sentence evaluation score of each sentence and the weight of each sentence.
[0041] In a sixth aspect, the present invention provides a speech evaluation device, comprising:
[0042] A receiving module, used for receiving voice data;
[0043] A segmentation module, used to segment the received voice data using the above-mentioned voice data segmentation device to obtain various voice segments;
[0044] A segment evaluation module, used to evaluate each speech segment using the speech segment speech evaluation device described above, and obtain an evaluation result of each speech segment;
[0045] A calculation module, used for obtaining the weight of each speech segment according to the total number of words in the speech data and the number of words in each speech segment;
[0046] The generation module is used to obtain the evaluation result of the speech data according to the evaluation result of each speech segment and the weight of each speech segment.
[0047] In a seventh aspect, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned methods when executing the program.
[0048] In an eighth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the method of any of the above-mentioned embodiments is implemented.
[0049] In the present invention, the audio data is segmented by using the speech pause interval to simulate the sentence segmentation of natural language, and the obtained audio segment is more natural and more in line with the requirements for sentences in the speech evaluation device. In view of the problem that the length difference between the sentences spoken by the teacher in the teaching scene is relatively large, a corresponding weight is assigned to each sentence according to the length of the sentence, and the score of the speech segment is obtained according to the weight of each sentence. Finally, in view of the problem that the length difference between the speech segments is relatively large in the segmentation method, a corresponding weight is assigned to each speech segment according to the length of the speech segment, and the score of the speech data is finally obtained according to the weight of each speech segment. The present invention is applicable to ordinary oral pronunciation evaluation devices, and the final speech evaluation is more accurate and more in line with the requirements for classroom oral pronunciation in teaching and other scenes. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a flowchart of an implementation method of Example 1 of the present invention.
[0051] Figure 2 It is a flow chart of an implementation method of Example 21 of the present invention.
[0052] Figure 3 It is a flow chart of an implementation method of Example 31 of the present invention.
[0053] Figure 4 It is a schematic diagram of the overall structure of an implementation method of Example 41 of the present invention.
[0054] Figure 5 It is a schematic diagram of the overall structure of another implementation method of Example 4 of the present invention.
[0055] Figure 6 It is a schematic diagram of the overall structure of another implementation method of Example 4 of the present invention. DETAILED DESCRIPTION
[0056] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0057] It should be noted that the terms "first\second\..." involved in the embodiments of the present invention are only used to distinguish similar objects, and do not represent a specific order for the objects. It is understandable that the specific order or sequence of "first\second\..." can be interchanged where permitted. It should be understood that the objects distinguished by "first\second\..." can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.
[0058] Embodiment 1
[0059] See also Figure 1 , Figure 1 1 is a flow chart of a method for segmenting speech data provided in Embodiment 1 of the present invention, the method comprising step S110, step S120, step S130 and step S140. It should be noted that step S110, step S120, step S130 and step S140 are merely reference numerals for the purpose of clearly explaining the embodiment and the appendix. Figure 1 The corresponding relationship does not limit the order of the steps in this embodiment.
[0060] Step S110, receiving voice data;
[0061] Step S120, obtaining a predefined speech pause interval duration range;
[0062] Step S130, finding the speech pause position in the speech data based on the speech pause interval duration range;
[0063] Step S140, segmenting the speech data according to the speech pause positions to obtain independent speech segments.
[0064] This method is applicable to the scene where the overall voice data of the teacher is divided into several segments in the evaluation classroom environment, and of course it is also applicable to other scenes where the overall voice data of the characters needs to be divided. In this embodiment, in order to facilitate the description of this method, the following will be described in detail by taking the division of the overall voice data of the teacher in the classroom environment as an example.
[0065] In step S110, voice data is received. The voice data may be the voice data of the teacher for the entire class, or may be the voice data of only some links in the teacher's lecture process. Preferably, the voice data is processed, such as denoising and voice enhancement, and the processed voice data can improve the accuracy of subsequent processing.
[0066] In step S120, the duration range of the speech pause interval is obtained, such as silence of more than 2 seconds.
[0067] In step S130, based on the acquired speech pause interval duration range, speech pause positions that meet the speech pause interval duration range are found in the speech data, and then in step S140, the speech data is segmented using the found speech pause positions to obtain independent speech segments.
[0068] Since people often pause between sentences when they speak, this method uses this principle to segment speech data based on speech pause intervals to form independent speech segments. The segmentation effect can more accurately simulate the segmentation of natural language and better provide an accurate basis for subsequent evaluation. The speech pause interval range can be based on the actual speaking habits of teachers or other statistical results to obtain empirical values.
[0069] As described in the background technology, the current speech evaluation devices are all developed for examinations. In the examination, the examinee is usually asked to read a sentence or a paragraph of text, and the audio data obtained is relatively small. These devices can analyze these small data audios to obtain the evaluation scores. However, to apply the device to ordinary teaching scenarios, what is faced is relatively large audio data, so the audio data must be segmented to obtain small segments of speech fragments suitable for these speech evaluation devices. But how to segment these data is more reasonable? If it is cut arbitrarily, it is easy to divide a sentence into two speech fragments. If these randomly cut speech fragments are sent to the above-mentioned speech evaluation device, the evaluation results will definitely be greatly reduced, and no accurate scores can be obtained. Therefore, in this method, the audio data is segmented by using the speech pause interval to simulate the sentence segmentation of natural language, and the obtained audio fragments are more natural and more in line with the requirements of the speech evaluation device for the sentence, so that the results of the evaluation sent to the speech evaluation device are also more accurate.
[0070] In one implementation, the method further includes: step S150 and step S160.
[0071] Step S150, counting the number of words in each voice segment;
[0072] Step S160, when the number of words in a single voice segment is less than a preset threshold, the voice segment with fewer words than the preset threshold is merged with adjacent voice segments to regenerate the voice segment so that the number of words in all voice segments is not less than the preset threshold.
[0073] Preferably, the preset threshold is 300 to 500 words.
[0074] In actual scenarios, teachers sometimes use relatively simple sentences to answer students' questions, such as "yes", "right", etc. If the voice fragments are segmented only by the duration range of the voice pause interval, it is very likely that many of the above-mentioned relatively simple sentences will be segmented. If these relatively simple sentences are used to evaluate the voice evaluation device, the results obtained will naturally be inaccurate.
[0075] In view of this, a threshold is preset in the present embodiment, for example, 400 words, and then the word count of each voice segment is performed. When the number of words in a single voice segment is not less than the preset threshold, it can be considered that the length of these voice segments is appropriate and can be used for evaluation; when the number of words in a single voice segment is less than the preset threshold, it is considered that these voice segments are too short and cannot be used for evaluation, and they should be merged into adjacent voice segments.
[0076] It should be noted that the adjacent ones mentioned here may be the preceding voice segment or the following voice segment, and those skilled in the art may select a suitable merging method according to the actual situation.
[0077] It should be pointed out here that it is possible that the number of words in the merged voice segments is still less than the threshold number of words. In this case, it is necessary to continue merging. In short, the number of words in all voice segments should not be less than the preset threshold.
[0078] Embodiment 2
[0079] See also Figure 2 , Figure 2 The flowchart of a method for evaluating speech segment speech provided in the second embodiment of the present invention includes step S210, step S220, step S230 and step S240. It should be noted that step S210, step S220, step S230 and step S240 are only reference numerals for clarifying the embodiment and the appendix. Figure 2 The corresponding relationship does not limit the order of the steps in this embodiment.
[0080] Step S210, obtaining a voice segment;
[0081] Step S220, sending the speech segment to the speech evaluation model to obtain a sentence evaluation score for each sentence in the speech segment;
[0082] Step S230, deriving the weight of each sentence according to the total number of words in the speech segment and the number of words in each sentence;
[0083] Step S240, obtaining an evaluation result of the speech segment according to the sentence evaluation score of each sentence and the weight of each sentence.
[0084] This method is applicable to the scenario of evaluating the voice clips of teachers in the classroom environment, and of course, it is also applicable to other scenarios where the voice clips of characters need to be evaluated. In this embodiment, in order to facilitate the description of this method, the following will be described in detail by taking the evaluation of the voice clips of teachers in the classroom environment as an example.
[0085] Step S210 and step S220 are no different from ordinary speech evaluation. Each speech segment is sent to the speech evaluation model, and then the sentence evaluation score of each sentence is obtained. The speech evaluation model here can be to collect a large number of standard Mandarin speech samples, and then train them through the corpus. A deep learning framework (such as TensorFlow or PyTorch) can be used to build and train the model, and a model structure such as a convolutional neural network (CNN) or a recurrent neural network (RNN) is used to process the speech data, and a machine learning model that can evaluate the clarity and fluency of pronunciation is trained. In addition, the speech segment obtained in step S210 can be obtained using the method of embodiment 1, or it can be obtained using other methods.
[0086] It should be noted here that a speech segment generally includes several sentences. After the speech segment is sent to the speech evaluation model in step S220, what is obtained is the sentence evaluation score of each sentence, rather than the score of the speech segment.
[0087] In a teaching scenario, what the teacher says is not a formal sentence used for an exam. The length of sentences varies greatly, and there will be obvious differences in the evaluation of long sentences and short sentences. If the evaluation of each sentence is simply added together, the score of the voice segment will be distorted. Therefore, in step S230, the weight of each sentence is obtained based on the number of words in each sentence and the total number of words in the entire voice segment. After the weight of each sentence is obtained, step S240 obtains the score of the voice segment based on the weight of each sentence and the sentence evaluation score of each sentence.
[0088] In one implementation, the process of step S230 includes: step S231 and step S232.
[0089] Step S231, calculating the proportion of the number of words in each sentence to the total number of words in the voice segment;
[0090] Step S232, deriving the weight of each sentence according to the proportion of the number of words in each sentence in the total number of words in the voice segment.
[0091] Specifically, step S231 can be used according to the proportion of the number of words in each sentence in the total number of words, and step S232 can be used to obtain the weight of each sentence according to the proportion of each sentence. For example, the weight values corresponding to various proportion ranges are pre-designed, and after the proportion of the current sentence to the total number of words is obtained, the corresponding weight can be obtained according to the proportion range it falls into; for example, the numerical value of the proportion of each sentence is directly used as the corresponding weight value.
[0092] In this method, in order to solve the problem that the length of sentences spoken by teachers in teaching scenarios is quite different, a corresponding weight is assigned to each sentence according to its length, and finally the score of the voice segment is obtained according to the weight of each sentence. This method fully considers the length difference between sentences and avoids simply adding up the evaluation results of each sentence to obtain a distorted voice segment evaluation result.
[0093] Embodiment 3
[0094] See also Figure 3 , Figure 3 1 is a flow chart of a speech evaluation method provided in Embodiment 3 of the present invention, the method comprising step S310, step S320, step S330, step S340 and step S350. It should be noted that step S310, step S320, step S330, step S340 and step S350 are merely reference numerals for the purpose of clearly explaining the embodiment and the appendix. Figure 3 The corresponding relationship does not limit the order of the steps in this embodiment.
[0095] Step S310, receiving voice data;
[0096] Step S320, dividing the received voice data using the voice data segment division method described in the first embodiment to obtain voice segments;
[0097] Step S330, using the speech segment speech evaluation method described in Example 2 to evaluate each speech segment, and obtain an evaluation result for each speech segment;
[0098] Step S340, deriving the weight of each voice segment according to the total number of words in the voice data and the number of words in each voice segment;
[0099] Step S350, obtaining an evaluation result of the speech data according to the score of each speech segment and the weight of each speech segment.
[0100] This method is applicable to the scenario of evaluating the voice data of a teacher in a classroom environment, and is also applicable to other scenarios where the voice data of a person needs to be evaluated. In this embodiment, in order to facilitate the description of this method, the following will be described in detail by taking the evaluation of the voice data of a teacher in a classroom environment as an example.
[0101] In this method, the received voice data is first divided into voice segments using the voice data segment division method of the first embodiment to obtain voice segments, and then the voice segments are evaluated using the method of the second embodiment to obtain the scores of the voice segments.
[0102] In the previous embodiment, the score is distorted because of the difference between long sentences and short sentences in one segment. Similarly, there are differences between the lengths of various segments, which will also cause score distortion.
[0103] This embodiment is similar to the previous embodiment. The weight of each voice segment is obtained by using the proportion of the number of words in each voice segment in the total number of words in the voice data. After the weight of each voice segment is obtained, step S350 obtains the evaluation result of the entire voice data based on the weight of each voice segment and the evaluation score of each voice segment.
[0104] In one implementation, the process of step S340 includes: step S341 and step S342.
[0105] Step S341, calculating the proportion of the number of words in each voice segment in the total number of words in the voice data;
[0106] Step S342, deriving the weight of each voice segment according to the proportion of the number of words in each voice segment in the total number of words in the voice data.
[0107] Specifically, step S341 can be based on the proportion of the number of words in each voice segment in the total number of words in the voice data, and step S342 can be based on the proportion of each voice segment to obtain the weight of each voice segment. For example, the weight values corresponding to various proportion ranges are pre-designed, and after the proportion of the current voice segment to the total number of words is obtained, the corresponding weight can be obtained according to the proportion range it falls into; for example, the numerical value of the proportion of each voice segment is directly used as the corresponding weight value.
[0108] In this method, the methods of the previous two implementations are used to reasonably divide the teacher's voice data in the teaching scene into various voice segments, and then each voice segment is reasonably evaluated. After obtaining a reasonable evaluation, the segmentation method of embodiment 1 in the teaching scene will have a problem that the length difference between the voice segments is relatively large. According to the length of the voice segment, each voice segment is assigned a corresponding weight, and finally the score of the voice data is obtained according to the weight of each voice segment. This method fully considers the length difference between voice segments and avoids simply adding the evaluation of each voice segment to obtain the score of distorted voice data.
[0109] Embodiment 4
[0110] Corresponding to the method of embodiment 1, as Figure 4 As shown, the present invention also provides a device for segmenting speech data, including: an acquisition module 410 , a search module 420 , and a segmentation module 430 .
[0111] The acquisition module 410 is used to receive voice data and acquire a predefined voice pause interval duration range;
[0112] A search module 420, configured to search for a speech pause position in the speech data based on the speech pause interval duration range;
[0113] The segmentation module 430 is used to segment the speech data according to the speech pause positions to obtain independent speech segments.
[0114] In one embodiment, it further includes: a statistics module;
[0115] The statistics module is used to count the number of words in each voice segment;
[0116] The segmentation module is also used to merge the speech segment with fewer words than the preset threshold with adjacent speech segments to regenerate the speech segment when the number of words in a single speech segment is less than the preset threshold, so that the number of words in all speech segments is not less than the preset threshold.
[0117] In one implementation, the preset threshold is 300 to 500 words.
[0118] Corresponding to the method of the second embodiment, as Figure 5 As shown, the present invention also provides a speech segment speech evaluation device, including: an acquisition module 510, an evaluation module 520, a calculation module 530 and a generation module 540.
[0119] An acquisition module 510 is used to acquire a voice segment;
[0120] An evaluation module 520, for sending the speech segment into a speech evaluation model to obtain a sentence evaluation score for each sentence in the speech segment;
[0121] A calculation module 530, for obtaining the weight of each sentence according to the total number of words in the speech segment and the number of words in each sentence;
[0122] The generating module 540 is used to obtain the evaluation result of the speech segment according to the sentence evaluation score of each sentence and the weight of each sentence.
[0123] In one embodiment, the calculation module performs the process of deriving the weight of each sentence according to the total number of words in the speech segment and the number of words in each sentence, including:
[0124] Calculate the proportion of the number of words in each sentence to the total number of words in the speech segment;
[0125] The weight of each sentence is obtained according to the proportion of the number of words in each sentence in the total number of words in the voice segment.
[0126] Corresponding to the method of embodiment 3, Figure 6 As shown, the present invention further provides a speech evaluation device, including: a receiving module 610, a dividing module 620, a segment evaluation module 630, a calculating module 640 and a generating module 650.
[0127] A receiving module 610, configured to receive voice data;
[0128] A segmentation module 620, configured to segment the received voice data using the aforementioned voice data segment segmentation device to obtain voice segments;
[0129] The segment evaluation module 630 is used to evaluate each speech segment using the speech segment evaluation device described above to obtain a score for each speech segment;
[0130] A calculation module 640, used to obtain the weight of each speech segment according to the total number of words in the speech data and the number of words in each speech segment;
[0131] The generating module 650 is used to obtain the evaluation result of the speech data according to the score of each speech segment and the weight of each speech segment.
[0132] In one embodiment, the calculation module performs the process of obtaining the weight of each speech segment according to the total number of words in the speech data and the number of words in each speech segment, including:
[0133] Calculate the proportion of the number of words in each voice segment to the total number of words in the voice data;
[0134] The weight of each voice segment is obtained according to the proportion of the number of words in each voice segment in the total number of words in the voice data.
[0135] In this device, the audio data is segmented by using the speech pause interval to simulate the segmentation of natural language. The obtained audio segments are more natural and more in line with the requirements for sentences in the speech evaluation device. In view of the large difference in length between the sentences spoken by the teacher in the teaching scenario, a corresponding weight is assigned to each sentence according to the length of the sentence, and the score of the speech segment is obtained according to the weight of each sentence. Finally, in view of the large difference in length between the speech segments in the segmentation method, a corresponding weight is assigned to each speech segment according to the length of the speech segment, and the score of the speech data is finally obtained according to the weight of each speech segment. This device is suitable for ordinary oral pronunciation evaluation devices, and the final speech evaluation is more accurate and more in line with the requirements for classroom oral pronunciation in teaching and other scenarios.
[0136] Embodiment 5
[0137] An embodiment of the present invention further provides a storage medium storing computer instructions, which, when executed by a processor, implement the speech data segment division method, speech segment speech evaluation method and / or speech evaluation method of any of the above embodiments.
[0138] Those skilled in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, random access memories (RAM), read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0139] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, RAM, ROM, magnetic disks or optical disks.
[0140] Corresponding to the above-mentioned computer storage medium, in one embodiment, a computer device is also provided, which includes a memory, an encoder, and a computer program stored in the memory and executable on the encoder, wherein when the encoder executes the program, a method for segmenting speech data as described in any one of the above-mentioned embodiments is implemented.
[0141] The above-mentioned computer device uses the voice pause interval to segment the audio data, simulates the sentence segmentation of natural language, and the obtained audio segment is more natural and more in line with the requirements of the sentence in the voice evaluation device. In view of the problem that the length of the sentences spoken by the teacher in the teaching scenario is relatively large, each sentence is assigned a corresponding weight according to the length of the sentence, and the score of the voice segment is obtained according to the weight of each sentence. Finally, in view of the problem that the length of the voice segments is relatively large in the segmentation method, each voice segment is assigned a corresponding weight according to the length of the voice segment, and the score of the voice data is finally obtained according to the weight of each voice segment. This computer device is suitable for ordinary oral pronunciation evaluation devices, and the final voice evaluation is more accurate and more in line with the requirements of classroom oral pronunciation in teaching and other scenarios.
[0142] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0143] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A method for segmenting speech data, It is characterized in that include: receiving voice data; Get the predefined speech pause interval duration range; Finding the speech pause position in the speech data based on the speech pause interval duration range; The speech data is segmented according to the speech pause positions to obtain independent speech segments.
2. The method for segmenting speech data according to claim 1, It is characterized in that Also includes: Count the number of words in each speech segment; When the number of words in a single voice segment is less than a preset threshold, the voice segment with fewer words than the preset threshold is merged with an adjacent voice segment to regenerate the voice segment so that the number of words in all voice segments is not less than the preset threshold.
3. The method for segmenting speech data according to claim 2, It is characterized in that The preset threshold is 300 to 500 words.
4. A method for evaluating speech fragments, It is characterized in that include: Get the voice clip; The speech segment is fed into the speech evaluation model to obtain the sentence evaluation score of each sentence in the speech segment; According to the total number of words in the speech segment and the number of words in each sentence, the weight of each sentence is obtained; According to the sentence evaluation score of each sentence and the weight of each sentence, the evaluation result of the speech segment is obtained.
5. The speech segment speech evaluation method according to claim 4, It is characterized in that The process of obtaining the weight of each sentence according to the total number of words in the speech segment and the number of words in each sentence includes: Calculate the proportion of the number of words in each sentence to the total number of words in the speech segment; The weight of each sentence is obtained according to the proportion of the number of words in each sentence in the total number of words in the voice segment.
6. A method for speech evaluation, It is characterized in that include: receiving voice data; Divide the received voice data using the voice data segmentation method according to any one of claims 1 to 3 to obtain voice segments; Using the speech segment speech evaluation method according to claim 4 or 5 to evaluate each speech segment, and obtain the evaluation result of each speech segment; According to the total number of words in the voice data and the number of words in each voice segment, the weight of each voice segment is obtained; The evaluation result of the speech data is obtained according to the evaluation result of each speech segment and the weight of each speech segment.
7. The speech evaluation method according to claim 6, It is characterized in that The process of obtaining the weight of each voice segment according to the total number of words in the voice data and the number of words in each voice segment includes: Calculate the proportion of the number of words in each voice segment to the total number of words in the voice data; The weight of each voice segment is obtained according to the proportion of the number of words in each voice segment in the total number of words in the voice data.
8. A device for segmenting speech data, It is characterized in that include: An acquisition module, used for receiving voice data and acquiring a predefined voice pause interval duration range; A search module, used for finding the speech pause position in the speech data based on the speech pause interval duration range; The segmentation module is used to segment the voice data according to the voice pause positions to obtain independent voice segments.
9. A speech segment speech evaluation device, It is characterized in that include: An acquisition module, used to acquire voice clips; An evaluation module, used to send the speech segment into the speech evaluation model to obtain a sentence evaluation score of each sentence in the speech segment; A calculation module, used for obtaining the weight of each sentence according to the total number of words in the speech segment and the number of words in each sentence; The generation module is used to obtain the evaluation result of the speech segment according to the sentence evaluation score of each sentence and the weight of each sentence.
10. A speech evaluation device, It is characterized in that include: A receiving module, used for receiving voice data; a segmentation module, configured to segment the received voice data using the voice data segment segmentation device according to claim 8 to obtain voice segments; a segment evaluation module, used to evaluate each speech segment using the speech segment speech evaluation device according to claim 9, and obtain an evaluation result of each speech segment; A calculation module, used for obtaining the weight of each speech segment according to the total number of words in the speech data and the number of words in each speech segment; The generation module is used to obtain the evaluation result of the speech data according to the evaluation result of each speech segment and the weight of each speech segment.
11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
12. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
