CN108806701A - Voice data method for scrambling and device, voice data de-scrambling method and device - Google Patents

Voice data method for scrambling and device, voice data de-scrambling method and device Download PDF

Info

Publication number
CN108806701A
CN108806701A CN201810596496.1A CN201810596496A CN108806701A CN 108806701 A CN108806701 A CN 108806701A CN 201810596496 A CN201810596496 A CN 201810596496A CN 108806701 A CN108806701 A CN 108806701A
Authority
CN
China
Prior art keywords
data
target
voice
frame
scrambling
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.)
Granted
Application number
CN201810596496.1A
Other languages
Chinese (zh)
Other versions
CN108806701B (en
Inventor
邓积艺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGZHOU SPEAKIN INTELLIGENT TECHNOLOGY Co.,Ltd.
Original Assignee
Guangzhou Speakin Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Speakin Network Technology Co Ltd filed Critical Guangzhou Speakin Network Technology Co Ltd
Priority to CN201810596496.1A priority Critical patent/CN108806701B/en
Publication of CN108806701A publication Critical patent/CN108806701A/en
Application granted granted Critical
Publication of CN108806701B publication Critical patent/CN108806701B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Acoustics & Sound (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses a kind of voice data method for scrambling, including:Initial speech data frame is obtained, and calculates the length of the voice data in initial speech data frame;Voice data is divided into multiple primary data sections according to the length of voice data, and determines the length of each primary data section;Target data head is added for each primary data section, obtains multiple target data segments, wherein target data head includes:The length of constant mark and primary data section;The multiple target data segments of sequential concatenation, obtain target speech data frame.After this method scrambled voice data, voice data holder only can be with audition voice data, and other unwarranted purposes can not be carried out using voice data, to limit the access right of voice data, protects the safety and privacy of voice data.A kind of voice data scrambling apparatus disclosed by the invention and a kind of voice data de-scrambling method and device, similarly have above-mentioned technique effect.

Description

Voice data method for scrambling and device, voice data de-scrambling method and device
Technical field
The present invention relates to audio signal processing technique field, more specifically to a kind of voice data method for scrambling and device, A kind of voice data de-scrambling method and device.
Background technology
It is merged with the continuous development of computer technology and audio signal processing technique, data encryption technology is widely used to sound Frequency process field, to protect the safety and privacy of voice data.
Currently, generally using the safety and privacy of data compression method or data ciphering method protection voice data, still After being handled voice data using data compression method or data ciphering method, to audition voice data, then need pair Voice data is unziped it or is decrypted.And since the voice data after decompression or decryption is primary voice data, if data Holder carries out other unwarranted purposes using the voice data, then the safety and privacy of voice data still cannot get It is effectively protected;Also, before audition voice data, the operation it is unziped it or is decrypted, due to increasing volume Outer processing action, to reduce the treatment effeciency of voice data.
Therefore, the safety and privacy for how protecting voice data, improve the treatment effeciency of voice data, are art technologies Personnel's problem to be solved.
Invention content
The purpose of the present invention is to provide a kind of voice data method for scrambling and device, a kind of voice data de-scrambling method and Device improves the treatment effeciency of voice data to protect the safety and privacy of voice data.
To achieve the above object, an embodiment of the present invention provides following technical solutions:
A kind of voice data method for scrambling, including:
Initial speech data frame is obtained, and calculates the length of the voice data in the initial speech data frame;
The voice data is divided into multiple primary data sections according to the length of the voice data, and is determined each initial The length of data segment;
Target data head is added for each primary data section, obtains multiple target data segments, wherein the target data head Including:The length of constant mark and primary data section;
The multiple target data segment of sequential concatenation, obtains target speech data frame.
Wherein, the acquisition initial speech data frame, and calculate the length of the voice data in the initial speech data frame Degree, including:
Initial speech data frame is obtained, and deletes the primary data frame head in the initial speech data frame;
Calculate the length of the voice data after deleting the primary data frame head.
Wherein, the multiple target data segment of the sequential concatenation obtains target speech data frame, including:
The multiple target data segment of sequential concatenation forms target speech data;
Target data frame head is added for the target speech data, obtains target speech data frame.
Wherein, further include:
Initial speech file is obtained, and determines the initial speech data frame in the initial speech file;
For each initial speech data frame in the initial speech file, the acquisition initial speech data is executed Frame, and calculate the length of the voice data in the initial speech data frame;According to the length of the voice data by institute's predicate Sound data are divided into multiple primary data sections, and determine the length of each primary data section;Target is added for each primary data section Data head obtains multiple target data segments, wherein the target data head includes:The length of constant mark and primary data section; The multiple target data segment of sequential concatenation, obtains multiple target speech data frames at the step of obtaining target speech data frame;
The multiple target speech data frame of sequential concatenation, and according to the generation pair of the audio format of the initial speech file The target voice file answered.
A kind of voice data scrambling apparatus, including:
Acquisition module for obtaining initial speech data frame, and calculates the voice data in the initial speech data frame Length;
The voice data is divided into multiple primary data sections by division module for the length according to the voice data, And determine the length of each primary data section;
Add module obtains multiple target data segments for adding target data head for each primary data section, wherein The target data head includes:The length of constant mark and primary data section;
Concatenation module is used for the multiple target data segment of sequential concatenation, obtains target speech data frame.
Wherein, further include:
File scrambling module for obtaining initial speech file, and determines the initial speech in the initial speech file Data frame;
Execution module is scrambled, for for each initial speech data frame in the initial speech file, described in execution Initial speech data frame is obtained, and calculates the length of the voice data in the initial speech data frame;According to the voice number According to length the voice data is divided into multiple primary data sections, and determine the length of each primary data section;It is each first Beginning data segment adds target data head, obtains multiple target data segments, wherein the target data head includes:Constant mark and The length of primary data section;The multiple target data segment of sequential concatenation, obtains multiple the step of obtaining target speech data frame Target speech data frame;
Generation module is scrambled, is used for the multiple target speech data frame of sequential concatenation, and according to initial speech text The audio format of part generates corresponding target voice file.
A kind of voice data de-scrambling method, including:
Target speech data frame is obtained, and determines multiple number of targets in the target speech data frame according to scrambling rule According to section;
Read the target data head of each target data segment respectively, and judge respectively each target data head read with Whether the target data head of Scrambling Operation is consistent;
When the first cause of the target data of each target data head and the Scrambling Operation that read, then extraction is read The corresponding primary data section of each target data, and each primary data section of sequential concatenation generates initial speech data frame.
Wherein, further include:
Target voice file is obtained, and determines the target speech data frame in the target voice file;
For each target speech data frame in the target voice file, the acquisition target speech data is executed Frame, and according to multiple target data segments in the determining target speech data frame of scrambling rule;Each number of targets is read respectively According to the target data head of section, and judge respectively each target data head and Scrambling Operation that read target data head whether one It causes;When the first cause of the target data of each target data head for reading and the Scrambling Operation, then extract read it is every The corresponding primary data section of a target data, and each primary data section of sequential concatenation, generate the step of initial speech data frame Suddenly, multiple initial speech data frames are obtained;
The multiple initial speech data frame of sequential concatenation, and according to the generation pair of the audio format of the target voice file The initial speech file answered.
A kind of voice data descrambler, including:
Determining module determines the target speech data frame for obtaining target speech data frame, and according to scrambling rule In multiple target data segments;
Read module, the target data head for reading each target data segment respectively, and judge to read respectively every Whether the target data head of a target data head and Scrambling Operation is consistent;
Generation module, for the first cause of target data when each target data head and the Scrambling Operation read When, then the corresponding primary data section of each target data read, and each primary data section of sequential concatenation are extracted, is generated Initial speech data frame.
Wherein, further include:
File descrambling module for obtaining target voice file, and determines the target voice in the target voice file Data frame;
Execution module is descrambled, for for each target speech data frame in the target voice file, described in execution Target speech data frame is obtained, and determines multiple target data segments in the target speech data frame according to scrambling rule;Point The target data head of each target data segment is not read, and judges each target data head read and Scrambling Operation respectively Whether target data head is consistent;When the first cause of the target data of each target data head and the Scrambling Operation that read, The corresponding primary data section of each target data read, and each primary data section of sequential concatenation are then extracted, is generated just The step of beginning speech data frame, obtains multiple initial speech data frames;
Descramble generation module, is used for the multiple initial speech data frame of sequential concatenation, and according to target voice text The audio format of part generates corresponding initial speech file.
By above scheme it is found that a kind of voice data method for scrambling provided in an embodiment of the present invention, including:It obtains initial Speech data frame, and calculate the length of the voice data in the initial speech data frame;According to the length of the voice data The voice data is divided into multiple primary data sections, and determines the length of each primary data section;For each primary data section Target data head is added, multiple target data segments are obtained, wherein the target data head includes:Constant mark and primary data The length of section;The multiple target data segment of sequential concatenation, obtains target speech data frame.
As it can be seen that the method, which can be initial speech data frame, adds target data head, which is to add Interference information, so that the target speech data frame of acquisition is not only remained initial speech data, but also initial speech data is made to obtain Certain interference protection.If user holds the voice data after scrambling, can direct audition voice data, and language can not be used Sound data obtain additional interests, or carry out other unwarranted purposes using voice data, so as to limit voice number According to access right, protect the safety and privacy of voice data to a certain extent;Meanwhile the method for scrambling is reversible, i.e., Target speech data frame can be utilized to obtain initial speech data frame, to obtain initial speech data;Also, user is obtaining After scrambled voice data, without it is carried out operation bidirectional can direct audition, to improve the treatment effeciency of voice data.
Correspondingly, a kind of voice data scrambling apparatus provided in an embodiment of the present invention and a kind of voice data descrambling side Method and device, similarly have above-mentioned technique effect.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of voice data method for scrambling flow chart disclosed by the embodiments of the present invention;
Fig. 2 is speech data frame scrambling processes schematic diagram disclosed by the embodiments of the present invention;
Fig. 3 is a kind of voice data scrambling apparatus schematic diagram disclosed by the embodiments of the present invention;
Fig. 4 is a kind of voice data de-scrambling method flow chart disclosed by the embodiments of the present invention;
Fig. 5 is a kind of voice data descrambler schematic diagram disclosed by the embodiments of the present invention;
Fig. 6 is a kind of voice data scrambling disclosed by the embodiments of the present invention and/or descrambler device schematic diagram.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of voice data method for scrambling and device, a kind of voice data de-scrambling method and dresses It sets, to protect the safety and privacy of voice data, improves the treatment effeciency of voice data.
Referring to Fig. 1, a kind of voice data method for scrambling provided in an embodiment of the present invention, including:
S101, initial speech data frame is obtained, and calculates the length of the voice data in initial speech data frame;
Wherein, the acquisition initial speech data frame, and calculate the length of the voice data in the initial speech data frame Degree, including:
Initial speech data frame is obtained, and deletes the primary data frame head in the initial speech data frame;
Calculate the length of the voice data after deleting the primary data frame head.
Specifically, the present embodiment is described as unit of data frame.Usually, an initial speech data frame is by first Beginning data frame head and voice data composition, in the present solution, at mainly for the voice data in initial speech data frame Reason, after processing is completed, can be changed primary data frame head accordingly, so that it is with treated, voice data is mutual Matching.Wherein, the size of the voice data in an initial speech data frame is usually no more than 4G.
S102, voice data is divided into multiple primary data sections according to the length of voice data, and determines each initial number According to the length of section;
Specifically, after determining the length of voice data, voice data can be divided according to preset division rule For multiple primary data sections, and record the length of each primary data section.Wherein it is possible to averagely divide, can also it is steps not Deng division.
Such as:If the length of the voice data in an initial speech data frame is 1024K, if initial according to every 4K mono- Data segment is divided, then can be divided into 256 primary data sections;If steps not equal division, and according to the row of 2K, 2K, 4K Row pattern is divided, then can be divided into the permutation and combination of 128 2K, 2K, 4K, join end to end between combination, collectively constitute voice Data.
S103, target data head is added for each primary data section, obtains multiple target data segments, wherein target data Head include:The length of constant mark and primary data section;
In the present embodiment, it is the target data head of each primary data section addition by constant mark and primary data section Length forms.Wherein, constant mark is generally 4 bytes, length 4 bytes of general occupy-place of primary data section, constant mark It to recognize the label of Scrambling Operation, and can be preset according to practical application scene, therefore the present embodiment is not specifically limited herein.
It is described as example with above-mentioned, when the length of the voice data in an initial speech data frame is 1024K, and according to every Mono- primary data section of 4K is divided, then can be divided into 256 primary data sections, then distinguishing for 256 primary data sections Target data head is added, this target data head is:The data length of+4 byte of constant mark.After having added, each number of targets It is according to section:The voice data of the data length+4K of+4 byte of constant mark, totally 256 target data segments.
The multiple target data segments of S103, sequential concatenation, obtain target speech data frame.
Wherein, the multiple target data segment of the sequential concatenation obtains target speech data frame, including:Sequential concatenation The multiple target data segment forms target speech data;Target data frame head is added for the target speech data, obtains mesh Mark speech data frame.
The target data segment sequential concatenation that above-mentioned steps are obtained, then can obtain target speech data frame.Such as:It will obtain 256 target data segments obtained are spliced according to original sequence, and each target data segment joins end to end, after the completion of splicing, New target data frame head is added for spliced voice data, to obtain target speech data frame.
Specific division, splicing refer to Fig. 2, and Fig. 2 is that voice data scrambling processes provided in this embodiment are illustrated Figure.
As it can be seen that present embodiments providing a kind of voice data method for scrambling, the method can be initial speech data frame Target data head is added, which is the interference information added, and the target speech data frame of acquisition is made both to remain Initial speech data, and initial speech data is made to have obtained certain interference protection.If user holds the voice data after scrambling, Then there can be the voice data of interference information with audition, and additional interests can not be obtained using voice data, or use voice Data carry out other unwarranted purposes and protect language to a certain extent so as to limit the access right of voice data The safety and privacy of sound data;Meanwhile the method for scrambling is reversible, you can to obtain initial language using target speech data frame Sound data frame, to obtain initial speech data;Also, user is after obtaining scrambled voice data, without carrying out volume to it Outer operation can direct audition, to improve the treatment effeciency of voice data.
According to voice data method for scrambling disclosed in above-described embodiment, can scrambled voice file, detailed process is:
Initial speech file is obtained, and determines the initial speech data frame in the initial speech file;
For each initial speech data frame in the initial speech file, the acquisition initial speech data is executed Frame, and calculate the length of the voice data in the initial speech data frame;According to the length of the voice data by institute's predicate Sound data are divided into multiple primary data sections, and determine the length of each primary data section;Target is added for each primary data section Data head obtains multiple target data segments, wherein the target data head includes:The length of constant mark and primary data section; The multiple target data segment of sequential concatenation, obtains multiple target speech data frames at the step of obtaining target speech data frame;
The multiple target speech data frame of sequential concatenation, and according to the generation pair of the audio format of the initial speech file The target voice file answered.
Based on voice data method for scrambling disclosed in above-described embodiment, each initial speech number that can be directed in voice document Scrambled according to frame, and will the obtained each target data segment sequential concatenation of scrambling, with the voice document after being scrambled.Its In, the voice document after scrambling is general identical with the format of voice document before scrambling, and common file format includes:WAV, MP3, AAC and AMR etc..
A kind of voice data scrambling apparatus provided in an embodiment of the present invention is introduced below, a kind of language described below Sound data scrambling device can be cross-referenced with a kind of above-described voice data method for scrambling.
Referring to Fig. 3, a kind of voice data scrambling apparatus provided in an embodiment of the present invention, including:
Acquisition module 301 for obtaining initial speech data frame, and calculates the voice number in the initial speech data frame According to length;
The voice data is divided into multiple primary datas by division module 302 for the length according to the voice data Section, and determine the length of each primary data section;
Add module 303 is used to add target data head for each primary data section, obtains multiple target data segments, In, the target data head includes:The length of constant mark and primary data section;
Concatenation module 304 is used for the multiple target data segment of sequential concatenation, obtains target speech data frame.
Wherein, further include:
File scrambling module for obtaining initial speech file, and determines the initial speech in the initial speech file Data frame;
Execution module is scrambled, for for each initial speech data frame in the initial speech file, described in execution Initial speech data frame is obtained, and calculates the length of the voice data in the initial speech data frame;According to the voice number According to length the voice data is divided into multiple primary data sections, and determine the length of each primary data section;It is each first Beginning data segment adds target data head, obtains multiple target data segments, wherein the target data head includes:Constant mark and The length of primary data section;The multiple target data segment of sequential concatenation, obtains multiple the step of obtaining target speech data frame Target speech data frame;
Generation module is scrambled, is used for the multiple target speech data frame of sequential concatenation, and according to initial speech text The audio format of part generates corresponding target voice file.
Wherein, the acquisition module includes:
Acquiring unit for obtaining initial speech data frame, and deletes the primary data in the initial speech data frame Frame head;
Computing unit, the length for calculating the voice data after deleting the primary data frame head.
Wherein, it is described splicing include:
Concatenation unit is used for the multiple target data segment of sequential concatenation, forms target speech data;
Adding device obtains target speech data frame for adding target data frame head for the target speech data.
A kind of voice data de-scrambling method provided in an embodiment of the present invention is introduced below, a kind of language described below Sound data de-scrambling method and a kind of above-described voice data method for scrambling inverse operation each other, can be cross-referenced.
Referring to Fig. 4, a kind of voice data de-scrambling method provided in an embodiment of the present invention, including:
S401, target speech data frame is obtained, and determines multiple targets in target speech data frame according to scrambling rule Data segment;
S402, the target data head for reading each target data segment respectively, and each number of targets read is judged respectively Whether the target data head according to head and Scrambling Operation is consistent;If so, executing S403;If it is not, then executing S404;
The corresponding primary data section of each target data that S403, extraction are read, and each initial number of sequential concatenation According to section, initial speech data frame is generated;
S404, without operation.
It should be noted that each step in the present embodiment all relies on scrambling rule, and according to scrambling rule to mesh Mark speech data frame carries out fractionation descrambling.
Such as:If the length of the voice data before scrambling in initial speech data frame is 1024K, and according at the beginning of every 4K mono- Beginning data segment is divided, then the target speech data frame after scrambling is formed by 256 target data segment sequential concatenations, each mesh Marking data segment is:The voice data of the data length+4K of+4 byte of constant mark.
Target data head is read, to recognize the scrambling rule of voice data, when the target data head read and scrambling are grasped When the first cause of the target data of work, then the voice data section after the target data head is extracted, that is, extracts primary data section.To each Target data segment so operates, then can obtain multiple primary data sections, by multiple primary data sections of acquisition according to initial suitable Sequence is spliced, you can is obtained initial speech data, is so far just completed voice data descrambling.
As it can be seen that present embodiments providing a kind of voice data de-scrambling method, the method is by obtaining target speech data Frame, and according to multiple target data segments in the determining target speech data frame of scrambling rule;Each target data segment is read respectively Target data head, and judge whether the target data head of each target data head and Scrambling Operation that read consistent respectively; When the first cause of the target data of each target data head and Scrambling Operation that read, then each number of targets read is extracted According to a corresponding primary data section, and each primary data section of sequential concatenation, generate initial speech data frame.So as to complete language The descrambling of sound data, the de-scrambling method and above-described method for scrambling inverse operation each other, therefore can be cross-referenced.
According to voice data de-scrambling method disclosed in above-described embodiment, voice document can be descrambled, detailed process is:
Target voice file is obtained, and determines the target speech data frame in the target voice file;
For each target speech data frame in the target voice file, the acquisition target speech data is executed Frame, and according to multiple target data segments in the determining target speech data frame of scrambling rule;Each number of targets is read respectively According to the target data head of section, and judge respectively each target data head and Scrambling Operation that read target data head whether one It causes;When the first cause of the target data of each target data head for reading and the Scrambling Operation, then extract read it is every The corresponding primary data section of a target data, and each primary data section of sequential concatenation, generate the step of initial speech data frame Suddenly, multiple initial speech data frames are obtained;
The multiple initial speech data frame of sequential concatenation, and according to the generation pair of the audio format of the target voice file The initial speech file answered.
Based on voice data de-scrambling method disclosed in above-described embodiment, each target language that can be directed in target voice file Sound data frame is descrambled, and each primary data section sequential concatenation that descrambling is obtained, to obtain initial speech file.Its In, initial speech file is general identical with the format of voice document after scrambling, and common file format includes:WAV,MP3, AAC and AMR etc..
A kind of voice data descrambler provided in an embodiment of the present invention is introduced below, a kind of language described below Sound data de-scrambling device can be cross-referenced with a kind of above-described voice data de-scrambling method.
Referring to Fig. 5, a kind of voice data descrambler provided in an embodiment of the present invention, including:
Determining module 501 determines the target speech data for obtaining target speech data frame, and according to scrambling rule Multiple target data segments in frame;
Read module 502, target data head for reading each target data segment respectively, and judge to read respectively Whether the target data head of each target data head and Scrambling Operation is consistent;
Generation module 503, the target data for working as each target data head and the Scrambling Operation that read are first When cause, then the corresponding primary data section of each target data read, and each primary data section of sequential concatenation are extracted, it is raw At initial speech data frame.
Wherein, further include:
File descrambling module for obtaining target voice file, and determines the target voice in the target voice file Data frame;
Execution module is descrambled, for for each target speech data frame in the target voice file, described in execution Target speech data frame is obtained, and determines multiple target data segments in the target speech data frame according to scrambling rule;Point The target data head of each target data segment is not read, and judges each target data head read and Scrambling Operation respectively Whether target data head is consistent;When the first cause of the target data of each target data head and the Scrambling Operation that read, The corresponding primary data section of each target data read, and each primary data section of sequential concatenation are then extracted, is generated just The step of beginning speech data frame, obtains multiple initial speech data frames;
Descramble generation module, is used for the multiple initial speech data frame of sequential concatenation, and according to target voice text The audio format of part generates corresponding initial speech file.
The embodiment of the present invention additionally provides a kind of equipment voice data scrambling and/or descrambled, the equipment and above description Voice data method for scrambling and device, voice data de-scrambling method and device, can be cross-referenced.
Referring to Fig. 6, a kind of equipment voice data scrambling and/or descrambled provided in an embodiment of the present invention, including:
Memory 601, for storing computer program;
Processor 602 realizes that the voice data described in above-mentioned any embodiment adds when for executing the computer program The step of disturbing method and/or voice data de-scrambling method.
A kind of readable storage medium storing program for executing provided in an embodiment of the present invention is introduced below, one kind described below is readable to deposit Storage media and the method for scrambling of above-described voice data and the de-scrambling method and device of device, voice data, can be mutual Reference.
A kind of readable storage medium storing program for executing is stored with computer program, the computer program quilt on the readable storage medium storing program for executing Realizing voice data method for scrambling and/or the voice data de-scrambling method as described in above-mentioned any embodiment when processor executes Step.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest range caused.

Claims (10)

1. a kind of voice data method for scrambling, which is characterized in that including:
Initial speech data frame is obtained, and calculates the length of the voice data in the initial speech data frame;
The voice data is divided into multiple primary data sections according to the length of the voice data, and determines each primary data The length of section;
Target data head is added for each primary data section, obtains multiple target data segments, wherein the target data head packet It includes:The length of constant mark and primary data section;
The multiple target data segment of sequential concatenation, obtains target speech data frame.
2. voice data method for scrambling according to claim 1, which is characterized in that the acquisition initial speech data frame, And the length of the voice data in the initial speech data frame is calculated, including:
Initial speech data frame is obtained, and deletes the primary data frame head in the initial speech data frame;
Calculate the length of the voice data after deleting the primary data frame head.
3. voice data method for scrambling according to claim 2, which is characterized in that the multiple target of sequential concatenation Data segment obtains target speech data frame, including:
The multiple target data segment of sequential concatenation forms target speech data;
Target data frame head is added for the target speech data, obtains target speech data frame.
4. according to the voice data method for scrambling described in claim 1-3 any one, which is characterized in that further include:
Initial speech file is obtained, and determines the initial speech data frame in the initial speech file;
For each initial speech data frame in the initial speech file, the acquisition initial speech data frame is executed, and Calculate the length of the voice data in the initial speech data frame;According to the length of the voice data by the voice data It is divided into multiple primary data sections, and determines the length of each primary data section;Target data head is added for each primary data section, Obtain multiple target data segments, wherein the target data head includes:The length of constant mark and primary data section;Sequence is spelled The step of connecing the multiple target data segment, obtaining target speech data frame obtains multiple target speech data frames;
The multiple target speech data frame of sequential concatenation, and it is corresponding according to the generation of the audio format of the initial speech file Target voice file.
5. a kind of voice data scrambling apparatus, which is characterized in that including:
Acquisition module for obtaining initial speech data frame, and calculates the length of the voice data in the initial speech data frame Degree;
The voice data is divided into multiple primary data sections by division module for the length according to the voice data, and really The length of fixed each primary data section;
Add module obtains multiple target data segments, wherein described for adding target data head for each primary data section Target data head includes:The length of constant mark and primary data section;
Concatenation module is used for the multiple target data segment of sequential concatenation, obtains target speech data frame.
6. voice data scrambling apparatus according to claim 5, which is characterized in that further include:
File scrambling module for obtaining initial speech file, and determines the initial speech data in the initial speech file Frame;
Execution module is scrambled, for for each initial speech data frame in the initial speech file, executing the acquisition Initial speech data frame, and calculate the length of the voice data in the initial speech data frame;According to the voice data The voice data is divided into multiple primary data sections by length, and determines the length of each primary data section;For each initial number Target data head is added according to section, obtains multiple target data segments, wherein the target data head includes:Constant mark and initial The length of data segment;The multiple target data segment of sequential concatenation, obtains multiple targets at the step of obtaining target speech data frame Speech data frame;
Generation module is scrambled, is used for the multiple target speech data frame of sequential concatenation, and according to the initial speech file Audio format generates corresponding target voice file.
7. a kind of voice data de-scrambling method, which is characterized in that including:
Target speech data frame is obtained, and determines multiple target datas in the target speech data frame according to scrambling rule Section;
The target data head of each target data segment is read respectively, and judges each target data head read and scrambling respectively Whether the target data head of operation is consistent;
When the first cause of the target data of each target data head for reading and the Scrambling Operation, then extract read it is every The corresponding primary data section of a target data, and each primary data section of sequential concatenation, generate initial speech data frame.
8. voice data de-scrambling method according to claim 7, which is characterized in that further include:
Target voice file is obtained, and determines the target speech data frame in the target voice file;
For each target speech data frame in the target voice file, the acquisition target speech data frame is executed, and Multiple target data segments in the target speech data frame are determined according to scrambling rule;Each target data segment is read respectively Target data head, and judge whether the target data head of each target data head and Scrambling Operation that read is consistent respectively;When When the first cause of the target data of each target data head for reading and the Scrambling Operation, then each target read is extracted It the step of corresponding primary data section of data head, and each primary data section of sequential concatenation, generation initial speech data frame, obtains Multiple initial speech data frames;
The multiple initial speech data frame of sequential concatenation, and it is corresponding according to the generation of the audio format of the target voice file Initial speech file.
9. a kind of voice data descrambler, which is characterized in that including:
Determining module is determined for obtaining target speech data frame, and according to scrambling rule in the target speech data frame Multiple target data segments;
Read module, the target data head for reading each target data segment respectively, and each mesh read is judged respectively Whether the target data head for marking data head and Scrambling Operation is consistent;
Generation module, for when the first cause of the target data of each target data head for reading and the Scrambling Operation, then The corresponding primary data section of each target data read, and each primary data section of sequential concatenation are extracted, is generated initial Speech data frame.
10. voice data descrambler according to claim 9, which is characterized in that further include:
File descrambling module for obtaining target voice file, and determines the target speech data in the target voice file Frame;
Execution module is descrambled, for for each target speech data frame in the target voice file, executing the acquisition Target speech data frame, and according to multiple target data segments in the determining target speech data frame of scrambling rule;It reads respectively The target data head of each target data segment is taken, and judges the target of each target data head and Scrambling Operation read respectively Whether data head is consistent;When the first cause of the target data of each target data head and the Scrambling Operation that read, then carry The corresponding primary data section of each target data got, and each primary data section of sequential concatenation are read, initial language is generated The step of sound data frame, obtains multiple initial speech data frames;
Descramble generation module, is used for the multiple initial speech data frame of sequential concatenation, and according to the target voice file Audio format generates corresponding initial speech file.
CN201810596496.1A 2018-06-11 2018-06-11 Voice data scrambling method and device and voice data descrambling method and device Active CN108806701B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810596496.1A CN108806701B (en) 2018-06-11 2018-06-11 Voice data scrambling method and device and voice data descrambling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810596496.1A CN108806701B (en) 2018-06-11 2018-06-11 Voice data scrambling method and device and voice data descrambling method and device

Publications (2)

Publication Number Publication Date
CN108806701A true CN108806701A (en) 2018-11-13
CN108806701B CN108806701B (en) 2020-09-01

Family

ID=64089019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810596496.1A Active CN108806701B (en) 2018-06-11 2018-06-11 Voice data scrambling method and device and voice data descrambling method and device

Country Status (1)

Country Link
CN (1) CN108806701B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109410955A (en) * 2018-12-07 2019-03-01 广州势必可赢网络科技有限公司 A kind of time slot scrambling of voice data, system, device and storage medium
CN113411291A (en) * 2020-03-17 2021-09-17 国广融合(北京)传媒科技发展有限公司 File transmission protection method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1365496A (en) * 2000-02-15 2002-08-21 麦克罗维西恩公司 The copy protection of digital audio compact discs
CN101325479A (en) * 2007-06-13 2008-12-17 中兴通讯股份有限公司 Scrambling control method and apparatus based on multiplexed sub frame
CN101924595A (en) * 2009-06-12 2010-12-22 北京视博数字电视科技有限公司 Audio scrambling method, descrambling method and device thereof
US7917922B1 (en) * 1995-06-08 2011-03-29 Schwab Barry H Video input switching and signal processing apparatus
CN102752400A (en) * 2012-07-18 2012-10-24 中央人民广播电台 Multiplicity speed security transmission method of inter-network audio file and system thereof
CN103985388A (en) * 2014-04-17 2014-08-13 苏州乐聚一堂电子科技有限公司 Intelligent audio scrambling method and control device
CN105721099A (en) * 2016-01-19 2016-06-29 努比亚技术有限公司 Terminal and near-field communication method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7917922B1 (en) * 1995-06-08 2011-03-29 Schwab Barry H Video input switching and signal processing apparatus
US20140317656A1 (en) * 1995-06-08 2014-10-23 Videa, Llc Video input switching and signal processing apparatus
CN1365496A (en) * 2000-02-15 2002-08-21 麦克罗维西恩公司 The copy protection of digital audio compact discs
CN101325479A (en) * 2007-06-13 2008-12-17 中兴通讯股份有限公司 Scrambling control method and apparatus based on multiplexed sub frame
CN101924595A (en) * 2009-06-12 2010-12-22 北京视博数字电视科技有限公司 Audio scrambling method, descrambling method and device thereof
CN102752400A (en) * 2012-07-18 2012-10-24 中央人民广播电台 Multiplicity speed security transmission method of inter-network audio file and system thereof
CN103985388A (en) * 2014-04-17 2014-08-13 苏州乐聚一堂电子科技有限公司 Intelligent audio scrambling method and control device
CN105721099A (en) * 2016-01-19 2016-06-29 努比亚技术有限公司 Terminal and near-field communication method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109410955A (en) * 2018-12-07 2019-03-01 广州势必可赢网络科技有限公司 A kind of time slot scrambling of voice data, system, device and storage medium
CN113411291A (en) * 2020-03-17 2021-09-17 国广融合(北京)传媒科技发展有限公司 File transmission protection method and device

Also Published As

Publication number Publication date
CN108806701B (en) 2020-09-01

Similar Documents

Publication Publication Date Title
CN106412907B (en) Network access method, related equipment and system
KR101582128B1 (en) Method, Device and System for encrypting and decrypting image
EP2891109A1 (en) A video file encryption and decryption method, device, and mobile terminal
CN106650327A (en) so file dynamic recovery-based Android application reinforcement method
CN111327947B (en) Screen capture management method and device and mobile terminal
CN105468990A (en) Sensitive information management control method and apparatus
CN107516045A (en) Document protection method and device
CN108806701A (en) Voice data method for scrambling and device, voice data de-scrambling method and device
CN207150607U (en) A kind of data encrypting and deciphering system based on biological characteristic
CN109743579A (en) A kind of method for processing video frequency and device, storage medium and processor
CN105260980A (en) Method and system for synthesizing and generating water mark
CN108256342B (en) Encryption method and device and decryption method and device of Shader file
CN106709380A (en) Encryption and decryption method and system capable of aiming at disk data memory area
CN112837202B (en) Watermark image generation and attack tracing method and device based on privacy protection
CN109299611A (en) File encrypting method, device, equipment/terminal/server and computer readable storage medium
CN106529316A (en) Image data encryption method and device, and internet protocol camera
CN105893862A (en) Browser cache data protection method and device
CN104869170A (en) Decryption method for encrypted data file of UC browser
CN106845273B (en) A kind of method and apparatus for protecting intelligent terminal local file
CN113434827A (en) Information tracing method, device and system, electronic equipment and storage medium
KR101676720B1 (en) Method and apparatus for decoding electronic documents
KR101572242B1 (en) Preventing system and method for copying electronic book
CN107832464B (en) Data bleaching method and device
CN109743580A (en) A kind of method for processing video frequency and device, storage medium and processor
KR101837963B1 (en) System, method and program for protecting copying webtoon

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
CP03 Change of name, title or address

Address after: 510700 room a401-1, zone a, Guangzhou International Business Incubator, No. 3, Juquan Road, Science City, Huangpu District, Guangzhou, Guangdong Province (office only)

Patentee after: GUANGZHOU SPEAKIN INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 510000 Room 105-58, 230 Huangge Section of South Highway, Huangge Town, Nansha District, Guangzhou City, Guangdong Province

Patentee before: SPEAKIN TECHNOLOGIES Co.,Ltd.

CP03 Change of name, title or address