[go: up one dir, main page]

CN119071715A - Audio playback method and device - Google Patents

Audio playback method and device Download PDF

Info

Publication number
CN119071715A
CN119071715A CN202411046233.5A CN202411046233A CN119071715A CN 119071715 A CN119071715 A CN 119071715A CN 202411046233 A CN202411046233 A CN 202411046233A CN 119071715 A CN119071715 A CN 119071715A
Authority
CN
China
Prior art keywords
target
audio
audio data
type
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202411046233.5A
Other languages
Chinese (zh)
Inventor
范海涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202411046233.5A priority Critical patent/CN119071715A/en
Publication of CN119071715A publication Critical patent/CN119071715A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • H04S7/302Electronic adaptation of stereophonic sound system to listener position or orientation
    • H04S7/303Tracking of listener position or orientation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/02Spatial or constructional arrangements of loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S2400/00Details of stereophonic systems covered by H04S but not provided for in its groups
    • H04S2400/11Positioning of individual sound objects, e.g. moving airplane, within a sound field

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Stereophonic System (AREA)

Abstract

The application discloses an audio playing method and device, which are applied to first equipment, and the method comprises the steps of obtaining a user position, determining a target audio type according to the position of each second equipment if a plurality of second equipment exist in a preset range corresponding to the user position, determining a plurality of target second equipment from the second equipment according to the target audio type, and determining target audio data corresponding to each target second equipment respectively from audio data to be played according to the target audio type so that the target second equipment can play the audio data to be played together.

Description

Audio playing method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for playing audio.
Background
At present, to realize stereo playing of audio data, a specific stereo device is generally needed, and sometimes, the positions of the speakers in the stereo device are also needed to be accurately adjusted to generate the expected stereo effect, and the cost of the stereo device is generally higher, so that a user needs to pay a higher cost to obtain a better stereo effect.
Disclosure of Invention
The embodiment of the application provides an audio playing method which is applied to first equipment and comprises the steps of obtaining a user position, determining a target audio type according to the position of each second equipment if a plurality of second equipment exist in a preset range corresponding to the user position, determining a plurality of target second equipment from the second equipment according to the target audio type, and determining target audio data corresponding to each target second equipment respectively from audio data to be played according to the target audio type so that the target second equipment commonly plays the audio data to be played.
In some embodiments, 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 the second devices according to the target audio type comprises acquiring audio performance information of the second devices, and determining the second devices, of which the audio performance information is matched with the target frequency type and/or the target channel type, as a plurality of target second devices.
In some embodiments, determining the target audio type according to the position of each second device comprises determining a configurable audio type according to the position of each second device, determining the configurable audio type as the target audio type if the configurable audio type is one, determining the target audio type from each configurable audio type according to a selection instruction of a user if the configurable audio type is multiple, or selecting one from each configurable audio type as the target audio type according to a target strategy, or selecting one from each configurable audio type as the target audio type according to original audio data corresponding to the audio data to be played.
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, the method further comprises obtaining the change condition of the user position and the state of each target second device if the user position changes, and adjusting the target audio type and/or the target audio data according to the change condition of the user position and the state of each target second device.
In some embodiments, adjusting the target audio type and/or the target audio data according to the change condition of the user position and the state of each target second device comprises at least one of adjusting audio parameters of each target audio data according to the new user position and the position of each target second device if the new user position after the change of the user position is in a designated area so that each adjusted target audio data meets target conditions, and re-determining a new target audio type corresponding to the new user position, a new target second device and new target audio data if the new user position is in the designated area and each target second device is in an unplayed state.
In some embodiments, determining target audio data corresponding to each target second device from audio data to be played according to a target audio type includes obtaining a plurality of original audio data corresponding to the audio data to be played, and determining each target audio data according to each original audio data if the original audio data matches the target audio type.
In some embodiments, determining each of the target audio data from each of the original audio data includes determining whether each of the original audio data satisfies a target condition based on the user location and the location of each of the target second devices, determining each of the original audio data as each of the target audio data if each of the original audio data satisfies the target condition, and adjusting audio parameters of each of the original audio data based on the user location and the location of each of the target second devices if each of the original audio data does not satisfy the target condition, and determining each of the adjusted original audio data as each of the target audio data.
In some embodiments, the audio parameters include at least one of intensity, phase, and the target condition includes that each of the target audio data arrives at the user location with the same intensity and/or the same phase after being played by each of the target second devices.
In some embodiments, the method further comprises processing the audio data to be played according to an audio processing algorithm corresponding to the target audio type if the original audio data does not match the target audio type, and generating each original audio data matching the target audio type.
The embodiment of the application also provides an audio playing device which is applied to the first equipment and comprises an acquisition module, a first determination module, a second determination module and a third determination module, wherein the acquisition module is used for acquiring the user position, the first determination module is used for determining the target audio type according to the positions of the second equipment if a plurality of second equipment exist in the preset range corresponding to the user position, the second determination module is used for determining a plurality of target second equipment from the second equipment according to the target audio type, and the third determination module is used for determining target audio data corresponding to the target second equipment respectively from the audio data to be played according to the target audio type so that the target second equipment jointly plays the audio data to be played.
Drawings
Fig. 1 is a flowchart of a method for playing audio according to an embodiment of the present application;
FIG. 2 is a flow chart of determining a plurality of target second devices from among the second devices according to an embodiment of the present application;
FIG. 3 is a flow chart of determining a target audio type according to an embodiment of the present application;
FIG. 4 is a flowchart showing a method for playing audio when the user position is changed according to an embodiment of the present application;
FIG. 5 is a second flowchart of a method for playing audio when the user position is changed according to the embodiment of the present application;
FIG. 6 is a flowchart III of a method for playing audio when the user position is changed according to an embodiment of the present application;
FIG. 7 is 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;
FIG. 8 is a flow chart of determining target audio data from original audio data according to an embodiment of the present application;
FIG. 9 is a flowchart of determining target audio data when the original audio data does not match the target audio type according to an embodiment of the present application;
fig. 10 is a block diagram of an audio playing device according to an embodiment of the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the accompanying drawings.
It should be understood that various modifications may be made to the embodiments of the application herein. Therefore, the above description should not be taken as limiting, but merely as exemplification of the embodiments. Other modifications within the scope and spirit of the application will occur to persons of ordinary skill in the art.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and, together with a general description of the application given above, and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the 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.
It is also to be understood that, although the application has been described with reference to some specific examples, those skilled in the art can certainly realize many other equivalent forms of the application.
The above and other aspects, features and advantages of the present application will become more apparent in light of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the application will be described hereinafter with reference to the accompanying drawings, in which, however, it is to be understood that the embodiments so applied are merely examples of the application, which may be practiced in various ways. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application in unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not intended to be limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the word "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
According to the audio playing method, the first device determines the target audio type by utilizing the plurality of second devices in the preset range corresponding to the user position, and determines the plurality of target second devices from the second devices according to the target audio type, so that the target second devices play audio data to be played together, a stereo effect can be achieved through the plurality of target second devices, a user can obtain a better stereo effect without setting an independent stereo device, and user experience is improved.
The method is applied to the first equipment, as shown in fig. 1, and comprises the following steps:
step S101, a user position is acquired.
In this embodiment, the first device is a device for providing audio data to be played, which may include any one of a computer, an intelligent wearable device, a television, a sound box, and the like, and the second device is a device with an audio playing function, which may include any one of a computer, an intelligent wearable device, a television, a sound box, and the like. The first device may not have an audio playing function, for example, the first device may be a desktop computer without a speaker, or the first device may have an audio playing function, and may be used as a second device to participate in playing audio data to be played together.
The user location is the location of the user, and may be a coordinate or a user area centered on the coordinate. The user location may correspond to a location where a single user is located, or may correspond to a location where a target user of a plurality of users is located, where the target user may be any one of the plurality of users, or may be a designated user of the plurality of users.
The user can be directly detected through the first equipment to obtain the user position, and other equipment except the first equipment can also be adopted to detect the user to obtain the user position. For example, when the first device has a position detection function, the user position may be acquired by the first device. When the first device does not have the detection function, the user position can be acquired through other devices except the first device, and the user position is sent to the first device after the other devices acquire the user position. The other devices may be devices with a certain computing power in each second device, such as a notebook computer. The first device or other devices may communicate with a wearable device (such as a smart watch) of a user, and detect a position of the wearable device through any one of TWS (True Wireless Stereo) earphone positioning, ultrasonic positioning, ultra-wideband positioning, and so on, so as to determine a user position, and if the user moves or turns around, a change of the user position may also be determined through the above positioning methods.
The other device may also be an image capturing device capable of capturing an image of the user, such as a camera, where the image capturing device obtains the user position by capturing the image of the user and analyzing the image of the user, and sends the user position to the first device.
Step S102, if a plurality of second devices exist in the preset range corresponding to the user position, determining a target audio type according to the position of each second device.
In this embodiment, the preset range corresponding to the user position may be a room or a part of a room where the user is located. If a plurality of second devices exist in the corresponding preset range of the user position, a plurality of usable audio playing devices exist, the target audio type represents the stereo effect finally presented, and the target audio type is determined according to the positions of the second devices.
For example, if each second apparatus 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, and also 4 front speakers and 1 rear speaker may be selected from among 7 speakers, and the other 1 speaker may be a bass device, and the target audio type may be an audio type corresponding to 5.1 channels.
And step S103, determining a plurality of target second devices from the second devices according to the target audio types.
In this embodiment, after determining the target audio type, a plurality of target second devices corresponding to the target audio type are determined from the second devices. For example, if the target audio type corresponds to a 5-channel surround sound effect, 5 devices are determined as target second devices from among the respective second devices, and if the target audio type corresponds to a 5.1-channel surround sound effect, 6 devices are determined as target second devices from among the respective second devices. It will be appreciated that where the first device belongs to a second device, the target second device may comprise the first device.
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.
In this embodiment, after each target second device is determined, a plurality of target audio data are determined from audio data to be played according to the target audio type, each target audio data corresponds to one target second device, and each target second device plays the audio data to be played together by playing the corresponding target audio data, so that a stereo effect corresponding to the target audio type is presented.
The audio playing method is applied to first equipment and comprises the steps of obtaining a user position, determining target audio types according to the positions of second equipment if a plurality of second equipment exist in a preset range corresponding to the user position, determining a plurality of target second equipment from the second equipment according to the target audio types, and determining target audio data corresponding to the target second equipment respectively from audio data to be played according to the target audio types so that the target second equipment can play the audio data to be played together. Therefore, the stereo effect can be realized through the plurality of target second devices, so that a user can obtain a better stereo effect under the condition that no independent stereo device is arranged, and the user experience is improved.
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 the second devices according to the target audio type, as shown in fig. 2, including the steps of:
step S1031, obtaining audio performance information of each of the second devices.
In this embodiment, the target audio type includes at least one of a target frequency type and a target channel type, where the target frequency type may be one or more low frequency frequencies, corresponding to a bass or bass portion in a stereo, and the target channel type may be a channel type composed of a plurality of channels, corresponding to each channel in the stereo, for example, the target channel type is 2 channels, or 5 channels, or 7 channels, etc.
For example, if the target audio type corresponds to 5 channels, the target audio type is a 5 channel type including a front left channel, a center, a front right channel, a rear right channel, and a rear left channel. If the target audio type corresponds to 5.1 channels, the target audio type includes 1 low frequency type and 5 channel type. If the target audio type corresponds to 7 channels, the target audio type is 7 channels, which are respectively left front surround, right front surround, center surround, left rear surround, right rear surround, left surround, and right surround.
The audio performance information of the second device may be obtained by the first device actively from the second device, may be sent by the second device to the first device, or may be obtained by the first device from another device storing the audio performance information of the second device. The audio performance information may be an EQ (Equaliser, equalizer) curve, or may be one or more performance parameters including a frequency response range, sensitivity, power, distortion, signal to noise ratio, impedance, and sound effect technology.
Step S1032, determining, as a plurality of target second devices, second devices whose audio performance information matches the target frequency type and/or the target channel type, from among the second devices.
In this embodiment, if the sound performance information of the second device matches the target frequency type and/or the target channel type, it is indicated that the second device is capable of realizing the audio effect conforming to 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 satisfies the target frequency type, the second device may be regarded as a target second device emitting a bass sound.
By determining a plurality of target second devices in consideration of the audio performance information of the second devices, each target second device is enabled to accurately generate sound effects conforming to the target audio type.
In some embodiments of the present application, determining the target audio type according to the location of each of the second devices, as shown in fig. 3, includes the following steps:
and step S1021, determining the constructable audio type according to the position of each second device.
The type of audio that can be constructed is related to the location of each second device, e.g. 4 channel type, 5 channel type if each second device comprises 4 front speakers and 1 rear speaker. If each second device includes 4 front speakers, 1 rear speaker, and 1 woofer, the audio types that can be constructed include a 4 channel type, a 5 channel type, and a 5.1 channel type. If each second device includes 5 front speakers, 2 rear speakers, and 1 woofer, 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. The type of audio that can be constructed is determined according to the location of each second device, after which step S1022 or step S1023 is performed.
Step S1022, if the configurable audio type is one, determining the configurable audio type as the target audio type.
If the configurable audio type is one, the method indicates that the configurable audio type can only be adopted for stereo playing, and the configurable audio type is taken as the target audio type.
Step S1023, if the configurable audio types are multiple, determining the target audio type from the configurable audio types according to a selection instruction of a user, selecting one of the configurable audio types as the target audio type according to a target strategy, or selecting one of the configurable audio types as the target audio type according to original audio data corresponding to the audio data to be played.
In this embodiment, if the types of audio that can be constructed are multiple, each type of audio that can be constructed can be presented to the user, and the target audio type is determined according to the selection instruction of the user.
The target audio type may also be selected according to a target policy, which may be to determine the audio type corresponding to the most second devices as the target audio type for best stereo effect, e.g. if the configurable audio type comprises a 5.1 channel type and a 7.1 channel type, the 7.1 channel type is taken as the target audio type. The target policy may also be to determine an audio type matching the computing power of the first device as a target audio type, for example, if the computing power of the first device is capable of executing only 5.1 channels at most, then when the configurable audio type includes 5.1 channels and 7.1 channels, the 5.1 channels are taken as the target audio type, so as to ensure that the first device smoothly executes the target audio type.
The target audio type can also be determined according to the original audio data corresponding to the audio data to be played, for example, if the constructable audio type comprises a 5.1 channel type and a 7.1 channel type, and the original audio data corresponding to the audio data to be played corresponds to a 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 playing, and efficient stereo playing is achieved. If the original audio data corresponding to the audio data to be played corresponds to 5.1 channels and 7.1 channels, the 7.1 channel type can be used as the target audio type, so that the best stereo effect is achieved.
In some embodiments of the present application, after determining, according to the target audio type, 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, as shown in fig. 4, the method further includes the following steps:
step S105, if the user position changes, acquiring the change condition of the user position and the state of each target second device.
In this embodiment, the user's location may change, for example, the user moves from one location to another, or the user turns around, etc. If the user position changes, the change condition of the user position and the state of each target second device are obtained, wherein the change condition of the user position can comprise whether the new user position is in a designated area or whether the user position continuously changes. The state of the target second device may include being in a play state or in an unplayed state.
And step S106, adjusting the target audio type and/or the target audio data according to the change condition of the user position and the state of each target second device.
In this embodiment, after the user position changes, the target audio type may be adjusted, the target audio data may be adjusted, and the target audio type and the target audio data may be adjusted. For example, the current target audio type is a 5.1 channel type, and the number of second devices is increased by 2 due to the change of the user position, the adjusted target audio type may be a 7.1 channel type. The target audio data may be adjusted by adjusting audio parameters of the target audio data.
When the user position changes, the target audio type and/or the target audio data are/is adjusted according to the change condition of the user position and the state of each target second device, so that the user can obtain the best stereo effect at different positions, and the user experience is improved.
In some embodiments of the present application, when the degree of change of the user position reaches the target distance, it is determined that the user position changes, so as to avoid frequent adjustment of the target audio type and/or the target audio data, and ensure that the user obtains a stable stereo effect.
In some embodiments of the present application, the target audio type and/or the target audio data are adjusted according to the change situation of the user location and the state of each target second device, as shown in fig. 5, including the following steps:
Step S1061, if the new user position after the change of the user position is in the designated 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 each adjusted target audio data meets the target condition.
In this embodiment, the designated area may be an area corresponding to a room in which the user is located or a plurality of rooms in a house where the user is located. If the new user position after the user position is changed is in the designated area, the relative position between the user and each target second device can be determined according to the new user position and the position of each target second device, and the audio parameters of the target audio data are adjusted according to the relative position, so that each adjusted target audio data meets the target conditions. The new user location may be one or more, and when the new user location is plural, the audio parameter may be adjusted multiple times according to each new user location.
After the user position is changed, the audio parameters of the target audio data are adjusted, so that the user experiences the best stereo effect at different positions, and the user experience is improved.
In some embodiments of the present application, if the new user position is continuously changed or the new user position exceeds the designated area, the audio parameters of the target audio data are kept unchanged, thereby avoiding frequent adjustment of the target audio data and ensuring that a stable stereo effect is produced.
In some embodiments of the present application, a correspondence table between different user positions and different audio parameters may be established, and after determining a new user position, the corresponding audio parameters are determined by querying the correspondence table, and the target audio data is adjusted, so that the target audio data is adjusted more efficiently.
In some embodiments of the present application, the target audio type and/or the target audio data are adjusted according to the change situation of the user location and the state of each target second device, as shown in fig. 6, including the following steps:
Step S1062, if the new user location is in the specified area and each target second device is in an unplayed state, re-determining a new target audio type, a new target second device and new target audio data corresponding to the new user location.
In this embodiment, after the user position changes, the relative position between the user and each second device changes, if the new user position is in the designated area and each target second device is in an unplayed state, and because the target second device is in the unplayed state at this time, changing the target audio type will not affect the listening experience of the user, it may be determined whether the target audio type needs to be adjusted according to the new user position, and determine a new target audio type, a new target second device and new target audio data corresponding to the new user position. The process of redefining the new target audio type, the new target second device and the new target audio data may refer to the descriptions of step S102-step S104, and will not be repeated here.
By determining the new target audio type, the new target second device and the new target audio data when the new user position is in the designated area and each target second device is in the unplayed state after the user position is changed, the new target audio type can be more in line with the new user position on the basis of avoiding influencing the current stereo effect, and the optimal stereo effect is ensured.
In some embodiments of the present application, determining target audio data corresponding to each target second device from audio data to be played, as shown in fig. 7, includes the following steps:
step S1041, obtaining a plurality of original audio data corresponding to the audio data to be played.
In this embodiment, the audio data to be played may be recorded in advance as a plurality of original audio data conforming to different audio effects, for example, the plurality of original audio data includes 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.
In step S1042, if the original audio data matches the target audio type, each target audio data is determined according to each original audio data.
In this embodiment, when channel data and/or low-frequency audio data matching a target audio type exist in the original audio data, the original audio data is matched with the target audio type, for example, if the original audio data corresponds to 5 channel data and 1 low-frequency audio data in 5.1 channels, and the target audio type is 5.1 channels, it is determined that the original audio data is matched with the target audio type. If the original audio data corresponds to 5 channel data and 1 low frequency audio data in 5.1 channels, and the target audio type is 7.1 channel type, it is determined that the original audio data does not match the target audio type.
If the original audio data matches the target audio type, each target audio data is determined from 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 from the 5 channel data and 1 low frequency audio data.
When the original audio data is matched with the target audio type, the target audio data is determined through the original audio data, and efficient determination of the target audio data is achieved.
In some embodiments of the present application, determining each of the target audio data from each of the original audio data, as shown in fig. 8, includes the steps of:
step S10421, determining whether each of the original audio data meets a target condition according to the user location and the location of each of the target second devices.
In this embodiment, the target condition is related to the user location and the location of each target second device, and it is determined whether each original audio data satisfies the target condition according to the user location and the location of each target second device, if so, step S1042 is executed, otherwise step S1043 is executed.
Step S10422 of determining each of the original audio data as each of the target audio data if each of the original audio data satisfies the target condition.
If the original audio data meet the target conditions, the original audio data can correspond to the optimal stereo effect, adjustment of the original audio data is not needed, the original audio data are determined to be target audio data, and therefore efficient determination of the target audio data is achieved.
And step 10423, if the original audio data do not meet the target condition, adjusting the audio parameters of the original audio data according to the user position and the position of the target second device, and determining the adjusted original audio data as the target audio data.
If the original audio data do not meet the target condition, the optimal stereo effect can be generated after the original audio data are adjusted. Specifically, the audio parameters of each original audio data are adjusted according to the user position and the position of each target second device, and each adjusted original audio data is determined to be each target audio data, so that each target audio data is ensured to accord with the optimal stereo effect.
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 of the target audio data arrives at the user location with the same intensity and/or the same phase after being played by each of the target second devices.
In this embodiment, the audio parameter includes at least one of intensity and phase, the intensity of each target audio data is adjusted to enable each target audio data to present a corresponding volume, and the phase of each target audio data is adjusted to enable the playing time difference of each target audio data to be adjusted. The target conditions include that each target audio data arrives at the user location with the same intensity and/or the same phase after being played by each target second device. By enabling the target audio data to meet the target conditions, the target audio data are played by the target second devices to show the best stereo effect, and user experience is improved.
Optionally, the target audio data with the adjusted intensity may be sent to the corresponding target second device, or a volume adjustment instruction corresponding to the target intensity may be sent to the target second device, so that the target second device adjusts the volume according to the audio adjustment instruction, and the played audio data accords with the target intensity.
In some embodiments of the present application, as shown in fig. 9, the method further comprises the steps of:
Step S1043, if the original audio data does not match the target audio type, processing the audio data to be played according to an audio processing algorithm corresponding to the target audio type, and generating each original audio data matching the target audio type.
In this embodiment, if the original audio data does not match the target audio type, the audio data to be played may be processed according to an audio processing algorithm corresponding to the target audio type, so as to generate each 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 5.1 channels, and the target audio type is 7.1 channels, it is determined that the original audio data does not match the target audio type. The audio data to be played can be processed through an audio processing algorithm corresponding to 7.1 channels, so that 7 channel data and 1 low-frequency audio data corresponding to 7.1 channels are obtained.
Step S1044, determining each target audio data according to each original audio data matched with the target audio type.
The specific procedure of step S1044 may be described with reference to step S10421-step S10423.
When the original audio data is not matched with the target audio type, the audio data to be played is processed through the corresponding audio processing algorithm, so that the stereo effect corresponding to the target audio type is reliably realized.
In some embodiments of the present application, before the user location is obtained, the method further comprises establishing a communication connection with each of the second devices based on a first communication protocol, 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 of Bluetooth, wifi, zigBee, loRa, 4G/5G, RFID.
In some embodiments of the present application, after establishing a communication connection with each of the second devices based on the first communication protocol, the method further includes sending an audio performance information acquisition instruction to each of the second devices, and receiving and storing audio performance information returned by each of the second devices.
The embodiment of the application also provides an audio playing device which is applied to the first equipment, as shown in fig. 10, and comprises an acquisition module, a first determination module, a second determination module and a third determination module, wherein the acquisition module is used for acquiring the user position, the first determination module is used for determining the target audio type according to the positions of the second equipment if a plurality of second equipment exist in the preset range corresponding to the user position, the second determination module is used for determining a plurality of target second equipment from the second equipment according to the target audio type, and the third determination module is used for determining target audio data corresponding to each target second equipment respectively from audio data to be played according to the target audio type, so that the target second equipment jointly play the audio data to be played.
According to the audio playing device, the first equipment determines the target audio type by utilizing the plurality of second equipment in the preset range corresponding to the user position, and determines the plurality of target second equipment from the second equipment according to the target audio type, so that the target second equipment plays the audio data to be played together, the stereo effect can be realized through the plurality of target second equipment, the user can obtain better stereo effect without setting independent stereo equipment, and the user experience is improved.
In a specific application scenario, the target audio type comprises at least one of a target frequency type and a target channel type, and the second determining module is specifically configured to acquire audio performance information of each second device, and determine, as a plurality of target second devices, second devices in each second device, for which the audio performance information is matched with the target frequency type and/or the target channel type.
In a specific application scenario, a first determining module is specifically configured to determine a configurable audio type according to a position of each second device, determine the configurable audio type as the target audio type if the configurable audio type is one, determine the target audio type from each configurable audio type according to a selection instruction of a user if the configurable audio type is multiple, or select one from each configurable audio type as the target audio type according to a target policy, or select one from each configurable audio type as the target audio type according to original audio data corresponding to the audio data to be played.
In a specific application scene, the device further comprises an adjustment module, wherein the adjustment module is used for acquiring the change condition of the user position and the state of each target second device if the user position changes, and adjusting the target audio type and/or the target audio data according to the change condition of the user position and the state of each target second device.
In a specific application scene, the adjusting module is specifically configured to execute at least one of the steps of adjusting audio parameters of each target audio data according to the new user position and the position of each target second device if the new user position after the change of the user position is in a designated area, so that each adjusted target audio data meets a target condition, and re-determining a new target audio type, a new target second device and new target audio data corresponding to the new user position if the new user position is in the designated area and each target second device is in an unplayed state.
In a specific application scenario, the third determining module is specifically configured to obtain a plurality of original audio data corresponding to the audio data to be played, and determine each target audio data according to each original audio data if the original audio data is matched with the target audio type.
In a specific application scenario, the third determining module is further specifically configured to determine whether each piece of original audio data meets a target condition according to the user position and the position of each target second device, determine each piece of original audio data as each piece of target audio data if each piece of original audio data meets the target condition, and adjust an audio parameter of each piece of original audio data according to the user position and the position of each target second device if each piece of original audio data does not meet the target condition, and determine each piece of adjusted original audio data as each piece of target audio data.
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 arrives at the user position with the same intensity and/or the same phase after being played by each target second device.
In a specific application scenario, the third determining module is further specifically configured 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, and generate each original audio data matching the target audio type.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may 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 loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may 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 may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application, the scope of which is defined by the claims. Various modifications and equivalent arrangements of this application will occur to those skilled in the art, and are intended to be within the spirit and scope of the application.

Claims (10)

1. A playing method of audio is applied to a first device and comprises the following steps:
acquiring a user position;
If a plurality of second devices exist in the 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 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 the target second devices play the audio data to be played together.
2. The audio playing method of claim 1, wherein the target audio type includes at least one of a target frequency type and a target channel type, and determining a plurality of target second devices from the second devices according to the target audio type comprises:
Acquiring audio performance information of each second device;
And determining the second devices with the audio performance information matched with the target frequency type and/or the target channel type in the second devices as a plurality of target second devices.
3. The audio playing method as set forth in claim 1, wherein the determining a target audio type according to the location of each of the second devices comprises:
Determining a configurable audio type according to the position of each second device;
If the configurable audio type is one, determining the configurable audio type as the target audio type;
If the configurable audio types are multiple, determining the target audio type from the configurable audio types according to a selection instruction of a user, selecting one of the configurable audio types as the target audio type according to a target strategy, or selecting one of the configurable 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, from the audio data to be played, target audio data corresponding to each target second device respectively according to the target audio type, so that each target second device plays the audio data to be played together:
If the user position changes, acquiring the change condition of the user position and the state of each target second device;
And adjusting the target audio type and/or the target audio data according to the change condition of the user position and the state of each target second device.
5. The audio playing method according to claim 4, wherein the target audio type and/or the target audio data are/is adjusted according to the change condition of the user position and the state of each target second device, and the method comprises at least one of the following steps:
If the new user position after the user position is changed is in the designated 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 each adjusted target audio data meets the target conditions;
And if the new user position is in the designated area and each target second device is in an unplayed state, re-determining a new target audio type, a new target second device and new target audio data corresponding to the new user position.
6. The audio playing method as set forth in claim 1, wherein determining target audio data corresponding to each target second device from the audio data to be played according to the target audio type, comprises:
acquiring a plurality of original audio data corresponding to the audio data to be played;
And if the original audio data is matched with the target audio type, determining each target audio data according to each original audio data.
7. The audio playing method as set forth in claim 6, wherein determining each of the target audio data from each of the original audio data comprises:
determining whether each piece of original audio data meets a target condition according to the user position and the position of each piece of target second equipment;
Determining each of the original audio data as each of the target audio data if each of the original audio data satisfies the target condition;
And if the original audio data do not meet the target conditions, adjusting the audio parameters of the original audio data according to the user position and the position of the target second equipment, and determining the adjusted original audio data as the target audio data.
8. The audio playing method as set forth in claim 5 or 7, wherein the audio parameters include at least one of intensity and phase, and the target condition includes that each of the target audio data arrives at the user location with the same intensity and/or the same phase after being played by each of the target second devices.
9. The audio playing method as set forth in claim 6, further comprising:
and if the original audio data is not matched with the target audio type, processing the audio data to be played according to an audio processing algorithm corresponding to the target audio type, and generating each original audio data matched with the target audio type.
10. An audio playing device, applied to a first device, comprises:
The acquisition module is used for acquiring the position of the user;
The first determining module is used for determining a target audio type according to the positions of a plurality of second devices if the second devices exist in a preset range corresponding to the user position;
a second determining module, configured to determine a plurality of target second devices from the second devices according to the target audio type;
and the third determining module is used 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.
CN202411046233.5A 2024-07-31 2024-07-31 Audio playback method and device Pending CN119071715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411046233.5A CN119071715A (en) 2024-07-31 2024-07-31 Audio playback method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411046233.5A CN119071715A (en) 2024-07-31 2024-07-31 Audio playback method and device

Publications (1)

Publication Number Publication Date
CN119071715A true CN119071715A (en) 2024-12-03

Family

ID=93643753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411046233.5A Pending CN119071715A (en) 2024-07-31 2024-07-31 Audio playback method and device

Country Status (1)

Country Link
CN (1) CN119071715A (en)

Similar Documents

Publication Publication Date Title
US11075609B2 (en) Transforming audio content for subjective fidelity
JP7019723B2 (en) Audio processors, systems, methods and computer programs for audio rendering
DK2941898T3 (en) VIRTUAL HEIGHT FILTER FOR REFLECTED SOUND REPLACEMENT USING UPDATING DRIVERS
CN101212843B (en) Method and apparatus to reproduce stereo sound of two channels based on individual auditory properties
CN110049428B (en) Method, playing device and system for realizing multi-channel surround sound playing
KR102792863B1 (en) Spatial repositioning of multiple audio streams
EP2926572A1 (en) Collaborative sound system
CN112312245B (en) Audio playing method and related device
US10523171B2 (en) Method for dynamic sound equalization
US11736889B2 (en) Personalized and integrated virtual studio
CN112637732A (en) Display device and audio signal playing method
GB2550877A (en) Object-based audio rendering
CN112492446B (en) Method and processor for realizing signal equalization by using in-ear earphone
CN111095191A (en) Display device and control method thereof
US11330371B2 (en) Audio control based on room correction and head related transfer function
CN116367050A (en) Method for processing audio signal, storage medium, electronic device and audio device
JP7522234B2 (en) Audio rendering method and apparatus
CN113645531A (en) Earphone virtual space sound playback method and device, storage medium and earphone
CN119071715A (en) Audio playback method and device
CN113689890B (en) Method, device and storage medium for converting multichannel signal
CN115696172A (en) Sound image calibration method and device
CN115767158A (en) Synchronous playing method, terminal equipment and storage medium
KR20230119192A (en) Stereo headphone psychoacoustic sound localization system and method for reconstructing stereo psychoacoustic sound signal using the same
Jackson et al. Object-Based Audio Rendering
US20060245305A1 (en) System comprising sound reproduction means and ear microphones

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination