CN103985400A - Audio file playing system - Google Patents

Audio file playing system Download PDF

Info

Publication number
CN103985400A
CN103985400A CN201410156976.8A CN201410156976A CN103985400A CN 103985400 A CN103985400 A CN 103985400A CN 201410156976 A CN201410156976 A CN 201410156976A CN 103985400 A CN103985400 A CN 103985400A
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
CN201410156976.8A
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 CN201410156976.8A priority Critical patent/CN103985400A/en
Publication of CN103985400A publication Critical patent/CN103985400A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses an audio file playing system. The audio file playing system overcomes the defects that due to the fact that when current electronic equipment plays an audio file, the audio file is played again from the beginning after the current electronic equipment is switched between a receiver and a loud speaker, time is wasted and user experience is lowered. The audio file playing system comprises a detecting module, a judging module, a locating module, a switching module and a controlling module. The detecting module detects the distance between a receiver and an object located around the receiver in real time when a player plays an audio file through one of two playing devices. The judging module judges whether the size relationship between the distance detected by the detecting module in real time and a preset distance threshold changes or not. The locating module determines the current playing position of the audio file when the size relationship changes. The switching module conducts switching between the two playing devices when the size relationship changes. The controlling module controls the player to play the audio file through the switched playing device according to the current playing position. The audio file playing method can obviously improve user experience.

Description

A kind of Play System of audio file
Technical field
The present invention relates to a kind of Play System, relate in particular to a kind of Play System of audio file.
Background technology
Along with the fast development of development of Mobile Internet technology, spanning operation system platform that can real-time communication, across the immediate communication tool of common carrier, also promptly entered popular daily life.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 speech talkback technology of this class communication tool, be at transmitting terminal, by electronic equipments such as mobile phone, panel computers, to record transmitting terminal user's audio file, then by network (as WiFi, 3G, 4G and GPRS etc.), in real time corresponding audio data stream sent to the electronic equipment of receiving end.Receiving end electronic equipment receives after this audio data stream, just can play corresponding audio file by receiver or the loudspeaker of electronic equipment.
More existing electronic equipments are when displaying audio file, user has changed the distance between electronic equipment receiver and user's ear position, such as moving in face of user being attached to before electronic equipment in one's ear, 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 produced 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 Play System of audio file, for electronic equipment displaying audio file, described electronic equipment includes two to be play device and adopts described two players of playing one of them displaying audio file of device, and described two broadcasting devices are respectively receiver and loudspeaker; Wherein, this system comprises:
Detection module, be set to described player adopt described two play devices one of them while playing described audio file, detect in real time described receiver and the distance between the object of described receiver periphery;
Judge module, is set to judge whether described distance that described detection module detects in real time and the magnitude relationship of default distance threshold change;
Locating module, is set to described judge module and draws when described magnitude relationship changes, and determines the current play position of described audio file;
Handover module, is set to described judge module and draws when described magnitude relationship changes, and at described two, plays between device and switches;
Control module, is set to control described player and adopts the broadcasting device after switching to play described audio file according to described current play position.
Preferably, this system comprises:
Suspend module, be set to described judge module and draw when described magnitude relationship changes to described control module and send halt signal and start timing according to the default blocking period, when the described blocking period arrives, to described control module, send restoring signal;
Wherein, described control module is set to control described player according to described halt signal and suspends the described audio file of broadcasting, and adopts the broadcasting device after switching to play described audio file according to described restoring signal and current play position.
Preferably, described control module is set to according to described restoring signal, controls described player 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 show that at described judge module described distance changes to while being less than or equal to described distance threshold from being greater than described distance threshold, switches to described receiver by broadcasting device from described loudspeaker; At described judge module, show that described distance changes to while being greater than described distance threshold from being less than or equal to described distance threshold, switches to described loudspeaker by broadcasting device 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 player 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 described, determines described continued broadcasting position in having play paragraph.
Preferably, described determining unit is set to, when 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; When described playing duration is greater than described duration threshold value, according to a default replay duration, described, determine described continued broadcasting position in having play paragraph.
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.
Compared with prior art, the application's embodiment can be when electronic equipment 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 by simple action, to carry out privacy according to the content of voice messaging maintains secrecy or Information Sharing, can not cause the repeat playing that starts anew, save user time, the fluency of voice messaging is listened in assurance, improves user and experiences.The application's embodiment replays from the reference position of audio file in the time of can avoiding electronic equipment to switch broadcasting device at every turn, avoid causing user to occur uninteresting mood because of large section ground repeat playing, especially for playing more content, play again 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.
Accompanying drawing explanation
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 explanation 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 Play System of the audio file of the embodiment of the present application.
Schematic flow sheet when Fig. 2 is the played audio file of audio file of the embodiment of the present application.
Embodiment
Below with reference to drawings and Examples, describe embodiments of the present invention in detail, 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, in the step shown in the process flow diagram of accompanying drawing, can in the computer system such as one group of computer executable instructions, carry out.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 Play System of the audio file of the embodiment of the present application, for electronic equipment displaying audio file, wherein, this electronic equipment includes two and plays device and can adopt two to play the wherein player of any one displaying audio file of device, play device for these two and be respectively receiver and loudspeaker, also be that player both can adopt receiver displaying audio file independently, can adopt independently loudspeaker displaying audio file again.
As shown in Figure 1, the Play System of the audio file of the embodiment of the present application mainly comprises detection module 110, judge module 120, locating module 130, handover module 140 and control module 150, wherein:
Detection module 110, is set to, when player adopts receiver or loudspeaker displaying audio file, detect in real time receiver and the distance between the object of receiver periphery.
Player adopts receiver displaying audio file still to adopt loudspeaker displaying audio file, can set in advance, and can be also that player carries out adaptively selected according to 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 when needs displaying audio file, and player just carrys out displaying audio file according to default setting.User can be switched by modes such as modifications 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 that detecting element is such as the job parameter of sensor itself.
For the sensor of dissimilar, different accuracy or different detectabilities, it detects object in can the distance range how far may be different, 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.
According to general use habit, user carries out the operation of displaying audio file or answer voice information etc. and the receiver of electronic equipment and the object distance of 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 select receiver as the broadcasting device of displaying audio file automatically, by receiver, plays this audio file.And user carries out the operation of displaying audio file or answer voice information etc. and the receiver of electronic equipment and the object distance of periphery when 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 select loudspeaker as the broadcasting device of displaying audio file automatically, by loudspeaker, plays this audio file.
It should be noted that, electronic equipment is not the object of so-called receiver periphery herein.The object of so-called receiver periphery, refers to the object that is positioned at receiver place electronic equipment periphery herein, and what discuss is to be distributed in receiver object around, such as ear of user etc.
Judge module 120, is connected with this detection module 110, is set to judge whether receiver and the distance between the object of receiver periphery that detection module 110 detects in real time, with the magnitude relationship of a distance threshold of presetting, variation has occurred.
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 the voice messaging of electronic equipment by receiver displaying audio file comprises.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 clearly hear the content that the voice messaging of electronic equipment by receiver displaying audio file comprises, 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.
Locating module 130, be connected with this judge module 120, be set to when this judge module 120 show that the magnitude relationship of receiver and the distance between the object of receiver periphery and this distance threshold changes, determine the current play position of the audio file of player plays, the current play position of this audio file is carried out to mark.
Handover module 140, be connected with this judge module 120, be set to when this judge module 120 show that the magnitude relationship of receiver and the distance between the object of receiver periphery and this distance threshold changes, between receiver and these two broadcasting devices of loudspeaker, switch.
If before the magnitude relationship of receiver and the distance between the object of receiver periphery and this distance threshold changes, player is to adopt receiver displaying audio file, when this magnitude relationship changes, handover module 140 switches to loudspeaker in order to follow-up play by broadcasting device from receiver.If before the magnitude relationship of receiver and the distance between the object of receiver periphery and this distance threshold changes, player is to adopt loudspeaker displaying audio file, when this magnitude relationship changes, handover module 140 switches to receiver in order to follow-up play by broadcasting device 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 140 switches to receiver by broadcasting device 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 140 switches to loudspeaker by broadcasting device 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 during 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, to user, bring sense of discomfort, reduce user and experience.And, be also unfavorable for the protection of secret content in voice messaging.Now, broadcasting device is switched to receiver from loudspeaker, not only can guarantee that user clearly hears follow-up voice messaging, guarantee that user listens to the comfort level of subsequent voice information, but also can guarantee 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, broadcasting device is switched to loudspeaker from receiver, not only can guarantee that user clearly hears follow-up voice messaging, guarantee that user listens to the comfort level of subsequent voice information, but also can guarantee sharing in time of subsequent voice information, make around other people of user also can hear in time follow-up voice messaging.
Control module 150, is connected with this locating module 130 and handover module 140, is set to control player according to the current play position of audio file, adopts the broadcasting device after switching to continue displaying audio file.
As shown in Figure 1, the Play System of the audio file of the embodiment of the present application, can also comprise and suspend module 160, it is connected with judge module 120 and control module 150.Suspend module 160 when this judge module 120 show that the magnitude relationship of receiver and the distance between the object of receiver periphery and this distance threshold changes, to control module 150, send a halt signal, indication control module 150 is controlled player according to this halt signal and is suspended this audio file of broadcasting.Suspend module 160 when sending this halt signal to control module 150, also according to a default blocking period, start timing.When this blocking period timing arrives, to control module 150, send a restoring signal, indication control module 150, according to the current play position of this restoring signal and audio file, adopts the broadcasting device after switching to continue to play this audio file.
Control module 150 is set to according to this halt signal, controls player and suspends this audio file of broadcasting, and adopt the broadcasting device after switching to continue displaying audio file according to the current play position of this restoring signal and audio file.
The switching that handover module 140 carries out between receiver and loudspeaker, can within this blocking period, carry out, for providing time enough, this switching of handover module 140 prepares, also avoided in the process of the continuous displaying audio file of player, because switch and play device and issuable noise suddenly, affect user's experience simultaneously.
In the application's embodiment, control module 150 can be according to this halt signal, controls electronic equipment and starts from the current play position of this audio file of suspending before according to this restoring signal, adopts the broadcasting device after switching to continue displaying audio file.This just makes electronic equipment switch after broadcasting device, can again from the reference position of audio file, not replay 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.
When aforesaid magnitude relationship changes, electronic equipment suspends to be play this one blocking period of audio file, for user listens to, by the broadcasting device after switching, continue displaying audio file and reserve and change and adaptation time, 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 occurring tonequality sudden change, noise or other playback problem, by the time-out in playing process, process and also can effectively avoid.
In the application's embodiment, this control module 150 also can be controlled some play position that player 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 electronic equipment can adopt receiver and loudspeaker respectively to play one time.This processing mode, is convenient to the voice messaging that user can clearly listen to these current play position front and back, makes user can not play because of for a change posture, switching the unexpected variation holiday content of device and broadcasting voice messaging volume.Meanwhile, also, for adopting different variations of playing the generation of device displaying audio file to be provided with a buffering, be convenient to this variation of user adaptation.And, this processing mode is switched after broadcasting device electronic equipment at every turn, can all from the reference position of audio file, not replay 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 150 comprises determining unit 151 and control module 152.Determining unit 151 is connected with locating module 130, 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 152 is connected with handover module 140 and determining unit 151, controls player from this continued broadcasting position of audio file, adopts the remainder of the broadcasting device continuation displaying audio file after switching.
As shown in Figure 1, control module 152 can also be connected with time-out module 160, controls player when the blocking period arrives, then controls player from the continued broadcasting position of audio file, adopts the broadcasting device after switching to continue displaying audio file.
In the application's embodiment, determining unit 151 is determined this continued broadcasting position in the reference position of audio file in the paragraph of broadcasting between current play position to this, can from reference position, to the corresponding playing duration of the paragraph of broadcasting this current play position, carry out according to audio file.Such as, by this playing duration compare with a default duration threshold value, then according to comparative result, in the paragraph of broadcasting of audio file, determine this continued broadcasting position.
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 151 is just defined as the reference position of audio file this continued broadcasting position.When the corresponding playing duration of the paragraph of broadcasting of audio file is greater than default duration threshold value, determining unit 151 is just determined this continued broadcasting position in the paragraph of broadcasting of audio file according to a default replay duration.
Wherein, determining unit 151 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 that after the playing duration of audio file is deducted to replay duration, resulting correspondence position is 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, just can from the reference position of audio file, continue to play, 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 place, close end 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, just can, according to default replay duration, in the paragraph of broadcasting of audio file, determine a continued broadcasting position.Wherein, this replay duration is less than the playing duration of audio file.
The player method of the audio file of the embodiment of the present application, for electronic equipment displaying audio file, wherein, this electronic equipment includes two and plays device, plays device for these two and is respectively receiver and loudspeaker; This electronic equipment also comprises can adopt the wherein player of any one displaying audio file of these two players, is also that player both can adopt receiver displaying audio file independently, can adopt independently loudspeaker displaying audio file again.
As shown in Figure 2, during the played audio file of the embodiment of the present application, mainly comprise the steps:
Step S210, when the player of electronic equipment 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, when judging the magnitude relationship of receiver and the distance between the object of receiver periphery and this distance threshold and change, determine the current play position of this audio file of player plays, this current play position is carried out to mark, and switch between receiver and these two broadcasting devices of loudspeaker.
Step S240, controls player according to the current play position of the audio file of institute's mark, adopts the broadcasting device after switching to continue displaying audio file.
In the application's embodiment, can be when showing that described magnitude relationship changes, control player and suspend this audio file of broadcasting, and when the default blocking period arrives, according to this current play position, adopt the broadcasting device after switching to play described audio file.Such as, when this blocking period arrives, can start to adopt the broadcasting device switching to continue displaying audio file from current play position.
Particularly, from being greater than this distance threshold, change to while being less than or equal to this distance threshold judging receiver and the distance between the object of receiver periphery, broadcasting device is switched to receiver from loudspeaker; From being less than or equal to this distance threshold, change to while being greater than this distance threshold judging receiver and the distance between the object of receiver periphery, broadcasting device is switched to described loudspeaker 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 current play position to this; 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 can, according to the duration threshold value playing the corresponding playing duration of paragraph and preset of audio file, determine 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, the reference position of audio file is defined as to this continued broadcasting position; At this, when playing duration has been greater than this duration threshold value, according to a default replay duration, in playing paragraph, this determines this continued broadcasting position.
Wherein, at this, when playing duration has been greater than this duration threshold value, the playing duration of audio file can be deducted to the location positioning that this replay duration is corresponding is this continued broadcasting position.
The application's embodiment, can be applied to the scene that user carries out voice communication by micro-letter or other instant messagings application.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, when 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 playing the process of this audio file, 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, controls player in mobile phone and suspends and play 1 second of this audio file, and the broadcasting device of playing voice messaging is switched to receiver from loudspeaker.When arrive in 1 second of suspending, control player and adopt receiver to continue displaying audio file.
If the second user controls while playing this audio file, mobile phone is placed on to ear limit, the form that adopts receiver to play is play corresponding audio file.In playing the process of this audio file, 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, controls player and suspend to play 1 second of this audio file, and the broadcasting device of playing voice messaging is switched to loudspeaker from receiver.When arrive in 1 second of suspending, control player and adopt loudspeaker to continue displaying audio file.
When distance between earpiece and the object of periphery being detected in real time and change, also can control 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, controlling player starts to adopt the broadcasting device switching to continue to play voice messaging again from jumped back to position, or after suspending a period of time, then control the broadcasting device of player from jumped back to position starts employing switching and continue to play voice messaging.
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.By the content of having play, perceive follow-up voice messaging 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 control player and stop continuing to play this audio file by loudspeaker, broadcasting device is switched to receiver.Then, control player from the position (being also aforesaid current play position) that stops broadcasting of audio file, or control player from the some positions of having play before the position that stops playing, after suspending 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 guaranteed 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, controller 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 the continuous displaying audio file in position from stopping playing again after suspending a period of time, an or repeat playing part continue displaying audio file back from the position that stops playing, an or repeat playing part continue displaying audio file back from the position that stops playing again after suspending a period of time, be convenient to user's periphery other people can be together with user, in the very first time, listen to relevant voice messaging simultaneously.
It is apparent to those skilled in the art that each ingredient of the system 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 a plurality of 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 a plurality of 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 modification 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 (8)

1. the Play System of an audio file, for electronic equipment displaying audio file, described electronic equipment includes two to be play device and adopts described two players of playing one of them displaying audio file of device, and described two broadcasting devices are respectively receiver and loudspeaker; Wherein, this system comprises:
Detection module, be set to described player adopt described two play devices one of them while playing described audio file, detect in real time described receiver and the distance between the object of described receiver periphery;
Judge module, is set to judge whether described distance that described detection module detects in real time and the magnitude relationship of default distance threshold change;
Locating module, is set to described judge module and draws when described magnitude relationship changes, and determines the current play position of described audio file;
Handover module, is set to described judge module and draws when described magnitude relationship changes, and at described two, plays between device and switches;
Control module, is set to control described player and adopts the broadcasting device after switching to play described audio file according to described current play position.
2. system according to claim 1, wherein, this system comprises:
Suspend module, be set to described judge module and draw when described magnitude relationship changes to described control module and send halt signal and start timing according to the default blocking period, when the described blocking period arrives, to described control module, send restoring signal;
Wherein, described control module is set to control described player according to described halt signal and suspends the described audio file of broadcasting, and adopts the broadcasting device after switching to play described audio file according to described restoring signal and current play position.
3. system according to claim 2, wherein:
Described control module is set to according to described restoring signal, controls described player and starts to adopt the broadcasting device switching to continue to play described audio file from described current play position.
4. system according to claim 1 and 2, wherein:
Described handover module is set to show that at described judge module described distance changes to while being less than or equal to described distance threshold from being greater than described distance threshold, switches to described receiver by broadcasting device from described loudspeaker; At described judge module, show that described distance changes to while being greater than described distance threshold from being less than or equal to described distance threshold, switches to described loudspeaker by broadcasting device from described receiver.
5. system according to claim 1 and 2, 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 player from described continued broadcasting position, adopts the broadcasting device after switching to continue to play described audio file.
6. system 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 described, determines described continued broadcasting position in having play paragraph.
7. system according to claim 6, wherein:
Described determining unit is set to, when 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; When described playing duration is greater than described duration threshold value, according to a default replay duration, described, determine described continued broadcasting position in having play paragraph.
8. system 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.
CN201410156976.8A 2014-04-18 2014-04-18 Audio file playing system Pending CN103985400A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410156976.8A CN103985400A (en) 2014-04-18 2014-04-18 Audio file playing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410156976.8A CN103985400A (en) 2014-04-18 2014-04-18 Audio file playing system

Publications (1)

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

Family

ID=51277343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410156976.8A Pending CN103985400A (en) 2014-04-18 2014-04-18 Audio file playing system

Country Status (1)

Country Link
CN (1) CN103985400A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104505111A (en) * 2014-11-27 2015-04-08 东莞宇龙通信科技有限公司 Terminal and terminal sound playing method
CN105657612A (en) * 2015-12-30 2016-06-08 北京奇艺世纪科技有限公司 Audio and video play method and system, headset and mobile terminal
CN106131312A (en) * 2016-06-21 2016-11-16 广东欧珀移动通信有限公司 The player method of speech message, device and mobile terminal
CN106713653A (en) * 2017-01-10 2017-05-24 广东欧珀移动通信有限公司 Audio/video playing control method and device, and terminal
CN109343820A (en) * 2018-10-12 2019-02-15 Oppo广东移动通信有限公司 A kind of control method, device and terminal that audio plays

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001223784A (en) * 2000-02-10 2001-08-17 Matsushita Electric Ind Co Ltd Output switching circuit for portable terminal
CN1939087A (en) * 2004-04-05 2007-03-28 皇家飞利浦电子股份有限公司 Audio entertainment system, device, method, and computer program
CN101133627A (en) * 2005-03-01 2008-02-27 日本电气株式会社 Audio output device, its alarm output control method, and its control program
CN102801869A (en) * 2012-08-29 2012-11-28 北京小米科技有限责任公司 Method and device for switching answer modes of mobile terminal
CN102843464A (en) * 2012-08-03 2012-12-26 深圳市金立通信设备有限公司 System and method utilizing distance sensor to adjust call audio output mode
CN102891914A (en) * 2011-05-11 2013-01-23 深圳市福智软件技术有限公司 Mobile terminal and method for switching answer modes of mobile terminal
CN103257873A (en) * 2013-04-18 2013-08-21 北京小米科技有限责任公司 Method and system for controlling intelligent terminal device
CN103384288A (en) * 2012-05-02 2013-11-06 中兴通讯股份有限公司 Method for automatically controlling terminal voice channel and terminal
CN103702163A (en) * 2013-12-27 2014-04-02 乐视致新电子科技(天津)有限公司 Method and system of dynamically outputting audio file and television

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001223784A (en) * 2000-02-10 2001-08-17 Matsushita Electric Ind Co Ltd Output switching circuit for portable terminal
CN1939087A (en) * 2004-04-05 2007-03-28 皇家飞利浦电子股份有限公司 Audio entertainment system, device, method, and computer program
CN101133627A (en) * 2005-03-01 2008-02-27 日本电气株式会社 Audio output device, its alarm output control method, and its control program
CN102891914A (en) * 2011-05-11 2013-01-23 深圳市福智软件技术有限公司 Mobile terminal and method for switching answer modes of mobile terminal
CN103384288A (en) * 2012-05-02 2013-11-06 中兴通讯股份有限公司 Method for automatically controlling terminal voice channel and terminal
CN102843464A (en) * 2012-08-03 2012-12-26 深圳市金立通信设备有限公司 System and method utilizing distance sensor to adjust call audio output mode
CN102801869A (en) * 2012-08-29 2012-11-28 北京小米科技有限责任公司 Method and device for switching answer modes of mobile terminal
CN103257873A (en) * 2013-04-18 2013-08-21 北京小米科技有限责任公司 Method and system for controlling intelligent terminal device
CN103702163A (en) * 2013-12-27 2014-04-02 乐视致新电子科技(天津)有限公司 Method and system of dynamically outputting audio file and television

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104505111A (en) * 2014-11-27 2015-04-08 东莞宇龙通信科技有限公司 Terminal and terminal sound playing method
CN104505111B (en) * 2014-11-27 2018-05-15 东莞宇龙通信科技有限公司 A kind of terminal and terminal playback method
CN105657612A (en) * 2015-12-30 2016-06-08 北京奇艺世纪科技有限公司 Audio and video play method and system, headset and mobile terminal
CN106131312A (en) * 2016-06-21 2016-11-16 广东欧珀移动通信有限公司 The player method of speech message, device and mobile terminal
CN106131312B (en) * 2016-06-21 2020-01-10 Oppo广东移动通信有限公司 Voice message playing method and device and mobile terminal
CN106713653A (en) * 2017-01-10 2017-05-24 广东欧珀移动通信有限公司 Audio/video playing control method and device, and terminal
CN109343820A (en) * 2018-10-12 2019-02-15 Oppo广东移动通信有限公司 A kind of control method, device and terminal that audio plays

Similar Documents

Publication Publication Date Title
CN103985394A (en) Audio file playing method
CN106488302B (en) Method for switching audio output, playback equipment and playback system
US10390125B2 (en) Controlling operation of a media device based upon whether a presentation device is currently being worn by a user
CN106454644B (en) Audio playing method and device
JP2018500859A (en) Volume adjustment method, apparatus and terminal
CN103984518A (en) Intelligent mobile terminal
CN103985400A (en) Audio file playing system
JP6186518B2 (en) Voice call prompt method, apparatus, program, and recording medium
WO2017045453A1 (en) Monitoring method and device based on earphone
CN106775969B (en) Selective operation method and device of application program
US20160353194A1 (en) Method of auto-pausing audio/video content while using headphones
KR20170139534A (en) Multi-source wireless headphones and audio switching devices
CN107621933B (en) Audio playing method and device and related medium product
CN105376689A (en) Self-adaptive audio playing control method and system
WO2017148270A1 (en) Volume control method and device, and terminal
CN103985396A (en) Audio playing method
US10052067B2 (en) Wearable device
CN103985405A (en) Audio player
TW201423587A (en) System and method for providing prompts for callee
CN106648540B (en) Music switching method and device
TW201625020A (en) Headset and controlling handheld device system, method
CN104980583A (en) Event reminding method and terminal
US20200244809A1 (en) Method of automatically playing a voice message, and smart phone and computer program product implementing the same
CN103985397A (en) Electronic device
US11665271B2 (en) Controlling audio output

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

Application publication date: 20140813

WD01 Invention patent application deemed withdrawn after publication