Audio playing method and device

By obtaining user location and device location, determining the target audio type and device, and realizing multiple devices to play audio data together, solving the problem of the need for specialized equipment and high cost in the prior art stereo effects, providing a more cost-effective stereo experience .

CN119071715APending Publication Date: 2024-12-03LENOVO (BEIJING) LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411046233.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In the prior art, achieving stereo effects requires special stereo equipment, and the precise adjustment of speaker positions is more complex and costly, resulting in high costs for users to pay when obtaining good stereo effects.

Method used

By obtaining the user location, the target audio type is determined based on multiple device locations within the preset range corresponding to the user location, and selecting suitable devices from these devices to jointly play audio data to achieve a stereo effect. The method includes obtaining the user location, determining the target audio type, matching the audio performance information, adjusting the audio parameters, and ensuring that the audio data meets the target conditions when multiple devices are played together.

Benefits of technology

In the absence of independent stereo equipment, good stereo effects are achieved through multiple devices, improving user experience and reducing equipment costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071715A_ABST
    Figure CN119071715A_ABST
Patent Text Reader

Abstract

The invention discloses an audio playing method and device, and the method is applied to a first device, and comprises the steps: obtaining a user position; if a plurality of second devices exist in a preset range corresponding to the user position, determining a target audio type according to the position of each second device; determining a plurality of target second devices from the second devices according to the target audio type; and according to the target audio type, determining target audio data corresponding to each target second device from the to-be-played audio data, so that each target second device plays the to-be-played audio data together.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an audio playback method and device. Background Art

[0002] At present, if you want to achieve stereo playback of audio data, you generally need to use special stereo equipment, and sometimes you need to accurately adjust the positions of each speaker in the stereo equipment to produce the expected stereo effect. The cost of this type of stereo equipment is generally high, so users need to pay a high cost to obtain a better stereo effect. Summary of the invention

[0003] An embodiment of the present application provides an audio playback method, which is applied to a first device, including: obtaining a user position; if there are multiple second devices within a preset range corresponding to the user position, determining a target audio type according to the position of each second device; determining multiple target second devices from each second device according to the target audio type; and according to the target audio type, determining target audio data corresponding to each target second device from the audio data to be played, so that each target second device plays the audio data to be played together.

[0004] In some embodiments, the target audio type includes at least one of a target frequency type and a target channel type, and multiple target second devices are determined from each of the second devices based on the target audio type, including: obtaining audio performance information of each of the second devices; and determining, in each of the second devices, second devices whose audio performance information matches the target frequency type and / or the target channel type as multiple target second devices.

[0005] In some embodiments, determining the target audio type according to the position of each of the second devices includes: determining a constructible audio type according to the position of each of the second devices; if the constructible audio type is one, determining the constructible audio type as the target audio type; if the constructible audio type is multiple, determining the target audio type from each of the constructible audio types according to a user's selection instruction, or selecting one from each of the constructible audio types as the target audio type according to a target strategy, or selecting one from each of the constructible audio types as the target audio type according to the original audio data corresponding to the audio data to be played.

[0006] In some embodiments, after determining the target audio data corresponding to each target second device from the audio data to be played according to the target audio type, so that each target second device plays the audio data to be played together, it also includes: if the user position changes, obtaining the change of the user position and the status of each target second device; adjusting the target audio type and / or the target audio data according to the change of the user position and the status of each target second device.

[0007] In some embodiments, the target audio type and / or the target audio data are adjusted according to the change of the user position and the status of each of the target second devices, including at least one of the following: if the new user position after the user position changes is within a specified area, the audio parameters of each of the target audio data are adjusted according to the new user position and the position of each of the target second devices, so that the adjusted target audio data meets the target condition; if the new user position is within the specified area and each of the target second devices is in a non-playing state, a new target audio type, a new target second device and a new target audio data corresponding to the new user position are re-determined.

[0008] In some embodiments, according to the target audio type, target audio data corresponding to each target second device is determined from the audio data to be played, including: acquiring multiple original audio data corresponding to the audio data to be played; if the original audio data matches the target audio type, determining each target audio data according to each original audio data.

[0009] In some embodiments, each target audio data is determined based on each original audio data, including: determining whether each original audio data meets the target condition based on the user position and the position of each target second device; if each original audio data meets the target condition, determining each original audio data as the target audio data; if each original audio data does not meet the target condition, adjusting the audio parameters of each original audio data based on the user position and the position of each target second device, and determining each original audio data after adjustment as the target audio data.

[0010] In some embodiments, the audio parameter includes at least one of intensity and phase, and the target condition includes that each target audio data reaches the user position with the same intensity and / or the same phase after being played by each target second device.

[0011] In some embodiments, it also includes: if the original audio data does not match the target audio type, the audio data to be played is processed according to an audio processing algorithm corresponding to the target audio type to generate original audio data matching the target audio type.

[0012] An embodiment of the present application also proposes an audio playback device, which is applied to a first device, including: an acquisition module, used to acquire a user position; a first determination module, used to determine a target audio type according to the position of each second device if there are multiple second devices within a preset range corresponding to the user position; a second determination module, used to determine multiple target second devices from each second device according to the target audio type; and a third determination module, used to determine target audio data corresponding to each target second device from the audio data to be played according to the target audio type, so that each target second device plays the audio data to be played together. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 A flowchart of an audio playback method according to an embodiment of the present application;

[0014] Figure 2 A flowchart of determining multiple target second devices from each second device according to an embodiment of the present application;

[0015] Figure 3 A flowchart of determining a target audio type according to an embodiment of the present application;

[0016] Figure 4 The process of the audio playing method when the user position changes according to the embodiment of the present application Figure 1 ;

[0017] Figure 5 The process of the audio playing method when the user position changes according to the embodiment of the present application Figure 2 ;

[0018] Figure 6 The process of the audio playing method when the user position changes according to the embodiment of the present application Figure 3 ;

[0019] Figure 7 A flowchart of determining target audio data corresponding to each target second device from audio data to be played according to an embodiment of the present application;

[0020] Figure 8 This is a flowchart of determining each target audio data according to each original audio data according to an embodiment of the present application;

[0021] Fig. 9A flowchart of determining each target audio data when the original audio data of an embodiment of the present application does not match the target audio type;

[0022] Fig.10 This is a structural block diagram of an audio playback device according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] Various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0024] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0025] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0026] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0027] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.

[0028] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

[0029] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.

[0030] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.

[0031] In an audio playback method of an embodiment of the present application, a first device uses a plurality of second devices within a preset range corresponding to a user position to determine a target audio type, and determines a plurality of target second devices from each second device according to the target audio type, so that each target second device plays the audio data to be played together, thereby achieving a stereo effect through the plurality of target second devices, so that the user can obtain a better stereo effect without setting up an independent stereo device, thereby improving the user experience.

[0032] The method is applied to a first device, such as Figure 1 As shown, the following steps are included:

[0033] Step S101, obtaining the user location.

[0034] In this embodiment, the first device is a device that provides audio data to be played, and may include any one of a computer, a smart wearable device, a television, a speaker, etc. The second device is a device with an audio playback function, and may include any one of a computer, a smart wearable device, a television, a speaker, etc. The first device may not have an audio playback function, for example, the first device is a desktop computer without a speaker; the first device may also have an audio playback function, in which case the first device can be regarded as a second device and can participate in the joint playback of the audio data to be played.

[0035] The user location is the location of the user, which can be a coordinate or a user area centered on the coordinate. The user location can correspond to the location of a single user or the location of a target user among multiple users. The target user can be any user among multiple users or a specified user among multiple users.

[0036] The user can be directly detected by the first device to obtain the user's position, or other devices other than the first device can be used to detect the user and obtain the user's position. For example, when the first device has a position detection function, the user's position can be obtained through the first device. When the first device does not have a detection function, the user's position can be obtained by other devices other than the first device. After the other devices obtain the user's position, they send the user's position to the first device. The other devices may be devices with certain computing capabilities in each second device, such as laptops. Among them, the first device or other devices can communicate with the user's wearable device (such as a smart watch), and detect the position of the wearable device through any one of the positioning methods such as TWS (True Wireless Stereo) headphone positioning, ultrasonic positioning, ultra-wideband positioning, etc., so as to determine the user's position. If the user moves or turns around, the change in the user's position can also be determined by the above positioning method.

[0037] Other devices may also be image acquisition devices that can acquire user images, such as cameras, etc. The image acquisition device acquires the user's location by acquiring and analyzing the user's image, and sends the user's location to the first device.

[0038] Step S102: if there are multiple second devices within a preset range corresponding to the user position, determine the target audio type according to the position of each second device.

[0039] In this embodiment, the preset range corresponding to the user position may be the room where the user is located or a part of the room where the user is located. If there are multiple second devices within the preset range corresponding to the user position, it means that there are multiple usable audio playback devices, and the target audio type represents the stereo effect finally presented, and the target audio type is determined according to the position of the second device.

[0040] For example, if each second device includes 4 front speakers and 1 rear speaker, the target audio type may be an audio type corresponding to 5-channel surround. If each second device includes 5 front speakers and 2 rear speakers, the target audio type may be an audio type corresponding to 7-channel surround. It is also possible to select 4 front speakers and 1 rear speaker from the 7 speakers, and use the other 1 speaker as a bass device, and the target audio type may be an audio type corresponding to 5.1 channels.

[0041] Step S103: determining a plurality of target second devices from each of the second devices according to the target audio type.

[0042] In this embodiment, after determining the target audio type, multiple target second devices corresponding to the target audio type are determined from each second device. For example, if the target audio type corresponds to a 5-channel surround sound effect, 5 devices are determined from each second device as target second devices, and if the target audio type corresponds to a 5.1-channel surround sound effect, 6 devices are determined from each second device as target second devices. It can be understood that when the first device belongs to a second device, the target second device may include the first device.

[0043] Step S104: determining target audio data corresponding to each target second device from the audio data to be played according to the target audio type, so that each target second device plays the audio data to be played together.

[0044] In this embodiment, after determining each target second device, multiple target audio data are determined from the audio data to be played according to the target audio type, each target audio data corresponds to a target second device, and each target second device plays the audio data to be played together by playing the corresponding target audio data, thereby presenting a stereo effect corresponding to the target audio type.

[0045] The audio playback method of the embodiment of the present application is applied to the first device, including: obtaining the user position; if there are multiple second devices within the preset range corresponding to the user position, determining the target audio type according to the position of each second device; determining multiple target second devices from each second device according to the target audio type; according to the target audio type, determining the target audio data corresponding to each target second device from the audio data to be played, so that each target second device plays the audio data to be played together. Thus, a stereo effect can be achieved through multiple target second devices, so that the user can obtain a better stereo effect without setting up an independent stereo device, thereby improving the user experience.

[0046] In some embodiments of the present application, the target audio type includes at least one of a target frequency type and a target channel type, and a plurality of target second devices are determined from each of the second devices according to the target audio type, such as Figure 2 As shown, the following steps are included:

[0047] Step S1031, obtaining audio performance information of each of the second devices.

[0048] In this embodiment, the target audio type includes at least one of a target frequency type and a target channel type. The target frequency type can be one or more low-frequency frequencies, corresponding to the bass or sub-bass part in stereo. The target channel type can be a channel type composed of multiple channels, corresponding to each channel in stereo. For example, the target channel type is 2 channels, 5 channels, 7 channels, etc.

[0049] For example, if the target audio type corresponds to 5 channels, the target audio type is a 5-channel type, including left front channel, center, right front channel, right rear channel, and left rear channel. If the target audio type corresponds to 5.1 channels, the target audio type includes 1 low-frequency frequency type and 5-channel types. If the target audio type corresponds to 7 channels, the target audio type is a 7-channel type, including left front surround, right front surround, center surround, left rear surround, right rear surround, left surround, and right surround.

[0050] The audio performance information of the second device may be actively obtained by the first device from the second device, or sent by the second device to the first device, or obtained by the first device from other devices storing the audio performance information of the second device. The audio performance information may be an EQ (Equaliser) curve, or one or more performance parameters including frequency response range, sensitivity, power, distortion, signal-to-noise ratio, impedance, sound effect technology, etc.

[0051] Step S1032: second devices whose audio performance information matches the target frequency type and / or the target channel type in each of the second devices are determined as a plurality of target second devices.

[0052] In this embodiment, if the sound effect performance information of the second device matches the target frequency type and / or the target channel type, it means that the second device can achieve the audio effect that meets the corresponding frequency or the corresponding channel, and the second device is determined as the target second device. For example, if the sound effect performance information of the second device meets the target frequency type, the second device can be used as the target second device that emits bass.

[0053] By considering the audio performance information of the second device, multiple target second devices are determined so that each target second device accurately produces a sound effect that conforms to the target audio type.

[0054] In some embodiments of the present application, the target audio type is determined according to the position of each of the second devices, such as Figure 3 As shown, the following steps are included:

[0055] Step S1021: determining the audio type that can be constructed according to the position of each of the second devices.

[0056] The audio type that can be constructed is related to the position of each second device. For example, if each second device includes 4 front speakers and 1 rear speaker, the audio type that can be constructed is a 4-channel type or a 5-channel type. If each second device includes 4 front speakers, 1 rear speaker and 1 subwoofer, the audio types that can be constructed include 4-channel type, 5-channel type and 5.1-channel type. If each second device includes 5 front speakers, 2 rear speakers and 1 subwoofer, the audio types that can be constructed include 4-channel type, 5-channel type, 5.1-channel type, 7-channel type and 7.1-channel type. Determine the audio type that can be constructed according to the position of each second device, and then perform step S1022 or step S1023.

[0057] Step S1022: If the constructible audio type is one, determine the constructible audio type as the target audio type.

[0058] If there is only one constructible audio type, it means that only this constructible audio type can be used for stereo playback, and the constructible audio type is used as the target audio type.

[0059] Step S1023, if there are multiple constructible audio types, determine the target audio type from each of the constructible audio types according to the user's selection instruction, or select one from each of the constructible audio types as the target audio type according to the target strategy, or select one from each of the constructible audio types as the target audio type according to the original audio data corresponding to the audio data to be played.

[0060] In this embodiment, if there are multiple types of audio that can be constructed, each type of audio that can be constructed can be displayed to the user, and the target audio type can be determined according to the user's selection instruction.

[0061] The target audio type may also be selected according to the target strategy. The target strategy may be to determine the audio type corresponding to the second device at most as the target audio type to achieve the best stereo effect. For example, if the constructible audio types include 5.1 channel type and 7.1 channel type, the 7.1 channel type is used as the target audio type. The target strategy may also be to determine the audio type that matches the computing power of the first device as the target audio type. For example, if the computing power of the first device can only execute 5.1 channels at most, when the constructible audio types include 5.1 channels and 7.1 channels, 5.1 channels is used as the target audio type, thereby ensuring that the first device executes the target audio type smoothly.

[0062] The target audio type can also be determined based on the original audio data corresponding to the audio data to be played. For example, if the constructible audio types include 5.1 channel type and 7.1 channel type, and the original audio data corresponding to the audio data to be played corresponds to 5.1 channel, the 5.1 channel type is used as the target audio type, so that the first device directly sends each original audio data to the corresponding second device for playback, thereby achieving efficient stereo playback. If the original audio data corresponding to the audio data to be played corresponds to 5.1 channel and 7.1 channel, the 7.1 channel type can be used as the target audio type to achieve the best stereo effect.

[0063] In some embodiments of the present application, after the target audio data corresponding to each target second device is determined from the audio data to be played according to the target audio type, so that each target second device plays the audio data to be played together, Figure 4 As shown, the following steps are also included:

[0064] Step S105: if the user location changes, obtain the change of the user location and the status of each of the target second devices.

[0065] In this embodiment, the user position may change, for example, the user moves from one position to another, or the user turns around, etc. If the user position changes, the change of the user position and the status of each target second device are obtained, and the change of the user position may include whether the new user position is in a specified area, or whether the user position continues to change. The status of the target second device may include being in a playing state or in a non-playing state.

[0066] Step S106: adjusting the target audio type and / or the target audio data according to the change of the user position and the status of each of the target second devices.

[0067] In this embodiment, after the user position changes, the target audio type can be adjusted, the target audio data can be adjusted, and the target audio type and the target audio data can be adjusted. For example, if the current target audio type is a 5.1 channel type, and the number of second devices increases by 2 due to the change in the user position, the adjusted target audio type can be a 7.1 channel type. The target audio data can be adjusted by adjusting the audio parameters of the target audio data.

[0068] By adjusting the target audio type and / or target audio data according to the change of the user's position and the status of each target second device when the user's position changes, the user can obtain the best stereo effect at different positions, thereby improving the user experience.

[0069] In some embodiments of the present application, when the degree of change in the user's position reaches the target distance, it is determined that the user's position has changed, thereby avoiding frequent adjustments to the target audio type and / or target audio data, ensuring that the user obtains a stable stereo effect.

[0070] In some embodiments of the present application, the target audio type and / or the target audio data are adjusted according to the change of the user position and the state of each of the target second devices, such as Figure 5 As shown, the following steps are included:

[0071] Step S1061: If the new user position after the user position changes is within the specified area, adjust the audio parameters of each target audio data according to the new user position and the position of each target second device, so that the adjusted target audio data meets the target condition.

[0072] In this embodiment, the designated area may be an area corresponding to the room where the user is located or multiple rooms in the house where the user is located. If the new user position after the user position changes is in the designated area, the relative position between the user and each target second device may be determined based on the new user position and the position of each target second device, and the audio parameters of the target audio data may be adjusted based on the relative position so that each adjusted target audio data meets the target condition. The new user position may be one or more. When there are multiple new user positions, the audio parameters may be adjusted multiple times based on each new user position.

[0073] By adjusting the audio parameters of the target audio data when the user's position changes, the user can experience the best stereo effect at different positions, thereby improving the user experience.

[0074] In some embodiments of the present application, if the new user position continues to change or the new user position exceeds the specified area, the audio parameters of the target audio data are kept unchanged, thereby avoiding frequent adjustments to the target audio data and ensuring a stable stereo effect.

[0075] In some embodiments of the present application, a correspondence table between different user positions and different audio parameters may also be established. After determining the new user position, the corresponding audio parameters are determined by querying the correspondence table, and the target audio data is adjusted, thereby adjusting the target audio data more efficiently.

[0076] In some embodiments of the present application, the target audio type and / or the target audio data are adjusted according to the change of the user position and the state of each of the target second devices, such as Figure 6 As shown, the following steps are included:

[0077] Step S1062: If the new user position is within the designated area and each target second device is in a non-playing state, a new target audio type, a new target second device and new target audio data corresponding to the new user position are re-determined.

[0078] In this embodiment, after the user position changes, the relative position of the user and each second device changes. If the new user position is within the specified area and each target second device is in a non-playing state, since the target second device is in a non-playing state at this time, changing the target audio type will not affect the user's listening experience. Then, it can be determined whether the target audio type needs to be adjusted according to the new user position, and the new target audio type, new target second device and new target audio data corresponding to the new user position are determined. The process of re-determining the new target audio type, new target second device and new target audio data can refer to the description of steps S102-S104, which will not be repeated here.

[0079] By determining a new target audio type, a new target second device and new target audio data after the user position changes, when the new user position is within the specified area and each target second device is in a non-playing state, the new target audio type can be made more suitable for the new user position while avoiding affecting the current stereo effect, thereby ensuring the best stereo effect.

[0080] In some embodiments of the present application, target audio data corresponding to each target second device is determined from the audio data to be played, such as Figure 7 As shown, the following steps are included:

[0081] Step S1041, obtaining a plurality of original audio data corresponding to the audio data to be played.

[0082] In this embodiment, the audio data to be played can be pre-recorded as multiple original audio data that conform to different audio effects. For example, the multiple original audio data include 5 channel data and 1 low-frequency audio data corresponding to 5.1 channels, and 7 channel data and 1 low-frequency audio data corresponding to 7.1 channels.

[0083] Step S1042: If the original audio data matches the target audio type, determine each target audio data according to each original audio data.

[0084] In this embodiment, when there are channel data and / or low-frequency audio data matching the target audio type in the original audio data, the original audio data matches the target audio type. For example, if the original audio data corresponds to 5 channel data and 1 low-frequency audio data in a 5.1 channel, and the target audio type is a 5.1 channel type, it is determined that the original audio data matches the target audio type. If the original audio data corresponds to 5 channel data and 1 low-frequency audio data in a 5.1 channel, and the target audio type is a 7.1 channel type, it is determined that the original audio data does not match the target audio type.

[0085] If the original audio data matches the target audio type, each target audio data is determined based on each original audio data. For example, if the original audio data is 5 channel data and 1 low-frequency audio data, each target audio data is determined based on the 5 channel data and 1 low-frequency audio data.

[0086] When the original audio data matches the target audio type, the target audio data is determined by the original audio data, thereby achieving efficient determination of the target audio data.

[0087] In some embodiments of the present application, each target audio data is determined according to each original audio data, such as Figure 8 As shown, the following steps are included:

[0088] Step S10421: Determine whether each piece of the original audio data meets a target condition based on the user position and the position of each of the target second devices.

[0089] In this embodiment, the target condition is related to the user position and the position of each target second device. According to the user position and the position of each target second device, it is determined whether each original audio data meets the target condition. If so, step S1042 is executed, otherwise step S1043 is executed.

[0090] Step S10422: If each of the original audio data meets the target condition, determine each of the original audio data as the target audio data.

[0091] If each original audio data meets the target condition, it means that each original audio data can correspond to the best stereo effect, and there is no need to adjust each original audio data. Each original audio data is determined as each target audio data, thereby achieving efficient determination of each target audio data.

[0092] Step S10423: If each of the original audio data does not meet the target condition, adjust the audio parameters of each of the original audio data according to the user position and the position of each of the target second devices, and determine the adjusted original audio data as each of the target audio data.

[0093] If the original audio data do not meet the target conditions, it means that the original audio data need to be adjusted to produce the best stereo effect. Specifically, the audio parameters of the original audio data are adjusted according to the user position and the position of each target second device, and the adjusted original audio data are determined as the target audio data, thereby ensuring that the target audio data meets the best stereo effect.

[0094] In some embodiments of the present application, the audio parameter includes at least one of intensity and phase, and the target condition includes that each target audio data arrives at the user position with the same intensity and / or the same phase after being played by each target second device.

[0095] In this embodiment, the audio parameter includes at least one of intensity and phase. By adjusting the intensity of each target audio data, each target audio data can present a corresponding volume, and by adjusting the phase of each target audio data, the play time difference of each target audio data can be adjusted. The target condition includes that each target audio data reaches the user position with the same intensity and / or the same phase after being played by each target second device. By making the target audio data meet the target condition, each target audio data presents the best stereo effect after being played by each target second device, thereby improving the user experience.

[0096] Optionally, the target audio data after adjusting the intensity can be sent to the corresponding target second device, and the volume adjustment instruction corresponding to the target intensity can be sent to the target second device, so that the target second device adjusts the volume according to the audio adjustment instruction, so that the played audio data meets the target intensity.

[0097] In some embodiments of the present application, Fig. 9 As shown, the method further comprises the following steps:

[0098] Step S1043: If the original audio data does not match the target audio type, the audio data to be played is processed according to an audio processing algorithm corresponding to the target audio type to generate original audio data matching the target audio type.

[0099] In this embodiment, if the original audio data does not match the target audio type, the audio data to be played can be processed according to the audio processing algorithm corresponding to the target audio type to generate the original audio data matching the target audio type. For example, if the original audio data corresponds to 5 channel data and 1 low-frequency audio data in the 5.1 channel, and the target audio type is a 7.1 channel type, it is determined that the original audio data does not match the target audio type. The audio data to be played can be processed by the audio processing algorithm corresponding to the 7.1 channel to obtain 7 channel data and 1 low-frequency audio data corresponding to the 7.1 channel.

[0100] Step S1044: determining each target audio data according to each original audio data matching the target audio type.

[0101] For the specific process of step S1044, please refer to the description of steps S10421 to S10423.

[0102] When the original audio data does not match the target audio type, the audio data to be played is processed by a corresponding audio processing algorithm, thereby ensuring reliable realization of a stereo effect corresponding to the target audio type.

[0103] In some embodiments of the present application, before obtaining the user location, the method further includes: establishing a communication connection with each of the second devices based on a first communication protocol, and sending a location measurement instruction to each of the second devices; and determining the location of each of the second devices based on the location data returned by each of the second devices. The first communication protocol may include any one of Bluetooth, WiFi, ZigBee, LoRa, 4G / 5G, and RFID.

[0104] In some embodiments of the present application, after establishing a communication connection with each of the second devices based on the first communication protocol, it also includes: sending an audio performance information acquisition instruction to each of the second devices; receiving and saving the audio performance information returned by each of the second devices.

[0105] The present application also provides an audio playback device, which is applied to a first device, such as Fig.10 As shown, it includes: an acquisition module for acquiring a user position; a first determination module for determining a target audio type according to the position of each second device if there are multiple second devices within a preset range corresponding to the user position; a second determination module for determining multiple target second devices from each second device according to the target audio type; and a third determination module for determining target audio data corresponding to each target second device from the audio data to be played according to the target audio type, so that each target second device plays the audio data to be played together.

[0106] In the audio playback device of the embodiment of the present application, the first device uses the user position to correspond to multiple second devices within a preset range to determine the target audio type, and determines multiple target second devices from each second device according to the target audio type, so that each target second device plays the audio data to be played together, thereby achieving a stereo effect through multiple target second devices, so that the user can obtain a better stereo effect without setting up an independent stereo device, thereby improving the user experience.

[0107] In a specific application scenario, the target audio type includes at least one of a target frequency type and a target channel type, and the second determination module is specifically used to: obtain the audio performance information of each of the second devices; and determine the second devices in each of the second devices whose audio performance information matches the target frequency type and / or the target channel type as multiple target second devices.

[0108] In a specific application scenario, the first determination module is specifically used to: determine the constructible audio type according to the position of each of the second devices; if the constructible audio type is one, determine the constructible audio type as the target audio type; if the constructible audio type is multiple, determine the target audio type from each of the constructible audio types according to the user's selection instruction, or select one from each of the constructible audio types as the target audio type according to the target strategy, or select one from each of the constructible audio types as the target audio type according to the original audio data corresponding to the audio data to be played.

[0109] In a specific application scenario, the device also includes an adjustment module, which is used to: if the user position changes, obtain the change of the user position and the status of each target second device; adjust the target audio type and / or the target audio data according to the change of the user position and the status of each target second device.

[0110] In a specific application scenario, the adjustment module is specifically used to perform at least one of the following steps: if the new user position after the user position changes is within the specified area, adjust the audio parameters of each target audio data according to the new user position and the position of each target second device so that the adjusted target audio data meets the target condition; if the new user position is within the specified area and each target second device is in a non-playing state, redetermine a new target audio type, a new target second device and a new target audio data corresponding to the new user position.

[0111] In a specific application scenario, the third determination module is specifically used to: obtain multiple original audio data corresponding to the audio data to be played; if the original audio data matches the target audio type, determine each target audio data according to each original audio data.

[0112] In a specific application scenario, the third determination module is also specifically used to: determine whether each of the original audio data meets the target condition based on the user position and the position of each of the target second devices; if each of the original audio data meets the target condition, determine each of the original audio data as the target audio data; if each of the original audio data does not meet the target condition, adjust the audio parameters of each of the original audio data based on the user position and the position of each of the target second devices, and determine each of the adjusted original audio data as the target audio data.

[0113] In a specific application scenario, the audio parameter includes at least one of intensity and phase, and the target condition includes that each target audio data reaches the user position with the same intensity and / or the same phase after being played by each target second device.

[0114] In a specific application scenario, the third determination module is also specifically used to: if the original audio data does not match the target audio type, process the audio data to be played according to an audio processing algorithm corresponding to the target audio type to generate original audio data that matches the target audio type.

[0115] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0116] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. A method for playing audio, applied to a first device, comprising: Get user location; If there are multiple second devices within the preset range corresponding to the user position, determine the target audio type according to the position of each second device; determining a plurality of target second devices from each of the second devices according to the target audio type; According to the target audio type, target audio data corresponding to each target second device is determined from the audio data to be played, so that each target second device plays the audio data to be played together.

2. The audio playback method according to claim 1, wherein the target audio type comprises at least one of a target frequency type and a target channel type, and determining a plurality of target second devices from each of the second devices according to the target audio type comprises: Acquire audio performance information of each of the second devices; The second devices whose audio performance information matches the target frequency type and / or the target channel type in each of the second devices are determined as a plurality of the target second devices.

3. The audio playback method according to claim 1, wherein determining the target audio type according to the position of each of the second devices comprises: Determining a constructible audio type according to the position of each of the second devices; If the constructible audio type is one, determining the constructible audio type as the target audio type; If there are multiple constructible audio types, the target audio type is determined from each of the constructible audio types according to a user's selection instruction, or one is selected from each of the constructible audio types as the target audio type according to a target strategy, or one is selected from each of the constructible audio types as the target audio type according to the original audio data corresponding to the audio data to be played.

4. The audio playing method according to claim 1, further comprising: after determining target audio data corresponding to each target second device from the audio data to be played according to the target audio type, so that each target second device plays the audio data to be played together: If the user location changes, obtaining the change of the user location and the status of each of the target second devices; The target audio type and / or the target audio data are adjusted according to the change of the user's position and the status of each of the target second devices.

5. The audio playback method according to claim 4, wherein the target audio type and / or the target audio data is adjusted according to the change of the user position and the state of each of the target second devices, comprising at least one of the following: If the new user position after the user position changes is within the specified area, adjusting the audio parameters of each target audio data according to the new user position and the position of each target second device, so that the adjusted target audio data meets the target condition; If the new user position is within the designated area and each target second device is in a non-playing state, a new target audio type, a new target second device and new target audio data corresponding to the new user position are re-determined.

6. The audio playing method according to claim 1, wherein the target audio data corresponding to each target second device is determined from the audio data to be played according to the target audio type, comprising: Acquire a plurality of original audio data corresponding to the audio data to be played; If the original audio data matches the target audio type, each target audio data is determined according to each original audio data.

7. The audio playing method according to claim 6, wherein the target audio data is determined according to the original audio data, comprising: Determining whether each of the original audio data meets a target condition according to the user position and the position of each of the target second devices; If each of the original audio data meets the target condition, determining each of the original audio data as each of the target audio data; If each of the original audio data does not meet the target condition, the audio parameters of each of the original audio data are adjusted according to the user position and the position of each of the target second devices, and the adjusted original audio data are determined as each of the target audio data.

8. The audio playback method as described in claim 5 or 7, wherein the audio parameters include at least one of intensity and phase, and the target condition includes that each target audio data arrives at the user position with the same intensity and / or the same phase after being played by each target second device.

9. The audio playing method according to claim 6, further comprising: If the original audio data does not match the target audio type, the audio data to be played is processed according to an audio processing algorithm corresponding to the target audio type to generate original audio data matching the target audio type.

10. An audio playback device, applied to a first device, comprising: Acquisition module, used to obtain user location; A first determination module, configured to determine a target audio type according to a position of each of the second devices if there are multiple second devices within a preset range corresponding to the user position; A second determining module, configured to determine a plurality of target second devices from each of the second devices according to the target audio type; The third determination module is used to determine the target audio data corresponding to each target second device from the audio data to be played according to the target audio type, so that each target second device plays the audio data to be played together.

Citation Information

Cited By

  • Audio processing method, controller, vehicle and readable storage medium

    CN120840525A