Voice prompting method, device and electronic terminal
By displaying the prompt signs for voice playback in the game interface and gradually disappearing after stopping, the problem of players being difficult to identify the speaker is solved, improving the gaming experience.
Patent Information
- Application Number
- CN202211177091.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-26
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-09-26
AI Technical Summary
In multiplayer games, it is difficult for players to match the speaker with the corresponding virtual characters in a tense game atmosphere, affecting the game experience.
By displaying the first prompt identifier in the graphical user interface, it means that the voice playback is in progress, and the second prompt identifier is displayed after the voice signal stops, it means that the voice has been played before the preset time period and gradually disappears to avoid the player missing the recognition opportunity.
It alleviates the problem that players find it difficult to identify the speakers and the virtual characters in the nervous game, and improves the game experience.
Smart Images

Figure CN115445196B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of game technologies, and in particular, to a method and device for voice prompts and an electronic terminal. Background Art
[0002] In games, voice is an important factor in the experience of multiplayer games. In the prior art, a voice identifier often appears when a teammate's speech is recognized. For example, when a teammate is speaking, a prompt indicating the state of a speaker playing is displayed at the position of the teammate's avatar.
[0003] However, in a tense game atmosphere, communication is often simple and rapid. As a result, it may happen that a teammate has just finished speaking, but the player does not know which teammate has just spoken, which affects the communication of instructions and strategies between players. Therefore, there is a technical problem in the prior art that it is difficult for players to match the speaker with the corresponding virtual character in the game, which affects the game experience of players. Summary of the Invention
[0004] The purpose of the present disclosure is to provide a method and device for voice prompts and an electronic terminal, so as to alleviate the technical problem that it is difficult for players to match the speaker with the corresponding virtual character in the game.
[0005] In a first aspect, an embodiment of the present disclosure provides a method for voice prompts, the method including:
[0006] In response to the playback of a voice signal, a first prompt identifier is displayed at a corresponding position of a user identifier corresponding to the voice signal in a graphical user interface; wherein, the first prompt identifier is used to indicate that voice playback is in progress;
[0007] In response to the stop of the playback of the voice signal, the display of the first prompt identifier is cancelled in the graphical user interface, and a second prompt identifier is displayed at the corresponding position of the user identifier; wherein, the second prompt identifier is used to indicate that voice has been played before a preset time period;
[0008] In response to the voice signal exceeding the preset time period after the playback stops, the display of the second prompt identifier is cancelled in the graphical user interface.
[0009] In a second aspect, an embodiment of the present disclosure provides a device for voice prompts, including:
[0010] A first display module, configured to display a first prompt identifier at a corresponding position of a user identifier corresponding to a voice signal in a graphical user interface in response to the playback of the voice signal; wherein, the first prompt identifier is used to indicate that voice playback is in progress;
[0011] A second display module, configured to cancel the display of the first prompt identifier in the graphical user interface in response to the stop of the playback of the voice signal, and display a second prompt identifier at a corresponding position of the user identifier; wherein, the second prompt identifier is used to indicate that the voice has been played before a preset time period.
[0012] A cancellation module, configured to cancel the display of the second prompt identifier in the graphical user interface in response to the voice signal exceeding the preset time period after the playback stops.
[0013] In a third aspect, an embodiment of the present disclosure further provides an electronic terminal, including a memory and a processor. A computer program that can run on the processor is stored in the memory. When the processor executes the computer program, the steps of the method described in the first aspect above are implemented.
[0014] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and run by a processor, the computer-executable instructions cause the processor to run the method described in the first aspect above.
[0015] The embodiments of the present disclosure bring the following beneficial effects:
[0016] A voice prompt method, device, and electronic terminal provided by an embodiment of the present disclosure first display a first prompt identifier at a corresponding position of a user identifier corresponding to a voice signal in a graphical user interface in response to the playback of the voice signal. The first prompt identifier is used to indicate that the voice is being played. Then, in response to the stop of the playback of the voice signal, the display of the first prompt identifier is cancelled in the graphical user interface, and a second prompt identifier is displayed at the corresponding position of the user identifier. The second prompt identifier is used to indicate that the voice has been played before a preset time period. Thus, in response to the voice signal exceeding the preset time period after the playback stops, the display of the second prompt identifier is cancelled in the graphical user interface. In this solution, when a teammate speaks, the system first displays a corresponding first prompt identifier for the player at the corresponding position of the teammate's user identifier. When the teammate finishes speaking, the first prompt identifier also disappears, and instead, the second prompt identifier continues to prompt the player within the preset time, for example, by gradually disappearing in the form of an afterimage. This avoids the situation where the player is unable to match the speaker with the corresponding virtual character because they have no time to observe the first prompt identifier in an intense and exciting game. After missing the first prompt identifier, the player can still identify and match through the second prompt identifier, alleviating the technical problem that it is difficult for the player to match the speaker with the corresponding virtual character in the game. Description of the Drawings
[0017] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings required for the description of the specific embodiments or the prior art. Obviously, the accompanying drawings in the following description are some embodiments of the present disclosure. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on these drawings.
[0018] Figure 1 Schematic diagram of the application scenario provided by the embodiment of the present disclosure;
[0019] Figure 2 Schematic diagram of the structure of an electronic terminal provided by the embodiment of the present disclosure;
[0020] Figure 3 Schematic diagram of the usage scenario of an electronic terminal provided by the embodiment of the present disclosure;
[0021] Figure 4 Schematic flowchart of a voice prompt method provided by the embodiment of the present disclosure;
[0022] Figure 5 Schematic diagram of a graphical user interface provided by the embodiment of the present disclosure;
[0023] Figure 6 Another schematic diagram of a graphical user interface provided by the embodiment of the present disclosure;
[0024] Figure 7 Schematic diagram of the structure of a voice prompt device provided by the embodiment of the present disclosure. Specific embodiments
[0025] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the following will clearly and completely describe the technical solutions of the present disclosure with reference to the accompanying drawings. Obviously, the described embodiments are some, but not all, of the embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present disclosure.
[0026] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present disclosure are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include other unlisted steps or units, or may optionally further include other steps or units inherent to these processes, methods, products, or devices.
[0027] Voice is an important experience factor in multiplayer games. In the game, the speaking mark is often displayed when a teammate is recognized to be speaking. However, in the tense game atmosphere, communication is often simple and fast. In this way, it may happen that a teammate speaks, but the player does not have time to see who just spoke, which will affect the communication of instructions and strategies. In existing games, the speaking mark is often displayed when a teammate is detected to be speaking, and disappears when it is not detected. Therefore, it may happen that teammate No. 1 has finished speaking, but when the player wants to identify who is speaking, the voice mark has disappeared, which is not conducive to the player matching the speaker with the teammate well. There is a technical problem that it is difficult for players to match the speaker with the corresponding virtual character in the game.
[0028] Based on this, the embodiments of the present disclosure provide a voice prompt method, device and electronic terminal. Through the method provided by the embodiments of the present disclosure, players can clearly match the speaker with the corresponding virtual character, alleviating the technical problem that it is difficult for players to match the speaker with the corresponding virtual character in the game.
[0029] In one embodiment of the present disclosure, the voice prompt method can be run on a local terminal device or a server. When the voice prompt method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0030] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the voice prompt method are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0031] In an alternative embodiment, taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally, the game program is downloaded and installed on an electronic device and run. The ways for the local terminal device to provide the graphical user interface to the player can include various types. For example, it can be rendered and displayed on the display screen of the terminal, or provided to the player through holographic projection. For example, the local terminal device can include a display screen and a processor. The display screen is used to present the graphical user interface, which includes a game screen, and the processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0032] In a possible implementation manner, the embodiments of the present disclosure provide a voice prompt method. A graphical user interface is provided through a terminal device, where the terminal device can be the aforementioned local terminal device or the client device in the aforementioned cloud interaction system.
[0033] For example, as Figure 1 shown, Figure 1 is a schematic diagram of an application scenario provided by the embodiments of the present disclosure. This application scenario can include an electronic terminal (for example, mobile phone 102) and a server 101. The electronic terminal can communicate with the server 101 through a wired network or a wireless network. The electronic terminal is used to run a virtual desktop. Through this virtual desktop, it can interact with the server 101 to control the virtual character in the server 101.
[0034] The electronic terminal in this embodiment is described by taking the mobile phone 102 as an example. The mobile phone 102 includes components such as a Radio Frequency (RF) circuit 210, a memory 220, a touch screen 230, and a processor 240. Those skilled in the art can understand that Figure 2 the mobile phone structure shown in
[0035] The RF circuit 210 can also communicate with networks and other devices via wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobilecommunication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
[0036] The memory 220 can be used to store software programs and modules. The processor 240 executes various functional applications and data processing of the mobile phone 102 by running the software programs and modules stored in the memory 220. The memory 220 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function, etc.; the data storage area can store data created according to the use of the mobile phone 102, etc. In addition, the memory 220 can include high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0037] The touch screen 230 can be used to display a graphical user interface and receive user operations on the graphical user interface. Specifically, the touch screen 230 can include a display panel and a touch panel. Among them, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. The touch panel can collect contact or non-contact operations of the user on or near it (for example, as Figure 3As shown, the user uses any suitable object or accessory such as finger 301 or stylus to operate on or near the touch panel, and generates a preset operation instruction. In addition, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch orientation and posture of the user, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into information that the processor can process, then sends it to the processor 240, and can receive and execute the commands sent by the processor 240. In addition, various types such as resistive, capacitive, infrared, and surface acoustic wave can be used to implement the touch panel, and any technology developed in the future can also be used to implement the touch panel. Further, the touch panel can cover the display panel. The user can operate on or near the touch panel covering the display panel according to the graphical user interface displayed on the display panel. After the touch panel detects the operation on or near it, it is transmitted to the processor 240 to determine the user input. Subsequently, the processor 240 provides a corresponding visual output on the display panel in response to the user input. In addition, the touch panel and the display panel can be implemented as two independent components or integrated.
[0038] The processor 240 is the control center of the mobile phone 102, connects various parts of the entire mobile phone using various interfaces and lines, runs or executes software programs and / or modules stored in the memory 220, and calls the data stored in the memory 220 to execute various functions of the mobile phone 102 and process data, thereby monitoring the mobile phone as a whole.
[0039] The following further introduces the embodiments of the present disclosure in conjunction with the accompanying drawings.
[0040] Figure 4 It is a schematic flowchart of a voice prompt method provided for an embodiment of the present disclosure. As Figure 4 shown, the method includes:
[0041] Step S410, in response to the playback of the voice signal, display a first prompt identifier at the corresponding position of the user identifier corresponding to the voice signal in the graphical user interface.
[0042] Among them, the first prompt identifier is used to indicate that the voice is being played. In practical applications, in team games, players can cooperate with multiple teammates (virtual characters). Generally, the user identifiers corresponding to the teammates are displayed in the upper left corner or upper right corner of the graphical user interface.
[0043] Exemplarily, as Figure 5As shown, the user identifier can be the avatar identifier 501 of a teammate, can also be the character name identifier 502 of a teammate, and the health value identifier 503, etc. Multiple players in the same team can communicate with each other by voice. When Teammate No. 1 speaks, the system can, in response to the playback of the voice signal of Teammate No. 1, display a first prompt identifier 504 at the corresponding position of the user identifier of Teammate No. 1 in the graphical user interface of the player (for example, in the avatar identifier 501 of Teammate No. 1).
[0044] It should be noted that the first prompt identifier 504 can be a wave animation, or a microphone identifier, etc. The first prompt identifier 504 is used to indicate that the voice of Teammate No. 1 is being played.
[0045] Similarly, when Teammate No. 2 speaks, the system can also display a first prompt identifier on the avatar identifier of Teammate No. 2 for indicating that the voice of Teammate No. 2 is being played.
[0046] Step S420, in response to the stop of the playback of the voice signal, cancel the display of the first prompt identifier in the graphical user interface, and display a second prompt identifier at the corresponding position of the user identifier.
[0047] Among them, the second prompt identifier is used to indicate that the voice was played before a preset time period. Exemplarily, as Figure 5 shown, when the speech of Teammate No. 1 ends and the corresponding voice signal playback stops, the system can hide (cancel the display of) the first prompt identifier 504 in the graphical user interface, and instead display the second prompt identifier 505 to replace the first prompt identifier 504.
[0048] For example, the second prompt identifier 505 can be displayed in the form of an afterimage animation of the first prompt identifier 504, used to indicate that Teammate No. 1 spoke and the system played the voice before a preset time period (for example, 3 seconds).
[0049] Step S430, in response to the voice signal exceeding the preset time period after the playback stops, cancel the display of the second prompt identifier in the graphical user interface.
[0050] Exemplarily, as Figure 5 shown, after a preset time period after Teammate No. 1 finishes speaking, for example, 3 seconds after Teammate No. 1 finishes speaking, the system can hide the second prompt identifier 505 in the graphical user interface and hide the display of the second prompt identifier 505 at the corresponding position of the user identifier of Teammate No. 1 in the graphical user interface of the player.
[0051] In the embodiments of the present disclosure, when a teammate speaks, the system first displays a corresponding first prompt identifier for the player at the position corresponding to the user identifier of the teammate. When the teammate finishes speaking, the first prompt identifier disappears accordingly, and instead, a second prompt identifier is used to continue to prompt the player within a preset time. For example, the second prompt identifier is displayed in a way that the afterimage gradually fades away, avoiding the situation where the player is unable to match the speaker with the corresponding virtual character because they have no time to observe the first prompt identifier during the intense and exciting game. After missing the first prompt identifier, the player can still identify and match through the second prompt identifier, alleviating the technical problem that it is difficult for the player to match the speaker with the corresponding virtual character in the game.
[0052] The above steps will be introduced in detail below.
[0053] In some embodiments, the first prompt identifier and the second prompt identifier can be distinguished through a variety of different display effects, making the display effects more diverse and facilitating the player to more easily distinguish the player who has just finished speaking and the player who is currently speaking. By including various types of differences in the display effects between the first prompt identifier and the second prompt identifier, the player can more clearly match the speaker with the corresponding virtual character, improving the player's gaming experience. Exemplarily, the differences in the display effects between the second prompt identifier and the first prompt identifier include any one or more of the following:
[0054] Display pattern, display color, display contrast, display clarity, display transparency.
[0055] As an example, the difference in the display effect between the second prompt identifier and the first prompt identifier can be the difference in the display pattern. For example, when a teammate speaks, the system can display a play button pattern as the first prompt identifier. When the teammate finishes speaking, the system can display a pause button pattern as the second prompt identifier.
[0056] As another example, the difference in the display effect between the second prompt identifier and the first prompt identifier can be the difference in the display color. For example, when a teammate speaks, the system can display the first prompt identifier in the form of a green microphone pattern. When the teammate finishes speaking, the system can change the color of the microphone pattern to red to serve as the second prompt identifier for display.
[0057] As another example, the difference in the display effect between the second prompt identifier and the first prompt identifier can be the difference in the display contrast. For example, when a teammate speaks, the system can display the first prompt identifier according to a preset contrast. When the teammate finishes speaking, the system can lower the contrast of the first prompt identifier and convert it into a second prompt identifier with the same shape but lower contrast for display.
[0058] As another example, the difference in the display effects between the second prompt identifier and the first prompt identifier can be the difference in display clarity. For example, when a teammate speaks, the system can display the first prompt identifier with a preset clarity. When the teammate finishes speaking, the system can lower the clarity of the first prompt identifier and convert it into a form with the same shape but lower clarity to display the second prompt identifier.
[0059] As another example, the difference in the display effects between the second prompt identifier and the first prompt identifier can be the difference in display transparency. For example, when a teammate speaks, the system can display the first prompt identifier with a preset transparency. When the teammate finishes speaking, the system can increase the transparency of the first prompt identifier and convert it into a second prompt identifier with the same shape but more transparent to display.
[0060] By making the difference in the display effects between the first prompt identifier and the second prompt identifier include multiple types, the display effects are made more diverse, making it easier for players to distinguish, enabling players to more clearly match the speaker with the corresponding virtual character, and improving the players' gaming experience.
[0061] In some embodiments, the first prompt identifier and the second prompt identifier can be displayed by two display methods that are easy to distinguish. For example, the display effect of the first prompt identifier is stronger than that of the second prompt identifier, enabling players to clearly and intuitively tell which is the second prompt identifier and which is the first prompt identifier, and thus more clearly match the speaker with the corresponding virtual character, improving the players' gaming experience. As an example, the display contrast of the first prompt identifier is higher than that of the second prompt identifier, or the display clarity of the first prompt identifier is higher than that of the second prompt identifier, or the display color saturation of the first prompt identifier is higher than that of the second prompt identifier, or the display transparency of the second prompt identifier is higher than that of the first prompt identifier.
[0062] Exemplarily, the display effect of the first prompt identifier can be made stronger than that of the second prompt identifier, so that players can visually and intuitively realize the difference between the first prompt identifier and the second prompt identifier, and realize that the speech event time point represented by the second prompt identifier is earlier than the speech event time point represented by the first prompt identifier. In practical applications, the first prompt identifier can be weakened in terms of display contrast, display clarity, display color saturation, etc. to obtain the second prompt identifier for display. The second prompt identifier can also be obtained and displayed by enhancing the first prompt identifier in terms of display transparency.
[0063] By making the display effect of the first prompt identifier stronger than that of the second prompt identifier, players can clearly and intuitively distinguish which is the second prompt identifier and which is the first prompt identifier, and then can more clearly match the speaker with the corresponding virtual character, improving the players' gaming experience.
[0064] In some embodiments, the display positions of the second prompt identifier and the first prompt identifier can be the same, which is easy for players to observe, avoids blocking other contents in the game scene, and when the same teammate speaks multiple times in a short period, seamless coverage can also be achieved without affecting the normal voice input animation effect. As an example, the display patterns and / or display positions of the second prompt identifier and the first prompt identifier are the same.
[0065] Exemplarily, as Figure 5 shown, the display patterns of the first prompt identifier 504 and the second prompt identifier 505 corresponding to Teammate No. 1 can be the same, and the display positions of the first prompt identifier 504 and the second prompt identifier 505 can also be the same. It can be simply understood that relative to the first prompt identifier 504, only the display effect of the second prompt identifier 505 is changed within a preset time period, for example, the display transparency of the second prompt identifier 505 is made higher than that of the first prompt identifier 504, and the second prompt identifier 505 is displayed as an "afterimage" of the first prompt identifier 504. If Teammate No. 1 speaks again during this period, the first prompt identifier 504 can be used to replace the second prompt identifier 505 for display at the same display position.
[0066] By making the display patterns and / or display positions of the second prompt identifier and the first prompt identifier the same, the system can provide information for players based on the same position and the same pattern, which is easy for players to observe, avoids blocking other contents in the game scene by the prompt identifier, and when the same teammate speaks multiple times in a short period, seamless coverage can also be achieved without affecting the normal voice input animation effect.
[0067] In some embodiments, the second prompt identifier can be dynamically displayed in a variety of flexible ways, enabling players to obtain more information from the second prompt identifier and improving the players' visual experience. For example, the second prompt identifier can gradually fade over time, using a gradient effect to prompt which teammate spoke before, enabling players to distinguish multiple teammates who just spoke based on the fading degree, and then enabling players to match the speaker with the corresponding virtual character. As an example, the above step S420 can specifically include the following steps:
[0068] Step a): In response to the voice signal exceeding a preset time period after the playback stops, in the graphical user interface, at a specified changing speed, gradually reduce the contrast of the display of the second prompt identifier or gradually increase the transparency of the display of the second prompt identifier until the second prompt identifier is no longer displayed.
[0069] Exemplarily, as Figure 5 shown, when Teammate No. 1 makes a speech, the system can display a first prompt identifier 504 in the avatar identifier 501 of Teammate No. 1 in the graphical user interface of the player. When the speech of Teammate No. 1 ends and the corresponding voice signal playback stops and does not exceed 3 seconds (preset time period), the second prompt identifier 505 is used to replace the first prompt identifier 504 for display. After the corresponding voice signal playback stops and exceeds 3 seconds (preset time period), the system can gradually reduce the contrast of the display of the second prompt identifier 505 or gradually increase the transparency of the display of the second prompt identifier 505 in the graphical user interface at a specified changing speed until the second prompt identifier is hidden. For example, gradually increase the transparency of the display of the second prompt identifier 505 at a specified changing speed of increasing 20% transparency per second until the second prompt identifier 505 is hidden.
[0070] In practical applications, as Figure 6 shown, in the game, Teammate No. 2 finishes speaking first and the end time exceeds the preset time period; Teammate No. 1 finishes speaking next and the end time does not exceed the preset time period; Teammate No. 3 is making a speech. Therefore, a first prompt identifier 601 with complete opacity can be used for prompting at the avatar position of Teammate No. 3; the second prompt identifier 602 can be displayed at the avatar position of Teammate No. 1 in a display mode with a different transparency (80% transparency) from the first prompt identifier 601; the second prompt identifier 602 that is gradually being hidden can be displayed at the avatar position of Teammate No. 2.
[0071] By making the system, in response to the voice signal exceeding a preset time period after the playback stops, in the graphical user interface, at a specified changing speed, gradually reduce the contrast of the display of the second prompt identifier or gradually increase the transparency of the display of the second prompt identifier until the second prompt identifier is no longer displayed, the second prompt identifier presents a dynamic effect, enabling the player to obtain more information from the second prompt identifier, improving the player's visual experience, enabling the player to distinguish multiple teammates who have just spoken based on the fading degree, and further enabling the player to match the speaking party with the corresponding virtual character.
[0072] In some embodiments, there may be multiple teammates speaking and communicating simultaneously in the game, and the time points of ending the speech may be close. Therefore, the second prompt identifiers corresponding to different teammates can be further distinguished and displayed, so that players can better match the speaker with the corresponding virtual character. For example, the speech ending times of multiple teammates can be sorted, and the prompt identifier corresponding to the teammate who ends the speech last is hidden with a delay for differentiation. As an example, the number of user identifiers is multiple; the method may further include the following steps:
[0073] Step b), in response to the voice signals corresponding to multiple user identifiers exceeding a preset time period after the playback stops, sort the users corresponding to the multiple voice signals in the order of the playback stop time points of the multiple voice signals to obtain a sorting result.
[0074] Step c), perform a delayed cancellation display process on the second prompt identifiers corresponding to the last preset number of users in the sorting result.
[0075] Exemplarily, as Figure 6 shown, in the game, Teammate No. 1, Teammate No. 2, and Teammate No. 3 have all ended their speeches, and the ending times all exceed the preset time period. Teammate No. 2 ends the speech first, Teammate No. 1 ends the speech second, and Teammate No. 3 ends the speech last. Therefore, the three teammates can be sorted in the order of the speech ending time points to obtain a sorting result of Teammate No. 2, Teammate No. 1, and Teammate No. 3. The system can perform a delayed hiding process on the second prompt identifier corresponding to the last (preset number) teammate in the sorting result. For example, the second prompt identifier corresponding to Teammate No. 3 is hidden with a delay of 0.5 seconds, so that the time point when it completely disappears is different from the second prompt identifier corresponding to Teammate No. 2.
[0076] By making the system respond to the voice signals corresponding to multiple user identifiers exceeding a preset time period after the playback stops, sort the users corresponding to the multiple voice signals in the order of the playback stop time points of the multiple voice signals to obtain a sorting result, and then perform a delayed cancellation display process on the second prompt identifiers corresponding to the last preset number of users in the sorting result, players can better distinguish the order of speakers and better match the speaker with the corresponding virtual character.
[0077] Based on the above steps b) and c), the above further sorting and delayed hiding process can be performed only when the difference between the speech ending points (i.e., the playback stop time points) of two players is relatively small, saving unnecessary delayed processing that can be distinguished by the human eye. As an example, the above step b) may specifically include the following steps:
[0078] Step d): In response to the voice signals corresponding to multiple user identifiers exceeding a preset time period after the playback stops, if the difference between the playback stop time points of at least two voice signals is less than a preset value, sort the users corresponding to the multiple user identifiers in the order of the playback stop time points of the multiple voice signals to obtain a sorting result.
[0079] Exemplarily, as Figure 6 shown, both Teammate No. 1 and Teammate No. 2 in the game have finished speaking, and the end times both exceed the preset time period. Teammate No. 2 finished speaking first, and Teammate No. 1 finished speaking second. However, Teammate No. 1 and Teammate No. 2 finished speaking almost simultaneously. For example, the difference between the end time points of their speeches is 0.5 seconds (the preset value). Therefore, the system can sort Teammate No. 1 and Teammate No. 2 to obtain the corresponding sorting result.
[0080] By enabling the system to respond to the voice signals corresponding to multiple user identifiers exceeding a preset time period after the playback stops, if the difference between the playback stop time points of at least two voice signals is less than a preset value, sort the users corresponding to the multiple user identifiers in the order of the playback stop time points of the multiple voice signals to obtain a sorting result, it is possible to avoid the same display effect of multiple second prompt identifiers and make them difficult to distinguish, which helps players match the speaking party with the corresponding virtual character and improves the players' gaming experience.
[0081] Figure 7 The following is a schematic structural diagram of a voice prompt device provided by an embodiment of the present disclosure. As Figure 7 shown, the voice prompt device 700 includes:
[0082] A first display module 701, configured to display a first prompt identifier at a corresponding position of the user identifier corresponding to the voice signal in the graphical user interface in response to the playback of the voice signal; wherein, the first prompt identifier is used to indicate that the voice is being played;
[0083] A second display module 702, configured to cancel the display of the first prompt identifier in the graphical user interface and display a second prompt identifier at the corresponding position of the user identifier in response to the stop of the voice signal playback; wherein, the second prompt identifier is used to indicate that the voice has been played before a preset time period;
[0084] A cancellation module 703, configured to cancel the display of the second prompt identifier in the graphical user interface in response to the voice signal exceeding the preset time period after the playback stops.
[0085] In some embodiments, the differences in the display effects between the second prompt identifier and the first prompt identifier include any one or more of the following:
[0086] Display pattern, display color, display contrast, display clarity, display transparency.
[0087] In some embodiments, the display contrast of the first prompt identifier is higher than that of the second prompt identifier, or the display clarity of the first prompt identifier is higher than that of the second prompt identifier, or the display color saturation of the first prompt identifier is higher than that of the second prompt identifier, or the display transparency of the second prompt identifier is higher than that of the first prompt identifier.
[0088] In some embodiments, the display pattern and / or display position of the second prompt identifier are the same as those of the first prompt identifier.
[0089] In some embodiments, the cancellation module 703 is specifically configured to:
[0090] In response to the voice signal exceeding a preset time period after playback stops, gradually reduce the display contrast of the second prompt identifier or gradually increase the display transparency of the second prompt identifier in the graphical user interface at a specified change speed until the display of the second prompt identifier is cancelled.
[0091] In some embodiments, the number of user identifiers is multiple; the apparatus may further include:
[0092] A sorting module, configured to
[0093] In response to the voice signals corresponding to multiple user identifiers exceeding a preset time period after playback stops, sort the users corresponding to the multiple user identifiers in the order of the playback stop time points of the multiple voice signals to obtain a sorting result;
[0094] Perform a delayed cancellation display process on the second prompt identifiers corresponding to the last preset number of users in the sorting result.
[0095] In some embodiments, the sorting module is specifically configured to:
[0096] In response to the voice signals corresponding to multiple user identifiers exceeding a preset time period after playback stops, if the difference between the playback stop time points of at least two voice signals is less than a preset value, sort the users corresponding to the multiple user identifiers in the order of the playback stop time points of the multiple voice signals to obtain a sorting result.
[0097] The voice prompt device in the game provided by the embodiments of the present disclosure has the same technical features as the voice prompt method provided by the above embodiments, so it can also solve the same technical problems and achieve the same technical effects. When a teammate speaks, the system first displays a corresponding first prompt identifier for the player at the position corresponding to the user identifier of the teammate. When the teammate finishes speaking, the first prompt identifier also disappears, and instead, a second prompt identifier is used to continue to prompt the player within a preset time. For example, the second prompt identifier is displayed in a way that it gradually fades away like a residual image, avoiding the situation where the player is unable to match the speaker with the corresponding virtual character because they have no time to observe the first prompt identifier during an intense and exciting game. After missing the first prompt identifier, the player can still identify and match through the second prompt identifier, alleviating the technical problem that it is difficult for players to match the speaker with the corresponding virtual character in the game.
[0098] An embodiment of the present application also provides an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device runs a voice prompt method as in the embodiment, communication between the processor and the storage medium is through the bus. The processor executes the machine-readable instructions, the preamble part of the processor method item, to perform the following steps:
[0099] In response to the playback of a voice signal, display a first prompt identifier at the position corresponding to the user identifier corresponding to the voice signal in the graphical user interface; wherein, the first prompt identifier is used to indicate that voice playback is in progress;
[0100] In response to the stop of the playback of the voice signal, cancel the display of the first prompt identifier in the graphical user interface, and display a second prompt identifier at the position corresponding to the user identifier; wherein, the second prompt identifier is used to indicate that voice has been played before a preset time period;
[0101] In response to the voice signal exceeding the preset time period after the playback stops, cancel the display of the second prompt identifier in the graphical user interface.
[0102] For its specific embodiments and specific working processes, reference can be made to the corresponding processes in the above method embodiments, and details will not be elaborated here.
[0103] In a feasible implementation, the differences in the display effects between the second prompt identifier and the first prompt identifier include any one or more of the following:
[0104] Display pattern, display color, display contrast, display clarity, display transparency.
[0105] In a feasible implementation, the display contrast of the first prompt identifier is higher than that of the second prompt identifier, or the display clarity of the first prompt identifier is higher than that of the second prompt identifier, or the display color saturation of the first prompt identifier is higher than that of the second prompt identifier, or the display transparency of the second prompt identifier is higher than that of the first prompt identifier.
[0106] In a feasible implementation, the display pattern and / or display position of the second prompt identifier is the same as that of the first prompt identifier.
[0107] In a feasible implementation, when the processor executes canceling the display of the second prompt identifier in the graphical user interface in response to the voice signal exceeding the preset time period after playback stops, it is specifically configured to:
[0108] In response to the voice signal exceeding the preset time period after playback stops, in the graphical user interface, gradually reduce the display contrast of the second prompt identifier or gradually increase the display transparency of the second prompt identifier at a specified change speed until the display of the second prompt identifier is canceled.
[0109] In a feasible implementation, the number of the user identifiers is multiple; the processor can also be used to:
[0110] In response to the voice signals corresponding to multiple user identifiers exceeding the preset time period after playback stops, sort the users corresponding to the multiple user identifiers in the order of the playback stop time points of the multiple voice signals to obtain a sorting result;
[0111] Perform a delayed cancellation display process on the second prompt identifiers corresponding to the last preset number of users in the sorting result.
[0112] In a feasible implementation, when the processor executes sorting the users corresponding to the multiple user identifiers in the order of the playback stop time points of the multiple voice signals to obtain a sorting result in response to the voice signals corresponding to the multiple user identifiers exceeding the preset time period after playback stops, it is specifically configured to:
[0113] In response to the voice signals corresponding to the multiple user identifiers exceeding the preset time period after playback stops, if the difference between the playback stop time points of at least two voice signals is less than a preset value, sort the users corresponding to the multiple user identifiers in the order of the playback stop time points of the multiple voice signals to obtain a sorting result.
[0114] In the above - mentioned manner, when a teammate speaks, the system first displays a corresponding first prompt identifier for the player at the position corresponding to the teammate's user identifier. When the teammate finishes speaking, the first prompt identifier disappears, and instead, a second prompt identifier is used to continue to prompt the player within a preset time. For example, the second prompt identifier is displayed in a way that the afterimage gradually fades away, avoiding the situation where the player is unable to match the speaker with the corresponding virtual character because they have no time to observe the first prompt identifier during an intense and exciting game. After missing the first prompt identifier, the player can still identify and match through the second prompt identifier, alleviating the technical problem that it is difficult for the player to match the speaker with the corresponding virtual character in the game.
[0115] Corresponding to the above - mentioned voice prompt method, an embodiment of the present disclosure also provides a program product, such as a computer - readable storage medium. The computer - readable storage medium stores computer - executable instructions. When the computer - executable instructions are called and run by a processor, the computer - executable instructions cause the processor to perform the following steps:
[0116] In response to the playback of a voice signal, display a first prompt identifier at the position corresponding to the user identifier of the voice signal in the graphical user interface; wherein, the first prompt identifier is used to indicate that a voice is being played;
[0117] In response to the stop of the playback of the voice signal, cancel the display of the first prompt identifier in the graphical user interface, and display a second prompt identifier at the corresponding position of the user identifier; wherein, the second prompt identifier is used to indicate that a voice was played before a preset time period;
[0118] In response to the voice signal exceeding the preset time period after the playback stops, cancel the display of the second prompt identifier in the graphical user interface.
[0119] For its specific embodiments and specific working processes, reference can be made to the corresponding processes in the above - mentioned method embodiments, which will not be elaborated here.
[0120] In a feasible implementation, the differences in the display effects between the second prompt identifier and the first prompt identifier include any one or more of the following:
[0121] Display pattern, display color, display contrast, display clarity, display transparency.
[0122] In a feasible implementation, the display contrast of the first prompt identifier is higher than that of the second prompt identifier, or the display clarity of the first prompt identifier is higher than that of the second prompt identifier, or the display color saturation of the first prompt identifier is higher than that of the second prompt identifier, or the display transparency of the second prompt identifier is higher than that of the first prompt identifier.
[0123] In a feasible implementation, the display pattern and / or display position of the second prompt identifier are the same as those of the first prompt identifier.
[0124] In a feasible implementation, when the processor executes canceling the display of the second prompt identifier in the graphical user interface in response to the voice signal exceeding the preset time period after playback stops, it is specifically configured to:
[0125] In response to the voice signal exceeding the preset time period after playback stops, gradually reduce the display contrast of the second prompt identifier or gradually increase the display transparency of the second prompt identifier in the graphical user interface at a specified change speed until the display of the second prompt identifier is canceled.
[0126] In a feasible implementation, the number of the user identifiers is multiple; the processor can also be used to:
[0127] In response to the voice signals corresponding to multiple user identifiers exceeding the preset time period after playback stops, sort the users corresponding to the multiple user identifiers in the order of the playback stop time points of the multiple voice signals to obtain a sorting result;
[0128] Perform a delayed cancellation display process on the second prompt identifiers corresponding to the users with the last preset number in the sorting result.
[0129] In a feasible implementation, when the processor executes sorting the users corresponding to the multiple user identifiers in the order of the playback stop time points of the multiple voice signals to obtain a sorting result in response to the voice signals corresponding to the multiple user identifiers exceeding the preset time period after playback stops, it is specifically configured to:
[0130] In response to the voice signals corresponding to multiple user identifiers exceeding the preset time period after playback stops, if the difference between the playback stop time points of at least two voice signals is less than a preset value, sort the users corresponding to the multiple user identifiers in the order of the playback stop time points of the multiple voice signals to obtain a sorting result.
[0131] In the above manner, when a teammate speaks, the system first displays a corresponding first prompt identifier for the player at the position corresponding to the teammate's user identifier. When the teammate finishes speaking, the first prompt identifier disappears, and instead, a second prompt identifier is used to continue to prompt the player within a preset time. For example, the second prompt identifier is displayed in a way that the afterimage gradually disappears, avoiding the situation where the player is unable to match the speaker with the corresponding virtual character because they have no time to observe the first prompt identifier during the intense and exciting game. After missing the first prompt identifier, the player can still identify and match through the second prompt identifier, alleviating the technical problem that it is difficult for the player to match the speaker with the corresponding virtual character in the game.
[0132] The voice prompt device in the game provided by the embodiments of the present disclosure can be specific hardware on the device or software or firmware installed on the device, etc. For the device provided by the embodiments of the present disclosure, its implementation principle and the technical effects produced are the same as those of the foregoing method embodiments. For the sake of brief description, for the parts not mentioned in the device embodiments, reference can be made to the corresponding content in the foregoing method embodiments. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the foregoing-described system, device, and unit can all refer to the corresponding processes in the above method embodiments, and will not be repeated here.
[0133] In the embodiments provided by the present disclosure, it should be understood that the disclosed device and method can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. Also, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection can be through some communication interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical, or other form.
[0134] For another example, the flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of apparatuses, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
[0135] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of this embodiment.
[0136] In addition, the various functional units in the embodiments provided in the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
[0137] If the functions are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, in essence, or the part that contributes to the prior art, or a part of this technical solution, may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the voice prompting method described in various embodiments of the present disclosure. The aforementioned storage medium includes various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs.
[0138] It should be noted that like reference numerals and letters denote like items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used for descriptive distinction and should not be construed as indicating or implying relative importance.
[0139] Finally, it should be noted that the above-described embodiments are only specific embodiments of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that any person skilled in the art within the technical scope disclosed by the present disclosure can still modify the technical solutions recorded in the foregoing embodiments or can easily think of changes, or perform equivalent replacements on some of the technical features; and these modifications, changes or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present disclosure. All should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Claims
1. A method for voice prompt, characterized in that, The method includes: In response to the playback of a voice signal, a first prompt identifier is displayed at a corresponding position of a user identifier corresponding to the voice signal in a graphical user interface; wherein, the first prompt identifier is used to indicate that voice playback is in progress; In response to the stop of the playback of the voice signal, the display of the first prompt identifier is cancelled in the graphical user interface, and a second prompt identifier is displayed at the corresponding position of the user identifier; wherein, the second prompt identifier is used to indicate that voice has been played before a preset time period; the differences in the display effects between the second prompt identifier and the first prompt identifier include any one or more of the following: display pattern, display color, display contrast, display clarity, display transparency; In response to the voice signal exceeding the preset time period after the playback stops, the display of the second prompt identifier is cancelled in the graphical user interface.
2. The method according to claim 1, wherein The display contrast of the first prompt identifier is higher than that of the second prompt identifier, or the display clarity of the first prompt identifier is higher than that of the second prompt identifier, or the display color saturation of the first prompt identifier is higher than that of the second prompt identifier, or the display transparency of the second prompt identifier is higher than that of the first prompt identifier.
3. The method according to claim 2, wherein The display pattern and / or display position of the second prompt identifier are the same as those of the first prompt identifier.
4. The method according to claim 1, wherein The cancelling the display of the second prompt identifier in the graphical user interface in response to the voice signal exceeding the preset time period after the playback stops includes: In response to the voice signal exceeding the preset time period after the playback stops, in the graphical user interface, at a specified change speed, the display contrast of the second prompt identifier is gradually decreased or the display transparency of the second prompt identifier is gradually increased until the display of the second prompt identifier is cancelled.
5. The method according to claim 1, wherein The number of the user identifiers is multiple; it further includes: In response to the voice signals corresponding to multiple user identifiers exceeding the preset time period after the playback stops, the users corresponding to the multiple user identifiers are sorted according to the sequence of the playback stop time points of the multiple voice signals to obtain a sorting result; A delayed cancellation display process is performed on the second prompt identifiers corresponding to the last preset number of users in the sorting result.
6. The method according to claim 5, characterized in that, The sorting the users corresponding to the multiple user identifiers according to the sequence of the playback stop time points of the multiple voice signals to obtain a sorting result in response to the voice signals corresponding to the multiple user identifiers exceeding the preset time period after the playback stops includes: In response to the voice signals corresponding to the multiple user identifiers exceeding the preset time period after the playback stops, if the difference between the playback stop time points of at least two voice signals is less than a preset value, the users corresponding to the multiple user identifiers are sorted according to the sequence of the playback stop time points of the multiple voice signals to obtain a sorting result.
7. A voice prompting device, characterized in that, It includes: A first display module, configured to, in response to the playback of a voice signal, display a first prompt identifier at a corresponding position of a user identifier corresponding to the voice signal in a graphical user interface; wherein, the first prompt identifier is used to indicate that voice playback is in progress; A second display module, configured to cancel the display of the first prompt identifier in the graphical user interface and display a second prompt identifier at a corresponding position of the user identifier in response to the stop of playing the voice signal; wherein, the second prompt identifier is used to indicate that the voice has been played before a preset time period; the differences in the display effects between the second prompt identifier and the first prompt identifier include any one or more of the following: display pattern, display color, display contrast, display clarity, display transparency; A cancellation module, configured to cancel the display of the second prompt identifier in the graphical user interface in response to the voice signal exceeding the preset time period after the stop of playing.
8. An electronic terminal, comprising a memory and a processor, wherein a computer program capable of running on the processor is stored in the memory, and is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 above are implemented.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and run by the processor, the computer-executable instructions cause the processor to run the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Voice communication method and device in game, terminal and storage medium
CN113350802A
Method of displaying graphic user interface and mobile terminal
WO2019000437A1