Audio control method, electronic device and computer program product
By identifying the target audio stream and displaying an independent volume adjustment component in the audio control method, the problem of volume adjustment when multiple audio streams are playing simultaneously is solved, enabling dynamic and independent volume adjustment and improving the user experience.
Patent Information
- Application Number
- CN202411454513.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2026-04-17
AI Technical Summary
Current technology cannot independently adjust the volume of multiple audio files playing simultaneously, which affects the user experience.
In response to the start of the playback process, the target audio stream is identified and added to the playlist. An independent volume control component is displayed, and the output of the audio stream is controlled according to the operation. Shorter audio clips are filtered out, and the volume is adjusted only for longer audio clips.
It enables dynamic and independent volume adjustment for multiple audio streams, enhancing the user experience.
Smart Images

Figure CN121884853A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to an audio control method, electronic device, and computer program product. Background Technology
[0002] Users often need to play audio while using a device, such as playing phone ringtones, SMS notification sounds, application (App) notification sounds, or playing audio and video files. When a device plays multiple audio files simultaneously, users may have different volume requirements for each audio file because their needs for different audio files vary. Currently, it is not possible to independently adjust the volume of multiple audio files playing at the same time, which affects the user experience. Summary of the Invention
[0003] This application provides an audio control method, electronic device, and computer program product that enables independent volume adjustment of multiple audio files played simultaneously.
[0004] To solve the above-mentioned technical problems, this application is implemented as follows: In a first aspect, an audio control method is provided, the method comprising: in response to the initiation of N playback processes, determining a target audio stream and adding an audio stream identifier corresponding to the target audio stream to a target playlist, wherein the target audio stream is an audio stream among the N audio streams whose expected playback duration is greater than a first threshold, the N audio streams correspond one-to-one with the N playback processes, and N is an integer greater than or equal to 1; in response to a first operation, displaying an audio setting area corresponding to the target playlist, wherein each target audio stream corresponds to an independent volume adjustment component within the audio setting area; and controlling the output of the corresponding target audio stream according to the volume adjustment component.
[0005] In a second aspect, an electronic device is provided, including a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the method as described in the first aspect.
[0006] Thirdly, a readable storage medium is provided, wherein at least one computer program is stored therein, which, when loaded and executed by a processor, implements the method described in the first aspect.
[0007] Fourthly, a computer program product is provided, the computer program product comprising at least one computer program that, when loaded and executed by a processor, implements the method described in the first aspect.
[0008] In this embodiment, in response to the initiation of N playback processes, a target audio stream is determined, and the audio stream identifier corresponding to the target audio stream is added to the target playlist. The target audio stream is the audio stream among the N audio streams whose expected playback duration is greater than a first threshold. The N audio streams correspond one-to-one with the N playback processes, and N is an integer greater than or equal to 1. Then, in response to the first operation, an audio settings area corresponding to the target playlist is displayed. In the audio settings area, each target audio stream corresponds to an independent volume adjustment component. Finally, the output of the corresponding target audio stream is controlled according to the volume adjustment component, realizing dynamic and independent adjustment of the volume of multiple audio streams playing simultaneously. At the same time, by filtering out audio with shorter durations and only performing independent volume adjustment on audio with longer durations, the user experience is further improved.
[0009] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0010] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0011] Figure 1 This illustration shows a schematic diagram of an audio control method provided in an exemplary embodiment of this application; Figure 2 This illustration shows a schematic diagram of a terminal display interface provided in an exemplary embodiment of this application; Figure 3 This illustration shows a schematic diagram of a terminal display interface provided in an exemplary embodiment of this application; Figure 4 This illustration shows a schematic diagram of a terminal display interface provided in an exemplary embodiment of this application; Figure 5 This illustration shows a schematic diagram of a terminal display interface provided in an exemplary embodiment of this application; Figure 6 This illustration shows a schematic diagram of a terminal display interface provided in an exemplary embodiment of this application; Figure 7 This illustration shows a schematic diagram of a terminal display interface provided in an exemplary embodiment of this application; Figure 8 This illustration shows a schematic diagram of a terminal display interface provided in an exemplary embodiment of this application; Figure 9 This illustration shows a schematic diagram of a terminal display interface provided in an exemplary embodiment of this application; Figure 10This illustration shows a schematic diagram of a terminal display interface provided in an exemplary embodiment of this application; Figure 11 This illustration shows a schematic diagram of a terminal display interface provided in an exemplary embodiment of this application; Figure 12a This illustration shows another schematic diagram of an audio control method provided in an exemplary embodiment of this application; Figure 12b This illustration shows another schematic diagram of an audio control method provided in an exemplary embodiment of this application; Figure 13 A schematic diagram of the structure of an electronic device provided in an exemplary embodiment of this application is shown. Detailed Implementation
[0012] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0013] Figure 1 This illustration shows a flowchart of an audio control method provided in an exemplary embodiment of this application. The method can be executed by an electronic device, which may include a terminal device. In other words, the method can be executed by software or hardware installed in the electronic device, and the method may include the following steps: S110: In response to the start of N playback processes, determine the target audio stream and add the audio stream identifier corresponding to the target audio stream to the target playlist.
[0014] The target audio stream is an audio stream among N audio streams whose expected playback duration is greater than a first threshold. The N audio streams correspond one-to-one with the N playback processes, and N is an integer greater than or equal to 1.
[0015] In one implementation, before determining the target audio stream, the method further includes: obtaining the estimated playback duration corresponding to each audio stream based on the media type corresponding to each playback process. Optionally, the media type may include player type, HTML5 type, etc. For example, if it is a player type audio stream, it can be obtained through the mPlayer->getDuration method in MediaPlayer and AudioPlayer. If the media information contains information of type MediaMetadataRetriever, the media playback duration information can be checked by obtaining METADATA_KEY_DURATION, and the estimated playback duration can be determined based on the media playback duration information. If it is an HTML5 type audio stream, it can be obtained through HTML5... <video>The element checks the video load duration and then uses that video load duration as the expected playback duration of the audio stream.
[0016] In another implementation, determining the target audio stream may include the following steps: for each audio stream, in response to the determination that the expected playback duration is greater than a first threshold, determining the audio stream as the target audio stream.
[0017] The audio stream can include video audio, music, prompts, notification sounds, voice calls, and other audio data.
[0018] In this embodiment, when short audio (such as system notifications, alert sounds, etc.) and long audio (such as music) are played simultaneously, by filtering out the short audio, the volume can be independently adjusted only for the target audio stream whose expected playback duration is greater than a first threshold. Because short audio typically includes system notifications, alarm sounds, alert sounds, etc., if multiple short audios appear simultaneously, the page will always display the short audio while the user adjusts the volume of other audios, which may feel cumbersome. Furthermore, short audio is usually temporary; if the audio ends quickly while adjusting its volume, the user may feel that adjusting the volume is redundant. Additionally, providing adjustment for short audio would consume significant terminal resources. For example, when the terminal receives multiple messages, each with an audio prompt, the terminal needs to add multiple short audios to the target playlist. In reality, the short audio may have already finished playing during the process of adding it to the target playlist, making this operation meaningless and frequently consuming terminal resources.
[0019] Optionally, after adding the audio stream identifier corresponding to the target audio stream to the target playlist, the method further includes: recording relevant information such as the identifier of the playback process corresponding to the target audio stream, the identifier of the playback process returned by the system layer, the estimated playback duration, and the start recording time in the target playlist.
[0020] S120: In response to the first operation, display the audio settings area corresponding to the target playlist.
[0021] Within the audio settings area, each target audio stream corresponds to an independent volume adjustment component.
[0022] The first operation may include at least one of the following: pressing operation, clicking operation, touching operation, sliding operation, rotating operation, shaking operation, voice control, and automatic triggering operation. The triggering condition corresponding to the automatic triggering operation may include one of the following: inserting headphones or connecting a Bluetooth device, or the number of audio stream identifiers included in the target playlist exceeding a preset number.
[0023] After the first operation is triggered, the audio settings area corresponding to the target playlist is displayed, for example, as follows: Figure 2 As shown, the default volume for each target audio stream can be the same; in another example, such as Figure 3 As shown, the default volume for each target audio stream can be different. This default volume can be set based on at least one of the following: the audio type of the audio stream, the type of the playback application corresponding to the audio stream, or the priority of the audio stream. In another implementation, such as... Figure 4 As shown, within the audio settings area, each target audio stream can be categorized according to its corresponding application. In another implementation, such as... Figure 5 As shown, in response to the fourth operation, relevant information corresponding to the selected target audio stream is displayed. This relevant information may include: the identifier of the playback process corresponding to the target audio stream, the identifier of the playback process returned by the system layer, the estimated playback duration, the start recording time, the application, etc. The fourth operation may include at least one of the following: pressing operation, clicking operation, touching operation, sliding operation, rotating operation, shaking operation, and voice control.
[0024] In this embodiment, users may dislike being disturbed by too many short audio clips, especially when focusing on certain long audio clips. Therefore, filtering out short audio clips and adjusting the volume independently only for each long audio clip can improve the user's playback experience. Simultaneously, the personalized adjustment of the independent volume of multiple audio streams through a single audio settings area enhances the user experience.
[0025] S130: Control the output of the corresponding target audio stream according to the volume adjustment component.
[0026] In other words, after the user adjusts the volume of the corresponding audio stream using the volume adjustment component, the audio stream will be output at the adjusted volume.
[0027] In this embodiment, in response to the initiation of N playback processes, a target audio stream is determined, and the audio stream identifier corresponding to the target audio stream is added to the target playlist. The target audio stream is the audio stream among the N audio streams whose expected playback duration is greater than a first threshold. The N audio streams correspond one-to-one with the N playback processes, and N is an integer greater than or equal to 1. Then, in response to the first operation, an audio settings area corresponding to the target playlist is displayed. In the audio settings area, each target audio stream corresponds to an independent volume adjustment component. Finally, the output of the corresponding target audio stream is controlled according to the volume adjustment component, realizing dynamic and independent adjustment of the volume of multiple audio streams playing simultaneously. At the same time, by filtering out audio with shorter durations and only performing independent volume adjustment on audio with longer durations, the user experience is further improved.
[0028] In one implementation, after displaying the audio settings area corresponding to the target playlist, the method further includes: within the audio settings area, in response to a second operation by the user for each of the Y target audio streams, obtaining the independent volume corresponding to the Y target audio streams, wherein the second operation is to set the independent volume corresponding to the target audio stream through the corresponding volume adjustment component, Y is less than or equal to M, M is the number of target audio streams, and Y and M are both integers greater than or equal to 1; in response to the determination that Y is less than M, setting the independent volume of (MY) target audio streams to the default volume.
[0029] In this embodiment, within the audio settings area, if the user only adjusts the independent volume of some target audio streams, the adjusted independent volume is obtained. If the volume of some target audio streams is not adjusted, the independent volume of the target audio stream is determined to be the default volume. In this way, the user can choose to adjust the volume or not adjust the volume according to their personal needs, thereby obtaining a more personalized user experience.
[0030] The second operation can be at least one of the following: pressing, clicking, touching, swiping, rotating, shaking, or voice control. In other words, the second operation can control the volume adjustment component to adjust the volume of the corresponding target audio stream.
[0031] In one implementation, the method further includes: obtaining an output channel corresponding to each target audio stream; and outputting the target audio stream through the corresponding output channel for each target audio stream.
[0032] Here, the output channel refers to the device or unit that outputs audio, for example, such as Figure 6 As shown, when a terminal corresponds to multiple output channels, the user may expect M target audio streams to be output through the same output channel or through different output channels. In order to meet the user's personalized needs, in this embodiment of the application, a corresponding output channel can be set for each target audio stream, so as to output the target audio stream according to the corresponding output channel.
[0033] In one implementation, obtaining the output channel corresponding to each of the target audio streams includes: within the audio setting area, in response to a third operation by the user for each of the X target audio streams, obtaining the output channels corresponding to the X target audio streams, wherein the third operation is to select the output channel corresponding to the target audio stream from L preset audio channels, X is less than or equal to M, M is the number of target audio streams, and M, X, and L are all integers greater than or equal to 1; in response to the determination that X is less than M, setting the output channels corresponding to (MX) of the target audio streams as default channels, wherein the default channels are included among the L preset audio channels.
[0034] In this embodiment, within the audio settings area, if the user only sets the output channels of some target audio streams, the output channels of the set target audio streams are obtained. If the output channels of some target audio streams are not set, the output channel of the target audio stream is determined to be the default channel. In this way, the user can select the output channel corresponding to each target audio stream according to their personal needs, thereby meeting the user's personalized needs.
[0035] The third operation can be at least one of the following: pressing, clicking, touching, sliding, rotating, shaking, or voice control. In other words, the third operation allows the channel selection component to select the corresponding output channel.
[0036] In another implementation, after displaying the audio settings area corresponding to the target playlist, the method further includes: determining whether the target playlist is empty; if the target playlist is not empty, displaying a channel selection component corresponding to each target audio stream within the audio settings area.
[0037] For example, such as Figure 7 As shown, the audio settings area also includes a channel selection component 710 corresponding to each target audio stream. By controlling this channel selection component, the output channel of the corresponding target audio stream can be determined. The default output channel selected by this channel selection component can be a speaker or other output channel. After clicking on a channel selection component, as shown... Figure 8 As shown, all preset output channels available for selection are displayed. These preset output channels have been pre-connected to the terminal. It should be noted that in this embodiment, each target audio stream can correspond to at least one output channel. In another implementation, as... Figure 9 As shown, within the audio settings area, each target audio stream can be categorized according to its corresponding application. In another implementation, such as... Figure 10 As shown, if the user needs to add other preset output channels, they can do so by clicking the "More" button. After adding other preset output channels, as shown... Figure 11 As shown, all preset output channels available for selection will be updated synchronously.
[0038] In this embodiment, output channels are set up on an audio stream basis, further enhancing the user experience.
[0039] In one implementation, the L preset audio channels include at least two of the following: wired headphones; wireless headphones; a speaker; a handset; the left channel of the wired headphones; the right channel of the wired headphones; the left channel of the wireless headphones; and the right channel of the wireless headphones. In this embodiment, at least two audio channels can be output without adding additional hardware, thus meeting the needs of multiple users.
[0040] In one implementation, the M target audio streams come from M applications, where M is an integer greater than 1 and N is greater than M. That is, one application can simultaneously handle multiple playback processes, i.e., multiple target audio streams. In this embodiment, volume and channel settings are adjusted on a per-stream basis, further enhancing flexibility.
[0041] In one implementation, the method further includes: prioritizing the multiple target audio streams in response to the target audio channel corresponding to multiple target audio streams, wherein the target audio channel is any one of the L preset audio channels; and adjusting the independent volume corresponding to each target audio stream according to the priority order.
[0042] It is understandable that when a target audio channel corresponds to multiple target audio streams, if these streams are output at the same volume, users may not be able to distinguish them. Therefore, a priority can be set for each target audio stream, and then the corresponding independent volume can be adjusted according to the priority of each stream. For example, when music is playing and an alarm clock rings, since the alarm clock has a higher priority, its volume is adjusted to be higher than the music volume when playing simultaneously, so that the user is aware that the alarm has rung, thereby further improving the user experience. Optionally, the priority of the audio streams can be set according to user habits for specific scenarios.
[0043] In one implementation, before obtaining the audio stream corresponding to each of the N playback processes in response to their startup, the method further includes: for each playback process, determining that the playback process has started in response to a determination that the identifier of the playback process is the same as the identifier of the playback process returned by the system layer through a callback interface.
[0044] Understandably, when the system-level player engine detects the start of an audio playback process, it creates a playback process. This playback process persists after creation until it is explicitly released or terminated. This system layer can be a native layer. The native layer then notifies the Java layer of the playback process's start by calling a callback function in the Java layer. The Java layer also creates a playback process at this point. If the identifiers of these two processes match, it's confirmed that the playback process has started. The Java layer can monitor the application's playback status, recording only the processes of applications currently playing. That is, in a paused state, the Java layer does not create a playback process, while the native layer retains that process.
[0045] Optionally, a callback function can be added to the player method function. For example, the player method function may include the MediaPlayer function, the AudioPlayer function, etc.
[0046] In this implementation, based on the playback process identifier returned by the system layer through the callback interface, it can be ensured that only audio streams that are in a playing state are allowed to undergo subsequent processing. This is because users may want to focus on the audio that is playing, rather than audio that is paused. Therefore, adjusting the volume or selecting the output channel only for the audio that is playing can meet user needs and improve the user experience.
[0047] In one implementation, prior to responding to the first operation, the method further includes: deleting the audio stream identifier of the target audio stream whose playback process has been stopped from the target playlist.
[0048] Understandably, if a target audio stream has stopped or paused playback, its corresponding playback process is also stopped. Therefore, the target audio stream is removed from the target audio list. If the target audio stream resumes playback, the corresponding playback process restarts, and the process will be captured again. Thus, in this embodiment, deleting the target audio stream whose playback process has stopped before responding to the first operation maintains a dynamically updated playlist and avoids consuming more terminal memory.
[0049] In one exemplary embodiment, the target audio list can be dynamically updated based on whether the playback process is paused or stopped, or the expected playback duration of the target audio stream. For example, depending on whether the playback process is paused or stopped, the corresponding target audio stream can be deleted or its display position in the audio settings area can be adjusted. As another example, if the expected playback duration of the target audio stream is less than a preset value, the corresponding target audio stream can also be deleted or its display position in the audio settings area can be adjusted.
[0050] The following is a flowchart illustrating another audio control method based on the above embodiments, such as... Figure 12a As shown, the following steps may be included: S1210: Obtain the identifier of the playback process created by the system layer through a callback function.
[0051] It is understandable to add a callback function to the known application player method function, and obtain the identifier of the playback process using the MediaPlayer or AudioPlayer type through the callback function.
[0052] S1220: If the identifier of the playback process created at the system layer is the same as the identifier of the playback process detected at the application layer, obtain the estimated playback duration of the audio stream corresponding to that playback process.
[0053] For audio streams of the `player` class, the duration can be obtained using the `mPlayer->getDuration` method in `MediaPlayer` and `AudioPlayer`. If the media information includes `MediaMetadataRetriever` class information, the playback duration can be checked by obtaining `METADATA_KEY_DURATION`, and the estimated playback duration can be determined based on this information. For audio streams of the `HTML5` class, the duration can be obtained using HTML5... <video>The element checks the video load duration and then uses that video load duration as the expected playback duration of the audio stream.
[0054] S1230: If the expected playback duration is greater than the first threshold, the audio stream is determined as the target audio stream and added to the target playlist.
[0055] In other words, if the expected playback duration exceeds the first threshold, the current target audio stream identifier, the corresponding playback process identifier, the playback process identifier returned by the system layer, the expected playback duration, the start recording time, and other relevant information will be saved to the target playlist.
[0056] In some exemplary implementations, such as Figure 12b As shown, the method may further include the following steps.
[0057] S1240: Update the target playlist.
[0058] S1240 may include: deleting the target audio stream whose playback process has stopped from the target playlist.
[0059] S1250: In response to the first operation, the audio settings area is displayed.
[0060] The audio settings area includes a volume adjustment component and a channel setting component corresponding to each target audio stream.
[0061] S1260: For each target audio stream, obtain the user-set independent volume and selected output channel.
[0062] Understandably, if a user clicks the volume button, a volume adjustment component pops up, and at the same time, it checks whether the target playlist is empty. If it is not empty, a channel selection component button pops up, allowing the user to independently set the playback volume and output channel for each target audio stream.
[0063] S1270: For each target audio stream, output the target audio stream at an independent volume corresponding to the target audio stream through the corresponding output channel.
[0064] In this embodiment, by recognizing the user's actions in the game, the appropriate performance mode is adapted for the user. This allows the terminal to allocate performance resources reasonably and improves the user's gaming experience.
[0065] like Figure 13 As shown, this application embodiment also provides an electronic device 1300, including a processor 1310 and a memory 1320. The memory 1320 stores a program or instructions that can run on the processor 1310. When the program or instructions are executed by the processor 1310, they implement the various processes of the above-described audio control method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0066] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described audio control method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0067] The processor mentioned above is the processor in the terminal described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk. In some examples, the readable storage medium may be a non-transient readable storage medium.
[0068] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described audio control method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0069] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0070] This application also provides a computer program / program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described audio control method embodiments, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0071] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one…" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0072] From the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of computer software products plus necessary general-purpose hardware platforms, and of course, they can also be implemented by hardware. The computer software product is stored in a storage medium (such as ROM, RAM, magnetic disk, optical disk, etc.) and includes several instructions to cause the terminal or network-side device to execute the methods described in the various embodiments of this application.
[0073] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other implementations under the guidance of this application without departing from the spirit and scope of the claims. All of these implementations are within the protection scope of this application.< / video> < / video>
Claims
1. An audio control method, characterized in that, include: In response to the initiation of N playback processes, a target audio stream is determined, and the audio stream identifier corresponding to the target audio stream is added to the target playback list. The target audio stream is an audio stream among the N audio streams whose expected playback duration is greater than a first threshold. The N audio streams correspond one-to-one with the N playback processes, and N is an integer greater than or equal to 1. In response to the first operation, an audio settings area corresponding to the target playlist is displayed, wherein each target audio stream corresponds to an independent volume adjustment component within the audio settings area; The volume adjustment component controls the output of the corresponding target audio stream.
2. The method according to claim 1, characterized in that, After displaying the audio settings area corresponding to the target playlist, the method further includes: Within the audio setting area, in response to the user's second operation for each of the Y target audio streams, the independent volume corresponding to the Y target audio streams is obtained, wherein the second operation is to set the independent volume corresponding to the target audio stream through the corresponding volume adjustment component, Y is less than or equal to M, M is the number of target audio streams, and Y and M are both integers greater than or equal to 1; In response to the determination that Y is less than M, the independent volumes of (MY) of the target audio streams are set to the default volume.
3. The method according to claim 1, characterized in that, The method further includes: Obtain the output channel corresponding to each of the target audio streams; For each target audio stream, the target audio stream is output through the corresponding output channel.
4. The method according to claim 3, characterized in that, The step of obtaining the output channel corresponding to each of the target audio streams includes: Within the audio settings area, in response to the user's third operation for each of the X target audio streams, the output channels corresponding to the X target audio streams are obtained. The third operation is to select the output channel corresponding to the target audio stream from L preset audio channels. X is less than or equal to M, where M is the number of target audio streams, and M, X, and L are all integers greater than or equal to 1. In response to the determination that X is less than M, the output channels corresponding to (MX) of the target audio streams are set as default channels, wherein the default channels are included in the L preset audio channels.
5. The method according to claim 4, characterized in that, The method further includes: In response to the fact that a target audio channel corresponds to multiple target audio streams, the multiple target audio streams are prioritized, wherein the target audio channel is any one of the L preset audio channels; Adjust the individual volume corresponding to each of the target audio streams according to priority order.
6. The method according to claim 1, characterized in that, Before the response to the initiation of N playback processes, the method further includes: For each playback process, the playback process is determined to start upon the determination that the identifier of the playback process is the same as the identifier of the playback process returned by the system layer through the callback interface.
7. The method according to claim 1, characterized in that, Prior to the response to the first operation, the method further includes: Remove the audio stream identifier of the target audio stream whose playback process has stopped from the target playlist.
8. The method according to claim 1, characterized in that, Prior to determining the target audio stream, the method further includes: Based on the media type corresponding to each playback process, obtain the estimated playback duration corresponding to each audio stream.
9. The method according to claim 4, characterized in that, The L preset audio channels include at least two of the following: Wired headphones; Wireless headphones; speaker; earpiece; Wired headphones, left channel; Wired headphones, right channel; Left channel of wireless headphones; The right channel of the wireless headphones.
10. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the audio output method as described in any one of claims 1-9.
11. A computer program product, characterized in that, The computer program product includes program instructions that, when executed by a computer, cause the computer to perform the steps of the audio output method as described in any one of claims 1-9.