CN111953727B - Audio transmission method and device - Google Patents
Audio transmission method and device Download PDFInfo
- Publication number
- CN111953727B CN111953727B CN202010373579.1A CN202010373579A CN111953727B CN 111953727 B CN111953727 B CN 111953727B CN 202010373579 A CN202010373579 A CN 202010373579A CN 111953727 B CN111953727 B CN 111953727B
- Authority
- CN
- China
- Prior art keywords
- audio
- file
- audio file
- duration
- recording
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C7/00—Arrangements for writing information into, or reading information out from, a digital store
- G11C7/16—Storage of analogue signals in digital stores using an arrangement comprising analogue/digital [A/D] converters, digital memories and digital/analogue [D/A] converters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention discloses an audio transmission method and device. Wherein the method comprises the following steps: after starting a recording device, acquiring the audio recorded by the recording device in real time in the process of recording the audio by the recording device; under the condition that the acquired time length of the audio reaches a preset time length, determining the audio with the preset time length as an original audio file; after the original audio file is obtained, deleting noise data in the original audio file, and executing encryption operation on the original audio file to obtain a first audio file; and sending the first audio file to a receiver. The invention solves the technical problem of low audio transmission efficiency.
Description
Technical Field
The invention relates to the field of data transmission, in particular to an audio transmission method and device.
Background
In the prior art, after recording, it is often necessary to transmit the recording file. In order to ensure the transmission security of the file, the recording file can be encrypted in the prior art, and the file is transmitted after being encrypted.
In the prior art, in the process of encrypting and transmitting the file, the recorded file can be encrypted after the recording is finished, and then the encrypted recorded file is transmitted, so that the file transmission efficiency is low.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides an audio transmission method and device, which are used for at least solving the technical problem of low audio transmission efficiency.
According to an aspect of an embodiment of the present invention, there is provided an audio transmission method including: after starting a recording device, acquiring the audio recorded by the recording device in real time in the process of recording the audio by the recording device; under the condition that the acquired time length of the audio reaches a preset time length, determining the audio with the preset time length as an original audio file; after the original audio file is obtained, deleting noise data in the original audio file, and executing encryption operation on the original audio file to obtain a first audio file; and sending the first audio file to a receiver.
According to another aspect of the embodiment of the present invention, there is also provided an audio transmission apparatus including: the acquisition unit is used for acquiring the audio recorded by the recording equipment in real time in the process of recording the audio by the recording equipment after the recording equipment is started; a first determining unit, configured to determine, when the acquired duration of the audio reaches a predetermined duration, the audio of the predetermined duration as an original audio file; the processing unit is used for deleting noise data in the original audio file after the original audio file is acquired, and executing encryption operation on the original audio file to obtain a first audio file; and the sending unit is used for sending the first audio file to a receiver.
As an alternative embodiment, the processing unit includes: the first acquisition module is used for acquiring the waveform diagram of the original audio file; the detection module is used for detecting the highest point of the amplitude of each frame of audio file in the oscillogram; a second determining module configured to determine a predetermined number of audio file frames as the noise data in a case where a highest point of the amplitude of each of the audio file frames is smaller than a predetermined threshold value in a predetermined number of consecutive audio file frames; a deleting module, configured to delete the noise data; and the encryption module is used for executing encryption operation on the original audio file after deleting the noise data to obtain the first audio file.
As an alternative embodiment, the processing unit further comprises: the second obtaining module is used for obtaining a first duration of the original audio file after deleting the noise data before executing the encryption operation on the original audio file after deleting the noise data to obtain the first audio file; the third acquisition module is used for acquiring the difference value between the first time length and the target time length under the condition that the first time length is smaller than the target time length; a fourth obtaining module, configured to obtain a filling file with the same file duration as the difference value, where file data of the filling file is preset data; and the splicing unit is used for splicing the filling file to the tail of the original audio file after deleting the noise data.
As an alternative embodiment, the encryption module includes: an acquisition sub-module, configured to acquire an executable file of the original audio file after deleting the noise data; the first processing sub-module is used for executing bit-wise negation operation on each bit of data in the executable file to obtain the first audio file; or the second processing sub-module is used for determining a plurality of target bits in the executable file, and executing the negation operation on the numerical value of each target bit to obtain the first audio file.
In the embodiment of the invention, after the recording equipment is started, the audio recorded by the recording equipment is acquired in real time in the process of recording the audio by the recording equipment; under the condition that the acquired time length of the audio reaches a preset time length, determining the audio with the preset time length as an original audio file; after the original audio file is obtained, deleting noise data in the original audio file, and executing encryption operation on the original audio file to obtain a first audio file; in the method for transmitting the first audio file to the receiver, in the audio transmission process, the recorded audio with the preset time length can be obtained, and the audio is processed and transmitted, so that the audio transmission efficiency is improved while the audio is recorded, and the technical problem of low audio transmission efficiency is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of an alternative audio transmission method according to an embodiment of the invention;
FIG. 2 is a schematic diagram of an alternative audio transmission method according to an embodiment of the invention;
Fig. 3 is a schematic structural view of an alternative audio transmission apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiment of the present invention, there is provided an audio transmission method, optionally, as an optional implementation manner, as shown in fig. 1, the audio transmission method includes:
s102, after starting a recording device, acquiring the audio recorded by the recording device in real time in the process of recording the audio by the recording device;
s104, determining the audio with the preset time length as an original audio file under the condition that the acquired time length of the audio reaches the preset time length;
S106, deleting noise data in the original audio file after the original audio file is acquired, and executing encryption operation on the original audio file to obtain a first audio file;
s108, the first audio file is sent to a receiver.
Optionally, the audio transmission method can be applied to a terminal capable of calculating data, such as a mobile phone, a tablet computer, a notebook computer, a PC (personal computer) and the like, or an intelligent device, such as an intelligent tablet, an intelligent recording device and the like. The terminal or smart device may interact with the server over a network, which may include, but is not limited to, a wireless network or a wired network. Wherein the wireless network comprises: WIFI and other networks that enable wireless communications. The wired network may include, but is not limited to: wide area network, metropolitan area network, local area network. The server may include, but is not limited to, any hardware device that can perform the calculations.
Alternatively, the above-described audio transmission method may be applied to the field of audio encryption transmission, but is not limited thereto. Taking audio encryption transmission as an example, after the recording device is started, the recording device starts to record audio, and the audio recorded by the recording device is obtained in real time in the process of recording the audio. Under the condition that the acquired time length of the audio reaches a preset time length, determining the audio with the preset time length as an original audio file; after the original audio file is obtained, deleting noise data in the original audio file, and executing encryption operation on the original audio file to obtain a first audio file; and sending the first audio file to a receiver.
By the method, the audio can be recorded and transmitted simultaneously in the audio transmission process, the audio transmission safety is ensured, and the audio transmission efficiency is improved.
Optionally, the recording device in the scheme can be a recording device located at a fixed position or a recording device worn by a worker. The recording device can be automatically or manually opened and closed, after the recording device is opened, the recording device starts recording, and after the recording device is closed, the recording device ends recording.
Optionally, in the audio recording process in this embodiment, the audio of the predetermined duration may be determined as an original audio file in each case that the recording device records the predetermined duration. For example, every 10 minutes of audio recorded by the recording device, the audio recorded within the 10 minutes is saved as an original audio file. In this case, recording audio while saving the original audio file can be realized.
Optionally, in the process of recording audio, if a stop instruction is received under the condition that the audio recorded by the recording device does not reach the preset time length, determining the audio which does not reach the preset time length as the original audio file, wherein the stop instruction is used for closing the recording device. That is, if the recorded audio has not reached the predetermined length of time, the recording apparatus is turned off, and the audio that has not reached the predetermined length of time is determined as an original audio file.
Alternatively, the case where the audio duration does not reach the predetermined duration may be that the recording device is turned on, the recording device is turned off when the predetermined duration has not been reached, or after a plurality of original audio files are recorded (each of the audio files of the predetermined duration is stored as one of the original audio files), and when the audio to be continuously recorded does not reach the predetermined duration, the recording device is turned off, and the audio to be continuously recorded is stored as one of the original audio files. For example, if the predetermined time period is 10 minutes, the recording device is turned off when the predetermined time period is not 10 minutes, and the audio which is not 10 minutes is determined as an original audio file. If the recording device recorded 25 minutes of audio, two 10 minutes of original audio files and one 5 minutes of original audio file were obtained.
Alternatively, after the original audio file is acquired, noise data in the original audio file may be removed. Optionally, the noise data in the present scheme includes silence segments in the original audio file. That is, there may be a case where no sound is generated for a long time during the recording by the recording apparatus. Such as no one speaking. At this time, a longer mute segment is generated. The silence segments need to be deleted.
The specific means may be to obtain a waveform diagram of the original audio file; detecting the highest point of the amplitude of each frame of audio file in the oscillogram; determining a predetermined number of audio file frames as the noise data in the case where the highest point of the amplitude of each of the audio file frames is less than a predetermined threshold value in the consecutive predetermined number of audio file frames; deleting the noise data; and executing encryption operation on the original audio file after deleting the noise data to obtain the first audio file.
Alternatively, the audio recorded by the recording device may be converted into a numerical value and the numerical value converted into a waveform diagram.
For example, as shown in fig. 2, fig. 2 is a waveform diagram of an alternative original audio file, which contains 5 frames of audio. The highest point of the amplitude of the audio of the first three frames is less than the predetermined threshold 202, frame 4 begins and the highest point of the amplitude of the audio exceeds the predetermined threshold 202. For example, a predetermined number of 3, the first three tones are determined to be truly noise data. If the predetermined number is 4, the first three tones will not be considered as noise data because only three frames are connected and the predetermined number is not reached, although the amplitude peak is less than the predetermined threshold 202.
Alternatively, after deleting noise data of the original audio files, file durations of the original audio files each of which has deleted noise data may be different. At this time, the file duration of each original audio file from which noise data is deleted may be adjusted to the same duration.
For example, the file duration of the original audio file with the noise data deleted is three minutes, the original audio file can be adjusted to ten minutes, the adjustment means can be to splice a filling file at the end of the original audio file with the noise data deleted, the data in the filling file is preset data, and the length can be adjusted at will. The encryption efficiency of the filler file in the encryption process is higher than that of the noise data.
After obtaining the filled original audio file, encrypting the filled original audio file. In the encryption process, an executable file of the filled original audio file can be obtained, each bit of data stored in the executable file is 0 or 1, and when in encryption, each bit of data in the executable file is subjected to inversion operation, namely 0 is changed to 1,1 is changed to 0, or inversion operation is performed on data of a plurality of target bits in the executable file, and the aim is to randomly determine or take every other plurality of data bits. And after the first audio file is obtained through encryption, transmitting the first audio file. When the first audio file is transmitted, if the recording equipment is not closed, the recording equipment is always in a state of recording audio, and the effect of recording the audio and transmitting the audio is realized.
The following is described in connection with a specific example.
In the online store, the staff wears intelligent work card, and intelligent work card has recording equipment, and after the staff opened recording equipment, recording equipment began recording audio frequency. When the audio recorded by the recording device reaches 10 minutes, the audio of 10 minutes is stored as an original audio file, and at the moment, the recording device continues recording and processes the original audio file of 10 minutes. First, a waveform diagram of an original audio file is acquired. The audio data of the original audio file may be converted into a numerical value and the numerical value converted into a waveform diagram, the abscissa of which is time and the ordinate of which is sound intensity. If the sound intensity of a plurality of consecutive audio frames, such as 10 or more consecutive audio frames, is below a predetermined threshold, this time period is indicated, and there is no possibility that a person is speaking, and therefore, the data of this time period needs to be deleted as noise data. After deletion, the remaining audio frames are those when the worker or customer speaks. After the deletion action described above is performed, the duration of the original audio file may be changed, for example, 10 minutes of audio is deleted to 8 minutes. At this time, in order to make the operation of the subsequent encryption process not complex, the original audio file of 8 minutes can be supplemented, and the filling file of 2 minutes is spliced later, the data in the filling file can be preset, and the encryption efficiency of the filling file is high. After the filling file is spliced to obtain an original audio file for 10 minutes, each bit of the executable file of the original audio file for 10 minutes is inverted by bit, for example, 0 is replaced by 1,1 is replaced by 0, and after the inversion, the encrypted first audio file is obtained. The first audio file is transmitted to the server for saving.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
According to another aspect of the embodiment of the present invention, there is also provided an audio transmission apparatus for implementing the above audio transmission method. As shown in fig. 3, the apparatus includes:
(1) An obtaining unit 302, configured to obtain, in real time, the audio recorded by the recording device in a process of recording the audio by the recording device after the recording device is turned on;
(2) A first determining unit 304, configured to determine the audio of the predetermined duration as an original audio file, where the acquired duration of the audio reaches a predetermined duration;
(3) The processing unit 306 is configured to delete noise data in the original audio file after the original audio file is acquired, and perform an encryption operation on the original audio file to obtain a first audio file;
(4) A transmitting unit 308, configured to transmit the first audio file to a receiving party.
Alternatively, the above-described audio transmission apparatus may be applied to the field of audio encryption transmission, but is not limited to. Taking audio encryption transmission as an example, after the recording device is started, the recording device starts to record audio, and the audio recorded by the recording device is obtained in real time in the process of recording the audio. Under the condition that the acquired time length of the audio reaches a preset time length, determining the audio with the preset time length as an original audio file; after the original audio file is obtained, deleting noise data in the original audio file, and executing encryption operation on the original audio file to obtain a first audio file; and sending the first audio file to a receiver.
Through the device, the audio transmission can be recorded and transmitted simultaneously in the audio transmission process, the audio transmission safety is ensured, and the audio transmission efficiency is improved.
Optionally, the recording device in the scheme can be a recording device located at a fixed position or a recording device worn by a worker. The recording device can be automatically or manually opened and closed, after the recording device is opened, the recording device starts recording, and after the recording device is closed, the recording device ends recording.
Optionally, in the audio recording process in this embodiment, the audio of the predetermined duration may be determined as an original audio file in each case that the recording device records the predetermined duration. For example, every 10 minutes of audio recorded by the recording device, the audio recorded within the 10 minutes is saved as an original audio file. In this case, recording audio while saving the original audio file can be realized.
Optionally, in the process of recording audio, if a stop instruction is received under the condition that the audio recorded by the recording device does not reach the preset time length, determining the audio which does not reach the preset time length as the original audio file, wherein the stop instruction is used for closing the recording device. That is, if the recorded audio has not reached the predetermined length of time, the recording apparatus is turned off, and the audio that has not reached the predetermined length of time is determined as an original audio file.
Alternatively, the case where the audio duration does not reach the predetermined duration may be that the recording device is turned on, the recording device is turned off when the predetermined duration has not been reached, or after a plurality of original audio files are recorded (each of the audio files of the predetermined duration is stored as one of the original audio files), and when the audio to be continuously recorded does not reach the predetermined duration, the recording device is turned off, and the audio to be continuously recorded is stored as one of the original audio files. For example, if the predetermined time period is 10 minutes, the recording device is turned off when the predetermined time period is not 10 minutes, and the audio which is not 10 minutes is determined as an original audio file. If the recording device recorded 25 minutes of audio, two 10 minutes of original audio files and one 5 minutes of original audio file were obtained.
Alternatively, after the original audio file is acquired, noise data in the original audio file may be removed. Optionally, the noise data in the present scheme includes silence segments in the original audio file. That is, there may be a case where no sound is generated for a long time during the recording by the recording apparatus. Such as no one speaking. At this time, a longer mute segment is generated. The silence segments need to be deleted.
The specific means may be to obtain a waveform diagram of the original audio file; detecting the highest point of the amplitude of each frame of audio file in the oscillogram; determining a predetermined number of audio file frames as the noise data in the case where the highest point of the amplitude of each of the audio file frames is less than a predetermined threshold value in the consecutive predetermined number of audio file frames; deleting the noise data; and executing encryption operation on the original audio file after deleting the noise data to obtain the first audio file.
Alternatively, the audio recorded by the recording device may be converted into a numerical value and the numerical value converted into a waveform diagram.
For example, as shown in fig. 2, fig. 2 is a waveform diagram of an alternative original audio file, which contains 5 frames of audio. The highest point of the amplitude of the audio of the first three frames is less than the predetermined threshold 202, frame 4 begins and the highest point of the amplitude of the audio exceeds the predetermined threshold 202. For example, a predetermined number of 3, the first three tones are determined to be truly noise data. If the predetermined number is 4, the first three tones will not be considered as noise data because only three frames are connected and the predetermined number is not reached, although the amplitude peak is less than the predetermined threshold 202.
Alternatively, after deleting noise data of the original audio files, file durations of the original audio files each of which has deleted noise data may be different. At this time, the file duration of each original audio file from which noise data is deleted may be adjusted to the same duration.
For example, the file duration of the original audio file with the noise data deleted is three minutes, the original audio file can be adjusted to ten minutes, the adjustment means can be to splice a filling file at the end of the original audio file with the noise data deleted, the data in the filling file is preset data, and the length can be adjusted at will. The encryption efficiency of the filler file in the encryption process is higher than that of the noise data.
After obtaining the filled original audio file, encrypting the filled original audio file. In the encryption process, an executable file of the filled original audio file can be obtained, each bit of data stored in the executable file is 0 or 1, and when in encryption, each bit of data in the executable file is subjected to inversion operation, namely 0 is changed to 1,1 is changed to 0, or inversion operation is performed on data of a plurality of target bits in the executable file, and the aim is to randomly determine or take every other plurality of data bits. And after the first audio file is obtained through encryption, transmitting the first audio file. When the first audio file is transmitted, if the recording equipment is not closed, the recording equipment is always in a state of recording audio, and the effect of recording the audio and transmitting the audio is realized.
The following is described in connection with a specific example.
In the online store, the staff wears intelligent work card, and intelligent work card has recording equipment, and after the staff opened recording equipment, recording equipment began recording audio frequency. When the audio recorded by the recording device reaches 10 minutes, the audio of 10 minutes is stored as an original audio file, and at the moment, the recording device continues recording and processes the original audio file of 10 minutes. First, a waveform diagram of an original audio file is acquired. The audio data of the original audio file may be converted into a numerical value and the numerical value converted into a waveform diagram, the abscissa of which is time and the ordinate of which is sound intensity. If the sound intensity of a plurality of consecutive audio frames, such as 10 or more consecutive audio frames, is below a predetermined threshold, this time period is indicated, and there is no possibility that a person is speaking, and therefore, the data of this time period needs to be deleted as noise data. After deletion, the remaining audio frames are those when the worker or customer speaks. After the deletion action described above is performed, the duration of the original audio file may be changed, for example, 10 minutes of audio is deleted to 8 minutes. At this time, in order to make the operation of the subsequent encryption process not complex, the original audio file of 8 minutes can be supplemented, and the filling file of 2 minutes is spliced later, the data in the filling file can be preset, and the encryption efficiency of the filling file is high. After the filling file is spliced to obtain an original audio file for 10 minutes, each bit of the executable file of the original audio file for 10 minutes is inverted by bit, for example, 0 is replaced by 1,1 is replaced by 0, and after the inversion, the encrypted first audio file is obtained. The first audio file is transmitted to the server for saving.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.
Claims (6)
1. An audio transmission method, comprising:
After starting a recording device, acquiring the audio recorded by the recording device in real time in the process of recording the audio by the recording device;
Under the condition that the acquired time length of the audio reaches a preset time length, determining the audio with the preset time length as an original audio file;
acquiring a waveform diagram of the original audio file, and detecting the highest point of the amplitude of each frame of audio file in the waveform diagram;
Determining a predetermined number of audio file frames as noise data in the case where the highest point of the amplitude of each of the audio file frames is less than a predetermined threshold value in the consecutive predetermined number of audio file frames;
deleting the noise data, and acquiring a first duration of the original audio file after deleting the noise data and a difference value between the first duration and a target duration, wherein the target duration is the same as or different from the original audio file duration;
acquiring a filling file with the same file duration as the difference value, wherein file data of the filling file are preset data;
Splicing the filling file to the tail of the audio data corresponding to the first time length of the original audio file after deleting the noise data to obtain a target file;
And executing encryption operation on the target file to obtain a first audio file, wherein the method comprises the following steps: acquiring an executable file of the target file; performing bit-wise negation operation on each bit of data in the executable file to obtain the first audio file; or determining a plurality of target bits in the executable file, and executing a negation operation on the numerical value of each target bit to obtain the first audio file;
and sending the first audio file to a receiver.
2. The method of claim 1, wherein after the audio recorded by the recording device is acquired in real time during the recording of the audio by the recording device after the recording device is turned on, the method further comprises:
and under the condition that the audio recorded by the recording equipment does not reach the preset time length, determining the audio which does not reach the preset time length as the original audio file under the condition that a stop instruction is received, wherein the stop instruction is used for closing the recording equipment.
3. The method of claim 1, wherein the determining the audio for the predetermined duration as an original audio file if the duration of the acquired audio reaches a predetermined duration comprises:
determining each acquired audio of the predetermined duration as one of the original audio files.
4. An audio transmission apparatus, comprising:
The acquisition unit is used for acquiring the audio recorded by the recording equipment in real time in the process of recording the audio by the recording equipment after the recording equipment is started;
a first determining unit, configured to determine, when the acquired duration of the audio reaches a predetermined duration, the audio of the predetermined duration as an original audio file;
the first acquisition module is used for acquiring the waveform diagram of the original audio file;
The detection module is used for detecting the highest point of the amplitude of each frame of audio file in the oscillogram;
A second determination module is provided for determining, based on the first determination module, for use in a predetermined number of consecutive frames of an audio file, in case the highest point of the amplitude of each of the audio file frames is smaller than a predetermined threshold, the predetermined number of the audios the file frame is determined to be noise data;
a deleting module, configured to delete the noise data;
The second acquisition module is used for acquiring a first duration of the original audio file after deleting the noise data;
A third obtaining module, configured to obtain a difference value between the first duration and a target duration, where the target duration is the same as or different from the original audio file duration;
A fourth obtaining module, configured to obtain a filling file with the same file duration as the difference value, where file data of the filling file is preset data;
the splicing unit is used for splicing the filling file to the tail of the audio data corresponding to the first time length of the original audio file after deleting the noise data to obtain a target file;
The encryption module is configured to perform an encryption operation on the target file to obtain a first audio file, and includes: acquiring an executable file of the target file; performing bit-wise negation operation on each bit of data in the executable file to obtain the first audio file; or determining a plurality of target bits in the executable file, and executing a negation operation on the numerical value of each target bit to obtain the first audio file;
And the sending unit is used for sending the first audio file to a receiver.
5. The apparatus of claim 4, wherein the apparatus further comprises:
And the second determining unit is used for determining the audio which does not reach the preset duration as the original audio file under the condition that a stop instruction is received under the condition that the audio which is not reach the preset duration is not reached to the preset duration after the audio recorded by the recording equipment is obtained in real time in the process of recording the audio by the recording equipment after the recording equipment is started, wherein the stop instruction is used for closing the recording equipment.
6. The apparatus according to claim 4, wherein the first determining unit includes:
A first determining module, configured to determine each acquired audio of the predetermined duration as one of the original audio files.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010373579.1A CN111953727B (en) | 2020-05-06 | 2020-05-06 | Audio transmission method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010373579.1A CN111953727B (en) | 2020-05-06 | 2020-05-06 | Audio transmission method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111953727A CN111953727A (en) | 2020-11-17 |
| CN111953727B true CN111953727B (en) | 2024-08-02 |
Family
ID=73337071
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010373579.1A Active CN111953727B (en) | 2020-05-06 | 2020-05-06 | Audio transmission method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111953727B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114070647A (en) * | 2021-11-29 | 2022-02-18 | 中国银行股份有限公司 | Video transmission system and video transmission method |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103646654A (en) * | 2013-12-12 | 2014-03-19 | 深圳市金立通信设备有限公司 | Recording data sharing method and terminal |
| CN110148402A (en) * | 2019-05-07 | 2019-08-20 | 平安科技(深圳)有限公司 | Method of speech processing, device, computer equipment and storage medium |
Family Cites Families (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008309959A (en) * | 2007-06-13 | 2008-12-25 | Sanyo Electric Co Ltd | Audio signal recording device and electronic file |
| CN102693398B (en) * | 2012-05-09 | 2015-04-01 | 深圳大学 | Data encryption method and system |
| US9437205B2 (en) * | 2013-05-10 | 2016-09-06 | Tencent Technology (Shenzhen) Company Limited | Method, application, and device for audio signal transmission |
| CN103974143B (en) * | 2014-05-20 | 2017-11-07 | 北京速能数码网络技术有限公司 | A kind of method and apparatus for generating media data |
| CN104243166A (en) * | 2014-09-05 | 2014-12-24 | 深圳市中兴移动通信有限公司 | Recording encryption method and device |
| CN104538048B (en) * | 2015-01-27 | 2016-08-03 | 努比亚技术有限公司 | A kind of processing method and processing device of audio file |
| CN106506828B (en) * | 2016-10-27 | 2019-08-06 | 北京安云世纪科技有限公司 | Restricted recording method, device and portable mobile terminal |
| CN110401527B (en) * | 2018-04-25 | 2022-03-08 | 腾讯科技(深圳)有限公司 | Data encryption and decryption method and device and storage medium |
| CN108989287B (en) * | 2018-06-13 | 2020-11-27 | 平安科技(深圳)有限公司 | Encryption method, device, terminal equipment and storage medium |
| CN109087632B (en) * | 2018-08-17 | 2023-06-06 | 平安科技(深圳)有限公司 | Speech processing method, device, computer equipment and storage medium |
-
2020
- 2020-05-06 CN CN202010373579.1A patent/CN111953727B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103646654A (en) * | 2013-12-12 | 2014-03-19 | 深圳市金立通信设备有限公司 | Recording data sharing method and terminal |
| CN110148402A (en) * | 2019-05-07 | 2019-08-20 | 平安科技(深圳)有限公司 | Method of speech processing, device, computer equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111953727A (en) | 2020-11-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9781109B2 (en) | Method, terminal device, and network device for improving information security | |
| US20180124023A1 (en) | Method, system and apparatus for storing website private key plaintext | |
| US10796713B2 (en) | Identification of noise signal for voice denoising device | |
| CN111586050A (en) | Audio file transmission method and device, storage medium and electronic equipment | |
| CN111917555A (en) | Data processing method and device | |
| CN111953727B (en) | Audio transmission method and device | |
| CN103347070B (en) | Push method, terminal, server and the system of speech data | |
| US10079735B2 (en) | Optimization of web page download duration based on resource key performance indicator and network performance metric | |
| CN106612264A (en) | Method and device for acquiring file decompression password | |
| CN111953668A (en) | Network security information processing method and device | |
| AU2013396016A1 (en) | Method implemented by computer for capturing evidentiary audiovisual and/or multimedia information and computer program | |
| CN106209905B (en) | Network security management method and device | |
| CN113890828A (en) | Method and device for adjusting bandwidth, electronic equipment and storage medium | |
| CN111046314A (en) | Report form viewing method and device, electronic equipment and storage medium | |
| US20180242157A1 (en) | Wireless communication apparatus, wireless communication system, evaluation method, and non-transitory computer readable medium storing program | |
| CN108109625B (en) | Mobile phone voice recognition internal and external network transmission system and method | |
| AU2015247503B2 (en) | Systems, methods and devices for electronic communications having decreased information loss | |
| CN111526204A (en) | Audio transmission method and device | |
| CN106878299B (en) | A voice encryption and decryption method and device | |
| CN111292747B (en) | Text automatic voice input system for telephone network | |
| CN116631109A (en) | Voiceprint-based identification method and device, electronic equipment, storage medium | |
| CN111506913B (en) | Audio encryption method and device, storage medium and electronic device | |
| CN113961432A (en) | Method, device, electronic device and storage medium for generating data report | |
| CN111586039A (en) | Audio data encryption method and device, storage medium and electronic device | |
| CN111698535A (en) | Timing and directional encryption sharing system for video, audio and picture |
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 |