Voice frequency conversion sampling method and device for array microphone
By dynamically adjusting the sampling frequency of the array microphone and calculating the angle variance of the index surface based on the amplitude, frequency and amplitude-frequency ratio time series spectrogram of the speech frame, the problem of poor sampling effect of the speech digital signal sampling method is solved, and better speech is achieved. Sampling quality.
Patent Information
- Application Number
- CN202311535087.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-11-16
AI Technical Summary
The current sampling method of digital voice signals cannot adjust the sampling frequency according to the user's voice changes, resulting in poor sampling effects.
By obtaining the amplitude, frequency and amplitude-frequency ratio time series spectrograms of the speech frame, merge them into the index time series three-dimensional spectrogram, calculate the angle variance of the index plane, and dynamically adjust the sampling frequency according to the variance-sampling frequency formula.
It improves the voice sampling effect, ensures that the sampling frequency matches the voice changes, and enhances the voice sampling quality.
Smart Images

Figure CN117765963B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of microphone speech sampling, and in particular to a speech frequency conversion sampling method and device of an array microphone. Background Art
[0002] Speech enhancement technology is a technology that suppresses noise in speech and highlights the target speech. It can be divided into single-microphone speech enhancement technology and microphone array speech enhancement technology. Using array microphones to collect speech is a technology that converts speech into digital signals. It is often used in audio recording and sound amplification, thereby achieving effects such as speech preservation and amplification.
[0003] Currently, multiple digital silicon microphones are mainly used to collect voice digital signals at a certain voice sampling frequency, and then the collected voice digital signals are processed by voice algorithms. However, the current voice digital signal collection method cannot adjust the voice digital signal sampling frequency according to the user's voice changes, so the current voice digital signal sampling method has the problem of poor sampling effect. Summary of the invention
[0004] The present invention provides a voice frequency conversion sampling method and device for an array microphone, the main purpose of which is to solve the problem that the current sampling method of voice digital signals has a poor sampling effect.
[0005] To achieve the above object, the present invention provides a speech frequency conversion sampling method of an array microphone, comprising:
[0006] Obtain the current speech frame, and extract the current amplitude time-series spectrogram, the current frequency time-series spectrogram, and the current amplitude-frequency ratio time-series spectrogram of the current speech frame;
[0007] The current amplitude time series spectrogram, the current frequency time series spectrogram and the current amplitude-frequency ratio time series spectrogram are combined into an indicator time series stereo spectrogram according to a preset spectrogram merging angle, wherein the indicator time series stereo spectrograms share the same origin, and the spectrogram merging angle is 180 ° ;
[0008] Sequentially extracting sampling point value sets at the same time in the indicator time series stereo spectrogram, connecting the sampling point value sets to obtain a speech indicator time face set;
[0009] Sequentially extracting adjacent speech index moment surfaces from the speech index moment surface set, calculating the index surface angles of the adjacent speech index moment surfaces, and obtaining an index surface angle set;
[0010] Calculate the indicator plane angle variance of the indicator plane angle set, and calculate the next frame sampling frequency of the current speech frame according to the indicator plane angle variance and a preset variance-sampling frequency formula, wherein the variance-sampling frequency formula is as follows:
[0011]
[0012] Among them, f represents the sampling frequency of the next frame, and s represents the angle variance of the index surface;
[0013] Determine whether a voice sampling stop instruction is received;
[0014] If no speech stop sampling instruction is received, collecting the next speech frame according to the next frame sampling frequency of the current speech frame;
[0015] Calculate the next frame sampling frequency of the next voice frame, use the next frame sampling frequencies of the next voice frame and the next voice frame to update the current voice frame and the next frame sampling frequency of the current voice frame respectively, and return to the above step of determining whether a voice sampling stop instruction is received;
[0016] If a voice sampling stop instruction is received, the voice sampling is stopped and the voice frequency conversion sampling of the array microphone is completed.
[0017] Optionally, obtaining the current voice frame includes:
[0018] Receive voice input scenario from user;
[0019] Extracting an initial sampling frequency from a pre-constructed speech frame sampling frequency set according to the speech input scenario;
[0020] The current speech frame is sampled according to the initial sampling frequency.
[0021] Optionally, collecting the current speech frame according to the initial sampling frequency includes:
[0022] According to the initial sampling frequency, the unit sampling duration is calculated using a pre-constructed unit sampling duration formula, wherein the unit sampling duration formula is as follows:
[0023]
[0024] Among them, t represents the unit sampling duration, N represents the number of sampling points per frame, and f start represents the initial sampling frequency;
[0025] Receive a digital signal, and determine whether the signal duration of the digital signal reaches the unit sampling duration;
[0026] If the signal duration of the digital signal does not reach the unit sampling duration, returning to the above step of receiving the digital signal;
[0027] If the signal duration of the digital signal reaches the unit sampling duration, the digital signal is used as the current voice frame.
[0028] Optionally, extracting a current amplitude time-series spectrogram, a current frequency time-series spectrogram, and a current amplitude-frequency ratio time-series spectrogram of a current speech frame includes:
[0029] Sequentially extracting the amplitude and sampling time of each speech sampling point in the current speech frame to obtain a current speech amplitude set and a current speech sampling time set;
[0030] Establishing an amplitude-time correspondence between the current speech amplitude set and the current speech sampling time set, and constructing the current amplitude time-series spectrogram according to the amplitude-time correspondence;
[0031] Calculating the frequency of the current speech frame, taking the frequency of the current speech frame as the frequency of each speech sampling point in the current speech frame, and obtaining a current speech frequency set;
[0032] Constructing a frequency-time correspondence between the current speech frequency set and the current speech sampling time set, and constructing the current frequency time series spectrogram according to the frequency-time correspondence;
[0033] Calculate the ratio of the amplitude to the frequency of each speech sampling point to obtain the current amplitude-frequency ratio set;
[0034] An amplitude-frequency ratio time correspondence relationship between the current amplitude-frequency ratio set and the current speech sampling time set is constructed, and the current amplitude-frequency ratio time series spectrogram is constructed according to the amplitude-frequency ratio time correspondence relationship.
[0035] Optionally, merging the current amplitude time series spectrogram, the current frequency time series spectrogram and the current amplitude-frequency ratio time series spectrogram into an indicator time series stereo spectrogram according to a preset spectrogram merging angle includes:
[0036] Obtain a polar coordinate system, in which the polar angle is set to 0 ° Pole diameter, 120 ° Pole diameter and 240 ° The diameter of the pole ° Pole diameter, 120 ° Pole diameter and 240 ° Polar diameter as time axis;
[0037] Obtaining the polar coordinate plane where the polar coordinate system is located, extracting the pole of the polar coordinate system, and using the pole as the origin of the stereogram;
[0038] Draw a perpendicular line to the polar coordinate plane through the origin of the stereogram, and use the perpendicular line as the amplitude / frequency / amplitude-frequency ratio axis to obtain a time-series stereogram of the indicator to be filled;
[0039] The current amplitude time series spectrum, the current frequency time series spectrum and the current amplitude-frequency ratio time series spectrum are filled into the to-be-filled indicator time series three-dimensional spectrum to obtain the indicator time series three-dimensional spectrum.
[0040] Optionally, sequentially extracting a set of sampling point values at the same time in the indicator time series stereogram includes:
[0041] Extracting a current speech sampling time set of the indicator time-series stereo spectrogram, and sequentially extracting the current speech sampling time in the current speech sampling time set;
[0042] The amplitude coordinate points, frequency coordinate points and amplitude-frequency ratio coordinate points corresponding to the current speech sampling time are extracted from the indicator time-series stereo spectrogram to obtain the sampling point data set.
[0043] Optionally, the calculating the indicator plane angles of the adjacent speech indicator moment planes to obtain an indicator plane angle set includes:
[0044] Respectively obtain the surface perpendicular lines of the speech index moment surfaces to obtain the surface perpendicular line pairs corresponding to adjacent speech index moment surfaces;
[0045] Calculate the spatial angle between the pair of surface perpendicular lines to obtain the index surface perpendicular angle;
[0046] According to the pre-constructed indicator surface angle formula, the indicator surface angle is calculated using the indicator surface perpendicular angle, wherein the indicator surface angle formula is as follows:
[0047] α=180°-β
[0048] Among them, α represents the angle of the index surface, and β represents the angle of the vertical line of the index surface;
[0049] The indicator plane angles of all adjacent speech indicator moment planes are summarized to obtain the indicator plane angle set.
[0050] Optionally, calculating the indicator surface angle variance of the indicator surface angle set includes:
[0051] The variance of the indicator surface angle is calculated according to the indicator surface angle set using a pre-constructed variance formula, wherein the variance formula is as follows:
[0052]
[0053] Among them, s represents the index surface angle variance, α1 represents the first index surface angle in the index surface angle set, α2 represents the second index surface angle in the index surface angle set, and α N-1 represents the N-1th indicator surface angle in the indicator surface angle set, Represents the mean of the index surface angle set.
[0054] Optionally, after obtaining the current voice frame, the method further includes:
[0055] Using a pre-built transmission interface to transmit the current voice frame to a pre-built system-on-chip, and extracting the voice algorithm of the system-on-chip, wherein the transmission interface is a PDM interface or an IIS interface, and the system-on-chip is a SOC chip;
[0056] Using the speech algorithm to perform algorithm processing on the current speech frame to obtain a target speech frame;
[0057] The target voice frame is transmitted to a pre-built back-end host using a pre-built communication chip.
[0058] In order to solve the above problems, the present invention also provides a speech frequency conversion sampling device for an array microphone, the device comprising:
[0059] The spectrogram extraction module is used to obtain the current speech frame and extract the current amplitude time-series spectrogram, the current frequency time-series spectrogram and the current amplitude-frequency ratio time-series spectrogram of the current speech frame;
[0060] The indicator time series stereo spectrogram merging module is used to merge the current amplitude time series spectrogram, the current frequency time series spectrogram and the current amplitude-frequency ratio time series spectrogram into an indicator time series stereo spectrogram according to a preset spectrogram merging angle, wherein the indicator time series stereo spectrograms share the same origin and the spectrogram merging angle is 180 ° ;
[0061] A speech index time facet set acquisition module is used to sequentially extract sampling point value sets at the same time in the index time series stereo spectrogram, connect the sampling point value sets, and obtain the speech index time facet set;
[0062] The next frame sampling frequency calculation module is used to sequentially extract adjacent speech indicator moment surfaces from the speech indicator moment surface set, calculate the indicator surface angles of the adjacent speech indicator moment surfaces, and obtain an indicator surface angle set; calculate the indicator surface angle variance of the indicator surface angle set, and calculate the next frame sampling frequency of the current speech frame according to the indicator surface angle variance and a preset variance-sampling frequency formula, wherein the variance-sampling frequency formula is as follows:
[0063]
[0064] Among them, f represents the sampling frequency of the next frame, and s represents the angle variance of the index surface;
[0065] The speech cycle sampling module is used to determine whether a speech stop sampling instruction is received; if the speech stop sampling instruction is not received, the next speech frame is collected according to the next frame sampling frequency of the current speech frame; the next frame sampling frequency of the next speech frame is calculated, and the next frame sampling frequency of the current speech frame and the next frame sampling frequency of the next speech frame are respectively updated using the next speech frame and the next frame sampling frequency of the next speech frame, and return to the above step of determining whether a speech sampling stop instruction is received; if the speech stop sampling instruction is received, speech sampling is stopped.
[0066] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0067] at least one processor; and,
[0068] a memory communicatively connected to the at least one processor; wherein,
[0069] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the above-mentioned speech frequency conversion sampling method of the array microphone.
[0070] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned speech frequency conversion sampling method of the array microphone.
[0071] As described in the background technology: the current sampling method of voice digital signals has the phenomenon of poor sampling effect. First, it is necessary to determine the sampling frequency of the next frame of the current voice frame according to the change intensity of the current voice frame. When calculating the change intensity of the current voice frame, it is necessary to obtain the current voice frame, and then extract the current amplitude time-series spectrogram, the current frequency time-series spectrogram and the current amplitude-frequency ratio time-series spectrogram of the current voice frame. Since it is necessary to comprehensively consider the change intensity of the current amplitude time-series spectrogram, the current frequency time-series spectrogram and the current amplitude-frequency ratio time-series spectrogram to determine the current voice The change intensity of the frame, so it is necessary to combine the current amplitude time series spectrogram, the current frequency time series spectrogram and the current amplitude-frequency ratio time series spectrogram into the same coordinate system. When combining, the current amplitude time series spectrogram, the current frequency time series spectrogram and the current amplitude-frequency ratio time series spectrogram are combined into an indicator time series stereo spectrogram according to a preset spectrogram merging angle. At this time, the current speech frame can be comprehensively analyzed. When performing the analysis, the sampling point value sets at the same time are first extracted in sequence from the indicator time series stereo spectrogram, and then the sampling point value sets are connected to obtain the speech index The time plane set, since the sampling point value set is the amplitude, frequency and amplitude-frequency ratio at the same time, the speech index time plane is composed of the amplitude, frequency and amplitude-frequency ratio at the time, and the speech index time plane can represent the speech characteristics at a certain time. In order to calculate the continuity change of the current speech frame, it is necessary to extract adjacent speech index time planes in the speech index time plane set in turn, calculate the index plane angles of the adjacent speech index time planes, obtain the index plane angle set, and then calculate the index plane angle variance of the index plane angle set. Finally, the next frame sampling frequency of the current speech frame is calculated according to the index plane angle variance and the preset variance-sampling frequency formula. After calculating the next frame sampling frequency, it is necessary to determine whether a speech stop sampling instruction is received. If the speech stop sampling instruction is not received, the next speech frame is collected according to the next frame sampling frequency of the current speech frame, and then the next frame sampling frequency of the next speech frame is calculated, so as to realize the continuous sampling of the current speech frame. If the speech stop sampling instruction is received, the speech sampling is stopped. Therefore, the speech frequency conversion sampling method of the array microphone proposed in the present invention can solve the problem that the current sampling method of speech digital signals has poor sampling effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 A schematic flow chart of a method for sampling speech frequency conversion using an array microphone according to an embodiment of the present invention;
[0073] Figure 2 A functional module diagram of a speech frequency conversion sampling device of an array microphone provided in one embodiment of the present invention;
[0074] Figure 3A schematic diagram of the structure of an electronic device for implementing the voice frequency conversion sampling method of the array microphone provided in one embodiment of the present invention.
[0075] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0076] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0077] The embodiment of the present application provides a method for sampling speech frequency conversion of an array microphone. The execution subject of the method for sampling speech frequency conversion of an array microphone includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the method for sampling speech frequency conversion of an array microphone can be executed by software or hardware installed in a terminal device or a server device. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.
[0078] Embodiment 1:
[0079] Reference Figure 1 FIG. 1 is a flow chart of a method for sampling speech frequency conversion using an array microphone according to an embodiment of the present invention. In this embodiment, the method for sampling speech frequency conversion using an array microphone includes:
[0080] S1. Obtain the current speech frame, and extract the current amplitude time-series spectrogram, the current frequency time-series spectrogram, and the current amplitude-frequency ratio time-series spectrogram of the current speech frame.
[0081] It can be explained that the current voice frame refers to any voice frame received by the array microphone. Preferably, the current voice frame refers to the first voice frame received by the array microphone, that is, executing the method of the present application example from the first voice frame can ensure a better voice sampling effect. Generally, the duration of a voice frame is 20-30ms, so the current voice frame can be a set of voice sampling points when the array microphone starts to receive voice and lasts for 30ms. The voice sampling point can represent the amplitude at a certain moment.
[0082] Furthermore, the current amplitude time-series spectrogram refers to the acoustic wave curve of the change of the amplitude of the speech in the current speech frame over time, the current frequency time-series spectrogram refers to the relationship diagram of the change of the frequency of the current speech frame over time, and the current amplitude-frequency ratio time-series spectrogram refers to the relationship diagram of the change of the ratio of the amplitude to the frequency in the current speech frame over time.
[0083] In the embodiment of the present invention, the step of obtaining the current voice frame includes:
[0084] Receive voice input scenario from user;
[0085] Extracting an initial sampling frequency from a pre-constructed speech frame sampling frequency set according to the speech input scenario;
[0086] The current speech frame is sampled according to the initial sampling frequency.
[0087] It is understandable that the voice input scenario can be a speech, singing, recitation and other scenarios. The voice frame sampling frequency set refers to a set of voice frame sampling frequencies set according to different voice input scenarios. Different voice input scenarios have voice frame sampling frequencies suitable for them. When the voice input scenario input by the user is received, the voice frame sampling frequency of the current voice frame (that is, the initial sampling frequency of the array microphone) is switched. In this way, the rationality of the initial sampling frequency can be guaranteed, and then the sampling frequencies of other frames obtained based on the initial sampling frequency can be guaranteed to be more reasonable, which is conducive to ultimately obtaining a better voice sampling effect.
[0088] In the embodiment of the present invention, after obtaining the current voice frame, the method further includes:
[0089] Using a pre-built transmission interface to transmit the current voice frame to a pre-built system-on-chip, and extracting the voice algorithm of the system-on-chip, wherein the transmission interface is a PDM interface or an IIS interface, and the system-on-chip is a SOC chip;
[0090] Using the speech algorithm to perform algorithm processing on the current speech frame to obtain a target speech frame;
[0091] The target voice frame is transmitted to a pre-built back-end host using a pre-built communication chip.
[0092] Furthermore, the current mainstream technical solution is to have multiple microphones capable of A2B communication to collect voice digital signals, transmit them to the DSP on the back-end host, and then use the voice algorithm on the DSP to process the voice digital signals.
[0093] It should be understood that the communication method of the array microphone of the embodiment of the present invention can be to use A2B communication. First, multiple digital silicon microphones are used to convert the voice signal into a digital signal, and then the PDM or IIS interface of the main control chip is used to transmit the digital signal to the pre-built SOC chip. The SOC chip integrates a voice algorithm. The digital signal processed by the voice algorithm in the SOC chip will be transmitted to the back-end host through the ADI communication chip. The circuit design of the array microphone also integrates a key switch, a key reset, an LED indicator, a power supply circuit, a crystal oscillator circuit and a flash storage part. Through this data processing method, the digital signal collected by the array microphone and the back-end DSP can be integrated together, and the signal processed by the voice algorithm can be directly output, which reduces the development difficulty and reduces the product development cost.
[0094] In the embodiment of the present invention, the collecting of the current speech frame according to the initial sampling frequency includes:
[0095] According to the initial sampling frequency, the unit sampling duration is calculated using a pre-constructed unit sampling duration formula, wherein the unit sampling duration formula is as follows:
[0096]
[0097] Among them, t represents the unit sampling duration, N represents the number of sampling points per frame, and f start represents the initial sampling frequency;
[0098] Receive a digital signal, and determine whether the signal duration of the digital signal reaches the unit sampling duration;
[0099] If the signal duration of the digital signal does not reach the unit sampling duration, returning to the above step of receiving the digital signal;
[0100] If the signal duration of the digital signal reaches the unit sampling duration, the digital signal is used as the current voice frame.
[0101] It can be understood that the unit sampling duration refers to the sampling duration of the current voice frame, which is usually around 20-30ms, and the number of sampling points per unit frame refers to the number of sampling points in the current voice frame, which is usually 256 or 512. For example: when the number of sampling points per unit frame is 256 and the initial sampling frequency is 8KHz, the unit sampling duration is
[0102] Furthermore, although the speech frames are segmented continuously, overlapping segmentation is generally used, so that the speech frames can transition smoothly and maintain continuity.
[0103] In the embodiment of the present invention, the step of extracting the current amplitude time-series spectrogram, the current frequency time-series spectrogram and the current amplitude-frequency ratio time-series spectrogram of the current speech frame includes:
[0104] Sequentially extracting the amplitude and sampling time of each speech sampling point in the current speech frame to obtain a current speech amplitude set and a current speech sampling time set;
[0105] Establishing an amplitude-time correspondence between the current speech amplitude set and the current speech sampling time set, and constructing the current amplitude time-series spectrogram according to the amplitude-time correspondence;
[0106] Calculating the frequency of the current speech frame, taking the frequency of the current speech frame as the frequency of each speech sampling point in the current speech frame, and obtaining a current speech frequency set;
[0107] Constructing a frequency-time correspondence between the current speech frequency set and the current speech sampling time set, and constructing the current frequency time series spectrogram according to the frequency-time correspondence;
[0108] Calculate the ratio of the amplitude to the frequency of each speech sampling point to obtain the current amplitude-frequency ratio set;
[0109] An amplitude-frequency ratio time correspondence relationship between the current amplitude-frequency ratio set and the current speech sampling time set is constructed, and the current amplitude-frequency ratio time series spectrogram is constructed according to the amplitude-frequency ratio time correspondence relationship.
[0110] S2, according to a preset spectrum merging angle, the current amplitude time series spectrum, the current frequency time series spectrum and the current amplitude-frequency ratio time series spectrum are merged into an indicator time series stereo spectrum, wherein the indicator time series stereo spectrum shares the same origin, and the spectrum merging angle is 180 ° .
[0111] It can be understood that the spectrum merging angle refers to the horizontal axis angle in the coordinate system of the current amplitude time series spectrum, the current frequency time series spectrum and the current amplitude-frequency ratio time series spectrum.
[0112] In an embodiment of the present invention, the current amplitude time series spectrogram, the current frequency time series spectrogram and the current amplitude-frequency ratio time series spectrogram are combined into an indicator time series stereo spectrogram according to a preset spectrogram combining angle, including:
[0113] Obtain a polar coordinate system, in which the polar angle is set to 0 ° Pole diameter, 120 ° Pole diameter and 240 ° The diameter of the pole ° Pole diameter, 120 ° Pole diameter and 240 ° Polar diameter as time axis;
[0114] Obtaining the polar coordinate plane where the polar coordinate system is located, extracting the pole of the polar coordinate system, and using the pole as the origin of the stereogram;
[0115] Draw a perpendicular line to the polar coordinate plane through the origin of the stereogram, and use the perpendicular line as the amplitude / frequency / amplitude-frequency ratio axis to obtain a time-series stereogram of the indicator to be filled;
[0116] The current amplitude time series spectrum, the current frequency time series spectrum and the current amplitude-frequency ratio time series spectrum are filled into the to-be-filled indicator time series three-dimensional spectrum to obtain the indicator time series three-dimensional spectrum.
[0117] S3. Extracting sampling point value sets at the same time in the indicator time series stereo spectrogram in sequence, connecting the sampling point value sets to obtain the speech indicator time surface set.
[0118] It can be understood that the sampling point value set refers to a set of coordinate points at the same time in the indicator time series stereogram.
[0119] In the embodiment of the present invention, the step of sequentially extracting a set of sampling point values at the same time from the indicator time series stereogram includes:
[0120] Extracting a current speech sampling time set of the indicator time-series stereo spectrogram, and sequentially extracting the current speech sampling time in the current speech sampling time set;
[0121] The amplitude coordinate points, frequency coordinate points and amplitude-frequency ratio coordinate points corresponding to the current speech sampling time are extracted from the indicator time-series stereo spectrogram to obtain the sampling point data set.
[0122] Furthermore, since the number of sampling point values in the sampling point value set is 3, a triangle (speech indicator time plane) can be formed.
[0123] S4. Sequentially extract adjacent speech indicator moment planes from the speech indicator moment plane set, calculate the indicator plane angles of the adjacent speech indicator moment planes, and obtain an indicator plane angle set.
[0124] It can be understood that the indicator surface angle refers to the surface angle of the adjacent speech indicator moment surfaces.
[0125] In the embodiment of the present invention, the step of calculating the indicator plane angles of the adjacent speech indicator moment planes to obtain an indicator plane angle set includes:
[0126] Respectively obtain the surface perpendicular lines of the speech index moment surfaces to obtain the surface perpendicular line pairs corresponding to adjacent speech index moment surfaces;
[0127] Calculate the spatial angle between the pair of surface perpendicular lines to obtain the index surface perpendicular angle;
[0128] According to the pre-constructed indicator surface angle formula, the indicator surface angle is calculated using the indicator surface perpendicular angle, wherein the indicator surface angle formula is as follows:
[0129] α=180°-β
[0130] Among them, α represents the angle of the index surface, and β represents the angle of the vertical line of the index surface;
[0131] The indicator plane angles of all adjacent speech indicator moment planes are summarized to obtain the indicator plane angle set.
[0132] S5. Calculate the indicator plane angle variance of the indicator plane angle set, and calculate the next frame sampling frequency of the current speech frame according to the indicator plane angle variance and a preset variance-sampling frequency formula.
[0133] It can be understood that the next frame sampling frequency refers to the sampling frequency of collecting the next speech frame.
[0134] In the embodiment of the present invention, the step of calculating the indicator surface angle variance of the indicator surface angle set includes:
[0135] The variance of the indicator surface angle is calculated according to the indicator surface angle set using a pre-constructed variance formula, wherein the variance formula is as follows:
[0136]
[0137] Among them, s represents the index surface angle variance, α1 represents the first index surface angle in the index surface angle set, α2 represents the second index surface angle in the index surface angle set, and α N-1 represents the N-1th indicator surface angle in the indicator surface angle set, Represents the mean of the index surface angle set.
[0138] In detail, the variance-sampling frequency formula is as follows:
[0139]
[0140] Among them, f represents the sampling frequency of the next frame, and s represents the variance of the angle of the indicator surface.
[0141] It should be understood that the variance-sampling frequency formula is the tanh(x) activation function, and the variation range of the activation function is [0, 1). Since the sampling frequency used in general speech recognition is 8KHz-16KHz, the next frame sampling frequency falls exactly within this range. Of course, the coefficient in the variance-sampling frequency formula can be adjusted according to actual conditions.
[0142] Furthermore, when the variance of the indicator plane angle is larger, it means that the volume, frequency and other indicators of the current speech frame change more dramatically, so more speech sampling points can be added to optimize the speech processing effect.
[0143] In detail, when the variance of the indicator plane angle is larger, it means that the change between the indicator plane angles is larger, and the speech indicator moment plane is a plane obtained by connecting the three points of amplitude, frequency and amplitude-frequency ratio. Obviously, when the variance of the indicator plane angle is larger, the amplitude, frequency and amplitude-frequency ratio of the speech indicator moment plane that constitute the speech indicator moment plane change are larger, that is, the speech change of the current speech frame is stronger. Since the more violent the vocal cord vibration is, the larger the amplitude is, and the more times the vocal cord vibrates in a unit time, the larger the frequency is. Therefore, when the variance of the indicator plane angle between the speech indicator moment planes in the current speech frame is larger, the change between the amplitude and frequency in the current speech frame is more chaotic. Therefore, more speech data can be obtained by increasing the sampling frequency, thereby obtaining more speech change data, reflecting more speech change details, and ultimately improving the speech presentation effect.
[0144] S6. Determine whether a voice sampling stop instruction is received.
[0145] It is understandable that the voice sampling stop instruction can turn off the microphone switch for the user.
[0146] If the speech stop sampling instruction is not received, then S7, executing to collect the next speech frame according to the next frame sampling frequency of the current speech frame.
[0147] S8. Calculate the next frame sampling frequency of the next speech frame, and use the next frame sampling frequencies of the next speech frame and the next frame sampling frequencies of the next speech frame to update the current speech frame and the next frame sampling frequencies of the current speech frame respectively.
[0148] Furthermore, the calculation method of the next frame sampling frequency of the next voice frame is consistent with the calculation method of the next frame sampling frequency of the current voice frame, which will not be repeated here.
[0149] Return to the above step of determining whether a voice sampling stop instruction is received.
[0150] If a voice sampling stop instruction is received, S9 is executed to stop the voice sampling, and the voice frequency conversion sampling of the array microphone is completed.
[0151] The embodiment of the present invention determines the sampling frequency of the next frame of the current speech frame according to the change intensity of the current speech frame. When the change intensity of the current speech frame is large, more speech change data of amplitude, frequency and amplitude-frequency ratio should be collected. In order to collect more speech change data, the sampling frequency of the next frame should be increased, otherwise it should be reduced. When calculating the change intensity of the conceptual speech frame, it is necessary to first obtain the current speech frame, and then extract the current amplitude time-series spectrogram, the current frequency time-series spectrogram and the current amplitude-frequency ratio time-series spectrogram of the current speech frame. Since it is necessary to comprehensively analyze the current amplitude time-series spectrogram, the current frequency time-series spectrogram and the current amplitude-frequency ratio time-series spectrogram, the sampling frequency of the next frame should be increased, and vice versa. The intensity of change of the current speech frame is determined by the intensity of change of the time series spectrogram and the current amplitude-frequency ratio time series spectrogram. Therefore, it is necessary to combine the current amplitude time series spectrogram, the current frequency time series spectrogram and the current amplitude-frequency ratio time series spectrogram into the same coordinate system. When combining, the current amplitude time series spectrogram, the current frequency time series spectrogram and the current amplitude-frequency ratio time series spectrogram are combined into an indicator time series stereo spectrogram according to a preset spectrogram merging angle. At this time, the change intensity of the current speech frame can be analyzed. When performing the analysis, the sampling point value set at the same time is first extracted in sequence in the indicator time series stereo spectrogram, and then the sampling point value set is combined into The speech index moment surface set is obtained by connecting the rows, and the speech index moment surface set can represent the speech features at a certain moment. In order to calculate the continuity change of the current speech frame, it is necessary to extract adjacent speech index moment surfaces in the speech index moment surface set in turn, calculate the index surface angles of the adjacent speech index moment surfaces, obtain the index surface angle set, and then calculate the index surface angle variance of the index surface angle set. When the index surface angle variance is small, it means that the amplitude, frequency and amplitude-frequency ratio of the current speech frame change less, and accordingly, the current speech frame changes less than the previous speech frame, and is more Continuous, on the contrary, the current voice frame is greatly changed from the previous voice frame, so the next frame sampling frequency of the current voice frame can be calculated according to the indicator surface angle variance and the preset variance-sampling frequency formula. After calculating the next frame sampling frequency, it is necessary to determine whether a voice stop sampling instruction is received. If the voice stop sampling instruction is not received, the next voice frame is collected according to the next frame sampling frequency of the current voice frame, and then the next frame sampling frequency of the next voice frame is calculated, so as to realize the continuous sampling of the current voice frame. If the voice stop sampling instruction is received, the voice sampling is stopped. Therefore, the voice frequency conversion sampling method of the array microphone proposed in the present invention can solve the problem that the current sampling method of the voice digital signal has poor sampling effect.
[0152] Embodiment 2:
[0153] like Figure 2 , which is a functional module diagram of a speech frequency conversion sampling device of an array microphone provided in one embodiment of the present invention.
[0154] The speech frequency conversion sampling device 100 of the array microphone of the present invention can be installed in an electronic device. According to the functions to be implemented, the speech frequency conversion sampling device 100 of the array microphone can include a spectrogram extraction module 101, an indicator time series stereo spectrogram merging module 102, a speech indicator moment face set acquisition module 103, a next frame sampling frequency calculation module 104 and a speech cycle sampling module 105. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0155] The spectrogram extraction module 101 is used to obtain the current speech frame, and extract the current amplitude time-series spectrogram, the current frequency time-series spectrogram and the current amplitude-frequency ratio time-series spectrogram of the current speech frame;
[0156] The indicator time series stereo spectrogram merging module 102 is used to merge the current amplitude time series spectrogram, the current frequency time series spectrogram and the current amplitude-frequency ratio time series spectrogram into an indicator time series stereo spectrogram according to a preset spectrogram merging angle, wherein the indicator time series stereo spectrograms share the same origin, and the spectrogram merging angle is 180 ° ;
[0157] The speech index time facet set acquisition module 103 is used to sequentially extract the sampling point value sets at the same time in the index time series stereo spectrogram, and connect the sampling point value sets to obtain the speech index time facet set;
[0158] The next frame sampling frequency calculation module 104 is used to sequentially extract adjacent speech indicator moment surfaces from the speech indicator moment surface set, calculate the indicator surface angles of the adjacent speech indicator moment surfaces, and obtain an indicator surface angle set; calculate the indicator surface angle variance of the indicator surface angle set, and calculate the next frame sampling frequency of the current speech frame according to the indicator surface angle variance and a preset variance-sampling frequency formula, wherein the variance-sampling frequency formula is as follows:
[0159]
[0160] Among them, f represents the sampling frequency of the next frame, and s represents the angle variance of the index surface;
[0161] The speech loop sampling module 105 is used to determine whether a speech stop sampling instruction is received; if the speech stop sampling instruction is not received, the next speech frame is collected according to the next frame sampling frequency of the current speech frame; the next frame sampling frequency of the next speech frame is calculated, and the next frame sampling frequency of the current speech frame and the next frame sampling frequency of the next speech frame are respectively updated using the next speech frame and the next frame sampling frequency of the next speech frame, and return to the above step of determining whether a speech sampling stop instruction is received; if the speech stop sampling instruction is received, speech sampling is stopped.
[0162] In detail, the modules in the speech frequency conversion sampling device 100 of the array microphone in the embodiment of the present invention are used in the same manner as described above. Figure 1 The voice frequency conversion sampling method of the array microphone described in the present invention is the same technical means and can produce the same technical effect, which will not be repeated here.
[0163] Embodiment 3:
[0164] like Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a method for sampling speech frequency conversion using an array microphone provided by an embodiment of the present invention.
[0165] The electronic device 1 may include a processor 10, a memory 11, a bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a speech frequency conversion sampling program of an array microphone.
[0166] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the voice frequency conversion sampling program of the array microphone, but also be used to temporarily store data that has been output or is to be output.
[0167] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (such as a voice frequency conversion sampling program of an array microphone, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device 1 and process data.
[0168] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0169] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0170] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0171] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
[0172] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0173] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0174] The speech frequency conversion sampling program of the array microphone stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0175] Obtain the current speech frame, and extract the current amplitude time-series spectrogram, the current frequency time-series spectrogram, and the current amplitude-frequency ratio time-series spectrogram of the current speech frame;
[0176] The current amplitude time series spectrogram, the current frequency time series spectrogram and the current amplitude-frequency ratio time series spectrogram are combined into an indicator time series stereo spectrogram according to a preset spectrogram merging angle, wherein the indicator time series stereo spectrograms share the same origin, and the spectrogram merging angle is 180 ° ;
[0177] Sequentially extracting sampling point value sets at the same time in the indicator time series stereo spectrogram, connecting the sampling point value sets to obtain a speech indicator time face set;
[0178] Sequentially extracting adjacent speech index moment surfaces from the speech index moment surface set, calculating the index surface angles of the adjacent speech index moment surfaces, and obtaining an index surface angle set;
[0179] Calculate the indicator plane angle variance of the indicator plane angle set, and calculate the next frame sampling frequency of the current speech frame according to the indicator plane angle variance and a preset variance-sampling frequency formula, wherein the variance-sampling frequency formula is as follows:
[0180]
[0181] Among them, f represents the sampling frequency of the next frame, and s represents the angle variance of the index surface;
[0182] Determine whether a voice sampling stop instruction is received;
[0183] If no speech stop sampling instruction is received, collecting the next speech frame according to the next frame sampling frequency of the current speech frame;
[0184] Calculate the next frame sampling frequency of the next voice frame, use the next frame sampling frequencies of the next voice frame and the next voice frame to update the current voice frame and the next frame sampling frequency of the current voice frame respectively, and return to the above step of determining whether a voice sampling stop instruction is received;
[0185] If a voice sampling stop instruction is received, the voice sampling is stopped and the voice frequency conversion sampling of the array microphone is completed.
[0186] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figure 1 to Figure 2 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0187] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0188] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0189] Obtain the current speech frame, and extract the current amplitude time-series spectrogram, the current frequency time-series spectrogram, and the current amplitude-frequency ratio time-series spectrogram of the current speech frame;
[0190] The current amplitude time series spectrogram, the current frequency time series spectrogram and the current amplitude-frequency ratio time series spectrogram are combined into an indicator time series stereo spectrogram according to a preset spectrogram merging angle, wherein the indicator time series stereo spectrograms share the same origin, and the spectrogram merging angle is 180 ° ;
[0191] Sequentially extracting sampling point value sets at the same time in the indicator time series stereo spectrogram, connecting the sampling point value sets to obtain a speech indicator time face set;
[0192] Sequentially extracting adjacent speech index moment surfaces from the speech index moment surface set, calculating the index surface angles of the adjacent speech index moment surfaces, and obtaining an index surface angle set;
[0193] Calculate the indicator plane angle variance of the indicator plane angle set, and calculate the next frame sampling frequency of the current speech frame according to the indicator plane angle variance and a preset variance-sampling frequency formula, wherein the variance-sampling frequency formula is as follows:
[0194]
[0195] Among them, f represents the sampling frequency of the next frame, and s represents the angle variance of the index surface;
[0196] Determine whether a voice sampling stop instruction is received;
[0197] If no speech stop sampling instruction is received, collecting the next speech frame according to the next frame sampling frequency of the current speech frame;
[0198] Calculate the next frame sampling frequency of the next voice frame, use the next frame sampling frequencies of the next voice frame and the next voice frame to update the current voice frame and the next frame sampling frequency of the current voice frame respectively, and return to the above step of determining whether a voice sampling stop instruction is received;
[0199] If a voice sampling stop instruction is received, the voice sampling is stopped and the voice frequency conversion sampling of the array microphone is completed.
[0200] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0201] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0202] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0203] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0204] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A speech frequency conversion sampling method for an array microphone, characterized in that: The method comprises: Obtain the current speech frame, and extract the current amplitude time-series spectrogram, the current frequency time-series spectrogram, and the current amplitude-frequency ratio time-series spectrogram of the current speech frame; The current amplitude time series spectrogram, the current frequency time series spectrogram and the current amplitude-frequency ratio time series spectrogram are combined into an indicator time series stereo spectrogram according to a preset spectrogram merging angle, wherein the indicator time series stereo spectrograms share the same origin, and the spectrogram merging angle is 180 ° ; Sequentially extracting sampling point value sets at the same time in the indicator time series stereo spectrogram, connecting the sampling point value sets to obtain a speech indicator time face set; Sequentially extracting adjacent speech index moment surfaces from the speech index moment surface set, calculating the index surface angles of the adjacent speech index moment surfaces, and obtaining an index surface angle set; Calculate the indicator plane angle variance of the indicator plane angle set, and calculate the next frame sampling frequency of the current speech frame according to the indicator plane angle variance and a preset variance-sampling frequency formula, wherein the variance-sampling frequency formula is as follows: Among them, f represents the sampling frequency of the next frame, and s represents the angle variance of the index surface; Determine whether a voice sampling stop instruction is received; If no speech stop sampling instruction is received, collecting the next speech frame according to the next frame sampling frequency of the current speech frame; Calculate the next frame sampling frequency of the next voice frame, use the next frame sampling frequencies of the next voice frame and the next voice frame to update the current voice frame and the next frame sampling frequency of the current voice frame respectively, and return to the above step of determining whether a voice sampling stop instruction is received; If a voice sampling stop instruction is received, the voice sampling is stopped and the voice frequency conversion sampling of the array microphone is completed.
2. The speech frequency conversion sampling method of the array microphone as claimed in claim 1, characterized in that: The obtaining of the current speech frame comprises: Receive voice input scenario from user; Extracting an initial sampling frequency from a pre-constructed speech frame sampling frequency set according to the speech input scenario; The current speech frame is sampled according to the initial sampling frequency.
3. The speech frequency conversion sampling method of the array microphone as claimed in claim 2, characterized in that: The collecting of the current speech frame according to the initial sampling frequency comprises: According to the initial sampling frequency, the unit sampling duration is calculated using a pre-constructed unit sampling duration formula, wherein the unit sampling duration formula is as follows: Among them, t represents the unit sampling duration, N represents the number of sampling points per frame, and f start represents the initial sampling frequency; Receive a digital signal, and determine whether the signal duration of the digital signal reaches the unit sampling duration; If the signal duration of the digital signal does not reach the unit sampling duration, returning to the above step of receiving the digital signal; If the signal duration of the digital signal reaches the unit sampling duration, the digital signal is used as the current voice frame.
4. The speech frequency conversion sampling method of the array microphone as claimed in claim 1, characterized in that: The step of extracting the current amplitude time-series spectrogram, the current frequency time-series spectrogram and the current amplitude-frequency ratio time-series spectrogram of the current speech frame includes: Sequentially extracting the amplitude and sampling time of each speech sampling point in the current speech frame to obtain a current speech amplitude set and a current speech sampling time set; Establishing an amplitude-time correspondence between the current speech amplitude set and the current speech sampling time set, and constructing the current amplitude time-series spectrogram according to the amplitude-time correspondence; Calculating the frequency of the current speech frame, taking the frequency of the current speech frame as the frequency of each speech sampling point in the current speech frame, and obtaining a current speech frequency set; Constructing a frequency-time correspondence between the current speech frequency set and the current speech sampling time set, and constructing the current frequency time series spectrogram according to the frequency-time correspondence; Calculate the ratio of the amplitude to the frequency of each speech sampling point to obtain the current amplitude-frequency ratio set; An amplitude-frequency ratio time correspondence relationship between the current amplitude-frequency ratio set and the current speech sampling time set is constructed, and the current amplitude-frequency ratio time series spectrogram is constructed according to the amplitude-frequency ratio time correspondence relationship.
5. The speech frequency conversion sampling method of the array microphone according to claim 1, characterized in that: The method of merging the current amplitude time series spectrogram, the current frequency time series spectrogram and the current amplitude-frequency ratio time series spectrogram into an indicator time series stereo spectrogram according to a preset spectrogram merging angle includes: Obtain a polar coordinate system, in which polar angles are respectively taken as 0° polar diameter, 120° polar diameter and 240° polar diameter, and the 0° polar diameter, 120° polar diameter and 240° polar diameter are used as a time axis; Obtaining the polar coordinate plane where the polar coordinate system is located, extracting the pole of the polar coordinate system, and using the pole as the origin of the stereogram; Draw a perpendicular line to the polar coordinate plane through the origin of the stereogram, and use the perpendicular line as the amplitude / frequency / amplitude-frequency ratio axis to obtain a time-series stereogram of the indicator to be filled; The current amplitude time series spectrum, the current frequency time series spectrum and the current amplitude-frequency ratio time series spectrum are filled into the to-be-filled indicator time series three-dimensional spectrum to obtain the indicator time series three-dimensional spectrum.
6. The speech frequency conversion sampling method of the array microphone according to claim 1, characterized in that: The step of sequentially extracting a set of sampling point values at the same time in the indicator time series stereogram includes: Extracting a current speech sampling time set of the indicator time-series stereo spectrogram, and sequentially extracting the current speech sampling time in the current speech sampling time set; The amplitude coordinate points, frequency coordinate points and amplitude-frequency ratio coordinate points corresponding to the current speech sampling time are extracted from the indicator time-series stereo spectrogram to obtain the sampling point value set.
7. The speech frequency conversion sampling method of the array microphone according to claim 1, characterized in that: The step of calculating the indicator plane angles of the adjacent speech indicator moment planes to obtain an indicator plane angle set includes: Respectively obtain the surface perpendicular lines of the speech index moment surfaces to obtain the surface perpendicular line pairs corresponding to adjacent speech index moment surfaces; Calculate the spatial angle between the pair of surface perpendicular lines to obtain the index surface perpendicular angle; According to the pre-constructed indicator surface angle formula, the indicator surface angle is calculated using the indicator surface perpendicular angle, wherein the indicator surface angle formula is as follows: α=180°-β Among them, α represents the angle of the index surface, and β represents the angle of the vertical line of the index surface; The indicator plane angles of all adjacent speech indicator moment planes are summarized to obtain the indicator plane angle set.
8. The speech frequency conversion sampling method of the array microphone as claimed in claim 7, characterized in that: The calculating the indicator surface angle variance of the indicator surface angle set includes: The variance of the indicator surface angle is calculated according to the indicator surface angle set using a pre-constructed variance formula, wherein the variance formula is as follows: Among them, s represents the index surface angle variance, α1 represents the first index surface angle in the index surface angle set, α2 represents the second index surface angle in the index surface angle set, and α N-1 represents the N-1th indicator surface angle in the indicator surface angle set, Represents the mean of the index surface angle set.
9. The speech frequency conversion sampling method of the array microphone as claimed in claim 1, characterized in that: After obtaining the current voice frame, the method further includes: Using a pre-built transmission interface to transmit the current voice frame to a pre-built system-on-chip, and extracting the voice algorithm of the system-on-chip, wherein the transmission interface is a PDM interface or an IIS interface, and the system-on-chip is a SOC chip; Using the speech algorithm to perform algorithm processing on the current speech frame to obtain a target speech frame; The target voice frame is transmitted to a pre-built back-end host using a pre-built communication chip.
10. A speech frequency conversion sampling device for an array microphone, characterized in that: The device comprises: The spectrogram extraction module is used to obtain the current speech frame and extract the current amplitude time-series spectrogram, the current frequency time-series spectrogram and the current amplitude-frequency ratio time-series spectrogram of the current speech frame; The indicator time series stereo spectrogram merging module is used to merge the current amplitude time series spectrogram, the current frequency time series spectrogram and the current amplitude-frequency ratio time series spectrogram into an indicator time series stereo spectrogram according to a preset spectrogram merging angle, wherein the indicator time series stereo spectrograms share the same origin and the spectrogram merging angle is 180 ° ; A speech index time facet set acquisition module is used to sequentially extract sampling point value sets at the same time in the index time series stereo spectrogram, connect the sampling point value sets, and obtain the speech index time facet set; The next frame sampling frequency calculation module is used to sequentially extract adjacent speech indicator moment surfaces from the speech indicator moment surface set, calculate the indicator surface angles of the adjacent speech indicator moment surfaces, and obtain an indicator surface angle set; calculate the indicator surface angle variance of the indicator surface angle set, and calculate the next frame sampling frequency of the current speech frame according to the indicator surface angle variance and a preset variance-sampling frequency formula, wherein the variance-sampling frequency formula is as follows: Among them, f represents the sampling frequency of the next frame, and s represents the angle variance of the index surface; The speech cycle sampling module is used to determine whether a speech stop sampling instruction is received; if the speech stop sampling instruction is not received, the next speech frame is collected according to the next frame sampling frequency of the current speech frame; the next frame sampling frequency of the next speech frame is calculated, and the next frame sampling frequency of the current speech frame and the next frame sampling frequency of the next speech frame are respectively updated using the next speech frame and the next frame sampling frequency of the next speech frame, and return to the above step of determining whether a speech sampling stop instruction is received; if the speech stop sampling instruction is received, speech sampling is stopped.
Citation Information
Patent Citations
Method and system for audio optimization
CN105472507A
Effective voice acquisition method
CN109377982A
Voice acquisition method and device, electronic equipment and computer readable storage medium
CN113782043A
Speech enhancement method and system fusing ultrasonic signal features
CN114067824A
Voice decoding device, voice encoding device, and methods therefor
US20070271102A1
