CN103985405A - Audio player - Google Patents

Audio player Download PDF

Info

Publication number
CN103985405A
CN103985405A CN201410156906.2A CN201410156906A CN103985405A CN 103985405 A CN103985405 A CN 103985405A CN 201410156906 A CN201410156906 A CN 201410156906A CN 103985405 A CN103985405 A CN 103985405A
Authority
CN
China
Prior art keywords
audio file
play
receiver
module
broadcasting
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
CN201410156906.2A
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.)
Qingdao Shang Hui Information Technology Co Ltd
Original Assignee
Qingdao Shang Hui Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Shang Hui Information Technology Co Ltd filed Critical Qingdao Shang Hui Information Technology Co Ltd
Priority to CN201410156906.2A priority Critical patent/CN103985405A/en
Publication of CN103985405A publication Critical patent/CN103985405A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses an audio player. The audio player solves the problem that when the existing electronic equipment plays an audio file, after switching between a receiver and a loudspeaker, the audio file is played from the beginning so that time is wasted and user experience satisfaction is reduced. The audio player comprises a play module which utilizes one of two players such as a receiver and a loudspeaker to play an audio file, a positioning module which determines a current play position of the audio file when a relationship between a distance from the receiver to an object around the receiver and a preset distance threshold value is changed, a switching module which switches the player for playing the audio file of the play module when the relationship is changed, and a control module which controls the play module to adopt the switched player for playing the audio file according to the current play position. The audio player can substantially improve user experience.

Description

A kind of audio player
Technical field
The present invention relates to a kind of player, relate in particular to a kind of audio player.
Background technology
Along with the fast development of development of Mobile Internet technology, spanning operation system platform that can real-time communication, also enter rapidly popular daily life across the immediate communication tool of common carrier.This class immediate communication tool can carry out the communication of the contents such as voice, word, picture real-time, is very easy to popular communication.
The voice communication technology of this class communication tool, be the audio file of recording transmitting terminal user at transmitting terminal by the electronic equipment such as mobile phone, panel computer, then in real time corresponding audio data stream sent to the electronic equipment of receiving end by network (as WiFi, 3G, 4G and GPRS etc.).Receiving end electronic equipment receives after this audio data stream, just can play corresponding audio file by the receiver of electronic equipment or loudspeaker.
More existing electronic equipments are in the time of displaying audio file, user has changed the distance between electronic equipment receiver and user's ear position, such as the electronic equipment being attached to before is in one's ear moved in face of user, now electronic equipment can be to adopt loudspeaker displaying audio file by adopting receiver displaying audio file auto-changing in real time, be convenient to improve the volume of playing, make after electronic equipment moves to the certain distance away from user's ear, user still can know and hear voice messaging.
But, in the process of displaying audio file, if causing audio frequency to be play automatically, the variation of user's posture or action produces switching between receiver or these two kinds broadcasting devices of loudspeaker, and audio file all needs to start anew to play.The repeat playing starting anew can make the reproduction time of whole file elongated, reduces user's experience.If the content of repeat playing is more, can the serious waste time.
Summary of the invention
Technical matters to be solved by this invention is while overcoming current electronic equipment displaying audio file, after switching between receiver and loudspeaker, starts anew to replay audio file, and what cause loses time and reduce the deficiency that user experiences.
In order to solve the problems of the technologies described above, the invention provides a kind of audio player, for displaying audio file; Wherein, this player comprises:
Playing module, one of them plays described audio file to be set to adopt two broadcasting devices, and described two broadcasting devices are respectively receiver and loudspeaker;
Locating module, when the magnitude relationship that is set to described receiver and the distance between the object of described receiver periphery and default distance threshold changes, determines the current play position of described audio file;
Handover module, when being set to described magnitude relationship and changing, switches described playing module and plays the broadcasting device of described audio file;
Control module, is set to control described playing module and adopts the broadcasting device after switching to play described audio file according to described current play position.
Preferably, when described control module is set to described magnitude relationship and changes, control described playing module and suspend and play described audio file; The default blocking period, while arrival, is controlled described playing module and adopts the broadcasting device after switching to play described audio file according to described current play position.
Preferably, described control module is set to described blocking period while arriving, controls described playing module and starts to adopt the broadcasting device switching to continue to play described audio file from described current play position.
Preferably, described handover module is set to described distance and changes to while being less than or equal to described distance threshold from being greater than described distance threshold, and broadcasting device is switched to described receiver from described loudspeaker; Change to while being greater than described distance threshold from being less than or equal to described distance threshold in described distance, broadcasting device is switched to described loudspeaker from described receiver.
Preferably, described control module comprises:
Determining unit, is set in the paragraph of broadcasting between described current play position, determine a continued broadcasting position in the reference position of described audio file;
Control module, is set to control described playing module from described continued broadcasting position, adopts the broadcasting device after switching to continue to play described audio file.
Preferably, described determining unit is set to according to described playing duration that paragraph is corresponding and the default duration threshold value play, and determines described continued broadcasting position described in having play paragraph.
Preferably, described determining unit is set to, in the time that described playing duration is less than or equal to described duration threshold value, the reference position of described audio file is defined as to described continued broadcasting position; In the time that described playing duration is greater than described duration threshold value, determine described continued broadcasting position described in having play paragraph according to a default replay duration.
Preferably, when described in described determining unit is set to, playing duration has been greater than described duration threshold value, it is described continued broadcasting position that the described playing duration of described audio file is deducted to the location positioning that described replay duration is corresponding.
Preferably, when described control module is set to described magnitude relationship and changes, control described playing module and suspend and play described audio file; The default blocking period, while arrival, is controlled described playing module from described continued broadcasting position, adopts the broadcasting device after switching to continue to play described audio file.
Compared with prior art, the application's embodiment can be in the time of displaying audio file automatically plays with loudspeaker and plays and between these two kinds of modes, carry out self-adaptation switching and continue broadcasting at receiver, facilitating user to carry out privacy according to the content of voice messaging by simple action maintains secrecy or Information Sharing, audio file all starts anew to replay can not cause user to alter one's posture time at every turn, save user time, ensure that user listens to the fluency of voice messaging, improve user and experience.The application's embodiment replays from the reference position of audio file can avoid electronic equipment to switch broadcasting device time at every turn, avoid causing user to occur uninteresting mood because of large section ground repeat playing, especially play again for playing more content the situation that device switches, can significantly improve user and experience.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, or understand by implementing the present invention.Object of the present invention and other advantages can be realized and be obtained by specifically noted structure in instructions, claims and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used to provide the further understanding to technical solution of the present invention, and forms a part for instructions, is used from and explains technical scheme of the present invention with the application's embodiment mono-, does not form the restriction to technical solution of the present invention.
Fig. 1 is the organigram of the audio player of the embodiment of the present application.
Schematic flow sheet when Fig. 2 is the audio player plays audio file of the embodiment of the present application.
Embodiment
Describe embodiments of the present invention in detail below with reference to drawings and Examples, to the present invention, how application technology means solve technical matters whereby, and the implementation procedure of reaching relevant art effect can fully understand and implement according to this.Each feature in the embodiment of the present application and embodiment is the mutually combining under prerequisite of not conflicting mutually, all within protection scope of the present invention.
In addition, can in the computer system such as one group of computer executable instructions, carry out in the step shown in the process flow diagram of accompanying drawing.And, although there is shown logical order in flow process, in some cases, can carry out shown or described step with the order being different from herein.
The audio player of the embodiment of the present application, it can adopt receiver and these two of loudspeakers to play one of them displaying audio file of device, also be that player both can adopt receiver displaying audio file independently, can adopt independently again loudspeaker displaying audio file.
As shown in Figure 1, the audio player of the embodiment of the present application mainly comprises playing module 110, locating module 120, handover module 130 and control module 140, wherein:
Playing module 110, is set to adopt these two one of them displaying audio file of playing in device of receiver and loudspeaker.
Playing module 110 adopts receiver displaying audio file still to adopt loudspeaker displaying audio file, can set in advance, and can be also that audio player carries out adaptively selected according to affiliated electronic equipment varying environment of living in.
For the situation setting in advance, it is receiver or loudspeaker that user or manufacturer etc. can will play device default setting in advance on electronic equipment., under default scenario, electronic equipment is in the time of needs displaying audio file, and the playing module 110 of player just carrys out displaying audio file according to default setting.User can be switched by modes such as amendments the broadcasting device of displaying audio file, and such as default setting is for adopting receiver displaying audio file, user can be revised as and be adopted loudspeaker displaying audio file.Vice versa, default setting is for adopting loudspeaker displaying audio file, and user can be revised as and be adopted receiver displaying audio file.
For the adaptively selected receiver of electronic equipment or loudspeaker displaying audio file, can be that user controls while playing this voice messaging, electronic equipment detects the magnitude relationship of receiver and the distance between the object of receiver periphery and a default distance threshold in real time, and automatically selects receiver or loudspeaker to play and the corresponding audio file of this voice messaging according to this magnitude relationship.
In the application's embodiment, this distance threshold can be that user or device fabrication business set in advance, and can be also the job parameter of detecting element such as sensor itself.
For the sensor of dissimilar, different accuracy or different detectabilities, it can detect that object may be different in the distance range how far, but for a sensor of determining, such as a range sensor or light sensor etc., the object distance of itself and periphery can be triggered how far time and determine.Thereby electronic equipment, in the processes such as design, components selection and production, just can be considered as this distance threshold to preset.
Locating module 120, be connected with playing module 110, when the magnitude relationship that is set to the receiver of electronic equipment and the distance between the object of receiver periphery and this distance threshold changes, determine the current play position of the audio file that playing module 110 plays, the current play position of this audio file is carried out to mark.
In some embodiment of the application, electronic equipment, in the time that player adopts receiver or loudspeaker displaying audio file, detects receiver and the distance between the object of receiver periphery in real time.
According to general use habit, user carries out the object distance of the operation of displaying audio file or answer voice information etc. and the receiver of electronic equipment and periphery when very near on electronic equipment, can think that the receiver of electronic equipment should be attached to user in one's ear.Under this situation, the distance between receiver and the object of periphery is less than default distance threshold, and electronic equipment will be selected the broadcasting device of receiver as displaying audio file automatically, plays this audio file by receiver.And user carries out the object distance of the operation of displaying audio file or answer voice information etc. and the receiver of electronic equipment and periphery time far away on electronic equipment, can think that the receiver of electronic equipment should be not to be attached to user in one's ear.Under this situation, the distance between receiver and periphery object is more than or equal to default distance threshold, and electronic equipment will be selected the broadcasting device of loudspeaker as displaying audio file automatically, plays this audio file by loudspeaker.
It should be noted that, the electronic equipment at receiver place is not the object of so-called receiver periphery herein.The object of so-called receiver periphery herein, refers to the object that is positioned at receiver place electronic equipment periphery, and what discuss is to be distributed in receiver object around, such as ear of user etc.
Handover module 130, is connected with playing module 110, is set in the time that the magnitude relationship of the receiver of electronic equipment and the distance between the object of receiver periphery and this distance threshold changes, and between receiver and these two broadcasting devices of loudspeaker, switches.
In the time of playing module 110 displaying audio file, whether electronic equipment real-time judge receiver and the distance between the object of receiver periphery there is variation with the magnitude relationship of a distance threshold of presetting.
In the application's embodiment, this distance threshold can not heard the content that the voice messaging of electronic equipment displaying audio file comprises by receiver for general user.If the distance between the object of receiver and receiver periphery is less than or equal to this distance threshold, in the situation that there is no obvious external noise, general user can clear or comparatively clearly hear the content that electronic equipment comprises by the voice messaging of receiver displaying audio file.If the distance between the object of receiver and receiver periphery is greater than this distance threshold, in the situation that there is no obvious external noise, general user can not be clear or be difficult to the content of clearly hearing that electronic equipment comprises by the voice messaging of receiver displaying audio file, now to adopt loudspeaker displaying audio file be proper to player, is convenient to the content that voice messaging that user can clearly hear electronic equipment displaying audio file comprises.
If before the magnitude relationship of receiver and the distance between the object of receiver periphery and this distance threshold changes, playing module 110 is to adopt receiver displaying audio file, when this magnitude relationship changes, handover module 130 switches to loudspeaker in order to follow-up play by the broadcasting device of playing module 110 displaying audio files from receiver.If before the magnitude relationship of receiver and the distance between the object of receiver periphery and this distance threshold changes, playing module 110 is to adopt loudspeaker displaying audio file, when this magnitude relationship changes, handover module 130 switches to receiver in order to follow-up play by the broadcasting device of playing module 110 displaying audio files from loudspeaker.
Particularly, if receiver and the distance between the object of receiver periphery change to and are less than or equal to this distance threshold from being greater than this distance threshold, handover module 130 switches to receiver by the broadcasting device of playing module 110 displaying audio files from loudspeaker, so that the follow-up play of this audio file adopts receiver to carry out.If receiver and the distance between the object of receiver periphery change to and are greater than this distance threshold from being less than or equal to this distance threshold, handover module 130 switches to loudspeaker by the broadcasting device of playing module 110 displaying audio files from receiver, so that the follow-up play of this audio file adopts loudspeaker to carry out.
Conventionally under situation, user does not use the utility appliance such as earphone directly on electronic equipment when displaying audio file, be generally that electronic equipment is placed in front or is play by the side of and by loudspeaker, or electronic equipment is placed on to ear limit and plays by receiver.
When electronic equipment passes through loudspeaker displaying audio file, user by electronic equipment from face of or take by the side of ear limit and listen to voice messaging, if also continue to adopt loudspeaker displaying audio file, for general use scenes, the sound that electronic equipment is play will seem excessive, easily stimulate the ear to user, bring sense of discomfort to user, reduce user and experience.And, be also unfavorable for the protection of secret content in voice messaging.Now, the broadcasting device of player plays audio file is switched to receiver from loudspeaker, not only can ensure that user clearly hears follow-up voice messaging, ensure that user listens to the comfort level of subsequent voice information, but also can ensure the privacy of subsequent voice information, prevent that other people from hearing the secret content in subsequent voice information.
When electronic equipment passes through receiver displaying audio file, user takes electronic equipment in front or listens to by the side of voice messaging from ear limit, if also continue to adopt receiver displaying audio file, for general use scenes, the sound that electronic equipment is play will seem too small, user may will be difficult to because volume is too little not hear the voice messaging that electronic equipment is play, and reduces user and experiences.And, be also unfavorable for sharing of voice messaging.Now, the broadcasting device of player plays audio file is switched to loudspeaker from receiver, not only can ensure that user clearly hears follow-up voice messaging, ensure that user listens to the comfort level of subsequent voice information, but also can ensure sharing in time of subsequent voice information, make around other people of user also can hear in time follow-up voice messaging.
Control module 140, be connected with playing module 110, locating module 120 and handover module 130, being set to handover module 130 completes after the switching of playing device, control playing module 110 is the current play position to audio file institute mark according to locating module 120, adopts the broadcasting device after switching to continue displaying audio file.
In the application's embodiment, control module 140 is in the time that the magnitude relationship of receiver and the distance between the object of receiver periphery and default distance threshold changes, control playing module 110 and suspend and play these audio files, and start timing according to a default blocking period.In the time that the default blocking period arrives, control module 140 is controlled playing module 110 according to the front play position to audio file institute mark, adopts the broadcasting device after switching to continue to play this audio file.
The switching that handover module 130 carries out between receiver and loudspeaker can be carried out within this blocking period.Control module 140 is controlled playing module 110 and is suspended broadcasting, for this switching of handover module 130 provides enough processing times, also avoided in the process of continuous displaying audio file, because switch and play device and issuable noise suddenly, affect user's experience simultaneously.
In the application's embodiment, control module 140 can be set in the time that this blocking period arrives, and controls playing module and starts according to the current play position of this audio file from suspending before, adopts the broadcasting device after switching to continue displaying audio file.This just makes electronic equipment switching after broadcasting device, can again not replay audio file from the reference position of audio file, the user's that avoids waste listening period.Especially for the replaying of long period, can save in a large number user's time, ensure the fluency of linking up.
In the time that aforesaid magnitude relationship changes, control module is suspended this one blocking period of audio file of broadcasting, reserve and change and adaptation time for user listens to by the broadcasting device displaying audio file after switching, avoid playing volume that device brings suddenly from large to small or the variation of changing from small to big and bring discomfort to user because switch in playing process continuously.On the other hand, in the process of continuous displaying audio file, switch and play device suddenly, be also difficult to avoid electronic equipment to there will be tonequality sudden change, noise or other playback problem, process and also can effectively avoid by the time-out in playing process.
In the application's embodiment, this control module 140 also can be controlled some play position that playing module is positioned at before this current play position from this audio file and start, and adopts broadcasting device after switching to continue to play the remainder of this audio file.
For this situation, play position is to the part this current play position from this for audio file, and playing module can adopt receiver and loudspeaker respectively to play one time.This processing mode, is convenient to user and can clearly listens to the voice messaging of these current play position front and back, makes user can not play device and play the unexpected variation holiday content of voice messaging volume because of for a change posture, switching.Meanwhile, be also provided with a buffering for player adopts different variations of playing the generation of device displaying audio file, be convenient to this variation of user adaptation.And, this processing mode makes electronic equipment play after device each switching, can all not replay audio file from the reference position of audio file, the user's that avoids waste listening period, and effectively avoided user to repeat passively to listen to the play content of large section.Certainly,, if user wants again to listen to voice messaging from the reference position of audio file or forward position, can replay audio file by manual control and realize.
As shown in Figure 1, control module 140 comprises determining unit 141 and control module 142.Determining unit 141 is connected with locating module 120, is set in the paragraph of broadcasting between current play position, determine a continued broadcasting position in the reference position of audio file.Control module 142 is connected with playing module 110, handover module 130 and determining unit 141, be set to after this switching completes, control playing module 110 from this continued broadcasting position of audio file, adopt the remainder of the broadcasting device continuation displaying audio file after switching.
In the application's embodiment, determining unit 141 is determined this continued broadcasting position in the reference position of audio file in the paragraph of broadcasting between this current play position, can carry out to the corresponding playing duration of the paragraph of broadcasting this current play position from reference position according to audio file.Such as, by this playing duration compare with a default duration threshold value, then in the paragraph of broadcasting of audio file, determine this continued broadcasting position according to comparative result.
Particularly, when the corresponding playing duration of the paragraph of broadcasting of audio file is less than or equal to default duration threshold value, determining unit 141 is just defined as the reference position of audio file this continued broadcasting position, to ensure that user can intactly listen to voice messaging, can just not play the switching of device and holiday voice messaging because of just starting to play.When the corresponding playing duration of the paragraph of broadcasting of audio file is greater than default duration threshold value, determining unit 141 is just determined this continued broadcasting position in the paragraph of broadcasting of audio file according to a default replay duration, to ensure that user repeats to listen to certain a part of voice messaging as little as possible.
Wherein, determining unit 141 is determined this continued broadcasting position in the paragraph of broadcasting of this audio file according to this default replay duration, and it can be the playing duration of audio file to be deducted to the correspondence position obtaining after replay duration be defined as continued broadcasting position.
In the application's embodiment, this duration threshold value is such as can be 1 second.Certainly the duration of, being arranged to other numerical value is also fine certainly.Like this, if one the corresponding duration of the paragraph of audio file before the current play position at time-out place is less than or equal to 1 second, illustrate that now audio file has also only been play little by little content, can start anew completely to replay, be convenient to user complete, clearly hear the corresponding voice messaging of audio file.Under this situation, after switching broadcasting device, playing module 110 just can continue to play from the reference position of audio file, be equivalent to replay this audio file.If the corresponding duration of the paragraph of this audio file before the current play position at time-out place is greater than 1 second, such as being 18 seconds, illustrate that now audio file has been play more content, user should not hear the most contents from reference position, only may be at the close end place that plays paragraph, because electronic equipment moves or other reasons etc. is not clearly heard corresponding information.Now, just need not replay from the starting position of audio file, avoid the clear content of listening to again to play one time and waste user's listening period, ensure that user listens to voice messaging glibly.Under this situation, after switching broadcasting device, playing module 110 just can, according to default replay duration, be determined a continued broadcasting position in the paragraph of broadcasting of audio file.Wherein, this replay duration is less than the playing duration of audio file.
In the application's embodiment, when the magnitude relationship that control module 142 can be set to receiver and the distance between the object of receiver periphery and default distance threshold changes, control playing module 110 and suspend displaying audio file, and start timing according to the default blocking period.In the time that the default blocking period arrives, control module 142 can be controlled playing module 110 from audio file being carried out to the continued broadcasting position of mark, adopts the broadcasting device after switching to continue displaying audio file.
The player method of the audio file of the embodiment of the present application, for player plays audio file, this player can adopt receiver and these two of loudspeakers to play one of them displaying audio file of device, also be that player both can adopt receiver displaying audio file independently, can adopt independently again loudspeaker displaying audio file.
As shown in Figure 2, when the audio player plays audio file of the embodiment of the present application, mainly comprise the steps:
Step S210, in the time that the playing module of player adopts receiver or loudspeaker displaying audio file, detects receiver and the distance between the object of receiver periphery in real time.
Step S220, whether the magnitude relationship of real-time judge receiver and the distance between the object of receiver periphery and default distance threshold there is variation.
Step S230, in the time judging the magnitude relationship of receiver and the distance between the object of receiver periphery and this distance threshold and change, the locating module of player is determined the current play position of this audio file that playing module plays, this current play position is carried out to mark, handover module switches the broadcasting device of playing module displaying audio file, also between receiver and these two broadcasting devices of loudspeaker, switches.
Step S240, the control module control playing module of player, according to the current play position to audio file institute mark, adopts the broadcasting device after switching to continue displaying audio file.
In the application's embodiment, can be in the time judging described magnitude relationship and change, control playing module and suspend this audio file of broadcasting, and in the time that the default blocking period arrives, adopt the broadcasting device after switching to play described audio file according to this current play position.Such as, in the time that this blocking period arrives, can start to adopt the broadcasting device switching to continue displaying audio file from current play position.
Particularly, change to while being less than or equal to this distance threshold judging receiver and the distance between the object of receiver periphery from being greater than this distance threshold, handover module switches to receiver by broadcasting device from loudspeaker; Change to while being greater than this distance threshold from being less than or equal to this distance threshold judging receiver and the distance between the object of receiver periphery, handover module switches to described loudspeaker by broadcasting device from receiver.
The application's embodiment can determine a continued broadcasting position in the reference position of audio file in the paragraph of broadcasting between this current play position; Then control player from this continued broadcasting position, adopt the remainder of this audio file of broadcasting device continuation broadcasting after switching.
The application's embodiment, control module can, according to the duration threshold value playing the corresponding playing duration of paragraph and preset of audio file, be determined this continued broadcasting position in this plays paragraph.
Such as, at this, when playing duration has been less than or equal to this duration threshold value, control module can be defined as the reference position of audio file this continued broadcasting position; At this, when playing duration has been greater than this duration threshold value, control module can be determined according to a default replay duration this continued broadcasting position in this plays paragraph.
Wherein, at this, when playing duration has been greater than this duration threshold value, it is this continued broadcasting position that control module can deduct the playing duration of audio file the location positioning that this replay duration is corresponding.
The application's embodiment, can be applied to user and apply the scene of carrying out voice communication by micro-letter or other instant messagings.Such as, two users chat by the micro-letter on mobile phone separately respectively, first user sends a voice messaging to the second user.The second user's mobile phone receives after this voice messaging, with the form of audio file, this voice messaging is stored in to this locality.The second user, in the time playing this voice messaging, on the desk in face of mobile phone is placed in, and adopts the form that loudspeaker is put to play this audio file outward.In the process of this audio file of broadcasting, the second user has changed posture, and the mobile phone on desk in face of being previously placed on is taken to ear limit.The second user's mobile phone detects this variation in real time, and the player in mobile phone suspends and plays 1 second of this audio file, and the broadcasting device of playing voice messaging is switched to receiver from loudspeaker.In the time that arrive in 1 second of suspending, player adopts receiver to continue displaying audio file.
If when the second user plays this audio file, mobile phone is placed on to ear limit, the form that adopts receiver to play is play corresponding audio file.In the process of this audio file of broadcasting, the second user has changed posture, and the mobile phone that was previously placed on ear limit is taken on desk.The second user's mobile phone detects this variation in real time, and player suspends and plays 1 second of this audio file, and the broadcasting device of playing voice messaging is switched to loudspeaker from receiver.In the time that arrive in 1 second of suspending, player adopts loudspeaker to continue displaying audio file.
In the time detecting that in real time distance between earpiece and the object of periphery changes, also can player from play position toward one section of content of reference position direction rebound of audio file.After the switching completing between receiver and loudspeaker, player starts to adopt the broadcasting device switching to continue to play voice messaging from jumped back to position again, or suspending after a period of time, then player starts to adopt the broadcasting device switching to continue to play voice messaging from jumped back to position.
In some public occasions, or except user, also have under the sight of presence of others, user plays voice messaging by the loudspeaker of electronic equipment.Perceive follow-up voice messaging by the content of having play and may relate to inconvenient disclosed communication content, such as privacy or information that need to be secret between user, user can be placed into the receiver of electronic equipment rapidly the position near ear, now player stops continuing to play this audio file by loudspeaker, and broadcasting device is switched to receiver.Then, player is from the position (being also aforesaid current play position) that stops broadcasting of audio file, or player is from the some positions of having play before the position that stops playing, suspends after a period of time or do not suspend and directly adopt receiver to continue to play the remainder of this audio file.Like this, subsequent content just can not leaked to other people easily, has ensured to link up the privacy of content.Even, when user perceives follow-up communication content and relates to privacy or other private informations, can be promptly by the receiver of electronic equipment near any position of health, or near any object, electronic equipment will automatically switch into the mode that adopts receiver displaying audio file, has effectively prevented that the situation of playing private information in the presence of all from occurring.
Other situation, such as exchanging party information between friend, when aggregate information or other are wished communication content that many people know, the user of receiving end electronic equipment can take electronic equipment from ear position, just can stop displaying audio file, and the mode that adopts before receiver displaying audio file is automatically switched to the mode that adopts loudspeaker displaying audio file, then directly from stopping the continuous displaying audio file in position of broadcasting, or suspend after a period of time the continuous displaying audio file in position from stopping playing again, an or repeat playing part continue displaying audio file back from the position that stops playing, or suspend after a period of time a more back repeat playing part continue displaying audio file of position from stopping playing, be convenient to user's periphery other people can be together with user, listen to relevant voice messaging in the very first time simultaneously.
It is apparent to those skilled in the art that each ingredient of the equipment that above-mentioned the embodiment of the present application provides, and each step in method, they can concentrate on single calculation element, or are distributed on the network that multiple calculation elements form.Alternatively, they can be realized with the executable program code of calculation element.Thereby, they can be stored in memory storage and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module realize.Like this, the present invention is not restricted to any specific hardware and software combination.
Although the disclosed embodiment of the present invention as above, the embodiment that described content only adopts for ease of understanding the present invention, not in order to limit the present invention.Those of skill in the art under any the present invention; do not departing under the prerequisite of the disclosed spirit and scope of the present invention; can in the form of implementing and details, carry out any amendment and variation; but scope of patent protection of the present invention, still must be as the criterion with the scope that appending claims was defined.

Claims (9)

1. an audio player, for displaying audio file; Wherein, this player comprises:
Playing module, one of them plays described audio file to be set to adopt two broadcasting devices, and described two broadcasting devices are respectively receiver and loudspeaker;
Locating module, when the magnitude relationship that is set to described receiver and the distance between the object of described receiver periphery and default distance threshold changes, determines the current play position of described audio file;
Handover module, when being set to described magnitude relationship and changing, switches described playing module and plays the broadcasting device of described audio file;
Control module, is set to control described playing module and adopts the broadcasting device after switching to play described audio file according to described current play position.
2. audio player according to claim 1, wherein:
When described control module is set to described magnitude relationship and changes, control described playing module and suspend and play described audio file; The default blocking period, while arrival, is controlled described playing module and adopts the broadcasting device after switching to play described audio file according to described current play position.
3. audio player according to claim 2, wherein:
Described control module is set to described blocking period while arriving, controls described playing module and starts to adopt the broadcasting device switching to continue to play described audio file from described current play position.
4. audio player according to claim 1 and 2, wherein:
Described handover module is set to described distance and changes to while being less than or equal to described distance threshold from being greater than described distance threshold, and broadcasting device is switched to described receiver from described loudspeaker; Change to while being greater than described distance threshold from being less than or equal to described distance threshold in described distance, broadcasting device is switched to described loudspeaker from described receiver.
5. audio player according to claim 1, wherein, described control module comprises:
Determining unit, is set in the paragraph of broadcasting between described current play position, determine a continued broadcasting position in the reference position of described audio file;
Control module, is set to control described playing module from described continued broadcasting position, adopts the broadcasting device after switching to continue to play described audio file.
6. audio player according to claim 5, wherein:
Described determining unit is set to according to described playing duration that paragraph is corresponding and the default duration threshold value play, and determines described continued broadcasting position described in having play paragraph.
7. audio player according to claim 6, wherein:
Described determining unit is set to, in the time that described playing duration is less than or equal to described duration threshold value, the reference position of described audio file is defined as to described continued broadcasting position; In the time that described playing duration is greater than described duration threshold value, determine described continued broadcasting position described in having play paragraph according to a default replay duration.
8. audio player according to claim 7, wherein:
When described in described determining unit is set to, playing duration has been greater than described duration threshold value, it is described continued broadcasting position that the described playing duration of described audio file is deducted to the location positioning that described replay duration is corresponding.
9. audio player according to claim 5, wherein:
When described control module is set to described magnitude relationship and changes, control described playing module and suspend and play described audio file; The default blocking period, while arrival, is controlled described playing module from described continued broadcasting position, adopts the broadcasting device after switching to continue to play described audio file.
CN201410156906.2A 2014-04-18 2014-04-18 Audio player Pending CN103985405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410156906.2A CN103985405A (en) 2014-04-18 2014-04-18 Audio player

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410156906.2A CN103985405A (en) 2014-04-18 2014-04-18 Audio player

Publications (1)

Publication Number Publication Date
CN103985405A true CN103985405A (en) 2014-08-13

Family

ID=51277347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410156906.2A Pending CN103985405A (en) 2014-04-18 2014-04-18 Audio player

Country Status (1)

Country Link
CN (1) CN103985405A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550074A (en) * 2016-12-09 2017-03-29 重庆笨瓜科技有限公司 A kind of improved structure of combination earpiece loudspeaker
CN107413052A (en) * 2017-09-20 2017-12-01 深圳市博悦生活用品有限公司 A kind of intelligent early education 3D electronics is rung a bell and its control method
CN112351364A (en) * 2021-01-04 2021-02-09 深圳千岸科技股份有限公司 Voice playing method, earphone and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964844A (en) * 2010-09-26 2011-02-02 中兴通讯股份有限公司 Method and device for automatically regulating audio playing in handhold verbal equipment
CN102843464A (en) * 2012-08-03 2012-12-26 深圳市金立通信设备有限公司 System and method utilizing distance sensor to adjust call audio output mode
US8452020B2 (en) * 2008-08-20 2013-05-28 Apple Inc. Adjustment of acoustic properties based on proximity detection
CN103702163A (en) * 2013-12-27 2014-04-02 乐视致新电子科技(天津)有限公司 Method and system of dynamically outputting audio file and television

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8452020B2 (en) * 2008-08-20 2013-05-28 Apple Inc. Adjustment of acoustic properties based on proximity detection
CN101964844A (en) * 2010-09-26 2011-02-02 中兴通讯股份有限公司 Method and device for automatically regulating audio playing in handhold verbal equipment
CN102843464A (en) * 2012-08-03 2012-12-26 深圳市金立通信设备有限公司 System and method utilizing distance sensor to adjust call audio output mode
CN103702163A (en) * 2013-12-27 2014-04-02 乐视致新电子科技(天津)有限公司 Method and system of dynamically outputting audio file and television

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106550074A (en) * 2016-12-09 2017-03-29 重庆笨瓜科技有限公司 A kind of improved structure of combination earpiece loudspeaker
CN107413052A (en) * 2017-09-20 2017-12-01 深圳市博悦生活用品有限公司 A kind of intelligent early education 3D electronics is rung a bell and its control method
CN112351364A (en) * 2021-01-04 2021-02-09 深圳千岸科技股份有限公司 Voice playing method, earphone and storage medium
CN112351364B (en) * 2021-01-04 2021-04-16 深圳千岸科技股份有限公司 Voice playing method, earphone and storage medium
CN112887871A (en) * 2021-01-04 2021-06-01 深圳千岸科技股份有限公司 Authority-based earphone voice playing method, earphone and storage medium
CN112887871B (en) * 2021-01-04 2023-06-23 深圳千岸科技股份有限公司 Headset voice playing method based on permission, headset and storage medium

Similar Documents

Publication Publication Date Title
CN103985394A (en) Audio file playing method
US10390125B2 (en) Controlling operation of a media device based upon whether a presentation device is currently being worn by a user
US10129647B2 (en) Wireless sound equipment
JP6854080B2 (en) Headphones with an integrated image display
CN106454644B (en) Audio playing method and device
CN103984518A (en) Intelligent mobile terminal
CN107493500B (en) Multimedia resource playing method and device
JP6186518B2 (en) Voice call prompt method, apparatus, program, and recording medium
CN109496445B (en) Discontinuous reception configuration method and device
CN103985400A (en) Audio file playing system
CN107621933B (en) Audio playing method and device and related medium product
WO2017045453A1 (en) Monitoring method and device based on earphone
CN111770416B (en) Loudspeaker control method and device and electronic equipment
WO2017148270A1 (en) Volume control method and device, and terminal
CN103985396A (en) Audio playing method
US10052067B2 (en) Wearable device
CN103985405A (en) Audio player
CN112565876B (en) Screen projection method, device, equipment, system and storage medium
CN106648540B (en) Music switching method and device
TW201625020A (en) Headset and controlling handheld device system, method
CN111107226A (en) Volume control method applied to mobile terminal
CN103985397A (en) Electronic device
KR100632506B1 (en) Mobile phone with broadcast display function and control method
CN103985398A (en) Audio playing system
CN113760219A (en) Information processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140813