CN108391013A - Playback method, terminal and the computer readable storage medium of voice data - Google Patents

Playback method, terminal and the computer readable storage medium of voice data Download PDF

Info

Publication number
CN108391013A
CN108391013A CN201810224855.0A CN201810224855A CN108391013A CN 108391013 A CN108391013 A CN 108391013A CN 201810224855 A CN201810224855 A CN 201810224855A CN 108391013 A CN108391013 A CN 108391013A
Authority
CN
China
Prior art keywords
condition
output valve
preset
sensor
terminal
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
CN201810224855.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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810224855.0A priority Critical patent/CN108391013A/en
Publication of CN108391013A publication Critical patent/CN108391013A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Environmental & Geological Engineering (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A kind of playback method of voice data, terminal and computer readable storage medium, this method include:Execute the output valve for obtaining the proximity sensor in terminal, obtain the output valve of the direction sensor in terminal, the touch point position on terminal screen is obtained, and starts the imaging sensor in terminal and obtains at least one in the input picture of described image sensor;If the output valve of proximity sensor meets preset first condition, if the output valve of direction sensor meets preset second condition, if touch point position meets preset third condition and if input picture meets at least one establishment in preset fourth condition, played and the relevant voice data of currently running application program using handset mode.When by according to voice data is answered, the topological relation of terminal and ear establishes the Rule of judgment of characterization correlation, and the information for including in the voice data to achieve the purpose that solve the problems, such as user's acquisition is incomplete.

Description

Playback method, terminal and the computer readable storage medium of voice data
Technical field
This application involves voice communication technology fields, more particularly to a kind of playback method of voice data, a kind of terminal With a kind of computer readable storage medium.
Background technology
Voice is transmitting message context increasingly by intelligent terminal due to its time saving, laborsaving, convenient and efficient characteristic The generally use of user, such as in various application programs, it is specific as in social software.
Present inventor has found that under normal circumstances, user obtains by way of being played handset mode in the prior art When taking the information for including in voice data, due at the time of operation (such as click) voice data plays receiver apart from sense of hearing system Unite (such as ear) farther out, and after being operated (such as click) to voice data, voice data immediately will start to play, Therefore, user can not receive this from the time of operation at the time of voice data plays to by receiver close to auditory system The information for including in the voice data played in a bit of time, to which information that user obtains is imperfect, especially voice sheet In the case that the body time is shorter, the integrity degree degradation for the information that user obtains.
Invention content
The embodiment of the present application provides a kind of playback method of voice data, a kind of terminal and a kind of computer-readable storage medium Matter, for solve in the prior art due at the time of operation (such as click) voice data plays receiver apart from auditory system After (such as ear) farther out, and operates voice data (such as click), voice data will immediately start to play and The incomplete problem of information for including in the voice data that caused user obtains.
The embodiment of the present application first aspect provides a kind of playback method of voice data, the method includes:Execute acquisition The output valve of proximity sensor in terminal obtains the output valve of the direction sensor in terminal, obtains touching on terminal screen A control point position, and start the imaging sensor in terminal and obtain at least one in the input picture of described image sensor It is a;If the output valve of the proximity sensor meets preset first condition, if the output valve of the direction sensor meets in advance If second condition, if if the touch point position meets preset third condition and the input picture meets the preset 4th At least one establishment in condition then uses handset mode to play and the relevant voice data of currently running application program.
The embodiment of the present application second aspect provides a kind of terminal, and the terminal includes:Acquisition module obtains eventually for executing The output valve of proximity sensor on end obtains the output valve of the direction sensor in terminal, obtains the touch-control on terminal screen Point position, and start the imaging sensor in terminal and obtain at least one in the input picture of described image sensor; Judgment module, for judging that the output valve of the proximity sensor meets preset first condition, the direction sensor it is defeated Go out value and meet preset second condition, the touch point position meets preset third condition and input picture satisfaction is default Fourth condition in whether at least one establishment;Playing module, if the output valve for the proximity sensor meets in advance If first condition, if the output valve of the direction sensor meets preset second condition, if the touch point position meet If preset third condition and the input picture meet at least one establishment in preset fourth condition, receiver is used Mode playback and the relevant voice data of currently running application program.
The embodiment of the present application third aspect provides a kind of terminal, including:Processor, memory, the memory couple institute Processor is stated, and is stored with computer program, the processor realizes the embodiment of the present application the when executing the computer program Method described in any one of one side.
The embodiment of the present application fourth aspect provides a kind of computer readable storage medium, is stored thereon with computer program, It is characterized in that, when the computer program is executed by processor, any one of the embodiment of the present application first aspect institute is realized The method stated.
Existing advantageous effect is technical solution in the various embodiments described above provided by the present application compared with prior art:It is logical Cross under the premise of meeting preset condition, using handset mode play with the relevant voice data of currently running application program, When i.e. by according to voice data is answered, the topological relation of terminal and ear establishes the Rule of judgment of characterization correlation, comes Achieve the purpose that solve the problems, such as that the information for including in the voice data that user obtains is incomplete.
Description of the drawings
Fig. 1 is the flow diagram of the playback method for the voice data that the application first embodiment provides;
Fig. 2 is a flow diagram of the playback method for the voice data that the application second embodiment provides;
Fig. 3 is another flow diagram of the playback method for the voice data that the application second embodiment provides;
Fig. 4 is another flow diagram of the playback method for the voice data that the application second embodiment provides;
Fig. 5 is another flow diagram of the playback method for the voice data that the application second embodiment provides;
Fig. 6 is the structural schematic diagram for the terminal that the application 3rd embodiment provides;
Fig. 7 is the structural schematic diagram for the terminal that the application fourth embodiment provides;
Fig. 8 is the structural schematic diagram for the terminal that the application fourth embodiment provides.
Specific implementation mode
To enable present invention purpose, feature, advantage more apparent and understandable, below in conjunction with the application Attached drawing in embodiment, technical solutions in the embodiments of the present application are clearly and completely described, it is clear that described reality It is only some embodiments of the present application to apply example, and not all embodiments.Based on the embodiment in the application, people in the art The every other embodiment that member is obtained without making creative work, shall fall in the protection scope of this application.
Terminal in the embodiment of the present application can be smart mobile phone, tablet computer, intelligent wearable device, digital audio/video The electronic equipments such as player, electronic reader, handheld game machine, the equipment of call and vehicle electronic device.
Term " first ", " second " in the application etc. be for distinguishing different objects, rather than it is specific suitable for describing Sequence.In addition, term " comprising " and " having " and their any deformations, it is intended that cover and non-exclusive include.Such as comprising The step of process of series of steps or unit, method, system, product or equipment are not limited to list or unit, and It further includes the steps that optionally not listing or unit to be, or further includes optionally for these processes, method, product or equipment Intrinsic other steps or unit.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
User can receive the certain time that chat person sends in using terminal (such as smart mobile phone) voice-enabled chat Length voice data, it is generally the case that for the consideration of convenient, privacy, custom, public space etc., select not by outside other Portion's equipment (such as earphone, bone conduction device etc.) obtains the information for including in voice data in the way of handset mode broadcasting.
The application first embodiment provides a kind of playback method of voice data, the method includes:It executes and obtains eventually The output valve of proximity sensor on end obtains the output valve of the direction sensor in terminal, obtains the touch-control on terminal screen Point position, and start the imaging sensor in terminal and obtain at least one in the input picture of described image sensor; If the output valve of the proximity sensor meets preset first condition, if the output valve of the direction sensor meet it is preset Second condition, if if the touch point position meets preset third condition and the input picture meets preset fourth condition At least one establishment in four then uses handset mode to play and the relevant voice data of currently running application program.Below Explanation detailed by the progress such as word, number, exemplary drawings, illustrative.
Referring to Fig. 1, Fig. 1 shows a kind of stream of the playback method for voice data that the application first embodiment provides The executive agent of journey, the playback method of voice data can be various terminals above-mentioned.For convenience of description, Fig. 1 illustrate only with The relevant part of the embodiment of the present application, a kind of exemplary playback methods of voice data of Fig. 1 can be by step S101 and step S102 It realizes:
S101 executes the output valve for obtaining the proximity sensor in terminal, obtains the output of the direction sensor in terminal Value obtains the touch point position on terminal screen, and starts the imaging sensor in terminal and obtain described image sensor It is at least one in input picture.
Optionally, proximity sensor is to replace the contact measurements modes such as limit switch, to be not necessarily to contact detection object The general name of sensor for the purpose of being detected.The mobile message and existence information that object can be detected are converted to electric signal.
Optionally, proximity sensor, which can be capacitive proximity sensor, inductive proximity sensor, photo-electric is close passes At least one such as sensor, ranging proximity sensor.
Optionally, capacitive proximity sensor and inductive proximity sensor can by high-frequency oscillating circuits, detecting circuit, Amplifying circuit, shaping circuit and output circuit composition.Both state detected circuits are converted with failure of oscillation for the oscillation of oscillating circuit To be exported outward after switching signal.
Optionally, in photo-electric proximity sensor, the beam axis and light of light emitting diode (or semiconductor laser tube) The axis of electric triode is in one plane, and at a certain angle, and two axial lines are met at a bit in front of sensor.When detected When body surface is close to intersection point, the reflected light of light emitting diode is received by phototriode, generates electric signal.When object is far from friendship When point, not in the visual angle of phototriode, detection circuit does not export for echo area.
Optionally, it direction sensor direction inductor device or cries and applies angular-rate sensor, usually sensation level face On azimuth, rotation angle (roll angle) and inclination angle, 0 value as three angles and how to rotate to be and be just different terminal Can as needed depending on.Under normal circumstances, the short symmetry axis characterization x-axis of smart mobile phone is positive, and long symmetry axis characterization y-axis is just To it is positive that zenith direction characterizes z-axis.Azimuth indicates the angle that mobile phone is rotated around Z axis.0 degree of expression due north, 90 degree of expressions Due east, 180 degree indicate due south, and 270 indicate due west.Inclination angle, the degree that mobile phone sticks up should when mobile phone is tilted around x-axis Value can change, and be lifted since mobile phone top, until mobile phone rotates 180 along x-axis.In this rotary course, tilt The value at angle can from 0 degree to -180 degree change.Roll angle, along the roll angle of Y-axis, it is assumed that mobile phone screen is horizontal upward It puts on the table, at this moment if desktop is flat, the value of roll angle should be 0.Mobile phone is gradually lifted from left side, the value of roll angle To be decrescence small.
Optionally, touch point position can be simultaneously multiple positions, i.e., simultaneously multi-point touch.
Optionally, imaging sensor can be the preposition and/or rear camera of smart mobile phone.
It should be noted that those skilled in the art, obtaining the output valve of the proximity sensor in terminal, obtaining The output valve of the direction sensor in terminal is taken, the touch point position on terminal screen is obtained, and the image started in terminal passes A blanking method in the prior art can be used in sensor and the input picture for obtaining described image sensor.
In the present embodiment, it before the step in step S101 " obtaining the touch point position on terminal screen ", can wrap Include step S100.
S100, the screen for controlling the terminal extinguish.
It should be noted that obtain terminal screen on touch point position before, control the terminal screen extinguish Effect be the program for preventing touch-control current to terminal carry out maloperation.
S102, if the output valve of proximity sensor meets preset first condition, if the output valve of direction sensor meets Preset second condition, if if touch point position meets preset third condition and input picture meets preset fourth condition four At least one establishment in person then uses handset mode to play and the relevant voice data of currently running application program.
Optionally, can be to receive in current application program with the relevant voice data of currently running application program Voice data, or the result etc. that is handled according to the voice data.
Optionally, handset mode is used to play and played in the relevant voice data of currently running application program can be for Meet the automatic broadcasting after playing condition, or response play command input by user, it is passive after meeting playing condition It plays.
Optionally, in the present embodiment, step S102 includes " if input picture meets preset fourth condition, adopting With handset mode play and the relevant voice data of currently running application program " situation can be realized by step S1021.
Those skilled in the art, according to combination and permutation it is found that step S102 include " if input picture meet it is preset The situation of fourth condition, then using handset mode broadcasting and the relevant voice data of currently running application program " has 4 types Group amounts to 37 kinds of arrangements, then this is not repeated.
S1021 is played if the matching degree of input picture and pre-set image is more than third predetermined threshold value using handset mode With the relevant voice data of currently running application program, pre-set image includes the image of auditory system.
Optionally, auditory system can be ear.
Optionally, the matched method used in step S1021 can be any method in existing mathematics.
It should be noted that when terminal is answered voice data by user close to ear, just can in input picture Have an image of user's ear, therefore matching to input picture and pre-set image, with determine using handset mode play with The currently running relevant voice data of application program obviously can reach terminal close to ear in the case of, then play Voice can achieve the purpose that solve the problems, such as that the information for including in the voice data that user obtains is incomplete, another angle For, this manner it is also possible to prevent user because the information in the voice data of reception is imperfect, especially voice data beginning In include information omission and the inconvenience that repeatedly need answer voice and bring.User is further also avoided to want disposably It hears the complete information for including in voice data and quickly need be moved to terminal in one's ear after clicking broadcasting voice This flurried operation.
Optionally, in the present embodiment, step S102 include " if touch point position meets preset third condition, Using handset mode play with the relevant voice data of currently running application program " situation (37 kinds) can be by step S1022 It realizes.
S1022, if the matching degree for the pattern that touch point position is formed with preset multi-point touch is more than the 4th predetermined threshold value, Then handset mode is used to play and the relevant voice data of currently running application program.
Optionally, touch point position can be it is multiple according to certain regular distribution, such as ear with carry out on the screen The distribution pattern of the point of touch-control.
It should be noted that user when answering voice data, can inevitably touch the positions such as ear, cheek, especially Ear presentation is uneven, therefore in contrast, the possibility higher of multi-point touch so will result in multi-point touch screen, this A little touch points can form certain distribution, and therefore, the pattern that this kind distribution is formed with preset multi-point touch is matched, can To be taken as the basis for estimation of handset mode broadcasting and the relevant voice data of currently running application program.
Optionally, the matching process used in step S1022 can be any method in existing mathematics.
Optionally, include that the situation of step " obtaining the touch point position on terminal screen " is opposite with step S101 Answer, in the present embodiment, in step s 102 " using handset mode play with the relevant voice of currently running application program After data ", it may include step S103 and S104.
S103, after playing after preset time or playing with the relevant voice data of currently running application program, Obtain the output valve of proximity sensor.
Optionally, the time span of voice, such as the time span of voice and broadcasting can be slightly less than by playing preset time Preset time the difference between the two can belong to section [0,0.5] second.
S104, if the output valve of proximity sensor meets preset fifth condition, the screen of control terminal is lighted.
It should be noted that playing after preset time or playing with the relevant voice data of currently running application program After, user can be by terminal far from ear, and the output valve of proximity sensor can change at this time, and far from after ear, Facilitate user to operate terminal, thus can using the output valve of proximity sensor as the screen of control terminal light according to According to.
Optionally, the explanation about " output valve of proximity sensor meets preset fifth condition " can be with the application Meet about the output valve of proximity sensor that preset first condition is same or similar, and this will not be repeated here in two embodiments.
Optionally, in the present embodiment, the playback method of the voice data further includes:Step S105 and step S106, The step S106 can be executed in the default existence time of buffered voice data.
S105 forms quilt by the voice data storage to established caching mechanism in currently running application program The voice data of caching.
Optionally, before step S105, it may include:Establish caching mechanism.
Optionally, it can be to create caching mechanism by LruJsonCache to establish caching mechanism, that is, is created LruJsonCache Zu Jian lruJsonCache=LruJsonCache.get (this), and carry out initialization initView ()。
Optionally, the voice data in currently running application program can be the reception in currently running application program To the voice data not played.
Optionally, the default existence time of buffered voice data is set, such as is set as 1 minute, i.e., (lruJsonCache.put("newslist",json,60*1);Unit:Second)
It should be noted that the default existence time of the buffered voice data of setting can to buffered voice data into Row control, if there is the time it is too long can cause to occupy cache resources, cause terminal operating not smooth.
Optionally, the default existence time of buffered voice data is set concretely:Buffered voice data Existence time when being more than default existence time, it is automatic or actively or passively delete buffered voice data.
Optionally, the voice data by currently running application program is stored to established caching mechanism In, including:
Play command is responded, by the voice data storage in currently running application program to established caching mechanism In.
Optionally, described that handset mode is then used to play and the relevant voice data of currently running application program, packet It includes:
Play command is then responded, is played and the relevant voice data of currently running application program using handset mode.
It should be noted that so illustrating that the voice data is passively playable, and it is the operation (example played in input As clicked) after, just voice data is stored into established caching mechanism, voice data in caching so can be also reduced and occupy Spatial cache prevents the reduction of terminal operating speed.In addition it is passively playable in the control of user, human-computer interaction so can more make It obtains user and feels smooth.
S106 obtains the output valve of the acceleration transducer and/or gyroscope in terminal.
Optionally, acceleration transducer output is voltage or current signal, and the space of the definition terminal of characterization is sat The acceleration value of three axis of mark system, that is, measure the line movement of three axis.
Optionally, rotational angular velocity when what gyroscope exported is deflection, inclination.
Optionally, it can measure or reconstruct complete 3D actions in conjunction with acceleration transducer and gyroscope.
After step S106 is executed, judged, in the case where the result of step S106 is eligible, is even added The maximum variable quantity of the output valve of velocity sensor is more than the maximum variable quantity of the 5th predetermined threshold value and/or the output valve of gyroscope More than the 6th predetermined threshold value, step S101 and step S102 is then executed.Optionally, at this point, step S101 concretely:Step Rapid S1011, step S102 is concretely:Step S1023, the step S1011 and the step S1023 can be buffered Voice data default existence time in execute, can reach in the case of this kind solve include in the voice data that user obtains The incomplete problem of information purpose.
S1011, if the maximum variable quantity of the output valve of acceleration transducer is more than the 5th predetermined threshold value and/or gyroscope The maximum variable quantity of output valve is more than the 6th predetermined threshold value, then executes:The output valve for obtaining the proximity sensor in terminal is executed, The output valve of the direction sensor in terminal is obtained, obtains the touch point position on terminal screen, and start the image in terminal Sensor simultaneously obtains at least one in the input picture of described image sensor.
It should be noted that the maximum variable quantity of the output valve of acceleration transducer is more than the 5th predetermined threshold value and/or top The maximum variable quantity of the output valve of spiral shell instrument is more than the 6th predetermined threshold value and wants to judge, whether terminal is in motion process, Such as user click play voice data after, by terminal close to ear.
Optionally, in the case where judging to set up, then judge in next step, otherwise without in next step, reason is: In the case that terminal does not move, judging terminal, (at a distance from terminal and ear, terminal is close with the topological relation of ear When ear in space state in which, terminal and ear Multi-contact, whether the distribution pattern and terminal of touch point may be used To get the image etc. that ear is input to terminal image sensor) it is meaningless, in this way, decreasing the calculation amount of terminal.It should In the case of kind, buffered voice data cannot answer in default existence time and will be deleted or be not present automatically.
S1023, if the output valve of proximity sensor meets preset first condition, if the output valve of direction sensor meets Preset second condition, if if touch point position meets preset third condition and input picture meets preset fourth condition four At least one establishment in person then uses handset mode to play buffered voice data.
It should be noted that the voice data including step S105, step S106, step S1011 and step S102 is broadcast The method of putting is carried out in the default existence time of buffered voice data, and entire method is under user control so that language Sound data successfully play, and achieve the purpose that solve the problems, such as that the information for including in voice data that user obtains is incomplete. For another angle, this manner it is also possible to prevent user because the information in the voice data of reception is imperfect, especially voice number The inconvenience that repeatedly need be answered voice according to the omission for the information for including in beginning and bring.Further also avoid user Want disposably to hear the complete information for including in voice data and quickly need move terminal after clicking broadcasting voice Move this flurried operation in one's ear.
It should be noted that user in the default existence time for being buffered voice data can by terminal close to ear, because This default existence time for being buffered voice data can play voice according to large sample (more people, most evidences) about from operation Data are determined to by terminal close to ear data, can also play voice data to general about from operation according to the multiple of individual Terminal determines the default existence time of the buffered voice data in the personal terminal close to ear data.
It should be noted that giving four kinds with " topological relation of terminal and user's ear " for standard in first embodiment Arranged side by side different is judged to determine to be played the judgement with the relevant voice data of currently running application program using handset mode Sentence.Those skilled in the art, according to combination and permutation mathematical principle in mathematical textbooks it is found that at most there are 64 kinds of modes not With arrangement mode, including a kind of, two kinds, three kinds, four kinds Rule of judgment assembled arrangements mode, only a variety of (two Kind or more) constituted mode of Rule of judgment assembled arrangement needs are mutually linked between Rule of judgment, i.e., previous judgements establishment, Judge that the condition of offence, the mode of a variety of Rule of judgment assembled arrangements are advantageous in that and can be leaned on closer to terminal as the latter When nearly ear, voice this standard is played, for probability angle, be more prone to reach and solve to wrap in the voice data that user obtains The purpose of the incomplete problem of information contained.Those skilled in the art, it is known that clearly know these arrangement modes, mainly lift below The example of two kinds of Rule of judgment combination illustrates.
It should be noted that obtain four kinds of amounts in the application step S101, user generally by terminal close in one's ear answering In the case of terminal speech data, there are relatively-stationary values for this four kinds amounts, therefore with it to obtain object, and then according to judgement As a result, execute using handset mode play with the relevant voice data of currently running application program, it is clear that including step The playback method of the voice data of S101 and step S102 using handset mode by under the premise of meeting preset condition, being played With the relevant voice data of currently running application program, i.e., by according to voice data is answered when, terminal and ear Topological relation establishes the Rule of judgment of characterization correlation, to reach the information for solving to include in the voice data that user obtains not The purpose of complete problem.
The application second embodiment provides a kind of playback method of voice data, the method includes:It executes to obtain and connect The output valve of nearly sensor obtains the output valve of direction sensor and obtains at least one in touch point position three;If close The output valve of sensor meets preset first condition, if if the output valve of direction sensor meets preset second condition and touches Control point position meets at least one establishment in preset third condition three, then starts imaging sensor and obtain imaging sensor Input picture;If input picture meets preset fourth condition, is played using handset mode and apply journey with currently running The relevant voice data of sequence;
Alternatively, executing the output valve for obtaining proximity sensor, obtaining the output valve of direction sensor and starting image sensing Device simultaneously obtains at least one in the input picture three of imaging sensor;If the output valve of proximity sensor meets preset first Condition, if if the output valve of direction sensor meets preset second condition and input picture meets preset fourth condition three In at least one establishment, then obtain touch point position;If the touch point position meets preset third condition, receiver is used Mode playback and the relevant voice data of currently running application program;
Alternatively, executing the output valve for obtaining proximity sensor, obtaining touch point position and starting imaging sensor and obtain It is at least one in the input picture three of imaging sensor;If the output valve of proximity sensor meets preset first condition, if If touch point position meets preset third condition and input picture meets at least one establishment in preset fourth condition three, Then obtain the output valve of direction sensor;If the output valve of direction sensor meets preset second condition, uses and listen cylinder mould Formula plays and the relevant voice data of currently running application program;
Alternatively, executing the output valve for obtaining direction sensor, obtaining touch point position and starting imaging sensor and obtain It is at least one in the input picture three of imaging sensor;If the output valve of direction sensor meets preset second condition, if If touch point position meets preset third condition and input picture meets at least one establishment in preset fourth condition three, Then obtain the output valve of proximity sensor;If the output valve of proximity sensor meets preset first condition, uses and listen cylinder mould Formula plays and the relevant voice data of currently running application program.
Referring to Fig. 2, Fig. 2 shows a flows of the playback method of the voice data of the application second embodiment offer to show It is intended to, the executive agent of the playback method of voice data can be various terminals above-mentioned.For convenience of description, Fig. 2 is illustrated only A flow diagram with the relevant part of the embodiment of the present application, the playback method of the exemplary voice data of Fig. 2 can be by step S201, step S202 and step S203 are realized:
S201 executes the output valve for obtaining proximity sensor, obtains the output valve of direction sensor and obtains touch-control point It sets at least one in three.
S202, if the output valve of proximity sensor meets preset first condition, if the output valve of direction sensor meets If preset second condition and touch point position meet at least one establishment in preset third condition three, start image biography Sensor and the input picture for obtaining imaging sensor.
Optionally, in the present embodiment, step S202 includes " if the output valve of proximity sensor meets preset first Condition then starts described image sensor, and obtains the input picture of imaging sensor " situation can by step S2021 or Step S2022 realizations,
Step S202 described in the last period include " if the output valve of proximity sensor meets preset first condition, Then start described image sensor, and obtain the input picture of imaging sensor " situation include 4 kinds, respectively:If close to passing The output valve of sensor meets preset first condition, then starts imaging sensor and obtain the input picture of imaging sensor;If If the output valve of proximity sensor meets preset first condition and the output valve of direction sensor meets preset second condition The two is set up, then starts imaging sensor and obtain the input picture of imaging sensor;If the output valve of proximity sensor meets If preset first condition and touch point position meet the establishment of both preset third conditions, starts imaging sensor and obtain The input picture of imaging sensor;If the output valve of proximity sensor meets preset first condition, if direction sensor is defeated If going out, value meets preset second condition and touch point position meets preset third condition three and sets up, and starts image sensing Device and the input picture for obtaining imaging sensor.
S2021 starts imaging sensor and obtains image if the output valve of proximity sensor is less than the first predetermined threshold value The input picture of sensor, proximity sensor are capacitive proximity sensor and/or inductive proximity sensor.
It should be noted that it is according to capacitive proximity sensor and inductive proximity sensor " to be less than " in step S2021 Output valve and determination.
It should be noted that inductive proximity sensor and capacitive proximity sensor can incude metallic conductor, Such as female user may the often earrings etc. with metal material, in the case of this kind, just selection inductance type is relatively suitble to connect Nearly sensor and capacitive proximity sensor induction.
It should be noted that capacitive proximity sensor can also incude non-metal conductor, such as human skin.
S2022 starts imaging sensor and obtains image if the output valve of proximity sensor is more than the second predetermined threshold value The input picture of sensor, proximity sensor be photo-electric proximity sensor and or ranging proximity sensor.
It should be noted that " be more than " in step S2021 be according to photo-electric proximity sensor and or ranging proximity sensor Output valve and determination.
Optionally, ranging proximity sensor can be infrared proximity transducer.
S203 is played and currently running application if input picture meets preset fourth condition using handset mode The relevant voice data of program.
Referring to Fig. 3, Fig. 3 shows another flow of the playback method for the voice data that the application second embodiment provides The executive agent of schematic diagram, the playback method of voice data can be various terminals above-mentioned.For convenience of description, Fig. 3 is only shown With the relevant part of the embodiment of the present application, another flow diagram of the playback method of the exemplary voice data of Fig. 3 can be by step Rapid S204, step S205 and step S206 are realized:
S204 executes the output valve for obtaining proximity sensor, obtains the output valve of direction sensor and starts image sensing Device simultaneously obtains at least one in the input picture three of imaging sensor.
S205, if the output valve of proximity sensor meets preset first condition, if the output valve of direction sensor meets If preset second condition and input picture meet at least one establishment in preset fourth condition three, touch-control point is obtained It sets.
Optionally, in the present embodiment, step S205 includes " if the output valve of direction sensor meets preset second Condition then obtains touch point position " 4 in situation can be realized by step S2051.
S2051, if the azimuth of direction sensor output belongs to the first preset threshold range, the inclination angle of output belongs to the Two preset threshold ranges and the roll angle of output belong at least one establishment in third predetermined threshold value range three, then obtain touch-control Point position.
It should be noted that the reality of the first preset threshold range, the second preset threshold range, third predetermined threshold value range Preset value to define the space coordinates of terminal related, it is specific with respect to appearance residing for terminal but when answering voice due to user State is certainly to obtaining certain regularity.
Optionally, if the azimuth of direction sensor output belongs to the first preset threshold range, the inclination angle of output belongs to Belong to third predetermined threshold value range at least two in the roll angle of the second preset threshold range and output to set up, it can be to a certain degree It is upper to promote the incomplete probability of the information for including in the voice data for achieving the purpose that solve the problems, such as user's acquisition, in other words It says, the probability of the integrality for the information for including in the voice data of user's acquisition is enabled to increase.
Optionally, in the present embodiment, step S2051 can be realized by step S20511.
S20511, if the azimuth of direction sensor output belongs to the first preset threshold range, the inclination angle of output belongs to Second preset threshold range and the roll angle of output belong at least one establishment in third predetermined threshold value range three, obtain touch-control The output valve of point position and the pressure-sensitive sensor in the corresponding terminal in touch point position.
Optionally, pressure-sensitive sensor can refer to can not only sensed pressure whether there is or not and be capable of the biography of sensed pressure size Sensor, such as Force Touch pressure-sensitive sensors.
It should be noted that ear in multi-point touch terminal screen, due to the construction of ear, can lead to different touch Therefore control is pointed out more meets ergonomics, Neng Gougeng to the pressure difference of screen after increasing the output valve of pressure-sensitive sensor Multi-point touch of the ear to terminal screen is accurately described, to further such that the letter for including in the voice data that user obtains The probability of the integrality of breath increases.
S206 is answered using handset mode broadcasting with currently running if touch point position meets preset third condition With the relevant voice data of program.
Optionally, step S1022 and its explanation can be used for step S206 in first embodiment, for the side of description Just, by the content of step S1022 renamed as step S2061 in the present embodiment.
Optionally, in the present embodiment, step S2061 can be realized by step S20611, step S20611 and step S20511 is corresponding.
S20611, if the matching degree for the pattern that touch point position is formed with preset multi-point touch is more than the 4th predetermined threshold value And the output valve of the pressure-sensitive sensor in the corresponding terminal in touch point position and the physical values of corresponding points in preset pattern exist Meet linear regression under the default examination requirements of parameter preset, and if the pattern that is formed of touch point position and preset multi-point touch Matching degree be more than the 4th predetermined threshold value and pressure-sensitive sensor output value and belong to the establishment of the 4th preset threshold range alternative one, Handset mode broadcasting and the relevant voice data of currently running application program are then used, the output valve of pressure-sensitive sensor is electricity Flow valuve or voltage value, the terminal include comprehensive screen of pressure sensitivity touch-control.
Optionally, parameter preset can be the parameter in the mathematics such as confidence level, confidence interval.
Optionally, default inspection can be the hypothesis testing in the mathematics such as F is examined, T is examined.
Optionally, if the matching degree for the pattern that touch point position is formed with preset multi-point touch is more than the 4th default threshold The physical values of value and the output valve of the pressure-sensitive sensor in the corresponding terminal in touch point position and corresponding points in preset pattern It can be the mould that touch point position is formed with preset multi-point touch to meet linear regression under the default examination requirements of parameter preset The matching degree of formula be more than the output valve of the pressure-sensitive sensor in the corresponding terminal of the 4th predetermined threshold value and touch point position with it is pre- If pattern in the physical values of corresponding points meet linear regression under the default examination requirements of parameter preset while setting up, such as in advance If the pattern that is formed of multi-point touch be that shape is similar to the M that 5 point A, B, C, D, E are formed on ear and (is only referred to generation, no image Meaning) shape, and 5 touch point positions are got, respectively a, b, c, d, e learn A-a, B-b, C-c, D- after operation D, it is more than the 4th predetermined threshold value 0.85, the output valve (electricity of the pressure-sensitive sensor of the characterization pressure at touch point a after E-e matchings Flow valuve or voltage value) with the logistics values (current value or voltage value, power etc.) of preset A points group pair, the characterization pressure at touch point b The output valve (current value or voltage value) of the pressure-sensitive sensor of power and logistics value (current value or voltage value, the work(of preset B points Rate etc.) group pair, output valve (current value or voltage value) and the preset C of the pressure-sensitive sensor of the characterization pressure at touch point c Logistics value (the current value or voltage value, power etc.) group pair of point, the output of the pressure-sensitive sensor of the characterization pressure at touch point d It is worth physical values (the current value or voltage value, power etc.) group pair of (current value or voltage value) with preset D points, at touch point e Characterize logistics value (current value or the electricity of the output valve (current value or voltage value) and preset E points of the pressure-sensitive sensor of pressure Pressure value, power etc.) group pair, wherein any one group (a, b, c, d, e or A, B, C, D, E) be used as independent variable, another set as because Variable carries out linear regression analysis, and by a certain mathematical check, regression equation can be established when confidence level is 95%, i.e. line Property return set up.
It should be noted that from the example of the last period it is known that shape model correspondence (such as A-a, B-b, C-c, D-d, E-e) and as the correspondence of independent variable and dependent variable, (such as A point physical values-a presses the defeated of sensing type sensor when returning Go out value, B point physical values-b presses the output valve of sensing type sensor, C point physical values-c presses the output valve of sensing type sensor, D points Physical values-d presses the output valve of sensing type sensor, E point physical values-e presses the output valve of sensing type sensor) it is consistent.
Similarly, optionally, if the matching degree for the pattern that touch point position is formed with preset multi-point touch is more than the 4th If it can be touch point position and preset multiple spot that predetermined threshold value and pressure-sensitive sensor output value, which belong to the 4th preset threshold range, The matching degree for the pattern that touch-control is formed is more than the 4th predetermined threshold value and pressure-sensitive sensor output value belongs to the 4th predetermined threshold value model It encloses while setting up, such as pressure-sensitive sensor output value belongs to the 4th preset threshold range, can be pressure-sensitive on the multiple spot of touch-control Sensor output value belongs to the 4th preset threshold range, and pressure-sensitive sensor output value belongs on specific 5 points such as touch-control In the 4th preset threshold range [0.5,0.8] volt.
It should be noted that the factor judged in existing position plane that step S20511 and S20611 are formed, and have position " depth value " set, i.e. pressure size incude, therefore more three-dimensional, to further such that the voice data that user obtains In include information integrality probability increase.
Referring to Fig. 4, Fig. 4 shows another flow of the playback method for the voice data that the application second embodiment provides The executive agent of schematic diagram, the playback method of voice data can be various terminals above-mentioned.For convenience of description, Fig. 4 is only shown With the relevant part of the embodiment of the present application, another flow diagram of the playback method of the exemplary voice data of Fig. 4 can be by step Rapid S207, step S208 and step S209 are realized:
S207 executes the output valve for obtaining proximity sensor, obtains touch point position and starts imaging sensor and obtain It is at least one in the input picture three of described image sensor.
S208, if the output valve of proximity sensor meets preset first condition, if touch point position meets preset If three conditions and input picture meet at least one establishment in preset fourth condition three, the output of direction sensor is obtained Value.
S209 is played and current if the output valve of direction sensor meets preset second condition using handset mode The relevant voice data of application program of operation.
Referring to Fig. 5, Fig. 5 shows that a flow of the playback method for the voice data that the application second embodiment provides is shown It is intended to, the executive agent of the playback method of voice data can be various terminals above-mentioned.For convenience of description, Fig. 5 is illustrated only A flow diagram with the relevant part of the embodiment of the present application, the playback method of the exemplary voice data of Fig. 5 can be by step S210, step S211 and step S212 are realized:
S210 executes the output valve for obtaining direction sensor, obtains touch point position and starts imaging sensor and obtain It is at least one in the input picture three of imaging sensor.
S211, if the output valve of direction sensor meets preset second condition, if touch point position meets preset If three conditions and input picture meet at least one establishment in preset fourth condition three, the output of proximity sensor is obtained Value.
S212 is played and current if the output valve of proximity sensor meets preset first condition using handset mode The relevant voice data of application program of operation.
The application 3rd embodiment provides a kind of terminal, and the terminal includes:Acquisition module obtains terminal for executing On proximity sensor output valve, obtain terminal on direction sensor output valve, obtain terminal screen on touch point Position, and start the imaging sensor in terminal and obtain at least one in the input picture of described image sensor;Sentence Disconnected module, for judging that the output valve of the proximity sensor meets preset first condition, the output of the direction sensor Value meets preset second condition, the touch point position meets preset third condition and the input picture meet it is preset In fourth condition whether at least one establishment;Playing module is preset if the output valve for the proximity sensor meets First condition, if the output valve of the direction sensor meets preset second condition, if the touch point position meet it is pre- If if third condition and the input picture meet at least one establishment in preset fourth condition, using listening cylinder mould Formula plays and the relevant voice data of currently running application program.It is detailed below by way of the carry out such as word, number, exemplary drawings Carefully, illustrative explanation.
Referring to Fig. 6, Fig. 6 shows the structural schematic diagram for the terminal 30 that the application 3rd embodiment provides, voice data The executive agent of playback method can be various terminals above-mentioned.For convenience of description, Fig. 5 is illustrated only and the embodiment of the present application The structural schematic diagram of relevant part, the exemplary terminals of Fig. 5 30 can be real by acquisition module 31, judgment module 32 and playing module 33 It is existing:
Acquisition module 31 can be used for obtaining the output valve of the proximity sensor in terminal, obtain the direction sensing in terminal The output valve of device obtains the touch point position on terminal screen, and starts the imaging sensor in terminal and obtain described image It is at least one in the input picture of sensor;If also class meets preset first for the output valve of proximity sensor Part, if if the output valve of direction sensor meets preset second condition and touch point position meets preset third condition three In at least one establishment, then start imaging sensor and obtain the input picture of imaging sensor;If can be additionally used in close to sensing The output valve of device meets preset first condition, if if the output valve of direction sensor meets preset second condition and input figure As meeting at least one establishment in preset fourth condition three, then touch point position is obtained;If can be additionally used in proximity sensor Output valve meet preset first condition, if if touch point position meet preset third condition and input picture meet it is default Fourth condition three at least one establishment, then obtain the output valve of direction sensor;If can be additionally used in direction sensor Output valve meets preset second condition, if if touch point position meet preset third condition and input picture meet it is preset At least one establishment in fourth condition three, then obtain the output valve of proximity sensor.
Judgment module 32 can be used for judging that the output valve of proximity sensor meets preset first condition, direction sensor Output valve meet preset second condition, touch point position meets preset third condition and input picture meets preset In four conditions whether at least one establishment;It can be additionally used in continuous arbitrary the two in aforementioned four, arbitrary three and four Person judges.
Playing module 33, if the output valve that can be used for proximity sensor meets preset first condition, if direction sensor Output valve meet preset second condition, if if touch point position meet preset third condition and input picture meet it is default Fourth condition at least one establishment, then use handset mode play with the relevant voice of currently running application program Data;If the matching degree that can be additionally used in input picture and pre-set image is more than third predetermined threshold value, played using handset mode With the relevant voice data of currently running application program;If can be additionally used in what touch point position was formed with preset multi-point touch The matching degree of pattern is more than the 4th predetermined threshold value, then uses handset mode to play and the relevant voice of currently running application program Data;If the matching degree that can be additionally used in the pattern that touch point position and preset multi-point touch are formed be more than the 4th predetermined threshold value and The output valve of pressure-sensitive sensor in the corresponding terminal in touch point position is with the physical values of corresponding points in preset pattern pre- Meet linear regression under the default examination requirements of setting parameter, and if the touch point position and preset multi-point touch pattern that is formed Matching degree is more than the 4th predetermined threshold value and pressure-sensitive sensor output value belongs to the establishment of the 4th preset threshold range alternative one, then It is played and the relevant voice data of currently running application program using handset mode.
Acquisition module 31, judgment module 32 and playing module 33 can be additionally used in and the first, second embodiment of the application in a word Middle difference is obtained, judges and is played accordingly, skilled person will appreciate that, how accordingly to be rewritten, details are not described herein.
Optionally, terminal 30 may also include other modules, other modules can be according to the side in the first, second embodiment Method step is rewritten, such as terminal 30 may also include control module 34, and the screen for control terminal extinguishes;It can also be used to control The screen of terminal processed is lighted.Skilled person will appreciate that how accordingly to be rewritten, details are not described herein.
It should be noted that in the embodiment of the exemplary terminal of figure 6 above, the division of each function module is only to illustrate It is bright, can be as needed in practical application, such as the convenient of realization of the configuration requirement or software of corresponding hardware considers, and incite somebody to action Above-mentioned function distribution is completed by different function modules, i.e., the internal structure of electronic device is divided into different function modules, To complete all or part of the functions described above.Moreover, in practical applications, the corresponding function module in the present embodiment Can also corresponding software be executed by corresponding hardware realization by corresponding hardware and be completed.This specification provides each A embodiment can all apply foregoing description principle, repeat no more below.
The detailed process of the respective function of each Implement of Function Module in terminal provided in this embodiment, refer to above-mentioned first, Particular content described in second embodiment, details are not described herein again.
The application fourth embodiment provides a kind of terminal, including:Processor, memory, the memory couple the place Device is managed, and is stored with computer program, the processor is realized when executing the computer program in the first and second embodiments Any one the method.
Referring to Fig. 7, Fig. 7 is the structural schematic diagram for the terminal that the application fourth embodiment provides.Terminal 40, including:Place Device 41, memory 42 are managed, processing and memory are coupled by bus 43, and memory 42 is stored with computer program, processor 41 Any one of the first and second embodiments the method is realized when executing computer program.
Processor 41 can be used for obtaining the output valve of the proximity sensor in terminal, obtain the direction sensor in terminal Output valve obtains the touch point position on terminal screen, and starts the imaging sensor in terminal and obtain described image sensing It is at least one in the input picture of device;It can also be used to judge that the output valve of proximity sensor meets preset first condition, The output valve of direction sensor meets preset second condition, and touch point position meets preset third condition and input picture is full In the preset fourth condition of foot whether at least one establishment;Control playing device is can be also used for play using handset mode With the relevant voice data of currently running application program etc..
Memory 42 can be used for storing value, the condition of judgement etc. that processor control sensor obtains, for example, can be used for by In voice data storage to established caching mechanism in currently running application program;It can also be used to store processor operation Result etc..
Bus 43 can be used for transmitting signal etc..
Processor 41, memory 42 and bus 43 can be additionally used in and distinguish phase in the first, second embodiment of the application in a word The execution order answered or control other elements or device execute order, store various data and transmit signal, people in the art How member is it is found that accordingly to be rewritten, details are not described herein.
Terminal 40, may also include other elements, device etc., and other elements, device can be according in the first, second embodiments Method and step increased, such as may also include playing device, for being played and currently running application using handset mode The relevant voice data of program.Skilled person will appreciate that how accordingly to be increased, details are not described herein.
Referring to Fig. 8, Fig. 8 is the structural schematic diagram for the terminal that the 5th embodiment of the application provides.The terminal 900 includes RF Circuit 910, memory 920, input unit 930, display unit 940, sensor 950, voicefrequency circuit 960, wifi module 970, Processor 980 and power supply 990 etc..Wherein, RF circuits 910, memory 920, input unit 930, display unit 940, sensing Device 950, voicefrequency circuit 960 and wifi module 970 are connect with processor 980 respectively;Power supply 990 is used to be entire mobile terminal 900 provide electric energy.
Specifically, RF circuits 910 are used for receiving and transmitting signal;The command information for storing data of memory 920;Input unit 930 are used for input information, can specifically include other input equipments 932 such as touch panel 931 and operation button;Display unit 940 may include display panel 941 etc.;Sensor 950 includes that may include:Proximity sensor, direction sensor, image sensing Device, pressure-sensitive sensor, acceleration transducer, gyroscope etc., for detecting and exporting user's approach signal, distance signal, end The residing direction signal in end, the signal of pressure generation, picture signal, acceleration signal, rotating signal etc., mobile terminal 900 Temperature etc.;Loud speaker 961 and microphone (or microphone) 962 are connect by voicefrequency circuit 960 with processor 980, are used for Sending and receiving voice signal;Wifi module 970 is then used to receiving and emitting wifi signals.
Sensor 950 may include:Proximity sensor, direction sensor, imaging sensor, pressure-sensitive sensor, acceleration Sensor, gyroscope etc..
The application sixth embodiment provides a kind of computer readable storage medium, is stored thereon with computer program, institute When stating computer program and being executed by processor, realize first embodiment and second implement in any one the method.
Optionally, which can be disposed in the electronic device in the various embodiments described above, The computer readable storage medium can be the memory in aforementioned illustrated embodiment, can also be with there are the dresses of function It sets, such as computer itself, terminal etc..It is stored with computer program on the computer readable storage medium, which is handled Realize earlier figures 1 to the playback method of the voice data described in embodiment illustrated in fig. 5 when device executes.
Optionally, the computer can storage medium can also be USB flash disk, mobile hard disk, DNA hard disks, read-only memory The various media that can store program code such as (ROM, Read-Only Memory), RAM, magnetic disc or CD.
It should be understood that the computer program of readable storage medium storing program for executing storage in the present embodiment, the side of being performed used Method is similar with the method that above-described embodiment provides, and principle is identical with step, and which is not described herein again.
It should be noted that the implementation of the application first to associated description in any one embodiment in sixth embodiment can phase It is mutually rewritten in other embodiment, and skilled person will know how rewritings, is not repeating herein.
It should be noted that the application second implements to be based on same invention structure to sixth embodiment and first embodiment Think, therefore second implements result from the corresponding technology effect of first embodiment to itself and its entire content of sixth embodiment Fruit is not repeating herein.
It should be noted that all preset numerical value in the application (such as the first predetermined threshold value, the first predetermined threshold value model Enclose, preset existence time etc.) can count to obtain by the large sample of correlation, the method for the statistics can be in mathematical statistics Existing any method, such as the first predetermined threshold value can pass through the output valve of the proximity sensor of a large amount of numbers, such as voltage value Or 98% and 2% voltage or electric current cut off value are taken after electric current Data-Statistics, wherein 98% represents less than the voltage or electric current cut off value Probability shared by voltage or electric current.
It should be noted that, the voice that more enables to user obtain more accurate by the preset value that large sample obtains The probability of the integrality for the information for including in data increases.
In above-described embodiment provided herein, it should be understood that the broadcasting of disclosed terminal and voice data Method may be implemented in other ways.For example, the embodiment of virtual terminal described above is only schematical, For example, the division of the module, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, example Such as multiple module or components can be combined or can be integrated into another system, or some features can be ignored or not executed. Another point, shown or discussed mutual coupling, direct-coupling or communication connection can be by some interfaces, dress It sets or the INDIRECT COUPLING of module or communication connection, can be electrical, machinery or other forms.
The module illustrated as separating component may or may not be physically separated, aobvious as module The component shown may or may not be physical module, you can be located at a place, or may be distributed over multiple On network module.Some or all of module therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each function module in each embodiment of the application can be integrated in a processing module, it can also That modules physically exist alone, can also two or more modules be integrated in a module.Above-mentioned integrated mould The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a readable storage medium storing program for executing, including some instructions are used so that a meter It calculates machine equipment (can be personal computer, server or the network equipment etc.) and executes each embodiment the method for the application All or part of step.
It should be noted that for each method embodiment above-mentioned, describe, therefore it is all expressed as a series of for simplicity Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this Shens It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
It is retouching to the playback method of voice data provided herein, terminal and computer readable storage medium above It states, can in specific embodiments and applications according to the thought of the embodiment of the present application for those skilled in the art There is change place, to sum up, the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of playback method of voice data, which is characterized in that the method includes:
The output valve for obtaining the proximity sensor in terminal is executed, the output valve of the direction sensor in terminal is obtained, is obtained eventually The touch point position on screen is held, and starts the imaging sensor in terminal and obtains the input picture four of described image sensor It is at least one in person;
If the output valve of the proximity sensor meets preset first condition, if the output valve of the direction sensor meets in advance If second condition, if if the touch point position meets preset third condition and the input picture meets the preset 4th At least one establishment in condition then uses handset mode to play and the relevant voice data of currently running application program.
2. the method as described in claim 1, which is characterized in that the method includes:
The output valve for obtaining the proximity sensor is executed, the output valve of the direction sensor is obtained and obtains the touch point It is at least one in the three of position;
If the output valve of the proximity sensor meets preset first condition, if the output valve of the direction sensor meets in advance If if second condition and the touch point position meet at least one establishment in preset third condition three, start described in Imaging sensor and the input picture for obtaining described image sensor;
If the input picture meets preset fourth condition, played and currently running application program phase using handset mode The voice data of pass;
Alternatively, executing the output valve for obtaining the proximity sensor, obtain described in output valve and the startup of the direction sensor Imaging sensor simultaneously obtains at least one in the input picture three of described image sensor;
If the output valve of the proximity sensor meets preset first condition, if the output valve of the direction sensor meets in advance If if second condition and the input picture meet at least one establishment in preset fourth condition three, obtain it is described touch Control point position;
If the touch point position meets preset third condition, played and currently running application program using handset mode Relevant voice data;
Alternatively, executing the output valve for obtaining the proximity sensor, obtaining the touch point position and starting described image sensing Device simultaneously obtains at least one in the input picture three of described image sensor;
If the output valve of the proximity sensor meets preset first condition, if the touch point position meets preset third If condition and the input picture meet at least one establishment in preset fourth condition three, the direction sensor is obtained Output valve;
If the output valve of the direction sensor meets preset second condition, using handset mode play with it is currently running The relevant voice data of application program;
Alternatively, executing the output valve for obtaining the direction sensor, obtaining the touch point position and starting described image sensing Device simultaneously obtains at least one in the input picture three of described image sensor;
If the output valve of the direction sensor meets preset second condition, if the touch point position meets preset third If condition and the input picture meet at least one establishment in preset fourth condition three, the proximity sensor is obtained Output valve;
If the output valve of the proximity sensor meets preset first condition, using handset mode play with it is currently running The relevant voice data of application program.
3. method as claimed in claim 2, which is characterized in that
If the output valve of the proximity sensor meets preset first condition, start described image sensor, and obtain The input picture of described image sensor is taken, including:
If the output valve of the proximity sensor is less than the first predetermined threshold value, starts described image sensor and obtain the figure As the input picture of sensor, the proximity sensor be capacitive proximity sensor and/or inductive proximity sensor,
If alternatively, the output valve of the proximity sensor is more than the second predetermined threshold value, starts described image sensor and obtain The input picture of described image sensor, the proximity sensor be photo-electric proximity sensor and or ranging proximity sensor;
If the input picture meets preset fourth condition, is played using handset mode and apply journey with currently running The relevant voice data of sequence, including:
If the matching degree of the input picture and pre-set image is more than third predetermined threshold value, played using handset mode and current The relevant voice data of application program of operation, the pre-set image include the image of auditory system.
4. method as claimed in claim 2, which is characterized in that
If the output valve of the direction sensor meets preset second condition, the touch point position is obtained, including:
If the azimuth of the direction sensor output belongs to the first preset threshold range, the inclination angle of output belongs to second and presets Threshold range and the roll angle of output belong at least one establishment in third predetermined threshold value range three, then obtain the touch point Position;
If touch point position meets preset third condition, played and currently running application using handset mode The relevant voice data of program, including:
If the matching degree for the pattern that the touch point position is formed with preset multi-point touch is more than the 4th predetermined threshold value, use Handset mode plays and the relevant voice data of currently running application program.
5. method as claimed in claim 4, which is characterized in that if the azimuth of direction sensor output belongs to the The inclination angle of one preset threshold range, output belongs to the second preset threshold range and the roll angle of output belongs to third predetermined threshold value At least one establishment in range three then obtains the touch point position;If the touch point position and preset multi-point touch The matching degree of the pattern of formation is more than the 4th predetermined threshold value, then uses handset mode to play related to currently running application program Voice data, including:
If the azimuth of the direction sensor output belongs to the first preset threshold range, the inclination angle of output belongs to second and presets Threshold range and the roll angle of output belong at least one establishment in third predetermined threshold value range three, obtain the touch-control point It sets and the output valve of pressure-sensitive sensor in the corresponding terminal in the touch point position;
If the matching degree for the pattern that the touch point position is formed with preset multi-point touch is more than the 4th predetermined threshold value and described The physical values of the output valve of pressure-sensitive sensor in the corresponding terminal in touch point position and corresponding points in the preset pattern Meet linear regression under the default examination requirements of parameter preset, if being formed with preset multi-point touch with the touch point position The matching degree of pattern be more than the 4th predetermined threshold value and the pressure-sensitive sensor output value and belong to the 4th preset threshold range two One of person sets up, then uses handset mode to play and passed with the relevant voice data of currently running application program, the pressure-sensitive The output valve of sensor is current value or voltage value, and the terminal includes comprehensive screen of pressure sensitivity touch-control.
6. the method as described in any one of claim 1 to 5, which is characterized in that touching on the acquisition terminal screen Before control point position, including:
The screen for controlling the terminal extinguishes;
After the use handset mode broadcasting with the relevant voice data of currently running application program, including:
After after the relevant voice data broadcasting preset time with currently running application program or broadcasting, institute is obtained State the output valve of proximity sensor;
If the output valve of the proximity sensor meets preset fifth condition, the screen for controlling the terminal is lighted.
7. the method as described in any one of claim 1 to 5, which is characterized in that the method further includes:
By in the voice data storage to established caching mechanism in currently running application program, buffered voice is formed Data;
In the default existence time of the buffered voice data, following step is executed:
Obtain the output valve of the acceleration transducer and/or gyroscope in terminal;
If the maximum variable quantity of the output valve of the acceleration transducer is more than the defeated of the 5th predetermined threshold value and/or the gyroscope The maximum variable quantity for going out value is more than the 6th predetermined threshold value, then executes:It is described to execute the output for obtaining the proximity sensor in terminal Value obtains the output valve of the direction sensor in terminal, obtains the touch point position on terminal screen, and start the figure in terminal As sensor and obtain at least one in the input picture of described image sensor;If the output valve of the proximity sensor Meet preset first condition, if the output valve of the direction sensor meets preset second condition, if the touch-control point Meet at least one establishment in preset fourth condition if setting and meeting preset third condition and the input picture, adopts It is played and the relevant voice data of currently running application program with handset mode;
If the output valve of the proximity sensor meets preset first condition, if the output valve of the direction sensor is full The preset second condition of foot, if if the touch point position meet preset third condition and the input picture meet it is preset At least one establishment in fourth condition then uses handset mode to play and the relevant voice number of currently running application program According to specially:
If the output valve of the proximity sensor meets preset first condition, if the output valve of the direction sensor meets in advance If second condition, if if the touch point position meets preset third condition and the input picture meets the preset 4th At least one establishment in condition then plays the buffered voice data using handset mode.
8. a kind of terminal, which is characterized in that the terminal includes:
Acquisition module obtains the direction sensor in terminal for executing the output valve for obtaining the proximity sensor in terminal Output valve obtains the touch point position on terminal screen, and starts the imaging sensor in terminal and obtain described image sensing It is at least one in the input picture of device;
Judgment module, for judging that the output valve of the proximity sensor meets preset first condition, the direction sensor Output valve meet preset second condition, the touch point position meets preset third condition and the input picture meets In preset fourth condition whether at least one establishment;
Playing module, if the output valve for the proximity sensor meets preset first condition, if the direction sensor Output valve meet preset second condition, if if the touch point position meets preset third condition and the input picture Meet at least one establishment in preset fourth condition, then uses handset mode to play and currently running application program phase The voice data of pass.
9. a kind of terminal, including:Processor, memory, the memory couples the processor, and is stored with computer journey Sequence, the processor realize the method described in any one of claim 1 to 7 when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program When being executed by processor, the method described in any one in claim 1 to 7 is realized.
CN201810224855.0A 2018-03-19 2018-03-19 Playback method, terminal and the computer readable storage medium of voice data Pending CN108391013A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810224855.0A CN108391013A (en) 2018-03-19 2018-03-19 Playback method, terminal and the computer readable storage medium of voice data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810224855.0A CN108391013A (en) 2018-03-19 2018-03-19 Playback method, terminal and the computer readable storage medium of voice data

Publications (1)

Publication Number Publication Date
CN108391013A true CN108391013A (en) 2018-08-10

Family

ID=63067587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810224855.0A Pending CN108391013A (en) 2018-03-19 2018-03-19 Playback method, terminal and the computer readable storage medium of voice data

Country Status (1)

Country Link
CN (1) CN108391013A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112908329A (en) * 2021-02-26 2021-06-04 北京百度网讯科技有限公司 Voice control method and device, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144252A (en) * 2013-11-28 2014-11-12 腾讯科技(深圳)有限公司 Voice communication method and mobile terminal
US20150056975A1 (en) * 2013-08-23 2015-02-26 Yangdoo PARK Mobile terminal and controlling method thereof
CN105657174A (en) * 2016-01-26 2016-06-08 努比亚技术有限公司 Voice converting method and terminal
CN106126161A (en) * 2016-06-17 2016-11-16 广东欧珀移动通信有限公司 Speech play control method, device and the mobile terminal of a kind of mobile terminal
CN107193526A (en) * 2017-05-02 2017-09-22 深圳市金立通信设备有限公司 The method and terminal of a kind of speech play

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150056975A1 (en) * 2013-08-23 2015-02-26 Yangdoo PARK Mobile terminal and controlling method thereof
CN104144252A (en) * 2013-11-28 2014-11-12 腾讯科技(深圳)有限公司 Voice communication method and mobile terminal
CN105657174A (en) * 2016-01-26 2016-06-08 努比亚技术有限公司 Voice converting method and terminal
CN106126161A (en) * 2016-06-17 2016-11-16 广东欧珀移动通信有限公司 Speech play control method, device and the mobile terminal of a kind of mobile terminal
CN107193526A (en) * 2017-05-02 2017-09-22 深圳市金立通信设备有限公司 The method and terminal of a kind of speech play

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112908329A (en) * 2021-02-26 2021-06-04 北京百度网讯科技有限公司 Voice control method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN108762954B (en) Object sharing method and mobile terminal
CN108664190B (en) Page display method, device, mobile terminal and storage medium
CN108520014A (en) Information sharing method, device, mobile terminal and computer-readable medium
CN109002759A (en) text recognition method, device, mobile terminal and storage medium
CN108886653B (en) Earphone sound channel control method, related equipment and system
CN106375179B (en) Method and device for displaying instant communication message
WO2021104348A1 (en) Message processing method and electronic device
CN110673770B (en) Message display method and terminal equipment
CN109189303B (en) Text editing method and mobile terminal
CN110209452B (en) Page display method of mobile terminal and mobile terminal
CN108762466A (en) Display methods, device, mobile terminal and storage medium
CN108769299A (en) Screen control method, device and mobile terminal
CN108833769A (en) Shoot display methods, device, mobile terminal and storage medium
CN111124345A (en) Audio source processing method and mobile terminal
CN109379490A (en) Audio frequency playing method, device, electronic equipment and computer-readable medium
CN108712563B (en) Call control method and device and mobile terminal
CN107944040B (en) Lyric display method and mobile terminal
CN108717325A (en) Operating gesture setting method, device and mobile terminal
CN108646967A (en) Display changeover method, device, mobile terminal and storage medium
CN109982273B (en) Information reply method and mobile terminal
CN109164908B (en) Interface control method and mobile terminal
CN108989545A (en) Control method, device, mobile terminal and the computer-readable medium of mobile terminal
CN108391013A (en) Playback method, terminal and the computer readable storage medium of voice data
CN108683800A (en) Mobile terminal, method for detecting position and Related product
CN108989546A (en) The proximity test method and Related product of electronic device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180810

RJ01 Rejection of invention patent application after publication