CN-122027860-A - Spatial sound effect adding method, electronic device and readable storage medium
Abstract
The application discloses a space sound effect adding method, electronic equipment and a readable storage medium, and belongs to the technical field of electronic equipment. The method comprises the steps that XR equipment obtains a first video, the first video is a video with spatial sound effects to be added, the XR equipment determines a target time period from a playing time period of the first video, the target time period is a time period for adding the spatial sound effects, and the XR equipment adds the spatial sound effects to the first video according to the target time period to obtain the target video with the spatial sound effects.
Inventors
- YI JIAWEI
Assignees
- 维沃移动通信有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260224
Claims (10)
- 1. A spatial sound effect adding method, characterized by comprising: The method comprises the steps that an augmented reality XR device obtains a first video, wherein the first video is a video with a space audio effect to be added; The XR equipment determines a target time period from the playing time period of the first video, wherein the target time period is a time period for adding spatial sound effect; And the XR equipment adds a spatial sound effect to the first video according to the target time period to obtain a target video with the spatial sound effect.
- 2. The method of claim 1, wherein before the XR device adds spatial sound effects to the first video according to the target time period, the method further comprises: The XR equipment obtains first audio, wherein the first audio is associated with the target time period; The XR equipment obtains target audio with spatial sound effect based on the first audio, wherein the target audio is audio for playing in the target time period; The XR device adding spatial sound effects for the first video according to the target time period, comprising: The XR device applies the target audio to the target time period of the first video.
- 3. The method of claim 2, wherein the XR device obtains target audio with spatial sound effects based on the first audio, comprising: the XR equipment adjusts the operation parameters of the first audio based on the target information to obtain a second audio; The XR equipment obtains target audio with spatial sound effect based on the second audio; the target information comprises at least one of display information of a target object and gesture actions of a target user, the target object is an image object associated with the first audio, the target user is a user wearing the XR device, and the operation parameters comprise at least one of volume, tone and sounding position.
- 4. The method of claim 3, wherein the target information comprises a gesture of a target user, wherein the XR device adjusts an operating parameter of the first audio based on the target information to obtain a second audio, comprising: The XR equipment adjusts target parameters of a visual indication object based on gesture actions of the target user, wherein the visual indication object is used for indicating the first audio; The XR equipment adjusts the target parameters of the visual indication object to realize adjustment of the operation parameters of the first audio so as to obtain the second audio.
- 5. The method of claim 4, wherein the target parameter comprises a spatial location of the visual reference object that indicates a sound production location of the target audio; the gesture action includes drawing a gesture for a trajectory of the visual reference object; the XR device adjusts target parameters of the visual pointing object based on the gesture of the target user, including: the XR equipment draws gestures based on the tracks, and obtains a first moving track which is a three-dimensional space track corresponding to the track drawing gestures; the XR equipment controls the spatial position of the visual indication object to move according to the first moving track in a first time period, so that a second moving track obtained based on the spatial position movement of the visual indication object is matched with the first moving track, and the first time period is at least one part of the time period in the target time period.
- 6. The method of claim 5, wherein after the acquiring the first movement trajectory, the method further comprises: the XR equipment displays the second moving track, wherein the second moving track is a moving track in a three-dimensional space coordinate system; the XR device adjusts the second movement track from a first position in the three-dimensional space coordinate system to a second position in the three-dimensional space coordinate system in response to a position adjustment gesture.
- 7. The method of claim 3, wherein the target information comprises a gesture of a target user, the operating parameter of the first audio comprises a volume of the first audio, the gesture comprises one of a first gesture and a second gesture; the XR device adjusts an operating parameter of the first audio based on target information, including: The XR device increases a volume of the first audio over a first one of the target time periods based on the first gesture; Or alternatively The XR device decreases a volume of the first audio over a first time period of the target time period based on the second gesture.
- 8. A method according to claim 3, wherein the target information comprises display information of a target object; before the XR device adjusts the operational parameters of the first audio based on the target information to obtain a second audio, the method further comprises: The XR equipment acquires target image frames corresponding to the target time period from the first video; the XR device obtains display information of a target object from the target image frame, wherein the display information comprises at least one of display position, display area and display transparency of the target object.
- 9. An electronic device comprising a processor and a memory, the memory storing a program or instructions that when executed by the processor implement the method of any one of claims 1 to 8.
- 10. A readable storage medium, characterized in that it stores thereon a program or instructions, which when executed by a processor, implements the method according to any of claims 1 to 8.
Description
Spatial sound effect adding method, electronic device and readable storage medium Technical Field The application belongs to the technical field of electronic equipment, and particularly relates to a spatial sound effect adding method, electronic equipment and a readable storage medium. Background With the development of immersive media, spatial audio technology is gradually applied to the fields of video and games, and videos with spatial audio effects can provide users with more immersive and realistic hearing experiences. However, the production of video with spatial sound effects involves acoustic principles and complex software operations. At present, when a video with spatial sound effect is produced, professional video production personnel are required to manually add the spatial sound effect, so that the efficiency of adding the spatial sound effect is lower. Disclosure of Invention The embodiment of the application provides a spatial sound effect adding method, electronic equipment and a readable storage medium, which can solve the problem of low efficiency of adding spatial sound effects in the related technology. In a first aspect, an embodiment of the present application provides a spatial sound effect adding method, including: an Extended Reality (XR) device acquires a first video, wherein the first video is a video to be added with a spatial audio effect; The XR equipment determines a target time period from the playing time period of the first video, wherein the target time period is a time period for adding spatial sound effect; And the XR equipment adds a spatial sound effect to the first video according to the target time period to obtain a target video with the spatial sound effect. In a second aspect, an embodiment of the present application provides a spatial sound effect adding device, including: the acquisition module is used for acquiring a first video, wherein the first video is a video with a space audio effect to be added; the determining module is used for determining a target time period from the playing time period of the first video, wherein the target time period is a time period for adding the spatial sound effect; and the sound effect adding module is used for adding a spatial sound effect to the first video according to the target time period to obtain a target video with the spatial sound effect. In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory stores a program or instructions that, when executed by the processor, implement a method according to the first aspect. In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement a method according to the first aspect. In a fifth aspect, an embodiment of the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method of the first aspect. In the embodiment of the application, an XR device acquires a first video, wherein the first video is a video with a space sound effect to be added, determines a target time period from a playing time period of the first video, wherein the target time period is a time period for adding the space sound effect, and adds the space sound effect to the first video according to the target time period to obtain a target video with the space sound effect. In this way, compared with the prior art that the space sound effect is manually added by a professional video producer, the embodiment of the application adds the space sound effect to the first video through the XR equipment, improves the efficiency of adding the space sound effect, and solves the problem of lower efficiency of adding the space sound effect in the prior art. Drawings FIG. 1 is a flowchart of a method for adding spatial sound effects according to an embodiment of the present application; FIG. 2 is a flowchart of another method for adding spatial sound effects according to an embodiment of the present application; FIG. 3 is an exemplary schematic diagram of a target object provided by an embodiment of the present application; fig. 4 is a schematic diagram of an example of adjusting volume according to an embodiment of the present application; FIG. 5 is an exemplary schematic diagram of adding wing dancing sound effects to a bird by distance, provided by an embodiment of the present application; FIG. 6 is a schematic illustration of an example of adding a forest sound to a mountain through transparency, provided by an embodiment of the present application; FIG. 7 is a flowchart of another method for adding spatial sound effects according to an embodiment of the present application; FIG. 8 is an exemplary schematic diagram of a first movement track provided by an embodiment of the present application; FIG. 9 is an exemplary schematic di