CN111554320A - Audio stream Fourier analysis method based on Windows platform - Google Patents
Audio stream Fourier analysis method based on Windows platform Download PDFInfo
- Publication number
- CN111554320A CN111554320A CN202010242381.XA CN202010242381A CN111554320A CN 111554320 A CN111554320 A CN 111554320A CN 202010242381 A CN202010242381 A CN 202010242381A CN 111554320 A CN111554320 A CN 111554320A
- Authority
- CN
- China
- Prior art keywords
- audio
- data
- audio stream
- analysis method
- windows platform
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/03—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters
- G10L25/18—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters the extracted parameters being spectral information of each sub-band
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/48—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
- G10L25/72—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for transmitting results of analysis
Abstract
The invention provides an audio stream Fourier analysis method based on a Windows platform, which comprises the following steps: setting parameters: setting different audio parameters and a default audio channel through an interface to initialize available audio equipment, and entering a data state to be acquired after the audio equipment is prepared; audio data acquisition: the audio equipment collects and records audio stream, stores the received audio stream data in a cache, and waits for the conversion and the analysis of the data; and audio data conversion. The audio stream Fourier analysis method based on the Windows platform takes the Windows platform and the C + + development language as tools to collect, record and analyze sound, performs Fourier transform on digital signals according to different set sampling positions, sampling speeds, sampling frequencies and the number of transformed data points, and displays the sound into a spectrogram, so that an analyst can visually collect sound data and analyze the frequency and loudness of the sound, and parameters are provided for further follow-up deep research.
Description
Technical Field
The invention belongs to the field of audio stream Fourier analysis, and particularly relates to an audio stream Fourier analysis method based on a Windows platform.
Background
At present, sound collection based on various systems and platforms generally uses a common microphone and a microphone to collect and record analog signals and convert and forward digital signals, but few people analyze the components of sound: such as frequency (pitch), timbre (timbre), amplitude (loudness).
Disclosure of Invention
In view of this, the present invention is directed to provide an audio stream fourier analysis method based on a Windows platform, which is based on the Windows platform and uses a C + + development language as a tool to perform sound collection and analysis, and performs fourier transform on a digital signal according to different set sampling bits, sampling speeds, sampling frequencies and transform data points, so as to display a sound as a spectrogram.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the audio stream Fourier analysis method based on the Windows platform comprises the following steps:
s1, setting parameters: setting different audio parameters and a default audio channel through an interface to initialize available audio equipment, and entering a data state to be acquired after the audio equipment is prepared;
s2, audio data acquisition: the audio equipment collects and records audio stream, stores the received audio stream data in a cache, and waits for the conversion and the analysis of the data;
s3, audio data conversion: after the audio data in the designated data cache is received and set, carrying out data Fourier transform on the audio stream in the sub-thread;
s4, display of spectrum and waveform: and importing the audio stream data subjected to Fourier transform into lattice conversion of the page, performing color replacement according to the amplitude, and performing overall two-dimensional display based on the time dimension.
Further, in step S1, the audio parameters include a sampling rate, sampling bits, and a sampling speed.
Further, in step S2, an audio stream is taken from the audio device by calling the Windows API.
Compared with the prior art, the audio stream Fourier analysis method based on the Windows platform has the following advantages:
the audio stream Fourier analysis method based on the Windows platform takes the Windows platform and the C + + development language as tools to collect, record and analyze sound, performs Fourier transform on digital signals according to different set sampling positions, sampling speeds, sampling frequencies and the number of transformed data points, and displays the sound into a spectrogram, so that an analyst can visually collect sound data and analyze the frequency and loudness of the sound, and parameters are provided for further follow-up deep research.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a diagram illustrating a relationship of an audio stream fourier analysis method based on a Windows platform according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention. Furthermore, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," etc. may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless otherwise specified.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art through specific situations.
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
As shown in fig. 1, the invention is mainly based on a Windows hardware platform, and uses a C + + language tool to collect and record audio signals and perform fourier transform on the converted digital signals, and different sampling bits, sampling speeds, sampling frequencies and conversion data points can be respectively adjusted and set by configuration.
The audio stream Fourier analysis method based on the Windows platform comprises the following steps:
s1, setting parameters: setting different audio parameters and a default audio channel through an interface to initialize available audio equipment, and entering a data state to be acquired after the audio equipment is prepared;
s2, audio data acquisition: the audio equipment collects and records audio stream, stores the received audio stream data in a cache, and waits for the conversion and the analysis of the data;
s3, audio data conversion: after the audio data in the designated data cache is received and set, carrying out data Fourier transform on the audio stream in the sub-thread;
s4, display of spectrum and waveform: and importing the audio stream data subjected to Fourier transform into lattice conversion of the page, performing color replacement according to the amplitude, and performing overall two-dimensional display based on the time dimension.
In step S1, the audio parameters include a sampling rate, sampling bits, and a sampling speed.
In step S2, an audio stream is captured from an audio device by calling the Windows API.
The invention is realized concretely as follows:
firstly, a bottom layer PtrRecorder module acquires sound card digital audio stream data through a Windows API (application program interface) at a set fixed frequency and writes the data into a memory buffer area, and meanwhile, new sampling point data are spliced to the previous section in a reserved space for sampling data at the tail end of a recording tape, and Fourier transform cache is initialized; next, the PtrFft module carries out fast Fourier transform on the audio data, and a new fft complex queue is obtained by calculation according to the initialized index queue and the incremental value; and finally, after the conversion is finished, the Painter module respectively draws a continuous time domain oscillogram and a spectrogram according to the conversion result.
1. Setting parameters:
different sampling rates, sampling bits and sampling speeds can be set through the interface, as well as default audio channels to initialize the available audio devices. After the audio equipment is prepared, the audio equipment enters a data state to be acquired;
2. audio data acquisition:
calling a Windows API to collect and record audio stream from audio equipment, storing the received audio stream data in a cache, and waiting for conversion and analysis of data;
3. audio data conversion:
and after the audio data in the designated data cache is received and set, carrying out data Fourier transform on the audio stream in the sub-thread.
4. Display of frequency spectrum and waveform:
importing the audio stream data subjected to Fourier transform into lattice conversion of a page, performing color replacement according to the amplitude, and performing overall two-dimensional display based on a time dimension;
the PtrFft stores data of a recording tape based on a time domain, limits an upper limit and a lower limit and draws a time domain oscillogram;
and performing spectrum table look-up on the complex queue after the fast Fourier transform to obtain a corresponding color value, and performing time domain drawing according to coordinate positioning to obtain a spectrogram.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (3)
1. The audio stream Fourier analysis method based on the Windows platform is characterized by comprising the following steps:
s1, setting parameters: setting different audio parameters and a default audio channel through an interface to initialize available audio equipment, and entering a data state to be acquired after the audio equipment is prepared;
s2, audio data acquisition: the audio equipment collects and records audio stream, stores the received audio stream data in a cache, and waits for the conversion and the analysis of the data;
s3, audio data conversion: after the audio data in the designated data cache is received and set, carrying out data Fourier transform on the audio stream in the sub-thread;
s4, display of spectrum and waveform: and importing the audio stream data subjected to Fourier transform into lattice conversion of the page, performing color replacement according to the amplitude, and performing overall two-dimensional display based on the time dimension.
2. The Windows platform based audio stream fourier analysis method of claim 1, wherein: in step S1, the audio parameters include a sampling rate, sampling bits, and a sampling speed.
3. The Windows platform based audio stream fourier analysis method of claim 1, wherein: in step S2, an audio stream is captured from an audio device by calling the Windows API.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010242381.XA CN111554320A (en) | 2020-03-31 | 2020-03-31 | Audio stream Fourier analysis method based on Windows platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010242381.XA CN111554320A (en) | 2020-03-31 | 2020-03-31 | Audio stream Fourier analysis method based on Windows platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111554320A true CN111554320A (en) | 2020-08-18 |
Family
ID=72005575
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010242381.XA Pending CN111554320A (en) | 2020-03-31 | 2020-03-31 | Audio stream Fourier analysis method based on Windows platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111554320A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070121963A1 (en) * | 2005-11-26 | 2007-05-31 | Hon Hai Precision Industry Co., Ltd. | System and method for creating a monophonic spectrum sweeping wave file |
CN101635160A (en) * | 2009-06-17 | 2010-01-27 | 深圳市美赛达科技有限公司 | Music frequency spectrum analyzing method, music frequency spectrum display device and music playing device |
CN104036788A (en) * | 2014-05-29 | 2014-09-10 | 百度在线网络技术(北京)有限公司 | Tone quality identification method and device for audio files |
-
2020
- 2020-03-31 CN CN202010242381.XA patent/CN111554320A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070121963A1 (en) * | 2005-11-26 | 2007-05-31 | Hon Hai Precision Industry Co., Ltd. | System and method for creating a monophonic spectrum sweeping wave file |
CN101635160A (en) * | 2009-06-17 | 2010-01-27 | 深圳市美赛达科技有限公司 | Music frequency spectrum analyzing method, music frequency spectrum display device and music playing device |
CN104036788A (en) * | 2014-05-29 | 2014-09-10 | 百度在线网络技术(北京)有限公司 | Tone quality identification method and device for audio files |
Non-Patent Citations (2)
Title |
---|
曹李秋等: "《基于声卡的音频信号采集和处理系统设计》", 《中国水运(理论版·自然科学)》 * |
白燕燕等: "《基于MATLAB语谱图的声乐研究》", 《软件工程》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10867618B2 (en) | Speech noise reduction method and device based on artificial intelligence and computer device | |
JPH0766628B2 (en) | Digital recording apparatus and recording method for analog signal | |
CN104517606A (en) | Method and device for recognizing and testing speech | |
CN110335615A (en) | Processing method, device, electronic equipment and the storage medium of audio data | |
CN104159177A (en) | Audio recording system and method based on screencast | |
EP3843093A3 (en) | Model evaluation method and device, and electronic device | |
CN104287700A (en) | Pulse wave detection system and method using audio port of smart phone | |
CN103297590B (en) | A kind of method and system realizing equipment unblock based on audio frequency | |
US11735202B2 (en) | Systems and methods for pre-filtering audio content based on prominence of frequency content | |
CN104332162A (en) | Audio signal recognition system for vehicle | |
CN111554320A (en) | Audio stream Fourier analysis method based on Windows platform | |
CN201755235U (en) | Heart sound signal collecting and analyzing device based on sound card | |
CN113397524B (en) | Respiration detection method, device, equipment and storage medium | |
US20140163940A1 (en) | Method and system for modeling rf emissions occurring in a radio frequency band | |
CN105748099A (en) | Android-based intelligent electronic auscultation system | |
Tan et al. | Real time analysis of fetal phonocardiography | |
CN101111103A (en) | Digital microphone parameter measuring system | |
CN109712639A (en) | A kind of audio collecting system and method based on wavelet filter | |
US11543435B2 (en) | Measurement system and method for recording context information of a measurement | |
CN108399921A (en) | A kind of generation method of audio vertical line oscillogram | |
CN114495941A (en) | Method and device for converting single-channel audio into text, electronic equipment and storage medium | |
EP0217953A1 (en) | Doppler signal analyzer | |
CN210223556U (en) | Voice acquisition equipment | |
CN111541981A (en) | Audio processing method and device, storage medium and terminal | |
CN214377688U (en) | Device integrating automatic calling of radial artery pressure reduction and urine volume recording |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200818 |
|
RJ01 | Rejection of invention patent application after publication |