CN109257688B - Audio distinguishing method and device, storage medium and electronic equipment - Google Patents
Audio distinguishing method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN109257688B CN109257688B CN201810814457.4A CN201810814457A CN109257688B CN 109257688 B CN109257688 B CN 109257688B CN 201810814457 A CN201810814457 A CN 201810814457A CN 109257688 B CN109257688 B CN 109257688B
- Authority
- CN
- China
- Prior art keywords
- coding
- target audio
- sequence
- frequency
- content
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
- H04R29/001—Monitoring arrangements; Testing arrangements for loudspeakers
Landscapes
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The present disclosure relates to an audio distinguishing method, apparatus, storage medium, and electronic device, the method comprising: analyzing the target audio according to a preset acquisition frequency to determine data information of the target audio, wherein the data information comprises frequency information and volume information of the target audio; determining coding information for distinguishing the target audio by using a preset coding setting rule according to the data information, wherein the coding information comprises a coding sequence to be inserted and an insertion position of the coding sequence in the target audio; and inserting the coding sequence into the target audio according to the inserting position. By inserting the coding sequence with the specific rule into the specific insertion position and distinguishing a large number of audios by using specific data, the influence of problems in software products and audio output effects on audio distinguishing can be reduced, and therefore the effectiveness of the audios in the product test process can be improved.
Description
Technical Field
The present disclosure relates to the field of multimedia technologies, and in particular, to an audio distinguishing method, apparatus, storage medium, and electronic device.
Background
Along with the improvement of the life quality of people, the number of sound electronic products is continuously increased, and the types of the electronic products for processing the audio frequency, which are required by people for the sound quality, are more and more. In the audio-related automatic testing process of various audio electronic products, the sound output effect and the picture display during the audio playing have the requirement of correctness, namely, all the audio to be tested can be distinguished through sound output, and the sound output effect and the picture display are consistent with the information of the specific audio to be tested. Various problems may arise during audio product testing: for example, the display of audio information may be wrong, and the output of audio may be problematic, which may affect the test result.
Disclosure of Invention
The present disclosure provides an audio distinguishing method, apparatus, storage medium, and electronic device, which are used to solve the problem of influence on audio distinguishing due to problems in software products and processing of audio output effects.
According to a first aspect of embodiments of the present disclosure, there is provided an audio differentiation method, the method comprising:
analyzing a target audio according to a preset acquisition frequency to determine data information of the target audio, wherein the data information comprises frequency information and volume information of the target audio;
according to the data information, utilizing a preset coding setting rule to determine coding information for distinguishing the target audio, wherein the coding information comprises a coding sequence to be inserted and an insertion position of the coding sequence in the target audio;
and inserting the coding sequence into the target audio according to the inserting position.
Optionally, the encoding information further includes an encoding frequency of the encoding sequence; determining, according to the data information and in combination with a preset encoding setting rule, encoding information for distinguishing the target audio, including:
determining the insertion position according to the code setting rule;
determining the coding frequency according to the coding setting rule and by combining the frequency information of the target audio;
and generating the coding sequence according to the coding setting rule by combining the coding frequency and the insertion position.
Optionally, the encoding sequence includes a start flag of the encoding sequence, an end flag of the encoding sequence, a serial number of the encoding sequence corresponding to the insertion position, and data content of the encoding sequence, the insertion position includes a plurality of positions in the target audio where the encoding sequence is to be inserted, and the generating the encoding sequence according to the encoding setting rule by combining the encoding frequency and the insertion position includes:
determining the starting mark and the ending mark according to the coding setting rule;
determining the coding content according to the coding setting rule and the coding frequency;
and generating a plurality of coding sequences corresponding to the insertion positions according to the starting mark, the ending mark, the serial number and the coding content.
Optionally, the code sequence further includes a check bit, and the generating the code sequence by combining the code frequency and the insertion position according to the code setting rule includes:
determining the starting mark and the ending mark according to the coding setting rule;
determining the coding content with a checking function according to the coding setting rule, the coding frequency and the check bit;
and generating a plurality of coding sequences corresponding to the insertion positions according to the starting mark, the ending mark, the serial number and the coding content.
Optionally, the encoding setting rule includes: the data type of the coded content, the representation rule of the coded content, the content of the start mark and the end mark; the data type of the encoded content comprises numerical data, the expression rule of the encoded content comprises a plurality of numerical values, and the encoding frequency and the preset amplitude are used for respectively expressing the numerical values, and the content of the start mark and the end mark is different from the data content in the target audio.
According to a second aspect of embodiments of the present disclosure, there is provided an audio differentiation apparatus, the apparatus comprising:
the data information determining module is used for analyzing the target audio according to a preset acquisition frequency so as to determine the data information of the target audio, wherein the data information comprises the frequency information and the volume information of the target audio;
the coding information determining module is used for determining coding information for distinguishing the target audio by utilizing a preset coding setting rule according to the data information, wherein the coding information comprises a coding sequence to be inserted and an insertion position of the coding sequence in the target audio;
and the inserting module is used for inserting the coding sequence into the target audio according to the inserting position.
Optionally, the encoding information further includes an encoding frequency of the encoding sequence; the encoding information determination module includes:
the position determining submodule is used for determining the insertion position according to the code setting rule;
the frequency determining submodule is used for determining the coding frequency by combining the frequency information of the target audio according to the coding setting rule;
and the sequence generation submodule is used for generating the coding sequence according to the coding setting rule by combining the coding frequency and the insertion position.
Optionally, the coding sequence includes a start marker of the coding sequence, an end marker of the coding sequence, a serial number of the coding sequence corresponding to the insertion position, and data content of the coding sequence, the insertion position includes a plurality of positions in the target audio where the coding sequence is to be inserted, and the sequence generation sub-module is configured to:
determining the starting mark and the ending mark according to the coding setting rule;
determining the coding content according to the coding setting rule and the coding frequency;
and generating a plurality of coding sequences corresponding to the insertion positions according to the starting mark, the ending mark, the serial number and the coding content.
Optionally, the coding sequence further includes a check bit, and the sequence generation submodule is configured to:
determining the starting mark and the ending mark according to the coding setting rule;
determining the coding content with a checking function according to the coding setting rule, the coding frequency and the check bit;
and generating a plurality of coding sequences corresponding to the insertion positions according to the starting mark, the ending mark, the serial number and the coding content.
Optionally, the encoding setting rule includes: the data type of the coded content, the representation rule of the coded content, the content of the start mark and the end mark; the data type of the encoded content comprises numerical data, the expression rule of the encoded content comprises a plurality of numerical values, and the encoding frequency and the preset amplitude are used for respectively expressing the numerical values, and the content of the start mark and the end mark is different from the data content in the target audio.
In a third aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of the audio distinguishing method of any one of the first aspect.
In a fourth aspect of the embodiments of the present disclosure, an electronic device is provided, including:
the computer-readable storage medium of the third aspect; and
one or more processors to execute the computer program in the computer-readable storage medium.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
analyzing a target audio according to a preset acquisition frequency to determine data information of the target audio, wherein the data information comprises frequency information and volume information of the target audio; according to the data information, utilizing a preset coding setting rule to determine coding information for distinguishing the target audio, wherein the coding information comprises a coding sequence to be inserted and an insertion position of the coding sequence in the target audio; and inserting the coding sequence into the target audio according to the inserting position. By inserting the coding sequence with the specific rule into the specific insertion position and distinguishing a large number of audios by using specific data, the influence of problems in software products and audio output effects on audio distinguishing can be reduced, and therefore the effectiveness of the audios in the product test process can be improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a flow diagram illustrating a method of audio differentiation according to an exemplary embodiment;
FIG. 2 is a flow diagram illustrating another audio discrimination method according to an exemplary embodiment;
FIG. 3 is a flow diagram illustrating yet another audio differentiation method in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram illustrating yet another audio differentiation method in accordance with an exemplary embodiment;
FIG. 5 is a graphical illustration of a target audio inserted into a coded sequence in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating an audio differentiation apparatus according to an exemplary embodiment;
FIG. 7 is a block diagram illustrating an encoding information determination module in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
FIG. 1 is a flow chart illustrating a method of audio differentiation, as shown in FIG. 1, according to an exemplary embodiment, comprising the steps of:
Wherein the data information includes frequency information and volume information of the target audio.
For example, because of the influence of software problems, it may cause the audio to have a pop sound during the test playback, for example, the sound output is inconsistent in a very short time, usually appearing as a particularly loud problem. The amplitude of sine wave data in the audio file represents the sound size, the sound size is the main body which changes repeatedly in the test, and if the audio file is distinguished by adopting a sound coding method based on the amplitude rule, the audio file may not be distinguished effectively, so that the technical scheme provided by the disclosure adopts the continuation of fixed frequency data, for example, waveform data of a plurality of continuous same frequencies are utilized, and a simple verification function can be provided as effective supplement.
Therefore, it is first necessary to analyze the target audio to be distinguished, and then determine the frequency information and volume information of the target audio, where the frequency information is generally fixed, such as 0.5kHz and 0.6kHz, and further, the frequency interval used by different audio subjects can be specified according to the accuracy of the collected data of the target audio, such as 0.1kHz, so as to ensure that the audio data can be correctly identified and analyzed. In general, although the simple detection environment is low in cost, the accuracy is slightly low and the influence of noise is slightly large, so that when the code sequence is determined later, a specific frequency for a special purpose is avoided as much as possible, and for example, data having a frequency of 1kHz is used as the code.
Illustratively, the audio main data part is cyclically changed in a way that the volume is gradually reduced and gradually increased according to the rule. Because the change of fast forward and fast backward is considered in the playing or testing of general audio, in order to judge similar effects through sound and monitor the playing condition of audio in real time, it is necessary to distinguish different time point data. Considering the change of fast forward and fast backward is generally about 10s-18s, a stage in the change law is finally larger than the maximum value, for example, preferably larger than 20 s. Meanwhile, the software problem to be tested or the influence of hardware interference sound is eliminated, and the maximum and minimum sound parts of the audio frequency are preferably reserved, so that the software problem to be tested is comprehensively detected.
Illustratively, the audio file starts at-1 dB and cycles down and up at a rate of 0.5dB/s (-1dB to 15 dB).
And step 102, determining coding information for distinguishing the target audio by using a preset coding setting rule according to the data information.
Wherein the coding information comprises a coding sequence to be inserted and an insertion position of the coding sequence in the target audio.
Illustratively, preset encoding setting rules are utilized to determine the encoding sequence to be inserted, typically a particular audio data sequence, for example, 1 is represented by sine wave amplitude-6 dB, 0 is represented by sine wave amplitude-3 dB, and a 01 sequence (e.g., 000001) is used to uniquely identify an audio file. However, it may be specified in the coding setting rule that the frequency data in the coding sequence, for example, the data content of the coding sequence is different from the content of the target audio, is not included in the main data of the target audio.
And 103, inserting the coding sequence into the target audio according to the inserting position.
For example, after the coding sequence and the position to be inserted into the coding sequence are determined through step 102, the coding sequence is inserted into the corresponding insertion position, so that the target audio is distinguished through the coding sequence when the target audio is read, or when the target audio fails, judgment and analysis can be performed according to the coding sequence, for example, whether the audio is missing, the length of the missing part and the like exist.
In addition, it should be noted that, in order to ensure that the characteristics of the original target audio cannot be changed after the coded sequence is inserted, that is, the original time length of the target audio needs to be unchanged by subtracting the time length of the coded sequence from the total time length of the inserted target audio.
In summary, according to the audio distinguishing method provided by the present disclosure, a target audio is analyzed according to a preset acquisition frequency to determine data information of the target audio, where the data information includes frequency information and volume information of the target audio; determining coding information for distinguishing the target audio by using a preset coding setting rule according to the data information, wherein the coding information comprises a coding sequence to be inserted and an insertion position of the coding sequence in the target audio; and inserting the coding sequence into the target audio according to the inserting position. By inserting the coding sequence with the specific rule into the specific insertion position and distinguishing a large number of audios by using specific data, the influence of problems in software products and audio output effects on audio distinguishing can be reduced, and therefore the effectiveness of the audios in the product test process can be improved.
Fig. 2 is a flowchart illustrating another audio distinguishing method according to an exemplary embodiment, where, as shown in fig. 2, the determining, according to the data information and using the preset encoding setting rule, the encoding information for distinguishing the target audio in step 102 includes the following steps:
Illustratively, to avoid the software under test from having problems, such as a silent output, just in the portion of the encoded sequence where the target audio is inserted, which affects the testing of the target audio, the target audio may be marked separately at different points in time. That is, the insertion position includes a plurality of positions where the code sequence is to be inserted in the target audio, and by inserting the plurality of code sequences at different positions, the audio file can be more effectively identified and distinguished.
Illustratively, the coding sequence may be inserted at the 4 th, 8 th, 18 th position where the audio file is played.
And step 1022, determining the encoding frequency according to the encoding setting rule and by combining the frequency information of the target audio.
Illustratively, the encoding portion should be composed of data of a specific frequency (e.g., 1kHz) and regularly combined. Data composition with a specific value for several times can be adopted, so that influence caused by problems such as monitoring and the like is avoided. For example, the method comprises the following steps: a succession of 5 complete waveforms of-6 dB (i.e. amplitude/or position of the wave peak) represents 0.
And 1023, generating a coding sequence according to the coding setting rule and the coding frequency and the insertion position.
The coding sequence comprises a start marker of the coding sequence, an end marker of the coding sequence, a serial number of a corresponding insertion position of the coding sequence and data content of the coding sequence.
The encoding setting rule includes: the data type of the coded content, the representation rule of the coded content, the content of the start mark and the end mark; the data type of the coded content comprises numerical data, the expression rule of the coded content comprises a plurality of numerical values, and coding frequency and preset amplitude for respectively expressing the numerical values, and the content of the start mark and the end mark is different from the data content in the target audio.
Illustratively, according to the code setting rule, a plurality of code sequences are determined, which are generated corresponding to a plurality of insertion positions, have specific code frequencies and amplitudes, and are data with a certain rule composed of numerical (binary) data.
Fig. 3 is a flowchart illustrating a further audio distinguishing method according to an exemplary embodiment, where as shown in fig. 3, step 1023 generates a coding sequence according to a coding setting rule, combining a coding frequency and an insertion position, and includes the following steps:
For example, it is difficult to mark the start time of audio playing due to the problem in audio output (e.g. head cut) or the influence of sound effect (e.g. the sound at the beginning of audio playing gets bigger), and the sound detection program timer is easily affected by CPU allocation and generates error, thus it is not favorable to find the start and stop time of coding by time. Therefore, the start position of the code sequence may be marked with special data not included in the target audio, for example, 00, and the target audio may be regarded as the start position of the code sequence if 00 is read, or may be similarly marked with 00, and when 00 is read, the target audio indicates the end position of the code sequence.
And step 10232, determining the coding content according to the coding setting rule and the coding frequency.
For example, since the data of numerical type is used in the encoded content, the representative values can be distinguished as easily as possible and can also be distinguished from the influence factors such as noise.
And 10233, generating a plurality of coding sequences corresponding to the insertion positions according to the starting mark, the ending mark, the serial numbers and the coding contents.
Illustratively, the start marker, the end marker and the encoded content of the encoded sequence are determined through steps 10231 and 10232, and then according to the plurality of insertion positions determined in step 1021, the encoded sequence at each different position needs to be sorted by using the sequence number, for example, the sequence number of the first encoded sequence is 01, and so on, so that when a large amount of missing parts occur in the target audio, for example, the missing parts can be judged and determined through the sequence numbers of the encoded sequence, and a more comprehensive method is provided for audio differentiation.
Optionally, the coding sequence further comprises a check bit.
Fig. 4 is a flowchart illustrating a further audio distinguishing method according to an exemplary embodiment, where as shown in fig. 4, the encoded sequence further includes check bits, and the step 1023 generates the encoded sequence according to the encoding setting rule, in combination with the encoding frequency and the insertion position, and includes the following steps:
For example, the content is the same as that described in step 10231, and is not described here again.
And step 10235, determining the coding content with the checking function according to the coding setting rule, the coding frequency and the check bit.
Illustratively, this step of the present embodiment differs from step 10232 of the embodiment portion described in fig. 3, which encoding portion does not have a check function; in the embodiment, the check bit is added, that is, the code sequence has simple check on itself, for example, parity check is adopted, so that the influence of data error caused by that a value 0 part of a sound output error is just similar to a value 1 due to a software problem to be tested can be avoided, and the audio can be better distinguished.
And 10236, generating a plurality of coding sequences corresponding to the insertion positions according to the starting mark, the ending mark, the serial numbers and the coding contents.
By way of example, the finally determined coding sequence may be: 00. 01, 10, 11 (reserved), sequence number (17 binary number), check bit (parity), 00. As shown in fig. 5, the portion of the target audio that includes a graphical representation of the encoded sequence after the target audio is inserted into the encoded sequence.
In summary, according to the audio distinguishing method provided by the present disclosure, a target audio is analyzed according to a preset acquisition frequency to determine data information of the target audio, where the data information includes frequency information and volume information of the target audio; determining coding information for distinguishing the target audio by using a preset coding setting rule according to the data information, wherein the coding information comprises a coding sequence to be inserted and an insertion position of the coding sequence in the target audio; and inserting the coding sequence into the target audio according to the inserting position. By inserting the coding sequence with the specific rule into the specific insertion position and distinguishing a large number of audios by using specific data, the influence of problems in software products and audio output effects on audio distinguishing can be reduced, and therefore the effectiveness of the audios in the product test process can be improved.
Fig. 6 is a block diagram illustrating an audio differentiation apparatus according to an exemplary embodiment, as shown in fig. 6, for performing any of the embodiments described above with reference to fig. 1-4, the apparatus 600 comprising:
the data information determining module 610 is configured to analyze the target audio according to a preset acquisition frequency to determine data information of the target audio, where the data information includes frequency information and volume information of the target audio.
And the coding information determining module 620 is configured to determine, according to the data information and by using a preset coding setting rule, coding information for distinguishing the target audio, where the coding information includes a coding sequence to be inserted and an insertion position of the coding sequence in the target audio.
And an inserting module 630, configured to insert the coding sequence into the target audio according to the insertion position.
Optionally, the coding information further includes a coding frequency of the coding sequence.
Fig. 7 is a block diagram illustrating an encoding information determination module according to an example embodiment, and as shown in fig. 7, the encoding information determination module 620 includes:
the position determining sub-module 621 is configured to determine an insertion position according to the coding setting rule.
And the frequency determining submodule 622 is configured to determine an encoding frequency according to the encoding setting rule in combination with the frequency information of the target audio.
And the sequence generation sub-module 623 is used for generating a coding sequence according to the coding setting rule by combining the coding frequency and the insertion position.
Optionally, the coding sequence includes a start marker of the coding sequence, an end marker of the coding sequence, a serial number of a corresponding insertion position of the coding sequence, and data content of the coding sequence, and the insertion position includes a plurality of positions where the coding sequence is to be inserted in the target audio.
Optionally, the sequence generation sub-module 623 is configured to:
determining a start mark and an end mark according to a code setting rule;
determining the encoding content according to the encoding setting rule and the encoding frequency;
and generating a plurality of coding sequences corresponding to the insertion positions according to the starting mark, the ending mark, the serial number and the coding content.
Optionally, the coding sequence further includes a check bit, and the sequence generation sub-module 623 is configured to:
determining a start mark and an end mark according to a code setting rule;
determining the coding content with the checking function according to the coding setting rule, the coding frequency and the checking bit;
and generating a plurality of coding sequences corresponding to the insertion positions according to the starting mark, the ending mark, the serial number and the coding content.
Optionally, the encoding setting rule includes: the data type of the coded content, the representation rule of the coded content, the content of the start mark and the end mark; the data type of the coded content comprises numerical data, the expression rule of the coded content comprises a plurality of numerical values, and coding frequency and preset amplitude for respectively expressing the numerical values, and the content of the start mark and the end mark is different from the data content in the target audio.
In summary, the audio distinguishing apparatus provided by the present disclosure analyzes a target audio according to a preset acquisition frequency to determine data information of the target audio, where the data information includes frequency information and volume information of the target audio; determining coding information for distinguishing the target audio by using a preset coding setting rule according to the data information, wherein the coding information comprises a coding sequence to be inserted and an insertion position of the coding sequence in the target audio; and inserting the coding sequence into the target audio according to the inserting position. By inserting the coding sequence with the specific rule into the specific insertion position and distinguishing a large number of audios by using specific data, the influence of problems in software products and audio output effects on audio distinguishing can be reduced, and therefore the effectiveness of the audios in the product test process can be improved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram illustrating an electronic device 800 in accordance with an example embodiment. As shown in fig. 8, the electronic device 800 may include: a processor 801, a memory 802. The electronic device 800 may also include one or more of a multimedia component 803, an input/output (I/O) interface 804, and a communications component 805.
The processor 801 is configured to control the overall operation of the electronic device 800, so as to complete all or part of the steps in the audio distinguishing method. The memory 802 is used to store various types of data to support operation at the electronic device 800, such as instructions for any application or method operating on the electronic device 800 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and so forth. The Memory 802 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 803 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 802 or transmitted through the communication component 805. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 804 provides an interface between the processor 801 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the electronic device 800 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 805 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the audio differentiation method described above.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the audio differentiation method described above is also provided. For example, the computer readable storage medium may be the memory 802 described above that includes program instructions executable by the processor 801 of the electronic device 800 to perform the audio differentiation method described above.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.
Claims (10)
1. A method for audio differentiation, the method comprising:
analyzing a target audio according to a preset acquisition frequency to determine data information of the target audio, wherein the data information comprises frequency information and volume information of the target audio;
according to the data information, utilizing a preset coding setting rule to determine coding information for distinguishing the target audio, wherein the coding information comprises a coding sequence to be inserted and an insertion position of the coding sequence in the target audio;
inserting the coding sequence into the target audio according to the insertion position;
the coding information further comprises a coding frequency of the coding sequence; determining, according to the data information and in combination with a preset encoding setting rule, encoding information for distinguishing the target audio, including:
determining the insertion position according to the code setting rule;
determining the coding frequency according to the coding setting rule and by combining the frequency information of the target audio;
generating the coding sequence according to the coding setting rule by combining the coding frequency and the insertion position;
said determining said insertion location according to said code setting rule comprising:
and taking a plurality of time points of the target audio as the insertion positions.
2. The method according to claim 1, wherein the code sequence includes a start flag of the code sequence, an end flag of the code sequence, a serial number of the code sequence corresponding to the insertion position, and data content of the code sequence, the insertion position includes a plurality of positions in the target audio where the code sequence is to be inserted, the generating the code sequence according to the code setting rule in combination with the coding frequency and the insertion position includes:
determining the starting mark and the ending mark according to the coding setting rule;
determining the coding content according to the coding setting rule and the coding frequency;
and generating a plurality of coding sequences corresponding to the insertion positions according to the starting mark, the ending mark, the serial number and the coding content.
3. The method of claim 2, wherein the code sequence further comprises check bits, and wherein generating the code sequence in accordance with the code setting rule in combination with the code frequency and the insertion position comprises:
determining the starting mark and the ending mark according to the coding setting rule;
determining the coding content with a checking function according to the coding setting rule, the coding frequency and the check bit;
and generating a plurality of coding sequences corresponding to the insertion positions according to the starting mark, the ending mark, the serial number and the coding content.
4. The method according to any of claims 1-3, wherein the encoding setup rule comprises: the data type of the coded content, the representation rule of the coded content, the content of the start mark and the end mark; the data type of the encoded content comprises numerical data, the expression rule of the encoded content comprises a plurality of numerical values, and the encoding frequency and the preset amplitude are used for respectively expressing the numerical values, and the content of the start mark and the end mark is different from the data content in the target audio.
5. An audio differentiation apparatus, characterized in that said apparatus comprises:
the data information determining module is used for analyzing the target audio according to a preset acquisition frequency so as to determine the data information of the target audio, wherein the data information comprises the frequency information and the volume information of the target audio;
the coding information determining module is used for determining coding information for distinguishing the target audio by utilizing a preset coding setting rule according to the data information, wherein the coding information comprises a coding sequence to be inserted and an insertion position of the coding sequence in the target audio;
the inserting module is used for inserting the coding sequence into the target audio according to the inserting position;
the coding information further comprises a coding frequency of the coding sequence; the encoding information determination module includes:
the position determining submodule is used for determining the insertion position according to the code setting rule;
the frequency determining submodule is used for determining the coding frequency by combining the frequency information of the target audio according to the coding setting rule;
the sequence generation submodule is used for generating the coding sequence according to the coding setting rule by combining the coding frequency and the insertion position;
the position determining submodule is used for taking a plurality of time points of the target audio as the inserting positions.
6. The apparatus of claim 5, wherein the coding sequence includes a start tag for the coding sequence, an end tag for the coding sequence, a sequence number for the coding sequence corresponding to the insertion location, and data content of the coding sequence, the insertion location including a plurality of locations in the target audio where the coding sequence is to be inserted, the sequence generation submodule being configured to:
determining the starting mark and the ending mark according to the coding setting rule;
determining the coding content according to the coding setting rule and the coding frequency;
and generating a plurality of coding sequences corresponding to the insertion positions according to the starting mark, the ending mark, the serial number and the coding content.
7. The apparatus of claim 6, wherein the encoded sequence further comprises check bits, and wherein the sequence generation submodule is configured to:
determining the starting mark and the ending mark according to the coding setting rule;
determining the coding content with a checking function according to the coding setting rule, the coding frequency and the check bit;
and generating a plurality of coding sequences corresponding to the insertion positions according to the starting mark, the ending mark, the serial number and the coding content.
8. The apparatus according to any one of claims 5-7, wherein the encoding setup rule comprises: the data type of the coded content, the representation rule of the coded content, the content of the start mark and the end mark; the data type of the encoded content comprises numerical data, the expression rule of the encoded content comprises a plurality of numerical values, and the encoding frequency and the preset amplitude are used for respectively expressing the numerical values, and the content of the start mark and the end mark is different from the data content in the target audio.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
10. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810814457.4A CN109257688B (en) | 2018-07-23 | 2018-07-23 | Audio distinguishing method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810814457.4A CN109257688B (en) | 2018-07-23 | 2018-07-23 | Audio distinguishing method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109257688A CN109257688A (en) | 2019-01-22 |
CN109257688B true CN109257688B (en) | 2021-01-22 |
Family
ID=65049727
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810814457.4A Active CN109257688B (en) | 2018-07-23 | 2018-07-23 | Audio distinguishing method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109257688B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110175015B (en) * | 2019-05-29 | 2022-05-27 | Oppo广东移动通信有限公司 | Method and device for controlling volume of terminal equipment and terminal equipment |
CN111863041B (en) * | 2020-07-17 | 2021-08-31 | 东软集团股份有限公司 | Sound signal processing method, device and equipment |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101102506A (en) * | 2007-08-01 | 2008-01-09 | 北京创毅视讯科技有限公司 | A multi-media broadcast data transmission method, device and system |
CN101110960A (en) * | 2007-08-02 | 2008-01-23 | 北京创毅视讯科技有限公司 | Multimedia broadcast data transmission method, device and system |
CN101441870A (en) * | 2008-12-18 | 2009-05-27 | 西南交通大学 | Robust digital audio watermark method based on discrete fraction transformation |
US8825493B2 (en) * | 2011-07-18 | 2014-09-02 | At&T Intellectual Property I, L.P. | Method and apparatus for social network communication over a media network |
JP5737077B2 (en) * | 2011-08-30 | 2015-06-17 | 富士通株式会社 | Audio encoding apparatus, audio encoding method, and audio encoding computer program |
US20150062353A1 (en) * | 2013-08-30 | 2015-03-05 | Microsoft Corporation | Audio video playback synchronization for encoded media |
CN105657592B (en) * | 2014-11-10 | 2019-08-13 | 北京握奇智能科技有限公司 | A kind of audio communication method and device |
DE102015200961B4 (en) * | 2015-01-21 | 2017-02-02 | Sennheiser Electronic Gmbh & Co. Kg | Digital wireless audio transmission system with optimized dynamics |
CN106409301A (en) * | 2015-07-27 | 2017-02-15 | 北京音图数码科技有限公司 | Digital audio signal processing method |
-
2018
- 2018-07-23 CN CN201810814457.4A patent/CN109257688B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109257688A (en) | 2019-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107516510B (en) | Automatic voice testing method and device for intelligent equipment | |
CN110473525B (en) | Method and device for acquiring voice training sample | |
WO2018157840A1 (en) | Speech recognition testing method, testing terminal, computer device, and storage medium | |
CN108564966B (en) | Voice test method and device with storage function | |
CN108038398B (en) | Two-dimensional code analysis capability test method and device and electronic equipment | |
CN109257688B (en) | Audio distinguishing method and device, storage medium and electronic equipment | |
CN110196801B (en) | Code coverage rate based test method and device | |
US8271113B2 (en) | Audio testing system and method | |
CN104331265A (en) | Voice input method, device and terminal | |
CN108521612B (en) | Video abstract generation method, device, server and storage medium | |
US9466310B2 (en) | Compensating for identifiable background content in a speech recognition device | |
CN111081085B (en) | Dictation control method and terminal equipment | |
CN108124042A (en) | Device fault detection method, device and mobile terminal | |
CN108241560B (en) | Memory test method and device and electronic equipment | |
CN109190879B (en) | Method and device for training adaptation level evaluation model and evaluating adaptation level | |
CN105068935A (en) | Method and device for processing software test result | |
CN112802497A (en) | Audio quality detection method and device, computer equipment and storage medium | |
CN111930581A (en) | Memory interface testing method, device, equipment and readable storage medium | |
CN113257287A (en) | Audio file visualization method and device, storage medium and electronic equipment | |
CN104656412A (en) | Method for adjusting alarm | |
US20220130411A1 (en) | Defect-detecting device and defect-detecting method for an audio device | |
CN112069508B (en) | Method, system, device and medium for positioning vulnerability API (application program interface) parameters of machine learning framework | |
CN111354383B (en) | Audio defect positioning method and device and terminal equipment | |
CN114268831A (en) | Video editing method and device | |
CN111949988B (en) | Active electromagnetic vulnerability detection system and method for physically isolated computer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |