CN106297812A - A kind of data processing method and terminal - Google Patents

A kind of data processing method and terminal Download PDF

Info

Publication number
CN106297812A
CN106297812A CN201610822825.0A CN201610822825A CN106297812A CN 106297812 A CN106297812 A CN 106297812A CN 201610822825 A CN201610822825 A CN 201610822825A CN 106297812 A CN106297812 A CN 106297812A
Authority
CN
China
Prior art keywords
target
compression
speech data
terminal
compression ratio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610822825.0A
Other languages
Chinese (zh)
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201610822825.0A priority Critical patent/CN106297812A/en
Publication of CN106297812A publication Critical patent/CN106297812A/en
Pending legal-status Critical Current

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
    • G10L19/04Speech 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 using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/18Vocoders using multiple modes
    • G10L19/24Variable rate codecs, e.g. for generating different qualities using a scalable representation such as hierarchical encoding or layered encoding
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/03Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The embodiment of the invention discloses method and terminal that a kind of data process, wherein method includes: obtain the speech data for voice conversation communication;Obtain the objective attribute target attribute parameter of described speech data, according to the corresponding relation of preset property parameters Yu compression ratio, obtain the target compression that described objective attribute target attribute parameter is corresponding;According to described target compression, described speech data is compressed coded treatment, it is thus achieved that speech message;Send described speech message.The present invention implements a kind of terminal is also disclosed.The terminal of the embodiment of the present invention can select the compression ratio being suitable for that speech data is compressed coded treatment according to the objective attribute target attribute parameter of voice, it is thus achieved that speech message transmits again, is effectively improved the compression effectiveness of speech message, improves the voice communication quality of speech message.

Description

A kind of data processing method and terminal
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of data processing method and terminal.
Background technology
Along with the fast development of the communications industry, communicated by terminal and have become as one of most important exchange way. And along with 4G, the development of WIFI network, voice-over-net (the such as networking telephone, voice-enabled chat based on MSN) Become the communication modes that people are daily especially, and people are more and more higher to the requirement of voice communication quality.
At present, owing to the speech data of transmission network voice need to take bigger network traffics, therefore terminal need to be to acquisition To speech data be compressed coded treatment after be transmitted again.But, current terminal is being compressed volume to voice-over-net During Ma, terminal is all to use fixing compression ratio to be compressed voice-over-net by preset compressed format, and this makes When terminal speech data unsharp to sound may use higher compression ratio to be compressed coding, after this makes compressed encoding Speech data may audio distortions, cause partner cannot know speech data content, thus reduce voice communication quality.
Summary of the invention
The embodiment of the present invention provides a kind of data processing method, can improve the voice communication quality of speech message.
First aspect, embodiments provides a kind of method that data process, and the method includes:
Obtain the speech data for voice conversation communication;
Obtain the objective attribute target attribute parameter of described speech data, according to the corresponding relation of preset property parameters Yu compression ratio, Obtain the target compression that described objective attribute target attribute parameter is corresponding;
According to described target compression, described speech data is compressed coded treatment, it is thus achieved that speech message;
Send described speech message.
Second aspect, embodiments provides a kind of terminal, and described terminal includes:
First acquiring unit, for obtaining the speech data for voice conversation communication;
Second acquisition unit, for obtaining the objective attribute target attribute parameter of described speech data, according to preset property parameters with The corresponding relation of compression ratio, obtains the target compression that described objective attribute target attribute parameter is corresponding;
Processing unit, for being compressed coded treatment according to described target compression to described speech data, it is thus achieved that language Sound message;
Transmitting element, is used for sending described speech message.
In embodiments of the present invention, terminal obtains the speech data for voice conversation communication, obtains described speech data Objective attribute target attribute parameter, according to the corresponding relation of preset property parameters Yu compression ratio, obtain described objective attribute target attribute parameter corresponding Target compression, according to described target compression, described speech data is compressed coded treatment, it is thus achieved that speech message, send out Sending described speech message, this makes terminal the compression ratio being suitable for can be selected voice number according to the objective attribute target attribute parameter of speech data According to being compressed coding, it is thus achieved that speech message transmits, it is effectively improved the compression effectiveness of speech message again, improves the language of speech message Sound communication quality.
Accompanying drawing explanation
In order to be illustrated more clearly that embodiment of the present invention technical scheme, required use in embodiment being described below Accompanying drawing is briefly described, it should be apparent that, the accompanying drawing in describing below is some embodiments of the present invention, general for this area From the point of view of logical technical staff, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow diagram of the method that a kind of data that the embodiment of the present invention provides process;
Fig. 2 is the schematic flow diagram of the method that the another kind of data that the embodiment of the present invention provides process;
Fig. 3 is the schematic flow diagram of the method that another data that the embodiment of the present invention provides process;
Fig. 4 is the schematic flow diagram of the method that another data that the embodiment of the present invention provides process;
Fig. 5 is a kind of terminal structure figure that the embodiment of the present invention provides;
Fig. 6 is the another kind of terminal structure figure that the embodiment of the present invention provides;
Fig. 7 is another terminal structure figure that the embodiment of the present invention provides.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments wholely.Based on this Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise Example, broadly falls into the scope of protection of the invention.
Should be appreciated that when using in this specification and in the appended claims, term " includes " and " comprising " instruction Described feature, entirety, step, operation, element and/or the existence of assembly, but it is not precluded from one or more further feature, whole Body, step, operation, element, assembly and/or the existence of its set or interpolation.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Hereafter clearly indicating other situation, otherwise " ", " " and " being somebody's turn to do " of singulative is intended to include plural form.
It will be further appreciated that, the term "and/or" used in description of the invention and appended claims is Refer to the one or more any combination being associated in the item listed and likely combine, and including that these combine.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if be detected that [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to really Fixed " or " [described condition or event] once being detected " or " in response to [described condition or event] being detected ".
In implementing, the terminal described in the embodiment of the present invention includes but not limited to such as have touch sensitive surface Mobile phone, laptop computer or the tablet PC of (such as, touch-screen display and/or touch pad) etc other just Portable device.It is to be further understood that in certain embodiments, described equipment not portable communication device, but have tactile Touch the desk computer of sensing surface (such as, touch-screen display and/or touch pad).
In discussion below, describe the terminal including display and touch sensitive surface.It is, however, to be understood that It is that terminal can include such as physical keyboard, mouse and/or control other physical user-interface device one or more of bar.
Terminal supports various application programs, such as following in one or more: drawing application program, demonstration application journey Sequence, word-processing application, website create application program, dish imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support the application of application program, photo management application program, digital camera application program, digital camera application program, web-browsing Program, digital music player application and/or video frequency player application program.
The various application programs that can perform in terminal can use at least one of such as touch sensitive surface public Physical user-interface device.Among applications and/or can adjust in corresponding application programs and/or change and touch sensitive table The corresponding information of display in one or more functions in face and terminal.So, the public physical structure of terminal (such as, touches Sensing surface) the various application programs with the most directly perceived and transparent user window can be supported.
The data processing method that the embodiment of the present invention provides can apply to terminal and carries out the scene of language data process.Its In, terminal may include that the intelligent terminal such as computer, panel computer, notebook, and above-mentioned terminal is only citing, and non exhaustive, comprises But it is not limited to above-mentioned terminal.
See Fig. 1, be the schematic flow diagram of the embodiment of the present invention a kind of data processing method of offer, as shown in the figure shown in 1, A kind of data processing method can comprise the following steps that
S0100, obtains the speech data for voice conversation communication.
In embodiments of the present invention, terminal can carry out voice communication with other-end, and wherein, terminal can monitor whether to obtain To carrying out the instruction of voice communication with other-end, when terminal gets the instruction carrying out voice communication with other-end, eventually End can determine that and carries out voice communication with other-end, and gathers the speech data of user's input;When terminal gets with other eventually When end terminates the instruction of voice communication, terminal can terminate to gather the speech data of user's input.
In embodiments of the present invention, terminal can the sound-conducting apparatus such as built-in microphone, terminal can be used by sound-conducting apparatus collection The speech data of family input.Concrete, the speech data that terminal gathers user's input by sound-conducting apparatus specifically may is that terminal Gather the vibration signal of sound, then vibration signal is converted into digital signal, the voice number that digital signal is inputted as user It is stored in terminal according to carrying out.Mike can include capacitance microphone, inductance mike etc., and capacitance microphone is to be adopted by electric capacity The vibration signal of collection sound, is then converted into data signal by vibration signal and stores, and inductance mike is by inductance Mode gathers the vibration signal of sound, then vibration signal is converted into data signal and stores.
In embodiments of the present invention, terminal can the speech data of continuous acquisition user input, or periodically gather use The speech data of family input, does not limits at this.
In embodiments of the present invention, after terminal collects speech data, terminal can carry out noise filter by corresponding speech data Remove, it is to avoid the interference to user voice of the noise of surrounding.
S101, obtains the objective attribute target attribute parameter of described speech data, corresponding with compression ratio according to preset property parameters Relation, obtains the target compression that described objective attribute target attribute parameter is corresponding.
In embodiments of the present invention, objective attribute target attribute parameter can include the various property parameters of speech data, such as speech data Target voice feature, target voice feature can include the phonetic features such as the tone of speech data, loudness, tone color, it is also possible to bag Include the phonetic features such as frequency spectrum, cepstrum, formant, fundamental tone, reflection coefficient.Further, objective attribute target attribute parameter can also bag language The target identity information of sound data, such as the sex of the user of input speech data.Further, objective attribute target attribute parameter can also be wrapped Including the target position information of input speech data, wherein, target position information can be the position that terminal is presently in, or The information such as the birthplace of the user of input speech data or ground, native place.
In embodiments of the present invention, terminal can the corresponding relation of preset attribute parameter and compression ratio, concrete, terminal is permissible The corresponding relation of preset phonetic feature and compression ratio, the corresponding relation of identity information and compression ratio and positional information and compression ratio Corresponding relation.Thus terminal can obtain objective attribute target attribute parameter pair according to the corresponding relation of preset property parameters Yu compression ratio The target compression answered.Wherein, the ratio of size before the size after target compression is speech data compression and compression.
S102, is compressed coded treatment according to described target compression to described speech data, it is thus achieved that speech message.
In embodiments of the present invention, terminal can use target compression to press speech data by preset compressed format Contracting coded treatment, it is thus achieved that speech message, wherein, preset compressed format includes the numerals such as MP3 format, WMA form and OGG form Compressed format.This makes the speech message that terminal sends, and not only can reduce the network traffics taken, it is possible to ensure voice communication matter Amount.
S103, sends described speech message.
In embodiments of the present invention, speech message can be sent to carry out voice conversation communication with it by network by terminal Terminal, so that it is decompressed by terminal, it is thus achieved that speech data also exports.
In embodiments of the present invention, terminal obtains the speech data for voice conversation communication, obtains described speech data Objective attribute target attribute parameter, according to the corresponding relation of preset property parameters Yu compression ratio, obtain described objective attribute target attribute parameter corresponding Target compression, according to described target compression, described speech data is compressed coded treatment, it is thus achieved that speech message, send out Sending described speech message, this makes terminal the compression ratio being suitable for can be selected voice number according to the objective attribute target attribute parameter of speech data According to being compressed coding, it is thus achieved that speech message transmits, it is effectively improved the compression effectiveness of speech message again, improves the language of speech message Sound communication quality.
See Fig. 2, be the schematic flow diagram of the embodiment of the present invention a kind of data processing method of offer, as shown in the figure shown in 2, A kind of data processing method can comprise the following steps that
S200, obtains the speech data for voice conversation communication.
S201, carries out feature extraction to described speech data, obtains described target voice feature.
In embodiments of the present invention, target voice feature can include that the voices such as the tone of speech data, loudness, tone color are special Levy, it is also possible to include the phonetic features such as frequency spectrum, cepstrum, formant, fundamental tone, reflection coefficient.
S202, according to the corresponding relation of preset phonetic feature Yu compression ratio, obtains the mesh that described target voice feature is corresponding Mark compression ratio.
In embodiments of the present invention, terminal preset phonetic feature may is that loudness and compression with the corresponding relation of compression ratio The corresponding relation of rate, tone color and the corresponding relation of compression ratio, tone is corresponding with compression ratio with the corresponding relation of compression ratio, frequency spectrum Relation, specifically can be configured the corresponding relation of corresponding property parameters and compression ratio according to the property parameters needed for terminal.Excellent Choosing, loudness may each be directly proportional corresponding relation, i.e. with the corresponding relation of compression ratio, tone with the corresponding relation of compression ratio Being, the speech data that loudness is the highest, the user voice of its correspondence is the most loud, easily catches, the voice number that therefore loudness is the highest The highest according to corresponding compression ratio, i.e. terminal higher compression ratio can be used to enter on the premise of not affecting voice communication quality Row compressed encoding speech data, actively loses more data, effectively saves terminal space, saving network flow;Loudness is the lowest Speech data, the least sound of user voice of its correspondence, it is not easy to catch, the Simultaneous Voice and Data Terminals that therefore loudness is the lowest can be adopted It is compressed coded voice data, it is to avoid lose too many number when speech data being compressed coding by relatively low compression ratio According to, affect voice communication quality so that the other side is difficult to not hear.
In embodiments of the present invention, terminal can obtain target according to the corresponding relation of above-mentioned phonetic feature Yu compression ratio The target compression that phonetic feature is corresponding.
S203, is compressed coded treatment according to described target compression to described speech data, it is thus achieved that speech message.
S204, sends described speech message.
In embodiments of the present invention, the detailed description of the invention of step S200, step S203 and step S204 can be found in above-mentioned The detailed description of the invention of step S100, step S102 and step S103 in embodiment, is not repeated herein.
In embodiments of the present invention, terminal obtains the speech data for voice conversation communication, obtains described speech data Objective attribute target attribute parameter, according to the corresponding relation of preset property parameters Yu compression ratio, obtain described objective attribute target attribute parameter corresponding Target compression, according to described target compression, described speech data is compressed coded treatment, it is thus achieved that speech message, send out Sending described speech message, this makes terminal the compression ratio being suitable for can be selected to enter speech data according to the objective attribute target attribute parameter of voice Row compressed encoding, it is thus achieved that speech message transmits again, is effectively improved the compression effectiveness of speech message, and the voice improving speech message leads to Letter quality.
See Fig. 3, be the schematic flow diagram of the embodiment of the present invention a kind of data processing method of offer, as shown in the figure shown in 3, A kind of data processing method can comprise the following steps that
S300, obtains the speech data for voice conversation communication.
S301, obtains the ID that described speech data is corresponding.
In embodiments of the present invention, the ID that speech data is corresponding could be for user and carries out the use of voice call Family identifies, such as telephone number, the account currently logged in such as the application program of carrying voice communication.
S302, obtains the described target identity information that described ID is corresponding from preset identity information storehouse.
In embodiments of the present invention, terminal can preset identity information storehouse, identity information storehouse includes that ID and identity are believed The corresponding relation of breath, wherein, terminal can obtain the identity information of user's input when carrying out register account number, and by account and identity The corresponding relation of information stores to identity information storehouse, or, user can obtain ID from other carrier servers With the corresponding relation of identity information storing.
In embodiments of the present invention, the ID that terminal can include according to identity information storehouse is corresponding with identity information The target identity information that Relation acquisition ID is corresponding.
In a particular application, can be such as: when user carries out voice conversation communication by application program " wechat ", terminal can Obtain the login account that application program " wechat " is current, obtain, according to account, the identity information work that user registers when register account number For target identity information.
S303, according to the corresponding relation of preset identity information Yu compression ratio, obtains described target identity information corresponding Target compression.
In embodiments of the present invention, target identity information can include sex, due to the tone of the pitch ratio male of women Higher, therefore, terminal preset sex can be the corresponding relatively low compression ratio of man's identity information and sex is woman's identity information Corresponding higher compression ratio.
In embodiments of the present invention, terminal can obtain mesh according to the corresponding relation of above-mentioned identity information Yu compression ratio The target compression that mark identity information is corresponding.
S304, is compressed coded treatment according to described target compression to described speech data, it is thus achieved that speech message.
S305, sends described speech message.
In embodiments of the present invention, the detailed description of the invention of step S300, step S304 and step S305 can be found in above-mentioned The detailed description of the invention of step S100, step S102 and step S103 in embodiment, does not repeats at this.
In embodiments of the present invention, terminal obtains the speech data for voice conversation communication, obtains described speech data Objective attribute target attribute parameter, according to the corresponding relation of preset property parameters Yu compression ratio, obtain described objective attribute target attribute parameter corresponding Target compression, according to described target compression, described speech data is compressed coded treatment, it is thus achieved that speech message, send out Sending described speech message, this makes terminal the compression ratio being suitable for can be selected to enter speech data according to the objective attribute target attribute parameter of voice Row compressed encoding, it is thus achieved that speech message transmits again, is effectively improved the compression effectiveness of speech message, and the voice improving speech message leads to Letter quality.
See Fig. 4, be the schematic flow diagram of the embodiment of the present invention a kind of data processing method of offer, as shown in the figure shown in 4, A kind of data processing method can comprise the following steps that
S400, obtains the speech data for voice conversation communication.
S401, obtains the target position information of the position that terminal is presently in.
In embodiments of the present invention, target position information can be the position that terminal is presently in, and wherein, terminal can be passed through GPS location obtains the position that terminal is presently in.Further, target position information can also is that user native place wait letter Breath, terminal can obtain the target identity information of user, obtains the native place information of user, by the nationality of user from target identity information The information of passing through is set to target position information.
S402, according to the corresponding relation of preset positional information Yu compression ratio, obtains described target position information corresponding Target compression.
In embodiments of the present invention, terminal can be with the corresponding relation of preset position information Yu compression ratio, due to differently District, province tongue not quite alike, as the people of northern area speak can become apparent from than the people of southern area, therefore, Terminal can be set up the corresponding relation of positional information and compression ratio, i.e. speech understand some according to the characteristic of speech sounds of each department The corresponding higher compression ratio in area, the corresponding relatively low compression ratio in the most not clear area of talking.
In embodiments of the present invention, terminal can obtain work as according to the corresponding relation of above-mentioned positional information Yu compression ratio The target compression that front location is corresponding.
S403, is compressed coded treatment according to described target compression to described speech data, it is thus achieved that speech message.
S404, sends described speech message.
In embodiments of the present invention, the detailed description of the invention of step S400, step S403 and step S404 can be found in above-mentioned The detailed description of the invention of step S100, step S102 and step S103 in embodiment, does not repeats at this.
In embodiments of the present invention, terminal obtains the speech data for voice conversation communication, obtains described speech data Objective attribute target attribute parameter, according to the corresponding relation of preset property parameters Yu compression ratio, obtain described objective attribute target attribute parameter corresponding Target compression, according to described target compression, described speech data is compressed coded treatment, it is thus achieved that speech message, send out Sending described speech message, this makes terminal the compression ratio being suitable for can be selected voice number according to the objective attribute target attribute parameter of speech data According to being compressed coding, it is thus achieved that speech message transmits, it is effectively improved the compression effectiveness of speech message again, improves the language of speech message Sound communication quality.
Refer to Fig. 5, for a kind of example structure schematic diagram of the terminal that the embodiment of the present invention provides.The embodiment of the present invention Terminal include:
First acquiring unit 100, for obtaining the speech data for voice conversation communication.
Second acquisition unit 200, for obtaining the objective attribute target attribute parameter of described speech data, according to preset property parameters With the corresponding relation of compression ratio, obtain the target compression that described objective attribute target attribute parameter is corresponding.
Processing unit 300, for being compressed coded treatment according to described target compression to described speech data, it is thus achieved that Speech message.
Transmitting element 400, is used for sending described speech message.
In embodiments of the present invention, terminal can carry out voice communication with other-end, and wherein, terminal can monitor whether to obtain To carrying out the instruction of voice communication with other-end, when terminal gets the instruction carrying out voice communication with other-end, eventually End can determine that and carries out voice communication with other-end, and the first acquiring unit 100 gathers the speech data of user's input;When first When acquiring unit 100 gets the instruction terminating voice communication with other-end, terminal can terminate to gather the voice of user's input Data.
In embodiments of the present invention, terminal can the sound-conducting apparatus such as built-in microphone, the first acquiring unit 100 can be by transaudient Device gathers the speech data of user's input.Concrete, the first acquiring unit 100 gathers the language of user's input by sound-conducting apparatus Sound data specifically may is that the first acquiring unit 100 gathers the vibration signal of sound, then vibration signal is converted into numeral letter Number, carry out being stored in terminal as the speech data that user inputs using digital signal.Mike can include capacitance microphone, electricity Sense mikes etc., capacitance microphone is the vibration signal being gathered sound by electric capacity, and then vibration signal is converted into data letter Number storing, inductance mike is the vibration signal gathering sound by the way of inductance, is then converted into by vibration signal Data signal stores.
In embodiments of the present invention, the first acquiring unit 100 can the speech data of continuous acquisition user input, or first Acquiring unit 100 periodically gathers the speech data of user's input, does not limits at this.
In embodiments of the present invention, after the first acquiring unit 100 collects speech data, the first acquiring unit 100 can Corresponding speech data carries out noise-filtering, it is to avoid the interference to user voice of the noise of surrounding.
In embodiments of the present invention, objective attribute target attribute parameter can include the various property parameters of speech data, such as speech data Target voice feature, target voice feature can include the phonetic features such as the tone of speech data, loudness, tone color, it is also possible to bag Include the phonetic features such as frequency spectrum, cepstrum, formant, fundamental tone, reflection coefficient.Further, objective attribute target attribute parameter can also bag language The target identity information of sound data, such as the sex of the user of input speech data.Further, objective attribute target attribute parameter can also be wrapped Including the target position information of input speech data, wherein, target position information can be the position that terminal is presently in, or The information such as the birthplace of the user of input speech data or ground, native place.
In embodiments of the present invention, terminal can the corresponding relation of preset attribute parameter and compression ratio, concrete, terminal is permissible The corresponding relation of preset phonetic feature and compression ratio, the corresponding relation of identity information and compression ratio and positional information and compression ratio Corresponding relation.Thus second acquisition unit 200, mesh can be obtained according to the corresponding relation of preset property parameters Yu compression ratio The target compression that mark property parameters is corresponding.Wherein, target compression be speech data compression after size with compress before big Little ratio.
In embodiments of the present invention, processing unit 300, target compression can be used voice number by preset compressed format According to being compressed coded treatment, it is thus achieved that speech message, wherein, preset compressed format includes MP3 format, WMA form and OGG lattice The digital compressed format such as formula.This makes the speech message that terminal sends, and not only can reduce the network traffics taken, it is possible to ensure language Sound communication quality.
In embodiments of the present invention, speech message can be sent to carry out voice meeting with it by network by transmitting element 400 The terminal of words communication, so that it is decompressed by terminal, it is thus achieved that speech data also exports.
In embodiments of the present invention, terminal obtains the speech data for voice conversation communication, obtains described speech data Objective attribute target attribute parameter, according to the corresponding relation of preset property parameters Yu compression ratio, obtain described objective attribute target attribute parameter corresponding Target compression, according to described target compression, described speech data is compressed coded treatment, it is thus achieved that speech message, send out Sending described speech message, this makes terminal the compression ratio being suitable for can be selected voice number according to the objective attribute target attribute parameter of speech data According to being compressed coding, it is thus achieved that speech message transmits, it is effectively improved the compression effectiveness of speech message again, improves the language of speech message Sound communication quality.
Refer to Fig. 6, for the another kind of example structure schematic diagram of the terminal that the embodiment of the present invention provides.The present invention implements The terminal of example includes:
First acquiring unit 100, second acquisition unit 200, processing unit 300 and transmitting element 400.
Wherein, described objective attribute target attribute parameter includes target voice feature;
Described second acquisition unit 200 includes:
3rd acquiring unit 10, for described speech data is carried out feature extraction, obtains described target voice feature;
4th acquiring unit 20, for the corresponding relation according to preset phonetic feature Yu compression ratio, obtains described target language The target compression that sound feature is corresponding.
Wherein, described objective attribute target attribute parameter includes target identity information;
Described second acquisition unit 200 includes:
5th acquiring unit 30, for obtaining the ID that described speech data is corresponding;
6th acquiring unit 40, for obtaining the described target that described ID is corresponding from preset identity information storehouse Identity information;
7th acquiring unit 50, for the corresponding relation according to preset identity information Yu compression ratio, obtains described target The target compression that identity information is corresponding.
Wherein, described objective attribute target attribute parameter includes target position information;
Described second acquisition unit 200 includes:
8th acquiring unit 60, for obtaining the target position information of the position that terminal is presently in;
9th acquiring unit 70, for the corresponding relation according to preset positional information Yu compression ratio, obtains described target The target compression that positional information is corresponding.
Wherein, described terminal also includes:
Unit 500 is set, for arranging the directly proportional corresponding relation of loudness and compression ratio;
Described 4th acquiring unit 20 specifically for:
According to the directly proportional corresponding relation of described loudness Yu compression ratio, obtain the targeted compression that described target loudness is corresponding Rate.
It is understood that the function of each functional unit of unit in the terminal of the present embodiment can be real according to said method The method executed in example implements, and it implements process and is referred to the associated description of said method embodiment, the most no longer Repeat.
In embodiments of the present invention, terminal obtains the speech data for voice conversation communication, obtains described speech data Objective attribute target attribute parameter, according to the corresponding relation of preset property parameters Yu compression ratio, obtain described objective attribute target attribute parameter corresponding Target compression, according to described target compression, described speech data is compressed coded treatment, it is thus achieved that speech message, send out Sending described speech message, this makes terminal the compression ratio being suitable for can be selected voice number according to the objective attribute target attribute parameter of speech data According to being compressed coding, it is thus achieved that speech message transmits, it is effectively improved the compression effectiveness of speech message again, improves the language of speech message Sound communication quality.
See Fig. 7, be a kind of terminal schematic block diagram of another embodiment of the present invention offer.The present embodiment as shown in Figure 7 In terminal may include that one or more processor 701;One or more input equipments 702, one or more outut devices 703 and memorizer 704.Above-mentioned processor 701, input equipment 702, outut device 703 and memorizer 704 are by bus 705 even Connect.Memorizer 704 is used for storing instruction, and processor 701 is for performing the instruction of memorizer 704 storage.Wherein, processor 701 For:
Control described input equipment 702 and obtain the speech data for voice conversation communication;
Obtain the objective attribute target attribute parameter of described speech data, according to the corresponding relation of preset property parameters Yu compression ratio, Obtain the target compression that described objective attribute target attribute parameter is corresponding;
According to described target compression, described speech data is compressed coded treatment, it is thus achieved that speech message;
Control described outut device 703 and send described speech message.
Wherein, described objective attribute target attribute parameter includes target voice feature;
Described processor 701 obtains the objective attribute target attribute parameter of described speech data, according to preset property parameters and compression The corresponding relation of rate, the target compression obtaining described objective attribute target attribute parameter corresponding includes:
Described speech data is carried out feature extraction, obtains described target voice feature;
According to the corresponding relation of preset phonetic feature Yu compression ratio, obtain the targeted compression that described target voice feature is corresponding Rate.
Wherein, described objective attribute target attribute parameter includes target identity information;
Described processor 701 obtains the objective attribute target attribute parameter of described speech data, according to preset property parameters and compression The corresponding relation of rate, the target compression obtaining described objective attribute target attribute parameter corresponding includes:
Obtain the ID that described speech data is corresponding;
The described target identity information that described ID is corresponding is obtained from preset identity information storehouse;
According to the corresponding relation of preset identity information Yu compression ratio, obtain the target pressure that described target identity information is corresponding Shrinkage.
Wherein, described objective attribute target attribute parameter includes target position information;
Described processor 701 obtains the objective attribute target attribute parameter of described speech data, according to preset property parameters and compression The corresponding relation of rate, the target compression obtaining described objective attribute target attribute parameter corresponding includes:
Obtain the target position information of the position that terminal is presently in;
According to the corresponding relation of preset positional information Yu compression ratio, obtain the target pressure that described target position information is corresponding Shrinkage.
Wherein, described target voice feature includes target loudness;
The objective attribute target attribute parameter of described speech data is obtained, according to preset property parameters and pressure at described processor 701 The corresponding relation of shrinkage, before obtaining the target compression that described objective attribute target attribute parameter is corresponding, described processor 701 also performs:
The directly proportional corresponding relation of loudness and compression ratio is set;
Described processor 701, according to the corresponding relation of preset property parameters Yu compression ratio, obtains described objective attribute target attribute ginseng The target compression that number is corresponding includes:
According to the directly proportional corresponding relation of described loudness Yu compression ratio, obtain the targeted compression that described target loudness is corresponding Rate.
It is understood that the function of each functional unit of unit in the terminal of the present embodiment can be real according to said method The method executed in example implements, and it implements process and is referred to the associated description of said method embodiment, the most no longer Repeat.
In embodiments of the present invention, terminal obtains the speech data for voice conversation communication, obtains described speech data Objective attribute target attribute parameter, according to the corresponding relation of preset property parameters Yu compression ratio, obtain described objective attribute target attribute parameter corresponding Target compression, according to described target compression, described speech data is compressed coded treatment, it is thus achieved that speech message, send out Sending described speech message, this makes terminal the compression ratio being suitable for can be selected voice number according to the objective attribute target attribute parameter of speech data According to being compressed coding, it is thus achieved that speech message transmits, it is effectively improved the compression effectiveness of speech message again, improves the language of speech message Sound communication quality.
Those of ordinary skill in the art are it is to be appreciated that combine the list of each example that the embodiments described herein describes Unit and algorithm steps, it is possible to electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware With the interchangeability of software, the most generally describe composition and the step of each example according to function.This A little functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Specially Industry technical staff can use different methods to realize described function to each specifically should being used for, but this realization is not It is considered as beyond the scope of this invention.
Those skilled in the art is it can be understood that arrive, for convenience of description and succinctly, and the end of foregoing description End and the specific works process of unit, be referred to the corresponding process in preceding method embodiment, do not repeat them here.
In several embodiments provided herein, it should be understood that disclosed terminal and method, can be passed through it Its mode realizes.Such as, device embodiment described above is only schematically, such as, and the division of described unit, only Being only a kind of logic function to divide, actual can have other dividing mode, the most multiple unit or assembly to tie when realizing Close or be desirably integrated into another system, or some features can be ignored, or not performing.It addition, shown or discussed phase Coupling between Hu or direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit or communication Connect, it is also possible to be electric, machinery or other form connect.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected according to the actual needs to realize embodiment of the present invention scheme Purpose.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to be that two or more unit are integrated in a unit.Above-mentioned integrated Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit realizes and as independent production marketing or use using the form of SFU software functional unit Time, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part in other words prior art contributed, or this technical scheme completely or partially can be with the form of software product Embodying, this computer software product is stored in a storage medium, including some instructions with so that a computer Equipment (can be personal computer, server, or the network equipment etc.) performs the complete of method described in each embodiment of the present invention Portion or part steps.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art, in the technical scope that the invention discloses, can readily occur in the amendment of various equivalence or replace Changing, these amendments or replacement all should be contained within protection scope of the present invention.Therefore, protection scope of the present invention should be with right The protection domain required is as the criterion.

Claims (10)

1. a data processing method, it is characterised in that including:
Obtain the speech data for voice conversation communication;
Obtain the objective attribute target attribute parameter of described speech data, according to the corresponding relation of preset property parameters Yu compression ratio, obtain The target compression that described objective attribute target attribute parameter is corresponding;
According to described target compression, described speech data is compressed coded treatment, it is thus achieved that speech message;
Send described speech message.
2. the method for claim 1, it is characterised in that described objective attribute target attribute parameter includes target voice feature;
The objective attribute target attribute parameter of the described speech data of described acquisition, according to the corresponding relation of preset property parameters Yu compression ratio, The target compression obtaining described objective attribute target attribute parameter corresponding includes:
Described speech data is carried out feature extraction, obtains described target voice feature;
According to the corresponding relation of preset phonetic feature Yu compression ratio, obtain the target compression that described target voice feature is corresponding.
3. the method for claim 1, it is characterised in that described objective attribute target attribute parameter includes target identity information;
The objective attribute target attribute parameter of the described speech data of described acquisition, according to the corresponding relation of preset property parameters Yu compression ratio, The target compression obtaining described objective attribute target attribute parameter corresponding includes:
Obtain the ID that described speech data is corresponding;
The described target identity information that described ID is corresponding is obtained from preset identity information storehouse;
According to the corresponding relation of preset identity information Yu compression ratio, obtain the targeted compression that described target identity information is corresponding Rate.
4. the method for claim 1, it is characterised in that described objective attribute target attribute parameter includes target position information;
The objective attribute target attribute parameter of the described speech data of described acquisition, according to the corresponding relation of preset property parameters Yu compression ratio, The target compression obtaining described objective attribute target attribute parameter corresponding includes:
Obtain the target position information of the position that terminal is presently in;
According to the corresponding relation of preset positional information Yu compression ratio, obtain the targeted compression that described target position information is corresponding Rate.
5. method as claimed in claim 2, it is characterised in that described target voice feature includes target loudness;
The objective attribute target attribute parameter of the described speech data of described acquisition, according to the corresponding relation of preset property parameters Yu compression ratio, Include before obtaining the target compression that described objective attribute target attribute parameter is corresponding:
The directly proportional corresponding relation of loudness and compression ratio is set;
The described corresponding relation according to preset property parameters Yu compression ratio, obtains the target pressure that described objective attribute target attribute parameter is corresponding Shrinkage includes:
According to the directly proportional corresponding relation of described loudness Yu compression ratio, obtain the target compression that described target loudness is corresponding.
6. a terminal, it is characterised in that including:
First acquiring unit, for obtaining the speech data for voice conversation communication;
Second acquisition unit, for obtaining the objective attribute target attribute parameter of described speech data, according to preset property parameters and compression The corresponding relation of rate, obtains the target compression that described objective attribute target attribute parameter is corresponding;
Processing unit, for being compressed coded treatment according to described target compression to described speech data, it is thus achieved that voice disappears Breath;
Transmitting element, is used for sending described speech message.
7. terminal as claimed in claim 6, it is characterised in that described objective attribute target attribute parameter includes target voice feature;
Described second acquisition unit includes:
3rd acquiring unit, for described speech data is carried out feature extraction, obtains described target voice feature;
4th acquiring unit, for the corresponding relation according to preset phonetic feature Yu compression ratio, obtains described target voice feature Corresponding target compression.
8. terminal as claimed in claim 6, it is characterised in that described objective attribute target attribute parameter includes target identity information;
Described second acquisition unit includes:
5th acquiring unit, for obtaining the ID that described speech data is corresponding;
6th acquiring unit, for obtaining the described target identities letter that described ID is corresponding from preset identity information storehouse Breath;
7th acquiring unit, for the corresponding relation according to preset identity information Yu compression ratio, obtains described target identities letter The target compression that breath is corresponding.
9. terminal as claimed in claim 6, it is characterised in that described objective attribute target attribute parameter includes target position information;
Described second acquisition unit includes:
8th acquiring unit, for obtaining the target position information of the position that terminal is presently in;
9th acquiring unit, for the corresponding relation according to preset positional information Yu compression ratio, obtains described target location letter The target compression that breath is corresponding.
10. terminal as claimed in claim 7, it is characterised in that described target voice feature includes target loudness;
Described terminal includes:
Unit is set, for arranging the directly proportional corresponding relation of loudness and compression ratio;
Described 4th acquiring unit specifically for:
According to the directly proportional corresponding relation of described loudness Yu compression ratio, obtain the target compression that described target loudness is corresponding.
CN201610822825.0A 2016-09-13 2016-09-13 A kind of data processing method and terminal Pending CN106297812A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610822825.0A CN106297812A (en) 2016-09-13 2016-09-13 A kind of data processing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610822825.0A CN106297812A (en) 2016-09-13 2016-09-13 A kind of data processing method and terminal

Publications (1)

Publication Number Publication Date
CN106297812A true CN106297812A (en) 2017-01-04

Family

ID=57710162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610822825.0A Pending CN106297812A (en) 2016-09-13 2016-09-13 A kind of data processing method and terminal

Country Status (1)

Country Link
CN (1) CN106297812A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107316635A (en) * 2017-05-19 2017-11-03 科大讯飞股份有限公司 Audio recognition method and device, storage medium, electronic equipment
CN109378008A (en) * 2018-11-05 2019-02-22 网易(杭州)网络有限公司 A kind of voice data processing method and device of game

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1204916A (en) * 1997-01-20 1999-01-13 索尼公司 Telephone apparatus with audio recording function and audio recording method of telephone apparatus
CN1280697A (en) * 1998-02-03 2001-01-17 西门子公司 Method for voice data transmission
US20070244695A1 (en) * 2006-01-20 2007-10-18 Sharath Manjunath Selection of encoding modes and/or encoding rates for speech compression with closed loop re-decision
CN101305423A (en) * 2005-11-08 2008-11-12 三星电子株式会社 Adaptive time/frequency-based audio encoding and decoding apparatuses and methods
CN101442575A (en) * 2007-11-23 2009-05-27 上海千镭星电子科技有限公司 Method for implementing network voice system
CN101794578A (en) * 2010-01-06 2010-08-04 成都娱音科技股份有限公司 Compression algorithm for compression ratio-variable audio data
CN102543090A (en) * 2011-12-31 2012-07-04 深圳市茂碧信息科技有限公司 Code rate automatic control system applicable to variable bit rate voice and audio coding

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1204916A (en) * 1997-01-20 1999-01-13 索尼公司 Telephone apparatus with audio recording function and audio recording method of telephone apparatus
CN1280697A (en) * 1998-02-03 2001-01-17 西门子公司 Method for voice data transmission
CN101305423A (en) * 2005-11-08 2008-11-12 三星电子株式会社 Adaptive time/frequency-based audio encoding and decoding apparatuses and methods
US20070244695A1 (en) * 2006-01-20 2007-10-18 Sharath Manjunath Selection of encoding modes and/or encoding rates for speech compression with closed loop re-decision
CN101442575A (en) * 2007-11-23 2009-05-27 上海千镭星电子科技有限公司 Method for implementing network voice system
CN101794578A (en) * 2010-01-06 2010-08-04 成都娱音科技股份有限公司 Compression algorithm for compression ratio-variable audio data
CN102543090A (en) * 2011-12-31 2012-07-04 深圳市茂碧信息科技有限公司 Code rate automatic control system applicable to variable bit rate voice and audio coding

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107316635A (en) * 2017-05-19 2017-11-03 科大讯飞股份有限公司 Audio recognition method and device, storage medium, electronic equipment
CN109378008A (en) * 2018-11-05 2019-02-22 网易(杭州)网络有限公司 A kind of voice data processing method and device of game

Similar Documents

Publication Publication Date Title
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
CN108681440A (en) A kind of smart machine method for controlling volume and system
CN104980337A (en) Method and device for improving audio processing performance
CN107331405A (en) A kind of voice information processing method and server
CN103024630A (en) Volume regulating method of first electronic equipment and first electronic equipment
CN104299622A (en) Audio processing method
CN107885479A (en) A kind of method for regulation of sound volume, terminal device and computer-readable medium
WO2012151997A1 (en) Call voice recording method and device for mobile terminal and mobile terminal
CN107122156A (en) A kind of method for controlling volume and terminal
CN110246502A (en) Voice de-noising method, device and terminal device
CN107360332A (en) Talking state display methods, device, mobile terminal and storage medium
CN109361994A (en) Speaker control method, mobile terminal and computer readable storage medium
CN106886387A (en) A kind of audio data processing method and its equipment
CN106686481A (en) Method of earphone de-noising and earphone
CN107705796A (en) A kind of processing method of voice data, terminal and computer-readable medium
CN107465818A (en) The method and terminal of a kind of virtual incoming call
CN113241085A (en) Echo cancellation method, device, equipment and readable storage medium
CN108510997A (en) Electronic equipment and echo cancel method applied to electronic equipment
CN110086941B (en) Voice playing method and device and terminal equipment
WO2022068694A1 (en) Electronic device and wake-up method thereof
CN106297812A (en) A kind of data processing method and terminal
CN105719673A (en) Terminal and recording processing method thereof
CN107343095B (en) Call volume control method and device, storage medium and terminal
CN104917893A (en) Convers Conversation processing method and terminal
CN106708461A (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104