CN103985394A - Audio file playing method - Google Patents

Audio file playing method Download PDF

Info

Publication number
CN103985394A
CN103985394A CN201410156862.3A CN201410156862A CN103985394A CN 103985394 A CN103985394 A CN 103985394A CN 201410156862 A CN201410156862 A CN 201410156862A CN 103985394 A CN103985394 A CN 103985394A
Authority
CN
China
Prior art keywords
audio file
play
receiver
broadcasting
player
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
CN201410156862.3A
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 CN201410156862.3A priority Critical patent/CN103985394A/en
Publication of CN103985394A publication Critical patent/CN103985394A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses an audio file playing method. The audio file playing method 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 method comprises the steps that when a player plays an audio file through a receiver or a loud speaker, the distance between the receiver and an object located around the receiver is detected in real time and the size relationship between the distance and a preset distance threshold is established; when the size relationship changes, the current playing position of the audio file is obtained, and switching between the receiver and the loud speaker is conducted; the player is controlled to play the audio file through the switched displaying device according to the current playing position. The audio file playing method can obviously improve user experience.

Description

A kind of player method of audio file
Technical field
The present invention relates to a kind of player method, relate in particular to a kind of player method 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 player method 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, the method comprises:
When described player adopts described receiver or loudspeaker to play described audio file, detect in real time described receiver and the distance between the object of described receiver periphery, and the magnitude relationship of more described distance and default distance threshold;
When described magnitude relationship changes, obtain the current play position of described audio file, and switch between described receiver and loudspeaker;
Controlling described player adopts the broadcasting device after switching to play described audio file according to described current play position.
Preferably, the method comprises:
When described magnitude relationship changes, control described player and suspend the described audio file one Preset Time section of broadcasting;
When described Preset Time section arrives, control described player and adopt the broadcasting device after switching to play described audio file according to described current play position.
Preferably, when described Preset Time section arrives, control described player and adopt the broadcasting device after switching to play described audio file according to described current play position, comprising:
When described Preset Time section arrives, control described player and start to adopt the broadcasting device switching to continue to play described audio file from described current play position.
Preferably, between described receiver and loudspeaker, switch, comprising:
In described distance, from being greater than described distance threshold, change to while being less than or equal to described distance threshold, from described loudspeaker, switch to described receiver;
In described distance, from being less than or equal to described distance threshold, change to while being greater than described distance threshold, from described receiver, switch to described loudspeaker.
Preferably, control described player and adopt the broadcasting device after switching to play described audio file according to described current play position, comprising:
Reference position at described audio file is determined a continued broadcasting position in the paragraph of broadcasting between described current play position;
Control described player from described continued broadcasting position, adopt the broadcasting device after switching to play described audio file.
Preferably, in the reference position of described audio file, in the paragraph of broadcasting between described current play position, determine a continued broadcasting position, comprising:
According to described playing duration that paragraph is corresponding and the default duration threshold value play, described, determine described continued broadcasting position in having play paragraph.
Preferably, according to described playing duration that paragraph is corresponding and the default duration threshold value play, described, determine described continued broadcasting position in having play paragraph, comprising:
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, according to a default replay duration, described, determine described continued broadcasting position in having play paragraph, comprising:
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, prevent from 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 schematic flow sheet of player method of the audio file of the embodiment of the present application.
Fig. 2 is the organigram of Play System of the 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 player method of the audio file of the embodiment of the present application, be used for controlling electronic equipment displaying audio file, wherein, this electronic equipment includes two to be play device and can adopt two to play the wherein player of any one broadcasting device displaying audio file of device, plays devices for these two and is 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 player method of the audio file of the embodiment of the present application mainly comprises following content:
Step S110, when player adopts receiver or loudspeaker displaying audio file, detects receiver and the distance between the object of receiver periphery in real time.
Player adopts receiver displaying audio file still to adopt loudspeaker displaying audio file, can set in advance, and can be also that electronic equipment carries out adaptively selected according to different situations.
For the situation setting in advance, user or manufacturer etc. can be receiver or loudspeaker by the broadcasting device default setting of audio file in advance on electronic equipment., under default scenario, the player in electronic equipment just can carry out displaying audio file according to default setting.User can change the broadcasting device of player plays audio file by modes such as modifications, and such as default setting is that player adopts 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 the player in 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 the player in 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 player 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.
Step S120, the in real time magnitude relationship of receiver and the distance between the object of receiver periphery and default distance threshold relatively.
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.
Step S130, when the magnitude relationship of receiver and the distance between the object of receiver periphery and this distance threshold changes, obtain 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.If electronic equipment is to adopt receiver displaying audio file before this magnitude relationship changes, plays after device switches employing loudspeaker is carried out to follow-up play; If electronic equipment is to adopt loudspeaker displaying audio file before this magnitude relationship changes, plays after device switches employing receiver is carried out to follow-up play.
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 previous this distance threshold that is greater than, player switches to receiver by the broadcasting device of playing this audio file 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 previous this distance threshold that is less than or equal to, player switches to loudspeaker by the broadcasting device of playing this audio file 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 the player in 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 the player in 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.
Step S140, controls player according to the current play position of the audio file of institute's mark, adopts the broadcasting device displaying audio file after switching.
In the application's embodiment, in the time of can changing in the magnitude relationship of receiver and the distance between the object of receiver periphery and default distance threshold, control player and suspend this audio file one Preset Time section of broadcasting, switching between receiver and loudspeaker can be carried out in this Preset Time section, for providing time enough, this switching 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.
When this Preset Time section arrives, control player according to this current play position, adopt the broadcasting device displaying audio file after switching.Such as, at time-out, play this Preset Time section and arrive and complete after the switching between receiver and loudspeaker, control electronic equipment from this current play position, adopt the broadcasting device continuation after switching to play this audio file.So process, electronic equipment is switched and play after 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, control electronic equipment and suspend this audio file one Preset Time section of broadcasting, be convenient to user and listen to and 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, also can effectively avoid.
The application's embodiment also can, after switching completes, determine a continued broadcasting position in the reference position of audio file in the paragraph of broadcasting between this current play position of suspending.Then, control player from this continued broadcasting position of audio file, adopt the remainder of this audio file of broadcasting device continuation broadcasting after switching.
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 player adopts different variations of playing the generation of device displaying audio file, 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.
In the application's embodiment, reference position at audio file is determined this continued broadcasting position 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, just the reference position of audio file is defined as to this continued broadcasting position.When the corresponding playing duration of the paragraph of broadcasting of audio file is greater than default duration threshold value, just according to a default replay duration, in the paragraph of broadcasting of audio file, determine this 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, player just can continue from the reference position of audio file to play, and 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 15 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.
In the application's embodiment, when the corresponding playing duration of the paragraph of broadcasting of audio file is greater than default duration threshold value, the whole playing duration of audio file can be deducted to corresponding position after this duration threshold value, be defined as this continued broadcasting position.In the application's embodiment, this replay duration can equal aforesaid duration threshold value.
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 controlling this voice messaging of broadcasting, 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 and suspend to play 1 second of this audio file, and the broadcasting device that mobile phone is play 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 mobile phone 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, 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, electronic equipment 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.
The Play System of the audio file of the embodiment of the present application, for controlling electronic equipment displaying audio file.This electronic equipment includes receiver and these two of loudspeakers that can independent play-out audio file and plays devices.
As shown in Figure 2, the Play System of the audio file of the embodiment of the present application, mainly comprises detection module 210, comparison module 220, acquisition module 230, handover module 240 and control module 250, wherein:
Detection module 210, when electronic equipment adopts receiver or loudspeaker displaying audio file, detects receiver and the distance between the object of receiver periphery in real time.
Comparison module 220, is connected with this detection module 210, the magnitude relationship of the receiver that relatively detection module 210 detects in real time and the distance between the object of receiver periphery and a distance threshold of presetting.
Acquisition module 230, be connected with this comparison module 220, when this comparison module 220 show that the magnitude relationship of receiver and the distance between the object of receiver periphery and this distance threshold changes, obtain the current play position of the audio file of electronic equipment broadcasting, the current play position of this audio file is carried out to mark.
Handover module 240, is connected with this comparison module 220, when this comparison module 220 show that the magnitude relationship of receiver and the distance between the object of receiver periphery and this distance threshold changes, and the switching of playing device between receiver and loudspeaker.If electronic equipment had been previously to adopt receiver displaying audio file, plays after device switches employing loudspeaker is carried out to follow-up play; If electronic equipment had been previously to adopt loudspeaker displaying audio file, plays after device switches employing receiver is carried out to follow-up play.
Control module 250, is connected with this acquisition module 230 and handover module 240, controls electronic equipment according to the current play position of audio file, adopts the broadcasting device displaying audio file after switching.
As shown in Figure 2, the Play System of the audio file of the embodiment of the present application can also comprise time-out module 260, and it is connected with comparison module 220 and control module 250.Suspend module 260 when this comparison module 220 show that the magnitude relationship of receiver and the distance between the object of receiver periphery and this distance threshold changes, control electronic equipment and suspend this audio file one Preset Time section of broadcasting.Handover module 240 can complete the switching between receiver and loudspeaker within this Preset Time section.
When this Preset Time section of suspending module 260 time-outs arrives, control module 250 can be controlled electronic equipment according to current play position, adopts the broadcasting device displaying audio file after switching.Such as, when suspending this Preset Time section that module 260 suspends and arrive, control module 250 can be controlled electronic equipment and start from the current play position of this audio file of suspending before, adopts the broadcasting device after switching to continue displaying audio file.
Above-mentioned handover module 240, changes to while being less than or equal to this distance threshold from being greater than this distance threshold in receiver and the distance between the object of receiver periphery, and the broadcasting device of electronic equipment being play to this audio file switches to receiver from loudspeaker; In receiver and the distance between the object of receiver periphery, from being less than or equal to this distance threshold, change to while being greater than this distance threshold, the broadcasting device of electronic equipment being play to this audio file switches to loudspeaker from receiver.
In the application's embodiment, this control module 250 can be controlled some play position that electronic equipment is positioned at before this current play position from this audio file and start, and adopts the broadcasting device after switching to continue to play this audio file.
As shown in Figure 2, control module 250 comprises determining unit 251 and control module 252.Determining unit 251 is connected with acquisition module 230, in the reference position of audio file, in the paragraph of broadcasting between current play position, determines a continued broadcasting position.Control module 252 is connected with handover module 240 and determining unit 251, controls electronic equipment from the continued broadcasting position of audio file, adopts the broadcasting device after switching to continue displaying audio file.
As shown in Figure 2, control module 252 can also be connected with time-out module 260, controls electronic equipment when the Preset Time section of suspending arrives, and controls electronic equipment from the continued broadcasting position of audio file, and the broadcasting device after employing is switched continues displaying audio file.
Determining unit 251 can according to audio file play playing duration that paragraph is corresponding and a default duration threshold value, in the paragraph of broadcasting of audio file, determine this continued broadcasting position.Such as, this is defined as this continued broadcasting position by the reference position of this audio file when playing duration has been less than or equal to this duration threshold value; 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, determining unit 251 is determined this continued broadcasting position in this plays paragraph according to a default replay duration, can be that the playing duration of audio file is deducted to the position that replay duration is corresponding, is defined as continued broadcasting position.
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 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 player method 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, the method comprises:
When described player adopts described receiver or loudspeaker to play described audio file, detect in real time described receiver and the distance between the object of described receiver periphery, and the magnitude relationship of more described distance and default distance threshold;
When described magnitude relationship changes, obtain the current play position of described audio file, and switch between described receiver and loudspeaker;
Controlling described player adopts the broadcasting device after switching to play described audio file according to described current play position.
2. method according to claim 1, wherein, the method comprises:
When described magnitude relationship changes, control described player and suspend the described audio file one Preset Time section of broadcasting;
When described Preset Time section arrives, control described player and adopt the broadcasting device after switching to play described audio file according to described current play position.
3. method according to claim 2, wherein, when described Preset Time section arrives, controls described player and adopts the broadcasting device after switching to play described audio file according to described current play position, comprising:
When described Preset Time section arrives, control described player and start to adopt the broadcasting device switching to continue to play described audio file from described current play position.
4. method according to claim 1 and 2 wherein, is switched between described receiver and loudspeaker, comprising:
In described distance, from being greater than described distance threshold, change to while being less than or equal to described distance threshold, from described loudspeaker, switch to described receiver;
In described distance, from being less than or equal to described distance threshold, change to while being greater than described distance threshold, from described receiver, switch to described loudspeaker.
5. method according to claim 1 and 2, wherein, controls described player and adopts the broadcasting device after switching to play described audio file according to described current play position, comprising:
Reference position at described audio file is determined a continued broadcasting position in the paragraph of broadcasting between described current play position;
Control described player from described continued broadcasting position, adopt the broadcasting device after switching to play described audio file.
6. method according to claim 5 wherein, is determined a continued broadcasting position in the reference position of described audio file in the paragraph of broadcasting between described current play position, comprising:
According to described playing duration that paragraph is corresponding and the default duration threshold value play, described, determine described continued broadcasting position in having play paragraph.
7. method according to claim 6, wherein, according to described playing duration that paragraph is corresponding and the default duration threshold value play, determines described continued broadcasting position described in having play paragraph, comprising:
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. method according to claim 7, wherein, determines described continued broadcasting position described in having play paragraph according to a default replay duration, comprising:
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.
CN201410156862.3A 2014-04-18 2014-04-18 Audio file playing method Pending CN103985394A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410156862.3A CN103985394A (en) 2014-04-18 2014-04-18 Audio file playing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410156862.3A CN103985394A (en) 2014-04-18 2014-04-18 Audio file playing method

Publications (1)

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

Family

ID=51277337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410156862.3A Pending CN103985394A (en) 2014-04-18 2014-04-18 Audio file playing method

Country Status (1)

Country Link
CN (1) CN103985394A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718237A (en) * 2016-01-20 2016-06-29 广东欧珀移动通信有限公司 Mobile terminal, method and device for audio switch thereof
CN106231071A (en) * 2016-07-15 2016-12-14 宇龙计算机通信科技(深圳)有限公司 A kind of speech output method and terminal
CN106713653A (en) * 2017-01-10 2017-05-24 广东欧珀移动通信有限公司 Audio/video playing control method and device, and terminal
CN106971752A (en) * 2017-03-31 2017-07-21 联想(北京)有限公司 Control method for playing multimedia and multimedia playing apparatus
CN107193526A (en) * 2017-05-02 2017-09-22 深圳市金立通信设备有限公司 The method and terminal of a kind of speech play
CN109873678A (en) * 2019-01-30 2019-06-11 努比亚技术有限公司 A kind of call control method, equipment and computer readable storage medium
CN110134305A (en) * 2019-04-02 2019-08-16 北京搜狗科技发展有限公司 A kind of word speed adjusting method, device and the device adjusted for word speed
WO2020010963A1 (en) * 2018-07-10 2020-01-16 中兴通讯股份有限公司 Voice handover method, apparatus, terminal, and computer-readable storage medium
CN111913770A (en) * 2020-07-08 2020-11-10 维沃移动通信有限公司 Display method, display device, electronic apparatus, and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009224911A (en) * 2008-03-13 2009-10-01 Onkyo Corp Headphone
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009224911A (en) * 2008-03-13 2009-10-01 Onkyo Corp Headphone
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 (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718237A (en) * 2016-01-20 2016-06-29 广东欧珀移动通信有限公司 Mobile terminal, method and device for audio switch thereof
CN105718237B (en) * 2016-01-20 2019-03-01 Oppo广东移动通信有限公司 A kind of method and apparatus and mobile terminal of audio frequency of mobile terminal switching
CN106231071A (en) * 2016-07-15 2016-12-14 宇龙计算机通信科技(深圳)有限公司 A kind of speech output method and terminal
CN106713653A (en) * 2017-01-10 2017-05-24 广东欧珀移动通信有限公司 Audio/video playing control method and device, and terminal
CN106971752A (en) * 2017-03-31 2017-07-21 联想(北京)有限公司 Control method for playing multimedia and multimedia playing apparatus
CN107193526A (en) * 2017-05-02 2017-09-22 深圳市金立通信设备有限公司 The method and terminal of a kind of speech play
WO2020010963A1 (en) * 2018-07-10 2020-01-16 中兴通讯股份有限公司 Voice handover method, apparatus, terminal, and computer-readable storage medium
CN110708417A (en) * 2018-07-10 2020-01-17 中兴通讯股份有限公司 Voice switching method, device, terminal and computer readable storage medium
CN110708417B (en) * 2018-07-10 2021-02-23 中兴通讯股份有限公司 Voice switching method, device, terminal and computer readable storage medium
CN109873678A (en) * 2019-01-30 2019-06-11 努比亚技术有限公司 A kind of call control method, equipment and computer readable storage medium
CN110134305A (en) * 2019-04-02 2019-08-16 北京搜狗科技发展有限公司 A kind of word speed adjusting method, device and the device adjusted for word speed
CN111913770A (en) * 2020-07-08 2020-11-10 维沃移动通信有限公司 Display method, display device, electronic apparatus, and 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
CN106488302B (en) Method for switching audio output, playback equipment and playback system
CN106454644B (en) Audio playing method and device
CN103984518A (en) Intelligent mobile terminal
JP2018500859A (en) Volume adjustment method, apparatus and terminal
WO2015055053A1 (en) Method, device and terminal for switching playback mode
WO2017045453A1 (en) Monitoring method and device based on earphone
WO2004079310A3 (en) Instant messaging sound control
CN107621933B (en) Audio playing method and device and related medium product
JP6186518B2 (en) Voice call prompt method, apparatus, program, and recording medium
CN103985400A (en) Audio file playing system
US20160353194A1 (en) Method of auto-pausing audio/video content while using headphones
WO2018028071A1 (en) Audio playback system, and hearing protection method for use when playing back audio using same
CN105376689A (en) Self-adaptive audio playing control method and system
WO2020063069A1 (en) Audio playing method and apparatus, electronic device and computer-readable medium
WO2017148270A1 (en) Volume control method and device, and terminal
CN103985396A (en) Audio playing method
CN113099336B (en) Method and device for adjusting earphone audio parameters, earphone and storage medium
CN103985405A (en) Audio player
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
CN103985398A (en) Audio playing system

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