WO2021212717A1 - Audio data analysis method, electronic device, and storage medium - Google Patents

Audio data analysis method, electronic device, and storage medium Download PDF

Info

Publication number
WO2021212717A1
WO2021212717A1 PCT/CN2020/112177 CN2020112177W WO2021212717A1 WO 2021212717 A1 WO2021212717 A1 WO 2021212717A1 CN 2020112177 W CN2020112177 W CN 2020112177W WO 2021212717 A1 WO2021212717 A1 WO 2021212717A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
data
analysis
spectrum data
audio data
Prior art date
Application number
PCT/CN2020/112177
Other languages
French (fr)
Chinese (zh)
Inventor
严庆扬
王凡
Original Assignee
中科新悦(苏州)科技有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中科新悦(苏州)科技有限公司 filed Critical 中科新悦(苏州)科技有限公司
Publication of WO2021212717A1 publication Critical patent/WO2021212717A1/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/03Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters
    • G10L25/18Speech 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
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/06Transformation of speech into a non-audible representation, e.g. speech visualisation or speech processing for tactile aids
    • G10L21/10Transforming into visible information
    • G10L21/14Transforming into visible information by displaying frequency domain information
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination

Definitions

  • the present invention relates to the technical field of audio processing, in particular to an audio data analysis method, electronic equipment and storage medium.
  • the existing analysis of audio data generally involves professionals using professional instruments, that is, an acoustic test system to analyze audio data.
  • professional instruments that is, an acoustic test system to analyze audio data.
  • acoustic test systems it is generally necessary to understand certain professional knowledge before they can be used.
  • the most commonly used acoustic test system is a single-channel handheld test instrument, and most of the scenes need to be used as measuring instruments. It is widely used in environmental testing, rail transit , Home appliances, military industry, aerospace and other fields.
  • test results are generally expressed by the total sound level meter readings. If you want to get the detailed analysis results of the test results, you also need professionals to use professional knowledge for analysis. However, this limits the scope of application of existing acoustic test systems.
  • the embodiments of the present invention provide an audio data analysis method, electronic equipment, and storage medium to solve the problem of a narrow application range of the existing acoustic test system.
  • an embodiment of the present invention provides an audio data analysis method, including:
  • An analysis result of the target spectrum data and the at least one reference spectrum data is displayed on the analysis interface.
  • the audio data analysis method provided by the embodiment of the present invention converts the target audio data into target spectrum data after acquiring the target audio data, and displays the analysis results of the target spectrum data and the reference spectrum data on the same analysis interface, which can obtain intuitive analysis As a result, subsequent professionals' analysis of the data is avoided, and the application range of the electronic device for performing the audio data analysis method is greatly increased.
  • the converting the target audio data into target spectrum data includes:
  • the audio data analysis method performs frequency weighting processing on the target time domain data obtained from the target audio data to obtain the target data of the pre-design right, and then obtain the target spectrum data corresponding to the pre-design right;
  • the target spectrum data corresponding to the pre-design weight is obtained.
  • a comparative analysis under different pre-design weights can be performed, which expands the application range of the audio data analysis method.
  • said converting the target audio data into target spectrum data further includes:
  • the audio data analysis method uses preset octave parameters to process target frequency spectrum data to obtain target octave data corresponding to the preset octave parameters, and compare it from another angle (octave)
  • the target audio data is analyzed, which expands the application range of the audio data analysis method.
  • the analysis interface includes: the label of the pre-design right, the label of the preset octave, and the analysis result area;
  • the analysis result area is used to display the analysis result corresponding to the pre-design weight and the preset octave band.
  • the analysis interface is divided into a pre-design right label, a preset octave label, and an analysis result area to ensure that the analysis result corresponds to the pre-design right and the preset octave band. Display, making the display result more intuitive.
  • the analysis result area includes an analysis graph area; wherein, the target spectrum data and the at least one reference spectrum data are displayed on the analysis interface
  • the analysis results include:
  • the extracted target frequency spectrum data and the at least one reference frequency spectrum data are displayed in the analysis graph area; wherein the extracted target frequency spectrum data and the at least one reference frequency spectrum data correspond to an identifier in a one-to-one correspondence.
  • the audio data analysis method provided by the embodiment of the present invention displays the extracted target spectrum data and at least one reference spectrum data in the analysis graph area, and uses different identifiers to distinguish, so as to prevent the mutual influence between different spectrum data, so that The intuitiveness of the displayed results.
  • the analysis interface includes an analysis data area for displaying information about the target spectrum data and the at least one reference spectrum data. analyze data.
  • the method further includes:
  • the target amplitude is displayed in the analysis data area.
  • the target amplitude corresponding to the target frequency is displayed in digital form by displaying the target amplitude in the analysis data area, which improves the intuitiveness of the analysis result.
  • the acquiring at least one reference spectrum data includes:
  • the at least one reference frequency spectrum data is acquired in response to a user's operation on the audio data analysis interface.
  • an embodiment of the present invention also provides an audio data analysis device, including:
  • An obtaining device which is used to obtain target audio data and at least one reference spectrum data
  • a data conversion module for converting the target audio data into target spectrum data
  • the display module is configured to display the analysis result of the target spectrum data and the at least one reference spectrum data on the analysis interface.
  • the audio data analysis device converts the target audio data into target spectrum data after acquiring it, and displays the analysis results of the target spectrum data and the reference spectrum data on the same analysis interface, which can obtain intuitive analysis As a result, subsequent professionals' analysis of the data is avoided, and the application range of the electronic device for performing the audio data analysis method is greatly increased.
  • an embodiment of the present invention provides an electronic device, including: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory is stored with computer instructions, and the processor By executing the computer instruction, the audio data analysis method described in the first aspect or any one of the implementations of the first aspect is executed.
  • an embodiment of the present invention provides a computer-readable storage medium that stores computer instructions for causing the computer to execute the first aspect or any of the first aspects.
  • Fig. 1 is a flowchart of an audio data analysis method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of an audio data analysis method according to an embodiment of the present invention.
  • Fig. 3 is a flowchart of an audio data analysis method according to an embodiment of the present invention.
  • Fig. 4 is a schematic diagram of an analysis interface according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of an audio data analysis device according to an embodiment of the present invention.
  • Fig. 6 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.
  • the audio data analysis method described in the embodiment of the present invention is applied to electronic devices, such as mobile phones, tablet computers, and so on. Use the processor that comes with the mobile phone or tablet to analyze the audio data, without the need for a separate device to analyze it.
  • the analysis results can also be displayed on the display of a mobile phone or tablet computer. Therefore, when the data analysis method described in the embodiment of the present invention is applied to a mobile phone or tablet computer, the mobile phone or tablet computer runs the audio data analysis method, and the audio data analysis method can be installed on the mobile phone or
  • the application in the tablet computer can also be implemented in other ways, and so on.
  • the protection scope of the present invention is not limited to this, and the audio data analysis method can also be applied to other electronic devices.
  • an embodiment of an audio data analysis method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, although The logical sequence is shown in the flowchart, but in some cases, the steps shown or described may be performed in a different order than here.
  • FIG. 1 is a flowchart of an audio data analysis method according to an embodiment of the present invention, as shown in FIG. , The process includes the following steps:
  • S11 Acquire target audio data and at least one reference spectrum data.
  • the target audio data can be collected by an audio collection device integrated in the electronic device, or can be collected by other audio collection devices and sent to the electronic device, etc. There is no restriction on the source of the target audio data.
  • the reference spectrum data may be preset spectrum data, or may be historical spectrum data stored in the electronic device. For example, at time t1 the electronic device obtains the first target audio data and performs S12 processing to obtain the first target audio data, and at time t2 the electronic device obtains the second target audio data, then the first spectrum data obtained at time t1 is At time t2, it is historical spectrum data, and the historical spectrum data can be used as reference spectrum data at time t2. There are no restrictions on the source of the reference spectrum data here, and the corresponding settings can be made according to the actual situation.
  • the target spectrum data generated by the currently measured target audio data will be automatically saved, and then you can select this data as the historical data and perform a comparative analysis with the target audio data being measured.
  • the automatically saved data will only retain the latest 3, redundant
  • the data will be automatically deleted by the system; in addition, the data can be saved manually.
  • the manually saved data will not be automatically cleaned up unless the user manually deletes it.
  • the manually saved data can also be used as historical spectrum data for comparison with the current target spectrum data.
  • the electronic device After the electronic device obtains the target audio data in S11, it performs spectrum analysis on it to obtain the target spectrum data; for example, Fourier transform may be used, or the target spectrum data may be obtained through other transformations. This step will be described in detail below.
  • S13 Display an analysis result of the target spectrum data and at least one reference spectrum data on the analysis interface.
  • the electronic device After the electronic device obtains the target spectrum data in S12, it compares and analyzes the target spectrum data with at least one reference spectrum data obtained in S11.
  • the target spectrum data and at least one reference spectrum data can be displayed in the same coordinate system at the same time.
  • the analysis result can also be embodied in the form of data, for example, the statistical analysis value (such as variance, standard deviation, etc.) between the target spectrum data and at least one reference spectrum data can be displayed.
  • the electronic device displays the analysis result of the target spectrum data and at least one reference spectrum data on the same analysis interface.
  • the audio data analysis method provided in this embodiment converts the target audio data into target spectrum data after acquiring it, and displays the analysis results of the target spectrum data and the reference spectrum data on the same analysis interface, so that intuitive analysis results can be obtained This avoids subsequent professionals from analyzing the data, and greatly improves the application range of the electronic device that executes the audio data analysis method.
  • FIG. 2 is a flowchart of an audio data analysis method according to an embodiment of the present invention, as shown in FIG. The process includes the following steps:
  • S21 Acquire target audio data and at least one reference spectrum data.
  • the method for obtaining at least one reference spectrum data can be implemented by adopting the following steps:
  • An audio data analysis interface is displayed on the electronic device, and a reference spectrum data selection tag is provided on the audio data analysis interface. The user operates the tag to enable the electronic device to obtain at least one reference spectrum data.
  • the user operates the audio data analysis interface displayed on the electronic device. For example, the user selects the comparison tab on the audio data analysis interface to enter the comparison data selection page, and selects the data to be compared. Then return to the previous page and open the data tab to be compared when starting the measurement to display the compared reference spectrum data.
  • the above S22 includes the following steps:
  • S221 Convert the target audio data into target time domain data.
  • the electronic device converts the target audio data obtained in S21 into target time domain data.
  • the target audio data may be sampled to obtain the target time domain data, or other methods may be used to convert the target audio data into target time domain data.
  • S222 Perform frequency weighting processing on the target time domain data to obtain pre-designed target data.
  • the electronic device simulates the human ear's perception of sound to perform frequency weighting processing on the target time-domain data according to different standards.
  • the pre-design weights include A weighting, B weighting, C weighting, and Z weighting.
  • the frequency weighting process is to filter and process the target time-domain data with fast and slow gears (divided into fast gears, slow gears and pulse gears) so that the user can observe the changes of the target data. Therefore, after the electronic device performs spectrum weighting processing on the target time-domain data, the obtained target data corresponds to the pre-designed weight one-to-one. For example, the target data corresponding to A weighting, the target data corresponding to B weighting, the target data corresponding to C weighting, and the target data corresponding to Z weighting are obtained.
  • S223 Perform spectrum processing on the target data of the pre-design right to obtain target spectrum data.
  • the electronic device then performs Fourier analysis on the target data of the pre-design right to obtain spectrum data.
  • the foregoing S22 further includes the following steps:
  • the preset octave parameter acquired by the electronic device may be stored in the electronic device in advance, or may be acquired by the electronic device by means of human-computer interaction. There is no restriction on the way the electronic device obtains the preset octave parameter, and it only needs to ensure that the electronic device can obtain the preset octave parameter.
  • the octave parameter can be understood as dividing the audio frequency range from 20 Hz to 20 KHz into several frequency bands, and each frequency band is called a frequency band.
  • f 2 /f 1 2 n
  • f 2 is the upper limit frequency of the audio frequency range
  • f 1 is the lower limit frequency of the audio frequency range
  • the index n is n octave.
  • the preset octave parameters can be 1, 1/3, 1/6, 1/12, etc., which can be set accordingly according to actual conditions.
  • the electronic device processes the target spectrum data to obtain the target octave data corresponding to the preset octave parameter.
  • the target octave data corresponding to the octave parameter of 1 corresponds to the octave parameter of 1/3
  • the target octave data of corresponds to the target octave data with the octave parameter of 1/6 and the target octave data with the octave parameter of 1/12.
  • the target frequency multiplication data of the electronic device is subjected to frequency spectrum processing to obtain the target frequency spectrum data.
  • the electronic device can obtain target spectrum data corresponding to A weighting and an octave parameter of 1, corresponding to A weighting and an octave parameter of 1/3
  • the target spectrum data corresponding to B weighting and the octave parameter is 1, the target spectrum data corresponding to B weighting and the octave parameter is 1/3, and so on.
  • the preset octave parameters to process the target spectrum data to obtain the target octave data corresponding to the preset octave parameters.
  • the target audio data is analyzed from another angle (octave), and the application is expanded. The scope of application of audio data analysis methods.
  • S23 Display an analysis result of the target spectrum data and at least one reference spectrum data on the analysis interface.
  • the audio data analysis method provided by the present embodiment performs frequency weighting processing on the target time domain data obtained from the target audio data to obtain the target data of the pre-design right, and then obtain the target spectrum data corresponding to the pre-design right;
  • the target spectrum data corresponding to the pre-design weight can be compared and analyzed under different pre-design weights when the target spectrum data is compared with the reference spectrum data later, which expands the application range of the audio data analysis method.
  • FIG. 3 is a flowchart of an audio data analysis method according to an embodiment of the present invention, as shown in FIG. , The process includes the following steps:
  • S31 Acquire target audio data and at least one reference spectrum data.
  • S33 Display an analysis result of the target spectrum data and at least one reference spectrum data on the analysis interface.
  • Figure 4 shows a specific example of the analysis interface.
  • the analysis interface includes a label of pre-design rights, a label of preset octave bands, and an analysis result area; wherein, the analysis result area is used to display the pre-design rights and the analysis result area.
  • the analysis result of the preset octave is used to display the pre-design rights and the analysis result area.
  • the analysis result area includes an analysis graph area
  • the above S33 includes the following steps:
  • S331 Respond to operations on the label of the pre-design weight and the label of the preset octave on the analysis interface to obtain the target weight and the target octave.
  • the electronic device provides an analysis interface as shown in FIG. 4, and the user operates the label of the pre-designed right and the label of the preset octave on the analysis interface, so that the electronic device can obtain the target weight and the target octave.
  • the pre-design weight selected by the user on the analysis interface is A weighting, and the preset octave is 1/3.
  • S332 Extract target spectrum data and at least one reference spectrum data corresponding to the target weighting and target octave.
  • the electronic device Since the electronic device has obtained the target spectrum data corresponding to the pre-designed weight and the preset octave in the above S32, the electronic device can extract the target weighting and the target octave by using the target weighting and target octave obtained in S331. And the target spectrum data corresponding to the target octave.
  • the electronic device can also extract at least one reference spectrum data corresponding to the target weighting and target octave.
  • S333 Display the extracted target spectrum data and at least one reference spectrum data in the analysis graph area.
  • the extracted target spectrum data and at least one reference spectrum data correspond to the identifier in a one-to-one correspondence.
  • the electronic device After the electronic device extracts the target spectrum data and at least one reference spectrum data, it needs to graphically display the above data in the same analysis graph area.
  • the reference spectrum data is represented by curves of different colors, and the target spectrum data is represented by a bar graph.
  • the analysis interface includes an analysis data area for displaying analysis data of the target spectrum data and the at least one reference spectrum data.
  • the above S33 also includes:
  • the user After the electronic device analyzes the graphic area to graphically display the target spectrum data and at least one reference spectrum data, the user operates on the analysis interface to determine the target frequency.
  • the target frequency determined by the user on the analysis interface is 1KHz.
  • the electronic device After determining the target frequency, the electronic device extracts the target amplitude corresponding to the target frequency from the target spectrum data and at least one reference spectrum data.
  • the target amplitude corresponding to the target frequency is displayed in the form of numbers, which improves the intuitiveness of the analysis results.
  • the electronic device After the electronic device extracts the target spectrum data and at least one reference spectrum data, it performs secondary processing on the data; recalculates the spectrum data (X a , Y b ) according to the display resolution and spectrum data of the electronic device.
  • the coordinate position (X m , Y n ) on the screen is saved in the electronic device; the electronic device displays the corresponding curve on the screen according to the newly calculated (X m , Y n ); the electronic device is responding to the user's analysis
  • the coordinate (X u , Y v ) point on the electronic device is reversed according to the touch point coordinates obtained by the touch; then the electronic device finds the nearest (X m , Y n ) according to the (X u , Y v) coordinates
  • Which coordinate is, if it is multiple sets of data, find and record all Y n coordinates on the same X m axis; according to the found (X m , Y n ) coordinate array
  • the electronic device obtains all the y-axis data corresponding to the x-axis according to the x-axis coordinates.
  • a yellow indicator line is displayed on the interface to indicate the x-axis.
  • the y-axis data of the yellow line path is the data for comparison. And displayed by color at the top of the chart. That is, it is displayed in the analysis data area.
  • the corresponding color in the analysis graph area is used to represent different data; subsequent users can use the difference in color to compare the data in the analysis data area with the graph in the analysis graph area. Correspondence, thus ensuring the intuitiveness of the analysis results.
  • the analysis interface is divided into a pre-design right label, a preset octave label, and an analysis result area to ensure that the analysis result is displayed corresponding to the pre-design right and the preset octave band. , Making the display result more intuitive; by displaying the extracted target spectrum data and at least one reference spectrum data in the analysis graph area, and using different identifiers to distinguish, to prevent the mutual influence between different spectrum data, making the display result intuitive sex.
  • an audio data analysis device is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementations, and those that have been described will not be repeated.
  • the term "module” can implement a combination of software and/or hardware with predetermined functions.
  • the devices described in the following embodiments are preferably implemented by software, implementation by hardware or a combination of software and hardware is also possible and conceived.
  • This embodiment provides an audio data analysis device, as shown in FIG. 5, including:
  • the obtaining module 41 is configured to obtain target audio data and at least one reference spectrum data
  • the data conversion module 42 is configured to convert the target audio data into target spectrum data
  • the display module 43 is configured to display the analysis result of the target spectrum data and the at least one reference spectrum data on the analysis interface.
  • the audio data analysis device converts the target audio data into target spectrum data after acquiring it, and displays the analysis results of the target spectrum data and the reference spectrum data on the same analysis interface, which can obtain intuitive analysis results This avoids subsequent professionals from analyzing the data, and greatly improves the application range of the electronic device that executes the audio data analysis method.
  • the audio data analysis device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and/or other devices that can provide the above-mentioned functions Device.
  • An embodiment of the present invention also provides an electronic device having the audio data analysis device shown in FIG. 5 above.
  • FIG. 6 is a schematic structural diagram of a terminal provided by an optional embodiment of the present invention.
  • the terminal may include: at least one processor 51, such as a CPU (Central Processing Unit) ), at least one communication interface 53, memory 54, at least one communication bus 52.
  • the communication bus 52 is used to implement connection and communication between these components.
  • the communication interface 53 may include a display (Display) and a keyboard (Keyboard), and the optional communication interface 53 may also include a standard wired interface and a wireless interface.
  • the memory 54 may be a high-speed RAM memory (Random Access Memory, volatile random access memory), or a non-volatile memory (non-volatile memory), such as at least one disk memory.
  • the memory 54 may also be at least one storage device located far away from the aforementioned processor 51.
  • the processor 51 may be combined with the device described in FIG. 6, the memory 54 stores an application program, and the processor 51 calls the program code stored in the memory 54 to execute any of the above method steps.
  • the communication bus 52 may be a peripheral component interconnection standard (peripheral component interconnect, PCI for short) bus or an extended industry standard architecture (EISA for short) bus, etc.
  • the communication bus 52 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in FIG. 6, but it does not mean that there is only one bus or one type of bus.
  • the memory 54 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviation: RAM); the memory may also include a non-volatile memory (English: non-volatile memory).
  • memory such as flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid-state hard disk (English: solid-state drive, abbreviation: SSD); memory 54 may also include the above types The combination of memory.
  • the processor 51 may be a central processing unit (English: central processing unit, abbreviation: CPU), a network processor (English: network processor, abbreviation: NP), or a combination of CPU and NP.
  • CPU central processing unit
  • NP network processor
  • the processor 51 may further include a hardware chip.
  • the aforementioned hardware chip may be an application-specific integrated circuit (English: application-specific integrated circuit, abbreviation: ASIC), a programmable logic device (English: programmable logic device, abbreviation: PLD) or a combination thereof.
  • the above-mentioned PLD can be a complex programmable logic device (English: complex programmable logic device, abbreviation: CPLD), field programmable logic gate array (English: field-programmable gate array, abbreviation: FPGA), general array logic (English: generic array) logic, abbreviation: GAL) or any combination thereof.
  • the memory 54 is also used to store program instructions.
  • the processor 51 can call program instructions to implement the audio data analysis method as shown in the embodiments of FIGS. 1 to 3 of this application.
  • the embodiment of the present invention also provides a non-transitory computer storage medium, the computer storage medium stores computer-executable instructions, and the computer-executable instructions can execute the audio data analysis method in any of the foregoing method embodiments.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviation: HDD) or solid-state drive (Solid-State Drive, SSD), etc.; the storage medium may also include a combination of the foregoing types of memories.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Computational Linguistics (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Auxiliary Devices For Music (AREA)
  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)

Abstract

An audio data analysis method, an electronic device, and a storage medium. The method comprises: obtaining target audio data and at least one reference spectrum data (S11); converting the target audio data into target spectrum data (S12); and displaying analysis results of the target spectrum data and the at least one reference spectrum data on an analysis interface (S13). According to the audio data analysis method, the target audio data is converted into the target spectrum data after the target audio data is obtained, and the analysis results of the target spectrum data and the reference spectrum data are displayed on the same analysis interface, so that visual analysis results can be obtained, subsequent analysis of data by professionals is avoided, and the application range of the electronic device for executing the audio data analysis method is greatly expanded.

Description

音频数据分析方法、电子设备及存储介质Audio data analysis method, electronic equipment and storage medium 技术领域Technical field
本发明涉及音频处理技术领域,具体涉及音频数据分析方法、电子设备及存储介质。The present invention relates to the technical field of audio processing, in particular to an audio data analysis method, electronic equipment and storage medium.
背景技术Background technique
现有对于音频数据的分析一般都是专业人士利用专业仪器,即声学测试系统对音频数据进行分析。对于声学测试系统而言,一般是需要了解一定专业知识才能使用,最常用的声学测试系统是单通道手持测试仪器,且大部分的场景需要作为计量仪器使用,其广泛应用在环保测试,轨道交通,家电产品,军工,航空航天等领域。The existing analysis of audio data generally involves professionals using professional instruments, that is, an acoustic test system to analyze audio data. For acoustic test systems, it is generally necessary to understand certain professional knowledge before they can be used. The most commonly used acoustic test system is a single-channel handheld test instrument, and most of the scenes need to be used as measuring instruments. It is widely used in environmental testing, rail transit , Home appliances, military industry, aerospace and other fields.
但是,对于现有的声学测试系统而言,其测试结果一般是用总声级计读数表示,若想得到测试结果的详细分析结果,还需要专业人员运用专业知识进行分析。然而,这就限制了现有声学测试系统的应用范围。However, for the existing acoustic test system, the test results are generally expressed by the total sound level meter readings. If you want to get the detailed analysis results of the test results, you also need professionals to use professional knowledge for analysis. However, this limits the scope of application of existing acoustic test systems.
发明内容Summary of the invention
有鉴于此,本发明实施例提供了一种音频数据分析方法、电子设备及存储介质,以解决现有声学测试系统的应用范围较窄的问题。In view of this, the embodiments of the present invention provide an audio data analysis method, electronic equipment, and storage medium to solve the problem of a narrow application range of the existing acoustic test system.
根据第一方面,本发明实施例提供了一种音频数据分析方法,包括:According to the first aspect, an embodiment of the present invention provides an audio data analysis method, including:
获取目标音频数据以及至少一个参考频谱数据;Acquiring target audio data and at least one reference spectrum data;
将所述目标音频数据转换为目标频谱数据;Converting the target audio data into target spectrum data;
在分析界面显示所述目标频谱数据与所述至少一个参考频谱数据的分析结果。An analysis result of the target spectrum data and the at least one reference spectrum data is displayed on the analysis interface.
本发明实施例提供的音频数据分析方法,在获取到目标音频数据之后将其转换为目标频谱数据,并在同一个分析界面上显示目标频谱数据与参考频谱数据的分析结果,能够得到直观的分析结果而避免了后续专业人员对数据的分析,极大地提高了执行该音频数据分析方法的电子设备应用范围。The audio data analysis method provided by the embodiment of the present invention converts the target audio data into target spectrum data after acquiring the target audio data, and displays the analysis results of the target spectrum data and the reference spectrum data on the same analysis interface, which can obtain intuitive analysis As a result, subsequent professionals' analysis of the data is avoided, and the application range of the electronic device for performing the audio data analysis method is greatly increased.
结合第一方面,在第一方面第一实施方式中,所述将所述目标音频数据转 换为目标频谱数据,包括:With reference to the first aspect, in the first implementation manner of the first aspect, the converting the target audio data into target spectrum data includes:
将所述目标音频数据转换为目标时域数据;Converting the target audio data into target time domain data;
对所述目标时域数据进行频率计权处理,以得到预设计权的目标数据;Perform frequency weighting processing on the target time domain data to obtain pre-designed target data;
对所述预设计权的目标数据进行频谱处理,得到所述目标频谱数据。Perform spectrum processing on the target data of the pre-design right to obtain the target spectrum data.
本发明实施例提供的音频数据分析方法,通过对由目标音频数据得到的目标时域数据进行频率计权处理,得到预设计权的目标数据,进而得到与预设计权对应的目标频谱数据;由于得到与预设计权对应的目标频谱数据,后续在将目标频谱数据与参考频谱数据进行比较时,就可以进行不同预设计权下的比较分析,扩大了应用该音频数据分析方法的应用范围。The audio data analysis method provided by the embodiment of the present invention performs frequency weighting processing on the target time domain data obtained from the target audio data to obtain the target data of the pre-design right, and then obtain the target spectrum data corresponding to the pre-design right; The target spectrum data corresponding to the pre-design weight is obtained. When the target spectrum data is compared with the reference spectrum data later, a comparative analysis under different pre-design weights can be performed, which expands the application range of the audio data analysis method.
结合第一方面第一实施方式,在第一方面第二实施方式中,所述将所述目标音频数据转换为目标频谱数据,还包括:With reference to the first implementation manner of the first aspect, in the second implementation manner of the first aspect, said converting the target audio data into target spectrum data further includes:
获取预设倍频程参数;Obtain preset octave parameters;
利用所述预设倍频程参数,对所述目标频谱数据进行处理得到与所述预设倍频程参数对应的目标倍频数据;Using the preset octave parameter to process the target spectrum data to obtain target octave data corresponding to the preset octave parameter;
对所述预设倍频程参数对应的目标倍频数据进行频谱处理,得到所述目标频谱数据。Perform spectrum processing on the target octave data corresponding to the preset octave parameter to obtain the target spectrum data.
本发明实施例提供的音频数据分析方法,利用预设倍频程参数对目标频谱数据进行处理,得到与预设倍频程参数对应的目标倍频数据,从另一个角度(倍频程)对目标音频数据进行了分析,扩大了应用该音频数据分析方法的应用范围。The audio data analysis method provided by the embodiment of the present invention uses preset octave parameters to process target frequency spectrum data to obtain target octave data corresponding to the preset octave parameters, and compare it from another angle (octave) The target audio data is analyzed, which expands the application range of the audio data analysis method.
结合第一方面第二实施方式,在第一方面第三实施方式中,所述分析界面包括:所述预设计权的标签、所述预设倍频程的标签以及分析结果区域;其中,所述分析结果区域用于显示对应于所述预设计权以及所述预设倍频程的分析结果。With reference to the second implementation manner of the first aspect, in the third implementation manner of the first aspect, the analysis interface includes: the label of the pre-design right, the label of the preset octave, and the analysis result area; The analysis result area is used to display the analysis result corresponding to the pre-design weight and the preset octave band.
本发明实施例提供的音频数据分析方法,将分析界面分为预设计权的标签、预设倍频程的标签以及分析结果区域,以保证分析结果与预设计权以及预设倍频程的对应显示,使得显示结果较为直观。In the audio data analysis method provided by the embodiment of the present invention, the analysis interface is divided into a pre-design right label, a preset octave label, and an analysis result area to ensure that the analysis result corresponds to the pre-design right and the preset octave band. Display, making the display result more intuitive.
结合第一方面第三实施方式,在第一方面第四实施方式中,所述分析结果 区域包括分析图形区域;其中,所述在分析界面显示所述目标频谱数据与所述至少一个参考频谱数据的分析结果,包括:With reference to the third implementation manner of the first aspect, in the fourth implementation manner of the first aspect, the analysis result area includes an analysis graph area; wherein, the target spectrum data and the at least one reference spectrum data are displayed on the analysis interface The analysis results include:
响应于用户在所述分析界面对所述预设计权的标签以及所述预设倍频程的标签的操作,以获取目标计权以及目标倍频程;Responding to the user's operation of the label of the pre-designed weight and the label of the preset octave on the analysis interface to obtain the target weight and the target octave;
提取对应于所述目标计权以及所述目标倍频程的目标频谱数据以及所述至少一个参考频谱数据;Extracting target spectrum data corresponding to the target weighting and the target octave and the at least one reference spectrum data;
在所述分析图形区域显示提取出的所述目标频谱数据以及所述至少一个参考频谱数据;其中,提取出的所述目标频谱数据以及所述至少一个参考频谱数据与标识一一对应。The extracted target frequency spectrum data and the at least one reference frequency spectrum data are displayed in the analysis graph area; wherein the extracted target frequency spectrum data and the at least one reference frequency spectrum data correspond to an identifier in a one-to-one correspondence.
本发明实施例提供的音频数据分析方法,通过在分析图形区域显示提取出的目标频谱数据以及至少一个参考频谱数据,且采用不同的标识进行区分,以防止不同频谱数据之间的相互影响,使得显示结果的直观性。The audio data analysis method provided by the embodiment of the present invention displays the extracted target spectrum data and at least one reference spectrum data in the analysis graph area, and uses different identifiers to distinguish, so as to prevent the mutual influence between different spectrum data, so that The intuitiveness of the displayed results.
结合第一方面,或第一方面第三实施方式,在第一方面第五实施方式中,所述分析界面包括分析数据区域,用于显示所述目标频谱数据与所述至少一个参考频谱数据的分析数据。With reference to the first aspect, or the third implementation manner of the first aspect, in the fifth implementation manner of the first aspect, the analysis interface includes an analysis data area for displaying information about the target spectrum data and the at least one reference spectrum data. analyze data.
结合第一方面第五实施方式,在第一方面第六实施方式中,所述方法还包括:With reference to the fifth implementation manner of the first aspect, in the sixth implementation manner of the first aspect, the method further includes:
响应于用户在所述分析界面的操作,以确定目标频率;In response to the user's operation on the analysis interface, to determine the target frequency;
提取所述目标频谱数据与所述至少一个参考频谱数据中对应于所述目标频率的目标幅值;Extracting a target amplitude corresponding to the target frequency in the target spectrum data and the at least one reference spectrum data;
在所述分析数据区域显示所述目标幅值。The target amplitude is displayed in the analysis data area.
本发明实施例提供的音频数据分析方法,通过在分析数据区域显示目标幅值,将对应于目标频率的目标幅值采用数字的形式进行显示,提高了分析结果的直观性。In the audio data analysis method provided by the embodiment of the present invention, the target amplitude corresponding to the target frequency is displayed in digital form by displaying the target amplitude in the analysis data area, which improves the intuitiveness of the analysis result.
结合第一方面,在第一方面第七实施方式中,所述获取至少一个参考频谱数据包括:With reference to the first aspect, in a seventh implementation manner of the first aspect, the acquiring at least one reference spectrum data includes:
显示音频数据分析界面;Display audio data analysis interface;
响应于用户对所述音频数据分析界面的操作以获取所述至少一个参考频谱 数据。The at least one reference frequency spectrum data is acquired in response to a user's operation on the audio data analysis interface.
根据第二方面,本发明实施例还提供了一种音频数据分析装置,包括:According to the second aspect, an embodiment of the present invention also provides an audio data analysis device, including:
获取装置,用于获取目标音频数据以及至少一个参考频谱数据;An obtaining device, which is used to obtain target audio data and at least one reference spectrum data;
数据转换模块,用于将所述目标音频数据转换为目标频谱数据;A data conversion module for converting the target audio data into target spectrum data;
显示模块,用于在分析界面显示所述目标频谱数据与所述至少一个参考频谱数据的分析结果。The display module is configured to display the analysis result of the target spectrum data and the at least one reference spectrum data on the analysis interface.
本发明实施例提供的音频数据分析装置,在获取到目标音频数据之后将其转换为目标频谱数据,并在同一个分析界面上显示目标频谱数据与参考频谱数据的分析结果,能够得到直观的分析结果而避免了后续专业人员对数据的分析,极大地提高了执行该音频数据分析方法的电子设备应用范围。The audio data analysis device provided by the embodiment of the present invention converts the target audio data into target spectrum data after acquiring it, and displays the analysis results of the target spectrum data and the reference spectrum data on the same analysis interface, which can obtain intuitive analysis As a result, subsequent professionals' analysis of the data is avoided, and the application range of the electronic device for performing the audio data analysis method is greatly increased.
根据第三方面,本发明实施例提供了一种电子设备,包括:存储器和处理器,所述存储器和所述处理器之间互相通信连接,所述存储器中存储有计算机指令,所述处理器通过执行所述计算机指令,从而执行第一方面或者第一方面的任意一种实施方式中所述的音频数据分析方法。According to a third aspect, an embodiment of the present invention provides an electronic device, including: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory is stored with computer instructions, and the processor By executing the computer instruction, the audio data analysis method described in the first aspect or any one of the implementations of the first aspect is executed.
根据第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行第一方面或者第一方面的任意一种实施方式中所述的音频数据分析方法。According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium that stores computer instructions for causing the computer to execute the first aspect or any of the first aspects. An audio data analysis method described in an implementation manner.
附图说明Description of the drawings
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the specific embodiments or the description of the prior art. Obviously, the appendix in the following description The drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1是根据本发明实施例的音频数据分析方法的流程图;Fig. 1 is a flowchart of an audio data analysis method according to an embodiment of the present invention;
图2是根据本发明实施例的音频数据分析方法的流程图;Figure 2 is a flowchart of an audio data analysis method according to an embodiment of the present invention;
图3是根据本发明实施例的音频数据分析方法的流程图;Fig. 3 is a flowchart of an audio data analysis method according to an embodiment of the present invention;
图4是根据本发明实施例的分析界面的示意图;Fig. 4 is a schematic diagram of an analysis interface according to an embodiment of the present invention;
图5是根据本发明实施例的音频数据分析装置的结构框图;Figure 5 is a structural block diagram of an audio data analysis device according to an embodiment of the present invention;
图6是本发明实施例提供的电子设备的硬件结构示意图。Fig. 6 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the protection scope of the present invention.
需要说明的是,本发明实施例中所述的音频数据分析方法应用在电子设备中,例如手机、平板电脑等等。利用手机或平板电脑自带的处理器进行音频数据的分析,而并不需要单独的设备对其进行分析。当然,分析结果也可以利用手机或平板电脑的显示器进行显示。因此,当本发明实施例中所述的数据分析方法应用在手机或平板电脑中时,手机或平板电脑中运行有所述的音频数据分析方法,该音频数据分析方法可以是通过安装在手机或平板电脑中的应用程序实现的,也可以是通过其他方式实现等等。但是,本发明的保护范围并不限于此,所述的音频数据分析方法还可以应用在其他电子设备中。It should be noted that the audio data analysis method described in the embodiment of the present invention is applied to electronic devices, such as mobile phones, tablet computers, and so on. Use the processor that comes with the mobile phone or tablet to analyze the audio data, without the need for a separate device to analyze it. Of course, the analysis results can also be displayed on the display of a mobile phone or tablet computer. Therefore, when the data analysis method described in the embodiment of the present invention is applied to a mobile phone or tablet computer, the mobile phone or tablet computer runs the audio data analysis method, and the audio data analysis method can be installed on the mobile phone or The application in the tablet computer can also be implemented in other ways, and so on. However, the protection scope of the present invention is not limited to this, and the audio data analysis method can also be applied to other electronic devices.
根据本发明实施例,提供了一种音频数据分析方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present invention, an embodiment of an audio data analysis method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, although The logical sequence is shown in the flowchart, but in some cases, the steps shown or described may be performed in a different order than here.
在本实施例中提供了一种音频数据分析方法,可用于上述的电子设备,如手机、平板电脑等,图1是根据本发明实施例的音频数据分析方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, an audio data analysis method is provided, which can be used in the above-mentioned electronic devices, such as mobile phones, tablet computers, etc. FIG. 1 is a flowchart of an audio data analysis method according to an embodiment of the present invention, as shown in FIG. , The process includes the following steps:
S11,获取目标音频数据以及至少一个参考频谱数据。S11: Acquire target audio data and at least one reference spectrum data.
目标音频数据可以利用集成在电子设备中的音频采集装置采集得到,也可以是其他音频采集装置采集得到发送至电子设备中的等等,在此对目标音频数据的来源并不做任何限制。The target audio data can be collected by an audio collection device integrated in the electronic device, or can be collected by other audio collection devices and sent to the electronic device, etc. There is no restriction on the source of the target audio data.
参考频谱数据可以是预设的频谱数据,也可以是电子设备中存储的历史频谱数据。例如,在时刻t1电子设备得到第一目标音频数据对其进行S12的处理 后的得到目第一频谱数据,在时刻t2电子设备得到第二目标音频数据,那么t1时刻得到的第一频谱数据对于t2时刻而言,其为历史频谱数据,该历史频谱数据可以作为t2时刻的参考频谱数据。在此对参考频谱数据的来源并不做任何限制,可以根据实际情况进行相应的设置。The reference spectrum data may be preset spectrum data, or may be historical spectrum data stored in the electronic device. For example, at time t1 the electronic device obtains the first target audio data and performs S12 processing to obtain the first target audio data, and at time t2 the electronic device obtains the second target audio data, then the first spectrum data obtained at time t1 is At time t2, it is historical spectrum data, and the historical spectrum data can be used as reference spectrum data at time t2. There are no restrictions on the source of the reference spectrum data here, and the corresponding settings can be made according to the actual situation.
例如,当前测量的目标音频数据生成的目标频谱数据会自动保存下来,之后可以选择该数据作为历史数据和正在测量的目标音频数据做一个比较分析,自动保存的数据只保留最新的3个,多余的会被系统自动删除;另外可以手动保存数据,手动保存的数据除非用户手动删除不会自动清理,手动保存的数据也可以作为历史频谱数据和当前目标频谱数据做比较。For example, the target spectrum data generated by the currently measured target audio data will be automatically saved, and then you can select this data as the historical data and perform a comparative analysis with the target audio data being measured. The automatically saved data will only retain the latest 3, redundant The data will be automatically deleted by the system; in addition, the data can be saved manually. The manually saved data will not be automatically cleaned up unless the user manually deletes it. The manually saved data can also be used as historical spectrum data for comparison with the current target spectrum data.
S12,将目标音频数据转换为目标频谱数据。S12: Convert the target audio data into target spectrum data.
电子设备在S11中获取到目标音频数据之后,对其进行频谱分析得到目标频谱数据;例如,可以采用傅里叶变换,也可以通过其他变换得到目标频谱数据等等。具体将在下文中对该步骤进行详细描述。After the electronic device obtains the target audio data in S11, it performs spectrum analysis on it to obtain the target spectrum data; for example, Fourier transform may be used, or the target spectrum data may be obtained through other transformations. This step will be described in detail below.
S13,在分析界面显示目标频谱数据与至少一个参考频谱数据的分析结果。S13: Display an analysis result of the target spectrum data and at least one reference spectrum data on the analysis interface.
电子设备在S12中得到目标频谱数据之后,将目标频谱数据与S11中获得的至少一个参考频谱数据进行对比分析,例如,可以在同一个坐标系下,同时显示目标频谱数据以及至少一个参考频谱数据,以实现分析结果的直观显示;也可以采用数据的形式体现分析结果,例如,可以显示目标频谱数据与至少一个参考频谱数据之间的统计分析值(如,方差、标准差等等)。在此对分析结果的形式并不做任何限制,只需保证电子设备在同一个分析界面显示目标频谱数据与至少一个参考频谱数据的分析结果。After the electronic device obtains the target spectrum data in S12, it compares and analyzes the target spectrum data with at least one reference spectrum data obtained in S11. For example, the target spectrum data and at least one reference spectrum data can be displayed in the same coordinate system at the same time. , In order to realize the intuitive display of the analysis result; the analysis result can also be embodied in the form of data, for example, the statistical analysis value (such as variance, standard deviation, etc.) between the target spectrum data and at least one reference spectrum data can be displayed. There is no restriction on the form of the analysis result, and it is only necessary to ensure that the electronic device displays the analysis result of the target spectrum data and at least one reference spectrum data on the same analysis interface.
本实施例提供的音频数据分析方法,在获取到目标音频数据之后将其转换为目标频谱数据,并在同一个分析界面上显示目标频谱数据与参考频谱数据的分析结果,能够得到直观的分析结果而避免了后续专业人员对数据的分析,极大地提高了执行该音频数据分析方法的电子设备应用范围。The audio data analysis method provided in this embodiment converts the target audio data into target spectrum data after acquiring it, and displays the analysis results of the target spectrum data and the reference spectrum data on the same analysis interface, so that intuitive analysis results can be obtained This avoids subsequent professionals from analyzing the data, and greatly improves the application range of the electronic device that executes the audio data analysis method.
在本实施例中提供了一种音频数据分析方法,可用于电子设备,如手机、平板电脑等,图2是根据本发明实施例的音频数据分析方法的流程图,如图2所示,该流程包括如下步骤:In this embodiment, an audio data analysis method is provided, which can be used in electronic devices, such as mobile phones, tablet computers, etc. FIG. 2 is a flowchart of an audio data analysis method according to an embodiment of the present invention, as shown in FIG. The process includes the following steps:
S21,获取目标音频数据以及至少一个参考频谱数据。S21: Acquire target audio data and at least one reference spectrum data.
其中,关于目标音频数据的获取请参见图1所示实施例的S11中关于目标音频数据的获取方式,在此并不做任何限制。For the acquisition of the target audio data, please refer to the method for acquiring the target audio data in S11 of the embodiment shown in FIG. 1, and there is no limitation here.
关于获取至少一个参考频谱数据的方式可以采用如下步骤实现:The method for obtaining at least one reference spectrum data can be implemented by adopting the following steps:
(1)显示音频数据分析界面;(1) Display the audio data analysis interface;
电子设备上显示有音频数据分析界面,该音频数据分析界面上提供有参考频谱数据选取标签,用户通过对该标签进行操作使得电子设备能够获取到至少一个参考频谱数据。An audio data analysis interface is displayed on the electronic device, and a reference spectrum data selection tag is provided on the audio data analysis interface. The user operates the tag to enable the electronic device to obtain at least one reference spectrum data.
(2)响应于用户对音频数据分析界面的操作以获取所述至少一个参考频谱数据。(2) Acquire the at least one reference spectrum data in response to a user's operation on the audio data analysis interface.
用户通过对电子设备上所显示的音频数据分析界面进行操作,例如,用户在音频数据分析界面选择比较标签进入比较数据选择页面,选择需要比较的数据。然后返回上一页,在开始测量时打开需要比较的数据标签即可显示比较的参考频谱数据。The user operates the audio data analysis interface displayed on the electronic device. For example, the user selects the comparison tab on the audio data analysis interface to enter the comparison data selection page, and selects the data to be compared. Then return to the previous page and open the data tab to be compared when starting the measurement to display the compared reference spectrum data.
S22,将目标音频数据转换为目标频谱数据。S22: Convert the target audio data into target spectrum data.
具体地,上述S22包括以下步骤:Specifically, the above S22 includes the following steps:
S221,将目标音频数据转换为目标时域数据。S221: Convert the target audio data into target time domain data.
电子设备将S21中所获得的目标音频数据转换为目标时域数据,例如,可以通过对目标音频数据进行采样得到目标时域数据,也可以采用其他方式将目标音频数据转换为目标时域数据。The electronic device converts the target audio data obtained in S21 into target time domain data. For example, the target audio data may be sampled to obtain the target time domain data, or other methods may be used to convert the target audio data into target time domain data.
S222,对目标时域数据进行频率计权处理,以得到预设计权的目标数据。S222: Perform frequency weighting processing on the target time domain data to obtain pre-designed target data.
电子设备按照不同的标准模拟人耳对声音的感知对目标时域数据进行频率计权处理,其中,预设计权包括A计权、B计权、C计权、以及Z计权。The electronic device simulates the human ear's perception of sound to perform frequency weighting processing on the target time-domain data according to different standards. The pre-design weights include A weighting, B weighting, C weighting, and Z weighting.
所述频率计权处理,即对目标时域数据进行滤波和快慢档(分为快档、慢档和脉冲档)处理,以便于用户观察目标数据的变化。因此,电子设备对目标时域数据进行频谱计权处理之后,得到的目标数据与预设计权一一对应。例如,得到对应于A计权的目标数据、对应于B计权的目标数据、对应于C计权的目标数据以及对应于Z计权的目标数据。The frequency weighting process is to filter and process the target time-domain data with fast and slow gears (divided into fast gears, slow gears and pulse gears) so that the user can observe the changes of the target data. Therefore, after the electronic device performs spectrum weighting processing on the target time-domain data, the obtained target data corresponds to the pre-designed weight one-to-one. For example, the target data corresponding to A weighting, the target data corresponding to B weighting, the target data corresponding to C weighting, and the target data corresponding to Z weighting are obtained.
S223,对预设计权的目标数据进行频谱处理,得到目标频谱数据。S223: Perform spectrum processing on the target data of the pre-design right to obtain target spectrum data.
电子设备再对预设计权的目标数据进行傅里叶分析,得到频谱数据。The electronic device then performs Fourier analysis on the target data of the pre-design right to obtain spectrum data.
作为本实施例的一种可选实施方式,上述S22还包括以下步骤:As an optional implementation manner of this embodiment, the foregoing S22 further includes the following steps:
(1)获取预设倍频程参数。(1) Obtain preset octave parameters.
电子设备所获取到的预设倍频程参数可以是事先存储在电子设备中的,也可以是电子设备利用人机交互的方式获得的。在此对电子设备获取预设倍频程参数的方式并不做任何限制,只需保证电子设备能够获取到预设倍频程参数即可。The preset octave parameter acquired by the electronic device may be stored in the electronic device in advance, or may be acquired by the electronic device by means of human-computer interaction. There is no restriction on the way the electronic device obtains the preset octave parameter, and it only needs to ensure that the electronic device can obtain the preset octave parameter.
(2)利用预设倍频程参数,对目标频谱数据进行处理得到与预设倍频程参数对应的目标倍频数据。(2) Using preset octave parameters, process the target spectrum data to obtain target octave data corresponding to the preset octave parameters.
所述的倍频程参数,可以理解为将20Hz到20KHz的声频范围分为几个频带,每个频带称为一个频程。其中,f 2/f 1=2 n,f 2为声频范围的上限频率,f 1为声频范围的下限频率,指数n为n倍频程。 The octave parameter can be understood as dividing the audio frequency range from 20 Hz to 20 KHz into several frequency bands, and each frequency band is called a frequency band. Among them, f 2 /f 1 =2 n , f 2 is the upper limit frequency of the audio frequency range, f 1 is the lower limit frequency of the audio frequency range, and the index n is n octave.
例如,预设倍频程参数可以为1、1/3、1/6以及1/12等等,具体可以根据实际情况进行相应的设置。For example, the preset octave parameters can be 1, 1/3, 1/6, 1/12, etc., which can be set accordingly according to actual conditions.
电子设备对目标频谱数据进行处理后得到与预设倍频程参数对应的目标倍频数据,例如,对应于倍频程参数为1的目标倍频数据,对应于倍频程参数为1/3的目标倍频数据,对应于倍频程参数为1/6的目标倍频数据以及对应于倍频程参数为1/12的目标倍频数据。The electronic device processes the target spectrum data to obtain the target octave data corresponding to the preset octave parameter. For example, the target octave data corresponding to the octave parameter of 1 corresponds to the octave parameter of 1/3 The target octave data of, corresponds to the target octave data with the octave parameter of 1/6 and the target octave data with the octave parameter of 1/12.
(3)对预设倍频程参数对应的目标倍频数据进行频谱处理,得到目标频谱数据。(3) Perform spectrum processing on the target octave data corresponding to the preset octave parameters to obtain target spectrum data.
电子设备目标倍频数据进行频谱处理得到目标频谱数据。The target frequency multiplication data of the electronic device is subjected to frequency spectrum processing to obtain the target frequency spectrum data.
进一步可选地,电子设备通过将频率计权与倍频程结合,就可以得到对应于A计权且倍频程参数为1的目标频谱数据、对应于A计权且倍频程参数为1/3的目标频谱数据、对应于B计权且倍频程参数为1的目标频谱数据、对应于B计权且倍频程参数为1/3的目标频谱数据等等。Further optionally, by combining frequency weighting and octave, the electronic device can obtain target spectrum data corresponding to A weighting and an octave parameter of 1, corresponding to A weighting and an octave parameter of 1/3 The target spectrum data corresponding to B weighting and the octave parameter is 1, the target spectrum data corresponding to B weighting and the octave parameter is 1/3, and so on.
利用预设倍频程参数对目标频谱数据进行处理,得到与预设倍频程参数对应的目标倍频数据,从另一个角度(倍频程)对目标音频数据进行了分析,扩 大了应用该音频数据分析方法的应用范围。Use the preset octave parameters to process the target spectrum data to obtain the target octave data corresponding to the preset octave parameters. The target audio data is analyzed from another angle (octave), and the application is expanded. The scope of application of audio data analysis methods.
S23,在分析界面显示目标频谱数据与至少一个参考频谱数据的分析结果。S23: Display an analysis result of the target spectrum data and at least one reference spectrum data on the analysis interface.
详细请参见图1所示实施例的S13,在此不再赘述。For details, please refer to S13 of the embodiment shown in FIG. 1, which will not be repeated here.
本实施例提供的音频数据分析方法,通过对由目标音频数据得到的目标时域数据进行频率计权处理,得到预设计权的目标数据,进而得到与预设计权对应的目标频谱数据;由于得到与预设计权对应的目标频谱数据,后续在将目标频谱数据与参考频谱数据进行比较时,就可以进行不同预设计权下的比较分析,扩大了应用该音频数据分析方法的应用范围。The audio data analysis method provided by the present embodiment performs frequency weighting processing on the target time domain data obtained from the target audio data to obtain the target data of the pre-design right, and then obtain the target spectrum data corresponding to the pre-design right; The target spectrum data corresponding to the pre-design weight can be compared and analyzed under different pre-design weights when the target spectrum data is compared with the reference spectrum data later, which expands the application range of the audio data analysis method.
在本实施例中提供了一种音频数据分析方法,可用于上述的电子设备,如手机、平板电脑等,图3是根据本发明实施例的音频数据分析方法的流程图,如图3所示,该流程包括如下步骤:In this embodiment, an audio data analysis method is provided, which can be used in the above-mentioned electronic devices, such as mobile phones, tablet computers, etc. FIG. 3 is a flowchart of an audio data analysis method according to an embodiment of the present invention, as shown in FIG. , The process includes the following steps:
S31,获取目标音频数据以及至少一个参考频谱数据。S31: Acquire target audio data and at least one reference spectrum data.
详细请参见图2所示实施例的S21,在此不再赘述。For details, please refer to S21 of the embodiment shown in FIG. 2, which will not be repeated here.
S32,将目标音频数据转换为目标频谱数据。S32: Convert the target audio data into target spectrum data.
详细请参见图2所示实施例的S22,在此不再赘述。For details, please refer to S22 of the embodiment shown in FIG. 2, which will not be repeated here.
S33,在分析界面显示目标频谱数据与至少一个参考频谱数据的分析结果。S33: Display an analysis result of the target spectrum data and at least one reference spectrum data on the analysis interface.
图4示出了分析界面的一个具体实例。如图4所示,所述的分析界面包括预设计权的标签、预设倍频程的标签以及分析结果区域;其中,所述分析结果区域用于显示对应于所述预设计权以及所述预设倍频程的分析结果。Figure 4 shows a specific example of the analysis interface. As shown in FIG. 4, the analysis interface includes a label of pre-design rights, a label of preset octave bands, and an analysis result area; wherein, the analysis result area is used to display the pre-design rights and the analysis result area. The analysis result of the preset octave.
其中,所述分析结果区域包括分析图形区域,上述S33包括如下步骤:Wherein, the analysis result area includes an analysis graph area, and the above S33 includes the following steps:
S331,响应于用于在分析界面上对预设计权的标签以及预设倍频程的标签的操作,以获取目标计权以及目标倍频程。S331: Respond to operations on the label of the pre-design weight and the label of the preset octave on the analysis interface to obtain the target weight and the target octave.
电子设备提供如图4所示的分析界面,用户在分析界面上对预设计权的标签以及预设倍频程的标签的操作,就可以使得电子设备获取到目标计权以及目标倍频程。The electronic device provides an analysis interface as shown in FIG. 4, and the user operates the label of the pre-designed right and the label of the preset octave on the analysis interface, so that the electronic device can obtain the target weight and the target octave.
如图4所示,用户在分析界面上选择的预设计权为A计权,预设倍频程为1/3。As shown in Figure 4, the pre-design weight selected by the user on the analysis interface is A weighting, and the preset octave is 1/3.
S332,提取对应于目标计权以及目标倍频程的目标频谱数据以及至少一个 参考频谱数据。S332: Extract target spectrum data and at least one reference spectrum data corresponding to the target weighting and target octave.
由于电子设备在上述S32中已经得到与预设计权以及预设倍频程对应的目标频谱数据,那么电子设备利用S331中获取到的目标计权以及目标倍频程就可以提取出与目标计权以及目标倍频程对应的目标频谱数据。Since the electronic device has obtained the target spectrum data corresponding to the pre-designed weight and the preset octave in the above S32, the electronic device can extract the target weighting and the target octave by using the target weighting and target octave obtained in S331. And the target spectrum data corresponding to the target octave.
同样地,电子设备也可以提取出与目标计权以及目标倍频程对应的至少一个参考频谱数据。Similarly, the electronic device can also extract at least one reference spectrum data corresponding to the target weighting and target octave.
S333,在分析图形区域显示提取出的目标频谱数据以及至少一个参考频谱数据。S333: Display the extracted target spectrum data and at least one reference spectrum data in the analysis graph area.
其中,提取出的目标频谱数据以及至少一个参考频谱数据与标识一一对应。Wherein, the extracted target spectrum data and at least one reference spectrum data correspond to the identifier in a one-to-one correspondence.
电子设备在提取出目标频谱数据以及至少一个参考频谱数据之后,需要在同一个分析图形区域进行上述数据的图形化显示。After the electronic device extracts the target spectrum data and at least one reference spectrum data, it needs to graphically display the above data in the same analysis graph area.
请参见图4,参考频谱数据采用不同颜色的曲线表示,目标频谱数据采用柱状图表示。Refer to Figure 4, the reference spectrum data is represented by curves of different colors, and the target spectrum data is represented by a bar graph.
作为本实施例的一种可选实施方式,所述分析界面包括分析数据区域,用于显示所述目标频谱数据与所述至少一个参考频谱数据的分析数据。对应地,上述S33还包括:As an optional implementation of this embodiment, the analysis interface includes an analysis data area for displaying analysis data of the target spectrum data and the at least one reference spectrum data. Correspondingly, the above S33 also includes:
(1)响应于用户在分析界面的操作,以确定目标频率。(1) Determine the target frequency in response to the user's operation on the analysis interface.
电子设备在分析图形区域对目标频谱数据以及至少一个参考频谱数据进行图形化显示之后,用户在分析界面上进行操作,确定目标频率。例如,请参见图4,用户在分析界面确定的目标频率为1KHz。After the electronic device analyzes the graphic area to graphically display the target spectrum data and at least one reference spectrum data, the user operates on the analysis interface to determine the target frequency. For example, referring to Figure 4, the target frequency determined by the user on the analysis interface is 1KHz.
(2)提取目标频谱数据与至少一个参考频谱数据中对应于目标频率的目标幅值。(2) Extract the target amplitude corresponding to the target frequency from the target spectrum data and the at least one reference spectrum data.
电子设备在确定出目标频率之后,从目标频谱数据以及至少一个参考频谱数据中提取与该目标频率对应的目标幅值。After determining the target frequency, the electronic device extracts the target amplitude corresponding to the target frequency from the target spectrum data and at least one reference spectrum data.
(3)在分析数据区域显示目标幅值。(3) Display the target amplitude in the analysis data area.
通过在分析数据区域显示目标幅值,将对应于目标频率的目标幅值采用数字的形式进行显示,提高了分析结果的直观性。By displaying the target amplitude in the analysis data area, the target amplitude corresponding to the target frequency is displayed in the form of numbers, which improves the intuitiveness of the analysis results.
具体地,电子设备在提取出的目标频谱数据以及至少一个参考频谱数据之 后,会对数据做二次处理;根据电子设备的显示分辨率和频谱数据重新计算频谱数据(X a,Y b)在屏幕上的坐标位置(X m,Y n),并保存到电子设备中;电子设备再根据新计算的(X m,Y n)在屏幕上显示对应的曲线;电子设备在响应于用户在分析界面的操作时,根据触摸获取的触摸点坐标反推电子设备上的坐标(X u,Y v)点;然后电子设备根据(X u,Y v)坐标找最近的(X m,Y n)坐标是哪个,如果是多组数据的话,就把同一X m轴上所有Y n坐标找到并记录;根据找到的(X m,Y n)坐标数组再反推所有(X a,Y b)就是实际数据值。由此,即可得到对应于目标频率的目标幅值。 Specifically, after the electronic device extracts the target spectrum data and at least one reference spectrum data, it performs secondary processing on the data; recalculates the spectrum data (X a , Y b ) according to the display resolution and spectrum data of the electronic device. The coordinate position (X m , Y n ) on the screen is saved in the electronic device; the electronic device displays the corresponding curve on the screen according to the newly calculated (X m , Y n ); the electronic device is responding to the user's analysis When operating the interface, the coordinate (X u , Y v ) point on the electronic device is reversed according to the touch point coordinates obtained by the touch; then the electronic device finds the nearest (X m , Y n ) according to the (X u , Y v) coordinates Which coordinate is, if it is multiple sets of data, find and record all Y n coordinates on the same X m axis; according to the found (X m , Y n ) coordinate array and then invert all (X a , Y b ) is Actual data value. Thus, the target amplitude corresponding to the target frequency can be obtained.
如图4所示,电子设备根据x轴坐标得到对应x轴上的所有y轴数据,在界面上就是呈现一根黄色指示线表示所在x轴,黄线途径的y轴数据就是比较用数据,并在图表上方按颜色显示出来。即,在分析数据区域进行显示。As shown in Figure 4, the electronic device obtains all the y-axis data corresponding to the x-axis according to the x-axis coordinates. A yellow indicator line is displayed on the interface to indicate the x-axis. The y-axis data of the yellow line path is the data for comparison. And displayed by color at the top of the chart. That is, it is displayed in the analysis data area.
如图4所示,在图4中的分析数据区域,采用与分析图形区域中对应的颜色表示不同的数据;后续用户可以利用颜色的不同,将分析数据区域的数据与分析图形区域的图形进行对应,从而保证了分析结果的直观性。As shown in Figure 4, in the analysis data area in Figure 4, the corresponding color in the analysis graph area is used to represent different data; subsequent users can use the difference in color to compare the data in the analysis data area with the graph in the analysis graph area. Correspondence, thus ensuring the intuitiveness of the analysis results.
本实施例提供的音频数据分析方法,将分析界面分为预设计权的标签、预设倍频程的标签以及分析结果区域,以保证分析结果与预设计权以及预设倍频程的对应显示,使得显示结果较为直观;通过在分析图形区域显示提取出的目标频谱数据以及至少一个参考频谱数据,且采用不同的标识进行区分,以防止不同频谱数据之间的相互影响,使得显示结果的直观性。In the audio data analysis method provided in this embodiment, the analysis interface is divided into a pre-design right label, a preset octave label, and an analysis result area to ensure that the analysis result is displayed corresponding to the pre-design right and the preset octave band. , Making the display result more intuitive; by displaying the extracted target spectrum data and at least one reference spectrum data in the analysis graph area, and using different identifiers to distinguish, to prevent the mutual influence between different spectrum data, making the display result intuitive sex.
在本实施例中还提供了一种音频数据分析装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, an audio data analysis device is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementations, and those that have been described will not be repeated. As used below, the term "module" can implement a combination of software and/or hardware with predetermined functions. Although the devices described in the following embodiments are preferably implemented by software, implementation by hardware or a combination of software and hardware is also possible and conceived.
本实施例提供一种音频数据分析装置,如图5所示,包括:This embodiment provides an audio data analysis device, as shown in FIG. 5, including:
获取模块41,用于获取目标音频数据以及至少一个参考频谱数据;The obtaining module 41 is configured to obtain target audio data and at least one reference spectrum data;
数据转换模块42,用于将所述目标音频数据转换为目标频谱数据;The data conversion module 42 is configured to convert the target audio data into target spectrum data;
显示模块43,用于在分析界面显示所述目标频谱数据与所述至少一个参考频谱数据的分析结果。The display module 43 is configured to display the analysis result of the target spectrum data and the at least one reference spectrum data on the analysis interface.
本实施例提供的音频数据分析装置,在获取到目标音频数据之后将其转换为目标频谱数据,并在同一个分析界面上显示目标频谱数据与参考频谱数据的分析结果,能够得到直观的分析结果而避免了后续专业人员对数据的分析,极大地提高了执行该音频数据分析方法的电子设备应用范围。The audio data analysis device provided in this embodiment converts the target audio data into target spectrum data after acquiring it, and displays the analysis results of the target spectrum data and the reference spectrum data on the same analysis interface, which can obtain intuitive analysis results This avoids subsequent professionals from analyzing the data, and greatly improves the application range of the electronic device that executes the audio data analysis method.
本实施例中的音频数据分析装置是以功能单元的形式来呈现,这里的单元是指ASIC电路,执行一个或多个软件或固定程序的处理器和存储器,和/或其他可以提供上述功能的器件。The audio data analysis device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and/or other devices that can provide the above-mentioned functions Device.
上述各个模块的更进一步的功能描述与上述对应实施例相同,在此不再赘述。The further functional descriptions of the above-mentioned modules are the same as the above-mentioned corresponding embodiments, and will not be repeated here.
本发明实施例还提供一种电子设备,具有上述图5所示的音频数据分析装置。An embodiment of the present invention also provides an electronic device having the audio data analysis device shown in FIG. 5 above.
请参阅图6,图6是本发明可选实施例提供的一种终端的结构示意图,如图6所示,该终端可以包括:至少一个处理器51,例如CPU(Central Processing Unit,中央处理器),至少一个通信接口53,存储器54,至少一个通信总线52。其中,通信总线52用于实现这些组件之间的连接通信。其中,通信接口53可以包括显示屏(Display)、键盘(Keyboard),可选通信接口53还可以包括标准的有线接口、无线接口。存储器54可以是高速RAM存储器(Random Access Memory,易挥发性随机存取存储器),也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器54可选的还可以是至少一个位于远离前述处理器51的存储装置。其中处理器51可以结合图6所描述的装置,存储器54中存储应用程序,且处理器51调用存储器54中存储的程序代码,以用于执行上述任一方法步骤。Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of a terminal provided by an optional embodiment of the present invention. As shown in FIG. 6, the terminal may include: at least one processor 51, such as a CPU (Central Processing Unit) ), at least one communication interface 53, memory 54, at least one communication bus 52. Among them, the communication bus 52 is used to implement connection and communication between these components. The communication interface 53 may include a display (Display) and a keyboard (Keyboard), and the optional communication interface 53 may also include a standard wired interface and a wireless interface. The memory 54 may be a high-speed RAM memory (Random Access Memory, volatile random access memory), or a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory 54 may also be at least one storage device located far away from the aforementioned processor 51. The processor 51 may be combined with the device described in FIG. 6, the memory 54 stores an application program, and the processor 51 calls the program code stored in the memory 54 to execute any of the above method steps.
其中,通信总线52可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。通信总线52可以分为地址总线、数据总线、 控制总线等。为便于表示,图6中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus 52 may be a peripheral component interconnection standard (peripheral component interconnect, PCI for short) bus or an extended industry standard architecture (EISA for short) bus, etc. The communication bus 52 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in FIG. 6, but it does not mean that there is only one bus or one type of bus.
其中,存储器54可以包括易失性存储器(英文:volatile memory),例如随机存取存储器(英文:random-access memory,缩写:RAM);存储器也可以包括非易失性存储器(英文:non-volatile memory),例如快闪存储器(英文:flash memory),硬盘(英文:hard disk drive,缩写:HDD)或固态硬盘(英文:solid-state drive,缩写:SSD);存储器54还可以包括上述种类的存储器的组合。The memory 54 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviation: RAM); the memory may also include a non-volatile memory (English: non-volatile memory). memory), such as flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid-state hard disk (English: solid-state drive, abbreviation: SSD); memory 54 may also include the above types The combination of memory.
其中,处理器51可以是中央处理器(英文:central processing unit,缩写:CPU),网络处理器(英文:network processor,缩写:NP)或者CPU和NP的组合。The processor 51 may be a central processing unit (English: central processing unit, abbreviation: CPU), a network processor (English: network processor, abbreviation: NP), or a combination of CPU and NP.
其中,处理器51还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(英文:application-specific integrated circuit,缩写:ASIC),可编程逻辑器件(英文:programmable logic device,缩写:PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(英文:complex programmable logic device,缩写:CPLD),现场可编程逻辑门阵列(英文:field-programmable gate array,缩写:FPGA),通用阵列逻辑(英文:generic array logic,缩写:GAL)或其任意组合。Wherein, the processor 51 may further include a hardware chip. The aforementioned hardware chip may be an application-specific integrated circuit (English: application-specific integrated circuit, abbreviation: ASIC), a programmable logic device (English: programmable logic device, abbreviation: PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (English: complex programmable logic device, abbreviation: CPLD), field programmable logic gate array (English: field-programmable gate array, abbreviation: FPGA), general array logic (English: generic array) logic, abbreviation: GAL) or any combination thereof.
可选地,存储器54还用于存储程序指令。处理器51可以调用程序指令,实现如本申请图1至3实施例中所示的音频数据分析方法。Optionally, the memory 54 is also used to store program instructions. The processor 51 can call program instructions to implement the audio data analysis method as shown in the embodiments of FIGS. 1 to 3 of this application.
本发明实施例还提供了一种非暂态计算机存储介质,所述计算机存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任意方法实施例中的音频数据分析方法。其中,所述存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)、随机存储记忆体(Random Access Memory,RAM)、快闪存储器(Flash Memory)、硬盘(Hard Disk Drive,缩写:HDD)或固态硬盘(Solid-State Drive,SSD)等;所述存储介质还可以包括上述种类的存储器的组合。The embodiment of the present invention also provides a non-transitory computer storage medium, the computer storage medium stores computer-executable instructions, and the computer-executable instructions can execute the audio data analysis method in any of the foregoing method embodiments. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviation: HDD) or solid-state drive (Solid-State Drive, SSD), etc.; the storage medium may also include a combination of the foregoing types of memories.
虽然结合附图描述了本发明的实施例,但是本领域技术人员可以在不脱离本发明的精神和范围的情况下做出各种修改和变型,这样的修改和变型均落入 由所附权利要求所限定的范围之内。Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations fall under the appended rights. Within the scope defined by the requirements.

Claims (10)

  1. 一种音频数据分析方法,其特征在于,包括:An audio data analysis method, characterized in that it comprises:
    获取目标音频数据以及至少一个参考频谱数据;Acquiring target audio data and at least one reference spectrum data;
    将所述目标音频数据转换为目标频谱数据;Converting the target audio data into target spectrum data;
    在分析界面显示所述目标频谱数据与所述至少一个参考频谱数据的分析结果。An analysis result of the target spectrum data and the at least one reference spectrum data is displayed on the analysis interface.
  2. 根据权利要求1所述的方法,其特征在于,所述将所述目标音频数据转换为目标频谱数据,包括:The method according to claim 1, wherein said converting said target audio data into target spectrum data comprises:
    将所述目标音频数据转换为目标时域数据;Converting the target audio data into target time domain data;
    对所述目标时域数据进行频率计权处理,以得到预设计权的目标数据;Perform frequency weighting processing on the target time domain data to obtain pre-designed target data;
    对所述预设计权的目标数据进行频谱处理,得到所述目标频谱数据。Perform spectrum processing on the target data of the pre-design right to obtain the target spectrum data.
  3. 根据权利要求2所述的方法,其特征在于,所述将所述目标音频数据转换为目标频谱数据,还包括:The method according to claim 2, wherein said converting the target audio data into target frequency spectrum data further comprises:
    获取预设倍频程参数;Obtain preset octave parameters;
    利用所述预设倍频程参数,对所述目标频谱数据进行处理得到与所述预设倍频程参数对应的目标倍频数据;Using the preset octave parameter to process the target spectrum data to obtain target octave data corresponding to the preset octave parameter;
    对所述预设倍频程参数对应的目标倍频数据进行频谱处理,得到所述目标频谱数据。Perform spectrum processing on the target octave data corresponding to the preset octave parameter to obtain the target spectrum data.
  4. 根据权利要求3所述的方法,其特征在于,所述分析界面包括:所述预设计权的标签、所述预设倍频程的标签以及分析结果区域;其中,所述分析结果区域用于显示对应于所述预设计权以及所述预设倍频程的分析结果。The method according to claim 3, wherein the analysis interface comprises: a label of the pre-design right, a label of the preset octave band, and an analysis result area; wherein the analysis result area is used for Display the analysis result corresponding to the pre-design right and the preset octave.
  5. 根据权利要求4所述的方法,其特征在于,所述分析结果区域包括分析图形区域;其中,所述在分析界面显示所述目标频谱数据与所述至少一个参考频谱数据的分析结果,包括:The method according to claim 4, wherein the analysis result area comprises an analysis graph area; wherein the displaying the analysis result of the target spectrum data and the at least one reference spectrum data on the analysis interface comprises:
    响应于用户在所述分析界面对所述预设计权的标签以及所述预设倍频程的标签的操作,以获取目标计权以及目标倍频程;Responding to the user's operation of the label of the pre-designed weight and the label of the preset octave on the analysis interface to obtain the target weight and the target octave;
    提取对应于所述目标计权以及所述目标倍频程的目标频谱数据以及所述至少一个参考频谱数据;Extracting target spectrum data corresponding to the target weighting and the target octave and the at least one reference spectrum data;
    在所述分析图形区域显示提取出的所述目标频谱数据以及所述至少一个参考频谱数据;其中,提取出的所述目标频谱数据以及所述至少一个参考频谱数据与标识一一对应。The extracted target frequency spectrum data and the at least one reference frequency spectrum data are displayed in the analysis graph area; wherein the extracted target frequency spectrum data and the at least one reference frequency spectrum data correspond to an identifier in a one-to-one correspondence.
  6. 根据权利要求1或4所述的方法,其特征在于,所述分析界面包括分析数据区域,用于显示所述目标频谱数据与所述至少一个参考频谱数据的分析数据。The method according to claim 1 or 4, wherein the analysis interface comprises an analysis data area for displaying analysis data of the target spectrum data and the at least one reference spectrum data.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, wherein the method further comprises:
    响应于用户在所述分析界面的操作,以确定目标频率;In response to the user's operation on the analysis interface, to determine the target frequency;
    提取所述目标频谱数据与所述至少一个参考频谱数据中对应于所述目标频率的目标幅值;Extracting a target amplitude corresponding to the target frequency in the target spectrum data and the at least one reference spectrum data;
    在所述分析数据区域显示所述目标幅值。The target amplitude is displayed in the analysis data area.
  8. 根据权利要求1所述的方法,其特征在于,所述获取至少一个参考频谱数据包括:The method according to claim 1, wherein said obtaining at least one piece of reference spectrum data comprises:
    显示音频数据分析界面;Display audio data analysis interface;
    响应于用户对所述音频数据分析界面的操作以获取所述至少一个参考频谱数据。The at least one reference spectrum data is acquired in response to a user's operation on the audio data analysis interface.
  9. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    存储器和处理器,所述存储器和所述处理器之间互相通信连接,所述存储器中存储有计算机指令,所述处理器通过执行所述计算机指令,从而执行权利要求1-8中任一项所述的音频数据分析方法。A memory and a processor, the memory and the processor are in communication connection with each other, the memory is stored with computer instructions, and the processor executes any one of claims 1-8 by executing the computer instructions The audio data analysis method.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使所述计算机执行权利要求1-8中任一项所述的音频数据分析方法。A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to make the computer execute the audio data analysis of any one of claims 1-8 method.
PCT/CN2020/112177 2020-04-24 2020-08-28 Audio data analysis method, electronic device, and storage medium WO2021212717A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010333578.4A CN111710347B (en) 2020-04-24 2020-04-24 Audio data analysis method, electronic device and storage medium
CN202010333578.4 2020-04-24

Publications (1)

Publication Number Publication Date
WO2021212717A1 true WO2021212717A1 (en) 2021-10-28

Family

ID=72536689

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/112177 WO2021212717A1 (en) 2020-04-24 2020-08-28 Audio data analysis method, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN111710347B (en)
WO (1) WO2021212717A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114047438A (en) * 2021-11-12 2022-02-15 中国南方电网有限责任公司超高压输电公司广州局 State identification method, system and device for circuit breaker operating mechanism and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009187000A (en) * 2008-01-10 2009-08-20 Asahi Kasei Corp User voice diagnostic device and user voice diagnostic method
CN103077698A (en) * 2013-01-10 2013-05-01 天津理工大学 High-accuracy detection method for tone color of musical instrument
JP2016085309A (en) * 2014-10-24 2016-05-19 株式会社コルグ Musical sound estimation device and program
CN105675306A (en) * 2016-01-12 2016-06-15 天津理工大学 Self-testing method and system for automobile
CN109308902A (en) * 2018-10-30 2019-02-05 陈月娇 A kind of piano tone tuning system and method
CN109887523A (en) * 2019-01-21 2019-06-14 北京小唱科技有限公司 Audio data processing method and device, electronic equipment and storage medium for application of singing
CN110719461A (en) * 2019-10-24 2020-01-21 深圳创维-Rgb电子有限公司 Audio and video equipment testing method and device and computer readable storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201083539Y (en) * 2007-08-10 2008-07-09 毕岗 Portable digital sound and vibration analyzer
JP5206378B2 (en) * 2008-12-05 2013-06-12 ソニー株式会社 Information processing apparatus, information processing method, and program
CN102158470B (en) * 2011-01-30 2013-10-16 韦峻峰 Acoustic signal processing system for mobile portable device and processing method thereof
CN104464746A (en) * 2013-09-12 2015-03-25 索尼公司 Voice filtering method and device and electron equipment
CN107522053B (en) * 2017-07-11 2020-10-30 浙江新再灵科技股份有限公司 Elevator platform detection system and method based on audio analysis
CN108281152B (en) * 2018-01-18 2021-01-12 腾讯音乐娱乐科技(深圳)有限公司 Audio processing method, device and storage medium
US10753965B2 (en) * 2018-03-16 2020-08-25 Music Tribe Brands Dk A/S Spectral-dynamics of an audio signal
CN111045634B (en) * 2018-10-12 2023-07-07 北京微播视界科技有限公司 Audio processing method and device
CN109920439B (en) * 2019-03-14 2020-11-17 西安交通大学 Method for judging speed-reducing and speed-changing engine howling based on tone energy and human ear frequency selectivity
CN110580912B (en) * 2019-10-21 2022-02-22 腾讯音乐娱乐科技(深圳)有限公司 Music visualization method, device and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009187000A (en) * 2008-01-10 2009-08-20 Asahi Kasei Corp User voice diagnostic device and user voice diagnostic method
CN103077698A (en) * 2013-01-10 2013-05-01 天津理工大学 High-accuracy detection method for tone color of musical instrument
JP2016085309A (en) * 2014-10-24 2016-05-19 株式会社コルグ Musical sound estimation device and program
CN105675306A (en) * 2016-01-12 2016-06-15 天津理工大学 Self-testing method and system for automobile
CN109308902A (en) * 2018-10-30 2019-02-05 陈月娇 A kind of piano tone tuning system and method
CN109887523A (en) * 2019-01-21 2019-06-14 北京小唱科技有限公司 Audio data processing method and device, electronic equipment and storage medium for application of singing
CN110719461A (en) * 2019-10-24 2020-01-21 深圳创维-Rgb电子有限公司 Audio and video equipment testing method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN111710347B (en) 2023-12-05
CN111710347A (en) 2020-09-25

Similar Documents

Publication Publication Date Title
WO2018157840A1 (en) Speech recognition testing method, testing terminal, computer device, and storage medium
CN110602671A (en) Bluetooth search result display method and device, terminal equipment and storage medium
US20200333378A1 (en) Method and apparatus for processing oscilloscope signal and oscilloscope
WO2016008311A1 (en) Method and device for detecting audio signal according to frequency domain energy
US10061466B2 (en) Method for automatically adjusting the magnification and offset of a display to view a selected feature
WO2013119631A1 (en) Electronic device having multi-touch interface for spectral analysis
WO2021212717A1 (en) Audio data analysis method, electronic device, and storage medium
CN108414860B (en) Performance detection method and device of high-frequency cable and readable storage medium
JP6151895B2 (en) Test and measurement apparatus and method
CN112731030A (en) Electronic component detection method and device, terminal equipment and storage medium
US20200348342A1 (en) Method and apparatus for processing oscilloscope data and oscilloscope
CN106597098B (en) A kind of data processing method and device of spectrum analyzer
CN110751141A (en) Meter reading identification method and device, terminal equipment and storage medium
US9453863B2 (en) Implementing frequency spectrum analysis using causality Hilbert Transform results of VNA-generated S-parameter model information
US20170285902A1 (en) Modifying Settings of an Electronic Test or Measurement Instrument
JP6290743B2 (en) Information processing apparatus and program
CN112232046B (en) Method and device for displaying repeated items of table
CN109783745B (en) Method, device and computer equipment for personalized typesetting of pages
CN110956676A (en) Multi-axis curve drawing method and device and electronic equipment
CN112019961A (en) Noise reduction parameter debugging method and device for noise reduction earphone and terminal
CN113358930B (en) Harmonic wave test system, device and method based on signal deviation
CN112132921A (en) Test data display method, device, equipment and storage medium
CN112925699A (en) LabVIEW-based test method
CN110928470B (en) Signature box display method and device, electronic equipment and storage medium
CN109471578B (en) Waveform local display method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20932668

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20932668

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20932668

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19.05.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20932668

Country of ref document: EP

Kind code of ref document: A1