Audio and video optimization method, audio terminal and storage medium
By extracting the speech syllables in the audio and video data and calculating the entrainment oscillation period, the audio and video data are redirected in time, which solves the problem of user fatigue caused by network delay in online meetings and realizes low-cost, low-hardware requirements audio Video optimization effect.
Patent Information
- Application Number
- CN202210159948.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-02-22
AI Technical Summary
The problem of user fatigue caused by variable network delay in online video conferencing. Existing methods of increasing bandwidth are costly and poorly adaptable, and cannot effectively solve the problem of 'Zoom fatigue'.
By obtaining the speaker's audio and video data, extracting speech syllables, calculating the entrainment oscillation period, and based on this, redirect the time flow of the audio and video data, adjust the audio and video playback time, and reduce the impact of network delay on users.
It effectively reduces the fatigue of online meeting users, has low cost, and does not require high hardware and network bandwidth. It is suitable for large-scale meetings and achieves a simple and effective solution.
Smart Images

Figure CN114630069B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of audio and video processing. Background Art
[0002] Since the outbreak of the epidemic, the application of online video conferencing software has become more and more widespread, which has also brought a different user experience from face-to-face communication. However, online communication, whether audio or video, will make users feel tired faster than face-to-face communication. Studies have shown that one of the reasons is that variable network delays interfere with users' predictions of speakers, and this prediction ability is related to the syllable rhythm of the speaker's voice, thus causing users' "Zoom fatigue."
[0003] "Zoom fatigue" comes from the latest research in 2021 that online meetings are more likely to cause user fatigue. The reason is that when two or more people communicate, the listener will predict when they should speak based on the speaker's vague syllable rhythm, but the fluctuating network delay disrupts the speaker's syllable rhythm. The listener will put more effort into predicting when he or she will speak, causing online meetings to be more tiring than face-to-face communication.
[0004] Increasing bandwidth can solve the problem of network latency. However, simply increasing bandwidth to reduce latency is costly, has poorer downward adaptability, and cannot solve the "zoom fatigue problem" caused by "variable (fluctuating)" network latency. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide an audio and video optimization method, an audio terminal and a storage medium for reducing user fatigue.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0007] The present invention first provides an audio and video optimization method, comprising:
[0008] Get the audio and video data of the current speaker;
[0009] Extracting speech syllables of audio data in the audio and video data according to the acquired audio and video data of the current speaker;
[0010] Based on the speech syllables of the audio data in the extracted audio and video data, the entrainment oscillation period of the current speaker is calculated;
[0011] Based on the calculated entrainment oscillation period of the current speaker, the time stream of the audio and video data of the current speaker is redirected to obtain the audio and video data of the target playback.
[0012] Extracting speech syllables of audio data in the audio and video data according to the acquired audio and video data of the current speaker, including:
[0013] Obtain the audio signal of the current speaker through the audio sensor of the current speaker's client and record the speaker ID;
[0014] Preprocessing the acquired audio signal of the current speaker to obtain a speech signal to be recognized;
[0015] The acquired speech signal to be recognized is framed and short-time Fourier transformed to obtain a spectrogram of the speech signal;
[0016] Based on the obtained speech signal spectrogram, the frequency-energy ratio of each frame signal is calculated to obtain a speech signal frequency-energy ratio curve;
[0017] Smoothing the obtained speech signal frequency-energy ratio curve to obtain the speech signal frequency-energy ratio envelope;
[0018] Performing curve smoothing processing on the frequency-energy ratio envelope of the obtained speech signal;
[0019] Based on the frequency-energy ratio envelope after the above curve smoothing processing, the speech syllable node is extracted.
[0020] The extracted speech syllable node is the peak value of the frequency-energy ratio envelope.
[0021] The method used for curve smoothing of the frequency-energy ratio envelope of the obtained speech signal is the SmoothCurve algorithm.
[0022] Preprocessing the acquired audio signal of the current speaker to obtain a speech signal to be recognized includes:
[0023] A noise cancellation algorithm is used to suppress the environmental self-noise in the acquired audio signal of the current speaker;
[0024] The wavelet denoising algorithm is used to further denoise the audio signal after the above-mentioned environmental self-noise suppression processing to obtain the speech signal to be recognized.
[0025] Based on the speech syllables of the audio data in the extracted audio and video data, the entrainment oscillation period of the current speaker is calculated, including:
[0026] Based on the speech syllables of the audio data in the extracted audio and video data, a time point set of each speech syllable node is obtained;
[0027] According to the obtained time point set of each speech syllable node, a syllable interval duration set is obtained;
[0028] According to the obtained syllable interval duration set, the entrainment oscillation period of the current speaker is calculated.
[0029] In order to ensure the accuracy of the above entrainment oscillation period calculation, at least 2 minutes of speech data are collected from each speaker, including approximately 400 to 500 syllables.
[0030] Based on the calculated entrainment oscillation period of the current speaker, the time stream of the audio and video data of the current speaker is redirected to obtain the audio and video data of the target playback, including:
[0031] The receiving client receives the audio data in the audio and video data of the current speaker and extracts the voice syllables of the current audio data;
[0032] Calculate the syllable interval according to the extracted speech syllable of the current audio data;
[0033] Set the fuzzy entrainment oscillation period value range, redirect the audio time stream for the current audio data whose calculated syllable interval is not within the fuzzy entrainment oscillation period value range, and output the time stream redirection variable;
[0034] Based on the obtained redirection variable, the audio and video data received by the above-mentioned receiving client is matched to obtain the target playback audio and video data.
[0035] The present invention also provides an audio terminal, characterized in that it comprises:
[0036] A speaking terminal, comprising an audio and video acquisition device and a first processing device, wherein the first processing device adopts the audio and video optimization method to calculate and obtain the entrainment oscillation period of the current speaker on the speaking terminal;
[0037] The playback terminal includes a playback device and a second processing device. The second processing device adopts the audio and video optimization method to redirect the time stream of the audio and video data of the current speaker on the speaking terminal based on the calculated entrainment oscillation period of the current speaker, and obtains the audio and video data played on the playback device.
[0038] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and is characterized in that when the computer program is executed by a processor, the steps of the audio and video optimization method are implemented.
[0039] Compared with the prior art, the present invention has the following beneficial effects:
[0040] 1. The audio and video optimization method provided by the present invention first collects the audio data of each speaker to calculate the speech syllable regularity, also known as the entrainment oscillation period, and then redirects the transmitted audio and video data on the receiving client based on the entrainment oscillation period, thereby solving the "zoom fatigue" caused by variable network delays for online conference users.
[0041] 2. The method provided by the present invention is low-cost, has low requirements on hardware and network bandwidth, is relatively simple to implement, and can effectively reduce the cost of large-scale meetings.
[0042] 3. The audio and video optimization method of the present invention has a wide range of applications, including but not limited to online communication applications such as online meetings.
[0043] 4. The method of the present invention adopts the coordinated work of the device terminal and the cloud. The terminal undertakes the computing work and does not occupy the cloud resources. The information processing and data transmission loads are reasonably distributed. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is a flow chart of the audio and video processing method of the present invention. DETAILED DESCRIPTION
[0045] The present invention is described in detail below in conjunction with the accompanying drawings:
[0046] The embodiment of the present invention provides an online conference audio and video optimization method, referring to Figure 1 ,The steps of the audio and video optimization method are:
[0047] S1. Obtain the voice signal to be recognized through the audio sensor of the speaker's client;
[0048] S2. Extracting the speaker's voice syllables according to the above voice signal to be recognized;
[0049] S3. Based on the speech syllables of the above speaker, calculate the entrainment oscillation period of the current speaker;
[0050] S4. After the speaker's audio and video data is transmitted to the receiving client, the time stream of the transmitted audio and video data is redirected based on the entrainment oscillation period of the speaker to obtain the target playback audio and video data.
[0051] In one embodiment of the present invention, step S1 specifically includes:
[0052] S11. Obtain the audio signal of the current speaker through the audio sensor of the speaker client and record the speaker ID;
[0053] S12. Preprocess the audio signal of the speaker collected above to obtain the voice signal W to be recognized f .
[0054] In one embodiment of the present invention, a speech signal to be recognized is obtained. f The steps include:
[0055] S121. Using a noise elimination algorithm to suppress the environmental self-noise in the above-collected audio signal;
[0056] S122. Using the wavelet denoising algorithm to further denoise the processed audio signal, obtain the speech signal to be recognized W f , the specific calculation method is:
[0057] Wf=∫f(t)Ψ(t)dt
[0058] Wherein, Wf is the speech signal to be recognized after wavelet denoising; f(t) is the audio signal after the above noise is eliminated, t is the time parameter of the audio; Ψ(t) is the basic wavelet, satisfying Ψ(±∞)=0, Ψ(0)=0, ∫Ψ(t)dt=0.
[0059] In one embodiment of the present invention, step S2 specifically includes:
[0060] S21. The above-mentioned speech signal to be recognized is framed and short-time Fourier transformed to obtain a spectrogram of the speech signal; wherein the specific calculation method of the spectrogram is:
[0061] x(t,ω)=∑Wf(t)ω(t)e -ωt
[0062] S(t,ω)=|x(t,ω)| 2
[0063] Wherein, Wf(t) is the input speech signal, ω(t) is the window function, x(t, ω) is a two-dimensional function of time t and frequency ω, and S(t, ω) is the spectrogram of the speech signal.
[0064] S22. Based on the spectrogram of the speech signal, the frequency-energy ratio of each frame signal is calculated to obtain the frequency-energy ratio curve of the speech signal. The specific method is as follows:
[0065] By calculating the ratio of the short-time energy of the above speech signal in the range of 250-3500Hz to the short-time energy in all frequency ranges, that is:
[0066]
[0067] Among them, s(f k ) is the frequency f corresponding to each frame signal k The spectral energy of 250Hz-3500Hz; It is the energy of each frame signal in the frequency range of 250Hz-3500Hz; is the energy of each frame signal in the frequency range from 0 to infinity. Since it is impossible to reach infinity, this method uses a maximum sampling frequency of 20000 Hz.
[0068] S23. Smoothing the frequency-to-energy ratio curve of the speech signal to obtain the frequency-to-energy ratio envelope of the speech signal;
[0069] S24. SmoothCurve algorithm is used to smooth the frequency-to-energy ratio envelope;
[0070] S25. Based on the frequency-to-energy ratio envelope after the above smoothing process, extract the speech syllable node, specifically: extract the peak value of the above frequency-to-energy ratio envelope as the speech syllable node.
[0071] In order to ensure the accuracy of the calculation of the entrainment oscillation period, at least 2 minutes of speech data were collected from each speaker, which was based on the normal speaking speed and included approximately 400-500 syllables.
[0072] In one embodiment of the present invention, step S4 specifically includes:
[0073] S41. Determine the speaker end after the entrainment oscillation period, and package the audio and video data with the entrainment oscillation period data matching the id and send it to the listener client through the UDP library during the subsequent meeting time;
[0074] S42. The listener client reads the audio data, calculates the speech syllable time feature of the current data, and calculates the syllable interval T′ according to the syllable time feature;
[0075] T′=t f -t b
[0076] Among them, t f is the latest syllable time parameter of the current audio, t b It is the time parameter of the previous syllable.
[0077] S43. Compare the entrainment oscillation period data in the voice data packet obtained above, if the syllable interval T′ of the transmitted audio data is not within the set fuzzy entrainment oscillation period value range R, then perform audio time stream redirection on the transmitted audio data and output the time stream redirection variable.
[0078] S44. According to the obtained redirection variable, the audio and video data received by the above-mentioned listener client is matched to obtain the redirected audio and video data. The specific method is:
[0079] The original syllable time point t in the audio or video f , redirected to the latest time point t f ',in:
[0080] t f ′=t f +Δt.
[0081] In one embodiment of the present invention, the range of the fuzzy entrainment oscillation period is set as:
[0082] R=[r min ·rhy,r max ·rhy]
[0083] Among them, r min The minimum parameter of the fuzzy value range is 0.8 to 0.9, r max It is the maximum parameter of the fuzzy value range and is between 1.1 and 1.2.
[0084] In one embodiment, r min The value is 0.85, r max The value is 1.15. At this time, R = [0.85·rhy, 1.15·rhy], and the specific calculation method of the output time flow redirection variable is:
[0085] C=C 1 ∪C 2
[0086] C 1 ={c 1 |c 1 =t b +0.85·n·rhy}
[0087] C2={c 2 |c 2 =t b +1.15·n·rhy}
[0088] D=|T′-C|
[0089] |T′-c|=D min
[0090] Δt=T′-c
[0091] Where C is the target time point set of the latest speech syllable calculated according to the fuzzy entrainment oscillation period, C 1 , C 2 are two subsets of C, c 1 is the starting point of the target time period of the latest speech syllable, c 2 is the end point of the latest speech syllable target time period; D is the distance set between the latest speech syllable and the end point of the speech syllable target time period, and the minimum value D in the distance set is taken. min When the value c in the C set is corresponding, that is, the nearest fuzzy entrainment oscillation period node from the latest speech syllable is taken, and the time flow redirection variable Δt is calculated; n is the number of syllables, n∈N + , N + is the set of positive integers.
[0092] Redirect to the latest time point tf ′=t f +Δt.
[0093] The embodiment of the present invention further provides an audio terminal, including:
[0094] The speaking terminal includes an audio and video acquisition device and a first processing device, wherein the first processing device uses the audio and video optimization method provided in the embodiment of the present invention to calculate and obtain the entrainment oscillation period of the current speaker on the speaking terminal;
[0095] The playback terminal includes a playback device and a second processing device. The second processing device adopts the audio and video optimization method provided in the embodiment of the present invention. Based on the calculated entrainment oscillation period of the current speaker, the audio and video data of the current speaker on the speaking terminal is redirected in time stream to obtain the audio and video data played on the playback device.
[0096] The present embodiment also provides a computer-readable storage medium, which includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer.
[0097] The computer-readable storage medium in this embodiment can be used to store one or more computer programs, and the one or more computer programs stored therein can be executed by a processor to implement the steps of the audio and video optimization method in the above-mentioned embodiment.
Claims
1. An audio and video optimization method, characterized in that: include: Get the audio and video data of the current speaker; Extracting speech syllables of audio data in the audio and video data according to the acquired audio and video data of the current speaker; Based on the speech syllables of the audio data in the extracted audio and video data, the entrainment oscillation period of the current speaker is calculated; Based on the calculated entrainment oscillation period of the current speaker, the time stream of the audio and video data of the current speaker is redirected to obtain the audio and video data of the target playback; Extracting speech syllables of audio data in the audio and video data according to the acquired audio and video data of the current speaker, including: Obtain the audio signal of the current speaker through the audio sensor of the current speaker's client and record the speaker ID; Preprocessing the acquired audio signal of the current speaker to obtain a speech signal to be recognized; The acquired speech signal to be recognized is framed and short-time Fourier transformed to obtain a spectrogram of the speech signal; Based on the obtained speech signal spectrogram, the frequency-energy ratio of each frame signal is calculated to obtain a speech signal frequency-energy ratio curve; Smoothing the obtained speech signal frequency-energy ratio curve to obtain the speech signal frequency-energy ratio envelope; Performing curve smoothing processing on the frequency-energy ratio envelope of the obtained speech signal; Extracting speech syllable nodes based on the frequency-energy ratio envelope after the curve is smoothed; Based on the obtained speech signal spectrogram, the frequency-energy ratio of each frame signal is calculated to obtain the speech signal frequency-energy ratio curve step. The calculated frequency-energy ratio FER of each frame signal is: Among them, s(f k ) is the frequency corresponding to each frame signal, f k The spectral energy of is 250Hz, 3500Hz; It is the energy of each frame signal in the frequency range of 250Hz-3500Hz; For each frame signal from 0 to the maximum frequency k max Energy within range; Based on the speech syllables of the audio data in the extracted audio and video data, the entrainment oscillation period of the current speaker is calculated, including: Based on the speech syllables of the audio data in the extracted audio and video data, a time point set of each speech syllable node is obtained; According to the obtained time point set of each speech syllable node, a syllable interval duration set is obtained; According to the obtained syllable interval duration set, the entrainment oscillation period of the current speaker is calculated; According to the obtained syllable interval duration set, in the step of calculating the entrainment oscillation period of the current speaker, the entrainment oscillation period calculated is: rhy≥f·P min Among them, rhy is the entrainment oscillation period, f is the minimum syllable parameter threshold, which is 1.13, P min is the minimum value in the syllable interval duration set P; The syllable interval duration set P is: Where R is the range of the fuzzy entrainment oscillation period, n is the number of syllables, n∈N + , N + is the set of positive integers; The range of fuzzy entrainment oscillation period R is: R=[r min · too, r max ·too] Among them, r min The minimum parameter of the fuzzy value range is 0.8 to 0.9, r max is the maximum parameter of the fuzzy value range, ranging from 1.1 to 1.2; Based on the calculated entrainment oscillation period of the current speaker, the time stream of the audio and video data of the current speaker is redirected to obtain the audio and video data of the target playback, including: The receiving client receives the audio data in the audio and video data of the current speaker and extracts the voice syllables of the current audio data; Calculate the syllable interval according to the extracted speech syllable of the current audio data; Set the fuzzy entrainment oscillation period value range, redirect the audio time stream for the current audio data whose calculated syllable interval is not within the fuzzy entrainment oscillation period value range, and output the time stream redirection variable; Based on the obtained redirection variable, the audio and video data received by the above-mentioned receiving client is matched to obtain the target playback audio and video data.
2. The audio and video optimization method according to claim 1, characterized in that: The extracted speech syllable node is the peak value of the frequency-energy ratio envelope.
3. The audio and video optimization method according to claim 1, characterized in that: The acquired speech signal to be recognized is framed and short-time Fourier transformed to obtain a spectrogram of the speech signal. The obtained spectrogram of the speech signal is: S(t,ω)=|∫Wf(t)w(t)e -ωt dω| 2 Among them, S(t,ω) is the spectrogram of the speech signal, t is time, ω is frequency; Wf(t) is the input speech signal; w(t) is the window function.
4. An audio terminal, characterized in that: include: A speaking terminal, comprising an audio and video acquisition device and a first processing device, wherein the first processing device adopts the audio and video optimization method according to any one of claims 1 to 3 to calculate and obtain the entrainment oscillation period of the current speaker on the speaking terminal; The playback terminal includes a playback device and a second processing device, wherein the second processing device adopts the audio and video optimization method described in any one of claims 1 to 3, and based on the calculated entrainment oscillation period of the current speaker, performs time stream redirection on the audio and video data of the current speaker on the speaking terminal to obtain the audio and video data played on the playback device.
5. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the audio and video optimization method as described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Low SNR (signal to noise ratio) speech noise reduction method
CN103632676A
System and method for converting audio / video data into written records
CN106782545A
