Audio playing method and device, electronic equipment and readable storage medium

CN117041827BActive Publication Date: 2026-10-30VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311109358.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-30
Publication Date
2026-10-30
Estimated Expiration
2043-08-30

AI Technical Summary

Technical Problem

如此,导致蓝牙设备等发声设备在连接多个电子设备时播放不同电子设备的音频的操作较为繁琐,从而导致蓝牙设备等发声设备的播放效果较差

Benefits of technology

[0011]在本申请实施例中,在发声设备与至少两个电子设备连接的情况下,发声设备可以接收至少两个电子设备中的第一电子设备发送的第一音频数据,以及接收至少两个电子设备中的第二电子设备发送的第二音频数据;并基于第一电子设备与发声设备间的第一相对位置信息,确定第一发声参数,以及按照第一发声参数播放第一音频数据;并且,发声设备基于第二电子设备与发声设备间的第二相对位置信息,确定第二发声参数,以及按照第二发声参数播放第二音频数据。通过该方案,由于发声设备可以在与多个电子设备连接的情况下,分别按照不同电子设备与发声设备间的相对位置信息,对接收到的多个音频数据以不同的发声参数进行播放。因此,一方面,可以及时播放从不同电子设备接收到的音频数据,避免用户错过重要的信息;另一方面,可以通过不同的播放参数使得用户可以分辨电子设备在真实空间的发声位置,从而使用户可以分辨出正在播放的音频数据所属的电子设备的方位。如此,可以提高发声设备在连接多个电子设备时的播放效果。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117041827B_ABST
    Figure CN117041827B_ABST
Patent Text Reader

Abstract

The application discloses an audio playing method and device, electronic equipment and a readable storage medium, and belongs to the technical field of communication. The method comprises the following steps: receiving first audio data sent by a first electronic device in at least two electronic devices and second audio data sent by a second electronic device in the at least two electronic devices; determining a first sound production parameter based on first relative position information between the first electronic device and a sound production device, and playing the first audio data according to the first sound production parameter; and determining a second sound production parameter based on second relative position information between the second electronic device and the sound production device, and playing the second audio data according to the second sound production parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communications, and specifically relates to an audio playback method, apparatus, electronic device, and readable storage medium. Background Technology

[0002] With the development of Bluetooth technology, Bluetooth devices can now connect to multiple electronic devices simultaneously, enabling audio from multiple electronic devices to be played through a single Bluetooth device without needing to switch between connected devices.

[0003] However, since a Bluetooth device can only play audio from one electronic device at a time, when a Bluetooth device receives audio from multiple electronic devices simultaneously, the user needs to manually switch the electronic device to which the audio is being played before the Bluetooth device can play the desired audio. If the user does not switch the electronic device in time, they may miss important messages from one or more electronic devices. This makes the process of playing audio from different electronic devices when connected to multiple devices cumbersome, resulting in poor playback quality. Summary of the Invention

[0004] The purpose of this application is to provide an audio playback method, apparatus, electronic device, and readable storage medium that can improve the playback effect of a sound-producing device when connected to multiple electronic devices.

[0005] In a first aspect, embodiments of this application provide an audio playback method applied to a sound-generating device, the sound-generating device being connected to at least two electronic devices. The method includes: receiving first audio data sent by a first electronic device and second audio data sent by a second electronic device, the at least two electronic devices including the first electronic device and the second electronic device; determining first sound generation parameters based on first relative position information between the first electronic device and the sound-generating device, and playing the first audio data according to the first sound generation parameters; and determining second sound generation parameters based on second relative position information between the second electronic device and the sound-generating device, and playing the second audio data according to the second sound generation parameters.

[0006] Secondly, embodiments of this application provide an audio playback device applied to a sound-generating device connected to at least two electronic devices. The device includes: a receiving module and a processing module; the receiving module is configured to receive first audio data sent by a first electronic device and second audio data sent by a second electronic device, wherein the at least two electronic devices include the first electronic device and the second electronic device; the processing module is configured to determine first sound generation parameters based on first relative position information between the first electronic device and the sound-generating device, and play the first audio data received by the receiving module according to the first sound generation parameters; the processing module is further configured to determine second sound generation parameters based on second relative position information between the second electronic device and the sound-generating device, and play the second audio data received by the receiving module according to the second sound generation parameters.

[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0011] In this embodiment, when the sound-emitting device is connected to at least two electronic devices, the sound-emitting device can receive first audio data sent by a first electronic device among the at least two electronic devices, and receive second audio data sent by a second electronic device among the at least two electronic devices; and determine first sound parameters based on first relative position information between the first electronic device and the sound-emitting device, and play the first audio data according to the first sound parameters; and, the sound-emitting device determines second sound parameters based on second relative position information between the second electronic device and the sound-emitting device, and plays the second audio data according to the second sound parameters. Through this scheme, since the sound-emitting device can play multiple received audio data with different sound parameters according to the relative position information between different electronic devices and the sound-emitting device when connected to multiple electronic devices, it can, on the one hand, play audio data received from different electronic devices in a timely manner, preventing users from missing important information; on the other hand, different playback parameters allow users to distinguish the sound-emitting position of the electronic devices in real space, thus enabling users to identify the location of the electronic device to which the currently playing audio data belongs. This improves the playback effect of the sound-emitting device when connected to multiple electronic devices. Attached Figure Description

[0012] Figure 1 This is one of the flowcharts of an audio playback method provided in the embodiments of this application;

[0013] Figure 2 This is a second flowchart of an audio playback method provided in an embodiment of this application;

[0014] Figure 3 This is a schematic flowchart of an example of an audio playback method provided in an embodiment of this application;

[0015] Figure 4 This is a schematic diagram of the structure of an audio playback device provided in an embodiment of this application;

[0016] Figure 5 This is one of the hardware structure diagrams of an electronic device provided in the embodiments of this application;

[0017] Figure 6 This is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0018] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0019] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0020] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."

[0021] The audio playback method, apparatus, electronic device, and readable storage medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.

[0022] The audio playback method, apparatus, electronic device, and readable storage medium provided in this application can be applied to scenarios where a sound-generating device is connected to multiple electronic devices for audio playback.

[0023] With the development of electronic technology, users need to use more and more electronic devices in their daily lives. For example, users may need to use multiple electronic devices such as mobile phones, tablets, and computers at the same time. In this case, if these multiple electronic devices are connected to Bluetooth headphones, since Bluetooth headphones can only play audio data from one electronic device at a time, users need to constantly switch between the electronic devices that are playing audio data through the Bluetooth headphones to get the desired audio.

[0024] As a result, when Bluetooth headphones are connected to multiple electronic devices, playing audio is not only cumbersome, but it is also easy to miss audio containing important information sent by one or more electronic devices, resulting in poor playback quality from the sound-producing device.

[0025] In the audio playback method provided in this application embodiment, since the sound-emitting device can play multiple received audio data with different sound parameters according to the relative position information between the different electronic devices and the sound-emitting device when connected to multiple electronic devices, it can, on the one hand, play audio data received from different electronic devices in a timely manner, preventing users from missing important information; on the other hand, different playback parameters allow users to distinguish the sound-emitting position of the electronic devices in real space, thus enabling users to identify the location of the electronic device to which the currently playing audio data belongs. This improves the playback effect when the sound-emitting device is connected to multiple electronic devices.

[0026] This application provides an audio playback method. Figure 1 A flowchart illustrating an audio playback method provided in an embodiment of this application is shown. This method can be applied to a sound-generating device connected to at least two electronic devices. Figure 1 As shown, the audio playback method provided in this application embodiment may include the following steps 101 to 103.

[0027] Step 101: The sound-emitting device receives first audio data sent by the first electronic device and second audio data sent by the second electronic device.

[0028] Among them, the above-mentioned at least two electronic devices include a first electronic device and a second electronic device.

[0029] In some embodiments of this application, the aforementioned sound-generating device can be a device with audio playback function, and its connection method with at least two electronic devices can include wired connection or wireless connection.

[0030] For example, the aforementioned sound-generating device can be a Bluetooth headset, which can be connected to at least two electronic devices via Bluetooth.

[0031] As another example, the aforementioned sound-generating device can be a speaker, which can be connected to at least two electronic devices via data cables.

[0032] In some embodiments of this application, "the sound-emitting device is connected to at least two electronic devices" can be understood as the sound-emitting device being connected to at least two electronic devices simultaneously. In other words, the sound-emitting device can establish communication links with at least two electronic devices simultaneously, so that the sound-emitting device can simultaneously receive audio data from at least two electronic devices.

[0033] In some embodiments of this application, the first audio data can be audio data sent by the first electronic device to the sound-emitting device and required to be played by the sound-emitting device; the second audio data can be audio data sent by the second electronic device to the sound-emitting device and required to be played by the sound-emitting device. It is understood that the first audio data and the second audio data can be the same or different.

[0034] For example, both the first audio data and the second audio data can be audio data of the same song.

[0035] For example, the first audio data may be song audio data sent by a first electronic device and received by the sound-emitting device, and the second audio data may be a message prompt tone sent by a second electronic device and received by the sound-emitting device.

[0036] Step 102: The sound-emitting device determines the first sound-emitting parameters based on the first relative position information between the first electronic device and the sound-emitting device, and plays the first audio data according to the first sound-emitting parameters.

[0037] Step 103: The sound-emitting device determines the second sound-emitting parameters based on the second relative position information between the second electronic device and the sound-emitting device, and plays the second audio data according to the second sound-emitting parameters.

[0038] In some embodiments of this application, the first relative position information may include a first distance between the sound-emitting device and the first electronic device, and a first direction of the first electronic device relative to the sound-emitting device; the second relative position information may include a second distance between the sound-emitting device and the second electronic device, and a second direction of the second electronic device relative to the sound-emitting device.

[0039] It should be noted that the first distance mentioned above can be the straight-line distance between the sound-generating device and the first electronic device. The second distance can be the straight-line distance between the sound-generating device and the second electronic device.

[0040] In some embodiments of this application, the first relative position information and the second relative position information may be the same or different.

[0041] In some embodiments of this application, the sound-emitting device can determine first relative position information between the first electronic device and the sound-emitting device when connected to the first electronic device; and can determine second relative position information between the second electronic device and the sound-emitting device when connected to the second electronic device.

[0042] For example, taking a Bluetooth headset as the sound-producing device, the Bluetooth headset can use Received Signal Strength Indication (RSSI) technology to calculate the relative position information between the electronic device and the Bluetooth headset based on the strength and directionality of the Bluetooth signal from the connected electronic device.

[0043] As another example, the sound-generating device can also obtain relative position information between the electronic device and the sound-generating device through positioning technologies such as laser and Ultra-Wideband (UWB) wireless communication positioning technology.

[0044] In some embodiments of this application, the sound-emitting device can play audio data from different electronic devices through sound-emitting channels with different sound directions, thereby simulating the playback effect of stereoscopic spatial audio. Through the audio played by the sound-emitting device, the user can perceive the location of the electronic device to which the different audio belongs.

[0045] In some embodiments of this application, step 103 may be performed before step 102, after step 102, or simultaneously with step 102. The embodiments of this application are not specifically limited.

[0046] In the audio playback method provided in this application embodiment, since the sound-emitting device can play multiple received audio data with different sound parameters according to the relative position information between the different electronic devices and the sound-emitting device when connected to multiple electronic devices, it can, on the one hand, play audio data received from different electronic devices in a timely manner, preventing users from missing important information; on the other hand, different playback parameters allow users to distinguish the sound-emitting position of the electronic devices in real space, thus enabling users to identify the location of the electronic device to which the currently playing audio data belongs. This improves the playback effect when the sound-emitting device is connected to multiple electronic devices.

[0047] In some embodiments of this application, the sound-generating device may include at least two sound channels, the first sound parameter includes the sound parameter of the first sound channel among the at least two sound channels, and the second sound parameter includes the sound parameter of the second sound channel among the at least two sound channels.

[0048] In some embodiments of this application, the aforementioned sound channels can be the audio signals used by the sound-emitting device when playing audio data. It is understood that the aforementioned at least two sound channels can be sound channels in the sound-emitting device used to play audio data at different spatial locations, and the at least two sound channels are independent of each other.

[0049] For example, the sound-generating device can play audio with surround sound effects through the at least two sound channels.

[0050] As another example, the sound-generating device can play audio transmitted from at least two different directions through the at least two sound channels.

[0051] In some embodiments of this application, "playing the first audio data according to the first sound parameters" in step 102 above may include step a below. "Playing the second audio data according to the second sound parameters" in step 103 above may include step b below.

[0052] Step a: The sound-generating device plays the first audio data through the first sound channel according to the sound parameters of the first sound channel.

[0053] The first sound parameter includes at least one of the following: amplitude parameter and sound effect parameter.

[0054] Step b: The sound-generating device plays the second audio data through the second sound channel according to the sound parameters of the second sound channel.

[0055] The second sound parameter includes at least one of the following: amplitude parameter and sound effect parameter.

[0056] In some embodiments of this application, the amplitude parameter can indicate the volume and intensity of the sound when playing audio data; the sound effect parameter can indicate the sound effect when playing audio data, such as surround sound effect, electronic sound effect, etc.

[0057] In some embodiments of this application, the sound parameters of the first sound channel can be determined by the sound-emitting device based on the relative position information between the first electronic device and the sound-emitting device. This allows the first audio data to be played according to these first sound parameters, so that the audio source of the first audio data corresponds to the relative position information between the first electronic device and the sound-emitting device, enabling the user to determine the location of the first electronic device through the first audio data. Similarly, the sound parameters of the second sound channel can be determined by the sound-emitting device based on the relative position information between the second electronic device and the sound-emitting device. This allows the second audio data to be played according to these second sound parameters, so that the audio source of the second audio data corresponds to the relative position information between the second electronic device and the sound-emitting device, enabling the user to determine the location of the second electronic device through the second audio data.

[0058] It should be noted that step a above can be performed before step b, after step b, or simultaneously with step b. This application does not impose specific limitations on the embodiments described.

[0059] Thus, since the sound-generating device can play audio data from different electronic devices through different sound channels according to different sound parameters, it can not only play audio data sent by different electronic devices at the same time, but also simulate the sound-generating effect of electronic devices in real space. This allows users to easily distinguish the different audio played by different electronic devices through the sound-generating device, improving the playback effect of the sound-generating device when connected to multiple electronic devices.

[0060] In some embodiments of this application, the step 102 above, "determining the first sound generation parameter based on the first relative position information between the first electronic device and the sound generation device", may include the following steps c and d.

[0061] Step c: The sound-emitting device determines a first sound channel from at least two sound channels based on a first direction.

[0062] The sound emission direction of the first sound channel corresponds to the first direction.

[0063] It is understandable that the statement "the sound emission direction of the first sound channel corresponds to the first direction" means that the propagation direction of the audio data played through the first sound channel is the same as the first direction. In other words, the sound source location of the audio data played through the first sound channel is the same as that of the first electronic device. Thus, the user can determine which electronic device the audio comes from by observing the audio played by the sound-emitting device.

[0064] For example, consider a first electronic device located to the right of a sound-emitting device. The sound-emitting device can identify the sound channel emanating from the right side as the first sound channel. That is, the audio heard by the user through the sound-emitting device is the audio coming from the right side of the sound-emitting device.

[0065] In some embodiments of this application, the first direction described above may indicate the direction of the first electronic device relative to the sound-generating device.

[0066] For example, if the first electronic device is located southeast of the sound-emitting device, the first direction can be southeast.

[0067] In some embodiments of this application, the sound-emitting device may determine the channel whose sound-emitting direction corresponds to the first direction as the first sound-emitting channel for playing the first audio.

[0068] Step d: The sound-generating device determines the sound parameters of the first sound channel based on the first distance.

[0069] In some embodiments of this application, the first distance described above may indicate the straight-line distance between the first electronic device and the sound-emitting device.

[0070] In some embodiments of this application, the sound-generating device can determine the sound parameters of the first sound channel based on a first distance, that is, determine the amplitude parameters and sound effect parameters of the first audio file. For example, the sound-generating device can determine the volume of the first audio data and the effect of playing the first audio data based on the first distance.

[0071] For example, the sound-generating device can determine the sound parameters that indicate a larger playback volume when the first distance is relatively short.

[0072] For example, the sound-generating device can determine sound parameters that indicate a lower playback volume when the first distance is relatively long.

[0073] It is understandable that the vocal parameters of the first vocal channel can change with the change of the first distance.

[0074] For example, during the playback of the first audio, if the user carries the sound-emitting device away from the first electronic device, i.e. the first distance increases, the sound-emitting device can change the sound parameters of the first sound channel to gradually reduce the volume of the first audio.

[0075] Thus, since the sound-emitting device can determine the channel and its output parameters based on the direction and distance of the electronic device relative to it, it can play audio data received from different electronic devices from different directions and at different volumes. This allows users to distinguish the different audio played by different electronic devices through the sound-emitting device, improving the playback effect when multiple electronic devices are connected.

[0076] In some embodiments of this application, the step 103 described above, "determining the second sound generation parameter based on the second relative position information between the second electronic device and the sound generation device", may include the following steps e and f.

[0077] Step e: The sound-emitting device determines a second sound channel from at least two sound channels based on the second direction.

[0078] The sound emission direction of the second sound channel corresponds to the second direction.

[0079] Step f: The sound-generating device determines the sound parameters of the second sound channel based on the second distance.

[0080] In some embodiments of this application, the second distance described above may be the same as or different from the first distance.

[0081] In some embodiments of this application, the second direction described above may be the same as or different from the first direction.

[0082] It should be noted that detailed descriptions of steps e and f can be found in the descriptions of steps c and d above. To avoid repetition, they will not be repeated here.

[0083] Thus, since the sound-emitting device can determine the channel and its output parameters based on the direction and distance of the electronic device relative to it, it can play audio data received from different electronic devices from different directions and at different volumes. This allows users to distinguish the different audio played by different electronic devices through the sound-emitting device, improving the playback effect when multiple electronic devices are connected.

[0084] In some embodiments of this application, the step 102 above, "determining the first sound generation parameter based on the first relative position information between the first electronic device and the sound generation device," may further include step g. The step 103 above, "determining the second sound generation parameter based on the second relative position information between the second electronic device and the sound generation device," may further include step h.

[0085] Step g: The sound-emitting device determines the first sound-emitting parameters based on the first relative position information between the first electronic device and the sound-emitting device, and the orientation information of the user using the sound-emitting device.

[0086] Step h: The sound-emitting device determines the second sound-emitting parameters based on the second relative position information between the second electronic device and the sound-emitting device, as well as the orientation information of the user using the sound-emitting device.

[0087] In some embodiments of this application, the sound-emitting device can determine the sound parameters of the first sound channel based on the first relative position information between the first electronic device and the sound-emitting device, and the orientation information of the user using the sound-emitting device. Furthermore, the sound-emitting device can determine the sound parameters of the second sound channel based on the second relative position information between the second electronic device and the sound-emitting device, and the orientation information of the user using the sound-emitting device.

[0088] In some embodiments of this application, the sound-emitting device can determine a first sound channel based on a first direction between the first electronic device and the sound-emitting device; then, the sound-emitting device can determine the sound parameters of the first sound channel based on information such as the distance between the first electronic device and the sound-emitting device and the orientation of the user using the sound-emitting device. Thus, by using the sound parameters of the first sound channel, audio data with a stereoscopic playback effect can be played, allowing the user to discern the location of the electronic device to which the playing audio data belongs.

[0089] In some embodiments of this application, the orientation information of the user using the sound-emitting device can be any direction relative to the user's initial orientation.

[0090] For example, assuming the user's initial orientation is north, when the user using the sound-emitting device turns 90 degrees to the right, the user's orientation is now east.

[0091] For example, suppose the user's initial orientation is south. When the user using the sound-emitting device turns 180 degrees, the user's orientation is now north.

[0092] In some embodiments of this application, the orientation information of the user using the sound-emitting device can be obtained through the sensors of the sound-emitting device.

[0093] In some embodiments of this application, the sound-generating device can dynamically adjust the sound parameters of the first sound channel based on the orientation information of the user using the sound-generating device.

[0094] For example, when a user turns around while using the sound-generating device, and the first electronic device is in front of the sound-generating device and the second electronic device is behind the sound-generating device, the sound-generating device can increase the volume indicated by the sound parameters of the first sound channel and decrease the volume indicated by the sound parameters of the second sound channel.

[0095] In some embodiments of this application, the sound-generating device can determine the degree of adjustment of the sound parameters of the first sound channel based on information about the orientation of the user using the sound-generating device.

[0096] For example, if the user of the sound-generating device rotates the device by a small amount, the sound-generating device can fine-tune the sound parameters of the sound channel.

[0097] For example, if the user of the sound-generating device rotates the device significantly, the sound-generating device can make significant adjustments to the sound parameters of the sound channel.

[0098] It should be noted that a detailed description of how the sound-generating device determines the second sound-generating parameters based on the second relative position information between the second electronic device and the sound-generating device, as well as the orientation information of the user using the sound-generating device, can be found in the relevant description in step g, and will not be repeated here.

[0099] Thus, because the sound-generating device can determine the sound parameters used to play audio data based on the relative position information between the electronic device and the sound-generating device, as well as the orientation information of the user using the sound-generating device, the sound-generating device can more flexibly and accurately determine the sound direction and volume when playing audio data, thereby improving the playback effect when the sound-generating device is connected to multiple electronic devices.

[0100] In some embodiments of this application, step g may include steps g1 and g2 as described below. Step h may include steps h1 and h2 as described below.

[0101] Step g1: Based on the user's orientation information and the first relative position information, the sound-emitting device determines the first angle between the first direction of the first electronic device relative to the sound-emitting device and the user's orientation.

[0102] Step g2: The sound-generating device determines the first sound-generating parameters based on the first included angle and the first relative position information.

[0103] Step h1: Based on the user's orientation information and the second relative position information, the sound-emitting device determines the second angle between the second direction of the second electronic device relative to the sound-emitting device and the user's orientation;

[0104] Step h2: The sound-generating device determines the second sound-generating parameters based on the second included angle and the second relative position information.

[0105] In some embodiments of this application, the aforementioned first included angle can indicate the degree of deviation of the first electronic device from the user's orientation. That is, the sound-emitting device can determine the degree of deviation of the first electronic device from the user's orientation, i.e., the first included angle, based on the user's orientation and the first relative position information between the first electronic device and the sound-emitting device.

[0106] For example, if the user of the sound-emitting device is facing east and the first electronic device is located northeast of the sound-emitting device, then the sound-emitting device can determine the first included angle as 45°, that is, the first electronic device is offset 45° northward relative to the user's orientation.

[0107] For example, if the user of the sound-emitting device is facing south, and the first electronic device is located due south of the sound-emitting device, then the sound-emitting device can determine that the first included angle is 0°, that is, the direction in which the first electronic device faces the user.

[0108] In some embodiments of this application, the sound-emitting device can determine the first sound parameters based on the first angle between the first direction of the first electronic device relative to the sound-emitting device and the user's orientation, as well as the first relative position information. It is understood that the greater the offset of the first electronic device relative to the user's orientation and the greater its distance from the sound-emitting device, the lower the volume indicated by the sound parameters when the sound-emitting device plays the first audio data sent by the first electronic device.

[0109] For example, the sound-generating device can negatively correlate the first included angle and the first relative position information with the amplitude parameter of the first sound generation parameter. That is, the larger the first included angle and the farther the first distance between the first electronic device and the sound-generating device indicated by the first relative position information, the lower the volume indicated by the amplitude parameter of the first sound generation parameter; the smaller the first included angle and the closer the first distance between the first electronic device and the sound-generating device indicated by the first relative position information, the higher the volume indicated by the amplitude parameter of the first sound generation parameter.

[0110] It should be noted that the detailed description of determining the second angle between the second direction of the second electronic device relative to the sound-emitting device and the user's orientation based on the user's orientation information and the second relative position information, and determining the second sound-emitting parameters based on the second angle and the second relative position information, can be found in the relevant descriptions in steps g1 and g2, and will not be repeated here.

[0111] Thus, because the sound-emitting device can determine the angle between the direction of the electronic device relative to the sound-emitting device and the user's direction based on the user's orientation information and the relative position information between the electronic device and the sound-emitting device, and can determine the sound parameters of the audio transmitted by the electronic device based on this angle and the relative position information, the sound-emitting device can more flexibly and accurately determine the sound direction and volume when playing audio data, thereby improving the playback effect when the sound-emitting device is connected to multiple electronic devices.

[0112] In some embodiments of this application, combined with Figure 1 ,like Figure 2 As shown, after step 102 above, the audio playback method provided in this application embodiment may further include steps 104 to 106 as described below.

[0113] Step 104: The sound-emitting device sends the first sound-emitting parameters to the third electronic device.

[0114] The aforementioned third electronic device is one of the other electronic devices besides the first electronic device among at least two electronic devices.

[0115] In some embodiments of this application, the third electronic device described above may be the same as or different from the second electronic device. The third electronic device described above is different from the first electronic device.

[0116] It is understandable that after the sound-emitting device sends the first sound-emitting parameters of the first electronic device to other electronic devices among at least two electronic devices connected to the sound-emitting device, the other electronic devices can query the first sound-emitting parameters corresponding to the first electronic device.

[0117] In some embodiments of this application, the sound-emitting device can send the sound-emitting parameters corresponding to each electronic device connected to it to other electronic devices among at least two electronic devices connected to the sound-emitting device, so that the other electronic devices can query the sound-emitting parameters corresponding to each electronic device connected to the sound-emitting device.

[0118] For example, consider a sound-generating device connected to electronic devices a, b, and c. The sound-generating device can send the sound parameters corresponding to electronic device a to electronic devices b and c; it can also send the sound parameters corresponding to electronic device b to electronic devices a and c; and it can also send the sound parameters corresponding to electronic device c to electronic devices a and b. In this way, all three electronic devices connected to the sound-generating device can query the sound parameters of the other devices.

[0119] Step 105: The sound-generating device receives the third sound-generating parameters sent by the third electronic device.

[0120] The aforementioned third sound parameter can be a sound parameter determined based on the first sound parameter. In other words, the aforementioned third sound parameter is the first sound parameter modified by the third electronic device.

[0121] In some embodiments of this application, after receiving the first sound parameters sent by the sound-emitting device, the third electronic device can modify the first sound parameters to obtain the third sound parameters.

[0122] For example, the third electronic device may modify the first sound parameters to decrease or increase the volume of the first audio data being played.

[0123] In some embodiments of this application, the third sound parameter is different from the first sound parameter.

[0124] In some embodiments of this application, the third electronic device can send the modified first sound parameters to the sound-generating device, so as to change the sound parameters corresponding to the first electronic device through the third electronic device.

[0125] Step 106: The sound-generating device plays the first audio data according to the third sound-generating parameters.

[0126] In some embodiments of this application, after receiving the third sound parameter, the sound-emitting device can directly play the first audio data according to the third sound parameter; or, after receiving the third sound parameter, the sound-emitting device can first send the third sound parameter to the first electronic device, and after receiving the acknowledgment message from the first electronic device indicating that the sound parameter has been modified, it can then play the first audio data according to the third sound parameter. This allows the sound parameters of the first electronic device to be adjusted via other electronic devices.

[0127] For example, consider a sound-generating device connected to electronic devices d and e. The sound-generating device can send sound parameters corresponding to electronic device e to electronic device d; it can also send sound parameters corresponding to electronic device d to electronic device e. Then, the user of electronic device d can modify the sound parameters and send the modified sound parameters corresponding to electronic device e to the sending device. The sound-generating device can then play the audio data sent to it by electronic device e according to the modified sound parameters corresponding to electronic device e.

[0128] It should be noted that the sound-generating device can perform the above steps 101 to 106 on the first electronic device and the second electronic device, or it can perform the above steps 101 to 106 on other electronic devices among at least two electronic devices connected to the sound-generating device, excluding the first electronic device and the second electronic device, to achieve the same technical effect.

[0129] In this way, when a sound-producing device is connected to multiple electronic devices, it can send the sound parameters corresponding to one of those electronic devices to the other electronic devices, allowing the other electronic devices to modify those same sound parameters. This increases the flexibility of the sound-producing device in playing audio because the sound parameters of that single electronic device can be changed by other electronic devices.

[0130] Each of the above-described method embodiments, or various possible implementations of each method embodiment, can be executed individually or in combination of any two or more. The specific implementation can be determined according to actual usage requirements, and this application does not impose any restrictions on this.

[0131] The following specific examples illustrate the audio playback method provided in the embodiments of this application.

[0132] Taking Bluetooth headphones as an example, such as Figure 3 As shown, the audio playback method may include steps 201 to 205 as described below.

[0133] Step 201: The Bluetooth headset is connected to the first electronic device and to the second electronic device.

[0134] Step 202: The Bluetooth headset determines the first relative position information of the first electronic device and the second relative position information of the second electronic device.

[0135] In some embodiments of this application, the aforementioned first relative position information may include a first distance between the Bluetooth headset and the first electronic device, and a first direction of the first electronic device relative to the Bluetooth headset. The aforementioned second relative position information may include a second distance between the Bluetooth headset and the second electronic device, and a second direction of the second electronic device relative to the Bluetooth headset.

[0136] Step 203: The Bluetooth headset receives first audio data sent by the first electronic device and second audio data sent by the second electronic device.

[0137] Step 204: The Bluetooth headset determines the first sound parameters of the first audio data based on the first relative position information, and determines the second sound parameters of the second audio data based on the second relative position information.

[0138] Step 205: The Bluetooth headset plays the first audio data according to the first sound parameters and the second audio data according to the second sound parameters.

[0139] In some embodiments of this application, after receiving the first audio data and the second audio data, the Bluetooth headset can determine the channel and the sound parameters of the channel for playing the first audio data and the second audio data based on the first distance between the Bluetooth headset and the first electronic device and the first direction of the first electronic device relative to the Bluetooth headset, and the second distance between the Bluetooth headset and the second electronic device and the second direction of the second electronic device relative to the Bluetooth headset, so that the played first audio data and the second audio data are audio with stereo spatial audio effects.

[0140] Thus, since the sound-generating device can be connected to multiple electronic devices, it can play multiple received audio data with different sound parameters according to the relative position information between the electronic devices and the sound-generating device. Therefore, on the one hand, audio data received from different electronic devices can be played in a timely manner, preventing users from missing important information; on the other hand, different playback parameters allow users to distinguish the sound-generating position of the electronic devices in real space, thereby enabling users to identify the location of the electronic device to which the currently playing audio data belongs. This improves the playback effect of the sound-generating device when connected to multiple electronic devices.

[0141] The audio playback method provided in this application can be executed by an audio playback device. This application uses an audio playback device executing the audio playback method as an example to illustrate the audio playback device provided in this application.

[0142] Figure 4 A schematic diagram of a possible structure of the audio playback device involved in an embodiment of this application is shown. For example... Figure 4As shown, the audio playback device 40 may include a receiving module 41 and a processing module 42.

[0143] The receiving module 41 is used to receive first audio data sent by a first electronic device and second audio data sent by a second electronic device, wherein at least two electronic devices include the first electronic device and the second electronic device; the processing module 42 is used to determine first sound parameters based on first relative position information between the first electronic device and the sound-emitting device, and play the first audio data received by the receiving module 41 according to the first sound parameters; and to determine second sound parameters based on second relative position information between the second electronic device and the sound-emitting device, and play the second audio data received by the receiving module 41 according to the second sound parameters.

[0144] In one possible implementation, the aforementioned sound-generating device includes at least two sound channels;

[0145] The aforementioned first relative position information includes a first distance between the sound-emitting device and the first electronic device, and a first direction of the first electronic device relative to the sound-emitting device; the second relative position information includes a second distance between the sound-emitting device and the second electronic device, and a second direction of the second electronic device relative to the sound-emitting device.

[0146] The aforementioned processing module 42 is specifically used for:

[0147] Based on the first direction, a first sound channel is determined from at least two sound channels, and the sound direction of the first sound channel corresponds to the first direction;

[0148] Based on the first distance, determine the sound output parameters of the first sound channel;

[0149] And, specifically used for:

[0150] Based on the second direction, a second sound channel is determined from at least two sound channels, wherein the sound emission direction of the second sound channel corresponds to the second direction;

[0151] Based on the second distance, the vocal parameters of the second vocal channel are determined.

[0152] In one possible implementation, the processing module 42 is specifically used to determine the first sound parameters based on the first relative position information between the first electronic device and the sound-emitting device, and the orientation information of the user using the sound-emitting device.

[0153] And specifically, it is used to determine the second sound generation parameters based on the second relative position information between the second electronic device and the sound generation device, and the orientation information of the user using the sound generation device.

[0154] In one possible implementation, the processing module 42 described above is specifically used for:

[0155] Based on the user's orientation information and the first relative position information, a first angle is determined between the first direction of the first electronic device relative to the sound-emitting device and the user's orientation.

[0156] Based on the first included angle and the first relative position information, the first sound generation parameters are determined;

[0157] And, specifically used for:

[0158] Based on the user's orientation information and the second relative position information, determine the second angle between the second direction of the second electronic device relative to the sound-emitting device and the user's orientation;

[0159] The second sound parameters are determined based on the second included angle and the second relative position information.

[0160] In one possible implementation, the above-mentioned device further includes: a transmitting module;

[0161] The aforementioned sending module is used to send the first sound parameters to the third electronic device after the processing module 42 plays the first audio data according to the first sound parameters. The third electronic device is one of the other electronic devices besides the first electronic device among at least two electronic devices.

[0162] The receiving module 41 described above is also used to receive a third sound parameter sent by a third electronic device, wherein the third sound parameter is a sound parameter determined based on the first sound parameter;

[0163] The aforementioned processing module 42 is also used to play the first audio data according to the third sound parameters.

[0164] This application provides an audio playback device. Since the sound-emitting device can be connected to multiple electronic devices, it can play multiple received audio data with different sound parameters according to the relative position information between the sound-emitting device and each electronic device. Therefore, on the one hand, audio data received from different electronic devices can be played in a timely manner, preventing users from missing important information; on the other hand, different playback parameters allow users to distinguish the sound-emitting position of the electronic devices in real space, thus enabling users to identify the location of the electronic device to which the currently playing audio data belongs. This improves the playback effect when the sound-emitting device is connected to multiple electronic devices.

[0165] The audio playback device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.

[0166] The audio playback device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.

[0167] The audio playback device provided in this application embodiment can implement the various processes implemented in the above-described audio playback method embodiment, and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0168] Optionally, such as Figure 5 As shown, this application embodiment also provides an electronic device 500, including a processor 501 and a memory 502. The memory 502 stores a program or instructions that can run on the processor 501. When the program or instructions are executed by the processor 501, they implement the various steps of the above-described audio playback method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0169] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0170] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0171] The electronic device 600 includes, but is not limited to, components such as: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.

[0172] Those skilled in the art will understand that the electronic device 600 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 610 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 6 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0173] The radio frequency module 601 is used to receive first audio data sent by a first electronic device and second audio data sent by a second electronic device, wherein at least two electronic devices include the first electronic device and the second electronic device; the processor 610 is used to determine first sound parameters based on first relative position information between the first electronic device and the sound-emitting device, and play the first audio data received by the radio frequency module 601 according to the first sound parameters; and is used to determine second sound parameters based on second relative position information between the second electronic device and the sound-emitting device, and play the second audio data received by the radio frequency module 601 according to the second sound parameters.

[0174] In one possible implementation, the aforementioned sound-generating device includes at least two sound channels;

[0175] The aforementioned first relative position information includes a first distance between the sound-emitting device and the first electronic device, and a first direction of the first electronic device relative to the sound-emitting device; the second relative position information includes a second distance between the sound-emitting device and the second electronic device, and a second direction of the second electronic device relative to the sound-emitting device.

[0176] The aforementioned processor 610 is specifically used for:

[0177] Based on the first direction, a first sound channel is determined from at least two sound channels, and the sound direction of the first sound channel corresponds to the first direction;

[0178] Based on the first distance, determine the sound output parameters of the first sound channel;

[0179] And, specifically used for:

[0180] Based on the second direction, a second sound channel is determined from at least two sound channels, wherein the sound emission direction of the second sound channel corresponds to the second direction;

[0181] Based on the second distance, the vocal parameters of the second vocal channel are determined.

[0182] In one possible implementation, the processor 610 is specifically used to determine the first sound parameters based on the first relative position information between the first electronic device and the sound-emitting device, and the orientation information of the user using the sound-emitting device.

[0183] And specifically, it is used to determine the second sound generation parameters based on the second relative position information between the second electronic device and the sound generation device, and the orientation information of the user using the sound generation device.

[0184] In one possible implementation, the processor 610 described above is specifically used for:

[0185] Based on the user's orientation information and the first relative position information, a first angle is determined between the first direction of the first electronic device relative to the sound-emitting device and the user's orientation.

[0186] Based on the first included angle and the first relative position information, the first sound generation parameters are determined;

[0187] And, specifically used for:

[0188] Based on the user's orientation information and the second relative position information, determine the second angle between the second direction of the second electronic device relative to the sound-emitting device and the user's orientation;

[0189] The second sound parameters are determined based on the second included angle and the second relative position information.

[0190] In one possible implementation, the radio frequency module 601 is configured to send the first sound parameters to a third electronic device after the processor 610 plays the first audio data according to the first sound parameters, wherein the third electronic device is one of at least two electronic devices other than the first electronic device; and to receive the third sound parameters sent by the third electronic device, wherein the third sound parameters are sound parameters determined according to the first sound parameters.

[0191] The aforementioned processor 610 is also used to play the first audio data according to the third sound parameters.

[0192] This application provides an electronic device that, when connected to multiple electronic devices, can play multiple received audio data with different sound parameters according to the relative position information between the sound device and each electronic device. Therefore, on the one hand, audio data received from different electronic devices can be played in a timely manner, preventing users from missing important information; on the other hand, different playback parameters allow users to distinguish the sound-emitting position of the electronic devices in real space, thus enabling users to identify the location of the electronic device to which the currently playing audio data belongs. This improves the playback effect when the sound device is connected to multiple electronic devices.

[0193] It should be understood that, in this embodiment, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042. The GPU 6041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 606 may include a display panel 6061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 607 includes at least one of a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.

[0194] The memory 609 can be used to store software programs and various data. The memory 609 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 609 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 609 in this embodiment includes, but is not limited to, these and any other suitable types of memory.

[0195] Processor 610 may include one or more processing units; optionally, processor 610 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 610.

[0196] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described audio playback method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

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

[0198] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described audio playback method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0199] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0200] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the audio playback method embodiment described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0201] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0202] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0203] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. An audio playback method, characterized in that, Applied to a sound-generating device, the sound-generating device being connected to at least two electronic devices, the method includes: The device receives first audio data sent by a first electronic device and second audio data sent by a second electronic device, wherein the at least two electronic devices include the first electronic device and the second electronic device; Based on the first relative position information between the first electronic device and the sound-emitting device, the first sound parameters are determined, and the first audio data is played according to the first sound parameters. Based on the second relative position information between the second electronic device and the sound-emitting device, the second sound-emitting parameters are determined, and the second audio data is played according to the second sound-emitting parameters; The first relative position information is obtained by the sound-emitting device through wireless signal measurement with the first electronic device, and the second relative position information is obtained by the sound-emitting device through wireless signal measurement with the second electronic device.

2. The method according to claim 1, characterized in that, The sound-generating device includes at least two sound channels; The first relative position information includes a first distance between the sound-emitting device and the first electronic device, and a first direction of the first electronic device relative to the sound-emitting device; the second relative position information includes a second distance between the sound-emitting device and the second electronic device, and a second direction of the second electronic device relative to the sound-emitting device. The step of determining the first sound emission parameter based on the first relative position information between the first electronic device and the sound-emitting device includes: Based on the first direction, a first sound channel is determined from the at least two sound channels, wherein the sound emission direction of the first sound channel corresponds to the first direction; Based on the first distance, determine the vocal parameters of the first vocal channel; The step of determining the second sound emission parameters based on the second relative position information between the second electronic device and the sound emission device includes: Based on the second direction, a second sound channel is determined from the at least two sound channels, wherein the sound emission direction of the second sound channel corresponds to the second direction; Based on the second distance, the vocal parameters of the second vocal channel are determined.

3. The method according to any one of claims 1 or 2, characterized in that, The step of determining the first sound emission parameter based on the first relative position information between the first electronic device and the sound-emitting device includes: The first sound-emitting parameters are determined based on the first relative position information between the first electronic device and the sound-emitting device, and the orientation information of the user using the sound-emitting device. The step of determining the second sound emission parameters based on the second relative position information between the second electronic device and the sound emission device includes: The second sound emission parameter is determined based on the second relative position information between the second electronic device and the sound-emitting device, and the orientation information of the user using the sound-emitting device.

4. The method according to claim 3, characterized in that, The step of determining the first sound emission parameter based on the first relative position information between the first electronic device and the sound-emitting device, and the orientation information of the user using the sound-emitting device, includes: Based on the user's orientation information and the first relative position information, a first angle is determined between the first direction of the first electronic device relative to the sound-emitting device and the user's orientation. Based on the first included angle and the first relative position information, the first sound emission parameters are determined; The step of determining the second sound emission parameter based on the second relative position information between the second electronic device and the sound-emitting device, and the orientation information of the user using the sound-emitting device, includes: Based on the user's orientation information and the second relative position information, a second angle is determined between the second direction of the second electronic device relative to the sound-emitting device and the user's orientation. The second vocal parameters are determined based on the second included angle and the second relative position information.

5. The method according to claim 1, characterized in that, After playing the first audio data according to the first vocal parameters, the method further includes: The first sound parameter is sent to a third electronic device, wherein the third electronic device is one of the other electronic devices besides the first electronic device among the at least two electronic devices; Receive a third sound parameter sent by the third electronic device, wherein the third sound parameter is a sound parameter determined based on the first sound parameter; The first audio data is played according to the third sound parameters.

6. An audio playback device, characterized in that, An apparatus for use in a sound-generating device, the sound-generating device being connected to at least two electronic devices, the apparatus comprising: a receiving module and a processing module; The receiving module is used to receive first audio data sent by a first electronic device and second audio data sent by a second electronic device, wherein the at least two electronic devices include the first electronic device and the second electronic device; The processing module is used to determine the first sound parameters based on the first relative position information between the first electronic device and the sound-emitting device, and to play the first audio data received by the receiving module according to the first sound parameters. The processing module is further configured to determine the second sound parameters based on the second relative position information between the second electronic device and the sound-emitting device, and play the second audio data received by the receiving module according to the second sound parameters; The first relative position information is obtained by the sound-emitting device through wireless signal measurement with the first electronic device, and the second relative position information is obtained by the sound-emitting device through wireless signal measurement with the second electronic device.

7. The apparatus according to claim 6, characterized in that, The sound-generating device includes at least two sound channels; The first relative position information includes a first distance between the sound-emitting device and the first electronic device, and a first direction of the first electronic device relative to the sound-emitting device; the second relative position information includes a second distance between the sound-emitting device and the second electronic device, and a second direction of the second electronic device relative to the sound-emitting device. The processing module is specifically used for: Based on the first direction, a first sound channel is determined from the at least two sound channels, wherein the sound emission direction of the first sound channel corresponds to the first direction; Based on the first distance, determine the vocal parameters of the first vocal channel; The processing module is specifically used for: Based on the second direction, a second sound channel is determined from the at least two sound channels, wherein the sound emission direction of the second sound channel corresponds to the second direction; Based on the second distance, the vocal parameters of the second vocal channel are determined.

8. The apparatus according to any one of claims 6 or 7, characterized in that, The processing module is specifically used to determine the first sound parameters based on the first relative position information between the first electronic device and the sound-emitting device, and the orientation information of the user using the sound-emitting device. The processing module is specifically used to determine the second sound emission parameters based on the second relative position information between the second electronic device and the sound emission device, and the orientation information of the user using the sound emission device.

9. The apparatus according to claim 8, characterized in that, The processing module is specifically used for: Based on the user's orientation information and the first relative position information, a first angle is determined between the first direction of the first electronic device relative to the sound-emitting device and the user's orientation. Based on the first included angle and the first relative position information, the first sound emission parameters are determined; The processing module is specifically used for: Based on the user's orientation information and the second relative position information, a second angle is determined between the second direction of the second electronic device relative to the sound-emitting device and the user's orientation. The second vocal parameters are determined based on the second included angle and the second relative position information.

10. The apparatus according to claim 6, characterized in that, The device further includes: a transmitting module; The sending module is configured to send the first sound parameters to a third electronic device after the processing module plays the first audio data according to the first sound parameters, wherein the third electronic device is one of the other electronic devices besides the first electronic device among the at least two electronic devices; The receiving module is further configured to receive a third sound parameter sent by the third electronic device, wherein the third sound parameter is a sound parameter determined based on the first sound parameter; The processing module is also used to play the first audio data according to the third sound parameters.

11. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the audio playback method as described in any one of claims 1 to 5.

12. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the audio playback method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Headphone

    CN112911440A

  • Audio playing method and electronic equipment

    CN114650496A