CN112764710A - Audio playing mode switching method and device, electronic equipment and storage medium - Google Patents

Audio playing mode switching method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112764710A
CN112764710A CN202110089561.3A CN202110089561A CN112764710A CN 112764710 A CN112764710 A CN 112764710A CN 202110089561 A CN202110089561 A CN 202110089561A CN 112764710 A CN112764710 A CN 112764710A
Authority
CN
China
Prior art keywords
playing
audio
playing mode
electronic equipment
input
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
CN202110089561.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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110089561.3A priority Critical patent/CN112764710A/en
Publication of CN112764710A publication Critical patent/CN112764710A/en
Priority to PCT/CN2022/072495 priority patent/WO2022156662A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Abstract

The application discloses a method and a device for switching audio playing modes, electronic equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: under the condition that the electronic equipment is in an audio playing state, acquiring a first playing mode of audio playing of the electronic equipment; displaying first prompt information according to the first playing mode; receiving a first input to the electronic equipment based on the first prompt message; and responding to the first input, and switching the playing mode of the electronic equipment from the first playing mode to a target playing mode. Therefore, the user can know the current playing mode of the audio based on the first prompt message displayed on the electronic equipment, the user can switch the playing mode of the audio conveniently according to the first prompt message, and the switching efficiency of the audio playing mode is improved.

Description

Audio playing mode switching method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of computers, and particularly relates to a method and a device for switching audio playing modes, electronic equipment and a storage medium.
Background
With the development of electronic devices, the functions of the electronic devices are continuously improved. When the electronic equipment is used for playing audio, the audio can be played through a receiver or a loudspeaker which is arranged on the electronic equipment, and the audio can also be output to the Bluetooth equipment for playing. Because the electronic equipment has more audio playing modes, the used audio playing modes are different under different conditions. For example, the electronic device is playing audio using a bluetooth device, and if the electronic device receives an incoming call and the user forgets to switch the audio playing mode, the incoming call audio is output to the bluetooth device, which causes inconvenience to the user. That is to say, when the existing electronic device has multiple audio playing modes, the switching efficiency of the audio playing modes is low.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for switching audio playing modes, an electronic device, and a storage medium, which can solve the problem that the switching efficiency of the audio playing modes is low when the existing electronic device has multiple audio playing modes.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for switching an audio playing mode, where the method includes:
under the condition that the electronic equipment is in an audio playing state, acquiring a first playing mode of audio playing of the electronic equipment;
displaying first prompt information according to the first playing mode;
receiving a first input to the electronic equipment based on the first prompt message;
and responding to the first input, and switching the playing mode of the electronic equipment from the first playing mode to a target playing mode.
In a second aspect, an embodiment of the present application provides an apparatus for switching audio playing modes, where the apparatus includes:
the electronic equipment comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a first playing mode of audio playing of the electronic equipment under the condition that the electronic equipment is in an audio playing state;
the first display module is used for displaying first prompt information according to the first playing mode;
the first receiving module is used for receiving first input to the electronic equipment based on the first prompt message;
and the switching module is used for responding to the first input and switching the playing mode of the electronic equipment from the first playing mode to a target playing mode.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, under the condition that the electronic equipment is in an audio playing state, a first playing mode of the electronic equipment for audio playing is obtained; displaying first prompt information according to the first playing mode; receiving a first input to the electronic equipment based on the first prompt message; and responding to the first input, and switching the playing mode of the electronic equipment from the first playing mode to a target playing mode. Therefore, the user can know the current playing mode of the audio based on the first prompt message displayed on the electronic equipment, the user can conveniently switch the playing mode of the audio according to the first prompt message, and the switching efficiency of the audio playing mode is improved.
Drawings
Fig. 1 is a flowchart of a method for switching audio playing modes according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a display effect of a user interface according to an embodiment of the present disclosure;
fig. 3 is a second schematic view illustrating a display effect of a user interface according to an embodiment of the present application;
fig. 4 is a third schematic view illustrating a display effect of a user interface according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating an operation of a user interface provided in an embodiment of the present application;
FIG. 6 is a fourth schematic view illustrating a display effect of a user interface according to an embodiment of the present disclosure;
fig. 7 is a schematic flowchart illustrating a process of triggering display of second prompt sub-information according to an embodiment of the present application;
FIG. 8 is a fifth schematic view illustrating a display effect of a user interface according to an embodiment of the present disclosure;
FIG. 9 is a sixth schematic view illustrating a display effect of a user interface according to an embodiment of the present application;
FIG. 10 is a schematic diagram illustrating audio streaming of call audio and media file audio according to an embodiment of the present application;
fig. 11 is a seventh schematic view illustrating a display effect of a user interface according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a switching device for audio playing modes according to an embodiment of the present application;
fig. 13 is one of structural diagrams of an electronic device according to an embodiment of the present application;
fig. 14 is a second block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail the switching method of audio playing modes provided in the embodiments of the present application with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart of a method for switching an audio playing mode according to an embodiment of the present application. As shown in fig. 1, the method for switching audio playing modes specifically includes the following steps:
step 101, acquiring a first playing mode of the electronic equipment for playing the audio under the condition that the electronic equipment is in an audio playing state.
The electronic Device may be a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like. The audio may be a call audio, a media file audio, a system notification prompt audio of the electronic device, or the like, and the application is not particularly limited. The first playing mode may be a mode of playing through an earphone or a speaker of the electronic device, or a mode of playing through an external speaker, where the external speaker includes but is not limited to a speaker of a bluetooth headset, a speaker of a bluetooth sound, and the like.
And 102, displaying the first prompt message according to the first playing mode.
The first prompt message may be in the form of an icon, a character, or the like. The first prompt message may be a prompt for the first playing mode, such as a text prompt that the first playing mode is playing with a receiver. The first prompt information may also be prompt information made when the user is determined not to use the optimal playing mode based on the first playing mode, such as a text prompt of "please switch to a receiver to play audio", and the like.
The first prompt information is used for prompting the user of the first playing mode of the electronic device, and the first prompt information can also be used for prompting the user whether the first playing mode of the electronic device is the optimal playing mode, where the optimal playing mode can be understood as the playing mode with the optimal audio playing effect or the playing mode with the highest possibility of meeting the user requirements.
Specifically, the manner of displaying the first prompt information may be to display the first prompt information at a preset position of a user interface of the electronic device, or to display the first prompt information in a corresponding area of the user interface according to a playing position corresponding to the first playing manner. For example, when the first playing mode is playing through a receiver, a prompt icon is displayed in an area corresponding to the position of the receiver on the user interface; when the first playing mode is playing through a loudspeaker of the electronic equipment, displaying a prompt icon in an area corresponding to the position of the loudspeaker of the electronic equipment on a user interface; and under the condition that the first playing mode is the peripheral loudspeaker, displaying a prompt icon and the like in an area corresponding to the position where the peripheral icon is displayed on the user interface.
As an implementation manner, when the first prompt information is used for prompting the user of the first playing manner of the electronic device, the user can know the first playing manner of the playing audio based on the first prompt information displayed on the electronic device, so that the user can switch the playing manner of the audio according to the first prompt information, and the switching efficiency of the audio playing manner is improved.
As another embodiment, when the first prompt information is used to prompt the user whether the first playing mode of the electronic device is the optimal playing mode, the user may know whether the first playing mode is the optimal playing mode (the optimal playing mode may be understood as the correct playing mode) based on the first prompt information, for example, the user uses a peripheral to play the call audio during the call, and actually, the user wants to use a handset of the electronic device to play the call audio, and may know that the first playing mode is the non-optimal playing mode (the non-optimal playing mode may be understood as the wrong playing mode) through the first prompt information, and based on the first prompt information, the user may switch the playing modes in time to protect the privacy of the call.
And 103, receiving a first input to the electronic equipment based on the first prompt message.
The first input may be any one of a click, a slide, a shake, a long press, a voice command transmission, and the like performed by the user on the electronic device, and the application is not limited in particular.
And 104, responding to the first input, and switching the playing mode of the electronic equipment from the first playing mode to the target playing mode.
Specifically, the electronic device may switch the first playing mode after receiving the first input. For example, when the first input is a voice instruction input by a user, the electronic device may switch the first playing mode based on the voice instruction; when the first input is shaking operation of the electronic equipment by the user, the electronic equipment can judge whether the shaking direction and the shaking times are consistent with the preset shaking direction and shaking times according to the shaking direction and shaking times of the shaking operation, and switch the first playing mode under the condition of consistency; when the first input is an input operation of a user on a physical key or a control, whether the first input is consistent with a preset input operation or not can be judged according to the input operation, and the first playing mode is switched under the consistent condition, and the like.
In this embodiment, through the first prompt message displayed on the electronic device, the user can know the first playing mode of the audio, and the user can switch the first playing mode of the audio according to the first prompt message, so that the switching efficiency of the audio playing mode is improved.
Further, the step 102 of displaying the first prompt information according to the first playing mode includes:
displaying first prompt sub-information matched with the first playing mode;
the step 103 of receiving a first input to the electronic device based on the first prompt information includes:
receiving a first input to the electronic device based on the first prompt sub-information;
after the step 104 of switching the playing mode of the electronic device from the first playing mode to the target playing mode, the method further includes:
and displaying second prompt information at a target position of a user interface of the electronic equipment, wherein the target position is matched with the target playing mode.
Specifically, the first prompt sub-information may be used to indicate a playing position of the first playing mode, and may be in the form of a text, an icon, or the like. In an embodiment, the display position of the first prompt sub-message matches the play position of the first play mode, that is, the display position of the first prompt sub-message is in the area corresponding to the play position of the first play mode. Assuming that the playing mode includes playing through the earpiece 201, playing through the speaker 301 of the electronic device, and playing through the peripheral speaker 401, when playing audio through the earpiece 201, the first prompt sub-information may be displayed in an area corresponding to the position of the earpiece 201 on the user interface, and the display effect of the user interface is as shown in fig. 2, so that the user may know that the first playing mode is playing through the earpiece 201 according to the first prompt sub-information; when the audio is played through the speaker 301 of the electronic device, the first prompt sub-information may be displayed in an area corresponding to the position of the speaker 301 of the electronic device on the user interface, and the display effect of the user interface is as shown in fig. 3, so that the user may know that the first playing mode is played through the speaker 301 of the electronic device according to the first prompt sub-information; when the audio is played through the peripheral speaker 401, the first prompt sub-information may be displayed in an area corresponding to the position where the peripheral speaker 401 is displayed on the user interface, and the display effect of the user interface is as shown in fig. 4, so that the user may know that the first playing mode is the playing through the peripheral speaker 401 according to the first prompt sub-information.
When the first prompt sub-message is displayed on the user interface of the electronic device, the electronic device may receive a first input of a user, and switch the first play mode in response to the first input. In an embodiment, the first input is an input operation of the user to the first prompt sub-message, such as clicking, sliding, and the like, and the application is not limited specifically. Assuming that the first playing mode is playing through an external speaker, and the user wants to switch the playing mode to playing through a speaker of the electronic device, as an implementation, the user may press the first prompt sub-message for a long time and slide the first prompt sub-message to a position near the speaker of the electronic device, and after detecting a sliding gesture of the user, the electronic device may switch the playing mode from earphone playing to speaker playing of the electronic device, so as to implement fast switching of the playing mode, and an operation diagram of the user on a user interface is shown in fig. 5. Certainly, as another embodiment, a user may input a click operation in a region corresponding to a position of a speaker of the electronic device on the user interface, and after the electronic device detects the click operation of the user, the playback mode is switched from the headphone playback to the speaker playback of the electronic device, so that the playback mode is switched quickly.
After switching the playing mode to the target playing mode, the electronic device may display a second prompt message at the target location, where the second prompt message may be the same as the first prompt sub-message or different from the first prompt sub-message, and the application is not limited specifically. The target position is a position on the user interface which is matched with the playing position of the target playing mode.
In addition, under the condition that the user interface of the electronic device displays the first prompt sub-message or the second prompt message, the user can execute other input operations based on the first prompt sub-message or the second prompt message, so as to realize the turning on or off of the audio playing function of the matched playing mode and the adjustment of the output volume of the matched playing mode. In an embodiment, assuming that the electronic device is playing audio using the peripheral speaker, the user may click the first prompt sub-message corresponding to the peripheral speaker to close the playing function of the peripheral speaker, and when the user clicks the first prompt sub-message corresponding to the peripheral speaker again, the playing function of the peripheral speaker may be opened. In another embodiment, assuming that the electronic device is playing audio using the peripheral speaker, the user may further click the first prompt sub-message corresponding to the peripheral speaker, and display a volume progress bar on the electronic device, at this time, the user may slide the volume progress bar left and right, or slide up and down, to adjust the volume of the peripheral speaker, and a display effect diagram of the user interface is shown in fig. 6.
In this embodiment, by displaying the first prompt sub-information on the electronic device, the user can know the first playing mode of the audio, so that the user can switch the playing mode of the audio according to the first prompt information, thereby improving the switching efficiency of the audio playing mode.
Further, the step 102 of displaying the prompt information according to the first playing mode includes:
and if the audio played in the first playing mode is a call audio, displaying second prompting sub-information under the condition that the electronic equipment meets the preset condition.
The preset condition is a necessary condition for the electronic device to trigger and display the second prompting sub-message, and includes but is not limited to a first playing mode, a blocking condition of a receiver, a mode of answering a call audio, a mode of receiving a call audio of a local user, and the like. The preset condition may be set by a user according to an actual situation, or may be set by default when the electronic device leaves a factory, which is not specifically limited in the present application. The second prompt sub-message is used to indicate prompt information of the first playing mode that is not the optimal playing mode, and may be in a prompt form such as an icon and a text, which is not specifically limited in this application.
Of course, when the electronic device meets the preset condition, the prompt voice can be output through the playing position corresponding to the first playing mode, and the user is reminded to use the optimal playing mode through the prompt voice.
It should be noted that, this step may be executed before the step of displaying the first prompt sub-information matching the playing position of the first playing mode, may also be executed after the step of displaying the first prompt sub-information matching the playing position of the first playing mode, and may also be executed simultaneously with the step of displaying the first prompt sub-information matching the playing position of the first playing mode, which is not limited in this application.
In this embodiment, when the electronic device detects that the electronic device is currently in a call state and detects that the electronic device meets the preset condition, the second prompt sub-information may be displayed on the user interface to remind the user that the currently used playing mode is not the optimal playing mode, so that the user can adjust the playing mode in time.
In an application example, the preset condition includes:
the first playing mode is playing through a receiver, and the receiver of the electronic equipment is not shielded;
or the first playing mode is playing through a receiver, the receiver of the electronic equipment is shielded, and a non-touch screen mode is adopted to answer call audio;
or the first playing mode is that the audio is not played through the receiver, the receiver of the electronic equipment is shielded, and the microphone of the electronic equipment receives the audio.
The electronic equipment can analyze the use state of the electronic equipment according to the first audio playing mode, the shielding condition of the receiver, the mode of answering the call audio and the mode of receiving the call audio of the local user, so that whether the electronic equipment meets the preset condition currently is judged. The shielding condition of the receiver can monitor the distance between the receiver and the shielding object according to a distance sensor of the electronic equipment, and when the distance is smaller than a preset threshold value, the receiver is considered to be shielded; certainly, the user gesture can also be obtained according to other sensing devices, when the user gesture is detected to be an answering gesture, the earphone is considered to be shielded, or the light intensity is obtained through a preset photosensitive device near the earphone, and when the light intensity is detected to be smaller than a preset threshold value, the earphone is considered to be shielded. The mode of answering the call audio includes but is not limited to a touch screen mode, a mode of pressing a physical key of the electronic device, a mode of pressing a physical key of a peripheral device and the like. The manner of receiving the call audio of the local user includes, but is not limited to, a manner through a microphone of the electronic device, a manner through an external microphone, and the like. When the method for receiving the call audio of the local user is determined, the electronic device may compare the volume of the audio received by the microphone of the electronic device with the volume of the audio received by the external microphone, and when the volume difference between the audio received by the microphone of the electronic device and the audio received by the external microphone is greater than a preset threshold, it indicates that the positions of the microphone of the electronic device and the external microphone are different, and the microphone with the higher volume is the microphone for the user to make a call.
Specifically, referring to fig. 7, fig. 7 is a schematic flowchart of the process of triggering and displaying the second prompt sub-message. As shown in fig. 7, when the electronic device satisfies the condition: the first playing mode is played through the earphone, and when the earphone is not shielded, the fact that the earphone of the electronic equipment is being used for playing the call audio currently is indicated, but the user does not actually use the earphone to answer the call audio, but other used playing modes answer the call audio, at the moment, the electronic equipment can display the second prompting sub-information on the user interface, and the user is prompted to play the call audio through the earphone through the second prompting sub-information.
When the electronic device satisfies the condition: the first playing mode is playing through the earphone, the earphone of the electronic equipment is shielded, and when the non-touch screen mode is adopted to answer the call audio, the user does not use the electronic equipment to answer the call audio, but the call audio is received through the peripheral, that is, the user will use the peripheral to make a call, while the earpiece of the electronic device is occluded at this time, this may not be due to the user using the earpiece to listen to the call audio, but is occluded by other objects, such as a scene where the electronic device is placed in the user's pocket, and, therefore, in this case, since the first playing mode is playing through the handset, but the user does not actually use the handset to listen to the call audio, at this time, the electronic device can display the second prompting sub-information on the user interface, and remind the user to play the call audio through the earphone through the second prompting sub-information.
When the electronic device satisfies the condition: the first playing mode is not played through the earphone, the earphone of the electronic equipment is shielded, and when the microphone of the electronic equipment receives audio, the fact that the user uses the microphone of the electronic equipment to input the call audio of the local user and uses the earphone to answer the call audio of the other party is indicated.
In this embodiment, the electronic device can judge the use state, and when the electronic device meets the preset condition, the second prompt sub-information is displayed, so that the optimal playing mode is prompted, and a user can directly switch to the optimal playing mode when switching the playing mode, so that the switching efficiency of the playing mode is improved.
Further, in the above step, if the audio played in the first playing mode is a call audio, after the electronic device displays the second prompt sub-information when the electronic device meets the preset condition, the method further includes:
receiving a second input for a second prompt sub-message;
and in response to the second input, controlling a microphone of the electronic equipment or a peripheral microphone connected with the electronic equipment to receive call audio of the local user.
The second input may be any input based on the second prompting sub-information by the user, such as voice input, clicking and sliding operations on the second prompting sub-information, and the like, and the application is not particularly limited. In an embodiment, the electronic device may control a microphone of the electronic device or a peripheral microphone to receive call audio of the local user after detecting the second input. In an embodiment, in the case that the electronic device displays the second prompting sub-information, the electronic device may receive a voice instruction of the user in real time, and if the received voice instruction is "start a bluetooth microphone", the bluetooth microphone may be started by the voice instruction to receive call audio of the local user, and the bluetooth microphone may be turned off at the same time.
As another embodiment, in a case that the electronic device displays the second prompting sub-information, the electronic device may receive, in real time, an input operation of the user on the second prompting sub-information, such as a click operation, a slide operation, and the like, and after the input operation of the user on the second prompting sub-information is detected, a microphone icon is displayed on a user interface of the electronic device, where a display effect diagram of the user interface is shown in fig. 8. At this time, the user may click the microphone icon to turn on or turn off the microphone corresponding to the microphone icon.
In this embodiment, the microphone of the electronic device or the peripheral microphone may be controlled through the second input, so that a user can switch the playing mode of the audio and flexibly turn on the microphone of the corresponding device, thereby implementing the operation of inputting and outputting the audio by different devices.
Further, in step 101, when the electronic device is in the audio playing state, after the first playing mode of the electronic device for playing the audio is acquired, the method further includes:
if the audio played in the first playing mode is a call audio, receiving a third input;
if the first playing mode is single-channel playing, responding to a third input, mixing the conversation audio with the media file audio, playing the audio obtained after mixing through the single channel in the first playing mode, and determining the media file audio according to the third input; alternatively, the first and second electrodes may be,
and if the first playing mode is dual-channel playing, responding to the third input, and respectively playing the conversation audio and the media file audio through the dual-channel in the first playing mode.
The third input may be any input of the user to the electronic device, such as voice input, clicking and sliding on a user interface, and the like, and the application is not limited in particular.
If the audio played in the first playing mode is a call audio, the electronic device may receive a third input, open a certain media file through the third input, and play the media file audio and the call audio according to the number of the sound channels corresponding to the first playing mode.
In an embodiment, the third input may be a click operation of a microphone icon of the user interface by the user, and a display effect diagram of the user interface is shown in fig. 9. After double-clicking the microphone icon, the user may select a media file to be opened on the user interface, where the media file may be a media file in a local storage of the electronic device or a media file in an application program, and the application is not particularly limited. After the audio playing file is opened, the audio stream transmission schematic diagram of the call audio and the media file audio is shown in fig. 10, the electronic device may respectively input the audio streams of the call audio and the media file audio into different sound channels of a preset playing program, and determine whether the call audio and the media file audio need to be mixed according to the number of the sound channels of the first playing mode, if it is detected that the first playing mode is mono playing, the call audio and the media file audio need to be mixed, and the mixed audio is output through the mono channel of the first playing mode; if the first playing mode is detected to be dual-channel playing, the conversation audio and the media file audio are directly played respectively through the first playing mode as dual channels without mixing the conversation audio and the media file audio. Therefore, when the first playing mode is dual-channel playing, the conversation audio and the media file audio can be played through different channels, mutual interference of the two audios is avoided, and the use experience of a user is improved.
In an embodiment, when the electronic device simultaneously plays the call audio and the media file audio, the electronic device may further display a control on the user interface, so that the user may control the playing state of the media file audio through the control. The control controls include, but are not limited to, controls for performing operations such as back, forward, pause, stop, mute, etc. on the audio of the media file. In one embodiment, the display effect of the user interface is as shown in fig. 11, and the plurality of control controls correspond to a plurality of numbers on the dial one to one respectively. For example, a control for controlling the audio back of the media file corresponds to the number 1 on the dial plate, the control can enable the audio of the media file to back for a preset time length, and if the audio of the media file exceeds the starting point of the audio playing of the media file, the audio of the media file is not played from the beginning; the control for controlling the audio pause playing of the media file corresponds to the number 2 on the dial plate, and the audio pause playing of the media file can be realized through the control; the control used for controlling the audio advance of the media file corresponds to the number 3 on the dial plate, the control can enable the audio of the media file to advance for a preset time, and if the audio of the media file exceeds the end point of the audio playing of the media file, the audio is stopped to be played; the control for controlling the audio of the media file to stop playing corresponds to the number 4 on the dial plate, and the audio of the media file can stop playing through the control; the control for controlling the audio muting of the media file corresponds to the number 5 on the dial plate, and the audio of the media file can be muted and played through the control. Of course, the above examples are only for illustration, and in the implementation process, the number, the type, and the position of the control may be set according to actual needs, and the application is not particularly limited.
In an embodiment, when the electronic device simultaneously plays the call audio and the media file audio, the electronic device may further monitor the audio input by the microphone, and when the electronic device monitors that the microphone has the audio input, the electronic device may reduce the volume of the media file audio to a preset volume, for example, reduce the volume of the media file audio by 50%, 60%, or 70%, and so on.
It should be noted that, in the method for switching an audio playing mode provided in the embodiment of the present application, the execution main body may be a switching device of an audio playing mode, or a control module in the switching device of an audio playing mode, configured to execute the method for switching an audio playing mode. In the embodiment of the present application, a method for switching an audio playing mode performed by a switching device of an audio playing mode is taken as an example, and the switching device of an audio playing mode provided in the embodiment of the present application is described.
Referring to fig. 12, fig. 12 is a schematic structural diagram of a switching device for audio playing modes according to an embodiment of the present application. As shown in fig. 12, the apparatus 1200 for switching audio playback modes includes:
an obtaining module 1201, configured to obtain a first playing mode for audio playing by an electronic device when the electronic device is in an audio playing state;
a first display module 1202, configured to display a first prompt message according to a first playing mode;
a first receiving module 1203, configured to receive a first input to the electronic device based on the first prompt information;
the switching module 1204 is configured to switch, in response to the first input, the playing mode of the electronic device from the first playing mode to a target playing mode.
Further, the first display module 1202 includes:
the first display sub-module is used for displaying first prompt sub-information matched with the playing position of the first playing mode;
the first receiving module 1203 includes:
the first receiving submodule is used for receiving first input of the electronic equipment based on the first prompting sub-information;
the apparatus 1200 for switching audio playing modes further comprises:
and the second display module is used for displaying second prompt information at a target position of a user interface of the electronic equipment, wherein the target position is matched with the playing position of the target playing mode.
Further, the first display module 1202 further includes:
and the second display sub-module is used for displaying second prompt sub-information under the condition that the electronic equipment meets the preset condition if the audio played in the first playing mode is the call audio.
Further, the first display module 1202 further includes:
the first receiving submodule is used for receiving second input aiming at second prompting sub-information;
and the second receiving submodule is used for responding to a second input and controlling a microphone of the electronic equipment or a peripheral microphone connected with the electronic equipment to receive call audio of a local user.
Further, the apparatus 1200 for switching audio playing modes further includes:
the second receiving module is used for receiving a third input if the audio played in the first playing mode is a call audio;
the first playing module is used for responding to a third input if the first playing mode is single-channel playing, mixing the conversation audio with the media file audio, playing the audio obtained after mixing through the single channel in the first playing mode, and determining the media file audio according to the third input; alternatively, the first and second electrodes may be,
and the second playing module is used for responding to the third input and respectively playing the conversation audio and the media file audio through the double channels in the first playing mode if the first playing mode is the double-channel playing.
Through the switching device 1200 for the audio playing modes, the first prompt information can be displayed according to the first playing mode, the current playing mode of the audio can be known, a user can switch the playing mode of the audio according to the first prompt information, and the switching efficiency of the audio playing mode is improved.
The device 1200 for switching the audio playing mode in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The switching device of the audio playing mode in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The switching device for audio playing modes provided in this embodiment of the application can implement each process implemented by the method embodiments of fig. 1 to fig. 11, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 13, an electronic device 1300 is further provided in an embodiment of the present application, and includes a processor 1301, a memory 1302, and a program or an instruction stored in the memory 1302 and executable on the processor 1301, where the program or the instruction is executed by the processor 1301 to implement each process of the embodiment of the audio playing mode switching method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 14 is a schematic hardware structure diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1400 includes, but is not limited to: radio unit 1401, network module 1402, audio output unit 1403, input unit 1404, sensor 1405, display unit 1406, user input unit 1407, interface unit 1408, memory 1409, and processor 1410.
Those skilled in the art will appreciate that the electronic device 1400 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1410 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 14 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The processor 1410 is configured to acquire a first playing mode of audio playing performed by the electronic device when the electronic device is in an audio playing state;
a display unit 1406, configured to display the first prompt information according to the first playing mode;
a user input unit 1407 for receiving a first input to the electronic device based on the first prompt information;
the processor 1410 is further configured to switch the playing mode of the electronic device from the first playing mode to the target playing mode in response to the first input.
Further, the display unit 1406 is further configured to display a first prompt sub-message matched with the playing position of the first playing mode;
the user input unit 1407, further configured to receive a first input to the electronic device based on the first prompting sub-information;
the display unit 1406 is further configured to display the second prompt message at a target position of the user interface of the electronic device, where the target position matches with the playing position of the target playing mode.
Further, the display unit 1406 is further configured to display a second prompt sub-message when the electronic device meets the preset condition if the audio played in the first playing manner is a call audio.
Further, the user input unit 1407 is further configured to receive a second input for a second prompting sub-information;
the processor 1410 is further configured to control a microphone of the electronic device or a peripheral microphone connected to the electronic device to receive call audio of the local user in response to the second input.
Further, the user input unit 1407 is further configured to receive a third input if the audio played in the first playing mode is a call audio;
the processor 1410 is further configured to respond to a third input if the first playing mode is mono playing, mix the call audio with the media file audio, and play the audio obtained after mixing through the mono in the first playing mode, where the media file audio is determined according to the third input; alternatively, the first and second electrodes may be,
and if the first playing mode is dual-channel playing, responding to the third input, and respectively playing the conversation audio and the media file audio through the dual-channel in the first playing mode.
Through the electronic device 1400, the user can display the first prompt information according to the first playing mode to know the current playing mode of the audio, so that the user can switch the playing mode of the audio according to the first prompt information, and the switching efficiency of the audio playing mode is improved.
It should be understood that in the embodiment of the present application, the input Unit 1404 may include a Graphics Processing Unit (GPU) 14041 and a microphone 14042, and the Graphics processor 14041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1407 includes a touch panel 14071 and other input devices 14072. Touch panel 14071, also referred to as a touch screen. The touch panel 14071 may include two parts of a touch detection device and a touch controller. Other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1409 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 1410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1410.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the audio playing mode switching method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, such as Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, etc.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the embodiment of the method for switching an audio playing mode, and the same technical effect can be achieved, and is not described herein again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods of the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A method for switching audio playing modes is characterized by comprising the following steps:
under the condition that the electronic equipment is in an audio playing state, acquiring a first playing mode of audio playing of the electronic equipment;
displaying first prompt information according to the first playing mode;
receiving a first input to the electronic equipment based on the first prompt message;
and responding to the first input, and switching the playing mode of the electronic equipment from the first playing mode to a target playing mode.
2. The method according to claim 1, wherein the displaying a first prompt message according to the first playback mode comprises:
displaying first prompt sub-information matched with the playing position of the first playing mode;
the receiving of the first input to the electronic device based on the first prompt message includes:
receiving a first input to the electronic equipment based on the first prompting sub-information;
after the switching the playing mode of the electronic device from the first playing mode to the target playing mode, the method further includes:
and displaying second prompt information at a target position of a user interface of the electronic equipment, wherein the target position is matched with the playing position of the target playing mode.
3. The method according to claim 1, wherein the displaying a first prompt message according to the first playback mode comprises:
and if the audio played in the first playing mode is a call audio, displaying second prompting sub-information under the condition that the electronic equipment meets a preset condition.
4. The method according to claim 3, wherein if the audio played in the first playing mode is a call audio, and if the electronic device meets a preset condition, after displaying a second prompt sub-message, the method further comprises:
receiving a second input for the second prompt sub-information;
and responding to the second input, controlling a microphone of the electronic equipment or a peripheral microphone connected with the electronic equipment to receive call audio of a local user.
5. The method according to claim 1, wherein after acquiring the first playing mode of the electronic device for playing the audio when the electronic device is in the audio playing state, the method further comprises:
if the audio played in the first playing mode is a call audio, receiving a third input;
if the first playing mode is mono playing, responding to the third input, mixing the call audio and the media file audio, and playing the audio obtained after mixing through the mono in the first playing mode, wherein the media file audio is determined according to the third input; alternatively, the first and second electrodes may be,
and if the first playing mode is dual-channel playing, responding to the third input, and respectively playing the call audio and the media file audio through dual channels in the first playing mode.
6. An apparatus for switching audio playing modes, the apparatus comprising:
the electronic equipment comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a first playing mode of audio playing of the electronic equipment under the condition that the electronic equipment is in an audio playing state;
the first display module is used for displaying first prompt information according to the first playing mode;
the first receiving module is used for receiving first input to the electronic equipment based on the first prompt message;
and the switching module is used for responding to the first input and switching the playing mode of the electronic equipment from the first playing mode to a target playing mode.
7. The apparatus of claim 6, wherein the first display module comprises:
the first display sub-module is used for displaying first prompt sub-information matched with the playing position of the first playing mode;
the first receiving module includes:
the first receiving submodule is used for receiving first input of the electronic equipment based on the first prompting sub-information;
the device further comprises:
and the second display module is used for displaying second prompt information at a target position of a user interface of the electronic equipment, wherein the target position is matched with the playing position of the target playing mode.
8. The apparatus of claim 6, wherein the first display module further comprises:
and the second display sub-module is used for displaying second prompt sub-information under the condition that the electronic equipment meets the preset condition if the audio played in the first playing mode is a call audio.
9. The apparatus of claim 8, wherein the first display module further comprises:
the first receiving submodule is used for receiving second input aiming at the second prompting sub-information;
and the second receiving submodule is used for responding to the second input and controlling a microphone of the electronic equipment or a peripheral microphone connected with the electronic equipment to receive the call audio of the local user.
10. The apparatus of claim 6, further comprising:
the second receiving module is used for receiving a third input if the audio played in the first playing mode is a call audio;
a first playing module, configured to respond to the third input if the first playing mode is mono playing, mix the call audio with a media file audio, and play the audio obtained after mixing through the mono in the first playing mode, where the media file audio is determined according to the third input; alternatively, the first and second electrodes may be,
and the second playing module is used for responding to the third input and respectively playing the conversation audio and the media file audio through the double channels in the first playing mode if the first playing mode is the double-channel playing.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method for switching audio playback modes according to any one of claims 1 to 5.
12. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method for switching audio playback modes according to any one of claims 1 to 5.
CN202110089561.3A 2021-01-22 2021-01-22 Audio playing mode switching method and device, electronic equipment and storage medium Pending CN112764710A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110089561.3A CN112764710A (en) 2021-01-22 2021-01-22 Audio playing mode switching method and device, electronic equipment and storage medium
PCT/CN2022/072495 WO2022156662A1 (en) 2021-01-22 2022-01-18 Method and apparatus for switching audio playing mode, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110089561.3A CN112764710A (en) 2021-01-22 2021-01-22 Audio playing mode switching method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112764710A true CN112764710A (en) 2021-05-07

Family

ID=75706681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110089561.3A Pending CN112764710A (en) 2021-01-22 2021-01-22 Audio playing mode switching method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112764710A (en)
WO (1) WO2022156662A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125150A (en) * 2021-10-18 2022-03-01 珠海格力电器股份有限公司 Sound playing method, device, terminal and storage medium
WO2022156662A1 (en) * 2021-01-22 2022-07-28 维沃移动通信有限公司 Method and apparatus for switching audio playing mode, and electronic device and storage medium
CN117492689A (en) * 2023-12-28 2024-02-02 荣耀终端有限公司 Audio processing method and electronic equipment
CN117492689B (en) * 2023-12-28 2024-04-19 荣耀终端有限公司 Audio processing method and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117809492A (en) * 2024-02-29 2024-04-02 吉林交通职业技术学院 English heel-reading device for English teaching

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459717A (en) * 2007-12-11 2009-06-17 英华达(上海)电子有限公司 Wireless terminal and method for implementing multi-channel multiplexing
CN103593127A (en) * 2013-11-25 2014-02-19 华为终端有限公司 Method for selecting audio output devices and terminal
CN104869207A (en) * 2015-05-12 2015-08-26 广东欧珀移动通信有限公司 Volume adjusting method and mobile terminal
CN106888327A (en) * 2017-02-28 2017-06-23 北京小米移动软件有限公司 Speech playing method and device
CN108683798A (en) * 2018-04-19 2018-10-19 维沃移动通信有限公司 A kind of sound output control method and mobile terminal
CN110764730A (en) * 2018-07-25 2020-02-07 杭州海康威视数字技术股份有限公司 Method and device for playing audio data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445739B (en) * 2018-09-30 2020-05-19 Oppo广东移动通信有限公司 Audio playing method and device, electronic equipment and computer readable medium
CN112764710A (en) * 2021-01-22 2021-05-07 维沃移动通信有限公司 Audio playing mode switching method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459717A (en) * 2007-12-11 2009-06-17 英华达(上海)电子有限公司 Wireless terminal and method for implementing multi-channel multiplexing
CN103593127A (en) * 2013-11-25 2014-02-19 华为终端有限公司 Method for selecting audio output devices and terminal
CN104869207A (en) * 2015-05-12 2015-08-26 广东欧珀移动通信有限公司 Volume adjusting method and mobile terminal
CN106888327A (en) * 2017-02-28 2017-06-23 北京小米移动软件有限公司 Speech playing method and device
CN108683798A (en) * 2018-04-19 2018-10-19 维沃移动通信有限公司 A kind of sound output control method and mobile terminal
CN110764730A (en) * 2018-07-25 2020-02-07 杭州海康威视数字技术股份有限公司 Method and device for playing audio data

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022156662A1 (en) * 2021-01-22 2022-07-28 维沃移动通信有限公司 Method and apparatus for switching audio playing mode, and electronic device and storage medium
CN114125150A (en) * 2021-10-18 2022-03-01 珠海格力电器股份有限公司 Sound playing method, device, terminal and storage medium
CN117492689A (en) * 2023-12-28 2024-02-02 荣耀终端有限公司 Audio processing method and electronic equipment
CN117492689B (en) * 2023-12-28 2024-04-19 荣耀终端有限公司 Audio processing method and electronic equipment

Also Published As

Publication number Publication date
WO2022156662A1 (en) 2022-07-28

Similar Documents

Publication Publication Date Title
CN111913628B (en) Sharing method and device and electronic equipment
WO2018113675A1 (en) Video playing method and terminal device
EP3429172B1 (en) Method, system and graphical user interface for making conference calls
CN112764710A (en) Audio playing mode switching method and device, electronic equipment and storage medium
CN105094957A (en) Video conversation window control method and apparatus
US10073672B2 (en) Method, system, and computer storage medium for voice control of a split-screen terminal
JP2017527928A (en) Text input method, apparatus, program, and recording medium
CN111381746B (en) Parameter adjusting method, device and storage medium
CN107229411B (en) Method and device for controlling split screen state
CN106095401A (en) Informing message treatment method and device
CN112751971A (en) Voice playing method and device and electronic equipment
US11743355B2 (en) Prompting method and device
TW201427371A (en) Handheld electronic apparatus and incoming call processing method thereof
CN112394901A (en) Audio output mode adjusting method and device and electronic equipment
KR101513609B1 (en) Apparatus and method for playing music in mobile terminal
CN113271376B (en) Communication control method, electronic equipment and earphone
CN112702468A (en) Call control method and device
CN105119984B (en) Send the method and device of file
CN111182362A (en) Video control processing method and device
CN108874450B (en) Method and device for waking up voice assistant
CN113992786A (en) Audio playing method and device
CN112134997B (en) Audio channel state control method and device, electronic equipment and readable storage medium
CN111556271B (en) Video call method, video call device and electronic equipment
CN114416015A (en) Audio adjusting method and device, electronic equipment and readable storage medium
CN106791077B (en) Method and device for processing multimedia messages in instant messaging software

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