Audio playing method, electronic device and storage medium

By creating and managing audio partitions in electronic devices, the problem of logical isolation between audio streams in existing audio splitting technology is solved, independent control and efficient audio playback are achieved, and user experience and audio playback quality are improved.

WO2024198727A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/075732
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-27
Filing Date
2024-02-04
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing audio splitting technology can only achieve physical isolation between audio streams, but cannot achieve logical isolation, causing interference when users control different audio streams and affecting the user experience.

Method used

By creating and managing audio partitions in electronic devices, logical isolation between audio streams is achieved, allowing users to independently adjust and control the media properties of each audio partition, reducing system resource usage, and supporting application migration to improve the flexibility of audio offloading.

Benefits of technology

It achieves independent control of different audio streams, avoids interference between applications, improves user experience, and improves the efficiency and quality of audio playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024075732_03102024_PF_FP_ABST
    Figure CN2024075732_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are an audio playing method, an electronic device and a storage medium. The method comprises: in response to an operation of adjusting a media attribute of a first audio partition in a first device by a user, the media attribute of the first audio partition being changed, and media attributes of one or more second audio partitions in the first device not being changed, wherein the first audio partition and the one or more second audio partitions each correspond to a second device. The method provided in the present application is conducive to solving the problem of the interference between audio streams during audio shunting.
Need to check novelty before this filing date? Find Prior Art

Description

Audio playback method, electronic device, and storage medium

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 27, 2023, with application number 202310353979.X and application name “Audio playback method, electronic device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of multimedia technology, and in particular to an audio playback method, electronic device, and storage medium. Background Art

[0003] Traditional computer operating systems connect upper-layer applications with lower-layer hardware, providing an interface and environment for the upper layer by rationally scheduling and allocating computer tasks and resources. Taking southbound hardware as an example, an operating system can be divided into multiple subsystems. For example, the display subsystem provides functions such as screen display. This display subsystem can connect southbound to display-related hardware, access its capabilities through relevant drivers, and encapsulate them into application interfaces for upper layers to use. The audio subsystem provides functions such as audio playback. This audio subsystem can connect to audio-related hardware to provide external audio playback capabilities.

[0004] With the continuous development of electronic technology, cross-device collaboration and interactive functions are becoming more and more common. For example, the sound output capabilities of devices with better sound quality (such as speakers and smart screens) can be shared with mobile terminals such as mobile phones or tablets, so that songs played on the phone or tablet can be played on the speakers and smart screens, thus providing a better audio and video entertainment experience.

[0005] During the above-mentioned audio delivery process, audio splitting can also be achieved. For example, the audio stream of application A can be delivered to the smart screen, and the audio stream of application B can be delivered to Bluetooth headphones. However, the current audio splitting can only achieve physical isolation between audio streams, and cannot achieve logical isolation between audio streams. This will cause problems when controlling different audio streams. For example, if application B is paused, application A will also be paused. Or when using gestures or other operations to control the playback of one application, it will affect the playback of other applications, which will seriously affect the user experience.

[0006] Summary of the Invention

[0007] The present application provides an audio playback method, an electronic device, and a storage medium, which help to solve the problem of interference between audio streams during audio diversion.

[0008] In a first aspect, the present application provides an audio playback method, applied to a first device, comprising:

[0009] In response to a user adjusting a media attribute of a first audio zone in the first device, the media attribute of the first audio zone is changed, and the media attributes of one or more second audio zones in the first device remain unchanged;

[0010] The first audio partition and each of the one or more second audio partitions correspond to a second device.

[0011] In the present application, by binding different second devices to different audio partitions, the audio partitions can be logically isolated, thereby avoiding interference between audio streams when controlling different audio partitions.

[0012] In one possible implementation, before responding to the user adjusting the media attributes of the first audio zone in the first device, the method further includes:

[0013] In response to a user's operation of streaming any one or more applications to any target second device, the first device creates an audio partition corresponding to the target second device.

[0014] In this application, by creating corresponding audio partitions on demand, the occupation of system resources by audio partitions can be reduced.

[0015] In one possible implementation, before the first device creates the audio partition corresponding to the target second device, the method further includes:

[0016] If the audio partition corresponding to the target second device has been created, the first device reuses the audio partition corresponding to the target second device.

[0017] In this application, by reusing the created audio partitions, it is possible to avoid repeatedly creating existing audio partitions and improve the efficiency of audio playback.

[0018] In one possible implementation, the method further includes:

[0019] When the first device detects that no application is playing any target audio partition in the first audio partition and the one or more second audio partitions, the target audio partition is deleted.

[0020] In this application, by deleting audio partitions that are no longer in use, the occupation of system resources by audio partitions can be reduced.

[0021] In one possible implementation, the method further includes:

[0022] When the first device detects that it is disconnected from any second device, the audio partition corresponding to the disconnected second device is deleted.

[0023] In this application, by deleting audio partitions that are no longer in use, the occupation of system resources by audio partitions can be reduced.

[0024] In one possible implementation, the method further includes:

[0025] In response to a migration operation by the user, the first device migrates one or more applications in the first audio partition to the second audio partition.

[0026] In this application, the flexibility of audio diversion can be improved by migrating applications between different audio partitions.

[0027] In one possible implementation, the one or more second audio partitions support different audio playback capabilities and mixing capabilities.

[0028] In this application, by distinguishing the media playback capabilities of different audio partitions, the application can better match the audio partitions, thereby improving the quality of audio playback.

[0029] In one possible implementation, the media attributes include at least volume, focus, and media session.

[0030] In a second aspect, the present application provides an audio playback device, comprising one or more functional modules, wherein the one or more functional modules are used to implement the audio playback method as described in the first aspect.

[0031] In a third aspect, the present application provides an electronic device comprising: a processor and a memory, wherein the memory is used to store a computer program; and the processor is used to run the computer program to implement the audio playback method as described in the first aspect.

[0032] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer-readable storage medium is run on a computer, the computer implements the audio playback method as described in the first aspect.

[0033] In a fifth aspect, the present application provides a computer program. When the above-mentioned computer program is run on a processor of an electronic device, the electronic device executes the audio playback method as described in the first aspect.

[0034] In one possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, or may be stored in whole or in part on a memory not packaged with the processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] FIG1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0036] FIG2 is a diagram of the system architecture provided by an embodiment of the present application;

[0037] FIG3 is an architecture diagram of an application scenario provided by an embodiment of the present application;

[0038] FIG4A is a schematic diagram showing the effect of audio streaming playback provided by an embodiment of the present application;

[0039] FIG4B is a flowchart of an embodiment of an audio playback method provided by the present application;

[0040] FIG5 is a schematic diagram of the effect of application migration provided by an embodiment of the present application;

[0041] FIG6 is a schematic diagram of the structure of an audio playback device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In the embodiments of this application, unless otherwise specified, the character " / " indicates that the associated objects are in an "or" relationship. For example, A / B can represent A or B. "And / or" describes the relationship between the associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exists simultaneously, or B exists alone.

[0043] It should be pointed out that the words "first", "second", etc. involved in the embodiments of this application are only used for distinguishing description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated, nor can they be understood as indicating or implying order.

[0044] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. In addition, "at least one of the following" or similar expressions refers to any combination of these items, which may include any combination of single items or plural items. For example, at least one of A, B, or C can represent: A, B, C, A and B, A and C, B and C, or A, B and C. Among them, each of A, B, and C can be an element itself, or a set containing one or more elements.

[0045] In the embodiments of this application, the terms "exemplary," "in some embodiments," and "in another embodiment" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" in this application should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of the word "exemplary" is intended to present concepts in a concrete manner.

[0046] In the embodiments of this application, the terms "of," "corresponding," and "relevant" may sometimes be used interchangeably. It should be noted that, when the distinction between them is not emphasized, the meanings they convey are the same. In the embodiments of this application, the terms "communication" and "transmission" may sometimes be used interchangeably. It should be noted that, when the distinction between them is not emphasized, the meanings they convey are the same. For example, "transmission" may include "sending" and / or "receiving," and may be either a noun or a verb.

[0047] In the embodiments of this application, "equal to" can be used in conjunction with "greater than" and is applicable to the technical solution adopted when "greater than" is used, and can also be used in conjunction with "less than" and is applicable to the technical solution adopted when "less than" is used. It should be noted that when "equal to" is used in conjunction with "greater than", it cannot be used in conjunction with "less than"; and when "equal to" is used in conjunction with "less than", it cannot be used in conjunction with "greater than".

[0048] Traditional computer operating systems connect upper-layer applications with lower-layer hardware, providing an interface and environment for the upper layer by rationally scheduling and allocating computer tasks and resources. Taking southbound hardware as an example, an operating system can be divided into multiple subsystems. For example, the display subsystem provides functions such as screen display. This display subsystem can connect southbound to display-related hardware, access its capabilities through relevant drivers, and encapsulate them into application interfaces for upper layers to use. The audio subsystem provides functions such as audio playback. This audio subsystem can connect to audio-related hardware to provide external audio playback capabilities.

[0049] With the continuous development of electronic technology, cross-device collaboration and interactive functions are becoming more and more common. For example, the sound output capabilities of devices with better sound quality (such as speakers and smart screens) can be shared with mobile terminals such as mobile phones or tablets, so that songs played on the phone or tablet can be played on the speakers and smart screens, thus providing a better audio and video entertainment experience.

[0050] During the above-mentioned audio delivery process, audio splitting can also be achieved. For example, the audio stream of application A can be delivered to the smart screen, and the audio stream of application B can be delivered to Bluetooth headphones. However, the current audio splitting can only achieve physical isolation between audio streams, and cannot achieve logical isolation between audio streams. This will cause problems when controlling different audio streams. For example, if application B is paused, application A will also be paused. Or when using gestures or other operations to control the playback of one application, it will affect the playback of other applications, which will seriously affect the user experience.

[0051] Based on the above problems, an embodiment of the present application proposes an audio playback method, which is applied to an electronic device and can achieve logical isolation between audio streams when audio is split, so that when a user controls different applications, there will be no interference between applications, thereby improving the user experience. The electronic device can be a terminal device, such as a mobile phone, a tablet, etc. The terminal device can also be called a mobile terminal, user equipment (UE), access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device. The terminal device can be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication function, a computing device and a next-generation communication system, such as a mobile terminal in a 5G network or a mobile terminal in a future evolved Public Land Mobile Network (PLMN) network.

[0052] FIG1 first exemplarily shows a structural diagram of an electronic device 100 .

[0053] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone jack 170D, a sensor module 180, a button 190, a motor 191, a camera 193, a display screen 194, etc. The sensor module 180 may include a pressure sensor 180A, a magnetic sensor 180D, and a touch sensor 180K.

[0054] It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0055] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0056] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0057] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0058] In some embodiments, the processor 110 may include one or more interfaces, such as an inter-integrated circuit (I2C) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, and the like.

[0059] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C busses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device 100.

[0060] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0061] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0062] It is understood that the interface connection relationship between the modules illustrated in this embodiment is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0063] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0064] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.

[0065] The mobile communication module 150 can provide wireless communication solutions for electronic device 100, including 2G / 3G / 4G / 5G. The mobile communication module 150 receives electromagnetic waves through antenna 1, filters and amplifies the received electromagnetic waves, and transmits them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via antenna 1.

[0066] The wireless communication module 160 provides a wireless communication solution for the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be transmitted from the processor 110, frequency-modulate and amplify them, and then convert them into electromagnetic waves for radiation via the antenna 2.

[0067] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0068] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0069] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0070] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.

[0071] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0072] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0073] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0074] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.

[0075] The external memory interface 120 can be used to connect an external memory card, such as a MicroSD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0076] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0077] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0078] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.

[0079] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.

[0080] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.

[0081] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.

[0082] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0083] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.

[0084] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.

[0085] The touch sensor 180K is also called a "touch-sensitive device." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.

[0086] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0087] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0088] FIG2 is a diagram of the system architecture provided in an embodiment of the present application. Referring to FIG2 , the electronic device 100 may include an application layer, an operating system layer, and a hardware layer. The application layer may include one or more applications, such as Application 1, Application 2, etc. The application may be a third-party application or a system application, which is not specifically limited in the embodiment of the present application.

[0089] The operating system layer may include multiple audio partitions, for example, audio partition 1, audio partition 2, etc. Each audio partition may include a mixing module, a device routing module, a media session module, an audio focus management module, and a volume management module.

[0090] It is understandable that the traditional operating system layer only contains one audio subsystem. When audio diversion is performed, all applications share all the functions in the audio subsystem. Therefore, interference problems between applications will arise. In this application, the logical functions between applications are isolated through audio partitions, which can help solve the interference problem between applications during audio diversion. Among them, each audio partition can be considered as an audio subsystem, and each audio partition can correspond to an audio device, which can be a Bluetooth headset, speaker, smart screen and other devices. The embodiment of this application does not specifically limit the type of audio device.

[0091] In addition, the above-mentioned audio partitions can be created when audio is diverted, and can also be deleted when diversion is no longer needed. For example, when the Blue Night headphones are put into the box or the smart screen is turned off, the corresponding audio partition can be deleted.

[0092] The hardware layer can include multiple hardware drivers, which can provide drivers for different audio devices. For example, they can include Bluetooth drivers, speaker drivers, audio drivers, and smart screen drivers.

[0093] Figure 3 is an application scenario architecture diagram provided by an embodiment of the present application. Referring to Figure 3, the above application scenario may include a first device and multiple second devices (for example, a second device A and a second device B, etc.). Among them, the communication connection between the first device and the second device may be a wireless connection or a wired connection. The wireless connection may be a Wireless Fidelity (Wi-Fi) connection or other types of wireless connection methods. The embodiment of the present application does not specifically limit this. The first device may be the above-mentioned electronic device 100. For example, the first device may be a mobile phone or a tablet, and the second device may be an audio device. For example, the second device may be a Bluetooth headset, a speaker, or a smart screen. It will be understood that Figure 3 only exemplifies two second devices, but does not constitute a limitation on the embodiment of the present application. In some embodiments, more than two second devices may also be included.

[0094] Next, the audio playback method of an embodiment of the present application is exemplified by Figures 4A and 4B. Figure 4A is a schematic diagram of the effect of audio diversion playback. In the schematic diagram shown in Figure 4A, the first device is a mobile phone, the second device A is a Bluetooth headset, and the second device B is a smart screen. For example, the first device can include application 1, application 2, application 3 and application 4, among which application 1 and application 2 are diverted to the second device A through audio partition X for playback, and application 3 and application 4 are diverted to the second device B through audio partition Y for playback.

[0095] FIG4B is a flow chart of an embodiment of the audio playback method provided by the present application, which specifically includes the following steps:

[0096] Step 401: In response to a user's operation of offloading any one or more applications to any target second device, the first device creates an audio partition corresponding to the target second device.

[0097] Specifically, the user can perform an operation on the first device to divert the audio stream of any one or more applications to any target second device for playback. In response to the user's operation to divert the audio stream of any one or more applications to the target second device for playback, the first device creates an audio partition corresponding to the target second device.

[0098] For example, a user may perform an operation on the first device to divert application 1 and application 2 to the second device A for playback. In response to the user's operation to divert application 1 and application 2 to the second device A for playback, the first device creates an audio partition X, which corresponds to the second device A, so that the second device A receives the audio streams of application 1 and application 2 and then plays application 1 and application 2. And / or,

[0099] The user can perform an operation on the first device to divert application 3 and application 4 to the second device B for playback. In response to the user's operation of diverting application 3 and application 4 to the second device B for playback, the first device creates an audio partition Y, which corresponds to the second device B, so that the second device B receives the audio streams of application 3 and application 4 and plays application 3 and application 4.

[0100] It can be understood that the above embodiment is illustrative of the example of the first device diverting two applications to the second device, but it does not constitute a limitation on the embodiments of the present application. In some embodiments, the first device can also divert one application to the second device, or the first device can also divert three or more applications to the second device.

[0101] It is understandable that the audio streams between multiple applications received by the same target second device can be mixed, but the audio streams between multiple applications received by different target second devices cannot be mixed. Taking the above-mentioned application 1, application 2, application 3 and application 4 as an example, since the second device A receives application 1 and application 2, application 1 and application 2 can be mixed; similarly, the second device B receives application 3 and application 4, so application 3 and application 4 can be mixed. However, application 1 and application 2 correspond to different audio partitions and different second devices than application 3 and application 4, so application 1 and application 2 cannot be mixed with application 3 and application 4.

[0102] In some optional embodiments, since different audio partitions correspond to different second devices, and the audio playback capabilities and mixing capabilities between the second devices are different, the supported playback capabilities and mixing capabilities between the audio partitions may also be different. For example, the audio sampling rate and number of channels supported by the audio partitions may be different.

[0103] In some optional embodiments, when a first device offloads any one or more applications to a target second device, if an audio partition corresponding to the target second device has already been created, there is no need to create a new audio partition; the already created audio partition can be reused. For example, if a user offloads application 1 and application 2 to second device A, and audio partition X corresponding to second device A has already been created, the first device can directly reuse audio partition X without creating it again.

[0104] In some optional embodiments, the first device may include a default audio partition. That is, when there is no need to open a new audio partition, the first device may use the default audio partition for playback.

[0105] Step 402: The first device distributes audio streams of one or more applications to a target second device.

[0106] Specifically, after the first device has created an audio partition corresponding to the target second device, it can divert the audio streams of one or more applications to the target second device. If the first device diverts only the audio stream of one application to the target second device, the first device can directly divert the audio stream of the application to the target second device; if the first device diverts the audio streams of multiple applications to the target second device, the first device can mix the audio streams of the multiple applications before diverting them to the target second device.

[0107] For example, taking Figure 4A as an example, the first device can mix the audio streams of application 1 and application 2 through audio partition X and then divert the streams to the second device A corresponding to audio partition X, or the first device can mix the audio streams of application 3 and application 4 through audio partition Y and then divert the streams to the second device B corresponding to audio partition Y.

[0108] Step 403: In response to the user adjusting the media attributes of the first audio partition, the media attributes of the second audio partition remain unchanged.

[0109] Specifically, the user can also perform operations on the first device or the second device to change the media attributes of the first audio zone. The media attributes may include volume, focus, and media session. It is understood that the above media attributes are merely exemplary and do not constitute a limitation of the embodiments of the present application. In some embodiments, more media attributes may be included.

[0110] When the user adjusts the media attributes of the first audio partition on the first device or the second device, the media attributes of the first audio partition will be changed, but the media attributes of the second audio partition will not be affected, wherein the second audio partition may include one or more audio partitions other than the first audio partition.

[0111] Exemplarily, taking FIG. 4A as an example, if the user adjusts the media attributes of audio partition X, the media attributes of audio partition X may be changed, but the media attributes of audio partition Y will not be affected.

[0112] Next, we will take the media attribute volume as an example for illustrative explanation. Each audio partition can have independent volume management, all applications in any audio partition can share the same volume, and the volumes between different audio partitions are independent of each other. When the user adjusts the volume in audio partition X, it does not affect the volume of audio partition Y. Since audio partition X corresponds to the second device A and audio partition Y corresponds to the second device B, when the volume of audio partition X is adjusted, it only affects the listening volume of users who listen through the second device A, and does not affect the listening volume of users who listen through the second device B, so there will be no impact between audio partitions due to volume changes.

[0113] Next, an exemplary explanation is given by taking the media attribute as the focus. Each audio partition can have independent focus management, and all applications in any audio partition are in the same focus stack, and the focus stacks between different audio partitions are independent of each other. The application playback status within the audio partition affects each other through the focus, while the application playback status between audio partitions will not be affected by the focus change. For example, if the user chooses to open application 2 while listening to application 1, since application 1 and application 2 are in the same audio partition (for example, audio partition X), application 1 will be paused due to the loss of audio focus, but the applications in other partitions (for example, audio partition Y) will not be paused, that is, the applications in other partitions will not be affected by the focus change in audio partition X, and thus there will be no impact between audio partitions due to the focus change.

[0114] Next, an exemplary explanation is given by taking the media attribute as an example of a media session. Each audio partition can have an independent media session management, and all applications in any audio partition are in the same media session stack, and the media session stacks between different audio partitions are independent of each other. Media events (for example, play, pause, previous program, next program and other operation events) can be sent to the top application of the media session stack of the corresponding audio partition, and will not be sent to applications of irrelevant audio partitions. For example, when the user presses the button of the second device A to try to play and pause, the play-pause media event will be sent to the audio partition X corresponding to the second device A, and the audio partition X can pause the currently playing application (for example, application 1) according to the play-pause media event, but the above-mentioned play-pause media event will not be sent to audio partition Y, that is, it will not affect the application currently playing in audio partition Y, so that there will be no impact between audio partitions due to the media session operation.

[0115] In some optional embodiments, the user can also perform an operation on the first device to migrate an application in an audio partition to another audio partition, so as to migrate the playback of the application from one device to another device. In response to the user's migration operation, the first device can migrate the application in the first audio partition to the second audio partition, wherein the first audio partition and the second audio partition are two different audio partitions. For example, taking Figure 4A as an example, the user can migrate application 1 in audio partition X to audio partition Y, thereby changing the original playback of application 1 through the second device A to the playback of application 1 by the second device B. It can be understood that before application 1 is migrated, application 1 and application 2 are mixed in audio partition X and played by the second device A. After application 1 is migrated, application 1, application 3 and application 4 are mixed in audio partition Y and played by the second device B. Figure 5 exemplarily shows a schematic diagram of the effect of application migration.

[0116] It is understandable that after the application is migrated from the first audio partition to the second audio partition, the application may change the volume of the first audio partition to the volume of the second audio partition.

[0117] It can be understood that after the application is migrated from the first audio partition to the second audio partition, the application exits from the focus stack of the first audio partition and is added to the focus stack of the second audio partition.

[0118] It can be understood that after the application is migrated from the first audio partition to the second audio partition, the application exits from the media session stack of the first audio partition and is added to the media session stack of the second audio partition.

[0119] In some optional embodiments, when the first device detects that no application is playing in any audio partition, the audio partition can be deleted. For example, taking Figure 4A as an example, if application 1 and application 2 in audio partition X are both migrated to audio partition Y, audio partition X can be deleted.

[0120] In some optional embodiments, when the first device detects a disconnection with the second device, the audio partition corresponding to the disconnected second device may be deleted. For example, using FIG. 4A as an example, when the first device detects a disconnection with the second device A (e.g., the second device A is powered off or offline), the audio partition X corresponding to the second device A may be deleted.

[0121] FIG6 is a schematic structural diagram of an embodiment of an audio playback device of the present application. As shown in FIG6 , the audio playback device 60 may include: an adjustment module 61; wherein,

[0122] An adjustment module 61 is configured to respond to a user's operation of adjusting the media attributes of a first audio partition in the first device, whereby the media attributes of the first audio partition are changed while the media attributes of one or more second audio partitions in the first device remain unchanged; wherein the first audio partition and each of the one or more second audio partitions corresponds to a second device.

[0123] In one possible implementation, the audio playback device 60 further includes:

[0124] The creating module is configured to, in response to a user's operation of offloading any one or more applications to any target second device, enable the first device to create an audio partition corresponding to the target second device.

[0125] In one possible implementation, the audio playback device 60 further includes:

[0126] The multiplexing module is configured to, if the audio partition corresponding to the target second device has been created, cause the first device to multiplex the audio partition corresponding to the target second device.

[0127] In one possible implementation, the audio playback device 60 further includes:

[0128] The deleting module is configured to delete the target audio partition when the first device detects that no application is playing any target audio partition in the first audio partition and the one or more second audio partitions.

[0129] In one possible implementation, the deleting module is further configured to delete the audio partition corresponding to the disconnected second device when the first device detects that the first device is disconnected from any second device.

[0130] In one possible implementation, the audio playback device 60 further includes:

[0131] The migration module is configured to enable the first device to migrate one or more applications in the first audio partition to the second audio partition in response to a migration operation of the user.

[0132] In one possible implementation, the one or more second audio partitions support different audio playback capabilities and mixing capabilities.

[0133] In one possible implementation, the media attributes include at least volume, focus, and media session.

[0134] The audio playback device 60 provided in the embodiment shown in FIG6 can be used to execute the technical solution of the method embodiment shown in this application. Its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.

[0135] It should be understood that the division of the various modules of the audio playback device 60 shown in Figure 6 above is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. Moreover, these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. For example, the detection module can be a separately established processing element, or it can be integrated in a chip of an electronic device. The implementation of other modules is similar. In addition, these modules can all or partly be integrated together, or they can be implemented independently. During the implementation process, each step of the above method or each of the above modules can be completed by the hardware integrated logic circuit in the processor element or the instructions in the form of software.

[0136] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more microprocessors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, these modules may be integrated together to implement a system-on-a-chip (SOC).

[0137] In the above embodiments, the processor involved may include, for example, a CPU, a DSP, a microcontroller, or a digital signal processor, and may also include a GPU, an embedded neural network processor (Neural-network Process Units; hereinafter referred to as: NPU) and an image signal processor (hereinafter referred to as: ISP). The processor may also include necessary hardware accelerators or logic processing hardware circuits, such as ASICs, or one or more integrated circuits for controlling the execution of the program of the technical solution of this application. In addition, the processor may have the function of operating one or more software programs, and the software programs may be stored in a storage medium.

[0138] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer-readable storage medium is run on a computer, the computer executes the method provided by the embodiment shown in the present application.

[0139] An embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program product is run on a computer, it enables the computer to execute the method provided by the embodiment shown in the present application.

[0140] In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can represent: a, b, c, a and b, a and c, b and c or a and b and c, where a, b, c can be single or multiple.

[0141] Those skilled in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented using a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0142] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0143] In the several embodiments provided in this application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of this application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), magnetic disk or optical disk, and other media that can store program code.

[0144] The above description is merely a specific embodiment of the present application. Any person skilled in the art may easily conceive of variations or substitutions within the technical scope disclosed in this application, and such variations or substitutions shall be within the scope of protection of this application. The scope of protection of this application shall be subject to the scope of protection of the claims.

Claims

1. An audio playback method, characterized in that: Applied to a first device, the method includes: In response to a user adjusting a media attribute of a first audio partition in the first device, the media attribute of the first audio partition changes, and the media attributes of one or more second audio partitions in the first device remain unchanged; The first audio partition and each of the one or more second audio partitions correspond to a second device.

2. The method according to claim 1, characterized in that Before responding to the user's operation of adjusting the media attribute of the first audio zone in the first device, the method further includes: In response to a user's operation of streaming any one or more applications to any target second device, the first device creates an audio partition corresponding to the target second device.

3. The method according to claim 2, characterized in that Before the first device creates an audio partition corresponding to the target second device, the method further includes: If the audio partition corresponding to the target second device has been created, the first device reuses the audio partition corresponding to the target second device.

4. The method according to claim 1, characterized in that: The method further comprises: When the first device detects that no application plays any target audio partition in the first audio partition and the one or more second audio partitions, the target audio partition is deleted.

5. The method according to claim 1, characterized in that The method further comprises: When the first device detects that it is disconnected from any second device, the audio partition corresponding to the disconnected second device is deleted.

6. The method according to claim 1, characterized in that The method further comprises: In response to a migration operation of the user, the first device migrates one or more applications in the first audio partition to the second audio partition.

7. The method according to claim 1, characterized in that The one or more second audio partitions support different audio playback capabilities and audio mixing capabilities.

8. The method according to any one of claims 1 to 7, characterized in that: The media attributes include at least volume, focus, and media session.

9. A first device, characterized in that: include: A processor and a memory, wherein the memory is used to store a computer program; and the processor is used to run the computer program to implement the audio playback method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on a computer, the audio playing method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Audio response playback

    CN109076285A

  • Methods and interfaces for home media control

    CN109287140A

  • Audio playing method, electronic equipment, system and storage medium

    CN114968163A