CN107621933B - Audio playing method and device and related medium product - Google Patents

Audio playing method and device and related medium product Download PDF

Info

Publication number
CN107621933B
CN107621933B CN201710855477.1A CN201710855477A CN107621933B CN 107621933 B CN107621933 B CN 107621933B CN 201710855477 A CN201710855477 A CN 201710855477A CN 107621933 B CN107621933 B CN 107621933B
Authority
CN
China
Prior art keywords
audio
playing
loudspeaker
loudness
request
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.)
Active
Application number
CN201710855477.1A
Other languages
Chinese (zh)
Other versions
CN107621933A (en
Inventor
曾元清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710855477.1A priority Critical patent/CN107621933B/en
Publication of CN107621933A publication Critical patent/CN107621933A/en
Application granted granted Critical
Publication of CN107621933B publication Critical patent/CN107621933B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses an audio playing method and an audio playing device, wherein the method comprises the following steps: receiving a first playing request for performing external sound playing on first audio; controlling a first loudspeaker to play the first audio in an external sound mode according to the first playing request, and controlling a second loudspeaker to play the first audio at a first audio playing power, wherein the first audio playing power is a preset audio playing power for playing the external sound; when a second playing request for playing a second audio in an earphone mode is received, controlling the second loudspeaker to play the second audio at a second audio playing power according to the second playing request, wherein the second audio playing power is the preset audio playing power for playing in the earphone mode. The embodiment of the invention can improve the audio playing effect of the communication terminal.

Description

Audio playing method and device and related medium product
Technical Field
The present invention relates to the field of communications, and in particular, to an audio playing method and apparatus, and a related media product.
Background
The existing communication terminal is often provided with a speaker for playing the audio in an external sound mode and an earphone for playing in an earphone mode, wherein the external sound playing can be understood as high-power playing audio, and the earphone mode playing can be understood as low-power playing audio. Thus, when audio is played using the speaker, the user can hear the audio without placing the communication terminal near the ear. For example: when the communication terminal receives the call request, the communication terminal plays the call ring tone through the loudspeaker, thereby informing the user of the call request; or when the communication terminal plays the video or plays the game, the communication terminal can play the audio in the video or the game through the loudspeaker to improve the user experience. However, the speaker and the earpiece of current communication terminals are often disposed at different locations, such as: the speaker is disposed on the rear case of the communication terminal, and the earpiece is disposed on the front case of the communication terminal. Thus, when the communication terminal is being placed on a soft object such as a sofa, the speaker may be blocked, so that the user may not hear the audio and thus miss a call request, or cannot hear the audio while watching a video and playing a game. Therefore, the effect of playing the audio by the communication terminal is poor.
Disclosure of Invention
The embodiment of the invention provides an audio playing method and device and a related medium product, which can improve the audio playing effect of a communication terminal.
In a first aspect, an embodiment of the present invention provides an audio playing method, including:
receiving a first playing request for performing external sound playing on first audio;
controlling a first loudspeaker to play the first audio in an external sound mode according to the first playing request, and controlling a second loudspeaker to play the first audio at a first audio playing power, wherein the first audio playing power is a preset audio playing power for playing the external sound;
when a second playing request for playing a second audio in an earphone mode is received, controlling the second loudspeaker to play the second audio at a second audio playing power according to the second playing request, wherein the second audio playing power is the preset audio playing power for playing in the earphone mode.
Optionally, the method further includes:
and judging whether the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value, if so, executing the step of controlling the second loudspeaker to play the first audio with first audio playing power.
Optionally, the determining whether the loudness of the first audio played by the first speaker is smaller than a preset loudness threshold includes:
collecting the first audio played by the first loudspeaker to obtain a collected audio, judging whether the loudness of the collected audio is smaller than a preset loudness threshold value, and if so, determining that the loudness of the first audio played by the first loudspeaker is smaller than the preset loudness threshold value; or
And judging whether the sound hole of the first loudspeaker is blocked, if so, determining that the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value.
Optionally, the method further includes:
when the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value, stopping the first audio played by the first loudspeaker.
Optionally, the receiving a first play request for playing the first audio by an external sound includes:
receiving a call request sent by a calling terminal;
the second play request for playing the second audio in the earpiece mode includes:
and establishing a connection request of call connection with the calling terminal.
In a second aspect, an embodiment of the present invention provides an audio playing apparatus, including: receiving unit, first broadcast unit, second broadcast unit and third broadcast unit, wherein:
the receiving unit is used for receiving a first playing request for performing external sound playing on a first audio;
the first playing unit is used for controlling a first loudspeaker to play the first audio according to the first playing request;
the second playing unit is configured to control the second speaker to play the first audio at a first audio playing power according to the first playing request, where the first audio playing power is a preset audio playing power for performing external audio playing;
the third playing unit is configured to, when a second playing request for performing earpiece mode playing on a second audio is received, control the second speaker to play the second audio at a second audio playing power according to the second playing request, where the second audio playing power is a preset audio playing power for performing earpiece mode playing.
Optionally, the apparatus further comprises:
the judging unit is used for judging whether the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value;
the second playing unit is used for controlling the second loudspeaker to play the first audio with first audio playing power according to the first playing request when the judging unit judges that the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value.
Optionally, the determining unit is configured to collect the first audio played by the first speaker to obtain a collected audio, and determine whether a loudness of the collected audio is smaller than a preset loudness threshold, and if so, determine that the loudness of the first audio played by the first speaker is smaller than the preset loudness threshold; or
The judging unit is used for judging whether the sound hole of the first loudspeaker is blocked, and if so, the loudness of the first audio played by the first loudspeaker is determined to be smaller than a preset loudness threshold value.
Optionally, the apparatus further comprises:
and the stopping unit is used for stopping the first loudspeaker from playing the first audio when the judging unit judges that the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value.
Optionally, the receiving unit is configured to receive a call request sent by a calling terminal;
the second play request for playing the second audio in the earpiece mode includes:
and establishing a connection request of call connection with the calling terminal.
In the technical scheme, a first playing request for performing external sound playing on a first audio is received; controlling a first loudspeaker to play the first audio in an external sound mode according to the first playing request, and controlling a second loudspeaker to play the first audio at a first audio playing power, wherein the first audio playing power is a preset audio playing power for playing the external sound; when a second playing request for playing a second audio in an earphone mode is received, controlling the second loudspeaker to play the second audio at a second audio playing power according to the second playing request, wherein the second audio playing power is the preset audio playing power for playing in the earphone mode. Therefore, when the first loudspeaker is blocked, the second loudspeaker can play the first audio in an external sound mode, and the second loudspeaker can also play the second audio in an earphone mode, so that the situation that a user cannot hear the first audio can be avoided, and the audio playing effect of the communication terminal is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an audio playing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another audio playing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an audio playing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another audio playing apparatus provided in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of another audio playing apparatus provided in the embodiment of the present invention;
fig. 6 is a schematic structural diagram of another audio playing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an audio playing method according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
101. receiving a first playing request for performing voice-over playing on the first audio.
The first audio may be audio stored in the communication terminal, for example: ringing tone of the mobile phone; of course, the first audio may also be audio output by an application currently running in the communication terminal, for example: played music or played communication voice, etc.
102. And controlling a first loudspeaker to carry out external sound playing on the first audio according to the first playing request, and controlling a second loudspeaker to play the first audio at a first audio playing power, wherein the first audio playing power is a preset audio playing power for carrying out external sound playing.
The first speaker may be a speaker that performs external sound playing by default on the communication terminal, for example: and a speaker for playing the ring tone by default in the mobile phone. The second speaker may be another speaker of the communication terminal other than the first speaker, for example: the loudspeaker is used as a receiver in the mobile phone, the audio playing power of the loudspeaker is adjustable, and the loudspeaker can play the audio in an external sound mode and also can play the audio in a receiver mode. In addition, the first speaker and the second speaker may be disposed at different positions of the communication terminal, for example: the first loudspeaker is arranged on the back shell of the mobile phone, and the second loudspeaker is arranged on the front shell of the mobile phone, so that the mobile phone is usually only plugged with one loudspeaker when being placed, and the situation that a user only stops ringing the sound can be avoided.
In this embodiment, in application scenes such as music playing, video playing, game playing, and the like, the front and rear speakers may be provided for the user to play the external sound through step 102, so as to achieve the stereo experience.
103. When a second playing request for playing a second audio in an earphone mode is received, controlling the second loudspeaker to play the second audio at a second audio playing power according to the second playing request, wherein the second audio playing power is the preset audio playing power for playing in the earphone mode.
The second audio may be audio independent from the first audio, for example: the first audio is the ring tone of the incoming call, and the second audio is the voice during the call. In addition, the second audio may also be continuous audio with the first audio, that is, the first audio and the second audio are audio of different time periods in the same audio signal, for example: when the communication terminal plays the video, the first audio may be the audio of the previous period in the video, and the second audio may be the audio of the next period in the video.
In addition, the first audio playing power and the second audio playing power may be preset by a user, for example: the second audio playback power is within 30mW, and the first audio playback power is above 150 mW.
In this embodiment, the method may be applied to a communication terminal, and the communication terminal may be an intelligent device with a network function, such as a tablet computer, a mobile phone, an electronic reader, a remote controller, a vehicle-mounted device, and a wearable device.
In this embodiment, a first play request for performing an external sound play on a first audio is received; controlling a first loudspeaker to play the first audio in an external sound mode according to the first playing request, and controlling a second loudspeaker to play the first audio at a first audio playing power, wherein the first audio playing power is a preset audio playing power for playing the external sound; when a second playing request for playing a second audio in an earphone mode is received, controlling the second loudspeaker to play the second audio at a second audio playing power according to the second playing request, wherein the second audio playing power is the preset audio playing power for playing in the earphone mode. Therefore, when the first loudspeaker is blocked, the second loudspeaker can play the first audio in an external sound mode, and the second loudspeaker can also play the second audio in an earphone mode, so that the situation that a user cannot hear the first audio can be avoided, and the audio playing effect of the communication terminal is improved.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating another audio playing method according to an embodiment of the present invention, as shown in fig. 2, including the following steps:
201. receiving a first playing request for performing voice-over playing on the first audio.
202. And controlling a first loudspeaker to play the first audio by external sound according to the first playing request.
203. Judging whether the loudness of the first audio played by the first speaker is smaller than a preset loudness threshold, if so, executing step 204, and if not, ending the process, which is exemplified by ending the process in the figure. In addition, when it is determined that the loudness of the first audio played by the first speaker is not less than the preset loudness threshold, step 204 may also be continuously performed to implement that the two speakers play the first audio, so as to implement a stereo effect.
In this embodiment, the step of determining whether the loudness of the first audio played by the first speaker is smaller than a preset loudness threshold may include:
the first audio played by the first loudspeaker is collected to obtain a collected audio, whether the loudness of the collected audio is smaller than a preset loudness threshold value or not is judged, and if yes, the loudness of the first audio played by the first loudspeaker is determined to be smaller than the preset loudness threshold value.
In this embodiment, a first audio played by a first speaker may be collected by a microphone of the communication terminal, and then the collected audio is transmitted to the processor, and the processor determines whether the loudness of the collected audio is smaller than a preset loudness threshold, and if so, determines that the loudness of the first audio played by the first speaker is smaller than the preset loudness threshold.
In this embodiment, the step of determining whether the loudness of the first audio played by the first speaker is smaller than a preset loudness threshold may include:
and judging whether the sound hole of the first loudspeaker is blocked, if so, determining that the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value.
In this embodiment, the determining whether or not the sound hole of the first speaker is blocked may be performed by capturing an image by a camera installed on the same surface as the first speaker, and determining whether or not the sound hole of the first speaker is blocked when the image captured by the camera indicates that the camera is blocked by an object. For example: the image collected by the camera is completely black, which indicates that the camera is blocked by an object. Of course, whether the sound hole of the first loudspeaker is blocked can be judged according to the image collected by the camera with the setting position close to that of the first loudspeaker.
204. And controlling a second loudspeaker to play the first audio at a first audio playing power, wherein the first audio playing power is a preset audio playing power for playing the external audio.
Through the steps 203 and 204, it can be realized that when the loudness of the first audio played by the first speaker is relatively small, the second speaker is controlled to play the first audio so as to avoid that the first audio is not heard by the user, for example: the user is prevented from not hearing the incoming call ringtone.
205. When a second playing request for playing a second audio in an earphone mode is received, controlling the second loudspeaker to play the second audio at a second audio playing power according to the second playing request, wherein the second audio playing power is the preset audio playing power for playing in the earphone mode.
In this embodiment, the method may further include the following steps:
when the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value, stopping the first audio played by the first loudspeaker.
When the loudness of the audio played by the first speaker is smaller than the preset loudness threshold, it can be considered that the audio user playing the external sound of the first speaker may not hear the external sound, so that the first speaker can be directly stopped playing the first audio, and the power consumption of the device is saved.
In this embodiment, the receiving a first playing request for performing an external sound playing on a first audio may include:
and receiving a call request sent by a calling terminal.
That is, the first audio is a ring tone played when the communication terminal receives a call request sent by the calling terminal, for example: the mobile phone receives the incoming call ring tone played when the incoming call is received. In addition, the call request may be a telephone call request, or may be a call request in instant messaging.
In this embodiment, the second play request for playing the second audio in the earpiece mode may include:
and establishing a connection request of call connection with the calling terminal.
Thus, the second audio may be the voice transmitted in the call connection after the call connection is established.
In this embodiment, the communication terminal may control the first speaker and the second speaker to play the ring tone when receiving the call request, and control the second speaker to play the call voice in the earpiece mode after the call connection is established. This avoids that the user cannot call the ring tone when the first speaker is blocked.
In this embodiment, various optional embodiments are added to the embodiment shown in fig. 1, and the effect of playing audio by the communication terminal can be improved.
For convenience of description, only the relevant parts of the embodiments of the present invention are shown, and details of the specific technology are not disclosed.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an audio playing device according to an embodiment of the present invention, as shown in fig. 3, including: a receiving unit 31, a first playing unit 32, a second playing unit 33 and a third playing unit 34, wherein:
the receiving unit 31 is configured to receive a first play request for performing an external sound play on the first audio.
The first audio may be audio stored in the communication terminal, for example: ringing tone of the mobile phone; of course, the first audio may also be audio output by an application currently running in the communication terminal, for example: played music or played communication voice, etc.
A first playing unit 32, configured to control a first speaker to play the first audio according to the first playing request.
A second playing unit 33, configured to control a second speaker to play the first audio with a first audio playing power according to the first playing request, where the first audio playing power is a preset audio playing power for performing external audio playing;
the first speaker may be a speaker that performs external sound playing by default on the communication terminal, for example: and a speaker for playing the ring tone by default in the mobile phone. The second speaker may be another speaker of the communication terminal other than the first speaker, for example: the loudspeaker is used as a receiver in the mobile phone, the audio playing power of the loudspeaker is adjustable, and the loudspeaker can play the audio in an external sound mode and also can play the audio in a receiver mode. In addition, the first speaker and the second speaker may be disposed at different positions of the communication terminal, for example: the first loudspeaker is arranged on the back shell of the mobile phone, and the second loudspeaker is arranged on the front shell of the mobile phone, so that the mobile phone is usually only plugged with one loudspeaker when being placed, and the situation that a user only stops ringing the sound can be avoided.
In this embodiment, when the application scenes such as music playing, video playing, game playing, etc. are used, the first playing unit 32 and the second playing unit 33 can provide the front and rear speakers for the user to play the external sound, so as to realize the stereo feeling.
A third playing unit 34, configured to, when a second playing request for performing earpiece mode playing on a second audio is received, control the second speaker to play the second audio with a second audio playing power according to the second playing request, where the second audio playing power is a preset audio playing power for performing earpiece mode playing.
The second audio may be audio independent from the first audio, for example: the first audio is the ring tone of the incoming call, and the second audio is the voice during the call. In addition, the second audio may also be continuous audio with the first audio, that is, the first audio and the second audio are audio of different time periods in the same audio signal, for example: when the communication terminal plays the video, the first audio may be the audio of the previous period in the video, and the second audio may be the audio of the next period in the video.
In addition, the first audio playing power and the second audio playing power may be preset by a user, for example: the second audio playback power is within 30mW, and the first audio playback power is above 150 mW.
In this embodiment, the apparatus may be applied to a communication terminal, and the communication terminal may be an intelligent device with a network function, such as a tablet computer, a mobile phone, an electronic reader, a remote controller, a vehicle-mounted device, and a wearable device.
In this embodiment, a first play request for performing an external sound play on a first audio is received; controlling a first loudspeaker to play the first audio in an external sound mode according to the first playing request, and controlling a second loudspeaker to play the first audio at a first audio playing power, wherein the first audio playing power is a preset audio playing power for playing the external sound; when a second playing request for playing a second audio in an earphone mode is received, controlling the second loudspeaker to play the second audio at a second audio playing power according to the second playing request, wherein the second audio playing power is the preset audio playing power for playing in the earphone mode. Therefore, when the first loudspeaker is blocked, the second loudspeaker can play the first audio by external sound, so that the situation that the user cannot hear the first audio can be avoided, and the effect of playing the audio by the communication terminal is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another audio playing device according to an embodiment of the present invention, as shown in fig. 4, including: a receiving unit 41, a first playing unit 42, a judging unit 43, a second playing unit 44 and a third playing unit 45, wherein:
the receiving unit 41 is configured to receive a first play request for performing an external sound play on the first audio.
A first playing unit 42, configured to control a first speaker to play the first audio according to the first playing request;
a determining unit 43, configured to determine whether a loudness of the first audio played by the first speaker is smaller than a preset loudness threshold.
In this embodiment, the determining unit 43 may be configured to collect the first audio played by the first speaker to obtain a collected audio, and determine whether the loudness of the collected audio is smaller than a preset loudness threshold, and if so, determine that the loudness of the first audio played by the first speaker is smaller than the preset loudness threshold.
In this embodiment, a first audio played by a first speaker may be collected by a microphone of the communication terminal, and then the collected audio is transmitted to the processor, and the processor determines whether the loudness of the collected audio is smaller than a preset loudness threshold, and if so, determines that the loudness of the first audio played by the first speaker is smaller than the preset loudness threshold.
In this embodiment, the determining unit 43 may be configured to determine whether a sound hole of the first speaker is blocked, and if so, determine that the loudness of the first audio played by the first speaker is smaller than a preset loudness threshold.
In this embodiment, the determining whether or not the sound hole of the first speaker is blocked may be performed by capturing an image by a camera installed on the same surface as the first speaker, and determining whether or not the sound hole of the first speaker is blocked when the image captured by the camera indicates that the camera is blocked by an object. For example: the image collected by the camera is completely black, which indicates that the camera is blocked by an object. Of course, whether the sound hole of the first loudspeaker is blocked can be judged according to the image collected by the camera with the setting position close to that of the first loudspeaker.
A second playing unit 44, configured to, when the determining unit 43 determines that the loudness of the first audio played by the first speaker is smaller than a preset loudness threshold, control the second speaker to play the first audio with a first audio playing power according to the first playing request, where the first audio playing power is a preset audio playing power for playing an external sound.
By the judging unit 43 and the second playing unit 44, it is possible to control the second speaker to play the first audio when the loudness of the first audio played by the first speaker is relatively small, so as to avoid that the first audio is not heard by the user, for example: the user is prevented from not hearing the incoming call ringtone.
A third playing unit 45, configured to, when a second playing request for performing an earpiece mode playing on a second audio is received, control the second speaker to play the second audio with a second audio playing power according to the second playing request, where the second audio playing power is a preset audio playing power for performing the earpiece mode playing.
In this embodiment, as shown in fig. 5, the apparatus may further include:
a stopping unit 46, configured to stop the first speaker from playing the first audio when the determining unit 43 determines that the loudness of the first audio played by the first speaker is smaller than a preset loudness threshold.
When the loudness of the audio played by the first speaker is smaller than the preset loudness threshold, it can be considered that the audio user playing the external sound of the first speaker may not hear the external sound, so that the first speaker can be directly stopped playing the first audio, and the power consumption of the device is saved.
In this embodiment, the receiving a first playing request for performing an external sound playing on a first audio may include:
and receiving a call request sent by a calling terminal.
That is, the first audio is a ring tone played when the communication terminal receives a call request sent by the calling terminal, for example: the mobile phone receives the incoming call ring tone played when the incoming call is received. In addition, the call request may be a telephone call request, or may be a call request in instant messaging.
In this embodiment, the second play request for playing the second audio in the earpiece mode may include:
and establishing a connection request of call connection with the calling terminal.
Thus, the second audio may be the voice transmitted in the call connection after the call connection is established.
In this embodiment, the communication terminal may control the first speaker and the second speaker to play the ring tone when receiving the call request, and control the second speaker to play the call voice in the earpiece mode after the call connection is established. This avoids that the user cannot call the ring tone when the first speaker is blocked.
In this embodiment, various optional embodiments are added to the embodiment shown in fig. 3, and the effect of playing audio by the communication terminal can be improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another audio playing device according to an embodiment of the present invention, as shown in fig. 6, including: a processor 61, a network interface 62, a memory 63 and a communication bus 64, wherein the communication bus 64 is used for realizing the connection and communication among the processor 61, the network interface 62 and the memory 63, and the processor 61 executes the program stored in the memory 63 for realizing the following operations:
receiving a first playing request for performing external sound playing on first audio;
controlling a first loudspeaker to play the first audio in an external sound mode according to the first playing request, and controlling a second loudspeaker to play the first audio at a first audio playing power, wherein the first audio playing power is a preset audio playing power for playing the external sound;
when a second playing request for playing a second audio in an earphone mode is received, controlling the second loudspeaker to play the second audio at a second audio playing power according to the second playing request, wherein the second audio playing power is the preset audio playing power for playing in the earphone mode.
In this embodiment, the operations performed by the processor 61 may further include:
and judging whether the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value, if so, executing the step of controlling the second loudspeaker to play the first audio with first audio playing power.
In this embodiment, the operation performed by the processor 61 to determine whether the loudness of the first audio played by the first speaker is smaller than a preset loudness threshold may include:
collecting the first audio played by the first loudspeaker to obtain a collected audio, judging whether the loudness of the collected audio is smaller than a preset loudness threshold value, and if so, determining that the loudness of the first audio played by the first loudspeaker is smaller than the preset loudness threshold value; or
And judging whether the sound hole of the first loudspeaker is blocked, if so, determining that the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value.
In this embodiment, the operations performed by the processor 61 may further include:
when the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value, stopping the first audio played by the first loudspeaker.
In this embodiment, the receiving a first playing request for performing an external sound playing on a first audio may include:
receiving a call request sent by a calling terminal;
the second play request for playing the second audio in the earpiece mode may include:
and establishing a connection request of call connection with the calling terminal.
In this embodiment, the apparatus may be applied to a communication terminal, and the communication terminal may be an intelligent device with a network function, such as a tablet computer, a mobile phone, an electronic reader, a remote controller, a vehicle-mounted device, and a wearable device.
In this embodiment, a first play request for performing an external sound play on a first audio is received; controlling a first loudspeaker to play the first audio in an external sound mode according to the first playing request, and controlling a second loudspeaker to play the first audio at a first audio playing power, wherein the first audio playing power is a preset audio playing power for playing the external sound; when a second playing request for playing a second audio in an earphone mode is received, controlling the second loudspeaker to play the second audio at a second audio playing power according to the second playing request, wherein the second audio playing power is the preset audio playing power for playing in the earphone mode. Therefore, when the first loudspeaker is blocked, the second loudspeaker can play the first audio by external sound, so that the situation that the user cannot hear the first audio can be avoided, and the effect of playing the audio by the communication terminal is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (12)

1. An audio playing method, comprising:
receiving a first playing request for performing external sound playing on first audio;
controlling a first loudspeaker to play the first audio in an external sound mode according to the first playing request, and controlling a second loudspeaker to play the first audio at a first audio playing power, wherein the first audio playing power is a preset audio playing power for playing the external sound;
when a second playing request for playing a second audio in an earphone mode is received, controlling the second loudspeaker to play the second audio at a second audio playing power according to the second playing request, wherein the second audio playing power is a preset audio playing power for playing in the earphone mode;
wherein the method further comprises:
and judging whether the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value, if so, executing the step of controlling the second loudspeaker to play the first audio with first audio playing power.
2. The method of claim 1, wherein said determining whether the loudness of the first audio played out by the first speaker is less than a preset loudness threshold comprises:
collecting the first audio played by the first loudspeaker to obtain a collected audio, judging whether the loudness of the collected audio is smaller than a preset loudness threshold value, and if so, determining that the loudness of the first audio played by the first loudspeaker is smaller than the preset loudness threshold value; or
And judging whether the sound hole of the first loudspeaker is blocked, if so, determining that the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value.
3. The method of claim 1, wherein the method further comprises:
when the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value, stopping the first audio played by the first loudspeaker.
4. The method of claim 2, wherein the method further comprises:
when the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value, stopping the first audio played by the first loudspeaker.
5. The method of any of claims 1-4, wherein receiving a first play request for exogenously playing first audio comprises:
receiving a call request sent by a calling terminal;
the second play request for playing the second audio in the earpiece mode includes:
and establishing a connection request of call connection with the calling terminal.
6. An audio playback apparatus, comprising: receiving unit, first broadcast unit, second broadcast unit and third broadcast unit, wherein:
the receiving unit is used for receiving a first playing request for performing external sound playing on a first audio;
the first playing unit is used for controlling a first loudspeaker to play the first audio according to the first playing request;
the second playing unit is configured to control the second speaker to play the first audio at a first audio playing power according to the first playing request, where the first audio playing power is a preset audio playing power for performing external audio playing;
the third playing unit is configured to, when a second playing request for performing earpiece mode playing on a second audio is received, control the second speaker to play the second audio at a second audio playing power according to the second playing request, where the second audio playing power is a preset audio playing power for performing earpiece mode playing;
wherein the apparatus further comprises:
the judging unit is used for judging whether the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value;
the second playing unit is used for controlling the second loudspeaker to play the first audio with first audio playing power according to the first playing request when the judging unit judges that the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value.
7. The apparatus as claimed in claim 6, wherein the determining unit is configured to collect the first audio played by the first speaker to obtain a collected audio, and determine whether a loudness of the collected audio is smaller than a preset loudness threshold, if so, determine that the loudness of the first audio played by the first speaker is smaller than the preset loudness threshold; or
The judging unit is used for judging whether the sound hole of the first loudspeaker is blocked, and if so, the loudness of the first audio played by the first loudspeaker is determined to be smaller than a preset loudness threshold value.
8. The apparatus of claim 6, wherein the apparatus further comprises:
and the stopping unit is used for stopping the first loudspeaker from playing the first audio when the judging unit judges that the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value.
9. The apparatus of claim 7, wherein the apparatus further comprises:
and the stopping unit is used for stopping the first loudspeaker from playing the first audio when the judging unit judges that the loudness of the first audio played by the first loudspeaker is smaller than a preset loudness threshold value.
10. The apparatus according to any of claims 6-9, wherein the receiving unit is configured to receive a call request sent by a calling terminal;
the second play request for playing the second audio in the earpiece mode includes:
and establishing a connection request of call connection with the calling terminal.
11. An audio playback apparatus, comprising: the system comprises a processor, a network interface, a memory and a communication bus, wherein the communication bus is used for realizing connection communication among the processor, the network interface and the memory, and the processor executes a program stored in the memory so as to realize the method of any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that it stores a computer program comprising instructions for carrying out the method of any one of claims 1 to 5.
CN201710855477.1A 2015-09-22 2015-09-22 Audio playing method and device and related medium product Active CN107621933B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710855477.1A CN107621933B (en) 2015-09-22 2015-09-22 Audio playing method and device and related medium product

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710855477.1A CN107621933B (en) 2015-09-22 2015-09-22 Audio playing method and device and related medium product
CN201510607411.1A CN105260159B (en) 2015-09-22 2015-09-22 A kind of audio frequency playing method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510607411.1A Division CN105260159B (en) 2015-09-22 2015-09-22 A kind of audio frequency playing method and device

Publications (2)

Publication Number Publication Date
CN107621933A CN107621933A (en) 2018-01-23
CN107621933B true CN107621933B (en) 2020-08-04

Family

ID=55099865

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201710855477.1A Active CN107621933B (en) 2015-09-22 2015-09-22 Audio playing method and device and related medium product
CN201510607411.1A Active CN105260159B (en) 2015-09-22 2015-09-22 A kind of audio frequency playing method and device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510607411.1A Active CN105260159B (en) 2015-09-22 2015-09-22 A kind of audio frequency playing method and device

Country Status (1)

Country Link
CN (2) CN107621933B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106255000A (en) * 2016-07-29 2016-12-21 维沃移动通信有限公司 A kind of audio signal sample method and mobile terminal
CN106959838A (en) * 2017-03-03 2017-07-18 广东欧珀移动通信有限公司 Audio control method, audio control apparatus and electronic installation
CN108762476B (en) * 2018-03-21 2021-04-09 Oppo广东移动通信有限公司 Equipment prompting method and related product
CN109343820A (en) * 2018-10-12 2019-02-15 Oppo广东移动通信有限公司 A kind of control method, device and terminal that audio plays
CN109996161B (en) * 2019-04-23 2021-04-27 Oppo广东移动通信有限公司 Mobile terminal, voice control method thereof and device with storage function
CN112822665A (en) * 2019-11-18 2021-05-18 阿里巴巴集团控股有限公司 Audio playing method, device, equipment and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1243375A (en) * 1998-07-28 2000-02-02 三星电子株式会社 Turn-cover type or folding type mobile telephone set of not turning cover or unfolding folder when answering
US6885899B1 (en) * 1998-08-25 2005-04-26 Samsung Electronics, Co., Ltd Method and apparatus for controlling a sound function of a computer system
CN1946089A (en) * 2005-10-09 2007-04-11 华硕电脑股份有限公司 Portable communication device
CN102143421A (en) * 2010-02-02 2011-08-03 华为终端有限公司 Terminal and method for processing audio of terminal
CN102176730A (en) * 2011-01-06 2011-09-07 中兴通讯股份有限公司 Electronic terminal and ringtone prompt method of electronic terminal
CN103811033A (en) * 2012-11-14 2014-05-21 北京新媒传信科技有限公司 Method and device for controlling voice playing modes
CN103985396A (en) * 2014-04-18 2014-08-13 青岛尚慧信息技术有限公司 Audio playing method
CN104640029A (en) * 2013-11-06 2015-05-20 索尼公司 Audio outputting method and device, and electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946246A (en) * 2005-10-09 2007-04-11 宏达国际电子股份有限公司 Arbitral method for audio output device
CN103985397A (en) * 2014-04-18 2014-08-13 青岛尚慧信息技术有限公司 Electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1243375A (en) * 1998-07-28 2000-02-02 三星电子株式会社 Turn-cover type or folding type mobile telephone set of not turning cover or unfolding folder when answering
US6885899B1 (en) * 1998-08-25 2005-04-26 Samsung Electronics, Co., Ltd Method and apparatus for controlling a sound function of a computer system
CN1946089A (en) * 2005-10-09 2007-04-11 华硕电脑股份有限公司 Portable communication device
CN102143421A (en) * 2010-02-02 2011-08-03 华为终端有限公司 Terminal and method for processing audio of terminal
CN102176730A (en) * 2011-01-06 2011-09-07 中兴通讯股份有限公司 Electronic terminal and ringtone prompt method of electronic terminal
CN103811033A (en) * 2012-11-14 2014-05-21 北京新媒传信科技有限公司 Method and device for controlling voice playing modes
CN104640029A (en) * 2013-11-06 2015-05-20 索尼公司 Audio outputting method and device, and electronic device
CN103985396A (en) * 2014-04-18 2014-08-13 青岛尚慧信息技术有限公司 Audio playing method

Also Published As

Publication number Publication date
CN105260159B (en) 2017-10-17
CN105260159A (en) 2016-01-20
CN107621933A (en) 2018-01-23

Similar Documents

Publication Publication Date Title
CN107621933B (en) Audio playing method and device and related medium product
CN109445740B (en) Audio playing method and device, electronic equipment and storage medium
CN108540906B (en) Volume adjusting method, earphone and computer readable storage medium
CN104521247B (en) Bluetooth headset hearing aid and anti-noise method and apparatus
CN110493678B (en) Earphone control method and device, earphone and storage medium
EP3038255B1 (en) An intelligent volume control interface
WO2017045453A1 (en) Monitoring method and device based on earphone
WO2015117347A1 (en) Adjustment method and device for terminal scene mode
CN102170493A (en) Mobile phone as well as method and device for controlling video calls of mobile phone
CN103985394A (en) Audio file playing method
CN113542960B (en) Audio signal processing method, system, device, electronic equipment and storage medium
CN111770404A (en) Recording method, recording device, electronic equipment and readable storage medium
CN113411707A (en) Auxiliary listening earphone, control method, device and system thereof, and readable medium
CN103984518A (en) Intelligent mobile terminal
CN108093132B (en) Terminal device and ringtone volume control method
CN103685752A (en) Loudspeaker and earphone automatic switching method based on camera
CN104023117A (en) Method for information processing and electronic equipment
CN109511040B (en) Whisper amplifying method and device and earphone
CN111107226A (en) Volume control method applied to mobile terminal
CN104980583A (en) Event reminding method and terminal
CN110248347B (en) Call abnormity detection method, device, equipment and storage medium
CN103985396A (en) Audio playing method
CN106657675B (en) Method and system for playing mobile terminal audio and video through Bluetooth playing device
CN111050240A (en) Earphone mode switching method and device
CN101212529A (en) System, device, and method for controlling automobile sound system by telephone

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant