An audio playing control method and device, electronic equipment and storage medium

CN117406950BActive Publication Date: 2026-09-11SHENZHEN TCL NEW-TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310506454.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-06
Publication Date
2026-09-11
Estimated Expiration
2043-05-06

AI Technical Summary

Technical Problem

但是采用这种方案,不能够保证应用程序完全遵守这一机制,而如果应用程序未遵守这一机制,则会给用户的听觉体验和对电子设备的操作体验都带来负面影响

Benefits of technology

[0029]采用本发明实施例的方案,可以基于第一应用的第一音频播放请求,调用所述第一应用对应的第一音频数据传递程序,以使得音频播放设备播放所述第一音频播放请求对应的第一音频,基于第二应用的第二音频播放请求,调用所述第二应用对应的第二音频数据传递程序,检测所述音频播放设备中音频数据传递程序的运行状态,若所述音频播放设备中处于运行状态的音频数据传递程序满足预设的第一控制条件,显示音频播放控制控件,响应于对所述音频播放控制控件的音频选择操作,对所述第一音频数据传递程序和/或所述第二音频数据传递程序进行处理,以对所述音频播放设备中各应用播放的音频进行控制;由于在本发明实施例中,可以检测是否有至少两个应用请求播放音频,用户可以通过对音频播放控制控件的触发操作以控制音频播放设备中播放的音频,因此,通过本发明实施例可以根据用户的操作对同时播放的音频进行控制,改善用户的听觉体验和对电子设备的操作体验。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117406950B_ABST
    Figure CN117406950B_ABST
Patent Text Reader

Abstract

This invention discloses an audio playback control method, apparatus, electronic device, and storage medium. Based on a first audio playback request from a first application, a first audio data transmission program corresponding to the first application is invoked, causing the audio playback device to play the first audio corresponding to the first audio playback request. Based on a second audio playback request from a second application, a second audio data transmission program is invoked. The running status of the audio data transmission program in the audio playback device is detected. If the running audio data transmission program in the audio playback device meets a preset first control condition, an audio playback control control is displayed. In response to an audio selection operation on the audio playback control control, the first audio data transmission program and / or the second audio data transmission program are processed to control the audio played by each application in the audio playback device. This allows for control of simultaneously playing audio based on user operations, improving the user's auditory experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of audio technology, and more specifically to an audio playback control method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the development of life and the advancement of technology, people often use electronic devices to play audio. Sometimes, people run several applications on their electronic devices simultaneously, and the electronic devices may play audio requested by at least two different applications at the same time.

[0003] Currently, the main approach to solving the problem of simultaneous audio playback is to require applications to adhere to certain mechanisms during development, so that if another application attempts to play audio at runtime, it will proactively stop playback or lower the volume. However, this approach cannot guarantee that applications will fully comply with this mechanism, and if applications do not comply, it will negatively impact the user's auditory experience and the user's experience of operating electronic devices. Summary of the Invention

[0004] This invention provides an audio playback control method, device, electronic device, and storage medium, which can control simultaneously played audio according to user operations, thereby improving the user's auditory experience and the user's operating experience of the electronic device.

[0005] This invention provides an audio playback control method, comprising:

[0006] Based on the first audio playback request of the first application, the first audio data transmission program corresponding to the first application is invoked so that the audio playback device plays the first audio corresponding to the first audio playback request.

[0007] Based on the second audio playback request of the second application, the second audio data transmission program corresponding to the second application is invoked.

[0008] Detect the running status of the audio data transmission program in the audio playback device;

[0009] If the audio data transmission program in the audio playback device that is in operation meets the preset first control condition, the audio playback control control is displayed;

[0010] In response to an audio selection operation on the audio playback control control, the first audio data transmission program and / or the second audio data transmission program are processed to control the audio played by each application in the audio playback device.

[0011] Accordingly, embodiments of the present invention also provide an audio playback control device, comprising:

[0012] The first program calling unit is used to call the first audio data transmission program corresponding to the first application based on the first audio playback request of the first application, so that the audio playback device plays the first audio corresponding to the first audio playback request.

[0013] The second program calling unit is used to call the second audio data transmission program corresponding to the second application based on the second audio playback request of the second application.

[0014] The running status detection unit is used to detect the running status of the audio data transmission program in the audio playback device;

[0015] The control display unit is used to display audio playback control controls if the audio data transmission program in the audio playback device is in operation and meets the preset first control condition.

[0016] An audio playback control unit is configured to process the first audio data transmission program and / or the second audio data transmission program in response to an audio selection operation on the audio playback control control, so as to control the audio played by each application in the audio playback device.

[0017] In some optional embodiments, the audio playback control control includes a first control control corresponding to the first application and a second control control corresponding to the second application;

[0018] The audio playback control unit is configured to, in response to a selection operation on the first control control or the second control control, determine the target audio data transmission program corresponding to the selection operation from the first audio data transmission program and the second audio data transmission program;

[0019] Stop the running process of the target audio data transmission program.

[0020] In some optional embodiments, the control control display unit is used to determine, from the first audio data transmission program and the second audio data transmission program, the audio data transmission program that meets the preset second control condition as the target audio data transmission program if the audio data transmission program in the running state of the audio playback device meets the preset first control condition.

[0021] Obtain the audio control display information corresponding to the target audio data transmission program, and display the audio playback control control based on the audio control display information.

[0022] In some optional embodiments, the control display unit is used to determine the audio data transmission program with the longest running time from the first audio data transmission program and the second audio data transmission program that are in the running state as the target audio data transmission program.

[0023] In some optional embodiments, the audio playback control device provided by the present invention further includes an audio simultaneous playback unit, which is used to play the first audio corresponding to the first audio playback request and the second audio corresponding to the second audio playback request through the audio playback device if no triggering operation for the audio playback control occurs within a preset time period.

[0024] In some optional embodiments, the audio playback control unit is configured to, in response to an audio selection operation on the audio playback control control, delete the running processes corresponding to the first audio data transmission program and / or the second audio data transmission program from the audio playback process corresponding to the audio playback device.

[0025] In some optional embodiments, the audio playback control device provided by the present invention further includes an audio playback holding unit, used to play the second audio corresponding to the second audio playback request through the audio playback device if there is no running audio data transmission program in the audio playback device or the running audio data transmission program does not meet the first control condition.

[0026] Accordingly, embodiments of the present invention also provide an electronic device, including a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to perform the steps in any of the audio playback control methods provided in the embodiments of the present invention.

[0027] Accordingly, embodiments of the present invention also provide a computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to execute steps in any of the audio playback control methods provided in the embodiments of the present invention.

[0028] Furthermore, embodiments of the present invention also provide a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps in any of the audio playback control methods provided in the embodiments of the present invention.

[0029] The solution of this invention can be implemented by calling a first audio data transmission program corresponding to a first application based on a first audio playback request, so that the audio playback device plays the first audio corresponding to the first audio playback request. Based on a second audio playback request from a second application, a second audio data transmission program corresponding to the second application is called. The running status of the audio data transmission program in the audio playback device is detected. If the running audio data transmission program in the audio playback device meets a preset first control condition, an audio playback control control is displayed. In response to an audio selection operation on the audio playback control control, the first audio data transmission program and / or the second audio data transmission program are processed to control the audio played by each application in the audio playback device. Since this invention can detect whether at least two applications request audio playback, and users can control the audio played in the audio playback device by triggering the audio playback control control, this invention can control simultaneously playing audio according to user operations, improving the user's auditory experience and the user experience of operating electronic devices. Attached Figure Description

[0030] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0031] Figure 1 This is a schematic diagram of a scenario for the audio playback control method provided in an embodiment of the present invention;

[0032] Figure 2 This is a flowchart of the audio playback control method provided in the embodiments of the present invention;

[0033] Figure 3 This is a schematic diagram illustrating the technical implementation of the audio playback control process provided in an embodiment of the present invention;

[0034] Figure 4 This is a schematic diagram of the structure of the audio playback control device provided in an embodiment of the present invention;

[0035] Figure 5 This is another structural schematic diagram of the audio playback control device provided in an embodiment of the present invention;

[0036] Figure 6 This is a schematic diagram of the structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation

[0037] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0038] This invention provides an audio playback control method, apparatus, electronic device, and computer-readable storage medium. Specifically, this invention provides an audio playback control method suitable for an audio playback control apparatus that can be integrated into an electronic device.

[0039] The electronic device can be a terminal or other device, including but not limited to mobile terminals and fixed terminals. For example, mobile terminals include but are not limited to smartphones, smartwatches, tablets, laptops, smart vehicles, etc., while fixed terminals include but are not limited to desktop computers, smart TVs, etc.

[0040] The electronic device can also be a server or other similar device. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, but it is not limited to these.

[0041] The audio playback control method of this invention can be implemented by a server, or by a terminal and a server together.

[0042] The following example illustrates this audio playback control method using both a terminal and a server.

[0043] like Figure 1 As shown, the audio playback control system provided in this embodiment of the invention includes a terminal 10 and a server 20, etc. The terminal 10 and the server 20 are connected via a network, such as a wired or wireless network. The terminal 10 can exist as a terminal with a first application and a second application deployed.

[0044] The terminal 10 can be used to invoke a first audio data transmission program corresponding to a first application based on a first audio playback request from a first application, so that the audio playback device plays the first audio corresponding to the first audio playback request obtained from the server 20. Based on a second audio playback request from a second application, it can invoke a second audio data transmission program corresponding to the second application, detect the running status of the audio data transmission program in the audio playback device, and if the running audio data transmission program in the audio playback device meets a preset first control condition, display an audio playback control control, and process the first audio data transmission program and / or the second audio data transmission program in response to the audio selection operation of the audio playback control control, so as to control the audio played by each application in the audio playback device.

[0045] It is understood that the audio played by terminal 10 may be obtained from server 20 or stored in terminal 10, and this embodiment of the invention does not limit this.

[0046] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.

[0047] The embodiments of the present invention will be described from the perspective of an audio playback control device, which can be integrated into a terminal and / or a server.

[0048] like Figure 2 As shown, the specific flow of the audio playback control method in this embodiment can be as follows:

[0049] 201. Based on the first audio playback request of the first application, call the first audio data transmission program corresponding to the first application so that the audio playback device plays the first audio corresponding to the first audio playback request.

[0050] In this context, the first application is the application that requested audio playback before the second audio playback request was generated. It is understood that the number of first applications can be one or more, and this embodiment of the invention does not limit the number.

[0051] For example, sometimes users will use their devices to play audio from two applications simultaneously. When a third application that the user opens needs to play audio, the two applications that are already playing audio can be used as the first application.

[0052] The first audio data transmission program can be a program used to pass audio data to a specific audio playback program for playback. For example, in the Android system, the first audio data transmission program can be the AudioTrack program.

[0053] Specifically, AudioTrack is a class used in Android for handling the data transmission process during music playback. AudioTrack allows for audio data sampling, output channel settings, and playback of decoded PCM streams. For example, AudioTrack can pass a PCM stream to AudioFlinger for mixing before finally delivering it to the hardware for playback.

[0054] Optionally, the audio playback device may be the electronic device itself that carries the first application and / or the second application, or the audio playback device may be other devices that have a wired or wireless connection with the electronic device that carries the first application and / or the second application, such as speakers.

[0055] Specifically, the first audio is the audio requested to be played by the first audio playback request.

[0056] 202. Based on the second audio playback request of the second application, call the second audio data transmission program corresponding to the second application.

[0057] Specifically, the second application is an application that needs to determine whether audio playback control is required.

[0058] Optionally, the second audio data transmission program can also be a program that transmits audio data to a specific audio playback program for playback. For example, the AudioTrack program.

[0059] It is understood that before the running status is detected, the second audio corresponding to the second application may not have started playing or may have already started playing, and this embodiment of the invention does not limit this.

[0060] 203. Detect the running status of the audio data transmission program in the audio playback device.

[0061] Specifically, Android system applications call AudioTrack when playing music, and each audio track corresponds to one track in the operating system. By detecting the number of tracks, the running status of the audio data transmission program can be determined.

[0062] In some optional embodiments, if it is found after detection that there is no need for audio playback control, the second audio corresponding to the second application can be played normally. The audio playback control method provided in this embodiment of the invention may further include:

[0063] If there is no running audio data transmission program in the audio playback device, or if the running audio data transmission program does not meet the first control condition, the second audio corresponding to the second audio playback request is played through the audio playback device.

[0064] In other words, if the audio data transmission program is not running, or if the first control condition set by the user or developer does not match the currently running audio data transmission program, the second audio corresponding to the second application can be played normally.

[0065] 204. If the audio data transmission program in the audio playback device is in operation and meets the preset first control condition, the audio playback control control is displayed.

[0066] The first control condition could be that if two or more audio data transmission programs are running, the audio playback control controls will be displayed; or, the first control condition could be that if two or more audio data transmission programs are running and the runtime of one of the audio data transmission programs exceeds a certain duration threshold, the audio playback control controls will be displayed. The first control condition can be set by the user or a technician according to actual needs, and this embodiment of the invention does not limit this setting.

[0067] In some optional embodiments, the step "if the audio data transmission program in the audio playback device that is in operation meets the preset first control condition, display the audio playback control control" may specifically include:

[0068] If the audio data transmission program in the audio playback device that is in operation meets the preset first control condition, the audio data transmission program that meets the preset second control condition is determined from the first audio data transmission program and the second audio data transmission program as the target audio data transmission program.

[0069] Obtain the audio control display information corresponding to the target audio data transmission program, and display the audio playback control control based on the audio control display information.

[0070] For example, when playing audio, you can first detect if there are multiple active tracks, and then send the information of one or all tracks to the Java layer via Android callback, and send a notification to the user from the Java layer.

[0071] The second control condition can be one or more audio data transmission programs that are called later as the target audio data transmission program, or one or more audio data transmission programs that are called earlier as the target audio data transmission program, and so on.

[0072] In some examples, the earliest audio data delivery program can be defaulted to as the target audio data delivery program. The step "determining the audio data delivery program that meets the preset second control condition from the first audio data delivery program and the second audio data delivery program as the target audio data delivery program" can specifically include:

[0073] From the first audio data transfer program and the second audio data transfer program that are in operation, determine the audio data transfer program with the longest running time as the target audio data transfer program.

[0074] For example, when playing the first song, if there are two active tracks, the information of the first track will be sent to the Java layer via Android callback, and a notification will be sent to the user in the Java layer.

[0075] 205. In response to an audio selection operation on the audio playback control control, the first audio data transmission program and / or the second audio data transmission program are processed to control the audio played by each application in the audio playback device.

[0076] The processing of the audio data transmission program can be either pausing its operation or completely stopping it.

[0077] In some optional embodiments, the audio playback control control includes a first control control corresponding to the first application and a second control control corresponding to the second application. The step "in response to an audio selection operation on the audio playback control control, processing the first audio data transfer program and / or the second audio data transfer program" may specifically include:

[0078] In response to a selection operation on the first control control or the second control control, a target audio data transfer program corresponding to the selection operation is determined from the first audio data transfer program and the second audio data transfer program;

[0079] Stop the running process of the target audio data transmission program.

[0080] For example, the system can check the current number of audio tracks being played via AudioTrack, and then return the control of the previous AudioTrack to the user via a notification, such as... Figure 3 As shown, users can control whether to stop playback of a specific application by interacting with the notification.

[0081] In some embodiments, the audio playback control method provided by the present invention may further include:

[0082] If no trigger operation is performed on the audio playback control within the preset time period, the first audio corresponding to the first audio playback request and the second audio corresponding to the second audio playback request will be played through the audio playback device.

[0083] In other words, if the user does not trigger the audio playback control, the second audio will play normally.

[0084] Optionally, the step "in response to an audio selection operation on the audio playback control, processing the first audio data transfer program and / or the second audio data transfer program" may specifically include:

[0085] In response to an audio selection operation on the audio playback control, the running processes corresponding to the first audio data transmission program and / or the second audio data transmission program are deleted from the audio playback process corresponding to the audio playback device.

[0086] For example, when a user clicks on the Notification, a method pre-packaged by the technical staff is called to remove the first Track in AudioTrack, thus ensuring that only one audio is playing in the current system.

[0087] As can be seen from the above, the embodiments of the present invention can, based on a first audio playback request from a first application, call a first audio data transmission program corresponding to the first application, so that the audio playback device plays the first audio corresponding to the first audio playback request. Based on a second audio playback request from a second application, call a second audio data transmission program corresponding to the second application. The running status of the audio data transmission program in the audio playback device is detected. If the audio data transmission program in the running state of the audio playback device meets a preset first control condition, an audio playback control control is displayed. In response to an audio selection operation on the audio playback control control, the first audio data transmission program and / or the second audio data transmission program are processed to control the audio played by each application in the audio playback device. Since the embodiments of the present invention can detect whether at least two applications request audio playback, and users can control the audio played in the audio playback device by triggering the audio playback control control, the embodiments of the present invention can control the audio played simultaneously according to the user's operation, improving the user's auditory experience and the operating experience of the electronic device.

[0088] To better implement the above methods, this embodiment of the invention also provides an audio playback control device.

[0089] refer to Figure 4The device may include:

[0090] The first program calling unit 401 can be used to call the first audio data transmission program corresponding to the first application based on the first audio playback request of the first application, so that the audio playback device plays the first audio corresponding to the first audio playback request.

[0091] The second program calling unit 402 can be used to call the second audio data transmission program corresponding to the second application based on the second audio playback request of the second application.

[0092] The running status detection unit 403 can be used to detect the running status of the audio data transmission program in the audio playback device;

[0093] The control display unit 404 can be used to display audio playback control controls if the audio data transmission program in the running state of the audio playback device meets the preset first control condition.

[0094] The audio playback control unit 405 can be used to process the first audio data transmission program and / or the second audio data transmission program in response to an audio selection operation on the audio playback control control, so as to control the audio played by each application in the audio playback device.

[0095] In some optional embodiments, the audio playback control control may include a first control control corresponding to the first application and a second control control corresponding to the second application;

[0096] The audio playback control unit 405 can be used to determine the target audio data transmission program corresponding to the selection operation from the first audio data transmission program and the second audio data transmission program in response to the selection operation of the first control control or the second control control.

[0097] Stop the running process of the target audio data transmission program.

[0098] In some optional embodiments, the control control display unit 404 can be used to determine, from the first audio data transmission program and the second audio data transmission program, the audio data transmission program that meets the preset second control condition as the target audio data transmission program if the audio data transmission program in the running state of the audio playback device meets the preset first control condition.

[0099] Obtain the audio control display information corresponding to the target audio data transmission program, and display the audio playback control control based on the audio control display information.

[0100] In some optional embodiments, the control display unit 404 may be used to determine the audio data transmission program with the longest running time from the first audio data transmission program and the second audio data transmission program that are in the running state as the target audio data transmission program.

[0101] In some alternative embodiments, such as Figure 5 As shown, the audio playback control device provided in this embodiment of the invention may further include an audio simultaneous playback unit 406, which can be used to play the first audio corresponding to the first audio playback request and the second audio corresponding to the second audio playback request through the audio playback device if no trigger operation for the audio playback control control occurs within a preset time period.

[0102] In some optional embodiments, the audio playback control unit 405 may be used to delete the running processes corresponding to the first audio data transmission program and / or the second audio data transmission program from the audio playback process corresponding to the audio playback device in response to an audio selection operation on the audio playback control control.

[0103] In some optional embodiments, the audio playback control device provided in this embodiment of the invention may further include an audio playback holding unit 407, which can be used to play the second audio corresponding to the second audio playback request through the audio playback device if there is no running audio data transmission program in the audio playback device or the running audio data transmission program does not meet the first control condition.

[0104] As can be seen from the above, through the audio playback control device, based on the first audio playback request of the first application, the first audio data transmission program corresponding to the first application can be invoked, so that the audio playback device plays the first audio corresponding to the first audio playback request. Based on the second audio playback request of the second application, the second audio data transmission program corresponding to the second application can be invoked. The running status of the audio data transmission program in the audio playback device is detected. If the audio data transmission program in the running state in the audio playback device meets the preset first control condition, the audio playback control control is displayed. In response to the audio selection operation of the audio playback control control, the first audio data transmission program and / or the second audio data transmission program are processed to control the audio played by each application in the audio playback device. Since in this embodiment of the invention, it is possible to detect whether at least two applications request to play audio, and the user can control the audio played in the audio playback device by triggering the audio playback control control, the embodiments of the invention can control the audio played at the same time according to the user's operation, thereby improving the user's auditory experience and the operating experience of the electronic device.

[0105] Furthermore, embodiments of the present invention also provide an electronic device, which may be a terminal or a server, etc. Figure 6 As shown, it illustrates a structural schematic diagram of the electronic device involved in an embodiment of the present invention, specifically:

[0106] The electronic device may include a radio frequency (RF) circuit 601, a memory 602 including one or more computer-readable storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a wireless Fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609, etc. Those skilled in the art will understand that... Figure 6 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0107] in:

[0108] RF circuit 601 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and hands it over to one or more processors 608 for processing; additionally, it transmits uplink data to the base station. Typically, RF circuit 601 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a low-noise amplifier (LNA), a duplexer, etc. Furthermore, RF circuit 601 can also communicate wirelessly with networks and other devices. Wireless communication can use any communication standard or protocol, including but not limited to GSM, GPRS, CDMA, WCDMA, LTE, email, and SMS.

[0109] The memory 602 can be used to store software programs and modules. The processor 608 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, telephone directory, etc.). In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide access to the memory 602 for the processor 608 and the input unit 603.

[0110] The input unit 603 can be used to receive input digital or character information, and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Specifically, in one embodiment, the input unit 603 may include a touch-sensitive surface and other input devices. The touch-sensitive surface, also known as a touch display or touchpad, can collect user touch operations on or near it (e.g., user operations using fingers, styluses, or any suitable object or accessory on or near the touch-sensitive surface), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface may include a touch detection device and a touch controller. The touch detection device detects the user's touch orientation and the signal generated by the touch operation, transmitting the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to the processor 608, and can receive and execute commands from the processor 608. Furthermore, various types of touch-sensitive surfaces, such as resistive, capacitive, infrared, and surface acoustic wave, can be used. In addition to the touch-sensitive surface, the input unit 603 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.

[0111] Display unit 604 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of electronic devices. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Display unit 604 may include a display panel, optionally configured as a liquid crystal display (LCD), organic light-emitting diode (OLED), or similar form. Furthermore, a touch-sensitive surface may cover the display panel. When the touch-sensitive surface detects a touch operation on or near it, it transmits the information to processor 608 to determine the type of touch event. Subsequently, processor 608 provides corresponding visual output on the display panel according to the type of touch event. Although in Figure 6 In this context, the touch-sensitive surface and the display panel are two separate components for implementing input and output functions. However, in some embodiments, the touch-sensitive surface and the display panel can be integrated to achieve both input and output functions.

[0112] The electronic device may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel according to the ambient light level, and the proximity sensor can turn off the display panel and / or backlight when the electronic device is moved to the ear. As a type of motion sensor, a gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the electronic device, such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.

[0113] Audio circuitry 606, a speaker, and a microphone provide an audio interface between the user and the electronic device. Audio circuitry 606 converts received audio data into electrical signals, transmits them to the speaker, and the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuitry 606, converted back into audio data, and processed by processor 608. The processed data is then transmitted via RF circuitry 601 to, for example, another electronic device, or output to memory 602 for further processing. Audio circuitry 606 may also include an earphone jack to facilitate communication between external headphones and the electronic device.

[0114] WiFi is a short-range wireless transmission technology. Electronic devices using the WiFi module 607 can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 6 WiFi module 607 is shown, but it is understood that it is not a necessary component of an electronic device and can be omitted as needed without changing the nature of the invention.

[0115] The processor 608 is the control center of the electronic device, connecting various parts of the phone via various interfaces and lines. It executes software programs and / or modules stored in the memory 602, and calls data stored in the memory 602 to perform various functions and process data. Optionally, the processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 608.

[0116] The electronic device also includes a power supply 609 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the processor 608 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 609 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0117] Although not shown, the electronic device may also include a camera, Bluetooth module, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 608 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 602 according to the following instructions, and the processor 608 runs the applications stored in the memory 602 to realize various functions, as follows:

[0118] Based on the first audio playback request of the first application, the first audio data transmission program corresponding to the first application is invoked so that the audio playback device plays the first audio corresponding to the first audio playback request.

[0119] Based on the second audio playback request of the second application, the second audio data transmission program corresponding to the second application is invoked.

[0120] Detect the running status of the audio data transmission program in the audio playback device;

[0121] If the audio data transmission program in the audio playback device that is in operation meets the preset first control condition, the audio playback control control is displayed;

[0122] In response to an audio selection operation on the audio playback control control, the first audio data transmission program and / or the second audio data transmission program are processed to control the audio played by each application in the audio playback device.

[0123] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0124] Therefore, embodiments of the present invention provide a computer-readable storage medium storing a plurality of instructions that can be loaded by a processor to execute steps in any of the audio playback control methods provided in the embodiments of the present invention. For example, the instructions can execute the following steps:

[0125] Based on the first audio playback request of the first application, the first audio data transmission program corresponding to the first application is invoked so that the audio playback device plays the first audio corresponding to the first audio playback request.

[0126] Based on the second audio playback request of the second application, the second audio data transmission program corresponding to the second application is invoked.

[0127] Detect the running status of the audio data transmission program in the audio playback device;

[0128] If the audio data transmission program in the audio playback device that is in operation meets the preset first control condition, the audio playback control control is displayed;

[0129] In response to an audio selection operation on the audio playback control control, the first audio data transmission program and / or the second audio data transmission program are processed to control the audio played by each application in the audio playback device.

[0130] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0131] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0132] Since the instructions stored in the computer-readable storage medium can execute the steps of any of the audio playback control methods provided in the embodiments of the present invention, the beneficial effects that any of the audio playback control methods provided in the embodiments of the present invention can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.

[0133] According to one aspect of this application, a computer program product or computer program is also provided, comprising computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the methods provided in the various optional implementations of the above embodiments.

[0134] The above provides a detailed description of an audio playback control method, apparatus, electronic device, and storage medium provided by embodiments of the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. An audio play control method, characterized by, include: Based on the first audio playback request of the first application, the first audio data transmission program corresponding to the first application is invoked so that the audio playback device plays the first audio corresponding to the first audio playback request. Based on the second audio playback request of the second application, the second audio data transmission program corresponding to the second application is invoked. Detect the running status of the audio data transmission program in the audio playback device; If the audio data transmission program in the audio playback device that is in operation meets the preset first control condition, the audio playback control control is displayed; wherein, the first control condition includes at least two audio data transmission programs running; In response to an audio selection operation on the audio playback control control, the first audio data transmission program and / or the second audio data transmission program are processed to control the audio played by each application in the audio playback device; The audio playback control control includes a first control control corresponding to the first application and a second control control corresponding to the second application; The step of processing the first audio data transfer program and / or the second audio data transfer program in response to an audio selection operation on the audio playback control control includes: in response to a selection operation on the first control control or the second control control, determining the target audio data transfer program corresponding to the selection operation from the first audio data transfer program and the second audio data transfer program; and stopping the running process of the target audio data transfer program.

2. The audio play control method of claim 1, wherein, If the audio data transmission program in the audio playback device, which is in operation, meets the preset first control condition, the audio playback control controls are displayed, including: If the audio data transmission program in the audio playback device that is in operation meets the preset first control condition, the audio data transmission program that meets the preset second control condition is determined from the first audio data transmission program and the second audio data transmission program as the target audio data transmission program. Obtain the audio control display information corresponding to the target audio data transmission program, and display the audio playback control control based on the audio control display information.

3. The audio play control method of claim 2, wherein, The step of determining the audio data transmission program that meets the preset second control condition from the first audio data transmission program and the second audio data transmission program as the target audio data transmission program includes: From the first audio data transfer program and the second audio data transfer program that are in operation, determine the audio data transfer program with the longest running time as the target audio data transfer program.

4. The audio play control method of claim 1, wherein, The method further includes: If no trigger operation is performed on the audio playback control within the preset time period, the first audio corresponding to the first audio playback request and the second audio corresponding to the second audio playback request will be played through the audio playback device.

5. The audio play control method of claim 1, wherein, The process of processing the first audio data transmission program and / or the second audio data transmission program in response to an audio selection operation on the audio playback control control includes: In response to an audio selection operation on the audio playback control, the running processes corresponding to the first audio data transmission program and / or the second audio data transmission program are deleted from the audio playback process corresponding to the audio playback device.

6. The audio play control method of claim 1, wherein, The method further includes: If there is no running audio data transmission program in the audio playback device, or if the running audio data transmission program does not meet the first control condition, the second audio corresponding to the second audio playback request is played through the audio playback device.

7. An audio play control apparatus characterized by comprising: include: The first program calling unit is used to call the first audio data transmission program corresponding to the first application based on the first audio playback request of the first application, so that the audio playback device plays the first audio corresponding to the first audio playback request. The second program calling unit is used to call the second audio data transmission program corresponding to the second application based on the second audio playback request of the second application. The running status detection unit is used to detect the running status of the audio data transmission program in the audio playback device; The control display unit is used to display audio playback control controls if the audio data transmission program in the audio playback device is running and meets a preset first control condition; wherein, the first control condition includes at least two audio data transmission programs running; An audio playback control unit is configured to process the first audio data transmission program and / or the second audio data transmission program in response to an audio selection operation on the audio playback control control, so as to control the audio played by each application in the audio playback device. The audio playback control control includes a first control control corresponding to the first application and a second control control corresponding to the second application; The audio playback control unit is configured to: in response to a selection operation on the first control control or the second control control, determine the target audio data transmission program corresponding to the selection operation from the first audio data transmission program and the second audio data transmission program; and stop the running process of the target audio data transmission program.

8. An electronic device, comprising: It includes a memory and a processor; the memory stores an application program, and the processor is used to run the application program within the memory to perform the steps of the audio playback control method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor to perform the steps of the audio playback control method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Audio playing method and computing device

    CN102033776A

  • Audio play control method and device as well as storage medium and mobile terminal

    CN108769431A