Audio playing method and electronic device

By obtaining and processing the spatial status information of each device for spatial mixing processing, the problem of confusion in orientation when playing multiple devices is solved, ensuring that the audio data clearly sounds from their respective sound sources.

CN114650496BActive Publication Date: 2024-09-27VIVO MOBILE COMM CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202210225832.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-07
Publication Date
2024-09-27
Estimated Expiration
2042-03-07

AI Technical Summary

Technical Problem

When multiple electronic devices play audio data at the same time, users tend to feel disoriented and have difficulty distinguishing which device the audio data comes from.

Method used

By obtaining the control instructions of the spatial status information, the spatial status information of each device is determined, and spatial mixing processing is performed to generate target audio data to avoid orientation confusion.

Benefits of technology

It is realized that when multiple electronic devices play audio data at the same time, the audio data clearly sounds from the corresponding sound source, avoiding the feeling of confusion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114650496B
    Figure CN114650496B
Patent Text Reader

Abstract

The present application discloses an audio playback method and an electronic device, and belongs to the field of electronic technology. The audio playback method includes: obtaining a control instruction for spatial state information; determining the spatial state information of a first electronic device and each second electronic device according to the control instruction; performing spatial mixing processing on the audio data played by the first electronic device and the audio data played by each second audio data according to each spatial state information to obtain first target audio data; and sending the first target audio data to the audio playback device for playback. Spatial mixing processing is performed according to the spatial state information corresponding to the first electronic device and at least one second electronic device, respectively, to avoid the user from feeling disoriented when listening to multiple electronic devices located in different positions playing different audio data at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of electronic technology, and specifically relates to an audio playback method and an electronic device. Background Art

[0002] With the development of electronic technology, the use of electronic devices is becoming more and more common. In actual application scenarios, users sometimes use multiple electronic devices to play different audio data at the same time, for example, playing games on a computer while watching a live broadcast on a mobile phone.

[0003] If the audio is played in public, it may disturb others and have poor privacy. If multiple audio data are played simultaneously through headphones, no matter which direction the electronic device is relative to the user, the user will perceive the sound coming from the front, and there will be no time difference when the multiple different audio data arrive at the ear. Therefore, it may be difficult for the user to distinguish which electronic device the audio data comes from, resulting in a sense of confusion. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide an audio playback and electronic device that can solve the problem of how to avoid the user from feeling disoriented when listening to a variety of different audio data.

[0005] In a first aspect, an embodiment of the present application provides an audio playback method, which is applied to a first electronic device, wherein the first electronic device is connected to at least one second electronic device, and the first electronic device is connected to an audio playback device, and the audio playback method includes:

[0006] Control instructions for obtaining space status information;

[0007] determining, according to the control instruction, spatial state information of the first electronic device and each of the second electronic devices;

[0008] According to each of the spatial state information, spatial mixing processing is performed on the audio data played by the first electronic device and the audio data played by each of the second audio data to obtain first target audio data;

[0009] Sending first target audio data to the audio playback device for playback.

[0010] In a second aspect, an embodiment of the present application provides an audio playback device, which is applied to a first electronic device, wherein the first electronic device is connected to at least one second electronic device, and the first electronic device is connected to an audio playback device, and the audio playback device includes:

[0011] An acquisition module, used for obtaining control instructions of space status information;

[0012] a determination module, configured to determine the spatial state information of the first electronic device and each of the second electronic devices according to the control instruction;

[0013] a processing module, configured to perform spatial mixing processing on the audio data played by the first electronic device and the audio data played by each of the second audio data according to each of the spatial state information, so as to obtain first target audio data;

[0014] The sending module is used to send the first target audio data to the audio playing device for playing.

[0015] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the audio playback method described in the first aspect.

[0016] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the audio playback method described in the first aspect are implemented.

[0017] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the audio playback method as described in the first aspect.

[0018] In an embodiment of the present application, a control instruction for obtaining spatial state information is provided; according to the control instruction, the spatial state information of the first electronic device and each second electronic device is determined; according to each spatial state information, the audio data played by the first electronic device and the audio data played by each second audio data are spatially mixed to obtain first target audio data; and the first target audio data is sent to the audio playback device for playback. Through the technical solution of the embodiment of the present application, spatial mixing can be performed according to the spatial state information corresponding to the first electronic device and at least one second electronic device, respectively, to avoid the user's feeling of disorientation when listening to multiple electronic devices located in different positions playing different audio data at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a first flow chart of an audio playback method provided by an embodiment of the present application;

[0020] Figure 2 This is a schematic diagram of the connection relationship between a first electronic device, a second electronic device, and an audio playback device provided in an embodiment of the present application;

[0021] Figure 3This is a diagram of a setting interface for a spatial audio state in an audio playback method provided in an embodiment of the present application;

[0022] Figure 4A This is a schematic diagram of a first scenario of an audio playback method provided by an embodiment of the present application;

[0023] Figure 4B This is a schematic diagram of a second scenario of the audio playback method provided by an embodiment of the present application;

[0024] Figure 5 This is a schematic diagram of a third scenario of the audio playback method provided in an embodiment of the present application;

[0025] Figure 6 This is a second flow chart of the audio playback method provided by an embodiment of the present application;

[0026] Figure 7 is a structural diagram of an audio playback device provided in an embodiment of the present application;

[0027] Figure 8 It is a structural schematic diagram of an electronic device provided by an embodiment of the present application;

[0028] Fig. 9 It is a schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0030] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0031] The audio playback method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0032] Figure 1This is a first flow chart of an audio playback method provided in an embodiment of the present application.

[0033] The audio playing method is applied to a first electronic device, the first electronic device is connected to at least one second electronic device, and the first electronic device is connected to an audio playing device.

[0034] The first electronic device may be an electronic device having an audio data processing function and an audio playback function, such as a computer, a mobile phone, a tablet, etc. The second electronic device may be an electronic device having an audio data playback function, such as a computer, a mobile phone, a tablet, etc.

[0035] The at least one second electronic device may be one second electronic device or may be multiple second electronic devices.

[0036] The audio playback device may be headphones or other audio electronic devices.

[0037] Figure 2 Schematic diagram of the connection relationship between the first electronic device, the second electronic device and the audio playback device provided by an embodiment of the present application. Figure 2 As shown, a first electronic device 201 is connected to a second electronic device 202, and the first electronic device 201 is connected to a headset 203. A user wears the headset 203 and listens to the audio data played by the first electronic device 201 and the audio data played by the second electronic device 202 at the same time. Figure 2 In the present embodiment, the user faces the second electronic device 202 and can also watch the video played by the second electronic device 202.

[0038] Step 102, obtaining control instructions for space status information.

[0039] The spatial state information may be spatial position information, spatial position information and audio parameters, or spatial audio state. The audio parameters may be volume information, timbre information, and other parameters that may affect the auditory effect.

[0040] The spatial position information may be the spatial position information of the virtual sound source corresponding to the first electronic device in a preset sphere, or the spatial position information of the virtual sound source corresponding to any second electronic device in a preset sphere. The volume information may be the volume of the first electronic device, or the volume of any second electronic device.

[0041] The control instruction may be a setting instruction, a modification instruction, a detection instruction, etc.

[0042] It should be noted that the volume information can be adjusted independently or simultaneously with the spatial position information. It is also possible that after adjusting the spatial position information, the volume information can be adjusted to the volume information corresponding to the adjusted spatial position information.

[0043] Optionally, the spatial state information includes spatial position information and audio parameters, and obtaining a control instruction for the spatial state information includes: receiving a first control instruction for the spatial position information; and / or receiving a second control instruction for the audio parameters.

[0044] The first control instruction may be a setting instruction or a modification instruction for the spatial position information of the first electronic device, or may be a setting instruction or a modification instruction for the spatial position information of at least one second electronic device.

[0045] Optionally, receiving a first control instruction for spatial position information includes: in the first electronic device and at least one second electronic device, for any one electronic device, on a user interaction interface, determining the position information of a virtual sound source corresponding to the electronic device in a preset sphere as the spatial position information of the electronic device; receiving a position adjustment instruction of the virtual sound source; the position adjustment instruction is used to adjust the position information of the virtual sound source in the preset sphere.

[0046] The user interface can refer to Figure 3 . Figure 3 This is a diagram of a setting interface of a spatial audio state in an audio playback method provided by an embodiment of the present application. The diagram of the setting interface of the spatial audio state shows a spatial audio state 1 and a spatial audio state 2.

[0047] The spatial position information of the first electronic device, the second electronic device 1, the second electronic device 2, ..., and the second electronic device n corresponding to the spatial audio state 1, and the spatial position information of the first electronic device, the second electronic device 1, the second electronic device 2, ..., and the second electronic device n corresponding to the spatial audio state 2 can refer to Figure 3 shown.

[0048] The setting interface diagram of the spatial audio state also shows the parameter setting interface of the volume of the first electronic device, the volume of the second electronic device 1, the second electronic device 2, ... the second electronic device n in the spatial audio state one, and the parameter setting interface of the volume of the first electronic device, the volume of the second electronic device 1, the second electronic device 2, ... the second electronic device n in the spatial audio state two.

[0049] Figure 3The circle in the figure represents a sphere. In spatial audio state 1, the position indicated by the arrow corresponding to the first electronic device is the spatial position of the first electronic device on the sphere. Similarly, the positions indicated by the arrows corresponding to each second electronic device are the spatial positions of each second electronic device on the sphere. Spatial audio state 2 is similar to spatial audio state 1 and will not be described in detail here.

[0050] The position adjustment instruction may be to add a new virtual sound source in the preset sphere and set the position information of the virtual sound source, or to adjust a virtual sound source from a preset initial position information to a target position information that meets the user's needs in the preset sphere, or to adjust a virtual sound source from a position information that meets the user's old auditory needs to a position information that meets the user's new auditory needs in the preset sphere.

[0051] The second control instruction may be a setting instruction or a modification instruction for an audio parameter of the first electronic device, or may be a setting instruction or a modification instruction for an audio parameter of at least one second electronic device.

[0052] The audio parameter can be volume information, timbre information and other parameters that can affect the auditory effect. The following takes the audio parameter volume information as an example for explanation:

[0053] The user can pre-set volume information in different scenarios, specifically, can configure multiple volume states and the volume information of the first electronic device and the volume information of each second electronic device in each volume state. The second control instruction can also be a switching instruction for the volume state.

[0054] For example, the volume of audio data played by the first electronic device directly in front of the user is relatively high, while the volume of audio data played by the second electronic devices on both sides of the user is relatively low.

[0055] Optionally, the audio parameter includes volume information; receiving a second control instruction for the audio parameter includes: in the first electronic device and at least one second electronic device, for any electronic device, receiving a volume adjustment instruction for the electronic device on a user interaction interface.

[0056] The user interface can refer to Figure 3 . In Figure 3 In the user interaction interface shown, the volume information of each electronic device in the first electronic device and the at least one second electronic device can be set respectively, and the volume information can also be increased or decreased.

[0057] Optionally, the first electronic device is a main sound device located directly in front of the user; each second electronic device is a secondary sound device located not directly in front of the user; the control instruction for obtaining the spatial state information includes: obtaining a first main-auxiliary switching instruction; the first main-auxiliary switching instruction is used to change the spatial state information of the first electronic device and each second electronic device, so that the spatial state information of the selected second electronic device corresponds to the front of the user, and the spatial state information of the first electronic device corresponds to the non-front of the user; or, at least one second electronic device includes a target second electronic device; the target second electronic device is the main sound device, and the first electronic device is the secondary sound device; the control instruction for obtaining the spatial state information includes: obtaining a second main-auxiliary switching instruction; the second switching instruction is used to change the spatial state information of the first electronic device and the target second electronic device, so that the spatial state information of the first electronic device corresponds to the front of the user, and the spatial state information of the target second electronic device corresponds to the non-front of the user.

[0058] The main sound device is located directly in front of the user, and the user's attention is mainly focused on the audio data played by the main sound device; the auxiliary sound device is located not directly in front of the user, and it can be understood that the user's attention priority for the audio data played by the auxiliary sound device is lower than the audio data played by the main sound device.

[0059] For example, the computer directly in front of the user is playing an online class, and the computer is the main audio device. The mobile phone on the left side of the user is playing a shopping live broadcast, and the mobile phone is the auxiliary audio device. The user's main focus is on the online class, and his attention to the live broadcast audio data is lower than the online class audio data.

[0060] In the case where the at least one second electronic device includes a target second electronic device, the switching between the primary sound device and the secondary sound device may be as follows:

[0061] (a1) The first electronic device is the main audio device, and the target second electronic device is the auxiliary audio device. Through the first main-auxiliary switching instruction, the second electronic device is switched to the main audio device, and the first electronic device is switched to the auxiliary audio device.

[0062] (a2) The first electronic device is a secondary audio device, and the target second electronic device is a primary audio device. Through a second primary-secondary switching instruction, the first electronic device is switched to the primary audio device, and the second electronic device is switched to the secondary audio device.

[0063] For example, the first electronic device is the main sound device, which is located directly in front of the user, and the target second electronic device is the auxiliary sound device, which is located on the left side of the user. When the user turns to face the target second electronic device, the spatial state information of the first electronic device and the target second electronic device is changed through the first main-auxiliary switching instruction. In this case, the target second electronic device serves as the main sound device, which is located directly in front of the user, and the first electronic device serves as the auxiliary sound device, which is located on the right side of the user.

[0064] In the case where the at least one second electronic device includes at least two second electronic devices, taking the at least one second electronic device including the second electronic device 1 and the second electronic device 2 as an example, the switching between the main sound device and the auxiliary sound device in this case is described:

[0065] (b1) The first electronic device is a main audio device, and the second electronic device 1 and the second electronic device 2 are both auxiliary audio devices. Through the first main-auxiliary switching instruction, the selected second electronic device 1 is switched to the main audio device, and the first electronic device is switched to the auxiliary audio device;

[0066] (b2) the first electronic device is a main audio device, the second electronic device 1 and the second electronic device 2 are both auxiliary audio devices, and the selected second electronic device 2 is switched to the main audio device and the first electronic device is switched to the auxiliary audio device through the first main-auxiliary switching instruction;

[0067] (b3) the second electronic device 2 is the main sound device, the first electronic device and the second electronic device 1 are both auxiliary sound devices, and the selected first electronic device is switched to the main sound device and the second electronic device 2 is switched to the auxiliary sound device through the third main-auxiliary switching instruction;

[0068] (b4) the second electronic device 2 is the main sound device, the first electronic device and the second electronic device 1 are both auxiliary sound devices, and the selected second electronic device 1 is switched to the main sound device and the second electronic device 2 is switched to the auxiliary sound device through the third main-auxiliary switching instruction;

[0069] (b5) the second electronic device 1 is the main sound device, the first electronic device and the second electronic device 2 are both auxiliary sound devices, and the selected first electronic device is switched to the main sound device and the second electronic device 1 is switched to the auxiliary sound device through the third main-auxiliary switching instruction;

[0070] (b6) The second electronic device 1 is the main sound device, and the first electronic device and the second electronic device 2 are both auxiliary sound devices. Through the third main-auxiliary switching instruction, the selected second electronic device 2 is switched to the main sound device, and the second electronic device 1 is switched to the auxiliary sound device.

[0071] The first main-auxiliary switching instruction includes at least the following implementation methods:

[0072] (c1) Control operations performed on the preset user interaction interface with respect to the space status information.

[0073] For example, by rotating the preset sphere, the position information of the virtual sound source corresponding to the electronic device selected as the main sound device in the preset sphere reaches the preset position corresponding to the main sound device after the rotation. In this case, the virtual sound source originally at the preset position moves to other positions in the sphere after the rotation.

[0074] For another example, in the first electronic device and at least one second electronic device, each electronic device corresponds to a virtual sound source. The virtual sound source is dragged in the preset sphere to change the position information of the virtual sound source in the preset sphere. The user can drag the virtual sound source corresponding to the first electronic device so that the virtual sound source leaves the preset position corresponding to the main sound device; the user can also drag the virtual sound source corresponding to the second electronic device to the preset position.

[0075] For example, the user interaction interface displays multiple preset spatial audio states, in which the first electronic device is the main audio device and the target second electronic device is the secondary audio device in spatial audio state 1, and the target second electronic device is the main audio device and the first electronic device is the secondary audio device in spatial audio state 2. The current state is spatial audio state 1, and the state is switched to spatial audio state 2 according to user operation.

[0076] (c2) Move the pupil fixation point.

[0077] For example, a user initially looks at a computer in front of them, then turns to look at a mobile phone on the left.

[0078] The second main-auxiliary switching instruction and the third main-auxiliary switching instruction are similar to the first main-auxiliary switching instruction and will not be repeated here.

[0079] The spatial state information of the second electronic device corresponds to the front of the user, which may be that the position information of the virtual sound source corresponding to the second electronic device in the preset sphere is located at the preset position of the main sound device in the preset sphere, or that the pupil gaze point is located at the second electronic device.

[0080] In this case, the audio data played by the second electronic device sounds like it is coming from the front.

[0081] The spatial state information of the first electronic device corresponds to the non-directly in front of the user, which may be that the position information of the virtual sound source corresponding to the first electronic device in the preset sphere is not at the preset position of the main sound device in the preset sphere, or that the pupil gaze point is located outside the first electronic device.

[0082] In this case, the audio data played by the first electronic device sounds like it is coming from a direction other than the front.

[0083] The spatial state information of the first electronic device corresponds to the front of the user, and the spatial state information of the target second electronic device corresponds to the non-front of the user, which is similar to the above features and will not be repeated here.

[0084] It should be noted that, when the actual positions of the first electronic device and the second electronic device do not change, when the spatial position information of the first electronic device in the preset sphere changes, the spatial position information of each second electronic device in the preset sphere changes accordingly. Figure 4A and Figure 4B .

[0085] Figure 4A This is a schematic diagram of a first scenario of an audio playback method provided by an embodiment of the present application; Figure 4B This is a schematic diagram of a second scenario of the audio playback method provided in an embodiment of the present application.

[0086] like Figure 4A As shown in FIG. 1 , in the first scenario, the first electronic device 401 is located directly in front of the user, and the second electronic device 402 is located on the right side of the user. Figure 4B As shown, in the second scenario, the first electronic device 401 is located on the left side of the user, and the second electronic device 402 is located directly in front of the user.

[0087] For example, in the first scenario, the user is looking at the first electronic device 401 in front of him, and at the same time, he is listening to the audio data played by the first electronic device 401 and the audio data played by the second electronic device on the right. Then, in the second scenario, the user turns his head to look at the second electronic device 402, and at the same time, he is listening to the audio data played by the first electronic device 401 and the audio data played by the second electronic device on the right. The actual positions of the first electronic device 401 and the second electronic device 402 have not changed, but the position of the user's pupil gaze point has changed. In this case, when the second electronic device 402 is located in front of the user, the first electronic device 401 is located on the left side of the user.

[0088] Optionally, the control instruction for acquiring the spatial state information includes: acquiring a first detection result of the first electronic device for the pupil gaze point and a second detection result of each second electronic device for the pupil gaze point.

[0089] The first electronic device and each second electronic device may be provided with a sensor capable of detecting pupil gaze points. After each second electronic device detects pupil gaze points through the sensor, it may send the obtained second detection result to the first electronic device.

[0090] At the same time point, the pupil gaze point may exist on the first electronic device or on a second electronic device.

[0091] The first detection result may include whether the pupil gaze point is detected, and may also include position information of the pupil gaze point on the first electronic device.

[0092] The second detection result may include whether the pupil gaze point is detected, and may also include position information of the pupil gaze point on the second electronic device.

[0093] Step 104: determining the spatial state information of the first electronic device and each second electronic device according to the control instruction.

[0094] Optionally, according to the control instruction, determining the spatial state information of the first electronic device and each second electronic device includes: determining the target position being gazed at by the pupil according to the first detection result and at least one second detection result; determining the spatial state information of the first electronic device and each second electronic device according to the target position.

[0095] If the first detection result can indicate that the pupil gaze point and the position information of the pupil gaze point are detected on the first electronic device, and the second detection result can indicate that the pupil gaze point is not detected on the second electronic device, then it can be determined that the target position gazed by the pupil is on the first electronic device, and the position information of the target position is the position information of the pupil gaze point.

[0096] If the second detection result can indicate that the pupil gaze point and the position information of the pupil gaze point are detected on the second electronic device, and the first detection result can indicate that the pupil gaze point is not detected on the first electronic device, then it can be determined that the target position gazed by the pupil is on the second electronic device, and the position information of the target position is the position information of the pupil gaze point.

[0097] According to the position information of the pupil gaze point, the spatial state information of the first electronic device and each second electronic device can be determined

[0098] Optionally, based on the target position, spatial state information of the first electronic device and each second electronic device is determined, including: based on the target position, determining a target electronic device that is being gazed at by the pupil and at least one non-target electronic device that is not being gazed at among the first electronic device and at least one second electronic device; based on the target position, determining the spatial state information of the target electronic device; based on a preset set of spatial state information and the spatial state information of the target electronic device, determining the spatial state information of each non-target electronic device.

[0099] For example, a first electronic device is connected to two second electronic devices, the two second electronic devices are respectively second electronic device 1 and second electronic device 2. If the target position is on the first electronic device, the first electronic device is determined as the target electronic device being watched by the pupil, and the second electronic device 1 and the second electronic device 2 are determined as non-target electronic devices that are not being watched. If the target position is on the second electronic device 2, the second electronic device 2 is determined as the target electronic device being watched by the pupil, and the second electronic device 1 and the first electronic device are determined as non-target electronic devices that are not being watched.

[0100] Determining the spatial state information of the target electronic device according to the target position can be understood as making the position information of the pupil gaze point correspond to the position in the preset sphere that corresponds to the front of the user.

[0101] The preset spatial state information set may correspond to a preset spatial audio state. The spatial state information of each non-target electronic device is determined based on the preset spatial state information set and the spatial state information of the target electronic device. It can be understood that the relative positions of the first electronic device and each second electronic device in the preset sphere are fixed, so the spatial state information of each non-target electronic device can be determined when the position information of the pupil gaze point corresponds to the position corresponding to the front of the user in the preset sphere.

[0102] Figure 5 This is a schematic diagram of a third scenario of the audio playback method provided in an embodiment of the present application.

[0103] like Figure 5 As shown, first, the sensor detects that the user's pupil gaze point 503 is located at the first electronic device 501, and the user focuses on the first electronic device 501. At this time, the first electronic device 501 is located directly in front of the user, and the spatial position information of the first electronic device 501 in the preset sphere corresponds to the front of the user, and the volume of the first electronic device 501 is a preset value. The second electronic device 502 is located on the right hand side of the user, and the spatial position information of the second electronic device 502 in the preset sphere corresponds to the right side of the user. The volume of the second electronic device 502 is slightly smaller than that of the first electronic device 501. At this time, the audio data played by the first electronic device 501 is the main one, and the audio data played by the second electronic device 502 is supplementary.

[0104] Secondly, the user's pupil fixation point 503 moves out of the edge of the screen of the first electronic device. The volume of the first electronic device 501 gradually decreases as the pupil fixation point 503 moves out of the screen. The spatial position information of the first electronic device 501 in the preset sphere gradually moves to the left as the pupil fixation point 503 moves, and the direction tends to the left hand side of the user.

[0105] Then, the user's pupil fixation point 503 begins to enter the edge of the screen of the second electronic device 502. The volume of the second electronic device 502 gradually increases as the pupil fixation point 503 enters the screen. The spatial position information of the second electronic device in the preset sphere gradually moves to the left as the pupil fixation point 503 moves, and the direction tends to be directly in front of the user.

[0106] Finally, pupil fixation point 503 is located at second electronic device 502. The volume of second electronic device 502 gradually increases until it reaches a preset value, and the spatial position information of second electronic device 502 in the preset sphere corresponds to the front of the user. The volume of first electronic device 501 gradually decreases, and the spatial position information of first electronic device in the preset sphere corresponds to the left hand side of the user. At this time, the audio data played by second electronic device 502 is dominant, and the audio data played by first electronic device 501 is dominant.

[0107] Optionally, based on the target position, spatial state information of the first electronic device and each second electronic device is determined, including: based on the target position, determining a target electronic device that is being gazed at by the pupil and at least one non-target electronic device that is not being gazed at among the first electronic device and at least one second electronic device; based on the target electronic device, determining a corresponding spatial state information combination from a plurality of preset alternative spatial state information combinations; the spatial state information combination corresponding to the target electronic device includes the spatial state information of the target electronic device and the spatial state information of each non-target electronic device.

[0108] The preset multiple candidate spatial state information combinations may be spatial state information combinations corresponding to multiple preset spatial audio states. For example, the candidate spatial state information combination may include spatial state information combination 1 corresponding to the first electronic device directly in front of the user and spatial state information combination 2 corresponding to the second electronic device directly in front of the user. In the case where the target electronic device is the first electronic device, spatial state information combination 1 may be determined based on the first electronic device, and each spatial state information corresponding to spatial state combination 1 may be determined as spatial state information of the first electronic device and each second electronic device.

[0109] Step 106 , performing spatial mixing processing on the audio data played by the first electronic device and the audio data played by each second audio data according to each spatial state information, to obtain first target audio data.

[0110] Spatial mixing processing may be, in the presence of at least two sound sources in different positions, mixing audio data from various sound sources, so that when the mixed multiple audio data are played through the audio playback device, each audio data sounds like it is transmitted from the corresponding sound source, rather than from the same direction. In this process, although a mixing operation is performed on multiple audio data, the mixing operation may be to make multiple audio data into an audio file, and when the audio file is played, each audio data still sounds independent and comes from the corresponding sound source, and multiple sound sources are located in different directions of the user. For example, the spatial position information of the first electronic device corresponds to the front of the user, the value of the volume information of the first electronic device is x, the spatial position information of the second electronic device corresponds to the left of the user, the value of the volume information of the second electronic device is y, x>y. After the spatial mixing processing of the first audio data and the second audio data, the first audio data sounds like it comes from the front of the user, the volume is x, and the second audio data sounds like it comes from the left of the user, the volume is y.

[0111] Through spatial mixing processing, a clear audio experience can be obtained, so that each audio data sounds like it comes from a corresponding sound source. Each sound source can be located in a different direction, and various audio parameters such as the volume of each audio data can also be flexibly set separately, so that only one audio playback device can play the audio data after spatial mixing processing to achieve the effect of multiple audio playback devices located in different directions of the user as sound sources playing the corresponding audio data at the same time.

[0112] Step 108: Send the first target audio data to the audio playback device for playback.

[0113] The first electronic device may send the first target audio data to the earphone, so that the first target audio data is played through the earphone. For example, the spatial state information of the first electronic device corresponds to the front of the user, and the spatial state information of the second electronic device corresponds to the left of the user. When the user listens to the first target audio data through the earphone, the user may hear the first audio data coming from the front with a loud volume, and the second audio data coming from the left with a quiet volume.

[0114] Optionally, the audio playback method also includes: when the audio data played by the first electronic device is replaced, spatial mixing processing is performed on the replaced audio data played by the first electronic device and the audio data played by each second audio data according to each spatial status information to obtain second target audio data, and sending it to the audio playback device for playback; or, when the audio data played by each second electronic device is replaced, spatial mixing processing is performed on the audio data played by the first electronic device and the replaced audio data played by each second audio data according to each spatial status information to obtain third target audio data, and sending it to the audio playback device for playback.

[0115] In such Figure 1 In the embodiment of the audio playback method shown, a control instruction for obtaining spatial state information is provided; according to the control instruction, the spatial state information of the first electronic device and each second electronic device is determined; according to each spatial state information, the audio data played by the first electronic device and the audio data played by each second audio data are spatially mixed to obtain first target audio data; and the first target audio data is sent to the audio playback device for playback. Through the technical solution of the embodiment of the present application, spatial mixing can be performed according to the spatial state information corresponding to the first electronic device and at least one second electronic device, respectively, to avoid the user's feeling of disorientation when listening to multiple electronic devices located in different positions playing different audio data at the same time.

[0116] Based on the same technical concept, the present application also provides an embodiment of an audio playback method, as shown in FIG4 . Figure 6 FIG. 2 is a second flow chart of an audio playback method provided in an embodiment of the present application. The audio playback device in this embodiment may be a headset.

[0117] Reference Figure 6 , step 602, the first electronic device and the second electronic device are connected to each other, and the earphone is connected to the first electronic device.

[0118] Step 604: The second electronic device transmits the audio data to the first electronic device.

[0119] Step 606: The user sets the spatial location information according to the actual location status of the device or preferences.

[0120] Step 608: The user sets the volume for different scenes. The user can configure multiple volume states.

[0121] Step 610: Perform spatial mixing processing on the audio data played by the first electronic device and the second electronic device, and output the result to headphones.

[0122] After step 610 , at least one of step 612 , step 618 , and step 620 may be performed.

[0123] Step 612, detecting the pupil gaze point.

[0124] Step 614: whether the target electronic device is switched.

[0125] If yes, the process returns to step 608 ; if no, the process returns to step 606 .

[0126] Step 616, maintain the original output state.

[0127] Step 618, determine whether the audio data has been changed.

[0128] If yes, the process returns to step 606 ; if no, the process returns to step 616 .

[0129] Step 620, determine whether the volume status is switched.

[0130] If yes, the process returns to step 608 ; if no, the process returns to step 616 .

[0131] like Figure 6 The audio playback method provided in the illustrated embodiment can implement the various processes implemented in the aforementioned audio playback method embodiment, and will not be described again here to avoid repetition.

[0132] It should be noted that the audio playback method provided in the embodiment of the present application can be executed by an audio playback device or a control module in the audio playback device for executing the audio playback method. In the embodiment of the present application, the audio playback device provided in the embodiment of the present application is described by taking the method for executing audio playback by an audio playback device as an example.

[0133] Figure 7 It is a structural diagram of an audio playback device provided in one embodiment of the present application.

[0134] Reference Figure 7 As shown, an audio playback device is applied to a first electronic device, the first electronic device is connected to at least one second electronic device, and the first electronic device is connected to an audio playback device, and the audio playback device includes:

[0135] An acquisition module 701 is used to acquire control instructions of space status information;

[0136] A determination module 702, configured to determine the spatial state information of the first electronic device and each second electronic device according to the control instruction;

[0137] The processing module 703 is used to perform spatial mixing processing on the audio data played by the first electronic device and the audio data played by each second audio data according to each spatial state information to obtain first target audio data;

[0138] The sending module 704 is used to send the first target audio data to the audio playing device for playing.

[0139] Optionally, the first electronic device is a main sound device; each second electronic device is a secondary sound device; and the acquisition module is specifically used to:

[0140] Acquire a first main-auxiliary switching instruction; the first main-auxiliary switching instruction is used to change the space state information of the first electronic device and each second electronic device, so that the space state information of the selected second electronic device corresponds to the front of the user, and the space state information of the first electronic device corresponds to the non-front of the user;

[0141] Alternatively, the at least one second electronic device includes a target second electronic device; the target second electronic device is a main sound device, and the first electronic device is a secondary sound device; the acquisition module is specifically used to:

[0142] Obtain a second primary-auxiliary switching instruction; the second switching instruction is used to change the spatial state information of the first electronic device and the target second electronic device, so that the spatial state information of the first electronic device corresponds to the front of the user, and the spatial state information of the target second electronic device corresponds to the non-front of the user.

[0143] Optionally, the acquisition module 701 is specifically configured to:

[0144] A first detection result of the first electronic device for the pupil gaze point and a second detection result of each second electronic device for the pupil gaze point are obtained.

[0145] Optionally, the determination module 702 includes:

[0146] A first determining unit, configured to determine a target position being gazed at by the pupil according to the first detection result and at least one second detection result;

[0147] The second determining unit is used to determine the spatial state information of the first electronic device and each second electronic device according to the target position.

[0148] Optionally, the second determining unit is specifically configured to:

[0149] According to the target position, determining a target electronic device that is gazed at by the pupil and at least one non-target electronic device that is not gazed at in the first electronic device and at least one second electronic device;

[0150] Determine spatial state information of the target electronic device according to the target position;

[0151] The spatial state information of each non-target electronic device is determined according to a preset spatial state information set and the spatial state information of the target electronic device.

[0152] Optionally, the second determining unit is specifically configured to:

[0153] According to the target position, determining a target electronic device that is gazed at by the pupil and at least one non-target electronic device that is not gazed at in the first electronic device and at least one second electronic device;

[0154] According to the target electronic device, a corresponding space state information combination is determined from a plurality of preset candidate space state information combinations; the space state information combination corresponding to the target electronic device includes the space state information of the target electronic device and the space state information of each non-target electronic device.

[0155] Optionally, the audio playback device further includes:

[0156] A mixing module is used to, when the audio data played by the first electronic device is replaced, perform spatial mixing processing on the replaced audio data played by the first electronic device and the audio data played by each second audio data according to each spatial status information, obtain second target audio data, and send it to the audio playback device for playback; or, when the audio data played by each second electronic device is replaced, perform spatial mixing processing on the audio data played by the first electronic device and the replaced audio data played by each second audio data according to each spatial status information, obtain third target audio data, and send it to the audio playback device for playback.

[0157] Optionally, the spatial state information includes spatial position information and audio parameters, and the acquisition module 701 includes:

[0158] A first receiving unit, configured to receive a first control instruction for spatial position information;

[0159] and / or,

[0160] The second receiving unit is used to receive a second control instruction for the audio parameter.

[0161] Optionally, the first receiving unit is specifically configured to:

[0162] In the first electronic device and at least one second electronic device, for any electronic device, on a user interaction interface, position information of a virtual sound source corresponding to the electronic device in a preset sphere is determined as the spatial position information of the electronic device;

[0163] A position adjustment instruction of a virtual sound source is received; the position adjustment instruction is used to adjust the position information of the virtual sound source in a preset sphere.

[0164] Optionally, the audio parameter includes volume information; the second receiving unit is specifically configured to:

[0165] In the first electronic device and at least one second electronic device, for any one of the electronic devices, a volume adjustment instruction for the electronic device is received on a user interaction interface.

[0166] The audio playback device provided in the embodiment of the present application obtains a control instruction for spatial state information; determines the spatial state information of the first electronic device and each second electronic device according to the control instruction; performs spatial mixing processing on the audio data played by the first electronic device and the audio data played by each second audio data according to each spatial state information to obtain first target audio data; and sends the first target audio data to the audio playback device for playback. Through the technical solution of the embodiment of the present application, spatial mixing processing can be performed according to the spatial state information corresponding to the first electronic device and at least one second electronic device, thereby avoiding the user's feeling of disorientation when listening to multiple electronic devices located in different positions playing different audio data at the same time.

[0167] The audio playback device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0168] The audio playback device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0169] The audio playback device provided in the embodiment of the present application can implement each process implemented in the aforementioned audio playback method embodiment, and will not be described again here to avoid repetition.

[0170] Alternatively, if Figure 8 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801, a memory 802, and a program or instruction stored in the memory 802 and executable on the processor 801. When the program or instruction is executed by the processor 801, each process of the above-mentioned audio playback method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0171] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0172] Fig. 9 It is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0173] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910 and other components.

[0174] Those skilled in the art will appreciate that the electronic device 900 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 910 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0175] The processor 910 is used for obtaining control instructions of space status information;

[0176] determining, according to the control instruction, spatial state information of the first electronic device and each second electronic device;

[0177] According to each piece of spatial state information, spatial mixing processing is performed on the audio data played by the first electronic device and the audio data played by each piece of second audio data to obtain first target audio data;

[0178] The first target audio data is sent to the audio playback device for playback.

[0179] In an embodiment of the present application, a control instruction for obtaining spatial state information is provided; according to the control instruction, the spatial state information of the first electronic device and each second electronic device is determined; according to each spatial state information, the audio data played by the first electronic device and the audio data played by each second audio data are spatially mixed to obtain first target audio data; and the first target audio data is sent to the audio playback device for playback. Through the technical solution of the embodiment of the present application, spatial mixing can be performed according to the spatial state information corresponding to the first electronic device and at least one second electronic device, respectively, to avoid the user's feeling of disorientation when listening to multiple electronic devices located in different positions playing different audio data at the same time.

[0180] Optionally, the first electronic device is a main audio device located directly in front of the user; each second electronic device is a secondary audio device located not directly in front of the user; the processor 910 is configured to:

[0181] Control instructions for obtaining space status information include:

[0182] Acquire a first main-auxiliary switching instruction; the first main-auxiliary switching instruction is used to change the space state information of the first electronic device and each second electronic device, so that the space state information of the selected second electronic device corresponds to the front of the user, and the space state information of the first electronic device corresponds to the non-front of the user;

[0183] Alternatively, the at least one second electronic device includes a target second electronic device; the target second electronic device is a main sound device, and the first electronic device is a secondary sound device; and the control instruction for acquiring the space state information includes:

[0184] Obtain a second primary-auxiliary switching instruction; the second switching instruction is used to change the spatial state information of the first electronic device and the target second electronic device, so that the spatial state information of the first electronic device corresponds to the front of the user, and the spatial state information of the target second electronic device corresponds to the non-front of the user.

[0185] Optionally, the processor 910 is further configured to:

[0186] Control instructions for obtaining space status information include:

[0187] A first detection result of the first electronic device for the pupil gaze point and a second detection result of each second electronic device for the pupil gaze point are obtained.

[0188] Optionally, the processor 910 is further configured to:

[0189] Determining, according to the control instruction, space state information of the first electronic device and each second electronic device, including:

[0190] Determining a target position gazed at by the pupil based on the first detection result and at least one second detection result;

[0191] According to the target position, spatial state information of the first electronic device and each second electronic device is determined.

[0192] Optionally, the processor 910 is further configured to:

[0193] Determining spatial state information of the first electronic device and each second electronic device according to the target location includes:

[0194] According to the target position, determining a target electronic device that is gazed at by the pupil and at least one non-target electronic device that is not gazed at in the first electronic device and at least one second electronic device;

[0195] Determine spatial state information of the target electronic device according to the target position;

[0196] The spatial state information of each non-target electronic device is determined according to a preset spatial state information set and the spatial state information of the target electronic device.

[0197] Optionally, the processor 910 is further configured to:

[0198] Determining spatial state information of the first electronic device and each second electronic device according to the target location includes:

[0199] According to the target position, determining a target electronic device that is gazed at by the pupil and at least one non-target electronic device that is not gazed at in the first electronic device and at least one second electronic device;

[0200] According to the target electronic device, a corresponding space state information combination is determined from a plurality of preset candidate space state information combinations; the space state information combination corresponding to the target electronic device includes the space state information of the target electronic device and the space state information of each non-target electronic device.

[0201] Optionally, the processor 910 is further configured to:

[0202] When the audio data played by the first electronic device is replaced, spatial mixing is performed on the replaced audio data played by the first electronic device and the audio data played by each second audio data according to each spatial state information, second target audio data is obtained, and sent to the audio playback device for playback;

[0203] or,

[0204] When the audio data played by each second electronic device is replaced, spatial mixing is performed on the audio data played by the first electronic device and the replaced audio data played by each second audio data according to each spatial status information to obtain third target audio data, and send it to the audio playback device for playback.

[0205] Optionally, the processor 910 is further configured to:

[0206] The spatial state information includes spatial position information and audio parameters. The control instructions for obtaining the spatial state information include:

[0207] receiving a first control instruction for spatial position information;

[0208] and / or,

[0209] A second control instruction for an audio parameter is received.

[0210] Optionally, the processor 910 is further configured to:

[0211] Receiving a first control instruction for spatial position information includes:

[0212] In the first electronic device and at least one second electronic device, for any electronic device, on a user interaction interface, position information of a virtual sound source corresponding to the electronic device in a preset sphere is determined as the spatial position information of the electronic device;

[0213] A position adjustment instruction of a virtual sound source is received; the position adjustment instruction is used to adjust the position information of the virtual sound source in a preset sphere.

[0214] Optionally, the audio parameter includes volume information; the processor 910 is further configured to:

[0215] Receiving a second control instruction for an audio parameter includes:

[0216] In the first electronic device and at least one second electronic device, for any one of the electronic devices, a volume adjustment instruction for the electronic device is received on a user interaction interface.

[0217] In an embodiment of the present application, through a first main-auxiliary switching instruction and a second main-auxiliary switching instruction, the main sound device and the auxiliary sound device can be flexibly switched in a first electronic device and at least one second electronic device; according to the detection of the pupil gaze point, the spatial position information and the spatial volume information can be freely and flexibly controlled to provide the user with the audio playback effect most suitable for the user during the user's natural line of sight shifting process; by receiving the position adjustment instruction of the virtual sound source and the volume adjustment instruction for the electronic device on the user interaction interface, the spatial state information of each electronic device can be flexibly set to enrich the auditory effect.

[0218] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 909 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 910 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 910.

[0219] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned audio playback method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0220] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0221] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned audio playback method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0222] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0223] It should be noted that, in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one, a second electronic device 2, ..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0224] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0225] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. An audio playback method, applied to a first electronic device, wherein the first electronic device is connected to at least one second electronic device, and the first electronic device is connected to an audio playback device, characterized in that: include: A control instruction for acquiring space state information, wherein the space state information includes at least one of space position information and audio parameters; determining, according to the control instruction, spatial state information of the first electronic device and each of the second electronic devices; According to each of the spatial state information, spatial mixing processing is performed on the audio data played by the first electronic device and the audio data played by each of the second electronic devices to obtain first target audio data, the first electronic device and each of the second electronic devices being located at different positions, the spatial mixing processing comprising mixing the audio data played by the first electronic device and the audio data played by each of the second electronic devices so that the first target audio data corresponds to sound sources in different directions when being played; Sending first target audio data to the audio playback device for playback.

2. The method according to claim 1, characterized in that The first electronic device is a main sound device located directly in front of the user; each of the second electronic devices is a secondary sound device located not directly in front of the user; The control instruction for obtaining the space status information includes: Acquire a first main-auxiliary switching instruction; the first main-auxiliary switching instruction is used to change the spatial state information of the first electronic device and each of the second electronic devices, so that the spatial state information of the selected second electronic device corresponds to the front of the user, and the spatial state information of the first electronic device corresponds to the non-front of the user; Alternatively, the at least one second electronic device includes a target second electronic device; the target second electronic device is the main sound device, and the first electronic device is the auxiliary sound device; the control instruction for acquiring the space state information includes: Obtain a second primary-auxiliary switching instruction; the second primary-auxiliary switching instruction is used to change the spatial state information of the first electronic device and the target second electronic device, so that the spatial state information of the first electronic device corresponds to the front of the user, and the spatial state information of the target second electronic device corresponds to the non-front of the user.

3. The method according to claim 1, characterized in that The control instruction for obtaining the space status information includes: A first detection result of the first electronic device for a pupil gaze point and a second detection result of each of the second electronic devices for the pupil gaze point are obtained.

4. The method according to claim 3, characterized in that The determining, according to the control instruction, the spatial state information of the first electronic device and each of the second electronic devices includes: determining a target position being gazed at by the pupil according to the first detection result and at least one of the second detection results; According to the target position, spatial state information of the first electronic device and each of the second electronic devices is determined.

5. The method according to claim 4, characterized in that The determining, according to the target position, the spatial state information of the first electronic device and each of the second electronic devices includes: According to the target position, determining a target electronic device that is gazed at by the pupil and at least one non-target electronic device that is not gazed at among the first electronic device and the at least one second electronic device; Determining spatial state information of the target electronic device according to the target position; The spatial state information of each of the non-target electronic devices is determined according to a preset spatial state information set and the spatial state information of the target electronic device.

6. The method according to claim 4, characterized in that The determining, according to the target position, the spatial state information of the first electronic device and each of the second electronic devices includes: According to the target position, determining a target electronic device that is gazed at by the pupil and at least one non-target electronic device that is not gazed at among the first electronic device and the at least one second electronic device; According to the target electronic device, a corresponding space state information combination is determined from a plurality of preset candidate space state information combinations; the space state information combination corresponding to the target electronic device includes the space state information of the target electronic device and the space state information of each of the non-target electronic devices.

7. The method according to claim 1, characterized in that Also includes: When the audio data played by the first electronic device is replaced, spatial mixing is performed on the replaced audio data played by the first electronic device and the audio data played by each of the second electronic devices according to each of the spatial state information to obtain second target audio data, and the second target audio data is sent to the audio playback device for playback; or, When the audio data played by each of the second electronic devices is replaced, spatial mixing is performed on the audio data played by the first electronic device and the replaced audio data played by each of the second electronic devices according to each of the spatial status information to obtain third target audio data, and send it to the audio playback device for playback.

8. The method according to claim 1, characterized in that The control instruction for obtaining the space status information includes: receiving a first control instruction for the spatial position information; and / or, A second control instruction for the audio parameter is received.

9. The method according to claim 8, characterized in that The receiving a first control instruction for the spatial position information includes: In the first electronic device and the at least one second electronic device, for any one of the electronic devices, on a user interaction interface, determining position information of a virtual sound source corresponding to the electronic device in a preset sphere as spatial position information of the electronic device; A position adjustment instruction of the virtual sound source is received; the position adjustment instruction is used to adjust the position information of the virtual sound source in the preset sphere.

10. The method according to claim 8, characterized in that The audio parameters include volume information; The receiving a second control instruction for the audio parameter includes: In the first electronic device and the at least one second electronic device, for any one of the electronic devices, a volume adjustment instruction for the electronic device is received on a user interaction interface.

11. An audio playback device, applied to a first electronic device, the first electronic device is connected to at least one second electronic device, and the first electronic device is connected to an audio playback device, characterized in that: include: An acquisition module, configured to acquire a control instruction of spatial state information, wherein the spatial state information includes at least one of spatial position information and audio parameters; a determination module, configured to determine the spatial state information of the first electronic device and each of the second electronic devices according to the control instruction; a processing module, configured to perform spatial mixing processing on the audio data played by the first electronic device and the audio data played by each of the second electronic devices according to each of the spatial state information, to obtain first target audio data, wherein the first electronic device and each of the second electronic devices are located at different positions, and the spatial mixing processing includes mixing the audio data played by the first electronic device and the audio data played by each of the second electronic devices, so that the first target audio data corresponds to sound sources in different directions when being played; The sending module is used to send the first target audio data to the audio playing device for playing.

12. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the audio playback method as described in any one of claims 1 to 10.

Citation Information

Patent Citations

  • Information processing method and device, electronic equipment and storage medium

    CN109286862A

  • Audio playing method, audio playing apparatus, electronic device and computer readable storage medium

    CN109379490A

  • Audio output method, audio output device and electronic equipment

    CN111586526A

  • Audio output method and electronic equipment

    CN112286481A

  • Audio playing method and device

    CN113793625A