SOUND SOURCE DETERMINATION METHOD AND APPARATUS THEREOF, COMPUTER PROGRAM, AND
By determining the transparency of position marks based on distance, the method enhances the accuracy of sound source localization in virtual scenes, addressing the inaccuracy of existing audio-based methods and improving user experience.
Patent Information
- Application Number
- JP2022175217
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2018-05-29
- Filing Date
- 2022-11-01
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2039-04-03
AI Technical Summary
Existing methods for determining the position of sound source objects in virtual scenes based on simulated audio are inaccurate, especially in noisy environments, leading to difficulties in accurately locating the sound source objects.
A method that involves obtaining the position of a virtual character in a virtual scene, detecting the position of a sound source object within a detection area, determining the transparency of a position mark based on the distance between the character and the object, and displaying the mark on an interactive interface to intuitively indicate the object's location.
Improves the accuracy of sound source determination by providing intuitive positioning information, enhancing the user's ability to accurately locate sound source objects in virtual scenes, even in noisy conditions.
Smart Images

Figure 0007552974000001 
Figure 0007552974000006 
Figure 0007552974000005
Abstract
Description
[Technical field]
[0001] This application claims priority from a Chinese patent application bearing application number 2018105324132 and entitled "Sound source determination method and apparatus, storage medium, and electronic device" filed with the China Patent Office on May 29, 2018, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the field of computers, and more particularly to sound source determination techniques. [Background technology]
[0003] In some terminal applications, sounds emitted by virtual objects are simulated in a virtual scene, allowing a user participating in the virtual scene to determine the position of a sound source object in the virtual scene through hearing and complete interactive tasks with the sound source object placed in the virtual scene.
[0004] However, since the sound played in the virtual scene is generally obtained by machine simulation and the accuracy of the sound cannot be guaranteed, the process of determining the sound source object based only on the simulated sound may have the problem that the sound source object cannot be accurately determined.
[0005] In view of the above problems, no effective solution has been proposed prior to the present application. Summary of the Invention [Problem to be solved by the invention]
[0006] The embodiments of the present application provide a sound source determination method and apparatus, a storage medium, and an electronic device, so that a user can accurately determine the position of a sound source virtual object in a virtual scene.
[0007] According to one aspect of an embodiment of the present application, a sound source determination method is provided, comprising the steps of obtaining a first position in a virtual scene of a first virtual character controlled by an application client; detecting a second position in the virtual scene of a sound source virtual object in a sound source detection area associated with the first position; determining a transparency of a position mark matched to the sound source virtual object based on a sound source distance between the first position and the second position, wherein the position mark is used to identify the second position where the sound source virtual object is located; and displaying the position mark of the sound source virtual object in an interactive interface of the application client according to the transparency.
[0008] According to another aspect of an embodiment of the present application, a sound source determination device is further provided, comprising: a first acquisition unit for acquiring a first position in a virtual scene of a first virtual character controlled by an application client; a second acquisition unit for detecting a second position in the virtual scene of a sound source virtual object in a sound source detection area associated with the first position; a first determination unit for determining a transparency of a position mark matched to the sound source virtual object based on a sound source distance between the first position and the second position, wherein the position mark is used to identify the second position where the sound source virtual object is located; and a display unit for displaying the position mark of the sound source virtual object on an interactive interface of the application client according to the transparency.
[0009] According to yet another aspect of an embodiment of the present application, there is further provided a storage medium having a computer program stored therein, the computer program being arranged to perform the sound source determination method when executed.
[0010] According to yet another aspect of an embodiment of the present application, there is further provided an electronic device including a memory, a processor, and a computer program stored in the memory and executable by the processor, the processor executing the sound source determination method by the computer program.
[0011] According to yet another aspect of an embodiment of the present application, there is further provided a computer program product including instructions, which, when executed on a computer, causes the computer to perform the sound source determination method.
[0012] A sound source determination method provided by an embodiment of the present application includes the steps of obtaining a first position in a virtual scene of a first virtual character controlled by an application client, detecting a second position in the virtual scene of a sound source virtual object in a sound source detection area associated with the first position, determining a transparency of a position mark matched to the sound source virtual object based on a sound source distance between the first position and the second position, where the position mark is used to identify the second position where the sound source virtual object is located, and displaying the position mark of the sound source virtual object on an interactive interface of the application client according to the transparency. In the above method, after obtaining the second position of the sound source virtual object in the virtual scene, the transparency can be determined based on the distance between the first position where the first virtual character is located and the second position, and further, a position mark of the sound source virtual object is displayed on the interactive interface according to the transparency, thus solving the problem that the user does not determine the position of the sound source virtual object in the virtual scene only based on the simulated sound, and even in a noisy environment, it does not affect the user to accurately determine the position of the sound source virtual object in the virtual scene, and the accuracy of the determined position of the sound source virtual object cannot be guaranteed by determining the position of the sound source virtual object only based on the simulated sound in the virtual scene. [Brief description of the drawings]
[0013] The drawings described herein are used to provide a further understanding of the present application, constitute a part of the present application, and the illustrative embodiments and the description thereof should not be construed as undue limitations to the present application, but should be used to interpret the present application. [Figure 1] 1 is a schematic diagram of an application environment of a sound source determination method according to an embodiment of the present application; [Diagram 2] FIG. 2 is a flow diagram of an optional sound source determination method according to an embodiment of the present application. [Diagram 3] FIG. 2 is a schematic diagram of an optional sound source determination method according to an embodiment of the present application. [Figure 4] FIG. 13 is a schematic diagram of another optional sound source determination method according to an embodiment of the present application. [Diagram 5] FIG. 13 is a schematic diagram of another optional sound source determination method according to an embodiment of the present application. [Figure 6] FIG. 13 is a schematic diagram of another optional sound source determination method according to an embodiment of the present application. [Figure 7] FIG. 13 is a schematic diagram of another optional sound source determination method according to an embodiment of the present application. [Figure 8] FIG. 13 is a schematic diagram of another optional sound source determination method according to an embodiment of the present application. [Figure 9] FIG. 13 is a schematic diagram of another optional sound source determination method according to an embodiment of the present application. [Figure 10] FIG. 2 is a schematic diagram of the configuration of an optional sound source determination device according to an embodiment of the present application. [Figure 11] FIG. 2 is a schematic diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] In order to allow those skilled in the art to better understand the technical solution of the present application, the following clearly and completely describes the technical solution of the embodiments of the present application in combination with the drawings of the embodiments of the present application, obviously, the described embodiments are not all the embodiments, but only some of the embodiments of the present application, all other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative work shall be within the protection scope of the present application.
[0015] It should be noted that the terms "first", "second", and the like in the specification, claims, and drawings of the present application are not intended to describe any particular order or priority, but are used to distinguish between similar objects. As will be understood, the data so used may be substituted for one another where appropriate, so that the embodiments of the present application described herein may be performed in an order other than that shown or described herein. Furthermore, the terms "include", "contain" and any variations thereof are intended to include non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to the steps or units expressly recited, but may include other steps or units that are not expressly recited or inherent to such process, method, product, or apparatus.
[0016] According to one aspect of an embodiment of the present application, a sound source determination method is provided, and as an optional embodiment, the sound source determination method may be applied to, but is not limited to, the environment shown in FIG. 1 .
[0017] In the process of the application client 102 interacting with the server 106 via the network 104, the application client 102 obtains a first position in the virtual scene of a first virtual character controlled by the application client 102, and detects a second position in the virtual scene of a sound source virtual object in a sound source detection area associated with the first position. After the second position is detected, the application client 102 determines a transparency of a position mark matching the sound source virtual object based on a sound source distance between the first position and the second position. After determining the transparency of the position mark, the application client 102 displays the position mark of the sound source virtual object according to the transparency.
[0018] It should be noted that in the related art, in the process of executing an application client on a mobile terminal, a user generally determines the position of a sound source virtual object in a virtual scene according to a simulated sound. However, since the direction and position of the simulated sound source are not clear, a user generally cannot accurately determine the position of the sound source virtual object in a virtual scene based on the simulated sound, and especially when the user's current environment is relatively noisy, it is difficult for the user to even clearly hear the simulated sound, so that it is more difficult for the user to accurately locate the position of the sound source virtual object in the virtual scene.
[0019] In this embodiment, after obtaining the second position of the sound source virtual object in the virtual scene, the transparency of the position mark can be determined based on the distance between the first position and the second position where the first virtual character is located, and further, the position mark of the sound source virtual object is displayed according to the transparency, i.e., the positioning information of the sound source virtual object is displayed on the interactive interface of the application client. The method displays a position mark in the virtual scene and informs the user of the position of the sound source virtual object in the virtual scene, rather than determining the position of the sound source virtual object in the virtual scene based only on the simulated sound. In contrast, the present application can inform the user of the position of the sound source virtual object more intuitively, solving the problem of low accuracy of the positioning information of the sound source virtual object determined in the prior art, and improving the accuracy of the positioning information of the sound source virtual object.
[0020] Optionally, the sound source determination method may be applied to a terminal capable of computing data, such as, but not limited to, a mobile phone, a tablet, a laptop, a PC (personal computer), or other terminal. The network may include, but is not limited to, a wireless network or a wired network. The wireless network includes Bluetooth, WIFI, and other networks that realize wireless communication. The wired network may include, but is not limited to, a wide area network, a metropolitan area network, and a local area network. The server may include, but is not limited to, any hardware device capable of performing data computation.
[0021] Optionally, as an optional embodiment, as shown in FIG. 2 , the sound source determining method includes: A step S202 of obtaining a first position in the virtual scene of a first virtual character controlled by the application client; a step S204 of detecting a second position in the virtual scene of a sound source virtual object in a sound source detection area associated with the first position; a step S206 of determining a transparency of a position mark matched to the sound source virtual object based on a sound source distance between the first position and the second position, the position mark being used to identify the second position at which the sound source virtual object is located; and a step S208 of displaying the position mark of the sound source virtual object in accordance with the transparency on an interactive interface of the application client.
[0022] Optionally, the sound source determination method may be applied to, but is not limited to, a game field or a simulation training field. Hereinafter, the sound source determination method will be described in relation to the game field. The first virtual character may be, but is not limited to, a game character controlled by a user. The sound source virtual object may be, but is not limited to, an object in a game that can emit sound. The position mark is displayed on a client and may be an icon for displaying the position of the sound source virtual object. When an object that generates sound is detected within a sound source detection range of a game character controlled by a user during a game, the transparency of the icon is determined based on the distance between the object that generates sound and the game character controlled by the user. Based on the determined transparency of the icon, an icon of the corresponding transparency is displayed on a display interface of a client.
[0023] For example, the following description will be made in conjunction with Fig. 3. As shown in Fig. 3, while a current user is playing a game, a front game object near a house controlled by another user is located within a sound source detection range of the game object controlled by the current user. After the game object near the house emits a sound such as a gun sound, the transparency of an icon for indicating the position of the game object near the house is determined based on the distance between the game object controlled by the current user and the game object near the house, and the icon is displayed on the client according to the transparency.
[0024] In an embodiment of the present application, after obtaining a second position of the sound source virtual object in the virtual scene, the transparency of the position mark of the sound source virtual object is determined based on the distance between the first position and the second position where the first virtual character is located, and the position mark is displayed according to the transparency, thereby displaying positioning information of the sound source virtual object on the application client. The method displays a position mark in the virtual scene and notifies the user of the position of the sound source virtual object in the virtual scene, rather than determining the position of the sound source virtual object in the virtual scene based only on simulated audio. In contrast, the present application can notify the user of the position of the sound source virtual object more intuitively, solves the problem of low accuracy of the positioning information of the sound source virtual object determined by the user, and improves the accuracy of the positioning information of the sound source virtual object.
[0025] In an optional embodiment, determining a transparency of a position mark matching the sound source virtual object based on a sound source distance between the first position and the second position includes: A step S1 of acquiring a detection radius of the sound source detection area matching the sound source virtual object; The method includes a step S2 of determining the transparency based on a ratio between the sound source distance and the detection radius, and adjusting the transparency to be smaller when the ratio becomes smaller, and adjusting the transparency to be larger when the ratio becomes larger.
[0026] Optionally, the description will be continued in relation to the game field. As shown in FIG. 4, the detection radius of a character in a game controlled by a user is R, and within the detection radius, there are an object C1 that can emit sound and an object C2 that can emit sound. The ratio of the distance between C1 and the game character controlled by a user to the detection radius is R1 / R, and the ratio of the distance between C3 and the game character controlled by a user to the detection radius is R3 / R. Since R1 / R is greater than R3 / R, the transparency of the position mark of C1 is greater than that of the position mark of C3, that is, compared with the position mark of C3, the display effect of the position mark of C1 is more transparent. Since the object C2 that can emit sound is located outside the detection radius of the game character controlled by a user, when the ratio of the distance between C2 and the game character controlled by a user to the detection radius is greater than 1, and the ratio of the sound source distance to the detection radius is equal to or greater than 1, the transparency of the position mark can be 100%, so the position mark is completely transparent and cannot be seen by the user.
[0027] According to this embodiment, by determining the transparency based on the ratio between the sound source distance and the detection radius, the farther the position mark of the sound source virtual object is from the first position, the more transparent it becomes, thereby enabling the position of the sound source virtual object to be accurately determined, and improving the accuracy of sound source determination.
[0028] In an optional embodiment, obtaining the detection radius of the sound source detection area matching the sound source virtual object includes: A step S1 of obtaining a sound source type of a sound generated by the sound source virtual object and an environment indicator of an environment in which the sound source virtual object is located; and a step S2 of determining the detection radius based on the sound source type and the environmental signature.
[0029] Optionally, for different sound source types, the detection radius of the sound source detection area is also changed accordingly. For example, the following description will be given in relation to the game field. As shown in FIG. 5, A1 and A2 are positions where the door opening and closing sound occurs, and the smallest dotted circle in FIG. 5 is the range where the door opening and closing sound can be detected, so the door opening and closing sound at the A1 position can be detected and displayed on the client of the first virtual object, but the door opening and closing sound at the A2 position cannot be detected. Similarly, B1 and B2 are positions where the gun sound occurs, and the central dotted circle in FIG. 5 is the range where the gun sound can be detected, so the gun sound generated at the B1 position can be detected, but the gun sound generated at the B2 position cannot be detected. Similarly, C1 and C2 are positions where the air drop sound occurs, and the largest dotted circle in FIG. 5 is the range where the air drop sound can be detected, so the air drop sound at the C1 position can be detected, but the air drop sound at the C2 position cannot be detected.
[0030] In addition, differences in the environment also affect the detection radius of the sound source detection area. For example, even if the sound of a gun is detected in the same way, the detection radius on a sunny day is different from the detection radius on a rainy day. Therefore, when determining the detection radius, the detection radius may be adjusted based on the environmental indicator of the environment. For example, different coefficients are set for different environmental indicators, and when the environmental indicators are different, the detection radius in the current environment can be determined based on the detection radius and the coefficient corresponding to the environmental indicator.
[0031] It should be noted that different detection radii of the sound source detection regions may be set in advance for different sound source types, or the detection radii of the corresponding sound source detection regions may be set to the same value for some different sound source types.
[0032] According to this embodiment, the detection radius is determined based on the sound source type of the sound generated by the sound source virtual object and the environmental indicator of the environment in which the sound source virtual object is located, thereby improving the accuracy of determining the positional sound source and improving the flexibility of displaying the positional mark.
[0033] In an optional embodiment, determining the detection radius based on the sound source type and the environmental signature comprises: A step S1 of acquiring an initial detection radius arranged for the sound source type, in which a frequency of a sound indicated by the sound source type is inversely proportional to the size of the initial detection radius; A step S2 of obtaining an audio trigger threshold that matches the environmental signature; and S3, adjusting the initial detection radius to reduce it based on the audio trigger threshold to obtain the detection radius.
[0034] For example, the following description will be given in relation to the game field. During the game, it is necessary to set an initial value of the detection radius for the game character controlled by the user to detect the sound source virtual object. It can be determined according to the frequency of the sound emitted by the sound source virtual object. For example, when the sound frequency of the detection radius for detecting the sound of a gun is different from that of the detection radius for detecting the sound of a door opening and closing, the lower the sound frequency, the larger the corresponding detection radius. Furthermore, the current environment of the game character controlled by the user is determined, and the corresponding sound trigger threshold is determined according to the environmental indicator corresponding to the environment, and the initial detection radius determined according to the sound source type is correspondingly reduced according to the sound trigger threshold, thus obtaining the detection radius corresponding to the sound source type and the environmental indicator.
[0035] According to this embodiment, an initial detection radius is obtained, and the detection radius is reduced based on a voice trigger threshold that matches the environmental indicator, thereby achieving the effect of adjusting the initial detection radius according to different environments and improving the accuracy of determining the display position.
[0036] In an optional embodiment, displaying the position mark of the sound source virtual object in an interactive interface of the application client according to the transparency includes: A step S1 of obtaining a sound source type of a sound generated by the sound source virtual object; and a step S2 of displaying the position mark of the sound source virtual object matching the sound source type.
[0037] For example, in the following description of the game field, the sounds generated by objects that can emit sounds are not necessarily the same, as shown in Fig. 6. For example, when a car generates an engine sound, the position corresponding to the car is marked as a car icon accordingly, and when a gun sound is generated by shooting, the position corresponding to the gun sound is marked as a bullet icon accordingly.
[0038] According to this embodiment, the position mark is determined based on the sound source type of the sound generated by the sound source virtual object, allowing the user to accurately determine the sound source type based on the position mark, thereby achieving the objective of improving the accuracy of sound source determination.
[0039] In an optional embodiment, displaying the position mark of the sound source virtual object matching the sound source type includes: A step S1 of displaying the position mark according to a color matching the sound source type; A step S2 of displaying the position mark according to a shape matching the sound source type; and a step S3 of displaying the location mark according to a sign matching the sound source type.
[0040] For example, the description will be continued in relation to the game field. When the position marks are displayed, they may be displayed using different colors or shapes, or signs. For example, the degree of hecticness of the sound may be represented using position marks of different colors. For example, in the case of a gun sound, the gun sound is represented using a sign "bullet", a hectic gun sound is represented using a sign "red bullet", and a non-hectic gun sound is represented using a sign "white bullet". Alternatively, the degree of hecticness of the sound may be represented using position marks of different shapes. For example, a hectic gun sound is represented using a sign "submachine gun bullet", and a non-hectic gun sound is represented using a sign "sniper rifle bullet".
[0041] According to this embodiment, by adjusting the position mark using different colors and shapes, the user can know the sound source type of the sound generated by the sound source virtual object according to different display schemes, thereby improving the accuracy of sound source determination and improving the flexibility of position mark display.
[0042] In an optional embodiment, displaying the position mark of the sound source virtual object matching the sound source type includes: a step S1 of displaying the position mark of the sound source virtual object at the second position on a map displayed on the interactive interface of the application client; and a step S2 of displaying the position mark of the sound source virtual object in a direction corresponding to the second position on a universal wheel displayed on the interactive interface of the application client.
[0043] For example, in the following description of the game field, when displaying the location mark in the interactive interface, the location mark may be displayed on a map, or the location mark may be displayed on a universal wheel, which may be a directional wheel.
[0044] According to this embodiment, by displaying a location mark on the map of the interactive interface or displaying a location mark on the universal wheel of the interactive interface, the accuracy of determining the sound source can be improved and the user experience can be improved without obscuring the main interface of the interactive interface.
[0045] In an optional embodiment, displaying the position mark of the sound source virtual object matching the sound source type includes: The method includes a step S1 of adjusting a display range of the position mark when a sound source virtual object has a sound deadening device arranged thereon, in which the display range of the position mark of the sound source virtual object in which the sound deadening device is arranged is larger than the display range of the position mark of the sound source virtual object in which the sound deadening device is not arranged.
[0046] For example, the following description will be given in relation to the game field. As shown in FIG. 7, FIG. 7 shows a situation where a sound source virtual object with a silencer is displayed on a minimap. After a car emits sound within the detection radius, the transparency of the car's position mark is determined, and then the car's position mark is displayed on the minimap. After a firearm with a silencer is placed within the detection radius and a sound is emitted from the firearm, a silencer is placed on the firearm, so that when the transparency of the position mark of the firearm from which the sound is emitted is determined and then the position mark of the firearm is displayed on the minimap, the position mark of the firearm is enlarged and then displayed on the minimap.
[0047] According to this embodiment, when a noise suppression device is installed, the display range of the position mark can be adjusted to improve the accuracy of determining the sound source and the flexibility of the position mark display.
[0048] As an optional embodiment, displaying the position mark of the sound source virtual object according to the transparency includes: When a plurality of the sound source virtual objects are detected and the plurality of the sound source virtual objects are located in different directions of the first virtual character, the method includes a step S1 of simultaneously displaying the position marks of the respective sound source virtual objects according to the transparency of the position marks respectively matching the plurality of sound source virtual objects.
[0049] For example, in the following description of the game field, if a game character controlled by a user detects multiple objects emitting sounds during a game, and the sounds are distributed in different directions, each sound source virtual object is displayed by a position mark.
[0050] It should be noted that there is one control threshold for the sound source virtual objects, and if the number of detected sound source virtual objects exceeds the control threshold, it is not necessary to display position marks corresponding to some sound source virtual objects.
[0051] According to this embodiment, by simultaneously displaying position marks of sound source virtual objects in different directions, the effect of simultaneously displaying multiple sound source virtual objects is achieved, which improves the accuracy of sound source determination and allows the user to simultaneously know the positions of multiple sound source virtual objects in the virtual environment.
[0052] As an optional embodiment, displaying the position mark of the sound source virtual object according to the transparency includes: A step S1 of acquiring a voice trigger start time of each of the plurality of sound source virtual objects when the plurality of sound source virtual objects are detected and the plurality of sound source virtual objects are in the same direction of the first virtual character; A step S2 of sequentially acquiring trigger time intervals of the sound trigger start times of the two adjacent sound source virtual objects; a step S3 of sequentially determining transparency of position marks matching each of the two adjacent sound source virtual objects when the trigger time interval is greater than a first threshold value, and sequentially displaying the position marks of the two adjacent sound source virtual objects according to the determined transparency; If the trigger time interval is smaller than the first threshold value, the method includes a step S4 of determining a transparency of a position mark matching the target sound source virtual object for a target sound source virtual object of the two adjacent sound source virtual objects whose sound trigger start time is later, and displaying the position mark of the target sound source virtual object according to the determined transparency.
[0053] For example, in the following description of the game field, when a character controlled by a user detects multiple sounds and multiple sound source virtual objects emitting the multiple sounds are in the same direction of the game character controlled by the user, if the interval between the multiple sounds is greater than a predetermined first threshold, the position marks of the sound source virtual objects corresponding to each sound are displayed sequentially according to the order in which the sounds are detected. If the interval between the sounds is smaller than the first threshold, the position mark corresponding to the later detected sound should be used to replace the position mark of the earlier detected sound according to the detection time.
[0054] Optionally, the first threshold may be a display duration of a position mark corresponding to a previously detected sound.
[0055] The following description will be made in conjunction with FIG. 8. The detected gun sound and car sound are in the same direction. As shown in FIG. 8, in the situation a in FIG. 8, the car sound is detected first, the gun sound is detected later, and the display period of the gun sound is within the display period of the car sound, in this case, only the car sound position mark is displayed. In the situation b in FIG. 8, the car sound is detected first, the gun sound is detected later, and a part of the display period of the gun sound position mark is within the display period of the car sound position mark, in this case, after the gun sound is detected, the gun sound position mark is displayed, and the car sound position mark is not displayed. In the situation c in FIG. 8, the car sound is detected first, the gun sound is detected later, and the display period of the gun sound position mark does not overlap with the display period of the car sound position mark, in this case, the car sound position mark and the gun sound position mark are displayed sequentially according to the detection order.
[0056] According to this embodiment, by displaying position marks of sound source virtual objects in the same direction using the above technical solution, it is possible to avoid the situation where multiple position marks in the same direction are displayed simultaneously and obstruct each other, thereby improving the accuracy of sound source determination and improving the display efficiency of the position marks.
[0057] In an optional embodiment, after obtaining a first position in a virtual scene of a first virtual character controlled by the application client, further comprising: a step S1 of acquiring a voice trigger start time of each of the plurality of virtual objects when a plurality of virtual objects generating sounds are detected in the sound source detection area associated with the first position and the plurality of virtual objects are associated with the same virtual character; and a step S2 of determining a target virtual object as the sound source virtual object from the plurality of virtual objects based on the sound trigger start time.
[0058] For example, the following description will be given in relation to the field of games. The virtual character may be a character controlled by another user in a game. When the detected multiple voices are generated by the same game character, one position mark is selected from the position marks of the multiple voices and displayed. The display rule may be to display the position mark of the first detected voice, or to display the position mark of the last detected voice.
[0059] According to this embodiment, by determining the sound source virtual object based on the audio trigger start time, it is possible to avoid the problem of multiple virtual objects occluding each other when they are displayed simultaneously in the same position, thereby improving the accuracy of sound source determination and improving the display efficiency of position marks.
[0060] As an optional embodiment, displaying the position mark of the sound source virtual object according to the transparency includes: a step S1 of acquiring a direction mark included in the position mark of the sound source virtual object, the direction mark being used to indicate a moving direction of the sound source virtual object relative to the first virtual character at a voice trigger start time; and a step S2 of displaying the direction mark within a display period matching the sound source virtual object.
[0061] For example, the following description will be given in relation to the field of games. When a sound is detected, the direction mark is the moving direction of the object that emits the sound. As shown in FIG. 9, the interactive interface displays the position mark of the sound of the car and also displays the moving direction of the car. The moving direction is not updated while displaying the current position mark of the car.
[0062] According to this embodiment, by displaying the moving direction of the sound source virtual object, the moving direction of the sound source virtual object can be clearly understood in the interactive interface, the accuracy of determining the sound source is improved, and the user experience is improved.
[0063] As an optional implementation, before displaying the position mark of the sound source virtual object according to the transparency, further: a step S1 of prohibiting display of the position mark of the sound source virtual object when the second position where the sound source virtual object is located is at a designated position in the virtual scene, the designated position including a generation location of the sound source virtual object in the virtual scene; a step S2 of prohibiting display of the position mark of the sound source virtual object when the sound source virtual object is in a designated posture, the designated posture including a crawling state; and a step S3 of prohibiting the first virtual character from displaying the position mark of the sound source virtual object when the sound source virtual object and the first virtual character have the same camp mark.
[0064] For example, the following description will be given in relation to the game field. When the sound source virtual object is in a special position such as a generation location during a game, the position mark of the sound is not displayed even if a sound is detected. Or, when the sound source virtual object that emitted the sound is in a special state such as prone or crawling forward, the position mark of the sound is not displayed even if a sound emitted from the sound source virtual object is detected. Or, when the sound source virtual object that emitted the sound and the character controlled by the user are in the same camp, the position mark of the sound is not displayed even if the sound source virtual object emits a sound.
[0065] According to this embodiment, by prohibiting the display of the position mark in the above cases, it is possible to hide the sound source virtual object under certain conditions, thereby improving the accuracy of sound source determination and improving the flexibility of position mark display.
[0066] Although the above method embodiments are expressed as a combination of a series of operations for ease of description, those skilled in the art will appreciate that the present application is not limited to the described order of operations, because some steps may be performed in other orders or simultaneously according to the present application. Also, those skilled in the art will appreciate that the embodiments described in the specification are all preferred embodiments, and the associated operations and modules are not necessarily essential to the present application.
[0067] According to the above description of the embodiments, it is obvious to those skilled in the art that the methods according to the above embodiments can be realized in the form of a combination of software and a necessary general-purpose hardware platform, and of course, hardware may be used, but generally, the former is a more preferred embodiment. Based on this understanding, the technical solution of the present application, whether essential or contributing to the prior art, may be embodied in the form of a software product, and the computer software product is stored in a storage medium (e.g., ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the methods described in each embodiment of the present application.
[0068] According to another aspect of the embodiment of the present application, there is further provided a sound source determination device for implementing the sound source determination method, as shown in FIG. 10, the device includes: (1) a first acquisition unit 1002 for acquiring a first position in a virtual scene of a first virtual character controlled by an application client; (2) a second acquisition unit 1004 for detecting a second position in the virtual scene of a sound source virtual object from a sound source detection area associated with the first position; (3) a first determination unit 1006 for determining a transparency of a position mark matched to the sound source virtual object based on a sound source distance between the first position and the second position, the position mark being used to identify the second position where the sound source virtual object is located; and (4) A display unit 1008 for displaying the position mark of the sound source virtual object according to the transparency in an interactive interface of the application client.
[0069] Optionally, the sound source determining device may be applied in, but not limited to, a game field or a simulation training field. In an optional implementation, the first determining unit 1006 includes: A first acquisition module for acquiring a detection radius of the sound source detection area matching the sound source virtual object; and a first determination module for determining the transparency based on a ratio between the sound source distance and the detection radius, the first determination module adjusting the transparency to be smaller when the ratio becomes smaller, and adjusting the transparency to be larger when the ratio becomes larger. According to this embodiment, by determining the transparency based on the ratio between the sound source distance and the detection radius, the farther the position mark of the sound source virtual object is from the first position, the more transparent it becomes, thereby achieving the effect of accurately positioning the position of the sound source virtual object and improving the accuracy of sound source determination.
[0070] In an optional embodiment, the first acquisition module comprises: an acquisition submodule for acquiring a sound source type of a sound generated by the sound source virtual object and an environment signature of an environment in which the sound source virtual object is located; and a determination sub-module for determining the detection radius based on the sound source type and the environmental signature.
[0071] According to this embodiment, the detection radius is determined based on the sound source type of the sound generated by the sound source virtual object and the environmental indicator of the environment in which the sound source virtual object is located, thereby improving the accuracy of determining the positional sound source and improving the flexibility of the position mark display.
[0072] In an optional embodiment, the determining submodule is specifically used for: An initial detection radius arranged for the sound source type is obtained, and a frequency of a sound indicated by the sound source type is inversely proportional to a size of the initial detection radius; obtaining an audio trigger threshold that matches the environmental signature; The detection radius is obtained by adjusting the initial detection radius downward based on the audio trigger threshold. According to this embodiment, an initial detection radius is obtained, and the detection radius is reduced based on a voice trigger threshold that matches the environmental indicator, thereby achieving the effect of adjusting the initial detection radius according to different environments and improving the accuracy of determining the display position.
[0073] As an optional embodiment, the display unit 1008 includes: A second acquisition module for acquiring a source type of the sound generated by the sound source virtual object; and a first display module for displaying the position mark of the sound source virtual object matching the sound source type.
[0074] According to this embodiment, the position mark is determined based on the sound source type of the sound generated by the sound source virtual object, allowing the user to accurately determine the sound source type based on the position mark, thereby achieving the objective of improving the accuracy of sound source determination.
[0075] In an optional embodiment, the first display module comprises: a first display sub-module for displaying the position mark according to a color matching the sound source type; a second display sub-module for displaying the position mark according to a shape matching the sound source type; and a third display sub-module for displaying the position mark according to a sign matching the sound source type.
[0076] According to this embodiment, by adjusting the position mark using different colors and shapes, the user can know the sound source type of the sound generated by the sound source virtual object according to different display schemes, thereby improving the accuracy of sound source determination and improving the flexibility of position mark display.
[0077] In an optional embodiment, the first display module comprises: a fourth display sub-module for displaying the position mark of the sound source virtual object at the second position on a map displayed on the interactive interface of the application client; and a fifth display sub-module for displaying the position mark of the sound source virtual object in a direction corresponding to the second position on a universal wheel displayed on the interactive interface of the application client.
[0078] According to this embodiment, by displaying a location mark on the map of the interactive interface or displaying a location mark on the universal wheel of the interactive interface, the accuracy of determining the sound source can be improved and the user experience can be improved without obscuring the main interface of the interactive interface.
[0079] In an optional embodiment, the first display module comprises: The sound source virtual object includes an adjustment sub-module for adjusting a display range of the position mark when a sound source virtual object has a sound deadening device arranged thereon, the adjustment sub-module being such that the display range of the position mark of the sound source virtual object in which the sound deadening device is arranged is larger than the display range of the position mark of the sound source virtual object in which the sound deadening device is not arranged.
[0080] According to this embodiment, when a noise suppression device is installed, the display range of the position mark can be adjusted to improve the accuracy of determining the sound source and the flexibility of the position mark display.
[0081] As an optional embodiment, the display unit 1008 includes: and a second display module for simultaneously displaying the position marks of each of the plurality of sound source virtual objects according to transparency of the position marks respectively matching the plurality of sound source virtual objects when a plurality of the sound source virtual objects are detected and the plurality of the sound source virtual objects are located in different directions of the first virtual character.
[0082] According to this embodiment, by simultaneously displaying position marks of sound source virtual objects in different directions, the effect of simultaneously displaying multiple sound source virtual objects is achieved, which improves the accuracy of sound source determination and allows the user to simultaneously know the positions of multiple sound source virtual objects in the virtual environment.
[0083] As an optional embodiment, the display unit 1008 includes: a third acquisition module for acquiring a voice trigger start time of each of the plurality of sound source virtual objects when the plurality of sound source virtual objects are detected and the plurality of sound source virtual objects are in the same direction of the first virtual character; a fourth acquisition module for sequentially acquiring trigger time intervals of the audio trigger start times of two adjacent sound source virtual objects; a third determination module for sequentially determining transparency of position marks matched to each of the two adjacent sound source virtual objects when the trigger time interval is greater than a first threshold value, and sequentially displaying the position marks of the two adjacent sound source virtual objects according to the determined transparency; and a fourth determination module for determining, when the trigger time interval is smaller than the first threshold, the transparency of a position mark matching the target sound source virtual object for a target sound source virtual object having a voice trigger start time that is later than the two adjacent sound source virtual objects, and displaying the position mark of the target sound source virtual object according to the determined transparency.
[0084] According to this embodiment, by displaying position marks of sound source virtual objects in the same direction using the above technical solution, it is possible to avoid the situation where multiple position marks in the same direction are displayed simultaneously and obstruct each other, thereby improving the accuracy of sound source determination and improving the display efficiency of the position marks.
[0085] In an optional embodiment, the apparatus further comprises: a detection unit for obtaining, after obtaining a first position in a virtual scene of a first virtual character controlled by the application client, a plurality of virtual objects generating sounds are detected in the sound source detection area associated with the first position, and when the plurality of virtual objects are associated with a same virtual character, obtaining a voice trigger start time of each of the plurality of virtual objects; and a second determination unit for determining a target virtual object as the sound source virtual object from the plurality of virtual objects based on the sound trigger start time. According to this embodiment, by determining the sound source virtual object based on the audio trigger start time, it is possible to avoid the problem of multiple virtual objects occluding each other when they are displayed simultaneously in the same position, thereby improving the accuracy of sound source determination and improving the display efficiency of position marks.
[0086] As an optional embodiment, the display unit 1008 includes: a fifth acquisition module for acquiring a direction mark included in the position mark of the sound source virtual object, the direction mark being used to indicate a moving direction of the sound source virtual object relative to the first virtual character at a voice trigger start time; and a third display module for displaying the direction mark within a display period during which the sound source virtual object displays the position mark.
[0087] According to this embodiment, by displaying the moving direction of the sound source virtual object, the moving direction of the sound source virtual object can be clearly understood in the interactive interface, thereby improving the accuracy of sound source determination and improving the user experience.
[0088] In an optional embodiment, the apparatus further comprises: a first prohibition unit for prohibiting display of the position mark of the sound source virtual object when the second position where the sound source virtual object is located is a designated position in the virtual scene before displaying the position mark of the sound source virtual object according to the transparency, the designated position including a generation location of the sound source virtual object in the virtual scene; a second prohibition unit for prohibiting display of the position mark of the sound source virtual object when the sound source virtual object is in a designated posture according to the transparency before displaying the position mark of the sound source virtual object, the designated posture including a crawling state; and a third prohibition unit for prohibiting the first virtual character from displaying the position mark of the sound source virtual object if the sound source virtual object and the first virtual character have the same camp mark according to the transparency before displaying the position mark of the sound source virtual object.
[0089] According to this embodiment, by prohibiting the display of the position mark in the above cases, it is possible to hide the sound source virtual object under certain conditions, thereby improving the accuracy of sound source determination and improving the flexibility of position mark display.
[0090] According to another aspect of an embodiment of the present application, there is further provided an electronic device for implementing the sound source determination method, as shown in FIG. 11, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor is configured to execute any one of the steps of the above method embodiments by the computer program.
[0091] Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices in a computer network.
[0092] Optionally, in this embodiment, the processor is arranged to execute the following steps by a computer program: Step S1: obtaining a first position in a virtual scene of a first virtual character controlled by an application client; Step S2: detecting a second position in the virtual scene of a sound source virtual object in a sound source detection area associated with the first position; Step S3: determining a transparency of a position mark matching the sound source virtual object based on a sound source distance between the first position and the second position, and the position mark is used to identify the second position where the sound source virtual object is located; Step S4: displaying the position mark of the sound source virtual object in accordance with the transparency on an interactive interface of the application client.
[0093] Optionally, those skilled in the art can understand that the configuration shown in Fig. 11 is merely for illustration, and the electronic device may be a terminal device such as a smartphone (e.g., Android phone, iOS phone, etc.), a tablet computer, a palmtop computer, and a Mobile Internet Device (MID), PAD, etc. Fig. 11 does not limit the configuration of the above electronic device. For example, the electronic device may include more or less assemblies (e.g., network interface, display device, etc.) than those shown in Fig. 11, or may have a different arrangement than those shown in Fig. 11.
[0094] The memory 1102 is used to store software programs and modules, such as program instructions / modules corresponding to the sound source determination method and device in the embodiments of the present application, and the processor 1104 executes various functional applications and data processing by executing the software programs and modules stored in the memory 1102, i.e., realizing the sound source determination method. The memory 1102 may include high-speed random memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1102 may further include memories located remotely to the processor 1104, and these remote memories are connected to the terminal via a network. Examples of the above network may include, but are not limited to, the Internet, a corporate intranet, a local area network, a mobile communication network, and combinations thereof.
[0095] The transmission device 1106 is used to receive or transmit data through a network. The specific example of the network may include a wired network and a wireless network. In one example, the transmission device 1106 includes a network adapter (Network Interface Controller, NIC) that is connected to other network devices and routers via a network line so as to communicate with the Internet or a local area network. In one example, the transmission device 1106 is a radio frequency (RF) module for communicating with the Internet in a wireless manner.
[0096] Specifically, the memory 1102 is used to store the position mark of the sound source virtual object.
[0097] An embodiment of the present application further provides a storage medium, the storage medium having a computer program stored therein, the computer program being configured, when executed, to perform the steps of any one of the method embodiments described above.
[0098] Optionally, in this embodiment, the storage medium is arranged to store a computer program for performing the steps of: Step S1: obtaining a first position in a virtual scene of a first virtual character controlled by an application client; Step S2: detecting a second position in the virtual scene of a sound source virtual object in a sound source detection area associated with the first position; Step S3: determining a transparency of a position mark matching the sound source virtual object based on a sound source distance between the first position and the second position, and the position mark is used to identify the second position where the sound source virtual object is located; Step S4: displaying the position mark of the sound source virtual object in accordance with the transparency on an interactive interface of the application client.
[0099] Optionally, in this embodiment, the storage medium is arranged to store a computer program for performing the steps of: Step S1: obtaining a detection radius of the sound source detection area matching the sound source virtual object; Step S2: Determine the transparency based on a ratio between the sound source distance and the detection radius, and adjust the transparency to be smaller when the ratio becomes smaller, and adjust the transparency to be larger when the ratio becomes larger.
[0100] Optionally, in this embodiment, the storage medium is arranged to store a computer program for performing the steps of: Step S1: obtaining a sound source type of the sound generated by the sound source virtual object and an environment indicator of the environment in which the sound source virtual object is located; Step S2, determining the detection radius based on the sound source type and the environmental signature.
[0101] Optionally, in this embodiment, the storage medium is arranged to store a computer program for performing the steps of: Step S1: obtain an initial detection radius corresponding to the sound source type, and a frequency of a sound indicated by the sound source type is inversely proportional to the size of the initial detection radius; Step S2, obtain a voice trigger threshold value that matches the environmental indicator; Step S3: Obtain the detection radius by adjusting the initial detection radius to be smaller according to the voice trigger threshold.
[0102] Optionally, in this embodiment, the storage medium is arranged to store a computer program for performing the steps of: Step S1: obtain a sound source type of the sound generated by the sound source virtual object; Step S2: displaying the position mark of the sound source virtual object matching the sound source type.
[0103] Optionally, in this embodiment, the storage medium is arranged to store a computer program for performing the steps of: Step S1: displaying the position mark according to a color matching the sound source type; Step S2: Displaying the position mark according to a shape that matches the sound source type; Step S3: displaying the position mark according to a sign matching the sound source type.
[0104] Optionally, in this embodiment, the storage medium is arranged to store a computer program for performing the steps of: Step S1: displaying the position mark of the sound source virtual object at the second position on a map displayed on the interactive interface of the application client; Step S2: displaying the position mark of the sound source virtual object in a direction corresponding to the second position on a universal wheel displayed on the interactive interface of the application client.
[0105] Optionally, in this embodiment, the storage medium is arranged to store a computer program for performing the steps of: Step S1: if a sound source virtual object has a sound deadening device arranged thereon, a display range of the position mark is adjusted, and the display range of the position mark of the sound source virtual object having the sound deadening device arranged thereon is larger than the display range of the position mark of the sound source virtual object having no sound deadening device arranged thereon.
[0106] Optionally, in this embodiment, the storage medium is arranged to store a computer program for performing the steps of: Step S1: when a plurality of the sound source virtual objects are detected and the plurality of the sound source virtual objects are located in different directions of the first virtual character, the position marks of the respective sound source virtual objects are simultaneously displayed according to the transparency of the position marks respectively matching the respective sound source virtual objects.
[0107] Optionally, in this embodiment, the storage medium is arranged to store a computer program for performing the steps of: Step S1: if a plurality of the sound source virtual objects are detected and the plurality of the sound source virtual objects are in the same direction of the first virtual character, obtain a voice trigger start time of each of the plurality of the sound source virtual objects; Step S2: sequentially obtain trigger time intervals between the sound trigger start times of two adjacent sound source virtual objects; Step S3: when the trigger time interval is greater than a first threshold value, sequentially determine the transparency of the position marks matching each of the two adjacent sound source virtual objects, and sequentially display the position marks of the two adjacent sound source virtual objects according to the determined transparency; Step S4: if the trigger time interval is smaller than the first threshold value, for a target sound source virtual object of the two adjacent sound source virtual objects whose sound trigger start time is later, determine the transparency of a position mark matching the target sound source virtual object, and display the position mark of the target sound source virtual object according to the determined transparency.
[0108] Optionally, in this embodiment, the storage medium is arranged to store a computer program for performing the steps of: Step S1: if a plurality of virtual objects generating sounds are detected in the sound source detection area associated with the first position, and the plurality of virtual objects are associated with the same virtual character, obtain a voice trigger start time of each of the plurality of virtual objects; Step S2: determining a target virtual object as the sound source virtual object from among the plurality of virtual objects based on the sound trigger start time.
[0109] Optionally, in this embodiment, the storage medium is arranged to store a computer program for performing the steps of: Step S1, acquiring a direction mark included in the position mark of the sound source virtual object, the direction mark being used to indicate a moving direction of the sound source virtual object relative to the first virtual character at a voice trigger start time; Step S2: displaying the direction mark within a display period matching the sound source virtual object.
[0110] Optionally, in this embodiment, the storage medium is arranged to store a computer program for performing the steps of: Step S1: when the second position where the sound source virtual object is located is at a designated position in the virtual scene, prohibiting display of the position mark of the sound source virtual object, the designated position including a generation location of the sound source virtual object in the virtual scene; Step S2: when the sound source virtual object is in a designated posture, prohibiting display of the position mark of the sound source virtual object, where the designated posture includes a crawling state; Step S3: when the sound source virtual object and the first virtual character have the same camp mark, prohibiting the first virtual character from displaying the position mark of the sound source virtual object.
[0111] Optionally, in this embodiment, those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the relevant hardware of the terminal device by a program. The program is stored in a computer-readable storage medium, and the storage medium may include a flash memory disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0112] The serial numbers of the above embodiments of the present application do not indicate the superiority or inferiority of the embodiments, but are for illustrative purposes only.
[0113] The integrated units in the above embodiments may be implemented in the form of a software functional unit and stored in the above computer-readable storage medium when sold or used as an independent product. Based on such understanding, the technical proposal of the present application may be embodied in the form of a software product for the essential or prior art contribution, or for all or part of the technical proposal. The computer software product is stored in a storage medium and includes some instructions for causing one or more computer devices (such as personal computers, servers, network devices, etc.) to execute all or part of the steps of the methods in each embodiment of the present application.
[0114] In the above-mentioned examples of the present application, the description of each embodiment has its own emphasis, and for the parts not described in detail in one example, reference may be made to the relevant descriptions of other examples.
[0115] It should be understood that in some embodiments provided by the present application, the disclosed client may be implemented in other forms. The above device embodiments are merely examples, for example, the division of the units is only a division of logical functions, and in actual implementation, there may be other division methods. For example, multiple units or assemblies may be incorporated or integrated into another system, or some functions may be ignored or not performed. In addition, the mutual couplings or direct couplings or communication connections shown or discussed may be indirect couplings or communication connections via some interfaces, units or modules, and may be in electrical or other forms.
[0116] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Depending on actual needs, some or all of the units may be selected to achieve the objectives of the embodiment.
[0117] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist physically alone, or two or more units may be integrated into one unit. The above integrated units may be realized in the form of hardware or software functional units.
[0118] It should be noted that the above is only a preferred embodiment of the present application, but those skilled in the art may make various improvements and modifications without departing from the spirit of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.
[0119] (Appendix 1) A sound source determination method executed by a terminal device, comprising: obtaining a first position in a virtual scene of a first virtual character controlled by the application client; detecting a second position in the virtual scene of a sound source virtual object in a sound source detection area associated with the first position; determining a transparency of a position mark matched to the sound source virtual object based on a sound source distance between the first position and the second position, the position mark being used to identify the second position at which the sound source virtual object is located; and displaying the position mark of the sound source virtual object in an interactive interface of the application client according to the transparency. (Appendix 2) The step of determining a transparency of a position mark matched to the sound source virtual object based on a sound source distance between the first position and the second position includes: Obtaining a detection radius of the sound source detection area matched to the sound source virtual object; determining the transparency based on a ratio between the sound source distance and the detection radius, and adjusting the transparency to be smaller when the ratio becomes smaller, and adjusting the transparency to be larger when the ratio becomes larger. (Appendix 3) The step of acquiring a detection radius of the sound source detection area matching the sound source virtual object includes: obtaining a source type of the sound generated by the sound source virtual object and an environment indicator of the environment in which the sound source virtual object is located; and determining the detection radius based on the sound source type and the environmental signature. (Appendix 4) determining the detection radius based on the sound source type and the environmental signature, obtaining an initial detection radius corresponding to the sound source type, the frequency of the sound indicated by the sound source type being inversely proportional to the size of the initial detection radius; obtaining an audio trigger threshold that matches the environmental signature; and adjusting the initial detection radius to reduce it based on the audio trigger threshold to obtain the detection radius. (Appendix 5) The step of displaying the position mark of the sound source virtual object in accordance with the transparency on an interactive interface of the application client includes: Obtaining a source type of a sound generated by the sound source virtual object; and displaying the position mark of the sound source virtual object that matches the sound source type. (Appendix 6) The step of displaying the position mark of the sound source virtual object matching the sound source type includes: displaying the position mark according to a color matching the sound source type; displaying the position mark based on a shape that matches the sound source type; 6. The method of claim 5, further comprising at least one step of displaying the location mark based on a sign matching the sound source type. (Appendix 7) The step of displaying the position mark of the sound source virtual object matching the sound source type includes: displaying the position mark of the sound source virtual object at the second position on a map displayed on the interactive interface of the application client; The method described in Appendix 5, including at least one of the steps of displaying the position mark of the sound source virtual object in a direction corresponding to the second position on a universal wheel displayed on the interactive interface of the application client. (Appendix 8) The step of displaying the position mark of the sound source virtual object matching the sound source type includes: The method according to claim 5, further comprising a step of adjusting a display range of the position mark when a sound source virtual object has a sound deadening device arranged thereon, the step being such that the display range of the position mark of the sound source virtual object on which the sound deadening device is arranged is larger than the display range of the position mark of the sound source virtual object on which the sound deadening device is not arranged. (Appendix 9) The step of displaying the position mark of the sound source virtual object according to the transparency includes: and when a plurality of the sound source virtual objects are detected and the plurality of the sound source virtual objects are located in different directions of the first virtual character, simultaneously displaying the position marks of the plurality of the sound source virtual objects according to transparency of the position marks matching each of the plurality of the sound source virtual objects. (Appendix 10) The step of displaying the position mark of the sound source virtual object according to the transparency includes: When a plurality of the sound source virtual objects are detected and the plurality of the sound source virtual objects are in the same direction of the first virtual character, acquiring a voice trigger start time of each of the plurality of the sound source virtual objects; Sequentially acquiring trigger time intervals of the audio trigger start times of two adjacent sound source virtual objects; When the trigger time interval is greater than a first threshold value, sequentially determining transparency of position marks matching each of the two adjacent sound source virtual objects, and sequentially displaying the position marks of the two adjacent sound source virtual objects according to the determined transparency; When the trigger time interval is smaller than the first threshold, determining a transparency of a position mark matching the target sound source virtual object for a target sound source virtual object whose audio trigger start time is later than the two adjacent sound source virtual objects, and displaying the position mark of the target sound source virtual object according to the determined transparency. (Appendix 11) obtaining a first position in a virtual scene of a first virtual character controlled by the application client, and When a plurality of virtual objects generating sounds are detected in the sound source detection area associated with the first position, and the plurality of virtual objects are associated with a same virtual character, acquiring a voice trigger start time of each of the plurality of virtual objects; and determining a target virtual object as the sound source virtual object from the plurality of virtual objects based on the audio trigger start time. (Appendix 12) The step of displaying the position mark of the sound source virtual object according to the transparency acquiring a direction mark included in the position mark of the sound source virtual object, the direction mark being used to indicate a moving direction of the sound source virtual object relative to the first virtual character at a voice trigger start time; and displaying the directional mark within a display period matching the sound source virtual object. (Appendix 13) before displaying the position mark of the sound source virtual object according to the transparency, a step of prohibiting display of the position mark of the sound source virtual object when the second position where the sound source virtual object is located is at a designated position in the virtual scene, the designated position including a generation location of the sound source virtual object in the virtual scene; a step of prohibiting display of the position mark of the sound source virtual object when the sound source virtual object is in a designated posture, the designated posture including a crawling state; and prohibiting the first virtual character from displaying the position mark of the sound source virtual object when the sound source virtual object and the first virtual character have the same camp mark. (Appendix 14) A sound source determination device, a first acquisition unit for acquiring a first position in a virtual scene of a first virtual character controlled by the application client; a second acquisition unit for detecting a second position in the virtual scene of a sound source virtual object in a sound source detection area associated with the first position; a first determination unit for determining a transparency of a position mark matched to the sound source virtual object based on a sound source distance between the first position and the second position, the position mark being used to identify the second position where the sound source virtual object is located; a display unit for displaying the position mark of the sound source virtual object in an interactive interface of the application client according to the transparency. (Appendix 15) The first determination unit: A first acquisition module for acquiring a detection radius of the sound source detection area matching the sound source virtual object; and a first determination module for determining the transparency based on a ratio between the sound source distance and the detection radius, the first determination module adjusting the transparency to be smaller when the ratio becomes smaller and adjusting the transparency to be larger when the ratio becomes larger. (Appendix 16) The first acquisition module: an acquisition submodule for acquiring a sound source type of a sound generated by the sound source virtual object and an environment signature of an environment in which the sound source virtual object is located; and a determination sub-module for determining the detection radius based on the sound source type and the environmental signature. (Appendix 17) The determination sub-module further comprises: obtaining an initial detection radius corresponding to the sound source type, the frequency of the sound indicated by the sound source type being inversely proportional to the size of the initial detection radius; obtaining an audio trigger threshold that matches the environmental signature; and obtaining the detection radius by reducing the initial detection radius based on the audio trigger threshold. (Appendix 18) The display unit includes: A second acquisition module for acquiring a source type of the sound generated by the sound source virtual object; and a first display module for displaying the position mark of the sound source virtual object matching the sound source type. (Appendix 19) The first display module is a first display sub-module for displaying the position mark according to a color matching the sound source type; a second display sub-module for displaying the position mark according to a shape matching the sound source type; and a third display sub-module for displaying the location mark in response to a sign matching the sound source type. (Appendix 20) The first display module is a fourth display sub-module for displaying the position mark of the sound source virtual object at the second position on a map displayed on the interactive interface of the application client; and a fifth display submodule for displaying the position mark of the sound source virtual object in a direction corresponding to the second position on a universal wheel displayed on the interactive interface of the application client. (Appendix 21) The first display module is The device according to any one of appendices 18 to 20, further comprising: an adjustment submodule for adjusting a display range of the position mark when a sound source virtual object has a sound source noise suppression device placed thereon, the adjustment submodule being configured so that the display range of the position mark of the sound source virtual object in which the sound source noise suppression device is placed is larger than the display range of the position mark of the sound source virtual object in which the sound source noise suppression device is not placed. (Appendix 22) The display unit includes: and a second display module for simultaneously displaying the position marks of each of the plurality of sound source virtual objects according to transparency of a position mark matching each of the plurality of sound source virtual objects when the plurality of sound source virtual objects are detected and the plurality of sound source virtual objects are located in different directions of the first virtual character. (Appendix 23) The display unit includes: a third acquisition module for acquiring a voice trigger start time of each of the plurality of sound source virtual objects when the plurality of sound source virtual objects are detected and the plurality of sound source virtual objects are in the same direction of the first virtual character; a fourth acquisition module for sequentially acquiring trigger time intervals of the audio trigger start times of two adjacent sound source virtual objects; a third determination module for sequentially determining transparency of position marks matched to each of the two adjacent sound source virtual objects when the trigger time interval is greater than a first threshold value, and sequentially displaying the position marks of the two adjacent sound source virtual objects according to the determined transparency; and a fourth determination module for determining, when the trigger time interval is smaller than the first threshold, a transparency of a position mark matching the target sound source virtual object for a target sound source virtual object whose audio trigger start time is later than the two adjacent sound source virtual objects, and displaying the position mark of the target sound source virtual object according to the determined transparency. (Appendix 24) The apparatus further comprises: a detection unit for obtaining, after obtaining a first position in a virtual scene of a first virtual character controlled by the application client, a plurality of virtual objects generating sounds are detected in the sound source detection area associated with the first position, and, if the plurality of virtual objects are associated with a same virtual character, obtaining a voice trigger start time of each of the plurality of virtual objects; and a second determination unit for determining a target virtual object as the sound source virtual object from the plurality of virtual objects according to the sound trigger start time. (Appendix 25) The display unit further comprises: a fifth acquisition module for acquiring a direction mark included in the position mark of the sound source virtual object, the direction mark being used to indicate a moving direction of the sound source virtual object relative to the first virtual character at a voice trigger start time; 25. The apparatus of any one of claims 14 to 24, further comprising: a third display module for displaying the directional mark within a display period matching the sound source virtual object. (Appendix 26) The apparatus further comprises: a first prohibition unit for prohibiting display of the position mark of the sound source virtual object when the second position where the sound source virtual object is located is a designated position in the virtual scene according to the transparency before displaying the position mark of the sound source virtual object, the designated position including a generation location of the sound source virtual object in the virtual scene; a second prohibition unit for prohibiting display of the position mark of the sound source virtual object when the sound source virtual object is in a designated posture according to the transparency before displaying the position mark of the sound source virtual object, the designated posture including a crawling state; and a third prohibition unit for prohibiting, according to the transparency, before displaying the position mark of the sound source virtual object, for the first virtual character if the sound source virtual object and the first virtual character have the same camp mark. (Appendix 27) A computer program causing a computer to carry out the method according to any one of claims 1 to 13. (Appendix 28) 14. An electronic device comprising a memory and a processor, the memory storing a computer program, the processor being arranged to execute the method according to any one of claims 1 to 13 by means of the computer program. [Prior art documents] [Patent documents]
[0120] [Patent Document 1] China Patent Application Publication No. 107992281 [Patent Document 2] JP 2012-55490 A [Patent Document 3] JP 2017-55935 A
Claims
1. A sound source determination method executed by a terminal device, comprising: obtaining a first position in a virtual scene of a first virtual character controlled by an application client; detecting a second position in the virtual scene of a sound source virtual object in a sound source detection area associated with the first position; determining a transparency of a position mark matched to the sound source virtual object according to a sound source distance between the first position and the second position, obtaining a sound source type of the sound generated by said sound source virtual object and an environment signature of the environment in which said sound source virtual object is located; Adjusting an initial detection radius corresponding to the sound of the sound source type based on a voice trigger threshold matched to the environmental signature to obtain a detection radius of the sound source detection region matched to the sound source virtual object; determining the transparency according to a ratio of the sound source distance to the detection radius, the position mark being used to identify the second position where the sound source virtual object is located; and displaying the position mark of the sound source virtual object according to the transparency in an interactive interface of the application client.
2. The step of determining a transparency of a position mark matched to the sound source virtual object based on a sound source distance between the first position and the second position includes: The method of claim 1 , comprising adjusting the transparency to be less when the ratio decreases and adjusting the transparency to be more when the ratio increases.
3. The step of obtaining a detection radius of the sound source detection region matching the sound source virtual object by adjusting an initial detection radius corresponding to the sound of the sound source type based on a voice trigger threshold matching the environmental indicator, The method of claim 1 , comprising a step of obtaining a detection radius of the sound source detection region matching the sound source virtual object by adjusting an initial detection radius corresponding to a sound frequency of the sound source type based on a voice trigger threshold matching the environmental signature.
4. a frequency of the sound represented by the sound source type is inversely proportional to the size of the initial detection radius; The step of obtaining a detection radius of the sound source detection region matching the sound source virtual object by adjusting an initial detection radius corresponding to the sound of the sound source type based on a voice trigger threshold matching the environmental indicator, The method of claim 1 , comprising obtaining the detection radius by decreasingly adjusting the initial detection radius based on the audio trigger threshold.
5. The step of displaying the position mark of the sound source virtual object in accordance with the transparency on an interactive interface of the application client includes: Obtaining a source type of a sound generated by the sound source virtual object; and displaying the position mark of the sound source virtual object that matches the sound source type.
6. The step of displaying the position mark of the sound source virtual object matching the sound source type includes: displaying the position mark according to a color matching the sound source type; displaying the position mark based on a shape that matches the sound source type; The method of claim 5 , comprising at least one of the steps of: displaying the location mark based on an indicia matched to the sound source type.
7. The step of displaying the position mark of the sound source virtual object matching the sound source type includes: displaying the position mark of the sound source virtual object at the second position on a map displayed on the interactive interface of the application client; The method of claim 5 , comprising at least one of the steps of: displaying the position mark of the sound source virtual object in a direction corresponding to the second position on a universal wheel displayed on the interactive interface of the application client.
8. The step of displaying the position mark of the sound source virtual object matching the sound source type includes:
6. The method according to claim 5, further comprising: a step of adjusting a display range of the position mark when a sound source virtual object has a sound deadening device arranged thereon, the step being such that the display range of the position mark of the sound source virtual object on which the sound deadening device is arranged is larger than the display range of the position mark of the sound source virtual object on which the sound deadening device is not arranged.
9. The step of displaying the position mark of the sound source virtual object according to the transparency includes:
5. The method according to claim 1, further comprising: when a plurality of the sound source virtual objects are detected and the plurality of the sound source virtual objects are located in different directions of the first virtual character, simultaneously displaying the position marks of each of the plurality of the sound source virtual objects according to transparency of a position mark matching each of the plurality of the sound source virtual objects.
10. The step of displaying the position mark of the sound source virtual object according to the transparency includes: When a plurality of the sound source virtual objects are detected and the plurality of the sound source virtual objects are in the same direction of the first virtual character, acquiring a voice trigger start time of each of the plurality of the sound source virtual objects; Sequentially acquiring trigger time intervals of the audio trigger start times of two adjacent sound source virtual objects; When the trigger time interval is greater than a first threshold value, sequentially determining transparency of position marks matching each of the two adjacent sound source virtual objects, and sequentially displaying the position marks of the two adjacent sound source virtual objects according to the determined transparency; 5. The method according to claim 1, further comprising: when the trigger time interval is smaller than the first threshold value, determining a transparency of a position mark matching the target sound source virtual object for a target sound source virtual object of the two adjacent sound source virtual objects whose audio trigger start time is later, and displaying the position mark of the target sound source virtual object according to the determined transparency.
11. obtaining a first position in a virtual scene of a first virtual character controlled by the application client, further comprising: When a plurality of virtual objects generating sounds are detected in the sound source detection area associated with the first position, and the plurality of virtual objects are associated with a same virtual character, acquiring a voice trigger start time of each of the plurality of virtual objects; The method according to claim 1 , further comprising: determining a target virtual object as the sound source virtual object from the plurality of virtual objects based on the audio trigger start time.
12. The step of displaying the position mark of the sound source virtual object according to the transparency acquiring a direction mark included in the position mark of the sound source virtual object, the direction mark being used to indicate a moving direction of the sound source virtual object relative to the first virtual character at a voice trigger start time; and displaying the directional mark within a display period matching the sound source virtual object.
13. before displaying the position mark of the sound source virtual object according to the transparency, a step of prohibiting display of the position mark of the sound source virtual object when the second position where the sound source virtual object is located is at a designated position in the virtual scene, the designated position including a generation location of the sound source virtual object in the virtual scene; a step of prohibiting display of the position mark of the sound source virtual object when the sound source virtual object is in a designated posture, the designated posture including a crawling state; and prohibiting display of the position mark of the sound source virtual object for the first virtual character if the sound source virtual object and the first virtual character have the same camp mark.
14. A sound source determination device, a first acquisition unit for acquiring a first position in a virtual scene of a first virtual character controlled by the application client; a second acquisition unit for detecting a second position in the virtual scene of a sound source virtual object in a sound source detection area associated with the first position; a first determination unit for determining a transparency of a position mark matching the sound source virtual object according to a sound source distance between the first position and the second position, obtain a sound source type of the sound generated by the sound source virtual object and an environment indicator of the environment in which the sound source virtual object is located; An initial detection radius corresponding to the sound of the sound source type is adjusted based on a voice trigger threshold matched to the environmental signature to obtain a detection radius of the sound source detection region matched to the sound source virtual object; a first determination unit for determining the transparency according to a ratio between the sound source distance and the detection radius, the position mark being used to identify the second position where the sound source virtual object is located; a display unit for displaying the position mark of the sound source virtual object in an interactive interface of the application client according to the transparency.
15. The first determination unit:
15. The apparatus of claim 14, wherein the transparency is adjusted to be less when the ratio decreases and the transparency is adjusted to be more when the ratio increases.
16. The initial detection radius corresponding to the sound of the sound source type is adjusted based on a voice trigger threshold matched to the environmental indicator to obtain a detection radius of the sound source detection region matched to the sound source virtual object. The device of claim 14, further comprising: obtaining a detection radius of the sound source detection region matching the sound source virtual object by adjusting an initial detection radius corresponding to a sound frequency of the sound source type based on a voice trigger threshold matching the environmental signature.
17. a frequency of the sound indicated by the sound source type is inversely proportional to a size of the initial detection radius; The initial detection radius corresponding to the sound of the sound source type is adjusted based on a voice trigger threshold matched to the environmental indicator to obtain a detection radius of the sound source detection region matched to the sound source virtual object. The apparatus of claim 14 , further comprising: obtaining the detection radius by decreasingly adjusting the initial detection radius based on the audio trigger threshold.
18. The display unit includes: A second acquisition module for acquiring a sound source type of the sound generated by the sound source virtual object; and a first display module for displaying the position mark of the sound source virtual object matching the sound source type.
19. The first display module is a first display sub-module for displaying the position mark according to a color matching the sound source type; a second display sub-module for displaying the position mark according to a shape matching the sound source type; and a third display sub-module for displaying the location mark in response to an indication matched to the sound source type.
20. The first display module is a fourth display sub-module for displaying the position mark of the sound source virtual object at the second position on a map displayed on the interactive interface of the application client; and a fifth display submodule for displaying the position mark of the sound source virtual object in a direction corresponding to the second position on a universal wheel displayed on the interactive interface of the application client.
21. The first display module is The device according to claim 18, further comprising: an adjustment submodule for adjusting a display range of the position mark when a sound source virtual object has a sound muffling device arranged thereon, the adjustment submodule being configured so that the display range of the position mark of the sound source virtual object in which the sound muffling device is arranged is larger than the display range of the position mark of the sound source virtual object in which the sound muffling device is not arranged.
22. The display unit includes: and a second display module for simultaneously displaying the position marks of each of the plurality of sound source virtual objects according to transparency of a position mark matching each of the plurality of sound source virtual objects when a plurality of the sound source virtual objects are detected and the plurality of the sound source virtual objects are located in different directions of the first virtual character.
23. The display unit includes: a third acquisition module for acquiring a voice trigger start time of each of the plurality of sound source virtual objects when the plurality of sound source virtual objects are detected and the plurality of sound source virtual objects are in the same direction of the first virtual character; a fourth acquisition module for sequentially acquiring trigger time intervals of the audio trigger start times of two adjacent sound source virtual objects; a third determination module for sequentially determining transparency of position marks matched to each of the two adjacent sound source virtual objects when the trigger time interval is greater than a first threshold value, and sequentially displaying the position marks of the two adjacent sound source virtual objects according to the determined transparency; 23. The device according to claim 14, further comprising: a fourth determination module for determining a transparency of a position mark matching the target sound source virtual object for a target sound source virtual object whose audio trigger start time is later than the two adjacent sound source virtual objects when the trigger time interval is smaller than the first threshold value, and displaying the position mark of the target sound source virtual object according to the determined transparency.
24. The apparatus further comprises: a detection unit for obtaining, after obtaining a first position in a virtual scene of a first virtual character controlled by the application client, a plurality of virtual objects generating sounds are detected in the sound source detection area associated with the first position, and, if the plurality of virtual objects are associated with a same virtual character, obtaining a sound trigger start time of each of the plurality of virtual objects; The device according to claim 14 , further comprising: a second determination unit for determining a target virtual object as the sound source virtual object from the plurality of virtual objects depending on the sound trigger start time.
25. The display unit further comprises: a fifth acquisition module for acquiring a direction mark included in the position mark of the sound source virtual object, the direction mark being used to indicate a moving direction of the sound source virtual object relative to the first virtual character at a voice trigger start time; 25. The apparatus of claim 14, further comprising: a third display module for displaying the directional mark within a display period matching the sound source virtual object.
26. The apparatus further comprises: a first prohibition unit for prohibiting display of the position mark of the sound source virtual object when the second position where the sound source virtual object is located is a designated position in the virtual scene according to the transparency before displaying the position mark of the sound source virtual object, the designated position including a generation location of the sound source virtual object in the virtual scene; a second prohibition unit for prohibiting display of the position mark of the sound source virtual object when the sound source virtual object is in a designated posture according to the transparency before displaying the position mark of the sound source virtual object, the designated posture including a crawling state; and a third prohibition unit for prohibiting, before displaying the position mark of the sound source virtual object, for the first virtual character if the sound source virtual object and the first virtual character have the same camp mark, according to the transparency.
27. A computer program product causing a computer to carry out the method according to any one of claims 1 to 13.
28. 14. An electronic device comprising a memory and a processor, wherein a computer program is stored in said memory, and wherein said processor is arranged to execute the method of any one of claims 1 to 13 by means of said computer program.
29. A sound source determination method executed by a terminal device, comprising: obtaining a first position in a virtual scene of a first virtual character controlled by an application client; detecting a second position in the virtual scene of a sound source virtual object in a sound source detection area associated with the first position; a transparency determination step of determining a transparency of a position mark identifying the second position of the sound source virtual object according to a sound source distance between the first position and the second position, obtaining a sound source type of the sound generated by said sound source virtual object and an environment signature of the environment in which said sound source virtual object is located; Adjusting an initial detection radius corresponding to the sound of the sound source type based on a voice trigger threshold matched to the environmental signature to obtain a detection radius of the sound source detection region matched to the sound source virtual object; determining the transparency according to a ratio of the sound source distance to the detection radius, the position mark being used to identify the second position where the sound source virtual object is located; displaying the position mark of the sound source virtual object according to the transparency in an interactive interface of the application client; displaying a map in the interactive interface of the application client, the first location corresponding to a third location in the map; displaying the position mark of the sound source virtual object at a fourth position on the map, the fourth position relative to the third position reflecting an orientation of the second position relative to the first position; The method includes:
Citation Information
Patent Citations
Visual display method and device for sound information compensation, storage medium and equipment
CN107992281A
Method of displaying game message and game program
JP2004242728A
Sound effect generating device, sound effect generating program for providing the same, and recording medium
JP2011028169A
Game program and game device
JP2012055490A
Video game apparatus, method for controlling video game, program for controlling video game, and recording medium
JP2015223394A
