CN-122027950-A - Audio playing method and related device
Abstract
The application provides an audio playing method and a related device. In the method, the first electronic device may separate ambient sound in the first audio signal from non-ambient sound in the first audio signal. The first electronic device then transmits ambient sound in the first audio signal to a second electronic device that establishes a communication connection with the first electronic device. The first electronic device may play non-ambient sounds in the first audio signal and the second electronic device may play ambient sounds in the first audio signal. By implementing the method, only two devices are needed, one device plays non-environmental sound in the first audio signal, the other device plays environmental sound in the first audio signal, the positions and the distances between the two devices and a user are different, the user can perceive different distances and different positions of different types of audio signals in space, and the three-dimensional space playing effect of the first audio signal can be restored, so that realistic and immersive hearing experience is brought to the user.
Inventors
- YAO JINGYU
- ZHANG HENG
- CHEN YANG
- Chu Xixue
- LIN YUANPENG
- QIN PENG
Assignees
- 华为技术有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251117
Claims (20)
- 1. The audio playing method is characterized by being applied to an audio playing system, wherein the audio playing system comprises a first electronic device and a second electronic device, communication connection is established between the first electronic device and the second electronic device, and the method comprises the following steps: the first electronic device acquires a first audio signal; the first electronic device sends ambient sound in the first audio signal to the second electronic device; the first electronic device plays non-ambient sound in the first audio signal; The second electronic device plays the ambient sound in the first audio signal.
- 2. The method of claim 1, wherein a distance between the first electronic device and a user is greater than a distance between the second electronic device and the user.
- 3. The method of claim 1 or 2, wherein the second electronic device is worn on the head of the user.
- 4. A method according to any one of claims 1-3, wherein the non-ambient sound in the first audio signal comprises a preset type of audio signal comprising any one or more of a human sound, a music sound, a musical instrument sound.
- 5. The method of claim 4, wherein the first audio signal is a mono audio signal, and wherein before the first electronic device transmits ambient sound in the first audio signal to the second electronic device, the method further comprises: the first electronic device obtains the preset type of audio signals in the first audio signals to obtain non-environmental sounds in the first audio signals; The first electronic device acquires the audio signals except the audio signals of the preset type in the first audio signals, and environmental sound in the first audio signals is obtained.
- 6. The method of any of claims 1-4, wherein the first audio signal is a multi-channel audio signal, the first audio signal comprising a first channel audio signal and a second channel audio signal, the method further comprising, prior to the first electronic device transmitting ambient sound in the first audio signal to the second electronic device: The first electronic device obtains a second audio signal in the audio signals of the first channel and a third audio signal in the audio signals of the second channel to obtain non-ambient sound in the first audio signal, wherein the similarity between the second audio signal and the third audio signal is larger than a first value; The first electronic device acquires the audio signals except the second audio signal and the third audio signal in the first audio signal, and obtains the environmental sound in the first audio signal.
- 7. The method according to any of claims 1-6, wherein the first electronic device plays non-ambient sounds in the first audio signal, in particular comprising: The first electronic device plays non-ambient sound in the first audio signal at a first moment; the second electronic device plays the environmental sound in the first audio signal, which specifically includes: the second electronic equipment plays the environmental sound in the first audio signal at a second moment; and the difference value between the first time and the second time is smaller than or equal to a preset duration.
- 8. The method according to claim 7, wherein the first electronic device transmits ambient sound in the first audio signal to the second electronic device, in particular comprising: the first electronic device sends environmental sounds in the first audio signal to the second electronic device at a third moment; Before the first electronic device plays the non-ambient sound in the first audio signal at a first time, the method further comprises: The first electronic equipment processes non-ambient sound in the first audio signal at a fourth time to obtain non-ambient sound in the first audio signal in an analog domain; the first electronic device plays the non-environmental sound in the first audio signal at a first time, which specifically includes: The first electronic device playing non-ambient sound in the first audio signal of the analog domain at the first time; The difference between the third time and the fourth time is equal to the sum of the data transmission time delay between the first electronic device and the second electronic device and the first playing time delay of the second electronic device minus the second playing time delay of the first electronic device, and the difference between the fourth time and the first time is equal to the second playing time delay of the first electronic device.
- 9. The method of any of claims 1-6, wherein prior to the first electronic device transmitting ambient sound in the first audio signal to the second electronic device, the method further comprises: The first electronic device obtains a first distance between the first electronic device and the second electronic device; The first electronic device adjusts the amplitude of the environmental sound in the first audio signal and the amplitude of the non-environmental sound in the first audio signal based on the first distance to obtain the environmental sound in the first audio signal after the amplitude adjustment and the non-environmental sound in the first audio signal after the amplitude adjustment; the first electronic device sends the environmental sound in the first audio signal to the second electronic device, and specifically includes: The first electronic device sends the environmental sound in the first audio signal after the amplitude adjustment to the second electronic device; The first electronic device plays the non-environmental sound in the first audio signal, which specifically includes: the first electronic equipment plays non-environmental sounds in the first audio signal after the amplitude adjustment; the second electronic device plays the environmental sound in the first audio signal, which specifically includes: The second electronic equipment plays the environmental sound in the first audio signal after the amplitude adjustment; And the difference between the loudness of the non-ambient sound in the first audio signal, which is played by the first electronic device and has been subjected to amplitude adjustment, reaching a first position and the loudness of the ambient sound in the first audio signal, which is played by the second electronic device and has been subjected to amplitude adjustment, reaching the first position is smaller than or equal to a second value.
- 10. The method according to claim 7 or 8, characterized in that the method further comprises: the first electronic device sends non-ambient sound in the first audio signal to the second electronic device; The second electronic equipment plays non-environmental sounds in the first audio signal at a fifth moment; And the difference between the first time and the fifth time is smaller than or equal to the preset time, and the loudness of the non-ambient sound in the first audio signal played by the second electronic device reaching a first position is smaller than the loudness of the non-ambient sound in the first audio signal played by the first electronic device reaching the first position.
- 11. The method of any of claims 1-10, wherein the audio playback system further comprises a third electronic device, the first electronic device and the third electronic device establishing a communication connection, the method further comprising: the first electronic device sends the first audio signal to the third electronic device; The third electronic device plays the first audio signal.
- 12. The method of any of claims 1-10, wherein the audio playback system further comprises a third electronic device, the first electronic device and the third electronic device establishing a communication connection, the method further comprising: The first electronic device sends ambient sound in the first audio signal to the third electronic device; the third electronic device plays ambient sound in the first audio signal.
- 13. The method according to any one of claims 1-12, wherein the first electronic device comprises any one of a tablet computer, a cell phone, a large screen device; the second electronic device comprises any one of a wearable device, an AR device, a VR device and an intelligent sound.
- 14. The method of claim 13, wherein the wearable device comprises any one of smart glasses, smart headphones.
- 15. An audio playing method, characterized in that the method comprises: The first electronic equipment and the second electronic equipment are connected in a communication way; the first electronic device acquires a first audio signal; The first electronic device sends the environmental sound in the first audio signal to the second electronic device, and the environmental sound in the first audio signal is used for being played by the second electronic device; The first electronic device plays non-ambient sound in the first audio signal.
- 16. The method of claim 15, wherein a distance between the first electronic device and a user is greater than a distance between the second electronic device and the user.
- 17. The method of claim 15 or 16, wherein the second electronic device is worn on the head of the user.
- 18. The method of any of claims 15-17, wherein the non-ambient sound in the first audio signal comprises a preset type of audio signal comprising any one or more of a human sound, a musical instrument sound.
- 19. The method of claim 18, wherein the first audio signal is a mono audio signal, and wherein prior to the first electronic device transmitting ambient sound in the first audio signal to the second electronic device, the method further comprises: the first electronic device obtains the preset type of audio signals in the first audio signals to obtain non-environmental sounds in the first audio signals; The first electronic device acquires the audio signals except the audio signals of the preset type in the first audio signals, and environmental sound in the first audio signals is obtained.
- 20. The method of any of claims 15-19, wherein the first audio signal is a multi-channel audio signal, the first audio signal comprising a first channel audio signal and a second channel audio signal, the method further comprising, prior to the first electronic device transmitting ambient sound in the first audio signal to the second electronic device: The first electronic device obtains a second audio signal in the audio signals of the first channel and a third audio signal in the audio signals of the second channel to obtain non-ambient sound in the first audio signal, wherein the similarity between the second audio signal and the third audio signal is larger than a first value; The first electronic device acquires the audio signals except the second audio signal and the third audio signal in the first audio signal, and obtains the environmental sound in the first audio signal.
Description
Audio playing method and related device Technical Field The present application relates to the field of terminal technologies, and in particular, to an audio playing method and a related device. Background With the continuous development of audio technology and terminal technology, more and more users tend to improve the hearing experience of users by reconstructing a sound field even if the users feel "sound" to face their environment when playing audio through electronic devices. How to improve the audio playing effect of the electronic device needs to be further studied. Disclosure of Invention The application provides an audio playing method and a related device. According to the application, only two devices are needed, one device plays non-environmental sound in the first audio signal, the other device plays environmental sound in the first audio signal, the two devices are different in azimuth and distance from a user, the user can perceive different distances and different azimuth of different types of audio signals in space, and the three-dimensional space playing effect of the first audio signal can be restored, so that realistic and immersive hearing experience is brought to the user. In a first aspect, the present application provides an audio playing method. The method is applied to an audio playing system, the audio playing system comprises a first electronic device and a second electronic device, communication connection is established between the first electronic device and the second electronic device, the method comprises the steps that the first electronic device obtains a first audio signal, the first electronic device sends ambient sound in the first audio signal to the second electronic device, the first electronic device plays non-ambient sound in the first audio signal, and the second electronic device plays ambient sound in the first audio signal. The communication connection between the first electronic device and the second electronic device may comprise a wired connection or a wireless connection, and the wireless connection may include, but is not limited to, any one or more of a Bluetooth connection, a Wi-Fi connection, an NFC connection, an IR connection, a UWB connection, a ZigBee connection, and the like. Optionally, the first electronic device comprises any one of a tablet personal computer, a mobile phone and a large screen device, and the second electronic device comprises any one of a wearable device, an AR device, a VR device and an intelligent sound device. The wearable device comprises any one of intelligent glasses and intelligent headphones. By implementing the method, only two devices are needed, one device plays non-environmental sound in the first audio signal, the other device plays environmental sound in the first audio signal, the positions and the distances between the two devices and a user are different, the user can perceive different distances and different positions of different types of audio signals in space, and the three-dimensional space playing effect of the first audio signal can be restored, so that realistic and immersive hearing experience is brought to the user. With reference to the first aspect, in one possible implementation manner, a distance between the first electronic device and the user is greater than a distance between the second electronic device and the user. According to the method, the distance between the second electronic equipment and the user is short, the distance between the first electronic equipment and the user is long, the environmental sound in the first audio signal is short to the human ear, the non-environmental sound in the first audio signal is long to the human ear, the environmental sound in the first audio signal is played through the second electronic equipment, the non-environmental sound in the first audio signal is played through the first electronic equipment, the user can perceive that the environmental sound in the first audio signal is near the human ear, the non-environmental sound in the first audio signal is far away from the human ear, the user perceives different distances and different directions of different types of audio signals in space, and the three-dimensional space playing effect of the first audio signal can be restored, so that vivid and immersive hearing experience is brought to the user. With reference to the first aspect, in one possible implementation manner, the second electronic device is worn on a head of the user. With reference to the first aspect, in one possible implementation manner, the non-ambient sound in the first audio signal includes a preset type of audio signal. Optionally, the audio signal of the preset type comprises any one or more of human voice, music voice and musical instrument voice. Optionally, the ambient sound in the first audio signal includes, but is not limited to, ambient noise and the like. With reference to the first aspect, in one possible implementa