WO2022156662A1 - Method and apparatus for switching audio playing mode, and electronic device and storage medium - Google Patents

Method and apparatus for switching audio playing mode, and electronic device and storage medium Download PDF

Info

Publication number
WO2022156662A1
WO2022156662A1 PCT/CN2022/072495 CN2022072495W WO2022156662A1 WO 2022156662 A1 WO2022156662 A1 WO 2022156662A1 CN 2022072495 W CN2022072495 W CN 2022072495W WO 2022156662 A1 WO2022156662 A1 WO 2022156662A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
electronic device
playback
playback mode
mode
Prior art date
Application number
PCT/CN2022/072495
Other languages
French (fr)
Chinese (zh)
Inventor
吴永圣
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022156662A1 publication Critical patent/WO2022156662A1/en

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

Definitions

  • the present application belongs to the field of computer technology, and specifically relates to a method, device, electronic device and storage medium for switching audio playback modes.
  • the functions of electronic devices are constantly improving.
  • the audio can be played through a built-in earpiece or speaker on the electronic device, or the audio can be output to a Bluetooth device for playback. Since there are many audio playback modes of electronic devices, different audio playback modes are used in different situations. For example, the electronic device is using the Bluetooth device to play audio. If the electronic device receives an incoming call and the user forgets to switch the audio playback mode, the audio of the incoming call will be output to the Bluetooth device, causing inconvenience to the user. That is to say, when the existing electronic device has multiple audio playback modes, the switching efficiency of the audio playback modes is low.
  • the purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for switching audio playback modes, which can solve the problem that the switching efficiency of audio playback modes is low when the existing electronic equipment has multiple audio playback modes. The problem.
  • an embodiment of the present application provides a method for switching an audio playback mode, the method comprising:
  • the electronic device In the case that the electronic device is in an audio playback state, acquiring a first playback mode for the electronic device to perform audio playback;
  • the play mode of the electronic device is switched from the first play mode to the target play mode.
  • an embodiment of the present application provides a device for switching an audio playback mode, the device comprising:
  • an acquisition module configured to acquire a first playback mode for audio playback by the electronic device when the electronic device is in an audio playback state
  • a first display module configured to display first prompt information according to the first playback mode
  • a first receiving module configured to receive a first input to the electronic device based on the first prompt information
  • a switching module configured to switch the play mode of the electronic device from the first play mode to the target play mode in response to the first input.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, 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, and implement the first aspect the method described.
  • a computer program product is provided, the computer program product is stored in a non-volatile storage medium, the computer program product is executed by at least one processor to implement the method of the first aspect.
  • a first playback mode for audio playback by the electronic device is obtained; according to the first playback mode, first prompt information is displayed; based on the first playback mode A prompt message, receiving a first input to the electronic device; in response to the first input, switching the playback mode of the electronic device from the first playback mode to the target playback mode.
  • the user can know the current playback mode of the audio based on the first prompt information displayed on the electronic device, which facilitates the user to switch the audio playback mode according to the first prompt information, and improves the switching efficiency of the audio playback mode.
  • FIG. 1 is a flowchart of a method for switching audio playback modes provided by an embodiment of the present application
  • FIG. 2 is one of schematic diagrams of display effects of a user interface provided by an embodiment of the present application
  • FIG. 3 is the second schematic diagram of the display effect of the user interface provided by the embodiment of the present application.
  • FIG. 4 is the third schematic diagram of the display effect of the user interface provided by the embodiment of the present application.
  • FIG. 5 is a schematic diagram of an operation of a user on a user interface provided by an embodiment of the present application.
  • FIG. 6 is the fourth schematic diagram of the display effect of the user interface provided by the embodiment of the present application.
  • FIG. 7 is a schematic flowchart of triggering and displaying second prompt sub-information provided by an embodiment of the present application.
  • FIG. 8 is a fifth schematic diagram of a display effect of a user interface provided by an embodiment of the present application.
  • FIG. 9 is the sixth schematic diagram of the display effect of the user interface provided by the embodiment of the present application.
  • FIG. 10 is a schematic diagram of audio stream transmission of call audio and media file audio provided by an embodiment of the present application.
  • FIG. 11 is the seventh schematic diagram of the display effect of the user interface provided by the embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an apparatus for switching an audio playback mode provided by an embodiment of the present application.
  • FIG. 13 is one of the structural diagrams of an electronic device provided by an embodiment of the application.
  • FIG. 14 is a second structural diagram of an electronic device provided by an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • FIG. 1 is a flowchart of a method for switching an audio playback mode according to an embodiment of the present application. As shown in Figure 1, the method for switching the audio playback mode specifically includes the following steps:
  • Step 101 When the electronic device is in an audio playing state, acquire a first playing mode for the electronic device to play audio.
  • the above-mentioned electronic equipment may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (personal digital assistant, referred to as PDA), a mobile Internet Device (Mobile Internet Device, MID) or Wearable Device, etc.
  • the above audio may be call audio, media file audio, or system notification prompt audio of an electronic device, etc., which is not specifically limited in this application.
  • the above-mentioned first playback mode can be played through the earpiece or speaker that comes with the electronic device, or it can be played through a peripheral speaker. and many more.
  • Step 102 Display first prompt information according to the first playback mode.
  • the above-mentioned first prompt information may be prompt information in the form of icons, text, and the like.
  • the first prompt information may be a prompt for the first play mode, such as a text prompt of "the first play mode is the earpiece play” and the like.
  • the first prompt information may also be prompt information made when it is determined based on the first play mode that the user does not use the optimal play mode, such as a text prompt of "Please switch to the earpiece to play audio".
  • the first prompt information is used to prompt the user for the first playback mode of the electronic device, and the first prompt information can also be used to prompt the user whether the first playback mode of the electronic device is the optimal playback mode.
  • the mode can be understood as the playback mode with the best audio playback effect, or the playback mode with the greatest possibility to meet the user's needs.
  • the manner of displaying the first prompt information may be to display the first prompt information at a preset position of the user interface of the electronic device, or to display the first prompt information in a corresponding area of the user interface according to the playback position corresponding to the first playback mode The first prompt message.
  • a prompt icon is displayed in the area corresponding to the position of the earpiece on the user interface; when the first playback mode is to play through the speaker of the electronic device, the user interface and the electronic device's A prompt icon is displayed in the area corresponding to the position of the speaker; when the first playback mode is a peripheral speaker, a prompt icon is displayed in the area corresponding to the position where the peripheral icon is displayed on the user interface, and so on.
  • the user when the first prompt information is used to prompt the user of the first playback mode of the electronic device, the user can learn the first playback mode of the audio based on the first prompt information displayed on the electronic device, which is convenient for the user
  • the audio playing mode is switched according to the first prompt information, so as to improve the switching efficiency of the audio playing mode.
  • the user when the first prompt information is used to prompt the user whether the first play mode of the electronic device is the optimal play mode, the user can know whether the first play mode is the best play mode based on the first prompt information (the optimal playback method can be understood as the correct playback method), for example, during the call, the peripheral device is used to play the call audio, but in fact, the user wants to use the earpiece that comes with the electronic device to play the call audio.
  • the first prompt information it can be known that the first playback mode is a non-optimal playback mode (a non-optimal playback mode can be understood as an incorrect playback mode), and based on the first prompt information, the user can switch the playback mode in time, Protect call privacy.
  • Step 103 Receive a first input to the electronic device based on the first prompt information.
  • the above-mentioned first input may be any input operation performed by the user on the electronic device, such as clicking, sliding, shaking, long pressing, sending a voice command, etc., which is not specifically limited in this application.
  • Step 104 in response to the first input, switch the playback mode of the electronic device from the first playback mode to the target playback mode.
  • the electronic device may switch the first playback mode after receiving the first input. For example, when the first input is a voice command input by the user, the electronic device can switch the first playback mode based on the voice command; when the first input is a shaking operation of the electronic device by the user, the electronic device can perform the shaking operation according to the shaking operation. The shaking direction and number of times, determine whether it is consistent with the preset shaking direction and times, and if it is consistent, switch the first playback mode; when the first input is the user's input operation on physical buttons or controls, you can Whether the input operation is consistent with the preset input operation is determined according to the input operation, and if the input operation is consistent, the first playback mode is switched and so on.
  • the user can know the first playback mode of playing audio, which is convenient for the user to switch the first audio playback mode according to the first prompt information, thereby improving the audio playback. mode switching efficiency.
  • the first prompt information is displayed, including:
  • step 103 based on the first prompt information, receiving the first input to the electronic device, including:
  • step 104 after switching the playback mode of the electronic device from the first playback mode to the target playback mode, the method further includes:
  • the second prompt information is displayed at the target position of the user interface of the electronic device, wherein the target position matches the target playback mode.
  • the above-mentioned first prompt sub-information may be used to indicate the playback position of the first playback mode, and may be in the form of text, icon, or the like.
  • the display position of the first prompt sub-information matches the playback position of the first playback mode, that is, the display position of the first prompt sub-information is in the area corresponding to the playback position of the first playback mode.
  • the playback mode includes playing through the earpiece 201 , playing through the speaker 301 of the electronic device, and playing through the external speaker 401 , when the audio is played through the earpiece 201 , it can be displayed in the area corresponding to the position of the earpiece 201 on the user interface.
  • the first prompt sub-information, the display effect of the user interface is shown in Figure 2, so that the user can understand that the first playback mode is to play through the earpiece 201 according to the first prompt sub-information; when playing audio through the speaker 301 of the electronic device, you can
  • the first prompt sub-information is displayed in the 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 shown in FIG.
  • the speaker 301 of the electronic device plays; when the audio is played through the peripheral speaker 401, the first prompt sub-information can be displayed on the user interface in the area corresponding to the position where the peripheral speaker 401 is displayed, and the display effect of the user interface is shown in Figure 4 In this way, the user can know that the first playback mode is playback through the peripheral speaker 401 according to the first prompt sub-information.
  • the electronic device may receive the first input from the user, and switch the first playback mode in response to the first input.
  • the above-mentioned first input is an input operation of the user on the first prompt sub-message, such as clicking, sliding, etc., which is not specifically limited in this application.
  • the user can long press the first prompt sub-message and slide it to the electronic device's Near the speaker, after the electronic device detects the user's sliding gesture, it can switch the playback mode from the earpiece playback to the speaker playback of the electronic device, so as to realize the rapid switching of the playback mode.
  • the schematic diagram of the user's operation on the user interface is shown in Figure 5.
  • the user can input a click operation in the area corresponding to the position of the speaker of the electronic device on the user interface, and the electronic device switches the playback mode from the earpiece to the electronic device after detecting the user's click operation.
  • the speaker to play, so as to achieve rapid switching of playback mode.
  • the electronic device may display second prompt information at the target position, where the second prompt information may be the same as the above-mentioned first prompt sub-message, or may be different from the above-mentioned first prompt sub-message , which is not specifically limited in this application.
  • the above target position is a position on the user interface that matches the playback position of the target playback mode.
  • the user interface of the electronic device displays the first prompt sub-message or the second prompt message
  • the user can perform other input operations based on the first prompt sub-message or the second prompt message to achieve matching Enable or disable the audio playback function of the playback mode, and adjust the output volume of the matching playback mode.
  • the user can click the first prompt sub-message corresponding to the peripheral speaker to disable the playback function of the peripheral speaker.
  • the playback function of the external speaker can be enabled.
  • the user can also click the first prompt sub-message corresponding to the peripheral speaker to display a volume progress bar on the electronic device.
  • the volume progress bar slides left and right, or slides up and down to adjust the volume of the external speaker.
  • the schematic diagram of the display effect of the user interface is shown in Figure 6.
  • the user can know the first playback mode of playing the audio, which is convenient for the user to switch the audio playback mode according to the first prompt information, thereby improving the audio playback mode. switching efficiency.
  • step 102 displaying prompt information, including:
  • the second prompt sub-information is displayed in the case that the electronic device satisfies the preset condition.
  • the above preset conditions are necessary conditions for the electronic device to trigger the display of the second prompt sub-message, including but not limited to the first playback mode, the occlusion of the receiver, the mode of answering the call audio, the mode of receiving the call audio of the local user, etc. .
  • the above preset conditions may be set by the user according to the actual situation, or may be set by default when the electronic device leaves the factory, which is not specifically limited in this application.
  • the above-mentioned second prompt sub-message is used for prompt information indicating that the first play mode is not an optimal play mode, and may be in the form of a prompt such as an icon or text, which is not specifically limited in this application.
  • a prompt voice can also be output through the play position corresponding to the first play mode, and the user can be reminded to use the optimal play mode through the prompt voice.
  • this step may be performed before the above-mentioned step of displaying the first prompt sub-information matching the playback position of the first playback mode, or may be performed before the above-mentioned display of the first display sub-information matching the playback position of the first playback mode.
  • the step of prompting sub-information is performed after, and may also be performed simultaneously with the above-mentioned step of displaying the first prompting sub-information matching the playback position of the first playback mode, which is not specifically limited in this application.
  • a second prompt sub-information may be displayed on the user interface to remind the user that the currently used playback mode is not the optimal playback mode , which is convenient for users to adjust the playback mode in time.
  • the above-mentioned preset conditions include:
  • the first playback mode is to play through the earpiece, and the earpiece of the electronic device is not blocked;
  • the first playback mode is to play through the earpiece, the earpiece of the electronic device is blocked, and a non-touch screen mode is used to answer the call audio;
  • the first playback mode is not to play through the earpiece, the earpiece of the electronic device is blocked, and the microphone of the electronic device receives audio.
  • the electronic device can analyze the usage status of the electronic device according to the first playback mode of the audio, the occlusion of the receiver, the mode of answering the call audio, and the mode of receiving the call audio from the local user, so as to determine whether the electronic device currently meets the preset requirements. condition.
  • the distance between the earpiece and the obstruction can be monitored according to the distance sensor of the electronic device, and when the distance is less than the preset threshold, the earpiece is considered to be blocked; of course, the user gesture can also be obtained according to other sensing devices, When it is detected that the user gesture is an answering gesture, it is considered that the earpiece is blocked, or the light intensity is obtained through a preset photosensitive device near the earpiece, and when the detected light intensity is less than a preset threshold, it is considered that the earpiece is blocked.
  • the method of answering the call audio includes, but is not limited to, a touch screen method, a method of pressing a physical button of an electronic device, a method of pressing a physical button 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 of using a microphone of an electronic device, a manner of using a peripheral microphone, and the like.
  • the electronic device can compare the volume of the audio received by its own microphone and the peripheral microphone.
  • the threshold is set, it means that the position of the own microphone and the peripheral microphone are different, and the microphone with the louder volume is the microphone for the user to make a call.
  • FIG. 7 is a schematic flowchart of triggering and displaying the second prompt sub-information.
  • the electronic device when the electronic device satisfies the conditions: the first playback mode is to play through the earpiece, and the earpiece is not blocked, it means that the earpiece of the electronic device is currently being used to play the call audio, but the user does not actually use the earpiece to answer the call audio. , but use other playback methods to answer the call audio.
  • the electronic device can display the second prompt sub-information on the user interface, and remind the user to play the call audio through the receiver through the second prompt sub-information.
  • the first playback mode is to play through the earpiece, the earpiece of the electronic device is blocked, and the non-touch screen mode is used to answer the call audio, it means that the user does not use the electronic device to answer the call audio, but uses the peripheral device to answer the call audio.
  • Answer the call audio that is to say, the user's intention is to use the peripheral device to make a call, although the handset of the electronic device is blocked at this time, it may not be because the user is using the handset to answer the call audio, but by other objects.
  • Occlusion causes, for example, the scenario where the electronic device is placed in the user's pocket.
  • the electronic device can The second prompt sub-information is displayed on the user interface, and the user is reminded to play the call audio through the handset through the second prompt sub-information.
  • the first playback mode is not to play through the earpiece, the earpiece of the electronic device is blocked, and the microphone of the electronic device receives audio, it means that the user is using the microphone of the electronic device to record the audio of the local user's call, and is using The receiver answers the call audio of the other party, but since the first playback method of the audio is not played through the receiver, but played through the external speaker, the user cannot hear the call audio of the other party through the receiver.
  • a second prompt sub-information is displayed on the interface, and the user is reminded to play the call audio through the peripheral speaker through the second prompt sub-information.
  • the electronic device can judge the use state, and when the electronic device meets the preset condition, display the second prompt sub-information, so as to prompt the optimal playback mode, which is convenient for the user to switch the playback mode. Directly switch to the optimal playback mode, thereby improving the switching efficiency of the playback mode.
  • the method further includes:
  • the microphone of the control electronic device or the peripheral microphone connected to the electronic device receives the call audio of the local user.
  • the above-mentioned second input may be any input by the user based on the second prompt sub-information, such as voice input, operations such as clicking and sliding on the second prompt sub-information, etc., which is not specifically limited in this application.
  • the electronic device may control a microphone of the electronic device or a peripheral microphone to receive the call audio of the local user.
  • the electronic device can receive the user's voice command in real time.
  • the Bluetooth microphone is used to receive the call audio of the local user, and the microphone of the electronic device is turned off at the same time.
  • the electronic device when the electronic device displays the second prompt sub-information, the electronic device can receive the user's input operation on the second prompt sub-information in real time, such as a click operation, a sliding operation, etc. 2.
  • a microphone icon is displayed on the user interface of the electronic device, and a schematic diagram of the display effect of the user interface is shown in FIG. 8 .
  • the user can click the microphone icon to turn on or off the microphone corresponding to the microphone icon.
  • the microphone of the electronic device or the peripheral microphone can be controlled through the second input, so that the user can flexibly turn on the microphone on the corresponding device while switching the audio playback mode, thereby enabling different devices to Audio input and output operations.
  • the method when the electronic device is in the audio playback state, after acquiring the first playback mode for the electronic device to perform audio playback, the method further includes:
  • the call audio and the media file audio are mixed, and the mixed audio is played through the monophonic channel in the first playback mode, and the media file audio is based on The third input is OK; or,
  • the call audio and the media file audio are respectively played through the dual-channel in the first playback mode.
  • the above-mentioned third input may be any input of the user to the electronic device, such as voice input, operations such as clicking and sliding on the user interface, etc., which are not specifically limited in this application.
  • the electronic device can receive the third input, open a media file through the third input, and use the third input to open a certain media file, and according to the number of channels corresponding to the first playback mode, the media file audio and The call audio is played.
  • the third input may be a user's click operation on the microphone icon of the user interface, and a schematic diagram of the display effect of the user interface is shown in FIG. 9 .
  • the user can select the media file to be opened on the user interface, wherein the media file can be a media file in the local storage of the electronic device or a media file in an application program, which is not specified in this application. limited.
  • a schematic diagram of the audio stream transmission of the call audio and the media file audio is shown in Figure 10.
  • the electronic device can input the audio streams of the call audio and the media file audio into the preset playback program respectively.
  • the call audio and media file audio need to be mixed. If it is detected that the first playback mode is mono playback, the call audio and media The file audio is mixed, and the mixed audio is output through the monophonic channel of the first playback mode; if it is detected that the first playback mode is dual-channel playback, there is no need to mix the call audio and the media file audio, and the call is directly The audio and the audio of the media file are respectively played in two channels through the first playing mode. In this way, when the first playback mode is two-channel playback, the call audio and the media file audio can be played respectively through different channels to avoid mutual interference between the two audios, thereby improving the user experience.
  • the electronic device may also display a control control on the user interface, so that the user can control the playback state of the audio of the media file through the control control.
  • the control controls include, but are not limited to, controls for performing operations such as backward, forward, pause, stop, and mute on the audio of the media file.
  • the display effect of the user interface is shown in FIG. 11 , and various control controls correspond to the numbers on the dial pad one-to-one.
  • the control control used to control the audio playback of the media file corresponds to the number 1 on the dial. Through this control, the audio of the media file can be reversed by a preset duration.
  • the control control for controlling the audio of the media file to pause and play corresponds to the number 2 on the dial, and the audio of the media file can be paused and played by this control;
  • the control control for controlling the audio of the media file to advance corresponds to the number 3 on the dial, by This control can make the audio of the media file advance for a preset duration, and if it exceeds the end point of the audio playback of the media file, the playback will be stopped;
  • the control control used to control the audio of the media file to stop playing corresponds to the number 4 on the dial, through which the control can be Stops the audio of the media file from playing;
  • the control control for muting the audio of the media file corresponds to the number 5 on the dial, and the audio of the media file can be played muted through this control.
  • the above examples are only for illustration, and in the implementation process, the number, type and position of the control controls can be set according to actual needs,
  • the electronic device when the electronic device plays the audio of the call and the audio of the media file at the same time, the electronic device can also monitor the audio input by the microphone, and when the electronic device detects that the microphone has audio input, the volume of the audio of the media file can be reduced.
  • the volume of the audio of the media file can be reduced.
  • reduce the volume of the audio of the media file by 50%, 60% or 70%, etc.
  • the volume of the audio of the media file can be reduced, so as to ensure that the peer end can hear the audio of the media file. Clear the call audio entered by the user.
  • the main body of execution may be an audio playback mode switching device, or a control for executing the audio playback mode switching method in the audio playback mode switching device. module.
  • the device for switching the audio playing mode provided by the embodiment of the present application is described by taking the method for switching the audio playing mode performed by the device for switching the audio playing mode as an example.
  • FIG. 12 is a schematic structural diagram of an apparatus for switching an audio playback mode according to an embodiment of the present application.
  • the switching device 1200 of the audio playback mode includes:
  • an acquisition module 1201 configured to acquire a first playback mode of the electronic device for audio playback when the electronic device is in an audio playback state
  • the first display module 1202 is configured to display the first prompt information according to the first playback mode
  • the first receiving module 1203 is used to receive the first input to the electronic device based on the first prompt information
  • the switching module 1204 is 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.
  • the first display module 1202 includes:
  • a first display sub-module for displaying first prompt sub-information matching the playback position of the first playback mode
  • the first receiving module 1203 includes:
  • a first receiving sub-module configured to receive a first input to the electronic device based on the first prompting sub-information
  • the device 1200 for switching the audio playback mode further includes:
  • the second display module is configured to display second prompt information at the target position of the user interface of the electronic device, wherein the target position matches the playback position of the target playback mode.
  • the first display module 1202 also includes:
  • the second display sub-module is configured to display the second prompt sub-information under the condition that the electronic device satisfies the preset condition if the audio played in the first playback mode is the call audio.
  • the first display module 1202 also includes:
  • a first receiving sub-module for receiving a second input for the second prompting sub-information
  • the second receiving sub-module is configured to, in response to the second input, control the microphone of the electronic device or the peripheral microphone connected to the electronic device to receive the call audio of the local user.
  • the device 1200 for switching the audio playback mode further includes:
  • a second receiving module configured to receive a third input if the audio played by the first playback mode is a call audio
  • the first playback module is configured to mix the call audio and the media file audio in response to the third input if the first playback mode is mono playback, and obtain the result by mixing the mono playback in the first playback mode.
  • the audio of the media file is determined according to the third input; or,
  • the second playing module is configured to play the call audio and the media file audio respectively through the two-channel in the first playing mode in response to the third input if the first playing mode is two-channel playing.
  • the first prompt information can be displayed according to the first playback mode, and the current audio playback mode can be known, so that the user can switch the audio playback mode according to the first prompt information, thereby improving the audio playback mode. switching efficiency.
  • the device 1200 for switching the audio playback mode in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the device for switching the audio playback 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, which are not specifically limited in the embodiments of the present application.
  • the device for switching an audio playback mode provided by the embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 11 , and to avoid repetition, details are not described here.
  • an embodiment of the present application further provides an electronic device 1300, including a processor 1301, a memory 1302, and a program or instruction stored in the memory 1302 and executable on the processor 1301, the program Or when the instruction is executed by the processor 1301, each process of the above-mentioned embodiment of the audio playback mode switching method can be implemented, and the same technical effect can be achieved. To avoid repetition, details are not described here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 14 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1400 includes but is not limited to: a radio frequency unit 1401, a network module 1402, an audio output unit 1403, an input unit 1404, a sensor 1405, a display unit 1406, a user input unit 1407, an interface unit 1408, a memory 1409, and a processor 1410, etc. part.
  • the electronic device 1400 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 1410 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 14 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 1410 is configured to acquire the first playback mode of the electronic device for audio playback when the electronic device is in an audio playback state;
  • a display unit 1406, configured to display the first prompt information according to the first playback mode
  • a user input unit 1407 configured to receive a first input to the electronic device based on the first prompt information
  • the processor 1410 is further configured to switch the playback mode of the electronic device from the first playback mode to the target playback mode in response to the first input.
  • the display unit 1406 is also used to display the first prompt sub-information matching the playback position of the first playback mode
  • the user input unit 1407 is further configured to receive a first input to the electronic device based on the first prompt sub-information
  • the display unit 1406 is further configured to display second prompt information at a target position of the user interface of the electronic device, where the target position matches the playback position of the target playback mode.
  • the display unit 1406 is further configured to display the second prompt sub-information under the condition that the electronic device satisfies the preset condition if the audio played in the first playback mode is the call audio.
  • the user input unit 1407 is further configured to receive a second input for the second prompt sub-information
  • the processor 1410 is further configured to, in response to the second input, control the microphone of the electronic device or the peripheral microphone connected to the electronic device to receive the call audio of the local user.
  • the user input unit 1407 is further configured to receive a third input if the audio played by the first playback mode is the call audio;
  • the processor 1410 is further configured to mix the call audio and the media file audio in response to the third input if the first playback mode is monaural playback, and obtain the result by mixing the monophonic playback in the first playback mode.
  • the audio of the media file is determined according to the third input; or,
  • the call audio and the media file audio are respectively played through the dual-channel in the first playback mode.
  • the user can display the first prompt information according to the first playing mode, and learn the current playing mode of the audio, which is convenient for the user to switch the playing mode of the audio according to the first prompt information, and improves the switching efficiency of the audio playing mode.
  • the input unit 1404 may include a graphics processor (Graphics Processing Unit, GPU) 14041 and a microphone 14042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 1406 may include a display panel 14061, which 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 .
  • the touch panel 14071 is also called a touch screen.
  • the touch panel 14071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 14072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again.
  • 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 and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1410.
  • the embodiments of the present application also provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the audio playback mode switching method can be achieved, and can achieve The same technical effect, in order to avoid repetition, will not be repeated here.
  • the processor is the processor in the electronic device in the above embodiment.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An 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 used to run a program or an instruction to implement the various processes of the above-mentioned embodiments of the audio playback mode switching method, and can To achieve the same technical effect, in order to avoid repetition, details are not repeated here.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of the various embodiments of the present application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Abstract

Disclosed in the present application are a method and apparatus for switching an audio playing mode, and an electronic device and a storage medium, which belong to the technical field of computers. The method comprises: when an electronic device is in an audio playing state, acquiring a first playing mode of the electronic device playing audio; displaying first prompt information according to the first playing mode; on the basis of the first prompt information, receiving a first input for the electronic device; and in response to the first input, switching the playing mode of the electronic device from the first playing mode to a target playing mode.

Description

音频播放方式的切换方法、装置、电子设备和存储介质Switching method, device, electronic device and storage medium of audio playback mode
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2021年01月22日在中国提交的中国专利申请No.202110089561.3的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202110089561.3 filed in China on Jan. 22, 2021, the entire contents of which are hereby incorporated by reference.
技术领域technical field
本申请属于计算机技术领域,具体涉及一种音频播放方式的切换方法、装置、电子设备和存储介质。The present application belongs to the field of computer technology, and specifically relates to a method, device, electronic device and storage medium for switching audio playback modes.
背景技术Background technique
随着电子设备的发展,电子设备的功能不断完善。在使用电子设备播放音频时,可以通过电子设备上自带的听筒或者扬声器进行播放,也可以将音频输出到蓝牙设备进行播放。由于电子设备的音频播放方式较多,在不同情况下,使用的音频播放方式是不同的。例如,电子设备正在使用蓝牙设备播放音频,若电子设备接收到来电,用户忘记进行音频播放方式切换,则来电音频会输出到蓝牙设备上,给用户的使用造成不便。也就是说,现有电子设备具有多种音频播放方式的情况下,音频播放方式的切换效率较低。With the development of electronic devices, the functions of electronic devices are constantly improving. When using an electronic device to play audio, the audio can be played through a built-in earpiece or speaker on the electronic device, or the audio can be output to a Bluetooth device for playback. Since there are many audio playback modes of electronic devices, different audio playback modes are used in different situations. For example, the electronic device is using the Bluetooth device to play audio. If the electronic device receives an incoming call and the user forgets to switch the audio playback mode, the audio of the incoming call will be output to the Bluetooth device, causing inconvenience to the user. That is to say, when the existing electronic device has multiple audio playback modes, the switching efficiency of the audio playback modes is low.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种音频播放方式的切换方法、装置、电子设备和存储介质,能够解决现有的电子设备具有多种音频播放方式的情况下,音频播放方式的切换效率较低的问题。The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for switching audio playback modes, which can solve the problem that the switching efficiency of audio playback modes is low when the existing electronic equipment has multiple audio playback modes. The problem.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请实施例提供了一种音频播放方式的切换方法,该方法包括:In a first aspect, an embodiment of the present application provides a method for switching an audio playback mode, the method comprising:
在电子设备处于音频播放状态的情况下,获取所述电子设备进行音频播放的第一播放方式;In the case that the electronic device is in an audio playback state, acquiring a first playback mode for the electronic device to perform audio playback;
根据所述第一播放方式,显示第一提示信息;displaying first prompt information according to the first playback mode;
基于所述第一提示信息,接收对所述电子设备的第一输入;Receive a first input to the electronic device based on the first prompt information;
响应于所述第一输入,将所述电子设备的播放方式由所述第一播放方式切换至目标播放方式。In response to the first input, the play mode of the electronic device is switched from the first play mode to the target play mode.
第二方面,本申请实施例提供了一种音频播放方式的切换装置,所述装置包括:In a second aspect, an embodiment of the present application provides a device for switching an audio playback mode, the device comprising:
获取模块,用于在电子设备处于音频播放状态的情况下,获取所述电子设备进行音频播放的第一播放方式;an acquisition module, configured to acquire a first playback mode for audio playback by the electronic device when the electronic device is in an audio playback state;
第一显示模块,用于根据所述第一播放方式,显示第一提示信息;a first display module, configured to display first prompt information according to the first playback mode;
第一接收模块,用于基于所述第一提示信息,接收对所述电子设备的第一输入;a first receiving module, configured to receive a first input to the electronic device based on the first prompt information;
切换模块,用于响应于所述第一输入,将所述电子设备的播放方式由所述第一播放方式切换至目标播放方式。A switching module, configured to switch the play mode of the electronic device from the first play mode to the target play mode in response to the first input.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, 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, and implement the first aspect the method described.
第六方面,提供了一种计算机程序产品,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a sixth aspect, a computer program product is provided, the computer program product is stored in a non-volatile storage medium, the computer program product is executed by at least one processor to implement the method of the first aspect.
在本申请实施例中,在电子设备处于音频播放状态的情况下,获取所述电子设备进行音频播放的第一播放方式;根据所述第一播放方式,显示第一提示信息;基于所述第一提示信息,接收对所述电子设备的第一输入;响应于所述第一输入,将所述电子设备的播放方式由所述第一播放方式切换至目标播放方式。这样,用户可以基于电子设备上显示的第一提示信息,获知音 频当前的播放方式,便于用户根据第一提示信息对音频的播放方式进行切换,提高音频播放方式的切换效率。In the embodiment of the present application, when the electronic device is in an audio playback state, a first playback mode for audio playback by the electronic device is obtained; according to the first playback mode, first prompt information is displayed; based on the first playback mode A prompt message, receiving a first input to the electronic device; in response to the first input, switching the playback mode of the electronic device from the first playback mode to the target playback mode. In this way, the user can know the current playback mode of the audio based on the first prompt information displayed on the electronic device, which facilitates the user to switch the audio playback mode according to the first prompt information, and improves the switching efficiency of the audio playback mode.
附图说明Description of drawings
图1为本申请实施例提供的音频播放方式的切换方法的流程图;1 is a flowchart of a method for switching audio playback modes provided by an embodiment of the present application;
图2为本申请实施例提供的用户界面的显示效果示意图之一;FIG. 2 is one of schematic diagrams of display effects of a user interface provided by an embodiment of the present application;
图3为本申请实施例提供的用户界面的显示效果示意图之二;FIG. 3 is the second schematic diagram of the display effect of the user interface provided by the embodiment of the present application;
图4为本申请实施例提供的用户界面的显示效果示意图之三;FIG. 4 is the third schematic diagram of the display effect of the user interface provided by the embodiment of the present application;
图5为本申请实施例提供的用户在用户界面的操作示意图;FIG. 5 is a schematic diagram of an operation of a user on a user interface provided by an embodiment of the present application;
图6为本申请实施例提供的用户界面的显示效果示意图之四;FIG. 6 is the fourth schematic diagram of the display effect of the user interface provided by the embodiment of the present application;
图7为本申请实施例提供的触发显示第二提示子信息的流程示意图;7 is a schematic flowchart of triggering and displaying second prompt sub-information provided by an embodiment of the present application;
图8为本申请实施例提供的用户界面的显示效果示意图之五;FIG. 8 is a fifth schematic diagram of a display effect of a user interface provided by an embodiment of the present application;
图9为本申请实施例提供的用户界面的显示效果示意图之六;FIG. 9 is the sixth schematic diagram of the display effect of the user interface provided by the embodiment of the present application;
图10为本申请实施例提供的通话音频和媒体文件音频的音频流传递示意图;10 is a schematic diagram of audio stream transmission of call audio and media file audio provided by an embodiment of the present application;
图11为本申请实施例提供的用户界面的显示效果示意图之七;FIG. 11 is the seventh schematic diagram of the display effect of the user interface provided by the embodiment of the present application;
图12为本申请实施例提供的音频播放方式的切换装置的结构示意图;12 is a schematic structural diagram of an apparatus for switching an audio playback mode provided by an embodiment of the present application;
图13为本申请实施例提供的电子设备的结构图之一;13 is one of the structural diagrams of an electronic device provided by an embodiment of the application;
图14为本申请实施例提供的电子设备的结构图之二。FIG. 14 is a second structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类, 并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的音频播放方式的切换方法进行详细地说明。The method for switching the audio playback mode provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
参见图1,图1为本申请实施例提供的音频播放方式的切换方法的流程图。如图1所示,音频播放方式的切换方法,具体包括以下步骤:Referring to FIG. 1 , FIG. 1 is a flowchart of a method for switching an audio playback mode according to an embodiment of the present application. As shown in Figure 1, the method for switching the audio playback mode specifically includes the following steps:
步骤101、在电子设备处于音频播放状态的情况下,获取电子设备进行音频播放的第一播放方式。Step 101: When the electronic device is in an audio playing state, acquire a first playing mode for the electronic device to play audio.
其中,上述电子设备可以为手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。上述音频可以为通话音频,也可以为媒体文件音频,还可以为电子设备的系统通知提示音频等,本申请不做具体限定。上述第一播放方式可以是通过电子设备自带的听筒或者扬声器等进行播放的方式,也可以是通过外设扬声器进行播放的方式,外设扬声器包括但不限于蓝牙耳机的扬声器、蓝牙音响的扬声器等等。Wherein, the above-mentioned electronic equipment may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (personal digital assistant, referred to as PDA), a mobile Internet Device (Mobile Internet Device, MID) or Wearable Device, etc. The above audio may be call audio, media file audio, or system notification prompt audio of an electronic device, etc., which is not specifically limited in this application. The above-mentioned first playback mode can be played through the earpiece or speaker that comes with the electronic device, or it can be played through a peripheral speaker. and many more.
步骤102、根据第一播放方式,显示第一提示信息。Step 102: Display first prompt information according to the first playback mode.
其中,上述第一提示信息可以为图标、文字等形式的提示信息。该第一提示信息可以是对第一播放方式进行提示,如“第一播放方式为听筒播放”的文字提示等。该第一提示信息也可以是基于第一播放方式确定出用户未使用最优播放方式时做出的提示信息,如“请切换至听筒播放音频”的文字提示等。The above-mentioned first prompt information may be prompt information in the form of icons, text, and the like. The first prompt information may be a prompt for the first play mode, such as a text prompt of "the first play mode is the earpiece play" and the like. The first prompt information may also be prompt information made when it is determined based on the first play mode that the user does not use the optimal play mode, such as a text prompt of "Please switch to the earpiece to play audio".
第一提示信息用于向用户提示电子设备的第一播放方式,第一提示信息还可以用于向用户提示电子设备的第一播放方式是否是最优的播放方式,此处的最优的播放方式可以理解为音频播放效果最优的播放方式,或者满足用户需求的可能性最大的播放方式。The first prompt information is used to prompt the user for the first playback mode of the electronic device, and the first prompt information can also be used to prompt the user whether the first playback mode of the electronic device is the optimal playback mode. The mode can be understood as the playback mode with the best audio playback effect, or the playback mode with the greatest possibility to meet the user's needs.
具体地,显示第一提示信息的方式,可以是在电子设备的用户界面的预设位置显示第一提示信息,也可以是根据第一播放方式对应的播放位置,在 用户界面的对应的区域显示第一提示信息。例如,当第一播放方式为通过听筒播放时,在用户界面上与听筒的位置对应的区域显示提示图标;在第一播放方式为通过电子设备的扬声器播放时,在用户界面上与电子设备的扬声器的位置对应的区域显示提示图标;在第一播放方式为外设扬声器的情况下,在用户界面上与显示有外设图标的位置对应的区域显示提示图标等等。Specifically, the manner of displaying the first prompt information may be to display the first prompt information at a preset position of the user interface of the electronic device, or to display the first prompt information in a corresponding area of the user interface according to the playback position corresponding to the first playback mode The first prompt message. For example, when the first playback mode is to play through the earpiece, a prompt icon is displayed in the area corresponding to the position of the earpiece on the user interface; when the first playback mode is to play through the speaker of the electronic device, the user interface and the electronic device's A prompt icon is displayed in the area corresponding to the position of the speaker; when the first playback mode is a peripheral speaker, a prompt icon is displayed in the area corresponding to the position where the peripheral icon is displayed on the user interface, and so on.
作为一种实施方式,第一提示信息用于向用户提示电子设备的第一播放方式的情况下,用户可以基于电子设备上显示的第一提示信息,获知播放音频的第一播放方式,便于用户根据第一提示信息对音频的播放方式进行切换,提高音频播放方式的切换效率。As an embodiment, when the first prompt information is used to prompt the user of the first playback mode of the electronic device, the user can learn the first playback mode of the audio based on the first prompt information displayed on the electronic device, which is convenient for the user The audio playing mode is switched according to the first prompt information, so as to improve the switching efficiency of the audio playing mode.
作为另一种实施方式,第一提示信息用于向用户提示电子设备的第一播放方式是否是最优的播放方式的情况下,用户可以基于第一提示信息获知第一播放方式是否是最优的播放方式(最优的播放方式可理解为正确的播放方式),例如,在通话过程中使用了外设进行通话音频播放,而实际上,用户希望使用电子设备自带的听筒进行通话音频播放,通过第一提示信息可以获知第一播放方式为非最优的播放方式(非最优的播放方式可理解为错误的播放方式),基于第一提示信息,用户可以及时对播放方式进行切换,保护通话隐私。As another embodiment, when the first prompt information is used to prompt the user whether the first play mode of the electronic device is the optimal play mode, the user can know whether the first play mode is the best play mode based on the first prompt information (the optimal playback method can be understood as the correct playback method), for example, during the call, the peripheral device is used to play the call audio, but in fact, the user wants to use the earpiece that comes with the electronic device to play the call audio. , through the first prompt information, it can be known that the first playback mode is a non-optimal playback mode (a non-optimal playback mode can be understood as an incorrect playback mode), and based on the first prompt information, the user can switch the playback mode in time, Protect call privacy.
步骤103、基于第一提示信息,接收对电子设备的第一输入。Step 103: Receive a first input to the electronic device based on the first prompt information.
其中,上述第一输入可以为用户对电子设备进行点击、滑动、摇晃、长按、发送语音指令等任意一种输入操作,本申请不做具体限定。The above-mentioned first input may be any input operation performed by the user on the electronic device, such as clicking, sliding, shaking, long pressing, sending a voice command, etc., which is not specifically limited in this application.
步骤104、响应于第一输入,将电子设备的播放方式由第一播放方式切换至目标播放方式。 Step 104 , in response to the first input, switch the playback mode of the electronic device from the first playback mode to the target playback mode.
具体地,电子设备可以在接收到的第一输入后,对第一播放方式进行切换。例如,当第一输入为用户输入的语音指令时,电子设备可以基于该语音指令对第一播放方式进行切换;当第一输入为用户对电子设备的摇晃操作时,电子设备可以根据该摇晃操作的摇晃方向和次数,判断是否与预设的摇晃方向和次数一致,并在一致的情况下,对第一播放方式进行切换;当第一输入为用户对物理按键或者控件的输入操作时,可以根据该输入操作判断是否与预设的输入操作一致,并在一致的情况下,对第一播放方式进行切换等等。Specifically, the electronic device may switch the first playback mode after receiving the first input. For example, when the first input is a voice command input by the user, the electronic device can switch the first playback mode based on the voice command; when the first input is a shaking operation of the electronic device by the user, the electronic device can perform the shaking operation according to the shaking operation. The shaking direction and number of times, determine whether it is consistent with the preset shaking direction and times, and if it is consistent, switch the first playback mode; when the first input is the user's input operation on physical buttons or controls, you can Whether the input operation is consistent with the preset input operation is determined according to the input operation, and if the input operation is consistent, the first playback mode is switched and so on.
在本实施例中,通过在电子设备上显示的第一提示信息,用户可以获知播放音频的第一播放方式,便于用户根据第一提示信息对音频的第一播放方式进行切换,从而提高音频播放方式的切换效率。In this embodiment, through the first prompt information displayed on the electronic device, the user can know the first playback mode of playing audio, which is convenient for the user to switch the first audio playback mode according to the first prompt information, thereby improving the audio playback. mode switching efficiency.
进一步地,上述步骤102、根据第一播放方式,显示第一提示信息,包括:Further, in the above step 102, according to the first playback mode, the first prompt information is displayed, including:
显示与第一播放方式相匹配的第一提示子信息;displaying the first prompt sub-information matching the first playback mode;
上述步骤103、基于第一提示信息,接收对电子设备的第一输入,包括:In the above step 103, based on the first prompt information, receiving the first input to the electronic device, including:
基于第一提示子信息,接收对电子设备的第一输入;Receive a first input to the electronic device based on the first prompt sub-information;
在上述步骤104、将电子设备的播放方式由第一播放方式切换至目标播放方式之后,还包括:In the above step 104, after switching the playback mode of the electronic device from the first playback mode to the target playback mode, the method further includes:
在电子设备的用户界面的目标位置显示第二提示信息,其中,目标位置与目标播放方式相匹配。The second prompt information is displayed at the target position of the user interface of the electronic device, wherein the target position matches the target playback mode.
具体地,上述第一提示子信息可以用于指示第一播放方式的播放位置,可以为文字、图标等形式。在一实施例中,该第一提示子信息的显示位置与第一播放方式的播放位置相匹配,也就是说,该第一提示子信息的显示位置在第一播放方式的播放位置对应的区域。假设播放方式包括通过听筒201进行播放、通过电子设备的扬声器301进行播放和通过外设扬声器401进行播放,那么在通过听筒201播放音频时,可以在用户界面上与听筒201的位置对应的区域显示第一提示子信息,用户界面的显示效果如图2所示,这样用户可以根据第一提示子信息,了解第一播放方式为通过听筒201播放;在通过电子设备的扬声器301播放音频时,可以在用户界面上与电子设备的扬声器301的位置对应的区域显示第一提示子信息,用户界面的显示效果如图3所示,这样用户可以根据第一提示子信息,了解第一播放方式为通过电子设备的扬声器301播放;在通过外设扬声器401播放音频时,可以在用户界面上与显示有外设扬声器401的位置对应的区域显示第一提示子信息,用户界面的显示效果如图4所示,这样用户可以根据第一提示子信息,了解第一播放方式为通过外设扬声器401播放。Specifically, the above-mentioned first prompt sub-information may be used to indicate the playback position of the first playback mode, and may be in the form of text, icon, or the like. In one embodiment, the display position of the first prompt sub-information matches the playback position of the first playback mode, that is, the display position of the first prompt sub-information is in the area corresponding to the playback position of the first playback mode. . Assuming that the playback mode includes playing through the earpiece 201 , playing through the speaker 301 of the electronic device, and playing through the external speaker 401 , when the audio is played through the earpiece 201 , it can be displayed in the area corresponding to the position of the earpiece 201 on the user interface. The first prompt sub-information, the display effect of the user interface is shown in Figure 2, so that the user can understand that the first playback mode is to play through the earpiece 201 according to the first prompt sub-information; when playing audio through the speaker 301 of the electronic device, you can The first prompt sub-information is displayed in the 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 shown in FIG. The speaker 301 of the electronic device plays; when the audio is played through the peripheral speaker 401, the first prompt sub-information can be displayed on the user interface in the area corresponding to the position where the peripheral speaker 401 is displayed, and the display effect of the user interface is shown in Figure 4 In this way, the user can know that the first playback mode is playback through the peripheral speaker 401 according to the first prompt sub-information.
在电子设备的用户界面显示第一提示子消息时,电子设备可以接收用户的第一输入,并响应于该第一输入,对第一播放方式进行切换。在一实施例 中,上述第一输入为用户对第一提示子消息的输入操作,如点击、滑动等,本申请不做具体限定。假设第一播放方式为通过外设扬声器播放,用户想将播放方式切换至通过电子设备的扬声器播放,作为一种实施方式,用户可以长按第一提示子消息,并将其滑动至电子设备的扬声器附近,电子设备在检测到用户的滑动手势后,可以将播放方式从听筒播放切换至电子设备的扬声器播放,从而实现播放方式的快速切换,用户在用户界面的操作示意图如图5所示。当然,作为另一种实施方式,用户可以在用户界面上与电子设备的扬声器的位置对应的区域输入点击操作,电子设备在检测到用户的点击操作后,将播放方式从听筒播放切换至电子设备的扬声器播放,从而实现播放方式的快速切换。When the user interface of the electronic device displays the first prompt sub-message, the electronic device may receive the first input from the user, and switch the first playback mode in response to the first input. In an embodiment, the above-mentioned first input is an input operation of the user on the first prompt sub-message, such as clicking, sliding, etc., which is not specifically limited in this application. Assuming that the first playback mode is played through the external speaker, and the user wants to switch the playback mode to playback through the speaker of the electronic device, as an implementation, the user can long press the first prompt sub-message and slide it to the electronic device's Near the speaker, after the electronic device detects the user's sliding gesture, it can switch the playback mode from the earpiece playback to the speaker playback of the electronic device, so as to realize the rapid switching of the playback mode. The schematic diagram of the user's operation on the user interface is shown in Figure 5. Of course, as another implementation manner, the user can input a click operation in the area corresponding to the position of the speaker of the electronic device on the user interface, and the electronic device switches the playback mode from the earpiece to the electronic device after detecting the user's click operation. The speaker to play, so as to achieve rapid switching of playback mode.
在将播放方式切换至目标播放方式后,电子设备可以在目标位置显示第二提示信息,其中,该第二提示信息可以与上述第一提示子消息相同,也可以与上述第一提示子消息不同,本申请不做具体限定。上述目标位置为用户界面上与目标播放方式的播放位置相匹配的位置。After switching the playback mode to the target playback mode, the electronic device may display second prompt information at the target position, where the second prompt information may be the same as the above-mentioned first prompt sub-message, or may be different from the above-mentioned first prompt sub-message , which is not specifically limited in this application. The above target position is a position on the user interface that matches the playback position of the target playback mode.
除此之外,在电子设备的用户界面显示第一提示子消息或者第二提示消息的情况下,用户可以基于该第一提示子消息或者第二提示消息执行其他输入操作,以实现对相匹配的播放方式的音频播放功能的开启或者关闭,以及对相匹配的播放方式的输出音量的调节。在一实施例中,假设电子设备正在使用外设扬声器播放音频,用户可以单击外设扬声器对应的第一提示子消息,实现对外设扬声器的播放功能的关闭,当用户再次单击外设扬声器对应的第一提示子消息时,可以实现对外设扬声器的播放功能的开启。在另一实施例中,假设电子设备正在使用外设扬声器播放音频,用户还可以点击外设扬声器对应的第一提示子消息,在电子设备上显示音量进度条,此时,用户可以通过对该音量进度条进行左右滑动,或者上下滑动,实现对外设扬声器的音量调节,用户界面的显示效果示意图如图6所示。In addition, when the user interface of the electronic device displays the first prompt sub-message or the second prompt message, the user can perform other input operations based on the first prompt sub-message or the second prompt message to achieve matching Enable or disable the audio playback function of the playback mode, and adjust the output volume of the matching playback mode. In one embodiment, assuming that the electronic device is using the peripheral speaker to play audio, the user can click the first prompt sub-message corresponding to the peripheral speaker to disable the playback function of the peripheral speaker. When the user clicks the peripheral speaker again When the corresponding first prompt sub-message is used, the playback function of the external speaker can be enabled. In another embodiment, assuming that the electronic device is using a peripheral speaker to play audio, the user can also click the first prompt sub-message corresponding to the peripheral speaker to display a volume progress bar on the electronic device. The volume progress bar slides left and right, or slides up and down to adjust the volume of the external speaker. The schematic diagram of the display effect of the user interface is shown in Figure 6.
在本实施例中,通过在电子设备上显示第一提示子信息,用户可以获知播放音频的第一播放方式,便于用户根据第一提示信息对音频的播放方式进行切换,从而提高音频播放方式的切换效率。In this embodiment, by displaying the first prompt sub-information on the electronic device, the user can know the first playback mode of playing the audio, which is convenient for the user to switch the audio playback mode according to the first prompt information, thereby improving the audio playback mode. switching efficiency.
进一步地,上述步骤102、根据第一播放方式,显示提示信息,包括:Further, in the above step 102, according to the first playback mode, displaying prompt information, including:
若通过第一播放方式进行播放的音频为通话音频,则在电子设备满足预设条件的情况下,显示第二提示子信息。If the audio played by the first playback method is the call audio, the second prompt sub-information is displayed in the case that the electronic device satisfies the preset condition.
其中,上述预设条件为电子设备触发显示第二提示子消息的必要条件,包括但不限于第一播放方式、听筒的遮挡情况、接听通话音频的方式、接收本地用户的通话音频的方式等等。上述预设条件可以由用户根据实际情况进行设置,也可以由电子设备出厂时默认设置,本申请不做具体限定。上述第二提示子消息用于指示第一播放方式非最优播放方式的提示信息,可以为图标、文字等提示形式,本申请不做具体限定。The above preset conditions are necessary conditions for the electronic device to trigger the display of the second prompt sub-message, including but not limited to the first playback mode, the occlusion of the receiver, the mode of answering the call audio, the mode of receiving the call audio of the local user, etc. . The above preset conditions may be set by the user according to the actual situation, or may be set by default when the electronic device leaves the factory, which is not specifically limited in this application. The above-mentioned second prompt sub-message is used for prompt information indicating that the first play mode is not an optimal play mode, and may be in the form of a prompt such as an icon or text, which is not specifically limited in this application.
当然,在电子设备满足预设条件时,还可以通过第一播放方式对应的播放位置输出提示语音,通过提示语音提醒用户使用最优的播放方式。Of course, when the electronic device satisfies the preset conditions, a prompt voice can also be output through the play position corresponding to the first play mode, and the user can be reminded to use the optimal play mode through the prompt voice.
需要说明的是,本步骤可以在上述显示与第一播放方式的播放位置相匹配的第一提示子信息的步骤之前执行,也可以在上述显示与第一播放方式的播放位置相匹配的第一提示子信息的步骤之后执行,还可以与上述显示与第一播放方式的播放位置相匹配的第一提示子信息的步骤同时执行,本申请不做具体限制。It should be noted that this step may be performed before the above-mentioned step of displaying the first prompt sub-information matching the playback position of the first playback mode, or may be performed before the above-mentioned display of the first display sub-information matching the playback position of the first playback mode. The step of prompting sub-information is performed after, and may also be performed simultaneously with the above-mentioned step of displaying the first prompting sub-information matching the playback position of the first playback mode, which is not specifically limited in this application.
在本实施例中,当电子设备检测到当前处于通话状态,且检测到电子设备满足预设条件时,可以在用户界面显示第二提示子信息,提醒用户当前使用的播放方式并非最优播放方式,便于用户及时对播放方式进行调整。In this embodiment, when the electronic device detects that it is currently in a call state and detects that the electronic device satisfies the preset conditions, a second prompt sub-information may be displayed on the user interface to remind the user that the currently used playback mode is not the optimal playback mode , which is convenient for users to adjust the playback mode in time.
在一应用例中,上述预设条件包括:In an application example, the above-mentioned preset conditions include:
第一播放方式为通过听筒播放,且电子设备的听筒未被遮挡;The first playback mode is to play through the earpiece, and the earpiece of the electronic device is not blocked;
或,第一播放方式为通过听筒播放,电子设备的听筒被遮挡,且采用非触屏方式接听通话音频;Or, the first playback mode is to play through the earpiece, the earpiece of the electronic device is blocked, and a non-touch screen mode is used to answer the call audio;
或,第一播放方式为不通过听筒播放,电子设备的听筒被遮挡,且电子设备的麦克风接收音频。Or, the first playback mode is not to play through the earpiece, the earpiece of the electronic device is blocked, and the microphone of the electronic device receives audio.
电子设备可以根据音频的第一播放方式、听筒的遮挡情况、接听通话音频的方式,以及接收本地用户的通话音频的方式,对电子设备的使用状态进行分析,从而判断电子设备当前是否满足预设条件。其中,听筒的遮挡情况可以根据电子设备的距离传感器来监测听筒与遮挡物之间的距离,当距离小于预设阈值时,认为听筒被遮挡;当然,还可以根据其他感应装置来获得用 户手势,当检测到用户手势为接听手势时,认为听筒被遮挡,或者通过听筒附近预设的感光装置来获取光线强度,当检测到光线强度小于预设阈值时,认为听筒被遮挡。接听通话音频的方式包括但不限于触屏方式、按压电子设备的物理按键的方式、按压外设的物理按键的方式等。接收本地用户的通话音频的方式包括但不限于通过电子设备的麦克风的方式、通过外设麦克风的方式等。在确定接收本地用户的通话音频的方式时,可以由电子设备对比自身的麦克风和外设麦克风接收到的音频的音量大小,当自身的麦克风和外设麦克风接收到的音频的音量差值大于预设阈值时,表示自身的麦克风和外设麦克风所处的位置不一样,且音量较大的麦克风为用户进行通话的麦克风。The electronic device can analyze the usage status of the electronic device according to the first playback mode of the audio, the occlusion of the receiver, the mode of answering the call audio, and the mode of receiving the call audio from the local user, so as to determine whether the electronic device currently meets the preset requirements. condition. The distance between the earpiece and the obstruction can be monitored according to the distance sensor of the electronic device, and when the distance is less than the preset threshold, the earpiece is considered to be blocked; of course, the user gesture can also be obtained according to other sensing devices, When it is detected that the user gesture is an answering gesture, it is considered that the earpiece is blocked, or the light intensity is obtained through a preset photosensitive device near the earpiece, and when the detected light intensity is less than a preset threshold, it is considered that the earpiece is blocked. The method of answering the call audio includes, but is not limited to, a touch screen method, a method of pressing a physical button of an electronic device, a method of pressing a physical button 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 of using a microphone of an electronic device, a manner of using a peripheral microphone, and the like. When determining the way to receive the call audio from the local user, the electronic device can compare the volume of the audio received by its own microphone and the peripheral microphone. When the threshold is set, it means that the position of the own microphone and the peripheral microphone are different, and the microphone with the louder volume is the microphone for the user to make a call.
具体地,参见图7,图7为触发显示第二提示子信息的流程示意图。如图7所示,当电子设备满足条件:第一播放方式为通过听筒播放,且听筒未被遮挡时,表示当前正在使用电子设备的听筒播放通话音频,但用户实际并未使用听筒接听通话音频,而是使用的其他播放方式接听通话音频,此时,电子设备可以在用户界面上显示第二提示子信息,通过第二提示子信息提醒用户通过听筒播放通话音频。Specifically, referring to FIG. 7 , FIG. 7 is a schematic flowchart of triggering and displaying the second prompt sub-information. As shown in Figure 7, when the electronic device satisfies the conditions: the first playback mode is to play through the earpiece, and the earpiece is not blocked, it means that the earpiece of the electronic device is currently being used to play the call audio, but the user does not actually use the earpiece to answer the call audio. , but use other playback methods to answer the call audio. At this time, the electronic device can display the second prompt sub-information on the user interface, and remind the user to play the call audio through the receiver through the second prompt sub-information.
当电子设备满足条件:第一播放方式为通过听筒播放,电子设备的听筒被遮挡,且采用非触屏方式接听通话音频时,表示用户并非使用电子设备进行通话音频的接听,而是通过外设进行通话音频的接听,也就是说,用户的意愿是用过外设来进行通话,虽然此时电子设备的听筒被遮挡,可能并非是因为用户正在使用听筒接听通话音频导致,而是被其他物体遮挡导致,如电子设备放置在用户的口袋中的场景,因此,在这种情况下,由于第一播放方式为通过听筒播放,但用户实际并未使用听筒接听通话音频,此时,电子设备可以在用户界面上显示第二提示子信息,通过第二提示子信息提醒用户通过听筒播放通话音频。When the electronic device meets the conditions: the first playback mode is to play through the earpiece, the earpiece of the electronic device is blocked, and the non-touch screen mode is used to answer the call audio, it means that the user does not use the electronic device to answer the call audio, but uses the peripheral device to answer the call audio. Answer the call audio, that is to say, the user's intention is to use the peripheral device to make a call, although the handset of the electronic device is blocked at this time, it may not be because the user is using the handset to answer the call audio, but by other objects. Occlusion causes, for example, the scenario where the electronic device is placed in the user's pocket. Therefore, in this case, since the first playback method is to play through the handset, but the user does not actually use the handset to answer the call audio, at this time, the electronic device can The second prompt sub-information is displayed on the user interface, and the user is reminded to play the call audio through the handset through the second prompt sub-information.
当电子设备满足条件:第一播放方式为不通过听筒播放,电子设备的听筒被遮挡,且电子设备的麦克风接收音频时,表示用户正在使用电子设备的麦克风录入本地用户的通话音频,且正在使用听筒接听对方的通话音频,但由于音频的第一播放方式不是通过听筒播放,而是通过外设扬声器播放,因此,用户通过听筒并不能听到对方的通话音频,此时,电子设备可以在用户 界面上显示第二提示子信息,通过第二提示子信息提醒用户通过外设扬声器播放通话音频。When the electronic device meets the conditions: the first playback mode is not to play through the earpiece, the earpiece of the electronic device is blocked, and the microphone of the electronic device receives audio, it means that the user is using the microphone of the electronic device to record the audio of the local user's call, and is using The receiver answers the call audio of the other party, but since the first playback method of the audio is not played through the receiver, but played through the external speaker, the user cannot hear the call audio of the other party through the receiver. A second prompt sub-information is displayed on the interface, and the user is reminded to play the call audio through the peripheral speaker through the second prompt sub-information.
在本实施例中,电子设备可以对使用状态进行判断,在电子设备满足预设条件时,显示第二提示子信息,以此来对最优播放方式进行提示,方便用户在切换播放方式时,直接切换至最优播放方式,从而提高播放方式的切换效率。In this embodiment, the electronic device can judge the use state, and when the electronic device meets the preset condition, display the second prompt sub-information, so as to prompt the optimal playback mode, which is convenient for the user to switch the playback mode. Directly switch to the optimal playback mode, thereby improving the switching efficiency of the playback mode.
进一步地,在上述步骤、若通过第一播放方式进行播放的音频为通话音频,则在电子设备满足预设条件的情况下,显示第二提示子信息之后,方法还包括:Further, in the above steps, if the audio played by the first playback mode is the call audio, then under the condition that the electronic device satisfies the preset condition, after displaying the second prompt sub-information, the method further includes:
接收针对第二提示子信息的第二输入;receiving a second input for the second prompt sub-information;
响应于第二输入,控制电子设备的麦克风或者与电子设备连接的外设麦克风接收本地用户的通话音频。In response to the second input, the microphone of the control electronic device or the peripheral microphone connected to the electronic device receives the call audio of the local user.
其中,上述第二输入可以为用户基于第二提示子信息的任意输入,如语音输入、对第二提示子信息的点击、滑动等操作等等,本申请不做具体限定。在一实施例中,电子设备在检测到第二输入之后,可以控制电子设备的麦克风或者外设麦克风来接收本地用户的通话音频。作为一种实施方式,在电子设备显示第二提示子信息的情况下,电子设备可以实时接收用户的语音指令,如接收到的语音指令为“启动蓝牙的麦克风”,则可以通过该语音指令启动蓝牙的麦克风来接收本地用户的通话音频,同时关闭电子设备的麦克风。The above-mentioned second input may be any input by the user based on the second prompt sub-information, such as voice input, operations such as clicking and sliding on the second prompt sub-information, etc., which is not specifically limited in this application. In one embodiment, after detecting the second input, the electronic device may control a microphone of the electronic device or a peripheral microphone to receive the call audio of the local user. As an embodiment, when the electronic device displays the second prompt sub-information, the electronic device can receive the user's voice command in real time. The Bluetooth microphone is used to receive the call audio of the local user, and the microphone of the electronic device is turned off at the same time.
作为另一种实施方式,在电子设备显示第二提示子信息的情况下,电子设备可以实时接收用户对第二提示子信息的输入操作,如点击操作、滑动操作等,在检测到用户对第二提示子信息的输入操作后,在电子设备的用户界面显示麦克风图标,用户界面的显示效果示意图如图8所示。此时,用户可以点击该麦克风图标,对麦克风图标对应的麦克风进行开启或者关闭。As another implementation, when the electronic device displays the second prompt sub-information, the electronic device can receive the user's input operation on the second prompt sub-information in real time, such as a click operation, a sliding operation, etc. 2. After the input operation of prompting the sub-information, a microphone icon is displayed on the user interface of the electronic device, and a schematic diagram of the display effect of the user interface is shown in FIG. 8 . At this point, the user can click the microphone icon to turn on or off the microphone corresponding to the microphone icon.
在本实施例中,可以通过第二输入对电子设备的麦克风或者外设麦克风进行控制,从而方便用户在切换音频的播放方式的同时,能够灵活地开启相应设备上的麦克风,进而实现不同设备进行音频的录入和输出操作。In this embodiment, the microphone of the electronic device or the peripheral microphone can be controlled through the second input, so that the user can flexibly turn on the microphone on the corresponding device while switching the audio playback mode, thereby enabling different devices to Audio input and output operations.
进一步地,在上述步骤101、在电子设备处于音频播放状态的情况下,获取电子设备进行音频播放的第一播放方式之后,还包括:Further, in the above step 101, when the electronic device is in the audio playback state, after acquiring the first playback mode for the electronic device to perform audio playback, the method further includes:
若通过第一播放方式进行播放的音频为通话音频,则接收第三输入;If the audio played by the first playback mode is the call audio, receive a third input;
若第一播放方式为单声道播放,则响应于第三输入,将通话音频与媒体文件音频进行混合,并通过第一播放方式中的单声道播放混合后获得的音频,媒体文件音频根据第三输入确定;或者,If the first playback mode is monaural playback, then in response to the third input, the call audio and the media file audio are mixed, and the mixed audio is played through the monophonic channel in the first playback mode, and the media file audio is based on The third input is OK; or,
若第一播放方式为双声道播放,则响应于第三输入,通过第一播放方式中的双声道分别播放通话音频,和媒体文件音频。If the first playback mode is dual-channel playback, in response to the third input, the call audio and the media file audio are respectively played through the dual-channel in the first playback mode.
其中,上述第三输入可以为用户对电子设备的任意输入,如语音输入、对用户界面的点击、滑动等操作等等,本申请不做具体限定。The above-mentioned third input may be any input of the user to the electronic device, such as voice input, operations such as clicking and sliding on the user interface, etc., which are not specifically limited in this application.
若通过第一播放方式进行播放的音频为通话音频时,电子设备可以接收第三输入,通过第三输入打开某一媒体文件,并根据第一播放方式对应的声道数量对该媒体文件音频和通话音频进行播放。If the audio played by the first playback mode is call audio, the electronic device can receive the third input, open a media file through the third input, and use the third input to open a certain media file, and according to the number of channels corresponding to the first playback mode, the media file audio and The call audio is played.
在一实施例中,该第三输入可以为用户对用户界面的麦克风图标的点击操作,用户界面的显示效果示意图如图9所示。用户在双击麦克风图标后,可以在用户界面选择需要打开的媒体文件,其中,该媒体文件可以为电子设备的本地存储器中的媒体文件,也可以为应用程序中的媒体文件,本申请不做具体限定。在打开音频播放文件后,通话音频和媒体文件音频的音频流传递示意图如图10所示,在图10中,电子设备可以将通话音频和媒体文件音频的音频流分别输入至预设播放程序的不同的声道中,并根据第一播放方式的声道数,确定是否需要对通话音频和媒体文件音频进行混合,若检测到第一播放方式为单声道播放,则需要将通话音频和媒体文件音频进行混合,并将混合后的音频通过第一播放方式的单声道输出;若检测到第一播放方式为双声道播放,则无需对通话音频和媒体文件音频进行混合,直接将通话音频和媒体文件音频分别通过第一播放方式为双声道进行播放。这样,在第一播放方式为双声道播放时,可以通过不同的声道分别对通话音频和媒体文件音频进行播放,避免两种音频相互干扰,从而提高用户的使用体验。In one embodiment, the third input may be a user's click operation on the microphone icon of the user interface, and a schematic diagram of the display effect of the user interface is shown in FIG. 9 . After the user double-clicks the microphone icon, the user can select the media file to be opened on the user interface, wherein the media file can be a media file in the local storage of the electronic device or a media file in an application program, which is not specified in this application. limited. After opening the audio playback file, a schematic diagram of the audio stream transmission of the call audio and the media file audio is shown in Figure 10. In Figure 10, the electronic device can input the audio streams of the call audio and the media file audio into the preset playback program respectively. In different channels, and according to the number of channels in the first playback mode, it is determined whether the call audio and media file audio need to be mixed. If it is detected that the first playback mode is mono playback, the call audio and media The file audio is mixed, and the mixed audio is output through the monophonic channel of the first playback mode; if it is detected that the first playback mode is dual-channel playback, there is no need to mix the call audio and the media file audio, and the call is directly The audio and the audio of the media file are respectively played in two channels through the first playing mode. In this way, when the first playback mode is two-channel playback, the call audio and the media file audio can be played respectively through different channels to avoid mutual interference between the two audios, thereby improving the user experience.
在一实施例中,在电子设备同时播放通话音频和媒体文件音频时,电子设备还可以在用户界面显示控制控件,这样,用户可以通过该控制控件对媒体文件音频的播放状态进行控制。其中,该控制控件包括但不限于对媒体文件音频进行后退、前进、暂停、停止、静音等操作的控件。在一实施例中, 用户界面的显示效果如图11所示,多种控制控件分别与拨号盘上的多个数字一一对应。例如,用于控制媒体文件音频后退的控制控件与拨号盘上的数字1对应,通过该控件可以使媒体文件音频后退预设时长,若超过媒体文件音频播放的起始点,则从头不播放;用于控制媒体文件音频暂停播放的控制控件与拨号盘上的数字2对应,通过该控件可以使媒体文件音频暂停播放;用于控制媒体文件音频前进的控制控件与拨号盘上的数字3对应,通过该控件可以使媒体文件音频前进预设时长,若超过媒体文件音频播放的结束点,则停止播放;用于控制媒体文件音频停止播放的控制控件与拨号盘上的数字4对应,通过该控件可以使媒体文件音频停止播放;用于控制媒体文件音频静音的控制控件与拨号盘上的数字5对应,通过该控件可以对媒体文件音频进行静音播放。当然,上述举例只是为了举例说明,在实施过程中,该控制控件的数量、种类和位置,可以根据实际需要进行设置,本申请不做具体限定。In one embodiment, when the electronic device plays the audio of the call and the audio of the media file at the same time, the electronic device may also display a control control on the user interface, so that the user can control the playback state of the audio of the media file through the control control. The control controls include, but are not limited to, controls for performing operations such as backward, forward, pause, stop, and mute on the audio of the media file. In an embodiment, the display effect of the user interface is shown in FIG. 11 , and various control controls correspond to the numbers on the dial pad one-to-one. For example, the control control used to control the audio playback of the media file corresponds to the number 1 on the dial. Through this control, the audio of the media file can be reversed by a preset duration. If it exceeds the starting point of the audio playback of the media file, it will not be played from the beginning; use The control control for controlling the audio of the media file to pause and play corresponds to the number 2 on the dial, and the audio of the media file can be paused and played by this control; the control control for controlling the audio of the media file to advance corresponds to the number 3 on the dial, by This control can make the audio of the media file advance for a preset duration, and if it exceeds the end point of the audio playback of the media file, the playback will be stopped; the control control used to control the audio of the media file to stop playing corresponds to the number 4 on the dial, through which the control can be Stops the audio of the media file from playing; the control control for muting the audio of the media file corresponds to the number 5 on the dial, and the audio of the media file can be played muted through this control. Of course, the above examples are only for illustration, and in the implementation process, the number, type and position of the control controls can be set according to actual needs, which is not specifically limited in this application.
在一实施例中,在电子设备同时播放通话音频和媒体文件音频时,电子设备还可以对麦克风输入的音频进行监测,当电子设备监测到麦克风有音频输入时,可以将媒体文件音频的音量降低至预设音量,例如,将媒体文件音频的音量降低50%、60%或者70%等等,这样,用户在使用麦克风录入通话音频时,可以降低媒体文件音频的音量,从而保证对端可以听清楚用户录入的通话音频。In one embodiment, when the electronic device plays the audio of the call and the audio of the media file at the same time, the electronic device can also monitor the audio input by the microphone, and when the electronic device detects that the microphone has audio input, the volume of the audio of the media file can be reduced. To the preset volume, for example, reduce the volume of the audio of the media file by 50%, 60% or 70%, etc. In this way, when the user uses the microphone to record the audio of the call, the volume of the audio of the media file can be reduced, so as to ensure that the peer end can hear the audio of the media file. Clear the call audio entered by the user.
需要说明的是,本申请实施例提供的音频播放方式的切换方法,执行主体可以为音频播放方式的切换装置,或者该音频播放方式的切换装置中的用于执行音频播放方式的切换方法的控制模块。本申请实施例中以音频播放方式的切换装置执行音频播放方式的切换方法为例,说明本申请实施例提供的音频播放方式的切换装置。It should be noted that, in the audio playback mode switching method provided by the embodiments of the present application, the main body of execution may be an audio playback mode switching device, or a control for executing the audio playback mode switching method in the audio playback mode switching device. module. In the embodiment of the present application, the device for switching the audio playing mode provided by the embodiment of the present application is described by taking the method for switching the audio playing mode performed by the device for switching the audio playing mode as an example.
参见图12,图12为本申请实施例提供的音频播放方式的切换装置的结构示意图。如图12所示,该音频播放方式的切换装置1200,包括:Referring to FIG. 12 , FIG. 12 is a schematic structural diagram of an apparatus for switching an audio playback mode according to an embodiment of the present application. As shown in FIG. 12 , the switching device 1200 of the audio playback mode includes:
获取模块1201,用于在电子设备处于音频播放状态的情况下,获取电子设备进行音频播放的第一播放方式;an acquisition module 1201, configured to acquire a first playback mode of the electronic device for audio playback when the electronic device is in an audio playback state;
第一显示模块1202,用于根据第一播放方式,显示第一提示信息;The first display module 1202 is configured to display the first prompt information according to the first playback mode;
第一接收模块1203,用于基于第一提示信息,接收对电子设备的第一输 入;The first receiving module 1203 is used to receive the first input to the electronic device based on the first prompt information;
切换模块1204,用于响应于第一输入,将电子设备的播放方式由第一播放方式切换至目标播放方式。The switching module 1204 is 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.
进一步地,第一显示模块1202包括:Further, the first display module 1202 includes:
第一显示子模块,用于显示与第一播放方式的播放位置相匹配的第一提示子信息;a first display sub-module for displaying first prompt sub-information matching the playback position of the first playback mode;
第一接收模块1203包括:The first receiving module 1203 includes:
第一接收子模块,用于基于第一提示子信息,接收对电子设备的第一输入;a first receiving sub-module, configured to receive a first input to the electronic device based on the first prompting sub-information;
该音频播放方式的切换装置1200还包括:The device 1200 for switching the audio playback mode further includes:
第二显示模块,用于在电子设备的用户界面的目标位置显示第二提示信息,其中,目标位置与目标播放方式的播放位置相匹配。The second display module is configured to display second prompt information at the target position of the user interface of the electronic device, wherein the target position matches the playback position of the target playback mode.
进一步地,第一显示模块1202还包括:Further, the first display module 1202 also includes:
第二显示子模块,用于若通过第一播放方式进行播放的音频为通话音频,则在电子设备满足预设条件的情况下,显示第二提示子信息。The second display sub-module is configured to display the second prompt sub-information under the condition that the electronic device satisfies the preset condition if the audio played in the first playback mode is the call audio.
进一步地,第一显示模块1202还包括:Further, the first display module 1202 also includes:
第一接收子模块,用于接收针对第二提示子信息的第二输入;a first receiving sub-module for receiving a second input for the second prompting sub-information;
第二接收子模块,用于响应于第二输入,控制电子设备的麦克风或者与电子设备连接的外设麦克风接收本地用户的通话音频。The second receiving sub-module is configured to, in response to the second input, control the microphone of the electronic device or the peripheral microphone connected to the electronic device to receive the call audio of the local user.
进一步地,该音频播放方式的切换装置1200还包括:Further, the device 1200 for switching the audio playback mode further includes:
第二接收模块,用于若通过第一播放方式进行播放的音频为通话音频,则接收第三输入;a second receiving module, configured to receive a third input if the audio played by the first playback mode is a call audio;
第一播放模块,用于若第一播放方式为单声道播放,则响应于第三输入,将通话音频与媒体文件音频进行混合,并通过第一播放方式中的单声道播放混合后获得的音频,媒体文件音频根据第三输入确定;或者,The first playback module is configured to mix the call audio and the media file audio in response to the third input if the first playback mode is mono playback, and obtain the result by mixing the mono playback in the first playback mode. The audio of the media file is determined according to the third input; or,
第二播放模块,用于若第一播放方式为双声道播放,则响应于第三输入,通过第一播放方式中的双声道分别播放通话音频和媒体文件音频。The second playing module is configured to play the call audio and the media file audio respectively through the two-channel in the first playing mode in response to the third input if the first playing mode is two-channel playing.
通过该音频播放方式的切换装置1200,可以根据第一播放方式显示第一提示信息,获知音频当前的播放方式,便于用户可以根据第一提示信息对音 频的播放方式进行切换,提高音频播放方式的切换效率。Through the audio playback mode switching device 1200, the first prompt information can be displayed according to the first playback mode, and the current audio playback mode can be known, so that the user can switch the audio playback mode according to the first prompt information, thereby improving the audio playback mode. switching efficiency.
本申请实施例中的音频播放方式的切换装置1200可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The device 1200 for switching the audio playback mode in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的音频播放方式的切换装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The device for switching the audio playback 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, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的音频播放方式的切换装置能够实现图1至图11的方法实施例实现的各个过程,为避免重复,这里不再赘述。The device for switching an audio playback mode provided by the embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 11 , and to avoid repetition, details are not described here.
可选的,如图13所示,本申请实施例还提供一种电子设备1300,包括处理器1301,存储器1302,存储在存储器1302上并可在处理器1301上运行的程序或指令,该程序或指令被处理器1301执行时实现上述音频播放方式的切换方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 13, an embodiment of the present application further provides an electronic device 1300, including a processor 1301, a memory 1302, and a program or instruction stored in the memory 1302 and executable on the processor 1301, the program Or when the instruction is executed by the processor 1301, each process of the above-mentioned embodiment of the audio playback mode switching method can be implemented, and the same technical effect can be achieved. To avoid repetition, details are not described here.
需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图14为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 14 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备1400包括但不限于:射频单元1401、网络模块1402、音频输出单元1403、输入单元1404、传感器1405、显示单元1406、用户输入单元1407、接口单元1408、存储器1409、以及处理器1410等部件。The electronic device 1400 includes but is not limited to: a radio frequency unit 1401, a network module 1402, an audio output unit 1403, an input unit 1404, a sensor 1405, a display unit 1406, a user input unit 1407, an interface unit 1408, a memory 1409, and a processor 1410, etc. part.
本领域技术人员可以理解,电子设备1400还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图14中示 出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1400 may also include a power supply (such as a battery) for supplying power to various components, and the power supply may be logically connected to the processor 1410 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. consumption management and other functions. The structure of the electronic device shown in FIG. 14 does not constitute a limitation on the electronic device. The electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
其中,处理器1410,用于在电子设备处于音频播放状态的情况下,获取电子设备进行音频播放的第一播放方式;Wherein, the processor 1410 is configured to acquire the first playback mode of the electronic device for audio playback when the electronic device is in an audio playback state;
显示单元1406,用于根据第一播放方式,显示第一提示信息;a display unit 1406, configured to display the first prompt information according to the first playback mode;
用户输入单元1407,用于基于第一提示信息,接收对电子设备的第一输入;a user input unit 1407, configured to receive a first input to the electronic device based on the first prompt information;
处理器1410,还用于响应于第一输入,将电子设备的播放方式由第一播放方式切换至目标播放方式。The processor 1410 is further configured to switch the playback mode of the electronic device from the first playback mode to the target playback mode in response to the first input.
进一步地,显示单元1406,还用于显示与第一播放方式的播放位置相匹配的第一提示子信息;Further, the display unit 1406 is also used to display the first prompt sub-information matching the playback position of the first playback mode;
用户输入单元1407,还用于基于第一提示子信息,接收对电子设备的第一输入;The user input unit 1407 is further configured to receive a first input to the electronic device based on the first prompt sub-information;
显示单元1406,还用于在电子设备的用户界面的目标位置显示第二提示信息,其中,目标位置与目标播放方式的播放位置相匹配。The display unit 1406 is further configured to display second prompt information at a target position of the user interface of the electronic device, where the target position matches the playback position of the target playback mode.
进一步地,显示单元1406,还用于若通过第一播放方式进行播放的音频为通话音频,则在电子设备满足预设条件的情况下,显示第二提示子信息。Further, the display unit 1406 is further configured to display the second prompt sub-information under the condition that the electronic device satisfies the preset condition if the audio played in the first playback mode is the call audio.
进一步地,用户输入单元1407,还用于接收针对第二提示子信息的第二输入;Further, the user input unit 1407 is further configured to receive a second input for the second prompt sub-information;
处理器1410,还用于响应于第二输入,控制电子设备的麦克风或者与电子设备连接的外设麦克风接收本地用户的通话音频。The processor 1410 is further configured to, in response to the second input, control the microphone of the electronic device or the peripheral microphone connected to the electronic device to receive the call audio of the local user.
进一步地,用户输入单元1407,还用于若通过第一播放方式进行播放的音频为通话音频,则接收第三输入;Further, the user input unit 1407 is further configured to receive a third input if the audio played by the first playback mode is the call audio;
处理器1410,还用于若第一播放方式为单声道播放,则响应于第三输入,将通话音频与媒体文件音频进行混合,并通过第一播放方式中的单声道播放混合后获得的音频,媒体文件音频根据第三输入确定;或者,The processor 1410 is further configured to mix the call audio and the media file audio in response to the third input if the first playback mode is monaural playback, and obtain the result by mixing the monophonic playback in the first playback mode. The audio of the media file is determined according to the third input; or,
若第一播放方式为双声道播放,则响应于第三输入,通过第一播放方式中的双声道分别播放通话音频,和媒体文件音频。If the first playback mode is dual-channel playback, in response to the third input, the call audio and the media file audio are respectively played through the dual-channel in the first playback mode.
通过电子设备1400,用户可以根据第一播放方式显示第一提示信息,获 知音频当前的播放方式,便于用户可以根据第一提示信息对音频的播放方式进行切换,提高音频播放方式的切换效率。Through the electronic device 1400, the user can display the first prompt information according to the first playing mode, and learn the current playing mode of the audio, which is convenient for the user to switch the playing mode of the audio according to the first prompt information, and improves the switching efficiency of the audio playing mode.
应理解的是,本申请实施例中,输入单元1404可以包括图形处理器(Graphics Processing Unit,GPU)14041和麦克风14042,图形处理器14041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1406可包括显示面板14061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板14061。用户输入单元1407包括触控面板14071以及其他输入设备14072。触控面板14071,也称为触摸屏。触控面板14071可包括触摸检测装置和触摸控制器两个部分。其他输入设备14072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1409可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1410中。It should be understood that, in this embodiment of the present application, the input unit 1404 may include a graphics processor (Graphics Processing Unit, GPU) 14041 and a microphone 14042. Such as camera) to obtain still pictures or video image data for processing. The display unit 1406 may include a display panel 14061, which 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 . The touch panel 14071 is also called a touch screen. The touch panel 14071 may include two parts, a touch detection device and a touch controller. Other input devices 14072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again. 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 and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1410.
本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述音频播放方式的切换方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application also provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the audio playback mode switching method can be achieved, and can achieve The same technical effect, in order to avoid repetition, will not be repeated here.
其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现上述音频播放方式的切换方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An 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 used to run a program or an instruction to implement the various processes of the above-mentioned embodiments of the audio playback mode switching method, and can To achieve the same technical effect, in order to avoid repetition, details are not repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或 者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of the various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (14)

  1. 一种音频播放方式的切换方法,所述方法包括:A method for switching an audio playback mode, the method comprising:
    在电子设备处于音频播放状态的情况下,获取所述电子设备进行音频播放的第一播放方式;In the case that the electronic device is in an audio playback state, acquiring a first playback mode for the electronic device to perform audio playback;
    根据所述第一播放方式,显示第一提示信息;displaying first prompt information according to the first playback mode;
    基于所述第一提示信息,接收对所述电子设备的第一输入;Receive a first input to the electronic device based on the first prompt information;
    响应于所述第一输入,将所述电子设备的播放方式由所述第一播放方式切换至目标播放方式。In response to the first input, the play mode of the electronic device is switched from the first play mode to the target play mode.
  2. 根据权利要求1所述的方法,其中,所述根据所述第一播放方式,显示第一提示信息,包括:The method according to claim 1, wherein the displaying the first prompt information according to the first playback mode comprises:
    显示与所述第一播放方式的播放位置相匹配的第一提示子信息;displaying the first prompt sub-information matching the playback position of the first playback mode;
    所述基于所述第一提示信息,接收对所述电子设备的第一输入,包括:The receiving, based on the first prompt information, the first input to the electronic device includes:
    基于所述第一提示子信息,接收对所述电子设备的第一输入;receiving a first input to the electronic device based on the first prompt sub-information;
    在所述将所述电子设备的播放方式由所述第一播放方式切换至目标播放方式之后,还包括:After the switching of the playing mode of the electronic device from the first playing mode to the target playing mode, the method further includes:
    在所述电子设备的用户界面的目标位置显示第二提示信息,其中,所述目标位置与所述目标播放方式的播放位置相匹配。Second prompt information is displayed at a target position of the user interface of the electronic device, wherein the target position matches the playback position of the target playback mode.
  3. 根据权利要求1所述的方法,其中,所述根据所述第一播放方式,显示第一提示信息,包括:The method according to claim 1, wherein the displaying the first prompt information according to the first playback mode comprises:
    若通过所述第一播放方式进行播放的音频为通话音频,则在所述电子设备满足预设条件的情况下,显示第二提示子信息。If the audio played by the first playback mode is the call audio, the second prompt sub-information is displayed under the condition that the electronic device satisfies the preset condition.
  4. 根据权利要求3所述的方法,其中,在所述若通过所述第一播放方式进行播放的音频为通话音频,则在所述电子设备满足预设条件的情况下,显示第二提示子信息之后,所述方法还包括:The method according to claim 3, wherein, if the audio played by the first playback mode is a call audio, and the electronic device satisfies a preset condition, a second prompt sub-information is displayed Afterwards, the method further includes:
    接收针对所述第二提示子信息的第二输入;receiving a second input for the second prompt sub-information;
    响应于所述第二输入,控制所述电子设备的麦克风或者与所述电子设备 连接的外设麦克风接收本地用户的通话音频。In response to the second input, the microphone of the electronic device or a peripheral microphone connected to the electronic device is controlled to receive the audio of the local user's call.
  5. 根据权利要求1所述的方法,其中,所述在电子设备处于音频播放状态的情况下,获取所述电子设备进行音频播放的第一播放方式之后,还包括:The method according to claim 1, wherein, when the electronic device is in an audio playback state, after acquiring the first playback mode for audio playback by the electronic device, the method further comprises:
    若通过所述第一播放方式进行播放的音频为通话音频,则接收第三输入;If the audio played by the first playback mode is call audio, receiving a third input;
    若所述第一播放方式为单声道播放,则响应于所述第三输入,将所述通话音频与媒体文件音频进行混合,并通过所述第一播放方式中的单声道播放所述混合后获得的音频,所述媒体文件音频根据所述第三输入确定;或者,If the first playback mode is monaural playback, in response to the third input, mix the call audio with the media file audio, and play the monophonic playback in the first playback mode The audio obtained after mixing, the audio of the media file is determined according to the third input; or,
    若所述第一播放方式为双声道播放,则响应于所述第三输入,通过所述第一播放方式中的双声道分别播放所述通话音频和所述媒体文件音频。If the first playback mode is binaural playback, in response to the third input, the call audio and the media file audio are played respectively through the binaural channels in the first playback mode.
  6. 一种音频播放方式的切换装置,所述装置包括:An audio playback mode switching device, the device includes:
    获取模块,用于在电子设备处于音频播放状态的情况下,获取所述电子设备进行音频播放的第一播放方式;an acquisition module, configured to acquire a first playback mode for audio playback by the electronic device when the electronic device is in an audio playback state;
    第一显示模块,用于根据所述第一播放方式,显示第一提示信息;a first display module, configured to display first prompt information according to the first playback mode;
    第一接收模块,用于基于所述第一提示信息,接收对所述电子设备的第一输入;a first receiving module, configured to receive a first input to the electronic device based on the first prompt information;
    切换模块,用于响应于所述第一输入,将所述电子设备的播放方式由所述第一播放方式切换至目标播放方式。A switching module, configured to switch the play mode of the electronic device from the first play mode to the target play mode in response to the first input.
  7. 根据权利要求6所述的装置,其中,所述第一显示模块包括:The apparatus of claim 6, wherein the first display module comprises:
    第一显示子模块,用于显示与所述第一播放方式的播放位置相匹配的第一提示子信息;a first display sub-module for displaying first prompt sub-information matching the playback position of the first playback mode;
    所述第一接收模块包括:The first receiving module includes:
    第一接收子模块,用于基于所述第一提示子信息,接收对所述电子设备的第一输入;a first receiving sub-module, configured to receive a first input to the electronic device based on the first prompting sub-information;
    所述装置还包括:The device also includes:
    第二显示模块,用于在所述电子设备的用户界面的目标位置显示第二提示信息,其中,所述目标位置与所述目标播放方式的播放位置相匹配。The second display module is configured to display second prompt information at a target position of the user interface of the electronic device, wherein the target position matches the playback position of the target playback mode.
  8. 根据权利要求6所述的装置,其中,所述第一显示模块还包括:The apparatus of claim 6, wherein the first display module further comprises:
    第二显示子模块,用于若通过所述第一播放方式进行播放的音频为通话音频,则在所述电子设备满足预设条件的情况下,显示第二提示子信息。The second display sub-module is configured to display the second prompt sub-information if the audio played by the first playback mode is the call audio, and the electronic device satisfies the preset condition.
  9. 根据权利要求8所述的装置,其中,所述第一显示模块还包括:The apparatus of claim 8, wherein the first display module further comprises:
    第一接收子模块,用于接收针对所述第二提示子信息的第二输入;a first receiving sub-module, configured to receive a second input for the second prompting sub-information;
    第二接收子模块,用于响应于所述第二输入,控制所述电子设备的麦克风或者与所述电子设备连接的外设麦克风接收本地用户的通话音频。The second receiving sub-module is configured to, in response to the second input, control the microphone of the electronic device or a peripheral microphone connected to the electronic device to receive the call audio of the local user.
  10. 根据权利要求6所述的装置,其中,所述装置还包括:The apparatus of claim 6, wherein the apparatus further comprises:
    第二接收模块,用于若通过所述第一播放方式进行播放的音频为通话音频,则接收第三输入;a second receiving module, configured to receive a third input if the audio played by the first playback mode is a call audio;
    第一播放模块,用于若所述第一播放方式为单声道播放,则响应于所述第三输入,将所述通话音频与媒体文件音频进行混合,并通过所述第一播放方式中的单声道播放所述混合后获得的音频,所述媒体文件音频根据所述第三输入确定;或者,The first playback module is configured to mix the call audio with the media file audio in response to the third input if the first playback mode is mono playback, and pass the audio in the first playback mode. The audio obtained after the mixing is played in a monophonic channel, and the audio of the media file is determined according to the third input; or,
    第二播放模块,用于若所述第一播放方式为双声道播放,则响应于所述第三输入,通过所述第一播放方式中的双声道分别播放所述通话音频和所述媒体文件音频。A second playing module, configured to play the call audio and the said audio through the two channels in the first playing mode in response to the third input, respectively, if the first playing mode is two-channel playing. Media file audio.
  11. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,其中,所述程序或指令被所述处理器执行时实现如权利要求1-5任一项所述的音频播放方式的切换方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, wherein the program or instruction is executed by the processor to achieve as claimed in claim 1 -5 any one of the steps of the method for switching audio playback modes.
  12. 一种可读存储介质,所述可读存储介质上存储程序或指令,其中,所述程序或指令被处理器执行时实现如权利要求1-5任一项所述的音频播放方式的切换方法的步骤。A readable storage medium on which a program or an instruction is stored, wherein, when the program or instruction is executed by a processor, the method for switching an audio playback mode according to any one of claims 1-5 is implemented A step of.
  13. 一种芯片,包括处理器和通信接口,其中,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-5任一项所述的音频播放方式的切换方法的步骤。A chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to implement the audio playback method according to any one of claims 1-5 The steps of the switching method.
  14. 一种计算机程序产品,其中,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如权利要 求1-5任一项所述的音频播放方式的切换方法的步骤。A computer program product, wherein the computer program product is stored in a non-volatile storage medium, the computer program product being executed by at least one processor to implement the audio according to any of claims 1-5 The steps of the switching method of the playback mode.
PCT/CN2022/072495 2021-01-22 2022-01-18 Method and apparatus for switching audio playing mode, and electronic device and storage medium WO2022156662A1 (en)

Applications Claiming Priority (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
CN202110089561.3 2021-01-22

Publications (1)

Publication Number Publication Date
WO2022156662A1 true WO2022156662A1 (en) 2022-07-28

Family

ID=75706681

Family Applications (1)

Application Number Title Priority Date Filing Date
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

Country Status (2)

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

Cited By (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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764710A (en) * 2021-01-22 2021-05-07 维沃移动通信有限公司 Audio playing mode switching method and device, electronic equipment and storage medium
CN114125150A (en) * 2021-10-18 2022-03-01 珠海格力电器股份有限公司 Sound playing method, device, terminal and storage medium

Citations (5)

* 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
CN109445739A (en) * 2018-09-30 2019-03-08 Oppo广东移动通信有限公司 Audio frequency playing method, device, electronic equipment and computer-readable medium
CN110764730A (en) * 2018-07-25 2020-02-07 杭州海康威视数字技术股份有限公司 Method and device for playing audio data
CN112764710A (en) * 2021-01-22 2021-05-07 维沃移动通信有限公司 Audio playing mode switching method and device, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869207B (en) * 2015-05-12 2018-01-23 广东欧珀移动通信有限公司 The adjusting method and mobile terminal of a kind of volume
CN106888327B (en) * 2017-02-28 2020-11-20 北京小米移动软件有限公司 Voice playing method and device
CN108683798B (en) * 2018-04-19 2021-04-23 维沃移动通信有限公司 Sound output control method and mobile terminal

Patent Citations (5)

* 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
CN110764730A (en) * 2018-07-25 2020-02-07 杭州海康威视数字技术股份有限公司 Method and device for playing audio data
CN109445739A (en) * 2018-09-30 2019-03-08 Oppo广东移动通信有限公司 Audio frequency playing method, 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

Cited By (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

Also Published As

Publication number Publication date
CN112764710A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
WO2022156662A1 (en) Method and apparatus for switching audio playing mode, and electronic device and storage medium
EP3575950B1 (en) Terminal control method, device and computer readable storage medium
US8839129B2 (en) User interface for a communication device
US10754544B2 (en) Method, device and system for manipulating presentation content of screen transmission
WO2021104271A1 (en) Control method, stylus, and electronic assembly
KR20230007517A (en) Sharing Methods, Sharing Devices and Electronic Devices
TW201027418A (en) Method, apparatus, and computer program product for providing a dynamic slider interface
KR20160098965A (en) Method and apparatus for switching display mode
US20120262388A1 (en) Mobile device and method for controlling mobile device
CN105159559A (en) Mobile terminal control method and mobile terminal
TWI566568B (en) Handheld electronic apparatus and incoming call processing method thereof
CN109324846B (en) Application display method and device and storage medium
US20220007074A1 (en) Method and apparatus for playing videos, and electronic device and storage medium thereof
US11743355B2 (en) Prompting method and device
CN105260247A (en) Method and device for controlling terminal application
RU2665300C2 (en) Method and device for processing point reporting of touch screen
WO2022237609A1 (en) Communication control method, electronic device and earphones
WO2022089481A1 (en) Information processing method and apparatus, and electronic device
US20130178199A1 (en) Apparatus and method for providing shortcut service in portable terminal
WO2023169367A1 (en) Audio playing method and electronic device
CN104714735A (en) Page scrolling display method and device
WO2022247784A1 (en) Control method, apparatus, electronic device, and readable storage medium
CN111556271B (en) Video call method, video call device and electronic equipment
JP7252905B2 (en) Touch signal processing method, device and medium
CN113992786A (en) Audio playing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22742141

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22742141

Country of ref document: EP

Kind code of ref document: A1