A voice interaction method based on artificial intelligence

By collecting and processing speech on mobile terminals, audio fusion operators are generated to suppress noise interference, solving the problem of inaccurate speech recognition in noisy environments and improving the accuracy of speech-to-text conversion.

CN118335089BActive Publication Date: 2024-09-10WUHAN HUA XIAOPAN COMPUTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410764506.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-10
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

In noisy environments, the accuracy of speech-to-text conversion is difficult to guarantee, resulting in inaccurate speech recognition.

Method used

By collecting real-time speech on mobile terminals, performing windowing processing and wavelet transformation, extracting audio transformation coefficients and gammatone filter cepstrum coefficients, generating audio fusion operators, and enhancing speech to suppress noise interference.

Benefits of technology

Improved noise immunity and accuracy of speech recognition, especially in unstable environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118335089B
    Figure CN118335089B
Patent Text Reader

Abstract

The present invention discloses a voice interaction method based on artificial intelligence, in the field of data processing technology, comprising the following steps: S1, using a microphone of a mobile terminal to collect the real-time voice of a user, and generating an audio fusion operator corresponding to the real-time voice; S2, using an audio fusion operator to process the real-time voice, and generating a characteristic voice; S3, converting the characteristic voice into text. The voice interaction method based on artificial intelligence splits the real-time voice input by the user, extracts the characteristic parameters of two audio sets respectively, and then splices them to generate an audio fusion operator, and uses the audio fusion operator to correct the gain operator of the enhancement processing, thereby improving the effect of the voice enhancement processing, improving the recognition accuracy of voice conversion to text, and improving the noise resistance of voice recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data processing, and in particular relates to a voice interaction method based on artificial intelligence. Background Art

[0002] With the development of artificial intelligence, the application of speech synthesis technology based on artificial intelligence is becoming more and more widespread. Speech-to-text is a technology that converts speech content into editable text. It can help people quickly convert speech records into text and improve work and study efficiency. When people use mobile phones or tablets, many people like to use speech recognition to input text, but the noise in the environment where users are inputting speech may be large, resulting in inaccurate converted text content. Summary of the invention

[0003] In order to solve the above problems, the present invention proposes a voice interaction method based on artificial intelligence.

[0004] The technical solution of the present invention is: a voice interaction method based on artificial intelligence comprises the following steps:

[0005] S1. Use the microphone of the mobile terminal to collect the user's real-time voice and generate an audio fusion operator corresponding to the real-time voice;

[0006] S2, using the audio fusion operator to process the real-time speech and generate characteristic speech;

[0007] S3. Convert the feature speech into text.

[0008] When converting characteristic speech into text, existing neural networks or deep learning methods can be used.

[0009] Furthermore, the S1 comprises the following sub-steps:

[0010] S11, using the microphone of the mobile terminal to collect the real-time voice of the user, and performing windowing processing on the real-time voice of the user;

[0011] S12, splitting the real-time speech after the windowing process into a first audio set and a second audio set;

[0012] S13, performing wavelet transform on each frame of audio signal in the first audio set and the second audio set to obtain detail subband coefficients of each frame of audio signal;

[0013] S14, determining an audio transform coefficient of the first audio set according to a detail subband coefficient of each frame of the audio signal in the first audio set, and determining an audio transform coefficient of the second audio set according to the detail subband coefficient of each frame of the audio signal in the second audio set;

[0014] S15. Determine a first audio fusion element according to the audio transformation coefficient of the first audio set and the audio transformation coefficient of the second audio set;

[0015] S16, determining a second audio fusion element;

[0016] S17. Generate an audio fusion operator according to the determined first audio fusion element and the second audio fusion element.

[0017] The beneficial effect of the above further scheme is: in the present invention, the user's real-time voice contains more voice signals, so the real-time voice is split, the audio transformation coefficients are extracted from the voice signals of the two audio sets respectively, and the first audio fusion element is determined according to the two audio transformation coefficients; the gammatone filter cepstral coefficients of the two audio sets are used to obtain the second audio fusion element; the two elements are spliced ​​to generate an audio fusion operator containing the characteristics of the voice signal, and the audio fusion operator can reflect the audio characteristics and facilitate the subsequent voice enhancement processing. Among them, the gammatone filter cepstral coefficient with better noise resistance is a characteristic parameter based on the human ear cochlear auditory model, which is mainly used for audio data feature extraction and speech recognition, has good robustness, and can effectively improve the recognition accuracy in noisy and unstable environments.

[0018] Further, in S11, the audio length of the real-time speech is used as the window width of the windowing function, and the windowing function is used to perform windowing processing on the real-time speech of the user;

[0019] The expression of the windowing function Z(k) is:

[0020] ; Wherein, S represents the window width of the windowing function, and k represents the unit window width number of the windowing function.

[0021] Furthermore, in S14, the audio conversion coefficient c of the first audio set 1 The calculation formula is:

[0022] ; In the formula, p m represents the detail subband coefficient of the mth frame audio signal in the first audio set, p m-1 represents the detail subband coefficient of the m-1th frame audio signal in the first audio set, p m+1 represents the detail subband coefficient of the m+1th frame audio signal of the first audio set, exp(·) represents an exponential function, and M represents the total number of audio signal frames of the first audio set;

[0023] In S14, the audio conversion coefficient c of the second audio set 2 The calculation formula is:

[0024] ; In the formula, p n represents the detail subband coefficient of the nth frame audio signal in the second audio set, p n-1 represents the detail subband coefficient of the n-1th frame audio signal in the second audio set, p n+1 It represents the detail subband coefficient of the n+1th frame audio signal in the second audio set, and N represents the total number of audio signal frames in the second audio set.

[0025] Furthermore, in S15, the first audio fusion element x 1 The calculation formula is:

[0026] ; In the formula, c 1 represents the audio transform coefficients of the first audio set, c 2 represents the audio transform coefficient of the second audio set, M represents the total number of audio signal frames of the first audio set, N represents the total number of audio signal frames of the second audio set, Indicates a round-up operation.

[0027] Furthermore, the S16 includes the following sub-steps:

[0028] S161, extracting gammatone filter cepstral coefficients of the first audio set and gammatone filter cepstral coefficients of the second audio set;

[0029] S162: Calculate a second audio fusion element according to the gammatone filter cepstral coefficients of the first audio set and the gammatone filter cepstral coefficients of the second audio set.

[0030] Furthermore, in S162, the second audio fusion element x 2 The calculation formula is:

[0031] Where, F 1 represents the gammatone filter cepstral coefficients of the first audio set, F 2 Gammatone filter cepstral coefficients representing the second audio set.

[0032] Furthermore, in S17, the expression of the audio fusion operator R is: R=[x 1, x 2 ]; where [ , ] represents the concatenation operation, x 1 Indicates the first audio fusion element, x 2 Represents the second audio fusion element.

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

[0034] S21, extracting the original gain factor of the real-time speech;

[0035] S22, using an audio fusion operator to correct the original gain factor to obtain a target gain factor;

[0036] S23. Perform enhancement processing on the real-time speech using the target gain factor to obtain characteristic speech.

[0037] The beneficial effect of the above further scheme is: in the present invention, since the noise interference of the real-time speech input by the user is strong, it is necessary to use the audio fusion operator to correct the gain factor, and enhance the real-time speech through the correction result to suppress the interference of noise.

[0038] Furthermore, in S22, the target gain factor Y is calculated as follows:

[0039] ; In the formula, R represents the audio fusion operator, y represents the original gain factor, Indicates a round-up operation.

[0040] The beneficial effects of the present invention are as follows: the artificial intelligence-based voice interaction method splits the real-time voice input by the user, extracts the characteristic parameters of the two audio sets respectively, and then splices them to generate an audio fusion operator, and uses the audio fusion operator to correct the gain operator of the enhancement processing, thereby improving the effect of the voice enhancement processing, improving the recognition accuracy of voice-to-text conversion, and improving the noise resistance of voice recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 The flowchart of the voice interaction method based on artificial intelligence is shown in FIG. DETAILED DESCRIPTION

[0042] The embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

[0043] like Figure 1 As shown, the present invention provides a voice interaction method based on artificial intelligence, comprising the following steps:

[0044] S1. Use the microphone of the mobile terminal to collect the user's real-time voice and generate an audio fusion operator corresponding to the real-time voice;

[0045] S2, using the audio fusion operator to process the real-time speech and generate characteristic speech;

[0046] S3. Convert the feature speech into text.

[0047] When converting characteristic speech into text, existing neural networks or deep learning methods can be used.

[0048] In this embodiment of the present invention, S1 includes the following sub-steps:

[0049] S11, using the microphone of the mobile terminal to collect the real-time voice of the user, and performing windowing processing on the real-time voice of the user;

[0050] S12, splitting the real-time speech after the windowing process into a first audio set and a second audio set;

[0051] S13, performing wavelet transform on each frame of audio signal in the first audio set and the second audio set to obtain detail subband coefficients of each frame of audio signal;

[0052] S14, determining an audio transform coefficient of the first audio set according to a detail subband coefficient of each frame of the audio signal in the first audio set, and determining an audio transform coefficient of the second audio set according to the detail subband coefficient of each frame of the audio signal in the second audio set;

[0053] S15. Determine a first audio fusion element according to the audio transformation coefficient of the first audio set and the audio transformation coefficient of the second audio set;

[0054] S16, determining a second audio fusion element;

[0055] S17. Generate an audio fusion operator according to the determined first audio fusion element and the second audio fusion element.

[0056] In the present invention, the user's real-time voice contains more voice signals, so the real-time voice is split, the audio conversion coefficients are extracted from the voice signals of the two audio sets respectively, and the first audio fusion element is determined according to the two audio conversion coefficients; the gammatone filter cepstral coefficients of the two audio sets are used to obtain the second audio fusion element; the two elements are spliced ​​to generate an audio fusion operator containing the voice signal characteristics, which can reflect the audio characteristics and facilitate the subsequent voice enhancement processing. Among them, the gammatone filter cepstral coefficient with better noise resistance is a characteristic parameter based on the human ear cochlear auditory model, which is mainly used for audio data feature extraction and speech recognition, has good robustness, and can effectively improve the recognition accuracy in noisy and unstable environments.

[0057] In the embodiment of the present invention, in S11, the audio length of the real-time speech is used as the window width of the windowing function, and the windowing function is used to perform windowing processing on the real-time speech of the user;

[0058] The expression of the windowing function Z(k) is:

[0059] ; Wherein, S represents the window width of the windowing function, and k represents the unit window width number of the windowing function.

[0060] In the embodiment of the present invention, in S14, the audio conversion coefficient c of the first audio set 1 The calculation formula is:

[0061] ; In the formula, p m represents the detail subband coefficient of the mth frame audio signal in the first audio set, p m-1 represents the detail subband coefficient of the m-1th frame audio signal in the first audio set, p m+1 represents the detail subband coefficient of the m+1th frame audio signal of the first audio set, exp(·) represents an exponential function, and M represents the total number of audio signal frames of the first audio set;

[0062] In S14, the audio conversion coefficient c of the second audio set 2 The calculation formula is:

[0063] ; In the formula, p n represents the detail subband coefficient of the nth frame audio signal in the second audio set, p n-1 represents the detail subband coefficient of the n-1th frame audio signal in the second audio set, p n+1 It represents the detail subband coefficient of the n+1th frame audio signal in the second audio set, and N represents the total number of audio signal frames in the second audio set.

[0064] In the embodiment of the present invention, in S15, the first audio fusion element x 1 The calculation formula is:

[0065] ; In the formula, c 1 represents the audio transform coefficients of the first audio set, c 2 represents the audio transform coefficient of the second audio set, M represents the total number of audio signal frames of the first audio set, N represents the total number of audio signal frames of the second audio set, Indicates a round-up operation.

[0066] In this embodiment of the present invention, the S16 includes the following sub-steps:

[0067] S161, extracting gammatone filter cepstral coefficients of the first audio set and gammatone filter cepstral coefficients of the second audio set;

[0068] S162: Calculate a second audio fusion element according to the gammatone filter cepstral coefficients of the first audio set and the gammatone filter cepstral coefficients of the second audio set.

[0069] In the embodiment of the present invention, in S162, the second audio fusion element x 2 The calculation formula is:

[0070] Where, F 1 represents the gammatone filter cepstral coefficients of the first audio set, F2 Gammatone filter cepstral coefficients representing the second audio set.

[0071] In the embodiment of the present invention, in S17, the expression of the audio fusion operator R is: R=[x 1, x 2 ]; where [ , ] represents the concatenation operation, x 1 Indicates the first audio fusion element, x 2 Represents the second audio fusion element.

[0072] In this embodiment of the present invention, S2 includes the following sub-steps:

[0073] S21, extracting the original gain factor of the real-time speech;

[0074] S22, using an audio fusion operator to correct the original gain factor to obtain a target gain factor;

[0075] S23. Perform enhancement processing on the real-time speech using the target gain factor to obtain characteristic speech.

[0076] In the present invention, since the noise interference of the real-time speech input by the user is relatively strong, it is necessary to use the audio fusion operator to correct the gain factor, and enhance the real-time speech through the correction result to suppress the interference of noise.

[0077] In the embodiment of the present invention, in S22, the calculation formula of the target gain factor Y is:

[0078] ; In the formula, R represents the audio fusion operator, y represents the original gain factor, Indicates a round-up operation.

[0079] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.

Claims

1. A voice interaction method based on artificial intelligence, characterized in that: The following steps are involved: S1. Use the microphone of the mobile terminal to collect the user's real-time voice and generate an audio fusion operator corresponding to the real-time voice; S2, using the audio fusion operator to process the real-time speech and generate characteristic speech; S3, converting the characteristic speech into text; The S1 comprises the following sub-steps: S11, using the microphone of the mobile terminal to collect the real-time voice of the user, and performing windowing processing on the real-time voice of the user; S12, splitting the real-time speech after the windowing process into a first audio set and a second audio set; S13, performing wavelet transform on each frame of audio signal in the first audio set and the second audio set to obtain detail subband coefficients of each frame of audio signal; S14, determining an audio transform coefficient of the first audio set according to a detail subband coefficient of each frame of the audio signal in the first audio set, and determining an audio transform coefficient of the second audio set according to the detail subband coefficient of each frame of the audio signal in the second audio set; S15. Determine a first audio fusion element according to the audio transformation coefficient of the first audio set and the audio transformation coefficient of the second audio set; S16, determining a second audio fusion element; S17. Generate an audio fusion operator according to the determined first audio fusion element and the second audio fusion element; In the S11, the audio length of the real-time speech is used as the window width of the windowing function, and the windowing function is used to perform windowing processing on the real-time speech of the user; The expression of the windowing function Z(k) is: ; Wherein, S represents the window width of the windowing function, and k represents the unit window width number of the windowing function; In S14, the calculation formula of the audio conversion coefficient c1 of the first audio set is: ; In the formula, p m represents the detail subband coefficient of the mth frame audio signal in the first audio set, p m-1 represents the detail subband coefficient of the m-1th frame audio signal in the first audio set, p m+1 represents the detail subband coefficient of the m+1th frame audio signal of the first audio set, exp(·) represents an exponential function, and M represents the total number of audio signal frames of the first audio set; In S14, the calculation formula of the audio conversion coefficient c2 of the second audio set is: ; In the formula, p n represents the detail subband coefficient of the nth frame audio signal in the second audio set, p n-1 represents the detail subband coefficient of the n-1th frame audio signal in the second audio set, p n+1 represents the detail subband coefficient of the n+1th frame audio signal in the second audio set, where N represents the total number of audio signal frames in the second audio set; In S15, the calculation formula of the first audio fusion element x1 is: ; Wherein, c1 represents the audio transformation coefficient of the first audio set, c2 represents the audio transformation coefficient of the second audio set, M represents the total number of audio signal frames of the first audio set, and N represents the total number of audio signal frames of the second audio set. Indicates rounding up operation; The S16 comprises the following sub-steps: S161, extracting gammatone filter cepstral coefficients of the first audio set and gammatone filter cepstral coefficients of the second audio set; S162, calculating a second audio fusion element according to the gammatone filter cepstral coefficients of the first audio set and the gammatone filter cepstral coefficients of the second audio set; In S162, the calculation formula of the second audio fusion element x2 is: ; Wherein, F1 represents the gammatone filter cepstral coefficient of the first audio set, and F2 represents the gammatone filter cepstral coefficient of the second audio set; In S17, the expression of the audio fusion operator R is: R=[x 1, x2]; where [ , ] represents a concatenation operation, x1 represents the first audio fusion element, and x2 represents the second audio fusion element.

2. The artificial intelligence-based voice interaction method according to claim 1, characterized in that: The S2 comprises the following sub-steps: S21, extracting the original gain factor of the real-time speech; S22, using an audio fusion operator to correct the original gain factor to obtain a target gain factor; S23. Perform enhancement processing on the real-time speech using the target gain factor to obtain characteristic speech.

3. The artificial intelligence-based voice interaction method according to claim 2, characterized in that: In S22, the calculation formula of the target gain factor Y is: ; In the formula, R represents the audio fusion operator, y represents the original gain factor, Indicates a round-up operation.